/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    --bg-color: #0b0c10;
    --card-bg: rgba(255, 255, 255, 0.02);
    --card-border: rgba(255, 255, 255, 0.05);
    --text-primary: #f5f5f7;
    --text-secondary: #9ea4b0;
    --accent-cream: #e1dcd6;
    --accent-hover: #ffffff;
    --status-green: #4ade80;
    --status-green-glow: rgba(74, 222, 128, 0.2);
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
}

/* Ambienter Hintergrund-Glow (DSGVO-konform ohne externe Medien) */
.bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(225, 220, 214, 0.03) 0%, rgba(11, 12, 16, 0) 70%);
    pointer-events: none;
    z-index: 1;
    animation: pulseGlow 8s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.6;
        width: 500px;
        height: 500px;
    }
    100% {
        opacity: 1;
        width: 700px;
        height: 700px;
    }
}

/* ==========================================================================
   LAYOUT CONTAINER
   ========================================================================== */
.container {
    width: 100%;
    max-width: 600px;
    padding: 40px 24px;
    text-align: center;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 85vh;
}

/* ==========================================================================
   HEADER / LOGO
   ========================================================================== */
.logo-container {
    margin-bottom: 40px;
    perspective: 1000px;
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

/* Subtiler Glow direkt hinter dem transparenten Logo */
.logo-container::before {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(225, 220, 214, 0.08) 0%, rgba(11, 12, 16, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    filter: blur(12px);
    animation: pulseLogoGlow 8s ease-in-out infinite alternate;
}

@keyframes pulseLogoGlow {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.05);
        opacity: 1;
    }
}

.logo {
    max-width: 240px; /* Von 150px erhöht für eine präsentere Darstellung */
    height: auto;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.65));
    transition: var(--transition-smooth);
    animation: floatLogo 6s ease-in-out infinite;
}

.logo:hover {
    transform: scale(1.03) rotateY(5deg);
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.7));
}

@keyframes floatLogo {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--status-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--status-green-glow);
    animation: blinkDot 2s infinite;
}

.status-text {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-primary);
    opacity: 0.9;
}

@keyframes blinkDot {
    0%, 100% {
        opacity: 0.4;
        transform: scale(0.9);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
        box-shadow: 0 0 12px var(--status-green);
    }
}

/* Typography */
h1 {
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 30%, var(--accent-cream) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.25;
}

.subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 460px;
    margin-bottom: 36px;
}

/* Email Kontakt Button */
.contact-box {
    margin-top: 10px;
}

.contact-box p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.email-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--text-primary);
    color: var(--bg-color);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.email-btn svg {
    transition: var(--transition-smooth);
}

.email-btn:hover {
    background: var(--accent-cream);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.email-btn:hover svg {
    transform: translateX(2px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-trigger {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 4px 8px;
}

.legal-trigger:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.separator {
    color: rgba(255, 255, 255, 0.15);
    user-select: none;
}

/* ==========================================================================
   MODALS (IMPRESSUM & DATENSCHUTZ)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 7, 9, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: #121316;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    width: 100%;
    max-width: 650px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    transform: translateY(30px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.modal-overlay.active .modal-card {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-smooth);
    padding: 0 4px;
}

.close-btn:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Styling innerhalb des Modals */
.modal-body h3 {
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 10px;
    font-size: 1.05rem;
    font-weight: 600;
}

.modal-body h3:first-of-type {
    margin-top: 0;
}

.modal-body h4 {
    color: var(--text-primary);
    margin-top: 16px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}

.modal-body p {
    margin-bottom: 16px;
}

.modal-body ul {
    margin-bottom: 16px;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 6px;
}

.modal-body a {
    color: var(--accent-cream);
    text-decoration: underline;
    transition: var(--transition-smooth);
}

.modal-body a:hover {
    color: var(--text-primary);
}

/* Custom Scrollbar für die Modal-Texte */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */
@media (max-width: 480px) {
    .container {
        padding: 30px 16px;
        min-height: 90vh;
    }
    
    h1 {
        font-size: 1.7rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
    
    .email-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
    
    .modal-card {
        max-height: 90vh;
    }
}
