/* ===== theme.css (Basis) ===== */
/* =====================================================================
   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 (Google Fonts-Link in jeder Seite anpassen) */
  --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); }

/* ===== theme-c.css (Layout C Premium, ueberschreibt) ===== */
/* =====================================================================
   Layout C „Premium“ (dunkel): Ergänzung zu theme.css
   Wird NACH theme.css geladen. Nachtblau mit warmem Gold.
   Kontraste geprüft (WCAG 2.2 AA): Fließtext 15:1, Nebentext 8:1,
   Gold auf Nachtblau 9:1, dunkle Schrift auf Gold-Buttons 8:1.
   ===================================================================== */
:root {
  --c-primary:    #E6B85C; /* Gold: Links, Icons, Akzente */
  --c-accent:     #E6B85C; /* Gold: Buttons */
  --c-dark:       #E6B85C; /* Fokusrahmen */
  --c-tint:       #132238; /* etwas hellere Fläche */
  --c-soft:       #1A2C46; /* Karten auf Flächen */
  --c-sun:        #E6B85C;
  --c-text:       #EEF2F7;
  --c-muted:      #B6C2D1;
  --c-border:     #2A3D58;
  --c-field:      #8FA0B5; /* 5,9:1 zur Kartenfläche */
  --c-bg:         #0F1B2D; /* Nachtblau */
  --c-surface:    #16263D;

  --c-on-primary: #14202F;
  --c-on-accent:  #14202F;
  --c-on-dark:    #14202F;
  --c-heading:    #FFFFFF;
  --c-link:       #E6B85C;

  --f-head: 'Montserrat', system-ui, Arial, sans-serif;
  --f-body: 'Source Sans 3', system-ui, Arial, sans-serif;

  --radius-card: 14px;
  --radius-btn:  6px;
  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.35);
}

a:hover { color: #F3D592; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  box-shadow: 0 0 0 6px var(--c-bg);
}
.mr-btn-accent:hover { color: var(--c-on-accent); }
.mr-field input, .mr-field textarea, .mr-field select { color-scheme: dark; }


/* ===== Styles aus den Canvas-Bausteinen (Helmet) ===== */
.mr-nav .mr-sub a[aria-current="page"] { background: var(--c-tint); color: var(--c-text); text-decoration: none; }

/* ===== Layout C Premium: Seitenbasis und eigene Klassen ===== */
body { background: var(--c-bg); color: var(--c-text); font-family: var(--f-body); font-size: 18px; line-height: 1.6; }
img { max-width: 100%; }

/* Skip-Link sicher oberhalb von Demo-Leiste und Header verstecken */
.mr-skip { top: -140px; }

/* Demo-Leiste: hebt sich mit Goldlinie vom dunklen Layout ab */
.demo-bar { border-bottom: 2px solid var(--c-primary); }

/* Hinweis nach dem Absenden eines Demo-Formulars: auf Dunkel mit Goldrand */
.demo-msg { border: 2px solid var(--c-primary); }

/* Untermenü Desktop: Hover zusätzlich mit Goldschrift, damit er auf Dunkel sichtbar ist */
.mr-nav .mr-sub a:hover { background: var(--c-tint); color: var(--c-primary); }
.mr-sub { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); }

/* Mobiles Menü: hidden-Attribut hat Vorrang vor der Container Query */
.mr-nav-mobile[hidden] { display: none !important; }
.pr-menu-btn .pr-ic-close { display: none; }
.pr-menu-btn[aria-expanded="true"] .pr-ic-open { display: none; }
.pr-menu-btn[aria-expanded="true"] .pr-ic-close { display: block; }

/* Ruhige Bildflächen in Layoutfarben mit feinem Goldrahmen und Linien-Icon */
.pr-ph { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--c-primary); background: radial-gradient(120% 90% at 30% 20%, #20375A 0%, #1A2C46 45%, #132238 100%); }
.pr-ph::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(230, 184, 92, 0.28); border-radius: 8px; pointer-events: none; }
.pr-ph::after { content: ""; position: absolute; left: 50%; bottom: 28px; width: 48px; height: 2px; margin-left: -24px; background: var(--c-primary); opacity: 0.7; }
.pr-ph svg { width: 72px; height: 72px; opacity: 0.9; }

/* Fotos in Kartenformaten */
.pr-photo { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Team: runde Fläche mit Initialen */
.pr-avatar { display: flex; align-items: center; justify-content: center; width: 168px; aspect-ratio: 1 / 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #20375A, #16263D 70%); border: 2px solid var(--c-primary); box-shadow: 0 0 0 6px var(--c-tint), 0 0 0 7px var(--c-border); font-family: var(--f-head); font-weight: 800; font-size: 46px; letter-spacing: 0.04em; color: var(--c-primary); }

/* Karte erst nach Einwilligung */
.pr-map { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 32px 24px; text-align: center; border-radius: var(--radius-card); background: var(--c-surface); border: 1px solid var(--c-border); }
.pr-map svg { color: var(--c-primary); }
.pr-map p { margin: 0; color: var(--c-muted); font-size: 17px; max-width: 26em; }
.pr-btn-ghost { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 2px solid var(--c-primary); border-radius: var(--radius-btn); background: transparent; color: var(--c-primary); font: inherit; font-weight: 700; cursor: pointer; }
.pr-btn-ghost:hover { background: rgba(230, 184, 92, 0.12); }

/* Formularfelder auf Dunkel: klarer Rahmen, Hover und Fokus in Gold */
.mr-field input:hover, .mr-field textarea:hover, .mr-field select:hover, .pr-nl input:hover { border-color: #B9C6D6; }
.mr-field input:focus-visible, .mr-field textarea:focus-visible, .mr-field select:focus-visible, .pr-nl input:focus-visible { border-color: var(--c-primary); }
.mr-field select option { background: var(--c-surface); color: var(--c-text); }

/* Hauptpunkt, dessen Unterseite gerade offen ist (z. B. Reisen bei Gutscheine) */
.mr-nav a[aria-current="true"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 3px; text-decoration-color: var(--c-accent); }

/* Paket Reisen plus: Stimmen werden durch Kundenbewertungen ersetzt */
html[data-paket="plus"] .pr-stimmen { display: none !important; }

/* Paket Reisen plus: ein Menüpunkt mehr, Abstände etwas enger, damit nichts umbricht */
html[data-paket="plus"] .mr-headrow { gap: 20px !important; }
html[data-paket="plus"] .mr-nav-desk > ul { gap: 14px !important; }
html[data-paket="plus"] .mr-nav-desk .mr-subtoggle { width: 26px; }
html[data-paket="plus"] .mr-topbar { gap: 14px !important; }

/* Bewertungen */
.pr-rating { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; padding: 12px 24px; border: 1px solid var(--c-border); border-radius: 999px; background: var(--c-surface); }
.pr-stars-lg { display: inline-flex; gap: 3px; color: var(--c-primary); }
.pr-stars-lg svg { width: 26px; height: 26px; }
.pr-star-part { position: relative; display: inline-flex; color: #3A4E6B; }
.pr-star-part > span { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: var(--c-primary); }

/* Kleine Info-Chips im Seitenkopf */
.pr-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; }
.pr-chips li { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid rgba(230, 184, 92, 0.55); border-radius: var(--radius-btn); background: rgba(15, 27, 45, 0.78); color: #FFFFFF; font-size: 16px; font-weight: 600; }
.pr-chips li.pr-chip-gold { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary); font-weight: 700; }

/* Reisedetail: Inhalt und Preisbox */
.pr-detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
.pr-aside { position: sticky; top: 24px; }
@media (max-width: 960px) { .pr-detail { grid-template-columns: 1fr; } .pr-aside { position: static; } }
.pr-h2s { margin: 0; font-family: var(--f-head); font-weight: 800; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; color: var(--c-heading); }
.pr-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pr-timeline li { position: relative; display: flex; gap: 20px; align-items: flex-start; padding: 0 0 22px; }
.pr-timeline li:not(:last-child)::before { content: ""; position: absolute; left: 31px; top: 44px; bottom: 0; width: 2px; background: var(--c-border); }
.pr-day { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 64px; min-height: 44px; border: 2px solid var(--c-primary); border-radius: var(--radius-btn); background: var(--c-bg); color: var(--c-primary); font-family: var(--f-head); font-weight: 800; font-size: 15px; }
.pr-stops { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border: 1px solid var(--c-border); border-radius: var(--radius-card); overflow: hidden; }
.pr-stops li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 16px 22px; background: var(--c-surface); }
.pr-stops li + li { border-top: 1px solid var(--c-border); }
.pr-price { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; }
.pr-price dt { color: var(--c-muted); }
.pr-price dd { margin: 0; font-weight: 700; color: #FFFFFF; text-align: right; }

/* Formulare der neuen Seiten */
.pr-formcard { display: flex; flex-direction: column; gap: 22px; padding: 40px; border-radius: var(--radius-card); background: var(--c-surface); border: 1px solid var(--c-border); }
.pr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.pr-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pr-lbl { font-weight: 600; font-size: 16px; }
.pr-input { width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid var(--c-field); border-radius: var(--radius-btn); background: var(--c-bg); }
textarea.pr-input { padding: 12px 14px; resize: vertical; }
.pr-hint { font-size: 15px; color: var(--c-muted); }
.pr-fs { margin: 0; padding: 18px 22px 22px; min-width: 0; border: 1px solid var(--c-border); border-radius: 12px; display: flex; flex-direction: column; gap: 16px; }
.pr-fs > legend { padding: 0 8px; margin-left: -8px; font-family: var(--f-head); font-weight: 800; font-size: 18px; color: #FFFFFF; }
.pr-fs-sub { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.pr-fs-sub > legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: 16px; }
.pr-opts { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.pr-opt { display: flex; gap: 12px; align-items: center; font-size: 17px; }
.pr-opt input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--c-primary); }
.pr-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.pr-consent input { width: 24px; height: 24px; margin: 2px 0 0; flex: none; accent-color: var(--c-primary); }
.pr-submit { align-self: flex-start; min-height: 54px; 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; }
.pr-input[type="file"] { padding: 8px 10px; color: var(--c-muted); }
.pr-input::file-selector-button { margin-right: 14px; min-height: 36px; padding: 0 16px; border: 2px solid var(--c-primary); border-radius: 6px; background: transparent; color: var(--c-primary); font: inherit; font-weight: 700; cursor: pointer; }

/* Karriere: Stellenliste */
.pr-job { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 32px; border-radius: var(--radius-card); background: var(--c-surface); border: 1px solid var(--c-border); }
.pr-tag { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: var(--radius-btn); background: rgba(230, 184, 92, 0.14); color: var(--c-primary); font-size: 15px; font-weight: 700; }

/* Gutscheine: dekorativer Gutschein */
.pr-voucher { position: relative; aspect-ratio: 16 / 10; display: flex; flex-direction: column; justify-content: space-between; padding: 36px 40px; border-radius: var(--radius-card); overflow: hidden; background: radial-gradient(140% 110% at 85% 10%, #25406A 0%, #16263D 55%, #0F1B2D 100%); border: 2px solid var(--c-primary); box-shadow: var(--shadow-card); }
.pr-voucher::before { content: ""; position: absolute; inset: 12px; border: 1px dashed rgba(230, 184, 92, 0.4); border-radius: 8px; pointer-events: none; }
.pr-voucher svg { position: absolute; right: 36px; top: 32px; width: 64px; height: 64px; color: var(--c-primary); opacity: 0.85; }
.pr-amounts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pr-amounts li { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 2px solid var(--c-primary); border-radius: var(--radius-btn); color: var(--c-primary); font-family: var(--f-head); font-weight: 800; }

/* Linienverkehr */
.pr-notice { display: flex; gap: 20px; align-items: flex-start; padding: 28px 32px; border-radius: var(--radius-card); background: var(--c-surface); border: 1px solid var(--c-border); border-left: 5px solid var(--c-primary); }
.pr-line { display: flex; align-items: center; gap: 20px; padding: 22px 24px; border-radius: var(--radius-card); background: var(--c-surface); border: 1px solid var(--c-border); }
.pr-line-nr { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 12px; background: var(--c-primary); color: var(--c-on-primary); font-family: var(--f-head); font-weight: 800; font-size: 22px; }

/* Mobil: Abstände etwas enger */
@media (max-width: 600px) {
  .pr-sec { padding-top: 64px !important; padding-bottom: 64px !important; }
  .pr-pad { padding: 28px 22px !important; }
  .pr-feat { grid-template-columns: 1fr !important; }
  .pr-formcard { padding: 28px 20px; }
  .pr-fs { padding: 14px 16px 18px; }
  .pr-job, .pr-notice { padding: 24px 20px; }
  .pr-voucher { padding: 26px 24px; }
  .pr-voucher svg { width: 44px; height: 44px; right: 24px; top: 24px; }
  .pr-line { flex-wrap: wrap; }
}
