:root {
    --g18-dark: #202321;
    --g18-surface: #313431;
    --g18-cream: #f3eee5;
    --g18-copper: #b58a60;
    --g18-muted: #c8c2b8;
}

body,
.site,
.site-content {
    background: var(--g18-dark);
    color: var(--g18-cream);
}

body {
    font-family: -apple-system, BlinkMacSystemFont,
                 "Segoe UI", sans-serif;
    font-size: 18px;
    line-height: 1.85;
}

h1, h2, h3, h4 {
    color: var(--g18-cream);
    letter-spacing: -0.025em;
    line-height: 1.2;
}

h1 {
    font-size: clamp(54px, 9vw, 110px);
    font-weight: 800;
}

h2 {
    font-size: clamp(30px, 4vw, 52px);
}

a {
    color: var(--g18-copper);
}

a:hover {
    color: var(--g18-cream);
}

.site-header,
.main-navigation,
.site-footer {
    background: var(--g18-dark);
    color: var(--g18-cream);
}

.site-header a,
.main-navigation a,
.site-footer a {
    color: var(--g18-cream);
}

.inside-article {
    background: transparent !important;
}

.entry-content {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.entry-content p {
    margin-bottom: 1.7em;
}

.entry-content strong {
    color: var(--g18-cream);
}

.site-info {
    background: #191c1a;
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .entry-content {
        padding: 0 8px;
    }
}

/* GLEIS18 – durchgehend dunkles Layout */

html,
body,
#page,
.site,
.site-content,
.content-area,
.site-main,
.inside-article,
.separate-containers .inside-article,
.one-container .container,
.grid-container {
    background-color: #202321;
    color: #f3eee5;
}

.separate-containers .inside-article {
    padding-top: 30px;
    padding-bottom: 30px;
}

.site-content {
    margin-top: 0;
}

.site-main {
    margin-top: 0 !important;
}

.entry-header,
.entry-content,
.entry-summary {
    background: transparent;
}

/* Keine weißen Flächen im Kopfbereich */
.site-header,
.inside-header,
.main-navigation,
.main-navigation .inside-navigation {
    background-color: #202321;
}


/* GLEIS18 – großzügiges Seitenlayout */

html,
body,
body.separate-containers {
    background: #202321 !important;
}

#page,
.site,
.site-content,
.site-main,
.content-area,
.separate-containers .site-main,
.separate-containers .inside-article {
    background: #202321 !important;
}

#page {
    max-width: none;
}

.site-content {
    max-width: 1200px;
    margin: 0 auto;
}

.content-area,
.site-main {
    width: 100%;
}

.separate-containers .site-main {
    margin: 0;
}

.separate-containers .inside-article {
    padding: 65px 40px;
}

body.home .entry-content {
    max-width: 900px;
    margin: 0 auto;
}

body.home .entry-content h1 {
    font-size: clamp(64px, 10vw, 120px);
    font-weight: 800;
    letter-spacing: -0.06em;
}

body.home .entry-content h2 {
    color: #b58a60;
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 500;
}

@media (max-width: 768px) {
    .separate-containers .inside-article {
        padding: 35px 22px;
    }
}

/* GLEIS18 – Header über die volle Breite */
body,
.site-header,
.site-header .inside-header,
#masthead,
#page {
    background-color: #202321 !important;
}

.site-header .inside-header {
    max-width: 1200px;
    margin: 0 auto;
}

/* Nur auf der Startseite den automatischen Seitentitel ausblenden */
body.home .entry-header,
body.home header.entry-header {
    display: none !important;
}

/* Hauptinhalt ohne unnötigen oberen Abstand */
body.home .site-main,
body.home .inside-article {
    margin-top: 0 !important;
}


/* Automatischen WordPress-Seitentitel auf der Startseite entfernen */
body.home .site-main article .entry-header,
body.home .site-main article .entry-title {
    display: none !important;
}


/* Footer-Links mit Abstand */
.g18-footer nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

.g18-footer nav a {
    display: inline-block;
}


/* GLEIS18 – automatische WordPress-Seitentitel ausblenden */
body.page .site-main article.page > .inside-article > .entry-header {
    display: none !important;
}


/* =========================================
   GLEIS18 – Unsere Geschichte
   ========================================= */

body.home .entry-content {
    max-width: 900px;
    margin: 0 auto;
}

/* Unser großer Schriftzug */
body.home .entry-content h1 {
    font-size: clamp(80px, 13vw, 160px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.075em;
    margin: 35px 0 25px;
    color: #f3eee5;
}

/* Der emotionale Einstieg */
body.home .entry-content h2 {
    font-size: clamp(23px, 3.2vw, 42px);
    font-weight: 500;
    letter-spacing: 0.015em;
    color: #b58a60;
    margin-bottom: 65px;
}

/* Ruhige, gut lesbare Geschichte */
body.home .entry-content p {
    max-width: 720px;
    font-size: clamp(17px, 1.6vw, 21px);
    line-height: 1.95;
    margin-bottom: 30px;
    color: #d4cec4;
}

/* Besondere Sätze */
body.home .entry-content p strong {
    color: #f3eee5;
    font-weight: 700;
}

/* Unser emotionaler Schlusssatz */
body.home .entry-content p:last-child {
    margin-top: 65px;
    padding-top: 30px;
    border-top: 1px solid rgba(181,138,96,0.35);
    color: #b58a60;
    font-size: 23px;
    font-style: italic;
}

/* Mobile Ansicht */
@media (max-width: 768px) {
    body.home .entry-content h1 {
        font-size: clamp(54px, 14vw, 90px);
        margin-top: 15px;
    }

    body.home .entry-content h2 {
        margin-bottom: 40px;
    }

    body.home .entry-content p {
        line-height: 1.8;
    }
}

/* GLEIS18 – elegantes, kompaktes Story-Layout */

body.home .entry-content {
    max-width: 900px;
}

/* Schriftzug: präsent, aber nicht erschlagend */
body.home .entry-content h1 {
    font-size: clamp(52px, 7vw, 82px);
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 1.1;
    margin: 10px 0 16px;
}

/* Untertitel: deutlich dezenter */
body.home .entry-content h2 {
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 400;
    letter-spacing: 0;
    margin: 0 0 32px;
}

/* Text: angenehme Größe, weniger Leerraum */
body.home .entry-content p {
    max-width: 820px;
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 18px;
}

/* Abschluss ebenfalls kompakter */
body.home .entry-content p:last-child {
    margin-top: 35px;
    padding-top: 20px;
    font-size: 19px;
}

/* Weniger Platz über der Geschichte */
body.home .inside-article {
    padding-top: 30px;
    padding-bottom: 45px;
}

@media (max-width: 768px) {
    body.home .entry-content h1 {
        font-size: 52px;
    }

    body.home .entry-content h2 {
        font-size: 22px;
    }

    body.home .entry-content p {
        font-size: 16px;
        line-height: 1.65;
    }
}


/* =========================================
   GLEIS18 – Unsere Welt
   ========================================= */

body.home .g18-world {
    margin: 55px 0 25px;
    padding-top: 32px;
    border-top: 1px solid rgba(181, 138, 96, 0.3);
}

body.home .g18-world-intro {
    margin-bottom: 25px;
}

body.home .g18-eyebrow {
    display: block;
    color: #b58a60;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    margin-bottom: 9px;
}

body.home .g18-world-intro h2 {
    color: #f3eee5;
    font-size: clamp(23px, 3vw, 30px);
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 12px;
}

body.home .g18-world-intro p {
    font-size: 16px;
    line-height: 1.65;
    margin: 0;
}

body.home .g18-world-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

body.home .g18-world-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 21px;
    background: #2b2e2b;
    border: 1px solid rgba(181, 138, 96, 0.18);
    border-radius: 8px;
    transition: border-color 0.2s, transform 0.2s;
}

body.home .g18-world-card:hover {
    border-color: rgba(181, 138, 96, 0.65);
    transform: translateY(-2px);
}

body.home .g18-world-icon {
    display: block;
    font-size: 25px;
    line-height: 1.2;
    margin-bottom: 12px;
}

body.home .g18-world-card h3 {
    color: #f3eee5;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px;
}

body.home .g18-world-card p {
    color: #c8c2b8;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 18px;
}

body.home .g18-world-card a,
body.home .g18-world-status {
    display: block;
    margin-top: auto;
    color: #b58a60;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

body.home .g18-world-card a:hover {
    color: #f3eee5;
}

@media (max-width: 768px) {
    body.home .g18-world-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.home .g18-world-card {
        padding: 17px;
    }
}

@media (max-width: 480px) {
    body.home .g18-world-grid {
        grid-template-columns: 1fr;
    }

    body.home .g18-world {
        margin-top: 35px;
    }
}


/* GLEIS18 – auf der Startseite kein Hauptmenü */
body.home #site-navigation,
body.home .main-navigation {
    display: none !important;
}


/* GLEIS18 – Sprung zur Geschichte des Ortes */

body.home .g18-station-link {
    display: block;
    margin: 22px 0 28px;
    padding: 22px 26px;
    background: #2b2e2b;
    border: 1px solid rgba(181,138,96,.28);
    border-left: 3px solid #b58a60;
    border-radius: 7px;
    text-decoration: none;
    transition: border-color .2s, background .2s;
}

body.home .g18-station-link:hover {
    background: #313531;
    border-color: #b58a60;
}

body.home .g18-station-link-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

body.home .g18-station-link strong {
    color: #f3eee5;
    font-size: 20px;
    font-weight: 600;
}

body.home .g18-station-link-text > span:nth-child(3) {
    color: #c8c2b8;
    font-size: 14px;
}

body.home .g18-station-link-action {
    color: #b58a60;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
}

/* Gleis-18-Unterseite */
.g18-station-page {
    max-width: 760px;
    margin: 0 auto;
}

.g18-station-page h1 {
    color: #f3eee5;
    font-size: clamp(46px, 7vw, 76px);
    font-weight: 700;
    letter-spacing: -.05em;
    margin: 12px 0;
}

.g18-station-page h2 {
    color: #b58a60;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 400;
    margin-bottom: 30px;
}

.g18-station-page p {
    color: #d4cec4;
    font-size: 17px;
    line-height: 1.75;
    margin-bottom: 18px;
}

.g18-station-page a {
    color: #b58a60;
}


/* GLEIS18 – Unsere Geschichte */

.g18-love-story {
    max-width: 760px;
    margin: 0 auto;
}

.g18-story-header {
    margin-bottom: 38px;
}

.g18-love-story h1 {
    font-size: clamp(50px, 7vw, 82px);
    font-weight: 700;
    letter-spacing: -.055em;
    line-height: 1.1;
    color: #f3eee5;
    margin: 12px 0 15px;
}

.g18-love-story .g18-story-subtitle {
    color: #b58a60;
    font-size: clamp(20px, 2.5vw, 27px);
    line-height: 1.4;
    margin: 0;
}

.g18-love-story h2 {
    color: #b58a60;
    font-size: clamp(23px, 3vw, 30px);
    font-weight: 500;
    line-height: 1.3;
    margin: 48px 0 22px;
}

.g18-love-story p {
    color: #d4cec4;
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 19px;
}

.g18-love-story strong {
    color: #f3eee5;
}

.g18-love-story .g18-story-finale {
    font-size: 38px;
    letter-spacing: -.04em;
    margin-top: 32px;
}

.g18-love-story .g18-story-ending {
    color: #b58a60;
    font-size: 22px;
}

.g18-love-story .g18-story-continued {
    color: #b58a60;
    font-size: 17px;
    margin-top: 25px;
}

.g18-love-story .g18-story-back {
    border-top: 1px solid rgba(181,138,96,.3);
    padding-top: 25px;
    margin-top: 45px;
}

.g18-love-story .g18-story-back a {
    color: #b58a60;
    text-decoration: none;
}

@media (max-width: 768px) {
    .g18-love-story p {
        font-size: 16px;
        line-height: 1.75;
    }

    .g18-love-story h2 {
        margin-top: 35px;
    }
}


/* GLEIS18 – Kapitelbilder mit integrierter Schrift */

/* Kapitelüberschriften visuell ausblenden,
   aber für Screenreader erhalten */
.g18-love-story h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Keine doppelten Bildunterschriften */
.g18-love-story .g18-chapter-image figcaption {
    display: none;
}

/* Kapitelbilder */
.g18-love-story .g18-chapter-image {
    margin: 30px 0 32px;
}

.g18-love-story .g18-chapter-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}


/* GLEIS18 – Navigation auf Geschichtsseite ausblenden */
body.page-id-20 .main-navigation {
    display: none !important;
}

/* Zurück-Button */
body.page-id-20 .g18-back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    margin-bottom: 38px;
    border: 1px solid #b58a60;
    border-radius: 6px;
    color: #b58a60;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s;
}

body.page-id-20 .g18-back-button:hover {
    background: #b58a60;
    color: #202321;
}


/* GLEIS18 – Titelbild auf der Startseite */
.home .g18-home-hero {
    width: 100%;
    margin: 0 0 32px;
}

.home .g18-home-hero img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid rgba(181, 138, 96, .25);
}

/* Überschrift für Screenreader und Suchmaschinen erhalten */
.home .g18-hero-accessible {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

