/*
Theme Name: Hexenhain Theme
Description: Theme für hexenhain.de
Version: 0.1
Author: Satyria
*/

/* Schriftarten */
@font-face {
  font-family: 'Alice';
  src: url('../fonts/alice-v21-latin-regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-roman.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-italic.woff2') format('woff2');
}

/* Allgemeine Grundregeln */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Alice', serif;
  line-height: 1.6;
  color: #515b3a;
  background-color: white;
}

/* Header */
.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #515b3a;
  color: white;
  padding: 0.5rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  text-align: center;
}

@media (max-width: 985px) {
  .site-header {
    position: static;
  }
}

/* Logo */
.logo {
  max-width: 500px;
  margin-bottom: 0;
}

.logo img {
  width: 100%;
  height: auto;
  display: block;
}

/* Menü – Desktop */
.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

.main-nav li {
  position: relative;
}

.main-nav li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 1rem;
}

.main-nav li a:hover {
  color: #ffcc00;
}

/* Dropdowns – Desktop */
.main-nav li ul {
  display: none;
  position: absolute;
  background-color: #3f472d;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
  z-index: 1000;
}

.main-nav li:hover > ul {
  display: block;
}

.main-nav li ul li a {
  display: block;
  padding: 0.5rem 1rem;
  white-space: nowrap;
  font-size: 0.9rem;
  color: white;
}

.main-nav li ul li a:hover {
  background-color: #444;
  color: #ffcc00;
}

/* Hamburger & Schließen – global ausblenden */
.menu-toggle,
.menu-toggle-close {
  display: none;
}

/* Keyframe-Animationen */
@keyframes slideInFromRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);   opacity: 1; }
}

@keyframes slideOutToLeft {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(-100%); opacity: 0; }
}

@keyframes slideInFromLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}

@keyframes slideOutToRight {
  to { transform: translateX(100%); opacity: 0; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mobile-Menü */
@media (max-width: 985px) {
  .main-nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #3f472d;
    padding: 1rem;
    display: none;
    flex-direction: column;
    overflow-y: auto;
    z-index: 1000;
    margin: 0;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%;
    animation: fadeIn 0.3s ease-out;
  }

  .main-nav li {
    width: 100%;
    text-align: center;
  }

  .main-nav li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.25rem;
    padding: 0.75rem 1rem;
    display: block;
    transition: background-color 0.2s ease;
    border-radius: 6px;
  }

  .main-nav li a:hover,
  .main-nav li a:focus {
    background-color: #5a6445;
    color: #ffcc00;
  }

  /* Untermenüs (optional) */
  .main-nav li ul {
    display: none;
    margin-top: 0.5rem;
    margin-left: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid #a9d79e;
  }

  .main-nav li.expanded > ul {
    display: block;
  }

  /* Hamburger-Menü */
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    position: fixed;
    top: 1rem;
    right: 1rem;
  }

  /* Schließen-Button */
  .menu-toggle-close {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1002;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
  }

  .main-nav.active .menu-toggle-close {
    display: block;
  }

  /* Verstecke Hamburger, wenn Menü offen */
  .main-nav.active ~ .menu-toggle {
    display: none;
  }

  .main-nav li:not(:last-child) a {
    border-bottom: 1px solid #5a6445;
  }
}

/* Sehr kleine Bildschirme */
@media (max-width: 360px) {
  .main-nav li a {
    font-size: 1.1rem;
  }
}

/* Slider Container */
.slider
{
  position: relative;
  width: 100%;
  height: 400px; /* statt max-height */
  overflow: hidden;
  margin: 0 auto;
}

/* Slide Effekte */
.slide
{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Aktiver Slide – schiebt herein */
.slide.active
{
  animation: slideInFromRight 0.8s forwards;
  z-index: 2;
  opacity: 1;
}

.slide img
{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-text
{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
  background-color: rgba(0, 0, 0, 0.4);
  padding: 1rem 2rem;
  border-radius: 8px;
  z-index: 3;
}

/* Vorheriger Slide – schiebt hinaus */
.slide.prev
{
  animation: slideOutToLeft 0.8s forwards;
  z-index: 1;
}

/* Pfeile */
.nav
{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
}

.nav.prev
{
  left: 10px;
}

.nav.next
{
  right: 10px;
}

/* Indikatoren (Punkte unten) */
.indicators
{
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
  z-index: 10;
}

.indicator
{
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
}

.indicator.active
{
  background-color: #fff;
}

.slogans {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.slogans h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #333;
}

.slogans img {
  width: 80%;
  /*max-width: 300px; /* Begrenze maximale Größe, falls nötig */
  height: auto;
  display: block;
  margin: 0 auto 2rem auto; /* Abstand nach unten zum Text */
}

.slogans p {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #555;
}

@media (max-width: 985px)
{
  /* Slider Höhe anpassen */
  .slider
  {
    height: 250px;
  }

  /* Text im Slider etwas kleiner */
  .slide-text
  {
    font-size: 1.2rem;
    padding: 0.75rem 1.5rem;
  }
}

/* ————— RESPONSIVES GRID ————— */
.responsive-grid {
  display: grid;
  gap: 20px;
  margin: 20px 0;
}

/* Automatischer Modus: mindestens 200px breit */
.responsive-grid.auto-fit {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Feste Spaltenanzahl */
.responsive-grid.cols-1 { grid-template-columns: repeat(1, 1fr); }
.responsive-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.responsive-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.responsive-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.responsive-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.responsive-grid.cols-6 { grid-template-columns: repeat(6, 1fr); }

/* Grid-Item-Stil */
/* Sicherstellen, dass aspect-ratio überall funktioniert */
.grid-item > * {
  width: 100%;
  max-width: 100%;
}

/* Optional: max-width anpassen, wenn nötig */
.grid-item [style*="max-width"] {
  max-width: none; /* oder: max-width: 100% */
}

.grid-item {
  text-align: center; /* Zentrierung für alle Inhalte */
  padding: 16px;
  background: #f8f9fa;
  border-radius: 6px;
}

/* Für Cropped-Bilder im Grid */
.grid-item [style*="aspect-ratio"] {
  margin: 0 auto; /* zentrieren */
}

/* Stelle sicher, dass Bilder im Grid responsiv sind */
.grid-item img {
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  object-fit: cover; /* optional, falls du Zuschneiden willst */
}

/* Optional: Anpassung für Mobile (z. B. bei festen Spalten) */
@media (max-width: 600px) {
  .responsive-grid.cols-2,
  .responsive-grid.cols-3,
  .responsive-grid.cols-4,
  .responsive-grid.cols-5,
  .responsive-grid.cols-6 {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* Inhalt */
.content {
  background-color: #f4f4f4;
  max-width: 1000px;
  margin: 1rem auto;
  padding: 0 1rem;
}

.content article {
  margin-bottom: 2rem;
}

.content h2 {
  margin-bottom: 0.5rem;
  color: #515b3a;/*black;*/
}

.content h3 {
  /*margin-bottom: 0.5rem;*/
  color: #515b3a;/*black;*/
}.

.content p {
  color: #515b3a;/*black;*/
}

/* Footer */
.site-footer {
  background-color: #515b3a; /*#2c2c2c;*/
  color: white;
  text-align: center;
  padding: 2rem;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-nav li a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-nav li a:hover {
  text-decoration: underline;
}

@media (max-width: 985px) {
  .footer-nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
}

p {
  font-size: 1.2em;
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
}

h1 {
    display: block;
    font-size: 1.7em;
    margin-block-start: 0.83em;
    margin-block-end: 0.83em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}

h2 {
    display: block;
    font-size: 1.5em;
    margin-block-start: 0.83em;
    margin-block-end: 0.83em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}

h3 {
    display: block;
    font-size: 1.5em;
    margin-block-start: 0.83em;
    margin-block-end: 0.83em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
}

/* Meldungen aus Formulare */
.form-feedback-message {
  padding: 16px;
  margin: 20px auto;
  max-width: 800px;
  border-radius: 8px;
  font-size: 16px;
  text-align: center;
}

.form-feedback-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-feedback-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  text-align: left;
}

.form-feedback-error ul {
  margin: 10px 0 0 20px;
  padding-left: 0;
  list-style: none;
}

.form-feedback-error li {
  margin-bottom: 4px;
}

/* Buchung Startseite: */
      /* CSS direkt hier für die Übersichtlichkeit, später in style.css verschieben */
      .booking-intro
      {
        text-align: center;
        margin-bottom: 40px;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
      }

      .booking-options
      {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
        margin-bottom: 50px;
      }

      .booking-card
      {
        background: #fff;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 30px;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        transition: transform 0.2s, box-shadow 0.2s;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        text-decoration: none; /* Damit der Link keine Unterstriche macht */
        color: inherit;
      }

      .booking-card:hover
      {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-color: #dcb67f; /* Deine Akzentfarbe */
      }

      .card-icon
      {
        font-size: 3rem;
        margin-bottom: 20px;
        display: block;
      }

      .card-title
      {
        font-size: 1.5rem;
        margin-bottom: 10px;
        color: #333; /* Dunkler Text */
      }

      .card-text
      {
        font-size: 1rem;
        color: #666;
        line-height: 1.5;
        margin-bottom: 20px;
      }

      .btn-card
      {
        display: inline-block;
        padding: 10px 20px;
        background-color: #333;
        color: #fff;
        border-radius: 4px;
        text-decoration: none;
        transition: background 0.3s;
        margin-top: auto; /* Drückt Button nach unten */
      }

      .booking-card:hover .btn-card
      {
        background-color: #dcb67f; /* Akzentfarbe beim Hover */
        color: #000;
      }
      
/* seminare */
    .step-container
    {
      display: none;
      animation: fadeIn 0.4s;
    }

    .step-container.active
    {
      display: block; 
    }

    @keyframes fadeIn
    {
      from
      {
        opacity:0;
        transform: translateY(10px);
      }
      to
      {
        opacity:1;
        transform: translateY(0);
      }
    }

    /* Kurs Cards */
    .course-grid
    {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 20px;
    }
    
    .course-card
    {
      background: white; border: 1px solid #ddd; padding: 20px; border-radius: 8px; cursor: pointer; transition: 0.2s;
      border-left: 5px solid #17a2b8; /* Blau für Kurse */
    }
    .course-card:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
    .course-card.selected { background: #e3f2fd; border-color: #17a2b8; }

    /* Termin Liste */
    .date-list { display: grid; gap: 10px; margin-top: 20px; }
    .date-item
    {
      background: white; border: 1px solid #eee; padding: 15px; border-radius: 6px; 
      display: flex; justify-content: space-between; align-items: center; cursor: pointer;
    }
    .date-item:hover { background: #f8f9fa; border-color: #ccc; }
    .date-item.full { opacity: 0.6; cursor: not-allowed; background: #f8f9fa; }
    .date-item.selected { border-color: #28a745; background: #d4edda; }
.date-item .waitlist-btn {
  width: 100%;
  margin-top: 8px;
  font-size: 0.85em;
}

    /* Ampel-Badges */
    .badge { padding: 4px 8px; border-radius: 4px; font-size: 0.85em; color: white; }
    .bg-green { background-color: #28a745; }
    .bg-orange { background-color: #fd7e14; }
    .bg-red { background-color: #dc3545; }
    
      /* Summary Box */
      .summary-box { background: #f8f9fa; padding: 20px; border-radius: 8px; margin-bottom: 20px; border-left: 5px solid #dcb67f; }
      
       /* Formular-Modernisierung */
  .form-section {
    background: #fafafa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #eee;
  }
  .form-section legend {
    font-size: 1.1em;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #dcb67f;
    width: 100%;
    padding-left: 5px;
  }
  .form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
  }
  .form-row .form-group {
    flex: 1;
    min-width: 200px;
  }
  .form-group {
    margin-bottom: 15px;
  }
  .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px; /* verhindert Zoom auf iOS */
    transition: border-color 0.2s;
  }
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: #dcb67f;
    box-shadow: 0 0 0 2px rgba(220, 182, 127, 0.2);
  }
  .btn-primary {
    background: #515b3a;
    color: white;
    border: none;
    padding: 14px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
  }
  .btn-primary:hover {
    background: #c9a56b;
  }
  
  .btn-secondary {
    background: #bfb53a;
    color: white;
    border: none;
    padding: 14px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
  }
  .btn-secondary:hover {
    background: #c9a56b;
  }
  
    .badge-serie { background: #ffc107; color: #000; padding: 2px 6px; border-radius: 4px; font-weight: bold; font-size: 0.8em; }
    .event-card-full { opacity: 0.6; }
    .waitlist-btn {
      background: #6c757d; border-color: #6c757d;
    }

/* Shoppen */
    /* Wizard Steps - wie in anderen Formularen */
    .step-container { display: none; animation: fadeIn 0.4s; }
    .step-container.active { display: block; }
    @keyframes fadeIn { from { opacity:0; transform: translateY(10px); } to { opacity:1; transform: translateY(0); } }

    /* Time Slots */
    .slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; margin-top: 20px; }
    .time-slot {
      padding: 12px; background: #fff; border: 1px solid #ccc; border-radius: 4px; text-align: center; cursor: pointer; transition: 0.2s;
    }
    .time-slot:hover { background: #f8f9fa; border-color: #aaa; }
    .time-slot.selected { background: #333; color: white; border-color: #333; }

    /* Intro Box */
    .shop-intro {
      background: #fff; border: 1px solid #eee; padding: 30px; border-radius: 8px; text-align: center; margin-bottom: 30px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

    /* Formular-Modernisierung */
    .form-section {
      background: #fafafa;
      padding: 20px;
      border-radius: 8px;
      margin-bottom: 20px;
      border: 1px solid #eee;
    }
    .form-section legend {
      font-size: 1.1em;
      margin-bottom: 15px;
      padding-bottom: 8px;
      border-bottom: 2px solid #dcb67f;
      width: 100%;
      padding-left: 5px;
    }
    .form-row {
      display: flex;
      gap: 15px;
      flex-wrap: wrap;
    }
    .form-row .form-group {
      flex: 1;
      min-width: 200px;
    }
    .form-group {
      margin-bottom: 15px;
    }
    .form-group label {
      display: block;
      margin-bottom: 6px;
      font-weight: 600;
      color: #333;
    }
    .form-group input,
    .form-group select,
    .form-group textarea {
      width: 100%;
      padding: 10px 12px;
      border: 1px solid #ccc;
      border-radius: 6px;
      font-size: 16px;
      transition: border-color 0.2s;
    }
    .btn-primary {
      background: #dcb67f;
      color: white;
      border: none;
      padding: 14px;
      font-size: 18px;
      font-weight: 600;
      border-radius: 6px;
      cursor: pointer;
      width: 100%;
      transition: background 0.2s;
    }
    .btn-primary:hover {
      background: #c9a56b;
    }
        .flatpickr-day.flatpickr-disabled {
      color: #ccc !important;
      pointer-events: none !important;
    }
    
/* Anwendung */
      /* Wizard Steps */
      .step-container { display: none; animation: fadeIn 0.5s; }
      .step-container.active { display: block; }
      @keyframes fadeIn { from { opacity:0; transform: translateY(10px); } to { opacity:1; transform: translateY(0); } }

      /* Dienstleistung Cards */
      .service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
      .service-card
      { 
        border: 1px solid #ddd; padding: 20px; border-radius: 8px; cursor: pointer; transition: 0.2s; background: white;
        display: flex; flex-direction: column; justify-content: space-between;
      }
      .service-card:hover { border-color: #dcb67f; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
      .service-card.selected { border-color: #28a745; background: #f0fff4; }

      /* Time Slots */
      .slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 10px; margin-top: 20px; }
      .time-slot
      {
        padding: 10px; background: #fff; border: 1px solid #ccc; border-radius: 4px; text-align: center; cursor: pointer;
      }
      .time-slot:hover { background: #eee; }
      .time-slot.selected { background: #333; color: white; border-color: #333; }

      /* Summary Box */
      .summary-box { background: #f8f9fa; padding: 20px; border-radius: 8px; margin-bottom: 20px; border-left: 5px solid #dcb67f; }
      
       /* Formular-Modernisierung */
  .form-section {
    background: #fafafa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #eee;
  }
  .form-section legend {
    font-size: 1.1em;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #dcb67f;
    width: 100%;
    padding-left: 5px;
  }
  .form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
  }
  .form-row .form-group {
    flex: 1;
    min-width: 200px;
  }
  .form-group {
    margin-bottom: 15px;
  }
  .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px; /* verhindert Zoom auf iOS */
    transition: border-color 0.2s;
  }
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: #dcb67f;
    box-shadow: 0 0 0 2px rgba(220, 182, 127, 0.2);
  }
  .btn-primary {
    background: #dcb67f;
    color: white;
    border: none;
    padding: 14px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
  }
  .btn-primary:hover {
    background: #c9a56b;
  }

/* Buchung Abschluss */
    .success-card { background: white; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); padding: 40px; max-width: 600px; margin: 40px auto; text-align: center; border-top: 5px solid #28a745; }
    .icon-check { font-size: 60px; color: #28a745; margin-bottom: 20px; display:block; }
    .details-box { background: #f8f9fa; border: 1px solid #eee; padding: 20px; margin: 30px 0; text-align: left; border-radius: 4; }
    .details-row { display: flex; justify-content: space-between; margin-bottom: 10px; border-bottom: 1px solid #e9ecef; padding-bottom: 5px; }
    .details-row:last-child { border-bottom: none; margin-bottom: 0; }

/* Kurse */
    /* Wizard & Cards Styles (Wiederverwendung von anwendung.php empfohlen) */
    .step-container { display: none; animation: fadeIn 0.4s; }
    .step-container.active { display: block; }
    @keyframes fadeIn { from { opacity:0; transform: translateY(10px); } to { opacity:1; transform: translateY(0); } }

    /* Kurs Cards */
    .course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
    .course-card
    {
      background: white; border: 1px solid #ddd; padding: 20px; border-radius: 8px; cursor: pointer; transition: 0.2s;
      border-left: 5px solid #17a2b8; /* Blau für Kurse */
    }
    .course-card:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
    .course-card.selected { background: #e3f2fd; border-color: #17a2b8; }

    /* Termin Liste */
    .date-list { display: grid; gap: 10px; margin-top: 20px; }
    .date-item
    {
      background: white; border: 1px solid #eee; padding: 15px; border-radius: 6px; 
      display: flex; justify-content: space-between; align-items: center; cursor: pointer;
    }
    .date-item:hover { background: #f8f9fa; border-color: #ccc; }
    .date-item.full { opacity: 0.6; cursor: not-allowed; background: #f8f9fa; }
    .date-item.selected { border-color: #28a745; background: #d4edda; }
.date-item .waitlist-btn {
  width: 100%;
  margin-top: 8px;
  font-size: 0.85em;
}

    /* Ampel-Badges */
    .badge { padding: 4px 8px; border-radius: 4px; font-size: 0.85em; color: white; }
    .bg-green { background-color: #28a745; }
    .bg-orange { background-color: #fd7e14; }
    .bg-red { background-color: #dc3545; }
    
      /* Summary Box */
      .summary-box { background: #f8f9fa; padding: 20px; border-radius: 8px; margin-bottom: 20px; border-left: 5px solid #dcb67f; }
      
       /* Formular-Modernisierung */
  .form-section {
    background: #fafafa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #eee;
  }
  .form-section legend {
    font-size: 1.1em;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #dcb67f;
    width: 100%;
    padding-left: 5px;
  }
  .form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
  }
  .form-row .form-group {
    flex: 1;
    min-width: 200px;
  }
  .form-group {
    margin-bottom: 15px;
  }
  .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px; /* verhindert Zoom auf iOS */
    transition: border-color 0.2s;
  }
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: #dcb67f;
    box-shadow: 0 0 0 2px rgba(220, 182, 127, 0.2);
  }
  .btn-primary {
    background: #dcb67f;
    color: white;
    border: none;
    padding: 14px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
  }
  .btn-primary:hover {
    background: #c9a56b;
  }
  
.newsletter-section {
  background-color: #fff; /* Weißer Hintergrund = klarer Fokus */
  padding: 2rem;
  border-radius: 12px;
  margin: 2rem auto;
  max-width: 700px; /* Nicht zu breit – besser lesbar */
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Subtiler Schatten für Tiefe */
}

.newsletter-section h1 {
  font-size: 1.8rem;
  color: #515b3a;
  margin-bottom: 0.5rem;
  text-align: center;
}

.newsletter-section h2 {
  font-size: 1.3rem;
  color: #515b3a;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 500;
}

.newsletter-section p {
  color: #444;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 1.5rem;
}

.custom-form-container {
  background: none; /* Kein zusätzlicher Container nötig */
  padding: 0;
  margin: 0;
  max-width: 100%;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
  font-size: 1rem;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: #515b3a;
  box-shadow: 0 0 0 3px rgba(81, 91, 58, 0.15);
}
  
.form-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 4px; /* Ausrichtung bei mehrzeiligem Text */
}

.btn-primary {
  background: #515b3a; /* Deine Markenfarbe! */
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  max-width: 250px;
  margin: 1rem auto;
  display: block;
}

.btn-primary:hover,
.btn-primary:focus {
  background: #444d30; /* Etwas dunkler = Hover-Effekt */
  outline: none;
}

@media (max-width: 600px) {
  .newsletter-section {
    padding: 1.5rem;
  }
  .btn-primary {
    padding: 14px;
  }
}

/* Responsive Bilder innerhalb des Inhalts */
.content img,
.page-container img {
  max-width: 100%;
  height: auto;
  display: block;
}


