/* =================================================================== */
/* 1) FARB-VARIANTEN & THEMES
/* =================================================================== */
:root {
    --primary-color: #79d4b8;
    --primary-color-hover: #68b8a0;
    --secondary-color: #b0c4de;
    --background-color: #f0f8f7;
    --card-background: #ffffff;
    --text-color: #4a4a4a;
    --heading-color: #333;
    --border-color: #e0e0e0;
    --shadow-color: rgba(121, 212, 184, 0.15);
    --primary-gradient: linear-gradient(145deg, #79d4b8, #99e0ca);
}

body[data-theme="male"] {
    --primary-color: #336699;
    --primary-color-hover: #285580;
    --background-color: #f5f9fc;
    --border-color: #d0d8e0;
    --shadow-color: rgba(51, 102, 153, 0.15);
    --primary-gradient: linear-gradient(145deg, #336699, #5080b5);
}

body[data-theme="female"] {
    --primary-color: #f6c2c2;
    --primary-color-hover: #e8a8a8;
    --background-color: #fff7f7;
    --border-color: #f0dcdc;
    --shadow-color: rgba(246, 194, 194, 0.15);
    --primary-gradient: linear-gradient(145deg, #f6c2c2, #f9d4d4);
}


/* =================================================================== */
/* 2) GRUNDLAGEN & TYPOGRAFIE
/* =================================================================== */
body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.7;
    text-align: center;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--heading-color);
    font-weight: 700;
}

h1 { font-size: 2.2rem; margin-bottom: 1rem; }
h2 { font-size: 1.8rem; margin: 2rem 0 1.2rem; border-bottom: 3px solid var(--primary-color); display: inline-block; padding-bottom: 5px; }
h3 { font-size: 1.4rem; margin-bottom: 1rem; }
p, li { font-size: 1rem; }
a { color: var(--primary-color); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--primary-color-hover); }

/* Fließtext in Karten bleibt für gute Lesbarkeit linksbündig. */
.content-card p, .profile-card p, .faq-item p, .notification-list li,
.content-card ul, .faq-item ul, .profile-card ul {
    text-align: left;
}

/* Universeller Bild-Fix für alle Bilder */
img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* =================================================================== */
/* 3) LAYOUT & CONTAINER
/* =================================================================== */
.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 40px 0;
}


/* =================================================================== */
/* 4) NAVIGATION
/* =================================================================== */
.desktop-nav {
    display: none; justify-content: center; align-items: center;
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px);
    padding: 15px 0; border-bottom: 1px solid var(--border-color);
    position: sticky; top: 0; z-index: 1000;
}
.desktop-nav a { margin: 0 20px; font-weight: 700; color: var(--text-color); }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--primary-color); }

.mobile-header {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--card-background); padding: 10px 20px;
    border-bottom: 1px solid var(--border-color); position: sticky;
    top: 0; z-index: 1000;
}
.hamburger { background: none; border: none; font-size: 1.8rem; cursor: pointer; }
.mobile-nav {
    display: none; flex-direction: column; background: var(--card-background);
    position: fixed; top: 61px; left: 0; width: 100%; height: calc(100vh - 61px);
    z-index: 999;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; width: 100%; }
.mobile-nav li { border-bottom: 1px solid var(--border-color); }
.mobile-nav li a { display: block; padding: 15px 20px; text-align: left; }


/* =================================================================== */
/* 5) BUTTONS & FORMULARE
/* =================================================================== */

/* KORRIGIERT & VERBESSERT: Ein robustes System, das alle Button-Varianten abdeckt */
/* === BASIS === */
.btn, .button, input[type="submit"] {
  font-family: 'Montserrat', sans-serif;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 700;
  border: 2px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  display: inline-block;
  text-decoration: none !important;
  text-align: center;
  box-shadow: 0 4px 15px var(--shadow-color);
  transition: all 0.3s ease;
}

/* === HOVER === */
.btn:hover, .button:hover, input[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(0,0,0,0.1);
}

/* === PRIMARY === */
.btn-primary, .button-primary, input[type="submit"].primary {
  background: var(--primary-gradient);
  color: white !important;
  border-color: transparent;
}

/* === SECONDARY === */
.btn-secondary, .button-secondary, input[type="submit"].secondary {
  background: transparent;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color);
}



/* =================================================================== */
/* 6) KARTEN & KARTEN-LAYOUTS
/* =================================================================== */
.content-card, .profile-card, .step-card, .info-card, .faq-item, .notification-list li {
    background: var(--card-background); border: 1px solid var(--border-color);
    padding: 30px; margin: 30px auto; border-radius: 16px;
    box-shadow: 0 5px 25px var(--shadow-color);
}
.content-card:hover, .profile-card:hover, .step-card:hover, .info-card:hover, .faq-item:hover, .notification-list li:hover {
    transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); transition: all 0.3s ease;
}

.form-container-card { max-width: 500px; margin: 50px auto; padding: 40px; text-align: center; }
.form-container-card .btn, .form-container-card .button { width: 100%; margin-top: 20px; }

.profile-card { max-width: 700px; }
.profile-card h3 { margin-top: 0; margin-bottom: 20px; text-align: center; }

.profile-picture {
    display: block; width: 150px; height: 150px; object-fit: cover;
    border-radius: 50%; margin: 0 auto 20px; border: 2px solid var(--primary-color);
    box-shadow: 0 5px 20px var(--shadow-color);
}

.profile-images { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 20px; justify-content: center; }
.profile-images img { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border-color); }


/* Suchergebnis: Grid & Profile Cards (KORRIGIERT & VERBESSERT) */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.profile-grid .profile-card {
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--card-background);
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 0; /* WICHTIG: Padding wird entfernt, damit das Bild bündig abschließt */
    overflow: hidden; /* Stellt sicher, dass das Bild innerhalb der runden Ecken bleibt */
}
.profile-grid .profile-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.profile-grid .profile-card img {
    width: 100%;
    height: 220px;
    object-fit: cover; /* Verhindert Verzerrung und füllt den Bereich */
    display: block;
}
.profile-grid .profile-card .card-info {
    padding: 20px 15px; /* Innenabstand nur für den Textbereich */
}
.profile-grid .profile-card h3 {
    margin: 0 0 5px;
    font-size: 1.2rem;
}
.profile-grid .profile-card p {
    margin: 0 0 10px;
    color: var(--text-color);
    font-size: 0.9rem;
    text-align: center;
}

.notification-list { list-style: none; padding: 0; margin: 30px auto; max-width: 700px; }
.notification-list li { padding: 20px; margin-bottom: 15px; text-align: left; }
.notification-list small { display: block; margin-top: 8px; font-size: 0.9rem; color: #888; }

.interests-display { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.interest-tag { background-color: var(--primary-color); color: white; padding: 5px 12px; border-radius: 15px; font-size: 0.9rem; }

.step-icon {
  display: inline-block;
  font-size: 3rem;
  color: #e74c3c; /* MocLove-Rot */
  font-weight: bold;
  margin-bottom: 15px;
}
/* =================================================================== */
/* 7) DESKTOP-OPTIMIERUNG (ab 992px)
/* =================================================================== */
@media (min-width: 992px) {
    .container { max-width: 1280px; }
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    
    .steps-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
    .steps-container .step-card { margin: 0; }

    .testimonials-container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .testimonials-container .testimonial-card { margin: 0; }
    .features-grid { grid-template-columns: repeat(4, 1fr); }

    .profile-card { max-width: 900px; }
    .profile-header { display: flex; align-items: center; gap: 40px; margin-bottom: 40px; }
    .profile-header .profile-picture { margin: 0; flex-shrink: 0; width: 180px; height: 180px; }
    .profile-header .profile-summary { text-align: left; }
    .profile-header .profile-summary h3 { margin-top: 0; }

    /* Desktop-Nav wird sichtbar */
    .desktop-nav { display: flex; }
    .mobile-header, .mobile-nav { display: none; }
}


/* =================================================================== */
/* 8) MOBILE ANPASSUNGEN (bis 600px)
/* =================================================================== */
@media (max-width: 600px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    .form-container-card { margin: 20px auto; padding: 30px 20px; }
    .form-group { max-width: 100%; }
    .profile-card { padding: 30px 20px; }
    .profile-images img { width: 100px; height: 100px; }
}
/* =================================================================== */
/* MODUL: FORMULARE & BUTTONS (Optimiert & Mobil-Freundlich)
/* =================================================================== */

/* --- Formular-Layout & Gruppen --- */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}

/* --- Allgemeine Stile für alle Formular-Felder --- */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="search"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #fff;
    color: var(--text-color);
    box-sizing: border-box; /* Verhindert Layout-Probleme durch Padding */
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* --- Zustand, wenn ein Feld angeklickt wird (Fokus) --- */
.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type-="password"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(121, 212, 184, 0.4); /* Leichter Schein in Primärfarbe */
}

/* --- Spezifische Anpassungen --- */
textarea.form-control {
    min-height: 120px;
    resize: vertical; /* Erlaubt dem User, die Höhe anzupassen */
}

/* --- Buttons (basiert auf Ihrem guten bestehenden Design) --- */
.button, 
input[type="submit"], 
button {
  font-family: 'Montserrat', sans-serif;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 700;
  border: 2px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  display: inline-block;
  text-decoration: none !important;
  text-align: center;
  background: var(--primary-gradient);
  color: white !important;
  box-shadow: 0 4px 15px var(--shadow-color);
  transition: all 0.3s ease;
}

.button:hover, 
input[type="submit"]:hover,
button:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(0,0,0,0.1);
}

.button.secondary {
  background: transparent;
  color: var(--primary-color) !important;
  border-color: var(--primary-color);
}


/* --- Benachrichtigungen & Fehlermeldungen --- */
.alert {
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    border: 1px solid transparent;
}
.alert.success { background-color: #d4edda; color: #155724; border-color: #c3e6cb; }
.alert.error { background-color: #f8d7da; color: #721c24; border-color: #f5c6cb; }
.alert.info { background-color: #cce5ff; color: #004085; border-color: #b8daff; }
/* =================================================================== */
/* VERBESSERUNGEN FÜR MOBILES MENÜ (Stand-Alone)
/* =================================================================== */

/* Der Hamburger-Button bekommt eine feste Größe für die Animation */
.hamburger {
    padding: 10px;
    display: inline-block;
    cursor: pointer;
    background-color: transparent;
    border: 0;
    margin: 0;
}
.hamburger span {
    display: block;
    width: 24px; /* Breite der Striche */
    height: 3px;
    background-color: var(--heading-color);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
    position: relative;
}
.hamburger span + span {
    margin-top: 5px; /* Abstand zwischen den Strichen */
}

/* Die Animation zum "X", wenn der Button die Klasse .is-active hat */
.hamburger.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
    opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Das mobile Menü selbst: Ausblenden durch Position und Opazität */
.mobile-nav {
    display: block; /* Bleibt im DOM, wird aber durch CSS unsichtbar gemacht */
    visibility: hidden; /* Standardmäßig komplett unsichtbar & nicht klickbar */
    opacity: 0;
    transform: translateY(-10px); /* Leichte Animation von oben */
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out, visibility 0s 0.2s; /* Sichtbarkeit verzögert ändern */
}

/* Zustand, wenn das Menü offen ist (Klasse .is-open wird per JS hinzugefügt) */
.mobile-nav.is-open {
    display: flex; /* Wieder auf flex setzen, wie in Ihrem Original-CSS */
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s; /* Keine Verzögerung beim Sichtbarmachen */
}