
:root {
    --color-fajr: #0d6efd; /* strong blue */
    --color-dhuhr: #28a745; /* green */
    --color-maghrib: #dc3545; /* red */
    --light-bg: rgba(255,255,255,0.85);
    /* Mobile-specific softer colors */
    --color-fajr-mobile: #cde1fe; /* very light blue */
    --color-dhuhr-mobile: #ccffda; /* very light green */
    --color-maghrib-mobile: #ffcece; /* very light red/pink */
}

body {
    font-family: 'Poppins';
    background: linear-gradient(180deg, rgb(0 16 41), rgb(14 40 94));;
    color: #222;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h1, h2, h3 {
    font-size: 1.4em;
    text-align: center;
    color: #3799da;
    margin-top: 1.5em;
}

/* Desktop-Tabelle */
#gebetszeiten {
    width: 95%;
    max-width: 900px;
    margin: 2em auto;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 12px rgba(44,62,80,0.08);
    border-radius: 12px;
    overflow: hidden;
    display: table;
    margin-left: auto;
    margin-right: auto;
}
#gebetszeiten thead th {
    background: #2980b9;
    color: #fff;
    font-weight: 600;
    padding: 1em 0.5em;
    font-size: 1.2em;
    border: none;
}
#gebetszeiten tbody td {
    padding: 0.8em 0.5em;
    text-align: center;
    border-bottom: 1px solid #eaeaea;
    font-size: 1em;
}
#gebetszeiten tbody tr:nth-child(even) {
    background: #f2f6fa;
}
#gebetszeiten tbody tr:hover {
    background: #d6eaf8;
    transition: background 0.2s;
}

/* Highlight important prayers - Desktop (columns) */
#gebetszeiten thead th:nth-child(3),
#gebetszeiten tbody td:nth-child(3) {
    background: linear-gradient(180deg, rgba(13,110,253,0.18), rgba(13,110,253,0.08));
    color: #07294a;
    font-weight: 700;
    border-left: 4px solid var(--color-fajr);
}
#gebetszeiten thead th:nth-child(5),
#gebetszeiten tbody td:nth-child(5) {
    background: linear-gradient(180deg, rgba(40,167,69,0.18), rgba(40,167,69,0.08));
    color: #0f3c20;
    font-weight: 700;
    border-left: 4px solid var(--color-dhuhr);
}
#gebetszeiten thead th:nth-child(8),
#gebetszeiten tbody td:nth-child(8) {
    background: linear-gradient(180deg, rgba(220,53,69,0.18), rgba(220,53,69,0.08));
    color: #3b0e10;
    font-weight: 700;
    border-left: 4px solid var(--color-maghrib);
}

/* Subtle focus on hover for desktop highlighted columns */
#gebetszeiten tbody td:nth-child(3):hover,
#gebetszeiten tbody td:nth-child(5):hover,
#gebetszeiten tbody td:nth-child(8):hover {
    transform: translateY(-2px);
    transition: transform 0.12s ease;
}

/* Mobile-Tabelle */
#gebetszeitenmobil {
    width: 95%;
    max-width: 400px;
    margin: 2em auto;
    background: #fff;
    box-shadow: 0 2px 12px rgba(44,62,80,0.08);
    border-radius: 12px;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
    display: none;
    margin-left: auto;
    margin-right: auto;
}
#gebetszeitenmobil th {
    background: #2980b9;
    color: #fff;
    font-weight: 600;
    padding: 0.8em 0.5em;
    font-size: 1.2em;
    border: none;
    text-align: center;
    width: 45%;
    border-radius: 0;
    border-bottom: 1px solid #f2f6fa;
}
#gebetszeitenmobil td {
    font-weight: bolder;
    padding: 0.8em 0.5em;
    text-align: center;
    font-size: 1.2em;
    background: #f2f6fa;
    border-bottom: 2px solid #2980b9;
    width: 55%;
}
#gebetszeitenmobil tr {
    border-radius: 8px;
    background: #fff;
}

/* Highlight important prayers - Mobile (rows) */
/* Mobile: subtle coloring for highlighted rows (softer backgrounds) */
#gebetszeitenmobil tr:nth-child(3) th,
#gebetszeitenmobil tr:nth-child(3) td {
    background: linear-gradient(270deg, rgba(13,110,253,0.18), rgba(13,110,253,0.08));
    color: var(--color-fajr);
    border-left: 3px solid var(--color-fajr);
}
#gebetszeitenmobil tr:nth-child(5) th,
#gebetszeitenmobil tr:nth-child(5) td {
    background: linear-gradient(270deg, rgba(40,167,69,0.18), rgba(40,167,69,0.08));
    color: var(--color-dhuhr);
    border-left: 3px solid var(--color-dhuhr);
}
#gebetszeitenmobil tr:nth-child(8) th,
#gebetszeitenmobil tr:nth-child(8) td {
    background: linear-gradient(270deg, rgba(220,53,69,0.18), rgba(220,53,69,0.08));
    color: var(--color-maghrib);
    border-left: 3px solid var(--color-maghrib);
}

/* Hover highlight for mobile rows */
/* Mobile hover: subtle lift + slight contrast increase */
#gebetszeitenmobil tr:nth-child(3):hover,
#gebetszeitenmobil tr:nth-child(5):hover,
#gebetszeitenmobil tr:nth-child(8):hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
    transition: transform 0.14s ease, filter 0.14s ease;
}

/* Sammlung ausblenden */
#gebetszeitensammlung {
    display: none;
}

/* Responsive: Mobile zeigt nur die mobile Tabelle, Desktop nur die große */
@media (max-width: 746px) {
    html, body {
        height: 100dvh;
    }
    body {
        min-height: 100dvh;
        justify-content: flex-start;
        align-items: center;
    }
    #gebetszeiten {
        display: none;
    }
    #gebetszeitenmobil {
        display: table;
        max-height: calc(100dvh - 6em);
        margin-top: 1em;
        margin-bottom: 2em;
    }
}

@media (min-width: 747px) {
    #gebetszeiten {
        display: table;
    }
    #gebetszeitenmobil {
        display: none;
    }
}

