:root{
  --primary:#00205B;  /* Blau (Flagge) */
  --accent:#BA0C2F;   /* Rot (Flagge) */
  --text:#111;
  --muted:#555;
  --white:#fff;
  --bg:#fff;
  --shadow:0 8px 24px rgba(0,0,0,.15);
}

*{box-sizing:border-box;margin:0;padding:0}
body{
  font-family:Arial,Helvetica,sans-serif;
  background:var(--bg);
  color:var(--text);
}

/* Einheitlicher Seiten-Container */
.fc-wrap{ max-width:1200px; margin:0 auto; padding:0 16px; }

/* ================= HEADER ================= */

.fc-header{
  background:var(--white);
  border-bottom:4px solid var(--accent);
}

/* Zeile 0: kleine Sprachzeile */
.fc-topbar{
  border-bottom:1px solid #eef2f7;
  background:#fff;
  font-size:12px;
}
.fc-topbar .fc-wrap{
  padding:6px 16px;
  display:flex; align-items:center; justify-content:flex-start; gap:10px;
}
.fc-langline{ display:flex; align-items:center; gap:6px; }
.fc-langline .label{ color:#374151; font-weight:600; }
.lang-pill{
  display:inline-block; padding:3px 8px; border-radius:8px;
  border:1px solid #e5e7eb; text-decoration:none; color:#0f172a; font-weight:700;
}
.lang-pill:hover{ background:#f8fafc; }
.lang-pill.active{
  background:#eef2ff; color:#1e3a8a; border-color:#cdd4ff;
  pointer-events:none;
}

/* Zeile 1: Burger + Brand + Current */
.fc-bar .fc-wrap{
  padding:10px 16px;
  display:flex; align-items:center; gap:12px;
  position:relative;
  flex-wrap:nowrap;
}

/* Burger */
.fc-burger-wrap{ position:relative; display:flex; align-items:center; }
.fc-burger{
  width:40px; height:40px; border-radius:10px;
  border:1px solid #cbd5e1; background:#fff;
  display:inline-flex; align-items:center; justify-content:center;
}
.fc-burger span{ display:block; width:20px; height:2px; background:#0f172a; position:relative; }
.fc-burger span::before, .fc-burger span::after{
  content:""; position:absolute; left:0; width:20px; height:2px; background:#0f172a;
}
.fc-burger span::before{ top:-6px; }
.fc-burger span::after{ top:6px; }

/* Brand */
.fc-brand{
  display:flex; align-items:center; gap:10px;
  text-decoration:none; flex:0 0 auto;
}
.fc-brand .logo{
  width:36px; height:36px; display:inline-flex; align-items:center; justify-content:center;
  border-radius:10px;
  background:var(--accent);
  box-shadow:var(--shadow);
  color:transparent; font-size:0; line-height:0;
  background-image:url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'>\
  <rect x='11' y='8' width='2' height='10' rx='1'/>\
  <circle cx='12' cy='5.5' r='2'/>\
</svg>");
  background-repeat:no-repeat;
  background-position:center;
  background-size:24px 24px;
}
.fc-brand div{ color:var(--primary); font-weight:900; letter-spacing:.3px; }

/* Current-Pill */
.fc-current{
  margin-left:6px;
  display:inline-block;
  font-weight:800; color:var(--primary);
  padding:6px 10px; border-radius:10px; background:#f3f6ff;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  max-width:min(50vw, 420px);
  flex:1 1 auto;
}

/* Burger-Menü */
.fc-menu{
  position:absolute;
  left:0; top:calc(100% + 8px);
  background:#fff; border:1px solid #e5e7eb; border-radius:12px;
  box-shadow:var(--shadow);
  width:240px; padding:10px;
  display:none; z-index:2000;
}
.fc-menu a{
  display:block; padding:10px 12px; border-radius:8px;
  color:#0f172a; text-decoration:none; font-weight:700;
}
.fc-menu a[aria-current="page"]{ background:#eef2ff; color:#1e3a8a; }
.fc-menu a:hover{ background:#f8fafc; }
@media (max-width:900px){
  .fc-menu{ left:0; right:auto; width:min(86vw, 320px); }
}

/* ================= HERO (kompakter) ================= */
.hero{
  text-align:center;
  padding:28px 16px;
  background:var(--white);
}
.hero h1{
  font-size:1.9rem;
  margin-bottom:6px;
  color:var(--primary);
}
.hero p{ color:var(--muted); margin-bottom:12px; }
.hero .coach-btn{ margin-top:10px; }
@media (max-width:480px){
  .hero{ padding:24px 14px; }
  .hero h1{ font-size:1.65rem; margin-bottom:4px; }
  .hero p{ margin-bottom:10px; }
}

/* Buttons */
.coach-btn{
  display:inline-block;
  padding:12px 22px;
  background:var(--accent);
  color:#fff;
  border-radius:10px;
  text-decoration:none;
  font-weight:700;
  transition:0.2s;
}
.coach-btn:hover{background:#8a0a22}

/* ================= Sektionen/Karten ================= */
.grid{ display:grid; gap:24px; margin-top:18px; }
.card{
  position:relative; height:300px; border-radius:16px; overflow:hidden; box-shadow:var(--shadow);
}
.card img{ position:absolute; width:100%; height:100%; object-fit:cover; top:0; left:0; filter:brightness(70%); }
.card-body{ position:absolute; bottom:20px; left:20px; color:#fff; }
.card-body h2{ margin:0 0 6px; font-size:1.8rem; color:#fff; }
.card-body p{ max-width:480px; margin:0 0 10px }
.card-body .btn{ display:inline-block; padding:8px 16px; background:var(--primary); color:#fff; border-radius:6px; text-decoration:none; font-weight:700; }
.card-body .btn:hover{ background:#021843 }
@media (min-width:900px){
  .grid{ grid-template-columns:1fr 1fr 1fr }
  .card{ height:400px }
}

footer{ padding:18px; text-align:center; color:#777; margin-top:40px }

/* ================= Zusatztypografie ================= */
h2{ font-size:1.35rem; line-height:1.25; font-weight:800; letter-spacing:.2px; margin:12px 0 8px; color:var(--text); }
h2.keyfacts{
  color:#fff; font-size:1.05rem; font-weight:700; line-height:1.6; text-wrap:balance; hyphens:auto; max-width:70ch; margin:10px 0 14px;
}

/* ================= Dunkle & Blaue Sektion ================= */
.section-dark{ background:#0b1220; color:#fff; }
.section-dark h1,.section-dark h2,.section-dark p{ color:#fff; }

/* Marken-Blau (für Coach/BodyMap) */
.section-blue{ background:var(--primary); color:#fff; }
.section-blue h1,.section-blue h2,.section-blue p{ color:#fff; }

/* ================= Keyfacts-Block (falls genutzt) ================= */
.keyfacts-block{ margin:20px 0; }
.keyfacts-line{ display:flex; align-items:center; margin:6px 0; }
.keyfacts-icon{ width:22px; height:22px; margin-right:10px; }
.keyfacts-text{ color:#fff; font-size:0.95rem; font-weight:500; line-height:1.4; }

/* ================= SELECT (Inset) ================= */
select:not(.fc-select){
  padding:10px; border-radius:10px; border:1px solid #ddd; min-width:280px;
}
.fc-select{
  -webkit-appearance:none; -moz-appearance:none; appearance:none;
  display:block; width:calc(100% - 24px); max-width:calc(100% - 24px); min-width:0;
  margin:0 12px; height:48px; padding:12px 44px 12px 14px; border-radius:14px; border:1px solid #cbd5e1;
  background:#fff no-repeat right 12px center / 20px 20px;
  background-image:url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235b6574' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  color:#0f172a; font-size:16px; line-height:1.3;
  text-overflow:ellipsis; white-space:nowrap; overflow:hidden;
}
.fc-select:hover{ border-color:#94a3b8; }
.fc-select:focus{ outline:none; border-color:#e11d48; box-shadow:0 0 0 3px rgba(225,29,72,.25); }
.fc-select:disabled{ opacity:.6; cursor:not-allowed; }
select.fc-select::-ms-expand{ display:none; }
.fc-select--icon-left{ padding-left:44px; padding-right:14px; background-position:12px center; }
.fc-select--inset{ max-width:calc(100% - 24px); margin-left:12px; margin-right:12px; }

/* Panel-Kombinationen – Überstand verhindern */
.panel{ overflow:hidden; }
.panel .fc-select{ max-width:calc(100% - 24px); min-width:0; }

/* kompakt auf kleinen Screens */
@media (max-width:480px){
  .fc-select{ height:44px; padding:10px 40px 10px 12px; border-radius:12px; }
  .fc-select--icon-left{ padding-left:40px; }
}

/* ================= QuickCoach: Notes/Mic/Toggle ================= */
.qc-notes{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.18);
  border-radius:14px;
  padding:12px;
  box-shadow:0 8px 24px rgba(0,0,0,.08) inset;
  margin-bottom:14px;
}
.qc-notes label{
  display:block; font-weight:800; margin-bottom:8px; color:#fff;
}
.qc-notes textarea{
  width:100%; min-height:110px; max-height:340px; resize:vertical;
  border-radius:12px; border:1px solid #cbd5e1; padding:10px 12px;
  font-size:15px; line-height:1.4; color:#0f172a;
}
.qc-actions{
  display:flex; gap:8px; margin-top:10px; flex-wrap:wrap;
}
.qc-mic, .qc-submit, .qc-toggle{
  appearance:none; border:1px solid #e5e7eb; background:#fff; color:#0f172a;
  font-weight:800; border-radius:12px; padding:10px 12px; cursor:pointer;
}
.qc-mic[aria-pressed="true"]{ background:#fee2e2; border-color:#fecaca; }
.qc-submit{ background:var(--accent); border-color:#8a0a22; color:#fff; }
.qc-submit:hover{ filter:brightness(.95); }
.qc-toggle{ background:#f3f6ff; border-color:#d3dcff; color:#00205B; }

/* Collapse helper – sanfte Animation */
.collapse{ transition:max-height .28s ease, padding .28s ease, margin .28s ease, border-width .28s ease; }
.is-hidden{ max-height:0 !important; padding-top:0 !important; padding-bottom:0 !important; margin-top:0 !important; margin-bottom:0 !important; border-width:0 !important; }

/* leichte Secondary-Textfarbe */
.hero-motivation{ margin-top:4px; font-size:0.92rem; color:#cbd5e1; }
.quote-source{display:block;margin-top:4px;font-size:12px;color:#9ca3af}
.quote-source a{text-decoration:underline;color:inherit}

/* ================= Zusätze für BEAST COACH Quick (NEU) ================= */
.qc-title{
  color:#fff;
  margin:0 0 10px 0;
  font-size:1.8rem;
  font-weight:900;
  letter-spacing:.4px;
}

.qc-prompt{
  color:#fff;
  font-weight:800;
  margin:0 0 8px 0;
  line-height:1.35;
}
.qc-prompt .alt{
  display:block;
  font-weight:700;
  opacity:.9;
}

/* Größere Textarea für die Notizen */
.qc-notes textarea{
  min-height:140px; /* override */
}

/* A11y: visuell verstecktes Label beibehalten */
.sr-only{
  position:absolute!important; width:1px!important; height:1px!important;
  padding:0!important; margin:-1px!important; overflow:hidden!important;
  clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important;
}

/* Mic-Button: klarer Recording-Zustand + rotes Pulsen */
.qc-mic{
  display:inline-flex; align-items:center; gap:8px;
}
.qc-mic[aria-pressed="true"]{
  background:var(--accent);
  color:#fff;
  border-color:#8a0a22;
  position:relative;
}
.qc-mic[aria-pressed="true"]::before{
  content:""; width:8px; height:8px; border-radius:50%;
  background:#fff; display:inline-block;
  box-shadow:0 0 0 0 rgba(255,255,255,.85);
  animation:micpulse 1.2s ease-out infinite;
}
@keyframes micpulse{
  0%   { box-shadow:0 0 0 0 rgba(255,255,255,.85); transform:scale(1); }
  70%  { box-shadow:0 0 0 10px rgba(255,255,255,0); transform:scale(1.15); }
  100% { box-shadow:0 0 0 0 rgba(255,255,255,0); transform:scale(1); }
}

/* === Beastcoach Deep: mobiles Portrait-Layout für die Trainings-Tabelle === */
@media (max-width: 768px) and (orientation: portrait) {
  /* Normale Tabelle ausblenden/umbauen */
  table.mono {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    font-size: 13px;           /* etwas kleiner für mehr Inhalt */
  }
  table.mono thead { 
    display: none;             /* Header ausblenden, wir labeln pro Zelle */
  }

  table.mono tbody,
  table.mono tr,
  table.mono td {
    display: block;            /* Zeile -> Card, Zelle -> Zeile */
    width: 100%;
  }

  table.mono tr {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 10px 12px;
    margin: 10px 0;
    box-shadow: 0 6px 16px rgba(0,0,0,.06);
  }

  /* Standard-Zellen: Label links, Wert rechts/wrap */
  table.mono td {
    border: 0;
    padding: 6px 0;
    display: flex;
    gap: 10px;
    align-items: baseline;
    border-bottom: 1px dotted #eee;
    word-break: break-word;
    hyphens: auto;
  }
  table.mono td:last-child { border-bottom: 0; }


  /* Labels aus dem Markup ziehen */
  table.mono td::before {
    content: attr(data-label);
    font-weight: 700;
    flex: 0 0 auto;
    min-width: 120px;
    color: #0b1020;
  }

  /* Cues/Alternatives/Notes-Zeile (colspan) bleibt Vollbreite ohne Label */
  table.mono td[colspan] {
    display: block;
    padding: 10px 12px;
    margin-top: 6px;
    background: #fffbe9;
    border-radius: 10px;
    border: 1px solid #f2e9bf;
  }
  table.mono td[colspan]::before { content: ""; display: none; }

  /* Etwas dichter insgesamt */
  .section-dark h3 { margin-bottom: 8px; }
}


