:root {
    --brand-dark: #0f172a;
    --brand-light: #0ea5e9;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-soft: #f8fafc;
    --border-steel: rgba(15, 23, 42, 0.08);
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-soft);
    color: var(--text-main);
    overflow-x: hidden;
}

#vanta-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; opacity: 0.8;
}

/* --- HEADER & NAVIGATION --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 85px; /* Etwas schmaler für mehr Fokus auf den Content */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    z-index: 2000;
    border-bottom: 1px solid var(--border-steel);
    box-sizing: border-box;
}

.logo-img { 
    height: 80px; /* Wie besprochen die elegante Größe */
    width: auto;
    display: block;
    transition: transform 0.3s ease;
    cursor: pointer; /* NEU: Zeigt an, dass das Logo anklickbar ist */
}

.logo-img:hover {
    transform: scale(1.05); /* Ein kleiner visueller Effekt beim Hover */
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 20px;
}

.nav-link {
    text-decoration: none;
    color: var(--brand-dark);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.nav-link.login-link {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-right: 10px;
}

.nav-link:hover { color: var(--brand-light); }

.nav-menu li:last-child {
    margin-left: 5px;
    padding-left: 15px;
    border-left: 1px solid var(--border-steel);
}

.contact-btn {
    background: var(--brand-dark);
    color: white !important;
    border-radius: 4px;
    padding: 10px 22px !important;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.1);
}

/* --- SEKTIONS-SYSTEM (Unterseiten-Gefühl) --- */
section {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    padding: 140px 8% 60px;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
}

/* Standard für alle Unterseiten */
section.active {
    display: block; 
    opacity: 1;
    transform: translateY(0);
}

/* NEU: Spezial-Regel für die Startseite, damit sie IMMER zentriert bleibt */
#home.active {
    display: flex !important; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* --- STARTSEITE (HOME) ZENTRIERUNG --- */
#home {
    height: 100vh;           /* Volle Fensterhöhe */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertikale Zentrierung */
    align-items: center;     /* Horizontale Zentrierung */
    text-align: center;
    padding: 0 8%;
    box-sizing: border-box;
    overflow: hidden;        /* Verhindert Scrollen auf der Startseite */
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1000px;
    margin-top: -40px;       /* Optischer Ausgleich für den Header */
}

/* --- TEXT-GRÖSSE & FARBE (ZURÜCKGESTELLT) --- */
h1 { 
    font-size: 3.6rem;       /* Die schwarze Schrift - jetzt deutlich kleiner */
    font-weight: 650;        /* Etwas dünner für mehr Eleganz */
    letter-spacing: -1px; 
    color: var(--brand-dark); 
    line-height: 1.2;
    margin: 10px 0;
}

.txt-type { 
    color: var(--brand-light) !important; 
    font-size: 5.5rem;       /* Die blaue Schrift - bleibt groß und dominant */
    font-weight: 800;        /* Extra fett für den Fokus */
    display: block;          /* Setzt das blaue Wort in eine neue Zeile für maximale Wirkung */
    margin-top: 10px;
}

/* --- DER STABILE WRAPPER (Wächst nach oben) --- */
.hero-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Text wächst nach oben weg */
    min-height: 380px;         /* Genug Platz für den Text */
    width: 100%;
}

/* --- FOOTER VERSTECKEN (WICHTIG) --- */
/* Auf der Startseite soll der Footer unsichtbar sein */
#home.active ~ .supreme-footer {
    display: none;
}

/* --- UNIFIED GLASS CARDS --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 40px;
    border: 1px solid var(--border-steel);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
    border-color: var(--brand-light);
}

/* --- CTA BUTTONS --- */
.cta-button {
    background: var(--brand-dark);
    color: white;
    padding: 18px 45px;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: 0.4s;
    display: inline-block;
    text-decoration: none;
}

.cta-button::after {
    content: ''; position: absolute; top: -50%; left: -100%;
    width: 50%; height: 200%; background: rgba(255, 255, 255, 0.1);
    transform: rotate(25deg); transition: 0.6s;
}

.cta-button:hover::after { left: 150%; }
.cta-button:hover { background: var(--brand-light); transform: translateY(-2px); }

/* --- PRICING SPECIFIC --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
    padding: 0 5%;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-steel);
    padding: 40px;
    text-align: left;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.pricing-card.highlighted {
    border: 2px solid var(--brand-light);
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.1);
}

.card-badge {
    background: var(--brand-light);
    color: white;
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 20px;
    align-self: flex-start;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 800;
}

.features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    flex-grow: 1;
}

.features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-steel);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.price-box {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.setup { font-weight: 800; color: var(--brand-dark); font-size: 1.1rem; }
.monthly { color: var(--brand-light); font-size: 0.9rem; font-weight: 600; }

/* Der Fokus-Modus für den Hintergrund */
#vanta-bg {
    transition: opacity 0.8s ease-in-out; /* Weicher Übergang */
}

body.focus-mode #vanta-bg {
    opacity: 0.15 !important; /* Sehr dezent auf Unterseiten */
}

/* Der gefrostete Glas-Effekt für die Modell-Karten */
.pricing-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px); /* Stärkerer Blur für bessere Lesbarkeit */
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-steel);
    padding: 40px;
    /* ... restliches Styling ... */
}

.trust-footer {
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid var(--border-steel);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.trust-footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Ein kleiner Akzent für die Listen-Punkte */
.features li::before {
    content: '✓';
    color: var(--brand-light);
    margin-right: 10px;
    font-weight: 800;
}

/* --- FOOTER STYLING --- */
.supreme-footer {
    background: rgba(15, 23, 42, 0.95); /* Dunkles Amboss-Blau */
    color: white;
    padding: 10px 8% 20px;
    border-top: 1px solid var(--border-steel);
    position: relative;
    z-index: 10;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 10px;
}

.footer-logo {
    height: 35px;
    margin-bottom: 15px;
    filter: brightness(0) invert(1); /* Macht das Logo weiß, falls es dunkel ist */
}

.footer-brand p {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.6;
}

.footer-contact h4, .footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: px;
    color: var(--brand-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-contact p, .footer-links a {
    font-size: 0.9rem;
    color: #cbd5e1;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--brand-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: #64748b;
}

/* Expertise Header Styling */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--brand-dark);
    margin: 10px 0;
}

/* Karten-Details */
.card h3 {
    font-size: 1.4rem;
    margin: 15px 0;
    color: var(--brand-dark);
}

.card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.card-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--brand-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
    display: block;
}

/* --- LOGIN & AUTH SPECIFIC --- */
.auth-container {
    max-width: 450px;
    margin: 0 auto;
    text-align: center;
}

.auth-toggle {
    display: flex;
    background: var(--border-steel);
    border-radius: 4px;
    margin-bottom: 30px;
    padding: 5px;
}

.toggle-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 10px;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    color: var(--text-muted);
}

.toggle-btn.active {
    background: white;
    color: var(--brand-dark);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-form input {
    padding: 15px;
    border: 1px solid var(--border-steel);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    font-family: inherit;
    outline: none;
    transition: 0.3s;
}

.auth-form input:focus {
    border-color: var(--brand-light);
    background: white;
}

.forgot-pw, .terms {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    margin-top: 10px;
}

.terms a { color: var(--brand-light); text-decoration: none; }

.logout-link-header {
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-left: 8px;
    cursor: pointer;
    vertical-align: middle;
    transition: 0.3s;
}

.logout-link-header:hover {
    color: #ef4444; /* Ein dezentes Rot nur beim Drüberfahren */
}

.expertise-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expertise-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 165, 233, 0.1);
    border-color: var(--brand-light);
}

.read-more {
    display: inline-block;
    margin-top: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--brand-light);
    text-transform: uppercase;
}

.back-nav {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
    display: inline-block;
}

.back-nav:hover {
    color: var(--brand-light);
}

.hero-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Drückt den Inhalt nach unten Richtung Button */
    min-height: 350px; /* Dieser Wert hält den Platz für den längsten Text frei */
    margin-bottom: 40px; /* Fester Abstand zum Button */
}

/* Optional: Damit der Schreibmaschinen-Effekt 
   immer eine Zeile belegt und nicht flackert */
.txt-type {
    display: inline-block;
    min-width: 10px;
}

/* --- KONTAKTFORMULAR OPTIMIERUNG --- */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.input-group {
    text-align: left;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--brand-light);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.supreme-form input, 
.supreme-form select, 
.supreme-form textarea {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border-steel);
    padding: 15px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--brand-dark);
    outline: none;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.supreme-form input:focus, 
.supreme-form select:focus, 
.supreme-form textarea:focus {
    border-color: var(--brand-light);
    background: white;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.1);
}

.form-submit {
    width: 100%; /* Button über die ganze Breite für mehr Präsenz */
    border: none;
}

/* Anpassung für mobile Geräte */
@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}