/* ========================================
   Gemeinsame Styles
   ======================================== */

.title div {
    color: rgb(77, 77, 77);
    background-color: rgb(255, 255, 255);
    border-radius: 5px;
    padding: 16px 0 10px 0;
    text-align: center;
    margin: 3px;
}

h1 {
    font-size: x-large;
}

h2 {
    font-size: large;
}

/* Body-Flex Layout (bundesland, koran-sure) */
.page-flex {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.page-flex footer {
    margin-top: auto;
}

/* Nebenseiten Hintergrund (contact, ueber-uns, error, datenschutz) */
.page-secondary,
.page-secondary html {
    background-color: rgb(95, 95, 95);
}

/* ========================================
   located.php — Gebetszeiten
   ======================================== */

.page-located main {
    text-align: center;
}

.page-located .title div {
    padding: 7px;
}

.page-located .title {
    padding: 5px 3px 1px;
}

.d-inline,
.nightbuttons,
.download {
    margin: 3px;
    background-color: rgb(37, 37, 37);
    border-radius: 5px;
    -webkit-user-select: none;
    user-select: none;
}

.d-inline div {
    display: grid;
    padding: 5px 0;
}

.d-inline div span:first-child {
    color: white;
    font-weight: 700;
}

.d-inline {
    margin: 0 1.5px 2.5px;
}

.d-inline:active div span:first-child,
.nightbuttons:active span:first-child {
    color: black;
}

.nightbuttons,
.download {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 10px;
    margin-top: 1px;
}

.nightbuttons span:first-child,
.download span {
    text-align: start;
    color: white;
}

.nightbuttons span:last-child {
    text-align: end;
}

.timetable {
    border-radius: 5px;
    font-size: small;
    margin: 3px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

caption {
    border-radius: 5px 5px 0 0;
    padding: 0;
    color: white;
    font-size: medium;
}

.download {
    align-items: center;
    cursor: pointer;
}

.d-inline:active,
.nightbuttons:active,
.download:active {
    background-color: rgb(89, 180, 176);
}

th,
td {
    white-space: nowrap;
}

.page-located main section:nth-child(2) {
    margin: 1px 3px;
}

.intern_links {
    overflow-x: auto;
}

/* ========================================
   index.php — Startseite
   ======================================== */

.country-group .list,
.page-index .title div {
    margin: 3px;
}

.faq {
    text-align: start;
    padding: 15px;
    color: white;
    font-size: small;
}

.list {
    padding-bottom: 10px;
}

/* ========================================
   koran-auf-deutsch.php
   ======================================== */

.quran {
    margin: 3px;
}

.quran a {
    display: grid;
    grid-template-columns: 2fr 1fr;
}

.quran h2 {
    font-size: small;
}

.quran ~ .faq p {
    font-size: small;
}

/* ========================================
   koran-sure.php
   ======================================== */

.page-koran-sure h1 {
    font-size: larger;
}

.page-koran-sure h2 {
    font-size: medium;
}

.page-koran-sure p {
    margin: 5px;
}

.navigation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
}

/* ========================================
   Nebenseiten (contact, error, ueber-uns, datenschutz)
   ======================================== */

.page-secondary main {
    text-align: center;
}

.contact {
    border-radius: 10px;
    padding: 10px;
    margin: 10px;
}

.about {
    border-radius: 10px;
    padding: 10px;
    margin: 10px 3px;
}

.privacy {
    border-radius: 10px;
    padding: 10px;
    margin: 10px 3px;
}

/* ========================================
   Responsive — Mobile (max 576px)
   ======================================== */

@media (max-width: 576px) {
    .timetable {
        margin: 0;
        border-radius: 0;
    }

    .nightbuttons,
    .download {
        padding: 12px 8px;
    }

    .contact,
    .about,
    .privacy {
        margin: 5px 3px;
    }
}
