/* Abenteuergeist — shared legal / content page styles */

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

:root {
    --ink: #030510;
    --ink-2: #07091a;
    --paper: #f4f1ea;
    --paper-soft: rgba(244, 241, 234, 0.78);
    --paper-dim: rgba(244, 241, 234, 0.5);
    --paper-faint: rgba(244, 241, 234, 0.28);
    --line: rgba(244, 241, 234, 0.12);
    --line-strong: rgba(244, 241, 234, 0.22);
    --chip: rgba(244, 241, 234, 0.05);
    --aurora-a: rgba(31, 122, 140, 0.34);
    --aurora-b: rgba(140, 240, 182, 0.18);
    --aurora-c: rgba(255, 226, 138, 0.12);
    --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

html {
    background: var(--ink);
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    background: var(--ink);
    color: var(--paper);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100dvh;
    position: relative;
    overflow-x: hidden;
}

/* Aurora-tinted glow behind the hero */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 110% 70% at 18% -10%, var(--aurora-a) 0%, transparent 55%),
        radial-gradient(ellipse 80% 55% at 82% -18%, var(--aurora-b) 0%, transparent 60%),
        radial-gradient(ellipse 100% 55% at 50% -24%, var(--aurora-c) 0%, transparent 65%);
    opacity: 0;
    animation: fadeIn 1.6s ease forwards 0.1s;
}

/* Fine grain overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.96 0 0 0 0 0.95 0 0 0 0 0.92 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    opacity: 0.035;
    mix-blend-mode: overlay;
}

/* Corner marks (fixed to viewport for continuity with homepage) */
.mark {
    position: fixed;
    width: 14px;
    height: 14px;
    border: 1px solid var(--paper);
    opacity: 0.45;
    z-index: 3;
    pointer-events: none;
}
.mark.tl { top: 28px; left: 28px; border-right: 0; border-bottom: 0; }
.mark.tr { top: 28px; right: 28px; border-left: 0; border-bottom: 0; }
.mark.bl { bottom: 28px; left: 28px; border-right: 0; border-top: 0; }
.mark.br { bottom: 28px; right: 28px; border-left: 0; border-top: 0; }

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 64px;
    background: rgba(3, 5, 16, 0.55);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--paper-soft);
}

.header .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--paper);
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.header .brand:hover { opacity: 0.7; }

.header .brand .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8cf0b6;
    box-shadow: 0 0 10px #8cf0b6;
}

.header .brand .crumb {
    letter-spacing: 0.22em;
}

.header .brand .crumb .sep {
    color: var(--paper-faint);
    margin: 0 10px;
}

.header .nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.header .nav a {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--paper-soft);
    text-decoration: none;
    transition: color 0.25s ease;
    position: relative;
}

.header .nav a:hover {
    color: var(--paper);
}

.header .nav a.active {
    color: var(--paper);
}

.header .nav a.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 1px;
    background: var(--paper);
}

/* Article container */
.page {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
    padding: 160px 32px 96px;
}

.page > .idx {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--paper-dim);
    margin-bottom: 20px;
}

.page > .idx::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--paper-dim);
    vertical-align: middle;
    margin-right: 14px;
    transform: translateY(-2px);
}

.page > h1 {
    font-family: var(--sans);
    font-weight: 400;
    font-size: clamp(44px, 6.4vw, 76px);
    line-height: 1.0;
    letter-spacing: -0.03em;
    color: var(--paper);
    margin: 0 0 24px;
}

.page > .subtitle {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--paper-dim);
    padding-bottom: 64px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 56px;
}

/* Article typography */
.page article {
    counter-reset: section;
}

.page article h2 {
    counter-increment: section;
    font-family: var(--sans);
    font-weight: 500;
    font-size: clamp(22px, 2.2vw, 26px);
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--paper);
    margin: 72px 0 20px;
    padding-top: 40px;
    border-top: 1px solid var(--line);
    position: relative;
}

.page article h2::before {
    content: "§ " counter(section, decimal-leading-zero);
    display: block;
    font-family: var(--mono);
    font-weight: 400;
    font-size: 10px;
    letter-spacing: 0.32em;
    color: var(--paper-dim);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.page article h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.page article h3 {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: -0.005em;
    color: var(--paper);
    margin: 32px 0 12px;
}

.page article p {
    font-family: var(--sans);
    font-weight: 300;
    font-size: 15px;
    line-height: 1.75;
    color: var(--paper-soft);
    margin: 0 0 16px;
}

.page article ul,
.page article ol {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

.page article li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.7;
    color: var(--paper-soft);
}

.page article ul > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 10px;
    height: 1px;
    background: var(--paper-dim);
}

.page article ol {
    counter-reset: item;
}

.page article ol > li {
    counter-increment: item;
    padding-left: 34px;
}

.page article ol > li::before {
    content: counter(item, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 2px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--paper-dim);
}

.page article strong {
    font-weight: 500;
    color: var(--paper);
}

.page article a {
    color: var(--paper);
    text-decoration: none;
    border-bottom: 1px solid var(--paper-faint);
    transition: border-color 0.25s ease, color 0.25s ease;
}

.page article a:hover {
    border-color: var(--paper);
}

/* Footer */
.page-footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--line);
    padding: 40px 64px 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--paper-dim);
    max-width: 1200px;
    margin: 0 auto;
}

.page-footer a {
    color: var(--paper-soft);
    text-decoration: none;
    transition: color 0.25s ease;
}

.page-footer a:hover {
    color: var(--paper);
}

.page-footer .foot-links {
    display: flex;
    gap: 24px;
}

/* Responsive */
@media (max-width: 900px) {
    .header { padding: 18px 40px; }
    .page { padding: 140px 32px 80px; }
    .page-footer { padding: 32px 40px 48px; }
}

@media (max-width: 640px) {
    .header {
        padding: 16px 22px;
        font-size: 10px;
        letter-spacing: 0.14em;
    }
    .header .brand .crumb { display: none; }
    .header .nav { gap: 16px; }
    .mark.tl { top: 18px; left: 18px; }
    .mark.tr { top: 18px; right: 18px; }
    .mark.bl { bottom: 18px; left: 18px; }
    .mark.br { bottom: 18px; right: 18px; }
    .page {
        padding: 120px 24px 72px;
    }
    .page > h1 { font-size: clamp(36px, 10vw, 56px); }
    .page article h2 { margin-top: 56px; padding-top: 32px; }
    .page-footer {
        padding: 28px 24px 40px;
        flex-direction: column;
        align-items: flex-start;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    body::before { animation: none !important; opacity: 1 !important; }
}
