/*
 * Der Rahmen um jede Seite: Navigation, Kopfband und Seitenfuß. Die Leiste oben
 * ist die Flutlichtnacht, der eingeschaltete Eintrag trägt das LED-Gelb der
 * Anzeigetafel wie ein Lämpchen an seiner Unterkante. Das Kopfband hält Titel
 * und Unterzeile in der Ziffernschrift über dem Foto, getrennt durch einen
 * gelben Strich. Der Seitenfuß ist der Abriss der Karte: eine Perforation mit
 * zwei Kerben, darunter Name, Wege und Copyright auf Nacht. Mobil zuerst. Die
 * Versprechen stehen in specs/navigation.md, specs/legal.md AC-1 und
 * specs/staffelplaner.md AC-1.
 */

/* ── Navigation ─────────────────────────────────────────────── */

.site-nav {
    --bs-navbar-padding-y: 0;
    background-color: var(--gh-night);
    font-family: var(--gh-numeral);
}

.site-nav .navbar-brand {
    padding: 12px 0;
    margin-right: 18px;
    font-family: var(--gh-numeral);
    font-weight: 700;
    font-size: 21px;
    line-height: 1;
    color: #fff;
}

.site-nav .navbar-brand:hover,
.site-nav .navbar-brand:focus {
    color: #fff;
}

.site-nav .navbar-toggler {
    margin: 8px 0;
    border-color: rgba(255, 255, 255, .3);
}

.site-nav .nav-link {
    padding: 10px 12px;
    color: rgba(255, 255, 255, .78);
    font-family: var(--gh-numeral);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.25;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus,
.site-nav .nav-link.show {
    color: #fff;
}

/* Der eingeschaltete Eintrag: auf dem Telefon ein Lämpchen links, auf breiten
   Bildschirmen an der Unterkante der Leiste. */
.site-nav .nav-link.active {
    color: #fff;
    background: transparent;
    box-shadow: inset 3px 0 0 var(--gh-led);
}

.site-nav .nav-link:focus-visible,
.site-nav .navbar-brand:focus-visible {
    outline: 2px solid var(--gh-led);
    outline-offset: -2px;
    border-radius: 2px;
    box-shadow: none;
}

.site-nav .dropdown-menu {
    padding: 6px 0;
    border: 0;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

.site-nav .dropdown-item {
    padding: 6px 16px;
    font-family: var(--gh-numeral);
    font-weight: 600;
    font-size: 16px;
    color: var(--gh-night);
}

.site-nav .dropdown-item:hover,
.site-nav .dropdown-item:focus {
    background: var(--gh-paper);
    color: var(--gh-night);
}

.site-nav .dropdown-divider {
    border-top-color: var(--gh-rule);
    opacity: 1;
}

/* Das Suchfeld liegt in der Nacht, statt als weißes Loch in ihr zu stehen. */
.site-nav #search-form {
    padding: 4px 0 10px;
}

.site-nav .search-wrapper {
    width: 100%;
}

.site-nav .search-input {
    min-width: 0;
    width: 100%;
    padding: 6px 10px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 6px;
    color: #fff;
    font-family: var(--gh-numeral);
    font-weight: 500;
    font-size: 16px;
}

.site-nav .search-input::placeholder {
    color: rgba(255, 255, 255, .6);
}

.site-nav .search-input:focus {
    background: rgba(255, 255, 255, .16);
    border-color: var(--gh-led);
    box-shadow: none;
    color: #fff;
}

.site-nav .search-dropdown {
    border: 0;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
    color: var(--gh-ink);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.site-nav .search-group {
    border-bottom: 1px solid var(--gh-rule);
}

.site-nav .search-group-title {
    padding: 8px 14px 4px;
    background: var(--gh-paper);
    font-family: var(--gh-numeral);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--gh-muted);
}

.site-nav .search-item {
    border-bottom-color: var(--gh-rule);
    color: var(--gh-ink);
}

.site-nav .search-item:hover,
.site-nav .search-item:focus,
.site-nav .search-item--active {
    background: var(--gh-paper-hover);
    color: var(--gh-ink);
}

.site-nav .search-item-sublabel,
.site-nav .search-empty {
    color: var(--gh-muted);
}

.site-nav .search-empty {
    font-style: normal;
}

@media (min-width: 992px) {
    .site-nav .navbar-brand {
        padding: 15px 0;
    }

    .site-nav .nav-link {
        padding: 15px 9px;
    }

    .site-nav .nav-link.active {
        box-shadow: inset 0 -3px 0 var(--gh-led);
    }

    .site-nav #search-form {
        padding: 0;
    }

    .site-nav .search-wrapper {
        width: auto;
    }

    .site-nav .search-input {
        width: 170px;
        padding: 4px 10px;
        font-size: 15px;
    }
}

@media (min-width: 1200px) {
    .site-nav .nav-link {
        padding-left: 11px;
        padding-right: 11px;
    }

    .site-nav .search-input {
        width: 210px;
    }
}

/* ── Kopfband ───────────────────────────────────────────────── */

.intro-header {
    position: relative;
}

/* Ein Schleier von unten hält die Schrift auf jedem Foto lesbar. Ohne Foto
   (Flutlichtnacht) und auf der Hintergrundseite, die ihren eigenen Schatten
   trägt, entfällt er. */
.intro-header:not(.intro-header--plain):not(.intro-header--scrim)::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .08) 0%, rgba(0, 0, 0, .38) 100%);
    pointer-events: none;
}

.intro-header > .container {
    position: relative;
}

.intro-header .site-heading h1 {
    font-family: var(--gh-numeral);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: .005em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .5);
}

.intro-header hr.small {
    max-width: 56px;
    margin: 16px auto 14px;
    border: 0;
    border-top: 3px solid var(--gh-led);
    opacity: 1;
}

.intro-header .site-heading .subheading {
    margin-top: 0;
    font-family: var(--gh-numeral);
    font-weight: 500;
    font-size: 20px;
    line-height: 1.25;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .7);
}

/* Der Kopf eines Spiels: beide Mannschaften mit Ergebnis auf einer Tafel in
   Nachtfarbe, Namen und Zahlen in der Ziffernschrift. */
.intro-header .header-team {
    background-color: color-mix(in srgb, var(--gh-night) 78%, transparent);
    border-radius: 6px;
    font-family: var(--gh-numeral);
    font-weight: 700;
}

.intro-header .header-team .result {
    font-variant-numeric: tabular-nums;
}

.intro-header .header-team .result-suffix {
    font-weight: 500;
}

@media (min-width: 768px) {
    .intro-header .site-heading h1 {
        font-size: 64px;
    }

    .intro-header .site-heading .subheading {
        font-size: 24px;
    }
}

/* ── Seitenfuß: der Abriss ──────────────────────────────────── */

.site-footer {
    position: relative;
    margin-top: 48px;
    padding: 40px 0 28px;
    background:
        radial-gradient(circle calc(var(--gh-notch) / 2) at 0 12px, #fff 98%, transparent 100%),
        radial-gradient(circle calc(var(--gh-notch) / 2) at 100% 12px, #fff 98%, transparent 100%),
        var(--gh-night);
    color: rgba(255, 255, 255, .62);
}

/* Die Perforation zwischen den beiden Kerben. */
.site-footer::before {
    content: "";
    position: absolute;
    top: 11px;
    left: calc(var(--gh-notch) / 2 + 6px);
    right: calc(var(--gh-notch) / 2 + 6px);
    border-top: 2px dashed rgba(255, 255, 255, .24);
}

.site-footer__inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-footer a.site-footer__brand {
    align-self: flex-start;
    font-family: var(--gh-numeral);
    font-weight: 700;
    font-size: 22px;
    line-height: 1;
    color: #fff;
    text-decoration: none;
}

.site-footer .site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    margin: 0;
    font-size: 15px;
    text-align: left;
}

.site-footer .site-footer__links a {
    color: rgba(255, 255, 255, .86);
    text-decoration: none;
}

.site-footer .site-footer__links a:hover,
.site-footer a.site-footer__brand:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer a:focus-visible {
    outline: 2px solid var(--gh-led);
    outline-offset: 3px;
    border-radius: 2px;
}

.site-footer .site-footer__links img {
    height: 1em;
    vertical-align: -.125em;
}

.site-footer .site-footer__copy {
    margin: 0;
    font-size: 13px;
}

@media (min-width: 768px) {
    .site-footer {
        padding: 44px 0 34px;
    }

    .site-footer__inner {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: baseline;
        column-gap: 36px;
    }

    .site-footer .site-footer__copy {
        margin-left: auto;
    }
}
