/* ==========================================================================
   styles.css - Globale Styles, Header, Footer & Alle Animationen
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { display: none; }

html { line-height: 1.5; -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; background-repeat: no-repeat; }

@font-face {
    font-family: 'Nunito'; font-style: normal; font-weight: 200 1000; font-display: swap;
    src: url('/assets/fonts/nunito.woff2') format('woff2');
}

body {
    background-color: #000; background-image: linear-gradient(to bottom, #1a1a00, #0d0700);
    min-height: 100vh; color: #e0e0e0; font-family: 'Nunito', sans-serif;
    overflow-x: hidden; scroll-behavior: smooth; position: relative; display: flex; flex-direction: column;
} 

a { color: inherit; text-decoration: inherit; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
img { display: block; max-width: 100%; -webkit-user-drag: none; user-select: none; pointer-events: none; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }

p, h1, h2, h3, h4, h5, h6, li, blockquote, pre, code {
    -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text; cursor: auto;
}
input, textarea {
    -webkit-user-select: text !important; -moz-user-select: text !important; -ms-user-select: text !important; user-select: text !important;
}

.legal-content { user-select: text; }
body:not(.legal-page) { user-select: none; }

/* --- Background Canvas --- */
#bg-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    opacity: 0; animation: fadeInCanvas 1.5s ease-in-out 0.15s forwards;
}
@media (max-width: 768px) {
    #bg-canvas { display: none !important; }
    body { background: linear-gradient(135deg, #000, #1a1a00, #000); background-size: 400% 400%; animation: mobileBgPulse 8s ease infinite; }
}

/* --- Layout & Typography --- */
.container { width: 100%; max-width: 56rem; margin: 0 auto; padding: 0 1rem; }
.main-content { padding-top: 7rem; padding-bottom: 3rem; perspective: 1000px; flex: 1 0 auto; }
.content-section { margin-top: 4rem; }
.section-title { font-size: 1.875rem; line-height: 2.25rem; font-weight: 700; color: #fff; margin-bottom: 2rem; }
.text-center { text-align: center; }

@media (min-width: 640px) { .main-content { padding-top: 9rem; } .content-section { margin-top: 5rem; } }
@media (min-width: 1024px) { .content-section { margin-top: 6rem; } }

/* Shared Page Headers (Wird auf fast allen Unterseiten genutzt) */
.page-header { text-align: center; margin-bottom: 2rem; width: 100%; }
.page-title { font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
.page-desc { font-size: 1.125rem; line-height: 1.625; color: #a3a3a3; max-width: 42rem; margin: 0 auto; }

@media (min-width: 640px) { .page-title { font-size: 3rem; line-height: 1; } .page-desc { font-size: 1.25rem; line-height: 1.75rem; } }
@media (min-width: 768px) { .page-title { font-size: 3.75rem; line-height: 1; } }

.site-header {
    position: fixed; 
    top: 1rem; 
    left: 50%; 
    transform: translateX(-50%);
    width: calc(100% - 2rem); 
    max-width: 56rem; 
    z-index: 50; 
    padding: 0.5rem 1rem;
    background-color: rgba(150, 75, 0, 0.1);
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 9999px;
    box-shadow: 0 4px 200px -2px rgba(0, 0, 0, 0.75);
}


.header-container { display: flex; align-items: center; position: relative; justify-content: space-between; }

/* Original Logo Setup (Mobile hidden) */
.logo-wrapper { flex-shrink: 0; display: none; } 
.logo-img { height: 2.5rem; width: auto; }

/* Link Styles */
.nav-link { color: #d1d5db; transition: color .2s ease; }
.nav-link:hover { color: #F59E0B; }
.nav-link-now { color: #F59E0B; transition: color .2s ease; }
.nav-link-now:hover { color: #d1d5db; }

.header-actions { display: flex; gap: .5rem; z-index: 55; }

.lang-toggle {
    background: transparent; border: 1px solid #444; color: #999; padding: .25rem .75rem;
    border-radius: 33px; font-size: .875rem; font-weight: 500; transition: all .2s ease;
}
.lang-toggle.active { background: linear-gradient(90deg, #F59E0B, #EAB308); border-color: #F59E0B; color: #0a0a0a; font-weight: 700; }

/* --- Hamburger Menu (Mobile) --- */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 1.8rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 55;
}

.hamburger-line {
    width: 2rem;
    height: 0.15rem;
    background: #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.2, 0.65, 0.3, 0.9);
    transform-origin: 1px;
}

.mobile-menu-btn.is-active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(2px, -2px); background: #F59E0B; }
.mobile-menu-btn.is-active .hamburger-line:nth-child(2) { opacity: 0; transform: translateX(15px); }
.mobile-menu-btn.is-active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(2px, 2px); background: #F59E0B; }

/* --- Mobile Navigation Overlay --- */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 45;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.main-nav.is-open {
    opacity: 1;
    visibility: visible;
}

.main-nav a {
        font-size: 1.3rem; /* Vergroessert fuer Mobile */
        font-weight: normal;
        text-transform: none;
        letter-spacing: normal;
        transform: none !important;
        opacity: 1 !important;
        transition: all .2s ease; 
        padding: 0.8rem 2rem; /* Vergroessert fuer Mobile */
        background-color: rgba(25, 25, 25, 0.4);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 9999px;
    }

.main-nav a.nav-link-now {
        border-color: rgba(245, 158, 11, 0.5);
        background-color: rgba(245, 158, 11, 0.1);
    }

.main-nav a:hover {
    background-color: rgba(30, 30, 30, 0.6);
    border-color: rgba(245, 158, 11, 0.3);
    color: #F59E0B;
    z-index: 50;
}

.main-nav.is-open a {
    transform: translateY(0);
    opacity: 1;
}

.main-nav.is-open a:nth-child(1) { transition-delay: 0.1s; }
.main-nav.is-open a:nth-child(2) { transition-delay: 0.15s; }
.main-nav.is-open a:nth-child(3) { transition-delay: 0.2s; }
.main-nav.is-open a:nth-child(4) { transition-delay: 0.25s; }

/* --- Desktop Ansicht (≥ 768px) --- */
@media (min-width: 768px) {
    .header-container { justify-content: flex-start; }
    .logo-wrapper { display: block; flex-shrink: 0; }
    .mobile-menu-btn { display: none; }
    .header-actions { margin-left: auto; }
    
    .main-nav { 
        position: absolute; 
        left: 50%; 
        top: 50%; 
        transform: translate(-50%, -50%); 
        width: auto;
        height: auto;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        display: flex;
        flex-direction: row;
        gap: 1.5rem; 
        opacity: 1;
        visibility: visible;
    }

    .main-nav a {
        font-size: 1rem; /* Zurueckgesetzt fuer Desktop */
        padding: 0.4rem 1.25rem; /* Zurueckgesetzt fuer Desktop */
        font-weight: normal;
        text-transform: none;
        letter-spacing: normal;
        transform: none !important;
        opacity: 1 !important;
        transition: color .2s ease;
    }
    
    .lang-toggle:hover:not(.active) { border-color: #777; color: #e0e0e0; }
}

/* --- Footer --- */
.site-footer-pill {
    margin: 0 auto 2rem auto; padding: 0.6rem 1.25rem; background-color: rgba(25, 25, 25, 0.4);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 9999px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.2); transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease; z-index: 10;
}
.site-footer-pill:hover { transform: translateY(-2px); border-color: rgba(245, 158, 11, 0.3); background-color: rgba(30, 30, 30, 0.6); }
.footer-content { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: #9ca3af; }
.footer-text { white-space: nowrap; }
.footer-dot { color: #4b5563; font-size: 1rem; display: flex; align-items: center; }
.footer-link { color: #d1d5db; text-decoration: none; transition: color 0.2s ease; white-space: nowrap; font-weight: 500; }
.footer-link:hover { color: #F59E0B; }

/* --- Globale Utilities & JS Klassen --- */
.inline-block { display: inline-block; }
.text-gradient-accent {
    background: linear-gradient(90deg, #F59E0B, #FFA500, #EAB308, #F59E0B); background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer 10s linear infinite;
}
.mt-xs { margin-top: .25rem; }
.mt-sm { margin-top: .5rem; }
.mb-sm { margin-bottom: .5rem; }
.mb-xl { margin-bottom: 4rem; }
.text-sm { font-size: .875rem; }
.text-amber { color: #F59E0B; }

/* JS Typisierung Animationen */
.word-animate { opacity: 0; display: inline-block; animation: blurRevealDoubleBounce 0.75s ease-out forwards; will-change: transform, opacity, filter; }
.char-animate { opacity: 0; display: inline-block; animation: blurRevealDoubleBounce 0.2s cubic-bezier(.2, .65, .3, .9) forwards; will-change: transform, opacity, filter; }
.text-animate-out { animation: blurHide 0.25s cubic-bezier(.2, .65, .3, .9) forwards; will-change: transform, opacity, filter; }
.text-animate-in { animation: blurRevealDoubleBounce 0.25s cubic-bezier(.2, .65, .3, .9) forwards; will-change: transform, opacity, filter; }

/* --- Globale Basis der Glassmorphism-Karten --- */
.intro-card, .project-card, .domain-card, .social-button, .contact-card, .domains-section-card, .legal-card, .tech-card, .contact-section-card, .status-card {
    background-color: rgba(17, 17, 17, .6); backdrop-filter: blur(61.23px); -webkit-backdrop-filter: blur(61.23px);
    border-radius: 35.44px; border: 2px solid #27272a; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease; text-decoration: none;
    
    /* FIX: Breite an Inhalt anpassen und zentrieren */
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .project-card:hover, .domain-card:hover, .social-button:hover, .contact-card:hover {
        transform: translateY(-5px); box-shadow: 0 0 25px -5px rgba(245, 158, 11, .4); border-color: transparent;
        background: linear-gradient(rgba(17, 17, 17, .7), rgba(17, 17, 17, .7)) padding-box, linear-gradient(120deg, #F59E0B, #EAB308, #FFA500) border-box;
    }
}

/* --- Alle Globalen Keyframes (WICHTIG FÜR JS) --- */
@keyframes fadeInCanvas { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes mobileBgPulse { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes blurRevealDoubleBounce { 0% { opacity: 0; filter: blur(12px); transform: translateY(-12px); } 100% { opacity: 1; filter: blur(0); transform: translateY(0); } }
@keyframes blurHide { 0% { opacity: 1; filter: blur(0); transform: translateY(0); } 100% { opacity: 0; filter: blur(30px); transform: translateY(30px); } }
@keyframes contactReveal { 0% { opacity: 0; transform: translateY(30px) scale(0.9) rotateX(-15deg); filter: blur(8px); } 100% { opacity: 1; transform: translateY(0) scale(1) rotateX(0); filter: blur(0); } }
@keyframes h1Reveal { 0% { opacity: 0; transform: translateY(20px); filter: blur(12px); } 100% { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes imageReveal { 0% { opacity: 0; transform: scale(0.85) translateY(20px); filter: blur(12px); } 100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); } }

/* ==========================================================================
   System Info Overlay
   ========================================================================== */
.info-header-btn {
    display: flex; align-items: center; justify-content: center;
    width: 2.25rem; height: 2.25rem; padding: 0; border-radius: 50%; margin-left: 0.25rem;
}

.sys-overlay-backdrop {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    z-index: 9999; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sys-overlay-backdrop.active { opacity: 1; visibility: visible; }
.sys-overlay-backdrop.active .sys-overlay-card { animation: contactReveal 0.6s cubic-bezier(0.34, 1.3, 0.64, 1) forwards; }

.sys-overlay-card { width: 90%; max-width: 420px; display: flex; flex-direction: column; gap: 2rem; padding: 2.5rem; cursor: default; opacity: 0; }

.sys-overlay-title { font-size: 1.75rem; font-weight: 700; display: flex; align-items: center; gap: 0.75rem; justify-content: center; margin-bottom: 0.5rem; }

.sys-overlay-content { display: flex; flex-direction: column; gap: 1.25rem; font-size: 1.05rem; }

.sys-info-row { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 0.75rem; }
.sys-info-label { color: #9ca3af; font-weight: 600; margin-right: 1rem; }
.sys-info-value { color: #fff; font-weight: 500; text-align: right; }

.sys-overlay-actions { display: flex; gap: 0.75rem; width: 100%; flex-wrap: wrap; margin-top: 0.5rem; }

.sys-action-link {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    color: #fff; text-decoration: none; font-weight: 600; font-size: 0.95rem;
    padding: 0.75rem 1rem; border-radius: 12px; background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1); transition: all 0.3s ease; flex: 1;
}
.sys-action-link:hover { background: rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.4); }

.sys-close-btn { margin-top: 1rem; width: 100%; padding: 1rem; border-radius: 999px; font-size: 1.05rem; }

/* Container-Erweiterung für WQHD & 4K */
@media (min-width: 1440px) {
    .container { max-width: 75rem; } /* ca. 1200px Breite */
}
@media (min-width: 1920px) {
    .container { max-width: 90rem; } /* ca. 1440px Breite */
}