/* ============================================================
   FONTS — self-hosted, DSGVO compliant
   ============================================================ */
@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/playfair/PlayfairDisplay-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/playfair/PlayfairDisplay-BoldItalic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter/Inter-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter/Inter-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('../fonts/jetbrains/JetBrainsMono-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    --bg:          #0d0d0d;
    --surface:     #111111;
    --surface-deep:#070707;
    --border:      #1e1e1e;
    --text:        #f5f5f5;
    --text-muted:  #999999;
    --accent:      #0057a8;
    --accent-light:#4d9de0;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'Inter', system-ui, sans-serif;
    --font-code:    'JetBrains Mono', 'Courier New', monospace;

    --max-width: 1100px;
    --gap: 2rem;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-light);
    text-decoration: none;
}

a:hover {
    color: var(--text);
}

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

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

/* ============================================================
   BAVARIAN RAUTEN BAND
   ============================================================ */
.rauten-band {
    height: 12px;
    background-image: repeating-linear-gradient(
        45deg,
        var(--accent) 0px,
        var(--accent) 6px,
        transparent 6px,
        transparent 12px
    ),
    repeating-linear-gradient(
        -45deg,
        var(--accent) 0px,
        var(--accent) 6px,
        transparent 6px,
        transparent 12px
    );
    opacity: 0.6;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    transition: background 0.3s ease, border-bottom 0.3s ease;
}

.nav.scrolled {
    background: rgba(13, 13, 13, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    letter-spacing: -0.01em;
}

.nav__logo span {
    color: var(--accent-light);
}

.nav__links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav__links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
}

.nav__links a:hover {
    color: var(--text);
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px;
}

.hero__rauten-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.hero__content {
    padding: 5rem 0 4rem;
}

.hero__eyebrow {
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--accent-light);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero__headline {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 0;
}

.hero__headline-accent {
    font-family: var(--font-display);
    font-weight: 700;
    font-style: italic;
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--accent-light);
    margin-bottom: 2rem;
    display: block;
}

.hero__divider {
    width: 60px;
    height: 2px;
    background: var(--accent);
    margin: 2rem 0;
}

.hero__subline {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero__subline strong {
    color: var(--text);
    font-weight: 600;
}

.hero__ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn--primary {
    background: var(--accent);
    color: #fff;
    border: 2px solid var(--accent);
}

.btn--primary:hover {
    background: #0069cc;
    border-color: #0069cc;
    color: #fff;
    transform: translateY(-1px);
}

.btn--ghost {
    background: transparent;
    color: var(--text-muted);
    border: 2px solid var(--border);
}

.btn--ghost:hover {
    border-color: var(--accent-light);
    color: var(--accent-light);
    transform: translateY(-1px);
}

/* ============================================================
   PITCH SECTION
   ============================================================ */
.pitch {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.pitch__grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.pitch__personal {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.95rem;
    border-left: 2px solid var(--accent);
    padding-left: 1.25rem;
    line-height: 1.8;
}

.pitch__personal cite {
    display: block;
    margin-top: 1rem;
    color: var(--accent-light);
    font-style: normal;
    font-weight: 600;
    font-size: 0.85rem;
}

.pitch__text {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.pitch__text p + p {
    margin-top: 1rem;
}

.pitch__text strong {
    color: var(--text);
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features__heading {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.features__subheading {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 3rem;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.75rem;
    transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.feature-card__icon {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.feature-card__title {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.feature-card__desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.features__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.pill {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* ============================================================
   SECURITY SECTION
   ============================================================ */
.security {
    background: var(--surface-deep);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.security__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.security__heading {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.security__text {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.security__text p + p {
    margin-top: 1rem;
}

.security__text strong {
    color: var(--text);
}

.code-block {
    background: #0a0a0a;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    padding: 1.5rem;
    overflow-x: auto;
}

.code-block pre {
    font-family: var(--font-code);
    font-size: 0.82rem;
    line-height: 1.7;
    color: #c9d1d9;
    white-space: pre;
}

.code-block .c  { color: #6e7681; } /* comment */
.code-block .k  { color: var(--accent-light); } /* keyword */
.code-block .s  { color: #a5d6ff; } /* string */
.code-block .p  { color: #f0883e; } /* punctuation/prefix */

/* ============================================================
   PRICING SECTION
   ============================================================ */
.pricing {
    text-align: center;
}

.pricing__headline {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.pricing__headline span {
    color: var(--accent-light);
}

.pricing__text {
    max-width: 620px;
    margin: 0 auto 2.5rem;
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.pricing__text p + p {
    margin-top: 0.75rem;
}

.pricing__providers {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.provider-pill {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* ============================================================
   STORY / TRUST SIGNAL SECTION
   ============================================================ */
.story {
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.story__label {
    font-family: var(--font-code);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-light);
    margin-bottom: 2rem;
}

.story__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.story__blockquote {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    font-style: italic;
    line-height: 1.45;
    color: var(--text);
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
    margin: 0 0 1.5rem;
}

.story__author {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-left: 1.5rem;
    line-height: 1.7;
}

.story__author strong {
    color: var(--text);
}

.story__author a {
    color: var(--accent-light);
    text-decoration: none;
}

.story__author a:hover {
    text-decoration: underline;
}

.story__heading {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.story__text p {
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.story__text p:last-of-type {
    margin-bottom: 1.5rem;
}

.story__link {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-light);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.story__link:hover {
    text-decoration: underline;
}

/* ============================================================
   GET IT / CTA SECTION
   ============================================================ */
.getit {
    background: var(--surface);
    border-top: 1px solid var(--border);
    text-align: center;
}

.getit__heading {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.getit__sub {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

.getit__buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.getit__requirements {
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__brand {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer__brand a {
    color: var(--accent-light);
}

.footer__links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.footer__links a {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer__links a:hover {
    color: var(--text);
}

/* ============================================================
   SUBPAGE LAYOUT (changelog, impressum)
   ============================================================ */
.subpage {
    padding-top: 120px;
    min-height: 100vh;
}

.subpage__header {
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2rem;
}

.subpage__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.subpage__meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Changelog specific */
.changelog-version {
    margin-bottom: 3rem;
}

.changelog-version__heading {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--accent-light);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.changelog-version__heading::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.changelog-version ul {
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.changelog-version li {
    font-size: 0.95rem;
    color: var(--text-muted);
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.5;
}

.changelog-version li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.5rem;
    top: 0.4em;
}

/* Impressum specific */
.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.legal-section h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent-light);
    margin: 1rem 0 0.5rem;
}

.legal-section p,
.legal-section address {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: normal;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.legal-section ul {
    font-size: 0.95rem;
    color: var(--text-muted);
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.legal-section a {
    color: var(--accent-light);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pitch__grid,
    .security__grid,
    .story__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .features__grid {
        grid-template-columns: 1fr;
    }

    .nav__links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(13, 13, 13, 0.98);
        flex-direction: column;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--border);
        gap: 0;
    }

    .nav__links.open {
        display: flex;
    }

    .nav__links a {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border);
    }

    .nav__toggle {
        display: block;
    }

    .hero__ctas,
    .getit__buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .getit__buttons {
        align-items: center;
    }

    .footer__inner {
        flex-direction: column;
        text-align: center;
    }
}
