:root {
    --primary: #981895;
    --primary-soft: #f9ebf8;
    --bg: #ffffff;
    --text: #2d2d2d;
    --text-muted: #666;
    --white: #ffffff;
    --shadow: 0 15px 35px rgba(152, 24, 149, 0.12);
}

body.dark-mode {
    --bg: #0f0f0f;
    --text: #f0f0f0;
    --text-muted: #aaaaaa;
    --primary-soft: #2d0a2c;
    --white: #1e1e1e;
    --shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; 
    background: var(--bg); color: var(--text); transition: background 0.3s, color 0.3s;
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.lang-de .text-en, .lang-en .text-de { display: none; }

#scroll-progress { position: fixed; top: 0; left: 0; height: 4px; background: var(--primary); width: 0%; z-index: 2000; }

/* Navbar */
.navbar { padding: 20px 0; position: sticky; top: 0; background: var(--bg); z-index: 100; border-bottom: 1px solid rgba(152, 24, 149, 0.1); }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.nav-controls { display: flex; align-items: center; gap: 16px; }

/* Styling für Sprach-Button & Dark-Mode Switch */
.btn-control-icon, .btn-lang {
    background: transparent;
    border: 1.5px solid rgba(152, 24, 149, 0.2);
    cursor: pointer;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    border-radius: 12px;
    transition: all 0.2s ease;
    padding: 0 12px;
    font-weight: 700;
    font-size: 0.85rem;
}

body.dark-mode .btn-control-icon, body.dark-mode .btn-lang {
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.btn-control-icon:hover, .btn-lang:hover {
    background: var(--primary-soft);
    transform: translateY(-2px);
}

.btn-control-icon svg { width: 20px; height: 20px; }

/* Dark Mode Icon Switch */
body.dark-mode .icon-sun { display: block; }
body.dark-mode .icon-moon { display: none; }
body:not(.dark-mode) .icon-sun { display: none; }
body:not(.dark-mode) .icon-moon { display: block; }

/* Hero */
.hero { padding: 80px 0; text-align: center; }
.hero h1 { font-size: clamp(2.2rem, 7vw, 3.8rem); color: var(--primary); font-weight: 900; margin-bottom: 24px; line-height: 1.1; }
.hero p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 40px; max-width: 700px; margin-left: auto; margin-right: auto; }
.cta-group { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn-primary { background: var(--primary); color: white; padding: 16px 32px; border-radius: 50px; text-decoration: none; font-weight: 700; transition: 0.3s; border: none; }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); padding: 14px 30px; border-radius: 50px; text-decoration: none; font-weight: 700; transition: 0.3s; }
.btn-primary:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(152, 24, 149, 0.2); }

/* Status Badge */
.status-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--primary-soft); padding: 6px 16px; border-radius: 30px; font-weight: 700; color: var(--primary); margin-bottom: 24px; font-size: 0.85rem; }
.pulse { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; animation: pulse-anim 2s infinite; }
@keyframes pulse-anim { 0% { transform: scale(0.9); opacity: 1; } 70% { transform: scale(1.6); opacity: 0; } 100% { transform: scale(0.9); opacity: 0; } }

/* App Frame */
.app-section { padding: 80px 0; background: var(--primary-soft); border-radius: 60px 60px 0 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.phone-frame { width: 300px; height: 600px; background: #000; border-radius: 48px; padding: 12px; margin: 0 auto; box-shadow: 0 40px 80px var(--shadow); position: relative; }
.app-screen { background: var(--white); height: 100%; border-radius: 38px; overflow: hidden; display: flex; flex-direction: column; }

.profile-card { flex: 1; display: flex; flex-direction: column; }
.profile-image-container { height: 65%; background: linear-gradient(135deg, var(--primary), #ff9edb); position: relative; }
.profile-overlay { position: absolute; bottom: 0; width: 100%; padding: 15px; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: #fff; }
.profile-details { padding: 15px; flex: 1; display: flex; flex-direction: column; justify-content: center; }

.app-actions { height: 80px; display: flex; justify-content: center; gap: 24px; align-items: center; border-top: 1px solid rgba(0,0,0,0.05); }
.action-btn { width: 48px; height: 48px; border-radius: 50%; border: none; background: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.1); color: var(--text); }
.action-btn.reject { color: #ff4b4b; }
.action-btn.connect { color: #2de071; }
.action-btn svg { width: 22px; height: 22px; }

.tags span { font-size: 0.6rem; background: var(--primary-soft); color: var(--primary); padding: 3px 8px; border-radius: 6px; font-weight: 700; margin-right: 4px; }

/* Footer */
.footer { padding: 60px 0; border-top: 1px solid rgba(152, 24, 149, 0.1); }
.footer-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-links a { margin-left: 20px; color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 0.9rem; }

@media (max-width: 850px) { .grid-2 { grid-template-columns: 1fr; text-align: center; } .app-text { order: -1; } .nav-wrapper { flex-direction: row; } }

/* Features Section Layout */
.features {
    padding: 100px 0;
    background: var(--bg);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 40px;
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(152, 24, 149, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(152, 24, 149, 0.15);
}

/* Der kleine farbige Balken über dem Text */
.feature-bullet {
    width: 45px;
    height: 6px;
    background: var(--primary);
    border-radius: 3px;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--primary);
    font-weight: 800;
}

.feature-card p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Dark Mode Anpassung für Karten */
body.dark-mode .feature-card {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.05);
}
/* Logo Styling */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 40px; /* Höhe in der Navbar */
    width: auto; /* Proporzionale Breite */
    transition: filter 0.3s ease; /* Weicher Übergang für Dark Mode */
}

/* Dark Mode Anpassung für das Logo */
body.dark-mode .logo-img,
body.dark-mode .logo-img-footer {
    /* Macht das Logo komplett weiß, falls es dunkel ist */
    filter: brightness(0) invert(1);
}

/* Footer Logo */
.logo-img-footer {
    height: 30px; /* Etwas kleiner im Footer */
    width: auto;
    opacity: 0.7; /* Leicht transparent im Footer */
    transition: all 0.3s ease;
}

.logo-img-footer:hover {
    opacity: 1;
}
/* Styling für die neuen Unterseiten */
.page-content {
    padding: 60px 24px;
    min-height: 80vh;
}

.legal-section h1 {
    color: var(--primary);
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.legal-box {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(152, 24, 149, 0.1);
}

.legal-box h3 {
    margin-top: 25px;
    margin-bottom: 10px;
    color: var(--primary);
}

.legal-box p {
    margin-bottom: 15px;
    color: var(--text-muted);
}
/* Styling für den Zurück-Button */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

/* Hover-Effekt */
.btn-back:hover {
    transform: translateX(-5px);
    background: var(--primary);
    color: white;
}

/* Anpassung im Dark Mode */
body.dark-mode .btn-back {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .btn-back:hover {
    background: var(--primary);
}

/* Fix für die Nav-Wrapper Ausrichtung auf den Unterseiten */
.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Spezifisches Styling für Rechtstexte */
.legal-box {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.legal-box h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.legal-box h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-soft);
    padding-bottom: 5px;
}

.legal-box p {
    margin-bottom: 20px;
    color: var(--text);
}

.legal-box ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.legal-box li {
    margin-bottom: 10px;
}

.legal-footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
    font-style: italic;
}

/* Dark Mode Support für Links in Rechtstexten */
body.dark-mode .legal-box a {
    color: #ff9edb;
}
/* --- Kontakt Sektion (Überarbeitet für bessere Einpassung) --- */
.contact-section {
    padding: 100px 0;
    background: var(--bg); /* Behält den Seitenhintergrund */
    text-align: center; /* Zentriert die Überschrift */
}

.contact-section h2 {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 50px;
    font-weight: 900;
}

/* WICHTIG: Begrenzt die Breite des gesamten Formular-Bereichs */
.contact-wrapper {
    max-width: 600px; /* Gleiche maximale Breite wie die Feature-Karten-Gruppe */
    margin: 0 auto; /* Zentriert den Wrapper auf der Seite */
    padding: 0 20px; /* Sicherheitsabstand für mobile Geräte */
}

/* --- Das Formular-Gehäuse --- */
.contact-form {
    background: var(--white);
    padding: 50px;
    border-radius: 32px; /* Schön abgerundet wie die Karten */
    box-shadow: 0 20px 50px rgba(152, 24, 149, 0.1); /* Softe Schatten */
    border: 1px solid rgba(152, 24, 149, 0.05);
    text-align: left; /* Text innerhalb des Formulars wieder linksbündig */
}

.form-group {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 0.95rem;
}

/* --- Eingabefelder (Styling-Update) --- */
.form-group input, 
.form-group textarea {
    padding: 16px;
    border-radius: 14px;
    border: 2px solid rgba(152, 24, 149, 0.12); /* Sehr dezenter Rand */
    background: var(--primary-soft); /* Ganz leichter Lila-Ton als Hintergrund */
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Hover- & Focus-Effekte für bessere User Experience */
.form-group input:hover, 
.form-group textarea:hover {
    border-color: rgba(152, 24, 149, 0.3);
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white); /* Wird weiß, wenn man drin tippt */
    box-shadow: 0 0 0 4px var(--primary-soft);
}

/* --- Button Zentrierung --- */
.contact-form .btn-primary {
    width: 100%; /* Button über die volle Breite des Formulars */
    padding: 18px;
    font-size: 1.1rem;
    justify-content: center;
    display: flex;
}

/* --- Dark Mode Anpassungen --- */
body.dark-mode .contact-form {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .form-group input, 
body.dark-mode .form-group textarea {
    background: #0d0d0d;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .form-group input:focus, 
body.dark-mode .form-group textarea:focus {
    background: #141414;
}

/* --- Mobile Ansicht --- */
@media (max-width: 600px) {
    .contact-form {
        padding: 30px 20px;
        border-radius: 24px;
    }
    .contact-section h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
}