@font-face {
    font-family: "Playfair Display";
    src: url("fonts/playfair-display/PlayfairDisplay-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Playfair Display";
    src: url("fonts/playfair-display/PlayfairDisplay-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Playfair Display";
    src: url("fonts/playfair-display/PlayfairDisplay-Italic.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Inter Tight";
    src: url("fonts/inter-tight/InterTight%5Bwght%5D.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter Tight";
    src: url("fonts/inter-tight/InterTight-Italic%5Bwght%5D.ttf") format("truetype");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

:root {
    --bg-primary: #0A0A0C;
    --bg-surface: #121216;
    --border-subtle: #1F1F24;
    --border-hover: #2E2E36;
    --text-primary: #F4F4F5;
    --text-body: #D8D8DF;
    --text-secondary: #9A9AA3;
    --text-muted: #64646E;
    --accent-signal: #D92B2B;
    --accent-signal-hover: #EE3B3B;
    --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    background-color: var(--bg-primary);
    color-scheme: dark;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    margin: 0;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow-x: hidden;
}

::selection {
    background-color: var(--accent-signal);
    color: var(--text-primary);
}

/* Home Layout */
.page-home {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background:
        radial-gradient(65% 50% at 50% 45%, rgba(26, 26, 32, 0.42) 0%, rgba(10, 10, 12, 0) 72%),
        var(--bg-primary);
}

.page-frame {
    position: fixed;
    inset: 20px;
    border: 1px solid var(--border-subtle);
    pointer-events: none;
    z-index: 2;
}

.page-frame::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 28px;
    height: 2px;
    background-color: var(--accent-signal);
}

.stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 48px 32px;
    z-index: 3;
}

.brand-trigger {
    appearance: none;
    background: transparent;
    border: none;
    padding: 24px 16px;
    margin: 0;
    cursor: pointer;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    color: inherit;
    font: inherit;
    transition:
        transform 0.65s var(--ease-out-expo),
        opacity 0.55s var(--ease-out-expo),
        filter 0.55s var(--ease-out-expo);
}

.brand-trigger:focus-visible {
    outline: 1px solid var(--accent-signal);
    outline-offset: 12px;
}

.brand-wordmark {
    display: block;
    width: min(76vw, 640px);
    max-width: 100%;
    height: auto;
    transition: transform 0.5s var(--ease-out-expo);
}

.brand-trigger:hover .brand-wordmark {
    transform: translateY(-2px);
}

.brand-cue {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.35s ease;
}

.brand-cue-dot {
    width: 5px;
    height: 5px;
    background-color: var(--accent-signal);
    display: inline-block;
    transition: transform 0.35s var(--ease-out-expo);
}

.brand-trigger:hover .brand-cue {
    color: var(--text-secondary);
}

.brand-trigger:hover .brand-cue-dot {
    transform: scale(1.25);
}

.brand-trigger.is-blurred {
    filter: blur(10px);
    transform: scale(0.97);
    opacity: 0.22;
}

/* Interactive Overlay */
.overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(10, 10, 12, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.5s var(--ease-out-expo),
        visibility 0.5s var(--ease-out-expo);
    z-index: 20;
    cursor: pointer;
}

.overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.overlay-panel {
    max-width: 560px;
    width: 100%;
    text-align: center;
    padding: 48px 36px;
    border: 1px solid var(--border-subtle);
    background-color: rgba(18, 18, 22, 0.78);
    transform: translateY(12px);
    transition: transform 0.55s var(--ease-out-expo);
}

.overlay.is-visible .overlay-panel {
    transform: translateY(0);
}

.overlay-accent {
    width: 32px;
    height: 2px;
    background-color: var(--accent-signal);
    margin: 0 auto 30px;
}

.overlay-line {
    display: block;
    font-size: clamp(0.85rem, 2.2vw, 1.05rem);
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-primary);
    line-height: 1.9;
}

.overlay-line + .overlay-line {
    margin-top: 8px;
}

.overlay-divider {
    width: 100%;
    height: 1px;
    background-color: var(--border-subtle);
    margin: 28px 0 24px;
}

.overlay-meta {
    display: block;
    font-size: clamp(0.65rem, 1.8vw, 0.75rem);
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-secondary);
    line-height: 1.8;
}

.overlay-close {
    margin-top: 32px;
    appearance: none;
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    padding: 9px 20px;
    cursor: pointer;
    transition:
        color 0.25s ease,
        border-color 0.25s ease;
}

.overlay-close:hover,
.overlay-close:focus-visible {
    color: var(--text-primary);
    border-color: var(--border-hover);
    outline: none;
}

/* Home Footer */
.site-footer {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    padding: 20px 32px 44px;
    z-index: 5;
}

.site-footer a {
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.25s ease;
}

.site-footer a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background-color: var(--accent-signal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out-expo);
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--text-primary);
    outline: none;
}

.site-footer a:hover::after,
.site-footer a:focus-visible::after {
    transform: scaleX(1);
}

/* Legal Subpages (Impressum & Datenschutz) */
.page-legal {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-primary);
}

.legal-header {
    border-bottom: 1px solid var(--border-subtle);
    padding: 24px 32px;
}

.legal-header-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.legal-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.legal-brand img {
    display: block;
    height: 26px;
    width: auto;
}

.legal-nav-back {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.25s ease;
}

.legal-nav-back:hover,
.legal-nav-back:focus-visible {
    color: var(--text-primary);
    outline: none;
}

.legal-main {
    flex: 1;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 72px 32px 96px;
    animation: legal-fade 0.7s var(--ease-out-expo) both;
}

.legal-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.8vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    margin: 0 0 18px;
    line-height: 1.15;
}

.legal-title-bar {
    width: 32px;
    height: 2px;
    background-color: var(--accent-signal);
    margin-bottom: 52px;
}

.legal-lead {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.85;
    color: var(--text-body);
    margin: 0 0 44px;
}

.legal-section {
    padding-top: 28px;
    margin-bottom: 32px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.96875rem;
    font-weight: 300;
    line-height: 1.85;
    color: var(--text-body);
}

.legal-label {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.legal-section a {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-hover);
    padding-bottom: 1px;
    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}

.legal-section a:hover,
.legal-section a:focus-visible {
    color: var(--text-primary);
    border-color: var(--accent-signal);
    outline: none;
}

.legal-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 28px 32px 44px;
}

.legal-footer-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.legal-footer a {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.25s ease;
}

.legal-footer a:hover,
.legal-footer a:focus-visible {
    color: var(--text-primary);
    outline: none;
}

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

@keyframes legal-fade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .page-frame {
        inset: 12px;
    }

    .stage {
        padding: 32px 24px;
    }

    .brand-wordmark {
        width: min(78vw, 480px);
        max-width: 100%;
    }

    .overlay-panel {
        padding: 36px 24px;
    }

    .site-footer {
        padding-bottom: 36px;
        gap: 22px;
    }

    .legal-header {
        padding: 20px 24px;
    }

    .legal-brand img {
        height: 22px;
    }

    .legal-main {
        padding: 48px 24px 72px;
    }

    .legal-footer {
        padding: 24px 24px 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
