/* ══════════════════════════════════════
   Pantake – Shared Styles
   ══════════════════════════════════════ */

/* ── Local Fonts ── */
@font-face {
    font-family: 'Instrument Serif';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/InstrumentSerif-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Instrument Serif';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/InstrumentSerif-Italic.woff2') format('woff2');
}
@font-face {
    font-family: 'Big Shoulders Display';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url('fonts/BigShouldersDisplay.woff2') format('woff2');
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 200 600;
    font-display: swap;
    src: url('fonts/Outfit.woff2') format('woff2');
}

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0e0c0f;
    --bg-warm: #151214;
    --surface: #1c191e;
    --surface-light: #252228;
    --text: #ebe7e3;
    --text-dim: #9a9397;
    --accent: #c8a44e;
    --accent-light: #e2c878;
    --serif: 'Instrument Serif', Georgia, serif;
    --display: 'Big Shoulders Display', system-ui, sans-serif;
    --sans: 'Outfit', system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Film grain overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.028;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px;
}

/* ── Utility ── */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(32px, 6vw, 80px);
}

/* ── Navigation bar ── */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 28px clamp(24px, 5vw, 80px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    mix-blend-mode: difference;
}

.topbar-brand {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
}

/* ── Language Toggle ── */
.lang-toggle {
    display: flex;
    gap: 2px;
    background: rgba(255,255,255,0.06);
    border-radius: 100px;
    padding: 3px;
}

.lang-toggle-btn {
    font-family: var(--sans);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    background: transparent;
    border: none;
    padding: 6px 12px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-toggle-btn.active {
    color: #fff;
    background: rgba(255,255,255,0.12);
}

.lang-toggle-btn:hover:not(.active) {
    color: rgba(255,255,255,0.7);
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-cta,
.topbar-back {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    padding: 10px 24px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 100px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.topbar-cta:hover,
.topbar-back:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.topbar-back svg {
    width: 14px;
    height: 14px;
}

/* ── Page Header (Unterseiten) ── */
.page-header {
    padding-top: 180px;
    padding-bottom: 80px;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -15%;
    width: 50vw;
    height: 50vw;
    max-width: 600px;
    max-height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 164, 78, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.page-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 32px;
    padding: 8px 20px;
    border: 1px solid rgba(200, 164, 78, 0.25);
    border-radius: 100px;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.page-header h1 {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    line-height: 1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

/* ── Divider ── */
.divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200, 164, 78, 0.2), transparent);
    margin: 0;
}

/* ── Legal Content (Impressum / Datenschutz) ── */
.legal-content {
    padding: 80px 0 140px;
    max-width: 720px;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.legal-section {
    margin-bottom: 56px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-chapter {
    margin-bottom: 72px;
}

.legal-chapter:last-child {
    margin-bottom: 0;
}

.legal-chapter > h2 {
    font-family: var(--display);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    margin-bottom: 36px;
    color: var(--text);
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.legal-section h2 {
    font-family: var(--display);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: var(--text);
}

.legal-section h3 {
    font-family: var(--sans);
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--text);
}

.legal-section p,
.legal-section li {
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-dim);
}

.legal-section p + p {
    margin-top: 12px;
}

.legal-section ul {
    list-style: none;
    margin-top: 12px;
    margin-bottom: 12px;
}

.legal-section ul li {
    padding-left: 20px;
    position: relative;
}

.legal-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.4;
}

.legal-section a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(200, 164, 78, 0.25);
    transition: border-color 0.3s ease;
    word-break: break-all;
}

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

.legal-label {
    font-weight: 500;
    color: var(--text);
}

/* ── Footer ── */
.footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 48px 0;
}

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

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 300;
}

.footer-logo img {
    width: 48px;
    height: auto;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.footer-logo img:hover { opacity: 0.7; }

.footer-copy a {
    color: var(--text-dim);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: border-color 0.3s ease;
}

.footer-copy a:hover {
    border-color: var(--accent);
}

/* ── Animations ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slowSpin {
    to { transform: rotate(360deg); }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .page-header { padding-top: 140px; padding-bottom: 60px; }
    .footer-inner { flex-direction: column; gap: 24px; }
}
