/* =====================================================================
   Mustermann Reisen – Kunden-Theme
   Einzige Stelle für Farben und Schriften. Pro Kunde nur diesen
   :root-Block austauschen; alle Seiten, Header und Footer übernehmen ihn.

   Grundstimmung: hell, warm und freundlich. Große Schrift (18 px Fließtext)
   für eine eher ältere Zielgruppe.

   Barrierefreiheit (WCAG 2.2 AA): Jedes Paar „Fläche / Text darauf“
   braucht mindestens 4,5:1 Kontrast. Beim Tausch der Farben die
   --on-*-Werte mitprüfen (z. B. WebAIM Contrast Checker).
   ===================================================================== */
:root {
  /* Markenfarben */
  --c-primary:    #1B5E8C; /* Überschriften, Links, Icons (6,9:1 zu Weiß) */
  --c-accent:     #C2410C; /* Buttons / Call-to-Action (5,2:1 mit weißer Schrift) */
  --c-dark:       #17324D; /* nur noch für Fokusrahmen und kleine Akzente */
  --c-tint:       #FFF7EC; /* warme, helle Flächen */
  --c-soft:       #EAF4FA; /* himmelblaue, helle Flächen */
  --c-sun:        #FFD166; /* dekorative Akzente (Kreise, Sterne) */
  --c-text:       #1F2A37; /* Fließtext */
  --c-muted:      #5B6B7A; /* Nebentext (5,5:1 zu Weiß) */
  --c-border:     #E3E8EE; /* Trennlinien, Kartenrahmen (dekorativ) */
  --c-field:      #6B7A87; /* Formularrahmen (≥ 3:1 zu Weiß) */
  --c-bg:         #FFFFFF; /* Seitenhintergrund */
  --c-surface:    #FFFFFF; /* Karten, Formularfelder */

  /* Text auf Markenfarben */
  --c-on-primary: #FFFFFF;
  --c-on-accent:  #FFFFFF;
  --c-on-dark:    #FFFFFF;
  --c-heading:    var(--c-primary); /* auf zu hellen Primärfarben: var(--c-text) */
  --c-link:       var(--c-primary);

  /* Schriften (lokal eingebunden über ../shared/fonts/) */
  --f-head: 'Nunito', system-ui, Arial, sans-serif;
  --f-body: 'Source Sans 3', system-ui, Arial, sans-serif;

  /* Form */
  --radius-card: 24px;
  --radius-btn:  999px;
  --shadow-card: 0 8px 24px rgba(23, 50, 77, 0.08);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
a { color: var(--c-link); text-underline-offset: 3px; }
a:hover { color: var(--c-dark); text-decoration-thickness: 2px; }

.mr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mr-skip { position: absolute; left: 16px; top: -80px; z-index: 10; padding: 12px 20px; border-radius: 8px; background: var(--c-dark); color: var(--c-on-dark); font-weight: 700; text-decoration: none; }
.mr-skip:focus { top: 16px; color: var(--c-on-dark); }

/* Fokus immer sichtbar */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--c-dark); outline-offset: 3px; box-shadow: 0 0 0 6px #FFFFFF;
}
.mr-dark a:focus-visible, .mr-dark button:focus-visible { outline-color: #FFFFFF; box-shadow: 0 0 0 6px var(--c-dark); }

/* Navigation */
.mr-nav a { color: var(--c-text); text-decoration: none; }
.mr-nav a:hover { color: var(--c-text); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.mr-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 3px; text-decoration-color: var(--c-accent); }

/* Header: passt sich der eigenen Breite an (Container Query) */
.mr-header { container-type: inline-size; }
.mr-mobile-only { display: none; }
.mr-nav-mobile { display: none; }
@container (max-width: 1100px) {
  .mr-nav-desk, .mr-topbar { display: none !important; }
  .mr-mobile-only { display: flex; }
  .mr-nav-mobile { display: block; }
}
@container (max-width: 520px) {
  .mr-headrow { gap: 12px !important; }
  .mr-logo { max-width: 140px !important; height: auto !important; }
}

/* Buttons & Links */
.mr-btn { text-decoration: none; }
.mr-btn:hover { filter: brightness(0.92); }
.mr-dark a { color: var(--c-on-dark); }
.mr-dark a:hover { color: var(--c-on-dark); }
.mr-btn-accent, .mr-btn-accent:hover { color: var(--c-on-accent); }
.mr-btn-ghost, .mr-btn-ghost:hover { color: var(--c-primary); }

/* Karten mit leichtem Anheben */
.mr-card { transition: transform 0.15s ease, box-shadow 0.15s ease; }
@media (prefers-reduced-motion: no-preference) {
  .mr-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(23, 50, 77, 0.14); }
}

/* Formulare */
.mr-field input, .mr-field textarea, .mr-field select { font: inherit; color: var(--c-text); }

/* =====================================================================
   Ergänzungen für die statische Demo (Layout A „Freundlich“)
   ===================================================================== */

/* Seitenrahmen (im Canvas der äußere Wrapper jeder Seite) */
body { min-height: 100vh; background: #FFFFFF; color: var(--c-text); font-family: var(--f-body); font-size: 18px; line-height: 1.6; }
img { max-width: 100%; }

/* Header: aktueller Unterpunkt (aus dem Helmet des Header-Bausteins) */
.mr-nav .mr-sub a[aria-current="page"] { background: var(--c-tint); color: var(--c-text); text-decoration: none; }

/* Mobiles Menü: hidden muss gegen die Container-Query gewinnen */
.mr-nav-mobile[hidden] { display: none !important; }
.mr-menu-btn .mr-ic-close { display: none; }
.mr-menu-btn[aria-expanded="true"] .mr-ic-open { display: none; }
.mr-menu-btn[aria-expanded="true"] .mr-ic-close { display: block; }

/* Bildflächen ohne Foto: ruhige Fläche in Layoutfarben mit Linien-Icon */
.mr-ph { display: flex; align-items: center; justify-content: center; color: var(--c-primary); }
.mr-ph svg { width: 30%; max-width: 96px; height: auto; opacity: 0.85; }
.mr-ph--soft { background: linear-gradient(135deg, var(--c-soft) 0%, color-mix(in srgb, var(--c-soft), var(--c-primary) 14%) 100%); }
.mr-ph--tint { background: linear-gradient(135deg, var(--c-tint) 0%, color-mix(in srgb, var(--c-tint), var(--c-sun) 45%) 100%); }
.mr-ph--white { background: linear-gradient(135deg, #FFFFFF 0%, var(--c-tint) 100%); }
.mr-ph--sm svg { width: 44%; }

/* Fotos */
.mr-photo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }

/* Team: runde Fläche mit Initialen */
.mr-avatar { display: flex; align-items: center; justify-content: center; width: min(100%, 200px); aspect-ratio: 1 / 1; border-radius: 999px; font-family: var(--f-head); font-weight: 900; font-size: 56px; letter-spacing: 0.02em; }

/* Katalog-Titelseite (dekorativ) */
.mr-cover { justify-self: center; width: min(100%, 300px); aspect-ratio: 3 / 4; display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; background: #FFFFFF; box-shadow: 0 18px 40px rgba(23, 50, 77, 0.18); transform: rotate(-3deg); }

/* Kartenplatzhalter mit Einwilligung */
.mr-map-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 2px solid var(--c-primary); border-radius: var(--radius-btn); background: #FFFFFF; color: var(--c-primary); font: inherit; font-weight: 700; cursor: pointer; }
.mr-map-btn:hover { background: var(--c-soft); }

/* Kennzahlen auf der Startseite (Barrierefrei reisen) */
.mr-stats3 { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr); gap: 16px; }
.mr-stats3 dd { white-space: nowrap; }

/* Kleine Bildschirme: große Boxen etwas enger, nichts ragt über den Rand */
@media (max-width: 600px) {
  .mr-box { padding: 28px 22px !important; }
  .mr-hero-card { padding: 28px 22px !important; }
  .mr-stats3 { grid-template-columns: 1fr; }
  .mr-avatar { font-size: 48px; }
}

/* Hero mobil: Foto oben als eigener Streifen, Karte darunter, damit der Bus ganz zu sehen ist */
@media (max-width: 760px) {
  .mr-hero-img { position: relative !important; inset: auto !important; display: block; width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; object-position: 62% 78% !important; }
  .mr-hero-in { min-height: 0 !important; padding-top: 0 !important; margin-top: -40px !important; }
}

/* Hero breit: Höhe wächst mit der Bildschirmbreite, damit der Bus auch auf großen Monitoren ganz zu sehen ist */
@media (min-width: 761px) {
  .mr-hero-in { min-height: clamp(680px, 45vw, 960px) !important; }
}

/* Paket Reisen plus: Inhalte, die nur in Start und Reisen erscheinen (in Reisen plus ersetzt) */
html[data-paket="plus"] .mr-ohne-plus { display: none !important; }

/* Formulare der Reisen-plus-Seiten */
.mr-form { display: flex; flex-direction: column; gap: 20px; padding: 40px; border-radius: 24px; background: var(--c-tint); border: 1px solid var(--c-border); }
.mr-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.mr-field { display: flex; flex-direction: column; gap: 6px; }
.mr-field > label, .mr-legend { font-weight: 600; font-size: 16px; }
.mr-input { min-height: 48px; padding: 10px 14px; border: 2px solid var(--c-field); border-radius: 10px; background: #FFFFFF; }
textarea.mr-input { resize: vertical; }
input[type="file"].mr-input { padding: 9px 14px; }
.mr-fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mr-legend { padding: 0; margin-bottom: 8px; }
.mr-choice { display: flex; gap: 12px; align-items: center; font-size: 17px; }
.mr-choice input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--c-dark); }
.mr-choices-row { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.mr-hint { font-size: 15px; }
.mr-submit { align-self: flex-start; min-height: 52px; padding: 0 32px; border: 0; border-radius: var(--radius-btn); background: var(--c-accent); color: var(--c-on-accent); font: inherit; font-weight: 700; font-size: 18px; cursor: pointer; }
@media (max-width: 600px) { .mr-form { padding: 28px 22px; } }
