/* ===================
   Self-hosted Google Fonts
   Cormorant Garamond (400, 500, 600, 700) + Outfit (300, 400, 500)
   =================== */

/* latin-ext */
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/cormorant-garamond-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/cormorant-garamond-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/cormorant-garamond-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/cormorant-garamond-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/cormorant-garamond-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/cormorant-garamond-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/cormorant-garamond-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/cormorant-garamond-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('fonts/outfit-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('fonts/outfit-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/outfit-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/outfit-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/outfit-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/outfit-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===================
   Custom Styles
   =================== */

:root {
    --gold: #d4a855;
    --gold-light: #f0d89a;
    --gold-dark: #8b6914;
    --cream: #f5f0e6;
    --charcoal: #1a1a1a;
    --charcoal-light: #2d2d2d;
    --overlay-dark: rgba(15, 12, 8, 0.75);
    --overlay-gradient: linear-gradient(
        135deg,
        rgba(15, 12, 8, 0.85) 0%,
        rgba(25, 20, 12, 0.7) 50%,
        rgba(15, 12, 8, 0.8) 100%
    );
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--charcoal);
    color: var(--cream);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Image */
.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Overlay */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-gradient);
    z-index: -1;
}

/* Subtle grain texture */
.bg-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

/* Main Container */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
}

/* Content Card */
.content {
    text-align: center;
    max-width: 800px;
    animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo/Brand */
.brand {
    margin-bottom: 1rem;
}

.brand-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px rgba(212, 168, 85, 0.3);
    line-height: 1.3;
    padding-bottom: 0.1em;
}

.brand-tagline {
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(245, 240, 230, 0.5);
    margin-top: 0.5rem;
    font-weight: 300;
}

/* Divider */
.divider {
    width: 140px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 2.5rem auto;
    position: relative;
}

.divider::before {
    content: '◈';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--gold);
    font-size: 1.5rem;
    background: transparent;
    padding: 0 1rem;
}

/* Typewriter Section */
.typewriter-section {
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.typewriter-label {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(245, 240, 230, 0.4);
    margin-bottom: 0.75rem;
}

.typewriter-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 500;
    color: var(--cream);
    min-height: 1.5em;
    position: relative;
}

.typewriter-text::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--gold);
    margin-left: 2px;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Services Preview */
.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
    animation: fadeInUp 1.2s ease-out 0.3s both;
}

.service-tag {
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(212, 168, 85, 0.3);
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(245, 240, 230, 0.7);
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    background: rgba(212, 168, 85, 0.05);
}

.service-tag:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212, 168, 85, 0.15);
}

/* Quote Section */
.quote-section {
    margin: 3rem 0;
    padding: 2rem;
    position: relative;
    animation: fadeInUp 1.2s ease-out 0.5s both;
}

.quote-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    background-image: url('quote.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.quote-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-style: italic;
    color: rgba(245, 240, 230, 0.8);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.8;
    min-height: 3.6em; /* 2 lines × 1.8 line-height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-author {
    margin-top: 1rem;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: rgba(212, 168, 85, 0.6);
}

/* Contact Section */
.contact {
    margin-top: 3rem;
    animation: fadeInUp 1.2s ease-out 0.7s both;
}

.contact-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245, 240, 230, 0.4);
    margin-bottom: 1rem;
}

.contact-email {
    display: inline-block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--cream);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.contact-email::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.contact-email:hover {
    color: var(--gold);
}

.contact-email:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.contact-line {
    font-size: 1rem;
    color: rgba(245, 240, 230, 0.7);
    margin: 0.5rem 0;
    letter-spacing: 0.02em;
}

.contact .contact-email {
    display: block;
    margin: 0.8rem 0;
}

/* Datenschutz Section */
.datenschutz {
    margin-top: 3.5rem;
    animation: fadeInUp 1.2s ease-out 0.9s both;
}

.datenschutz-preview {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.datenschutz-preview:hover {
    opacity: 0.85;
}

.datenschutz-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245, 240, 230, 0.4);
    margin-bottom: 0.75rem;
}

.datenschutz-teaser {
    font-size: 0.85rem;
    color: rgba(245, 240, 230, 0.5);
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.overlay.open {
    opacity: 1;
    visibility: visible;
}

.overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 8, 5, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.overlay-panel {
    position: relative;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    background: linear-gradient(135deg, rgba(30, 27, 22, 0.97) 0%, rgba(20, 18, 14, 0.98) 100%);
    border: 1px solid rgba(212, 168, 85, 0.15);
    border-radius: 4px;
    padding: 2.5rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

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

.overlay-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    color: rgba(245, 240, 230, 0.4);
    font-size: 1.6rem;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    padding: 0.2rem 0.4rem;
}

.overlay-close:hover {
    color: var(--gold);
}

.overlay-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--gold);
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.overlay-content {
    text-align: left;
    font-size: 0.82rem;
    color: rgba(245, 240, 230, 0.55);
    line-height: 1.7;
}

.overlay-content p {
    margin-bottom: 0.6rem;
}

.overlay-content strong {
    color: rgba(245, 240, 230, 0.7);
    font-weight: 500;
}

.overlay-content a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 168, 85, 0.3);
    transition: border-color 0.3s ease;
}

.overlay-content a:hover {
    border-color: var(--gold);
}

.datenschutz-stand {
    margin-top: 1.2rem !important;
    font-style: italic;
    color: rgba(245, 240, 230, 0.35) !important;
}

/* Overlay scrollbar */
.overlay-panel::-webkit-scrollbar {
    width: 4px;
}

.overlay-panel::-webkit-scrollbar-track {
    background: transparent;
}

.overlay-panel::-webkit-scrollbar-thumb {
    background: rgba(212, 168, 85, 0.2);
    border-radius: 2px;
}

.overlay-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 168, 85, 0.4);
}

/* Footer */
.footer {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: rgba(245, 240, 230, 0.3);
    letter-spacing: 0.05em;
}

/* Floating Elements */
.floating-element {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 168, 85, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.floating-element:nth-child(1) {
    top: 10%;
    left: -150px;
    animation: float 20s ease-in-out infinite;
}

.floating-element:nth-child(2) {
    bottom: 10%;
    right: -100px;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(20px, -20px); }
    50% { transform: translate(-10px, 20px); }
    75% { transform: translate(15px, 10px); }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }

    .services {
        gap: 0.75rem;
    }

    .service-tag {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .quote-section {
        padding: 1.5rem 1rem;
    }

    .footer {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 3rem;
        text-align: center;
    }
}

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