/* 1. Zentrale Design-Variablen */
:root {
  --bg-color: #0000cd;
  --text-color: #ffbb00;
  --accent-hover: #15ff00;
  --border-radius: 15px;
  --border-style: 2px solid var(--text-color);
}

/* 2. Basis-Styling */
*, *::before, *::after {
  box-sizing: border-box; /* Verhindert Layout-Probleme durch Padding */
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  font-size: 1rem;
  margin: 0;
  overflow-x: hidden;
}

/* Logo-Animation */
.logo-animation {
  width: 100%;
  overflow: hidden;
  position: relative;
  height: 100px;
  margin: 10px 0;
}

.slide-infinite-right, .slide-infinite-left {
  display: inline-block;
  position: absolute;
  white-space: nowrap;
}

.slide-infinite-right { animation: bounceRight 8s linear infinite alternate; }
.slide-infinite-left { animation: bounceLeft 8s linear infinite alternate; }

@keyframes bounceRight {
  from { left: 0%; transform: translateX(0%); }
  to { left: 100%; transform: translateX(-100%); }
}

@keyframes bounceLeft {
  from { right: 0%; transform: translateX(0%); }
  to { right: 100%; transform: translateX(100%); }
}

.logo-animation img {
  height: 80px;
  width: auto;
}

/* 3. Gemeinsame Box-Stile */
.Fahrschule, .Ferienkurs, .kopfzeile, 
.page-header, .header-container, .footer, .fussnote {
  margin: 1rem auto;
  padding: 1.2rem;
  background-color: var(--bg-color);
  border: var(--border-style);
  border-radius: var(--border-radius);
  max-width: 95%;
}

.header-container img {
    max-width: 100%; /* Bild wird nie breiter als der Container */
    height: auto;    /* Seitenverhältnis bleibt erhalten */
}


.text-center, .Ferienkurs, .kopfzeile, .header-container, .footer {
  text-align: center;
}

/* 4. Typografie & Links */
h1, h2, h3, h4, table { color: var(--text-color); margin-top: 0; }

/* Automatische Abstände statt <br> */
h2, h3 {
  margin-top: 2.5rem;   /* Platz über der Überschrift */
  margin-bottom: 1.5rem; /* Platz unter der Überschrift */
}

p {
  margin-bottom: 1.5rem; /* Platz unter jedem Absatz */
}

.header-container b, 
.header-container strong {
  display: inline-block;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Abstand für Bilder */
.zentriert {
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
}


a {
  font-weight: bold;
  color: var(--text-color);
  text-decoration: underline;
  transition: color 0.2s ease;
}

a:hover { color: var(--accent-hover); }

/* 5. Bilder & Preis-Layout */
img, .zentriert {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
}

.preisbeispiel-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.preisbeispiel {
  flex: 1 1 200px;
  text-align: right;
  color: #ffdd00; /* Korrigiert: Nur 'color' statt 'text-color' */
}

/* 6. Formular-Styling */
.anmelde-form {
  max-width: 400px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.form-group input, select {
  padding: 12px;
  border: 1px solid var(--text-color);
  background: white;
  color: #000000; /* WICHTIG: Schwarze Schrift auf weißem Grund */
  border-radius: 4px;
  font-size: 1rem;
  width: 100%;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 1.5rem 0;
}

button[type="submit"] {
  width: 100%;
  padding: 15px;
  background-color: var(--text-color);
  color: var(--bg-color);
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

button[type="submit"]:hover {
  background-color: #ffe066; 
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* 7. Footer & Spezielles */
.footer-bottom {
  border-top: 1px solid var(--text-color);
  padding-top: 20px;
  margin-top: 30px;
  font-size: 13px;
}

.reverse-email { 
  unicode-bidi: bidi-override; 
  direction: rtl; 
}

/* Responsive Anpassungen */
@media (min-width: 768px) {
  body { font-size: 1.1rem; }
  .anmelde-form { max-width: 500px; }
}
