/* MS Klerose – Podcast von Thorsten Wambach */
/* Farben/Schriften 1:1 aus der alten Joomla-Seite übernommen (media/templates/site/cassiopeia/css/user.css) */

/* Lokal eingebundene Schriften (kein Abruf bei Google) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/inter-latin-variable.woff2") format("woff2"); }
/* Hinweis: Die alte Joomla-Seite setzt in ihrer CSS zwar "Bebas Neue" für Überschriften,
   bindet die Schrift aber nirgends ein (kein Font-Request im Netzwerk-Log) – Überschriften
   fallen dort auf fettes System-Sans zurück. Hier deshalb bewusst fettes Inter statt Bebas Neue,
   um die tatsächlich sichtbare alte Seite zu treffen statt die ungenutzte CSS-Absicht. */

:root {
  --navy: #0b1d26;          /* ms-ink – Seitenhintergrund */
  --navy-deep: #060e13;     /* Footer, noch dunkler */
  --panel: #1e3a4a;         /* ms-surface – Karten, Panels */
  --panel-2: #132f3b;       /* Navbar-Ton */
  --line: rgba(143, 184, 212, 0.15);
  --text: #f4f1e8;          /* ms-text – warmes Off-White für Überschriften */
  --muted: #c8c0b0;         /* ms-muted – Fließtext */
  --foam: #8fb8d4;          /* ms-foam – Links im Fließtext */
  --gold: #cfae70;          /* ms-gold – Primäraktion */
  --gold-dark: #b8972e;
  --gold-ink: #0b1d26;      /* Text auf Gold */
  --slate: #1e3a4a;         /* Sekundärfarbe */
  --slate-light: #2a4d61;
  --radius: 14px;
  --shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.6);
  --maxw: 1080px;
  --header-h: 72px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--navy);
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--text);
}
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; color: var(--muted); }
a { color: var(--foam); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--gold-ink); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Seitenraster: Sidebar-Menü + Hauptspalte ----------
   Die alte Joomla-Seite hat KEINE Kopfzeile/Top-Nav, sondern eine linke
   Sidebar-Karte "Menü" (Modulposition sidebar-left) neben der Hauptspalte,
   randbündig mit 32px Rand, kein zentrierter max-width-Container (body hat
   die Klasse "wrapper-fluid"). Das wird hier 1:1 nachgebaut. */
.page-shell { margin: 32px; }
.page-grid { display: grid; grid-template-columns: 276px 1fr; gap: 32px; align-items: start; }

.menu-card { background: #22262a; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.menu-card-header {
  background: var(--panel); color: var(--text); margin: 0;
  font-size: 1.75rem; font-weight: 700; padding: 8px 16px;
}
.menu-card-body { padding: 16px; }
.menu-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.menu-list a { color: rgba(244, 241, 232, 0.85); text-decoration: none; font-weight: 400; font-size: 1rem; line-height: 1.35; }
.menu-list a:hover { color: var(--gold); }
.menu-list a[aria-current="page"] { color: var(--gold); }

.menu-social { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.menu-social a { display: block; line-height: 0; opacity: 0.9; transition: opacity 0.15s ease; }
.menu-social a:hover { opacity: 1; }
.menu-social svg { display: block; }

.page-title { font-size: 2.5rem; margin-bottom: 0.4em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 10px; font-weight: 600; font-size: 0.97rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; line-height: 1.1;
}
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: var(--gold-dark); color: var(--gold-ink); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--text); }
.btn-outline:hover { background: var(--panel); color: var(--text); }
.btn-slate { background: var(--slate); color: var(--text); border-color: var(--line); }
.btn-slate:hover { background: var(--slate-light); color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Hero / Banner ---------- */
.ship-banner { width: 100%; height: clamp(90px, 20vw, 190px); overflow: hidden; background: var(--navy-deep); }
.ship-banner img { width: 100%; height: 100%; object-fit: cover; }

.hero-sub { color: var(--muted); font-size: 1.05rem; margin-bottom: 24px; }
.hero-sub strong { color: var(--text); }

/* Bild-Hero mit Verlauf + Text-Overlay, wie auf der alten Seite (Start/Podcasts).
   Original: kein border-radius, kein box-shadow, randlos (per Live-DOM-Messung). */
.hero-overlay {
  position: relative; overflow: hidden;
  min-height: clamp(420px, 34vw, 640px); margin-bottom: 40px;
}
.hero-overlay img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 80% 2%; }
.hero-overlay::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(11, 29, 38, 0.95) 0%, rgba(11, 29, 38, 0.65) 45%, rgba(11, 29, 38, 0) 100%);
}
.hero-overlay::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%;
  background: linear-gradient(to top, rgb(11, 29, 38) 0%, rgba(11, 29, 38, 0) 100%);
}
.hero-overlay-content {
  position: relative; z-index: 2; max-width: 460px; min-height: clamp(420px, 34vw, 640px);
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
  padding: 40px 32px;
}
.hero-overlay-content h2 { margin: 0; font-size: clamp(1.9rem, 4.2vw, 2.6rem); }
.hero-quote { font-style: italic; color: var(--text); font-size: 1.1rem; margin: 0; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--panel); }
.section-head { max-width: 640px; margin: 0 auto 36px; text-align: center; }
.eyebrow { color: var(--gold); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.lead-sub { color: var(--muted); }

/* ---------- Einstieg / Empfehlungs-Karten ----------
   1:1 aus dem Original übernommen (inline Styles auf der Live-Seite ausgelesen):
   Verlaufs-Hintergrund, kein Kasten um die Karten, Glow in der Figurenfarbe beim Hover. */
.einstieg { background: linear-gradient(to bottom, var(--navy) 0%, var(--panel-2) 100%); padding: 48px 4% 56px; margin: 40px 0; }
.einstieg-eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; color: var(--foam); opacity: 0.7; text-align: center; margin: 0 0 6px; }
.einstieg-sub { font-size: 0.8rem; color: var(--foam); opacity: 0.5; text-align: center; margin: 0 0 36px; font-style: italic; }

.picks { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; max-width: 600px; margin: 0 auto; }
.picks-divider { width: 1px; height: 140px; background: rgba(143, 184, 212, 0.15); flex-shrink: 0; }
.pick { display: flex; flex-direction: column; align-items: center; text-align: center; width: 190px; transition: transform 0.35s ease; }
.pick:hover { transform: translateY(-6px); }
.pick-portrait-link { display: block; width: 110px; height: 110px; border-radius: 50%; }
.pick-portrait { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; display: block; box-shadow: none; transition: box-shadow 0.35s ease; }
.pick.is-lex .pick-portrait { border: 2px solid rgba(77, 166, 255, 0.4); }
.pick.is-lex:hover .pick-portrait { box-shadow: 0 0 28px rgba(77, 166, 255, 0.6); }
.pick.is-kleros .pick-portrait { border: 2px solid rgba(139, 0, 0, 0.5); transform: scaleX(-1); }
.pick.is-kleros:hover .pick-portrait { box-shadow: 0 0 28px rgba(139, 0, 0, 0.65); }
.pick-tag { margin: 12px 0 2px; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.22em; }
.pick.is-lex .pick-tag { color: #4da6ff; }
.pick.is-kleros .pick-tag { color: #8b0000; }
.pick-title { margin: 0 0 6px; font-size: 1.1rem; letter-spacing: 0.04em; color: var(--text); }
.pick-quote { margin: 0; font-size: 0.69rem; font-style: italic; color: var(--foam); line-height: 1.5; }
.pick-name { display: block; margin-top: 8px; font-size: 0.56rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text); opacity: 0.4; }

/* ---------- Crew ----------
   Original: keine Karten/Kästchen, Bilder schweben frei, Glow in der Figurenfarbe beim Hover
   (per onmouseover auf der Live-Seite ausgelesen, hier als CSS-Hover statt Inline-JS). */
.crew-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 36px 28px; }
.crew-card { display: flex; flex-direction: column; align-items: center; text-align: center; width: 150px; transition: transform 0.35s ease; }
.crew-card:hover { transform: translateY(-8px); }
.crew-portrait { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; background: #000; display: block; box-shadow: none; transition: box-shadow 0.35s ease; }
.crew-card:hover .crew-portrait { box-shadow: var(--glow, 0 0 28px rgba(207, 174, 112, 0.85)); }
.crew-quote { margin: 10px 0 0; font-size: 0.69rem; font-style: italic; color: var(--foam); line-height: 1.5; }
.crew-name { display: block; margin-top: 6px; font-size: 0.56rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text); opacity: 0.4; }

/* ---------- Hoster-Reihe ----------
   Original: schlichte zentrierte Logo-Reihe ohne Karten (Live-DOM geprüft -
   nur <a><img></a>, kein Card-Wrapper, keine Textlabel). */
.hoster-row { text-align: center; margin: 2rem 0; }
.hoster-row a { display: inline-block; margin: 0 6px 12px; }
.hoster-row img { width: 160px; max-width: 100%; height: auto; vertical-align: middle; }

/* ---------- Prose (Impressum, Datenschutz, Projekt) ---------- */
.prose { max-width: 1100px; margin: 0; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose address { font-style: normal; }
.prose blockquote { margin: 0 0 1em; color: var(--text); font-style: normal; }
.prose .callout {
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 10px; padding: 16px 18px; margin: 1.4em 0; color: var(--muted); font-size: 0.95rem;
}

/* ---------- Kontakt ----------
   Original: einspaltig, kein Kasten um Adresse oder Formular (Joomla-Kontaktkomponente,
   per Live-DOM geprüft: .com-contact__info, .com-contact__form ohne eigenen Hintergrund). */
.kontakt-address { color: var(--muted); margin: 0 0 32px; }
.kontakt-address dt { font-weight: 600; color: var(--text); }
.kontakt-address dd { margin: 0 0 4px; }

.kontakt-form { display: flex; flex-direction: column; gap: 16px; max-width: 560px; }
.kontakt-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.kontakt-form input, .kontakt-form textarea {
  background: var(--panel); border: 1px solid rgba(143, 184, 212, 0.25); border-radius: 8px; color: var(--text);
  padding: 11px 13px; font-family: inherit; font-size: 0.97rem;
}
.kontakt-form input:focus, .kontakt-form textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp-field { position: absolute; left: -9999px; }
.challenge-field { display: flex; }
.challenge-field input { max-width: 120px; }
.form-note { font-size: 0.82rem; color: var(--muted); margin: 0; }
.form-status { margin: 0; font-size: 0.9rem; min-height: 1.2em; }
.form-status.is-success { color: #7fd99a; }
.form-status.is-error { color: #e08b8b; }

/* ---------- Footer ----------
   Die alte Seite hat KEIN <footer> (kein Footer-Modul zugewiesen) - Impressum/Kontakt
   sind dort nur über die Sidebar erreichbar, die auf Mobilgeräten unsichtbar ist (siehe
   DEPLOY.md). Dieser schmale Footer ist eine bewusste, kleine Abweichung, damit Impressum/
   Datenschutz auch mobil erreichbar bleiben (Impressumspflicht). */
.site-footer { border-top: 1px solid var(--line); padding: 20px 0 0; margin-top: 48px; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-nav a { color: rgba(244, 241, 232, 0.45); text-decoration: none; font-size: 0.82rem; }
.footer-nav a:hover { color: var(--gold); }
.footer-copy { color: rgba(244, 241, 232, 0.45); font-size: 0.78rem; }
.footer-social { display: flex; gap: 14px; }
.footer-social a { color: rgba(244, 241, 232, 0.45); text-decoration: none; font-size: 0.82rem; }
.footer-social a:hover { color: var(--gold); }

/* ---------- 404 ---------- */
.error-page { min-height: 60vh; display: flex; align-items: center; }
.error-page .container { text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .crew-grid { grid-template-columns: repeat(2, 1fr); }
  .kontakt-grid { grid-template-columns: 1fr; }
  .hero-overlay-content { max-width: 100%; }
}

@media (max-width: 760px) {
  .page-shell { margin: 16px; }
  .page-grid { grid-template-columns: 1fr; gap: 16px; }
  .picks { grid-template-columns: 1fr; }
  .pick + .pick { border-top: 1px solid var(--line); }
  .crew-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .page-title { font-size: 2rem; }
  .hero-overlay { min-height: 360px; }
  .hero-overlay-content { min-height: 360px; padding: 28px 20px; }
}

@media (max-width: 480px) {
  .crew-grid { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hoster-card { transition: none; }
}

/* ---------- Untermenü Crew + Detailseiten ---------- */
.menu-sub { list-style: none; margin: 8px 0 0; padding: 0 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.menu-sub a { font-size: 0.93rem; }
.crew-card { color: inherit; text-decoration: none; }
.crew-detail { max-width: 720px; margin: 0 auto; font-size: 15px; line-height: 1.7; }
.crew-detail p { margin: 0 0 1em; }
.crew-detail-head { display: flex; gap: 32px; align-items: flex-start; margin-bottom: 32px; flex-wrap: wrap; }
.crew-detail-head img { width: 200px; min-width: 200px; height: auto; border-radius: 12px; display: block; }
.crew-detail-text { flex: 1; min-width: 220px; }
.crew-detail-name { font-size: 20px; font-weight: 500; margin: 0 0 4px; }
.crew-detail-sub { font-size: 13px; opacity: 0.6; margin: 0 0 16px !important; }
.crew-detail h3 { font-size: 16px; font-weight: 700; margin: 0 0 12px; }
.crew-detail hr { border: none; border-top: 1px solid var(--line); margin: 24px 0; }
.crew-back { margin-top: 32px !important; }
.menu-list .has-sub > a { margin-right: 6px; }
.menu-toggle { background: none; border: 0; padding: 4px; color: var(--gold); cursor: pointer; vertical-align: middle; line-height: 0; }
.menu-toggle svg { transition: transform 0.2s ease; }
.menu-toggle.is-open svg { transform: rotate(180deg); }
.menu-sub[hidden] { display: none; }
