/* ==========================================================================
   1. Zentrale Design-Variablen & Basis-Styling
   ========================================================================== */
:root {
  --bg-color: #0000cd;
  --text-color: #ffbb00;
  --accent-hover: #15ff00;
  --border-radius: 15px;
  --border-style: 2px solid var(--text-color);
  --shadow-retro: 5px 5px 0px #ffbb00;
}

*, *::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;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
  overflow-x: hidden;
}

/* ==========================================================================
   2. Typografie, Links & Bilder
   ========================================================================== */
h1, h2, h3, h4, table { 
  color: var(--text-color); 
  margin-top: 0; 
}

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 */
}

a {
  font-weight: bold;
  color: var(--text-color);
  text-decoration: underline;
  transition: color 0.2s ease;
}

a:hover { 
  color: var(--accent-hover); 
}

img, .zentriert {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
}

.zentriert {
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
}

/* ==========================================================================
   3. Container, Boxen & Allgemeine 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%;
}

.text-center, .Ferienkurs, .kopfzeile, .header-container, .footer {
  text-align: center;
}

.header-container img {
  max-width: 100%; /* Bild wird nie breiter als der Container */
  height: auto;    /* Seitenverhältnis bleibt erhalten */
}

.header-container b, .header-container strong {
  display: inline-block;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* ==========================================================================
   4. Logo Animation
   ========================================================================== */
.logo-animation {
  width: 100%;
  overflow: hidden;
  position: relative;
  height: 100px;
  margin: 10px 0;
}

.logo-animation img {
  height: 80px;
  width: auto;
}

.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%); }
}

/* ==========================================================================
   5. Preise & Tabellen
   ========================================================================== */
.preisbeispiel-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.preisbeispiel {
  flex: 1 1 200px;
  text-align: right;
  color: #ffdd00; 
}

.preis-box-blau {
  background-color: #0000CD;
  border-radius: 15px;
  padding: 20px;
  color: #ffbb00;
  margin-top: 20px;
  box-shadow: var(--shadow-retro);
}

.table-beispiel {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.table-beispiel td {
  padding: 5px 0;
  vertical-align: top;
}

.text-links { text-align: left; }
.text-rechts { text-align: right; white-space: nowrap; }

.trennlinie td {
  border-bottom: 1px solid #ffbb00;
  padding-bottom: 10px;
}

.gesamt-summe td {
  padding-top: 10px;
  font-weight: bold;
  font-size: 1.1em;
}

/* ==========================================================================
   6. Formulare & Buttons
   ========================================================================== */
.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, .form-group select {
  padding: 12px;
  border: 1px solid var(--text-color);
  background: white;
  color: #000000; /* 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);
}

.btn-preisliste {
  background-color: #0000CD;
  color: #ffbb00 !important;
  border: 2px solid #ffbb00;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-preisliste:hover {
  background-color: #ffbb00;
  color: #0000CD !important;
  border-color: #ffbb00;
}

/* ==========================================================================
   7. Spezielles & Footer
   ========================================================================== */
.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;
}

/* ==========================================================================
   8. Responsive Anpassungen
   ========================================================================== */
@media (min-width: 768px) {
  body { font-size: 1.1rem; }
  .anmelde-form { max-width: 500px; }
}
