/* style.css – IDA Akademie Stil */

:root {
    --ida-rot: #d40e52;
    --text-grau: #333;
    --hellgrau: #f5f5f5;
    --schrift: 'Open Sans', Arial, sans-serif;
}

body {
    margin: 0;
    font-family: var(--schrift);
    color: var(--text-grau);
    background-color: #fff;
    line-height: 1.6;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ida-rot);
}
.logo span {
    color: #555;
}

.nav a {
    color: var(--text-grau);
    text-decoration: none;
    margin: 0 12px;
    font-weight: 600;
}
.nav a:hover {
    color: var(--ida-rot);
}



.btn-primary {
    background-color: var(--ida-rot);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}
.btn-primary:hover {
    background-color: #b10c45;
}

/* Sections */
.section {
    padding: 80px 20px;
    text-align: left;
}
.section.alt {
    background-color: var(--hellgrau);
}
.section h2 {
    color: var(--ida-rot);
}
.content {
    max-width: 900px;
    margin: 0 auto;
}
.section-image {
    width: 100%;
    border-radius: 10px;
    margin-top: 20px;
    display: block;
}

/* List */
.list {
    list-style: disc;
    padding-left: 20px;
}
.list li {
    margin-bottom: 8px;
}

/* Formular */
.form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
input[type="text"],
input[type="email"] {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
}
.checkbox-group label {
    display: inline-block;
    margin-right: 15px;
    margin-top: 5px;
}
.success-message {
    background-color: #e8ffe8;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #b6f5b6;
    color: #2b8a2b;
}

/* Footer */
.footer {
    background-color: #222;
    color: #eee;
    padding: 50px 20px;
    text-align: center;
}
.footer a {
    color: #fff;
    text-decoration: underline;
}

/* Wegbeschreibung Bilder nebeneinander */
.weg-images {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.weg-item {
    flex: 1 1 45%;
    text-align: center;
}

.weg-item img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.weg-text {
    margin-top: 10px;
    font-weight: 600;
    color: #333;
}

/* -------------------------------------- */
/* Mobile Navigation mit Hamburger-Button */
/* -------------------------------------- */

/* Grundzustand: Button vollständig unsichtbar auf Desktop */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    line-height: 0;
    cursor: pointer;
}

/* Hamburger-Linien (wird dynamisch eingefügt in PHP-Datei) */
.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    margin: 4px 0;
    background-color: var(--ida-rot);
    transition: all 0.3s ease;
}

/* Animation: wenn geöffnet */
.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Mobile Ansicht --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* nur mobil sichtbar */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        z-index: 1001;
    }

    .nav {
        position: absolute;
        top: 70px;
        right: 0;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        transition: max-height 0.3s ease-out;
    }

    .nav a {
        display: block;
        width: 100%;
        padding: 15px;
        text-align: center;
        border-top: 1px solid #eee;
        margin: 0;
    }

    /* Sichtbarer Zustand */
    .nav.nav-open {
        max-height: 400px; /* oder mehr, je nach Anzahl der Links */
        transition: max-height 0.4s ease-in;
    }
}

/* --- Desktop-Ansicht (Sicherheitsschicht) --- */
@media (min-width: 769px) {
    .menu-toggle {
        display: none !important;
        visibility: hidden;
    }
}


.logo {
    display: flex;
    align-items: center;
    gap: 10px;       /* Abstand zwischen den Logos */
    padding: 5px 10px; /* optional etwas Abstand zum Rand */
}

.logo img {
    height: 60px;    /* feste Höhe für beide Logos */
    width: auto;     /* Breite proportional zur Höhe */
    object-fit: contain;
}
/* Header-Logos */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;      /* Abstand zwischen den Logos */
}

.logo img {
    max-height: 60px;  /* Logos maximal 60px hoch */
    width: auto;       /* Breite proportional */
    object-fit: contain;
}

/* Optional: einzelne Größen anpassen */
.logo-left {
    max-height: 55px;  /* Bayer-Logo etwas kleiner */
}

.logo-right {
    max-height: 60px;  /* IDA-Logo etwas größer */
}


/* ----------------------------
   Logos im Header fixieren
   ---------------------------- */
.header .logo {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

.header .logo img {
    height: auto !important;       /* Höhe proportional */
    max-height: 60px !important;   /* maximale Höhe */
    width: auto !important;        /* proportional */
    object-fit: contain !important;
    display: block !important;
}

/* Optional: Bayer-Logo etwas kleiner */
.header .logo-left {
    max-height: 55px !important;
}

.header .logo-right {
    max-height: 60px !important;
}

.section-bg {
    position: relative;
    background-image: url('iStock-1350855315web.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 60px 20px 150px 20px; /* oben 60px, rechts/links 20px, unten 100px */
}


.section-bg .content {
    position: relative;
    z-index: 2; /* Text liegt über dem Bild */
}

.section-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4); /* optional: dunkler Overlay für bessere Lesbarkeit */
    z-index: 1;
}

/* === Optimierte Darstellung der Wunschtermine mit Ampel-System === */
.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 10px;              /* Abstand zwischen Radio, Text & Ampel */
  margin-bottom: 1.em;   /* etwas mehr Abstand zwischen Zeilen */
  font-size: 1rem;
  line-height: 1.18;
  cursor: pointer;
}

/* Die Radio-Buttons etwas größer & mit Abstand */
.checkbox-group input[type="radio"] {
  transform: scale(1.2);
  margin-right: 8px;
}

/* Ampel-Punkte */
.ampel {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-left: 8px;
  flex-shrink: 0;
  box-shadow: 0 0 5px rgba(0,0,0,0.25);
  transition: transform 0.2s ease;
}

/* Farben */
.ampel.gruen { background-color: #4CAF50; }  /* grün */
.ampel.gelb  { background-color: #FFC107; }  /* gelb */
.ampel.rot   { background-color: #E53935; }  /* rot */

/* Hover-Effekt */
.checkbox-group label:hover .ampel {
  transform: scale(1.25);
}

/* Durchgestrichene Termine (ausgebucht) */
.checkbox-group label[style*="line-through"] {
  opacity: 0.6;
}


.hero {
  position: relative;
  background: url('iStock-1350855315web.jpg') center bottom / cover no-repeat;
  min-height: 120vh; /* Höhe erhöhen, damit das Bild weiter nach unten geht */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
}





.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45); /* Overlay */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  text-align: center;
  background: rgba(255,255,255,0.20);
  padding: 6rem;
  border-radius: 12px;
  backdrop-filter: blur(3px);
}

.hero h1,
.hero .subtitle,
.hero .cta-text {
  color: #fff !important;
}


.hero-title {
    color: #fff;
    font-size: 2.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.footer-links {
  text-align: center;
  font-size: 14px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.intro-block {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    flex-wrap: nowrap;
}

.intro-media {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
}

.portrait-inline {
    width: 120px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.mini-bio {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 0.95rem;
    line-height: 1.35;
}

.mini-bio strong {
    font-size: 1.05rem;
    margin-bottom: 2px;
}

/* Mobile */
@media(max-width: 768px) {
    .intro-block {
        flex-direction: column;
        text-align: center;
    }
    .intro-media {
        flex-direction: column;
        align-items: center;
    }
}

/* Anrede Dropdown anpassen */
select[name="anrede"] {
    width: 200px;      /* Breite der Box */
    padding: 6px 10px; /* Innenabstand */
    font-size: 16px;   /* Schriftgröße */
    line-height: 1.4;  /* Zeilenhöhe */
    border-radius: 4px; 
    border: 1px solid #ccc;
    appearance: none;  /* Entfernt Standard-Pfeil (Browser abhängig) */
    -moz-appearance: none;
    -webkit-appearance: none;
}

/* Optional: Pfeil selbst gestalten */
select[name="anrede"]::-ms-expand {
    display: none;
}

.zert-hinweis {
    all: unset;
    background: transparent;
    background-color: #d40e52;
    color: #ffffff;
    border: 2px solid #d40e52;
    padding: 10px 14px;
    border-radius: 10px;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.4;
    display: inline-block;
    float: right;
    margin-top: 20px;
}
