/*
==============================================================
  TASSSILO S. SCHWEIGER — MODERN EDITORIAL DESIGN
  Nur CSS — keine Änderung der PHP-/HTML-Struktur notwendig.

  CI:
  #FFEFBF  warmes Pergament / Creme
  #FF8800  Orange
  #5C2C00  dunkles Braun
==============================================================
*/

:root {
    --orange: #FF8800;
    --orange-deep: #D96800;
    --cream: #FFEFBF;
    --cream-light: #FFF8E6;
    --brown: #5C2C00;
    --brown-dark: #321800;

    --ink: #211811;
    --ink-soft: #55483d;
    --muted: #81756a;

    --paper: #F7F0DF;
    --paper-deep: #EBDDCA;
    --white: #FFFDF8;

    --dark: #181512;
    --dark-soft: #24201c;

    --line: rgba(92, 44, 0, 0.16);
    --line-light: rgba(255, 239, 191, 0.16);

    --site-width: 1180px;
    --radius: 20px;
}

/* ============================================================
   RESET / BASIS
============================================================ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    font-family:
        Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    color: var(--ink);

    background:
        radial-gradient(
            circle at 85% 8%,
            rgba(255, 136, 0, 0.10),
            transparent 24rem
        ),
        linear-gradient(
            135deg,
            #e8dcc5 0%,
            var(--paper) 38%,
            #f9f4e8 100%
        );

    display: flex;
    flex-direction: column;
}

::selection {
    background: var(--orange);
    color: var(--brown-dark);
}

a {
    color: var(--brown);
}

/* ============================================================
   RASTER
============================================================ */

.site-width {
    width: min(calc(100% - 56px), var(--site-width));
    margin-inline: auto;
}

/* ============================================================
   HEADER
   Dunkel, kompakt und bewusst eigenständig.
============================================================ */

#site-header {
    width: 100%;
    position: relative;
    z-index: 20;

    background: var(--dark);
    color: var(--cream);

    border-bottom: 4px solid var(--orange);

    box-shadow: 0 10px 30px rgba(50, 24, 0, 0.20);
}

.header-inner {
    min-height: 92px;
    padding: 15px 0;

    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: center;
    gap: 28px;
}

/* ------------------------------------------------------------
   BRAND
------------------------------------------------------------ */

.brand {
    display: flex;
    align-items: center;
}

.brand a {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    color: var(--cream);
    text-decoration: none;

    font-size: 1.14rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    white-space: nowrap;
}

.brand a::before {
    content: "";

    width: 11px;
    height: 11px;
    flex: 0 0 11px;

    border-radius: 50%;
    background: var(--orange);

    box-shadow:
        0 0 0 5px rgba(255, 136, 0, 0.10),
        0 0 22px rgba(255, 136, 0, 0.45);
}

.brand a:hover {
    color: #fff;
}

/* ============================================================
   NAVIGATION
   Alle acht Menüpunkte bekommen dieselbe Breite.
============================================================ */

.top-nav {
    min-width: 0;
}

.top-nav ul {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 5px;

    list-style: none;
}

.top-nav li {
    min-width: 0;
}

.top-nav a {
    min-height: 48px;
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 7px 5px;

    color: rgba(255, 248, 230, 0.72);
    background: transparent;

    border: 1px solid transparent;
    border-radius: 9px;

    text-decoration: none;
    text-align: center;

    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.015em;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.top-nav a:hover {
    color: var(--cream);
    background: rgba(255, 239, 191, 0.08);
    border-color: rgba(255, 239, 191, 0.12);
    transform: translateY(-1px);
}

.top-nav a.active {
    color: var(--brown-dark);
    background: var(--orange);
    border-color: var(--orange);

    box-shadow:
        0 5px 18px rgba(255, 136, 0, 0.24),
        inset 0 1px 0 rgba(255, 239, 191, 0.35);
}

.top-nav a.active:hover {
    color: var(--brown-dark);
    background: #FF9A24;
}

/* ============================================================
   HAUPTBEREICH
============================================================ */

#main-content {
    flex: 1 0 auto;
    width: 100%;

    padding: 42px 0 48px;

    display: flex;
    align-items: flex-start;
}

/*
   Die Inhaltskarte ist absichtlich nicht mehr dunkel.
   Dadurch entsteht ein klarer Wechsel:
   dunkler Header -> warmes Editorial-Papier -> dunkler Footer.
*/

.content-container {
    position: relative;

    width: 100%;
    min-height: 0;

    padding: 52px 58px 50px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.72),
            rgba(247, 240, 223, 0.96)
        );

    border: 1px solid rgba(92, 44, 0, 0.15);
    border-radius: var(--radius);

    box-shadow:
        0 22px 55px rgba(92, 44, 0, 0.14),
        0 3px 10px rgba(92, 44, 0, 0.08);

    overflow: hidden;
}

/* Große dekorative Farbfläche oben rechts */
.content-container::before {
    content: "";

    position: absolute;
    z-index: 0;

    top: -170px;
    right: -130px;

    width: 460px;
    height: 460px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255, 136, 0, 0.16) 0%,
            rgba(255, 136, 0, 0.07) 34%,
            transparent 68%
        );

    pointer-events: none;
}

/* feine horizontale orange Signaturlinie */
.content-container::after {
    content: "";

    position: absolute;
    z-index: 1;

    left: 0;
    top: 0;

    width: 100%;
    height: 5px;

    background:
        linear-gradient(
            90deg,
            var(--orange) 0 20%,
            var(--brown) 20% 48%,
            rgba(92, 44, 0, 0.12) 48% 100%
        );
}

/* ============================================================
   TITEL
============================================================ */

#titelleiste {
    position: relative;
    z-index: 2;

    margin-bottom: 30px;
    padding-left: 24px;
}

#titelleiste::before {
    content: "";

    position: absolute;
    left: 0;
    top: 5px;

    width: 6px;
    height: calc(100% - 10px);

    background: var(--orange);
    border-radius: 99px;
}

#titelleiste h2 {
    color: var(--brown);

    font-size: clamp(2.7rem, 5vw, 4.7rem);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.065em;

    margin: 0 0 14px;

    text-wrap: balance;
}

#titelleiste h3 {
    color: var(--orange-deep);

    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.4;

    text-transform: uppercase;
    letter-spacing: 0.16em;
}

/* ============================================================
   STARTSEITE-HERO
   Die vorhandene HTML-Struktur wird optisch zu einer
   asymmetrischen Titel/Bild-Komposition.
============================================================ */

/* ============================================================
   TEXT
============================================================ */

.content-container p {
    position: relative;
    z-index: 2;

    max-width: 78ch;

    margin: 0 0 1.15rem;

    color: var(--ink-soft);

    font-size: 1rem;
    font-weight: 450;
    line-height: 1.78;
}

.content-container p:last-child {
    margin-bottom: 0;
}

.content-container a {
    color: var(--brown);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.content-container a:hover {
    color: var(--orange-deep);
}

/* ============================================================
   HINWEISBOX
   Bewusst wie eine redaktionelle Notiz gestaltet.
============================================================ */

.hinweis-box {
    position: relative;
    z-index: 3;

    margin-top: 30px;
    padding: 22px 26px 22px 30px;

    color: var(--cream);

    background:
        linear-gradient(
            120deg,
            var(--brown-dark),
            var(--brown)
        );

    border: 0;
    border-radius: 0 14px 14px 0;

    box-shadow:
        8px 8px 0 rgba(255, 136, 0, 0.78),
        0 14px 28px rgba(50, 24, 0, 0.16);
}

.hinweis-box::before {
    content: "";

    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;

    width: 5px;

    background: var(--orange);
}

.hinweis-box p {
    color: var(--cream);
    margin: 0;
}

/* ============================================================
   FOOTER
   Nicht mehr wie eine zweite Überschrift:
   kompakt, dunkel, mit orangefarbener Signatur.
============================================================ */

#site-footer {
    width: 100%;

    background:
        linear-gradient(
            105deg,
            var(--dark) 0%,
            var(--dark-soft) 100%
        );

    color: rgba(255, 239, 191, 0.64);

    border-top: 0;

    box-shadow: 0 -12px 30px rgba(50, 24, 0, 0.12);
}

.footer-inner {
    min-height: 66px;
    padding: 17px 0;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 0.74rem;
    line-height: 1.5;
}

.footer-inner p {
    margin: 0;

    color: rgba(255, 239, 191, 0.58);
}

.footer-inner a {
    color: var(--orange);
    text-decoration: none;

    font-weight: 650;

    transition: color 0.2s ease;
}

.footer-inner a:hover {
    color: var(--cream);
    text-decoration: none;
}

/* ============================================================
   TABLETS
============================================================ */

@media (max-width: 1050px) {

    .site-width {
        width: min(calc(100% - 36px), var(--site-width));
    }

    .header-inner {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 16px;
    }

    .top-nav ul {
        gap: 3px;
    }

    .top-nav a {
        font-size: 0.72rem;
        padding-inline: 3px;
    }

    .content-container {
        padding: 44px 42px;
    }

    #titelleiste h2 {
        font-size: clamp(2.5rem, 5vw, 4rem);
    }
}

/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 760px) {

    .site-width {
        width: min(calc(100% - 24px), var(--site-width));
    }

    #site-header {
        border-bottom-width: 3px;
    }

    .header-inner {
        display: block;
        padding: 16px 0;
    }

    .brand {
        margin-bottom: 13px;
    }

    .top-nav ul {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 4px;
    }

    .top-nav a {
        min-height: 42px;
        font-size: 0.70rem;
    }

    #main-content {
        padding: 18px 0 28px;
    }

    .content-container {
        padding: 38px 24px 34px;
        border-radius: 15px;
    }

    #titelleiste {
        padding-left: 18px;
        margin-bottom: 24px;
    }

    #titelleiste h2 {
        font-size: clamp(2.35rem, 12vw, 3.4rem);
    }

    #titelleiste h3 {
        font-size: 0.72rem;
        letter-spacing: 0.11em;
    }
    .hero-image img {
        max-width: 430px;
        margin-inline: auto;

        box-shadow:
            8px 8px 0 var(--orange),
            0 18px 36px rgba(50, 24, 0, 0.20);
    }

    .hinweis-box {
        padding: 19px 20px 19px 24px;
        box-shadow:
            5px 5px 0 rgba(255, 136, 0, 0.78),
            0 12px 24px rgba(50, 24, 0, 0.14);
    }
}

@media (max-width: 440px) {

    .top-nav ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .top-nav a {
        min-height: 39px;
    }

    .content-container {
        padding-inline: 19px;
    }

    #titelleiste h2 {
        font-size: 2.25rem;
    }

    .footer-inner {
        text-align: center;
    }
}

/* ============================================================
   REDUZIERTE BEWEGUNG
============================================================ */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        transform: none !important;
    }
}

/* ============================================================
   IMPRESSIONEN
   Die Seite verwendet für Header, Inhalt, Titel, Bild und
   Footer dieselben Klassen wie main.php. Nur die Jahresauswahl
   benötigt eine kleine eigene Ergänzung.
============================================================ */

.impressionen-jahre {
    position: relative;
    z-index: 2;

    max-width: 78ch;
    margin: 0 auto 34px;

    text-align: center;
    line-height: 2.25;
}

.impressionen-jahre a {
    display: inline-block;
    min-width: 3.7rem;
    margin: 0.15rem 0.12rem;
    padding: 0.25rem 0.55rem;

    color: var(--brown);
    background: rgba(92, 44, 0, 0.05);

    border: 1px solid rgba(92, 44, 0, 0.10);
    border-radius: 7px;

    text-decoration: none;
    text-align: center;

    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.5;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.impressionen-jahre a:hover {
    color: var(--brown-dark);
    background: var(--cream);
    border-color: rgba(255, 136, 0, 0.32);
    transform: translateY(-1px);
}

.impressionen-jahre a[aria-current="page"] {
    color: var(--brown-dark);
    background: var(--orange);
    border-color: var(--orange);
    box-shadow: 0 4px 12px rgba(255, 136, 0, 0.20);
}

@media (max-width: 760px) {
    .impressionen-jahre {
        margin-bottom: 26px;
        line-height: 2.1;
    }

    .impressionen-jahre a {
        min-width: 3.3rem;
        font-size: 0.72rem;
    }
}
