:root {
    --bg: #0a0f14;
    --bg-elevated: #111820;
    --bg-card: #151d27;
    --border: rgba(255, 255, 255, .08);
    --border-strong: rgba(255, 255, 255, .14);
    --text: #f4f6f8;
    --muted: #9aa5b1;
    --gold: #d6a14a;
    --gold-light: #f0c06a;
    --gold-glow: rgba(214, 161, 74, .25);
    --radius: 14px;
    --radius-sm: 8px;
    --container: 1140px;
    --font-display: "Outfit", system-ui, sans-serif;
    --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
    --shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 15, 20, .82);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    width: auto;
    height: 64px;
    max-width: 220px;
    object-fit: contain;
    object-position: left center;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: .9rem;
    font-weight: 500;
}

.nav a {
    color: var(--muted);
    transition: color .2s ease;
}

.nav a:hover,
.nav a.active {
    color: var(--text);
}

.nav a.active {
    color: var(--gold-light);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 36px;
    gap: 6px;
    flex-direction: column;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    height: 2px;
    background: var(--text);
    width: 100%;
    display: block;
    border-radius: 2px;
}

/* Hero */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    background: url("assets/hero-train-clean.jpg") 62% center / cover no-repeat;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 15, 20, .35) 0%, rgba(10, 15, 20, .55) 45%, rgba(10, 15, 20, .92) 100%),
        linear-gradient(90deg, rgba(10, 15, 20, .88) 0%, rgba(10, 15, 20, .3) 55%, transparent 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
    padding: 0 0 100px;
}

.eyebrow {
    margin: 0 0 16px;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold-light);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -.03em;
    margin: 0 0 18px;
    max-width: 12ch;
    text-wrap: balance;
}

.hero-sub {
    font-size: clamp(1.1rem, 2.5vw, 1.45rem);
    color: #d5dbe1;
    margin: 0 0 32px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-rail {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    display: flex;
    z-index: 3;
}

.hero-rail span {
    flex: 1;
    background: var(--gold);
    opacity: .7;
}

.hero-rail span:nth-child(odd) {
    background: transparent;
    border-top: 4px solid rgba(214, 161, 74, .35);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: .92rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, #c8923f 100%);
    color: #fff;
    box-shadow: 0 8px 28px var(--gold-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(214, 161, 74, .35);
}

.btn-ghost {
    background: rgba(255, 255, 255, .06);
    border-color: var(--border-strong);
    color: var(--text);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}

/* Sections */
.section {
    padding: 96px 0;
}

.section-label {
    display: block;
    margin-bottom: 12px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold);
}

.section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 20px;
    letter-spacing: -.025em;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 48px;
}

.link-arrow {
    font-size: .9rem;
    font-weight: 600;
    color: var(--gold-light);
    white-space: nowrap;
    transition: opacity .2s ease;
}

.link-arrow:hover {
    opacity: .8;
}

/* Stories */
.stories {
    background: linear-gradient(180deg, var(--bg) 0%, #0d1319 100%);
}

.stories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.stories-visual {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: var(--shadow);
}

.stories-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stories-badge {
    position: absolute;
    left: 20px;
    bottom: 20px;
    padding: 10px 16px;
    background: rgba(10, 15, 20, .75);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--gold-light);
}

.stories-copy p {
    color: var(--muted);
    margin: 0 0 16px;
    font-size: 1.05rem;
}

.stories-copy p:last-child {
    margin-bottom: 0;
}

/* Community */
.community-card {
    position: relative;
    padding: 56px 64px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 4px);
    overflow: hidden;
    text-align: center;
}

.community-glow {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 480px;
    height: 240px;
    background: radial-gradient(ellipse, var(--gold-glow) 0%, transparent 70%);
    pointer-events: none;
}

.community-card h2,
.community-card .section-label {
    position: relative;
}

.community-card p {
    position: relative;
    color: var(--muted);
    max-width: 720px;
    margin: 0 auto 16px;
    font-size: 1.05rem;
}

.community-card p strong {
    color: var(--text);
    font-weight: 600;
}

.community-card .btn {
    position: relative;
    margin-top: 12px;
}

/* Blog */
.blog {
    background: #0c1117;
    padding-bottom: 110px;
}

.post-list {
    display: grid;
    gap: 32px;
}

.post-card {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 36px;
    padding: 28px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    border-color: rgba(214, 161, 74, .25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}

.post-thumb {
    display: block;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 16 / 11;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.post-card:hover .post-thumb img {
    transform: scale(1.04);
}

.post-content time {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 12px;
}

.post-content h3 {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.5vw, 1.55rem);
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.25;
    margin: 0 0 14px;
}

.post-content h3 a {
    transition: color .2s ease;
}

.post-content h3 a:hover {
    color: var(--gold-light);
}

.post-content p {
    color: var(--muted);
    margin: 0 0 18px;
    font-size: .95rem;
}

.read-more {
    font-size: .9rem;
    font-weight: 600;
    color: var(--gold-light);
    transition: opacity .2s ease;
}

.read-more:hover {
    opacity: .8;
}

.posts-loading,
.posts-empty {
    color: var(--muted);
    text-align: center;
    padding: 32px 0;
    font-size: .95rem;
}

.posts-empty code {
    color: var(--gold-light);
    font-size: .88rem;
}

/* Blog-Seite */
.page-hero {
    padding: 72px 0 24px;
    background: linear-gradient(180deg, #0c1117 0%, var(--bg) 100%);
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -.025em;
    margin: 0 0 12px;
}

.page-hero p {
    color: var(--muted);
    margin: 0;
    max-width: 560px;
    font-size: 1.05rem;
}

.blog-page {
    padding-top: 48px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--gold-light);
}

.back-link:hover {
    opacity: .85;
}

/* Artikel */
.article {
    padding-bottom: 80px;
}

.article-hero {
    height: min(52vh, 420px);
    background: #0c1117 center / cover no-repeat;
    border-bottom: 1px solid var(--border);
}

.article-inner {
    max-width: 760px;
    padding-top: 40px;
}

.article-date {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 14px;
}

.article-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4.5vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.1;
    margin: 0 0 18px;
}

.article-excerpt {
    font-size: 1.15rem;
    color: #d5dbe1;
    line-height: 1.65;
    margin: 0 0 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.article-body {
    color: #dfe4e7;
    font-size: 1.05rem;
    line-height: 1.75;
}

.article-body h2,
.article-body h3 {
    font-family: var(--font-display);
    color: var(--text);
    margin: 2em 0 .75em;
    line-height: 1.25;
}

.article-body p {
    margin: 0 0 1.2em;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    display: block;
}

.article-body img[data-align="center"] {
    margin: 1.5em auto;
}

.article-body img[data-align="left"] {
    margin: 1.5em 0;
    margin-right: auto;
}

.article-body img[data-align="right"] {
    margin: 1.5em 0;
    margin-left: auto;
}

.article-body video {
    max-width: 100%;
    border-radius: var(--radius-sm);
    margin: 1.5em 0;
    background: #000;
}

.article-body blockquote {
    margin: 1.5em 0;
    padding: 16px 20px;
    border-left: 3px solid var(--gold);
    background: rgba(214, 161, 74, .08);
    color: #e8eaed;
}

.article-body ul,
.article-body ol {
    margin: 0 0 1.2em;
    padding-left: 1.4em;
}

.article-body a {
    color: var(--gold-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-body a:hover {
    color: #fff;
}

/* Rechtliches */
.legal-page {
    padding-top: 48px;
    padding-bottom: 80px;
}

.legal-content {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    text-align: left;
}

.legal-content h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin: 2.2em 0 .75em;
    letter-spacing: -.02em;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    color: #d5dbe1;
    line-height: 1.75;
    margin: 0 0 1em;
}

.legal-content a {
    color: var(--gold-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-content a:hover {
    color: #fff;
}

.legal-content code {
    font-size: .9em;
    color: var(--gold-light);
}

/* Footer */
.footer {
    padding: 40px 0 20px;
    border-top: 1px solid var(--border);
    background: #080c10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 28px;
}

.footer-logo img {
    width: auto;
    height: 44px;
    max-width: 160px;
    margin-bottom: 10px;
}

.footer-brand p {
    margin: 0;
    font-size: .78rem;
    color: var(--muted);
}

.footer-col h3 {
    margin: 0 0 10px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

.footer-col nav {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.footer-col a {
    font-size: .86rem;
    color: #c5ccd3;
    transition: color .2s ease;
}

.footer-col a:hover {
    color: var(--gold-light);
}

.footer-mail {
    font-size: .88rem;
    font-weight: 500;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .86rem;
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-bottom {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.footer-credit {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1;
}

.footer-credit-script {
    font-family: "Parisienne", cursive;
    font-size: 1.5rem;
    color: #b8a088;
}

.footer-credit-heart {
    width: 22px;
    height: 20px;
    color: var(--gold);
    flex-shrink: 0;
    transform: translateY(-1px);
}

.footer-credit-brand {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color .2s;
}

.footer-credit-brand:hover {
    color: var(--gold-light);
}

/* Responsive */
@media (max-width: 960px) {
    .stories-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .stories-visual {
        aspect-ratio: 16 / 10;
        max-height: 380px;
    }

    .post-card {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .community-card {
        padding: 40px 28px;
    }
}

@media (max-width: 720px) {
    .header-inner {
        height: auto;
        min-height: 72px;
        flex-wrap: wrap;
        padding: 14px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding-bottom: 12px;
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        padding: 10px 0;
    }

    .hero {
        min-height: 78vh;
    }

    .hero-inner {
        padding-bottom: 72px;
    }

    .section {
        padding: 72px 0;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .logo img {
        height: 52px;
        max-width: 180px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
    }
}
