/* Roboto (Google, Apache License 2.0, siehe fonts/LICENSE-Roboto.txt), die sichtbare Schrift von
   fachtagakademie.de. Lokal eingebunden, damit beim Seitenaufruf keine IP-Adressen an Dritte
   übertragen werden (Art. 6 DSGVO). */
@font-face { font-family: 'Roboto'; src: url('fonts/roboto-300.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Roboto'; src: url('fonts/roboto-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Roboto'; src: url('fonts/roboto-500.woff2') format('woff2'); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Roboto'; src: url('fonts/roboto-700.woff2') format('woff2'); font-weight: 700 800; font-style: normal; font-display: swap; }

/* ============================================================
   FachTaG Akademie, Funnel zur neuen Maschinenverordnung.
   Aufbau und Variablennamen aus dem roleca-Funnel, Farben gemessen auf fachtagakademie.de
   (CI-Übersicht vom 13.10.2026): Anthrazit #3d3d3d und Blau #007dc5 tragen, Gelb #ffc836 ist
   die Schrift auf den dunklen Knöpfen, Gold #f0ac01 markiert das Aktive.
   ============================================================ */

:root {
  /* Marke */
  --brand: #007dc5;          /* FachTaG-Blau */
  --brand-600: #006eae;
  --brand-700: #005a8f;
  --brand-900: #3d3d3d;      /* FachTaG-Anthrazit: Überschriften, Kopf- und Fußzeile, Knöpfe */
  --aqua: #ffc836;           /* FachTaG-Signalgelb, Schrift auf den dunklen Knöpfen */
  --gold: #f0ac01;           /* FachTaG-Gold, aktiver Menüpunkt */
  --grau: #f2f2f2;           /* Hellgrau der Seitenspalten der Seminarseite */
  --brand-050: #eef6fc;
  --brand-100: #dcecf8;
  --line: #d4dbe9;

  /* Neutral */
  --ink: #3d3d3d;
  --ink-2: #3d3d3d;
  --ink-3: #666666;
  --paper: #ffffff;
  --bg: #eff2f6;             /* Kühlgrau der Bänder auf fachtagakademie.de */

  /* Signal */
  --alert: #b4460f;
  --alert-bg: #fdf4ef;

  /* Form */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --shadow-1: 0 1px 2px rgba(61, 61, 61, .05), 0 4px 16px rgba(61, 61, 61, .05);
  --shadow-2: 0 2px 6px rgba(61, 61, 61, .06), 0 18px 44px rgba(61, 61, 61, .09);
  --ring: 0 0 0 3px rgba(0, 125, 197, .35);
  --maxw: 1140px;
}

* { box-sizing: border-box; }
/* Muss nach allen display-Regeln greifen: Flex-/Grid-Container wuerden das
   hidden-Attribut sonst ueberschreiben (z. B. .field, .panel, .mobilebar). */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-2);
  background: var(--bg);
  font-feature-settings: "tnum" 0;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--brand-600); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-700); }

h1, h2, h3, h4 { color: var(--brand-900); margin: 0 0 .45em; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 500; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.02rem, 1.5vw, 1.16rem); color: var(--ink-2); }
.mini { font-size: .845rem; line-height: 1.55; color: var(--ink-3); }
.mini-strong { font-size: .875rem; color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------------- Kopfzeile mit Schrittanzeige ---------------- */
.topbar {
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30;
}
.topbar .wrap { display: flex; align-items: center; gap: 24px; min-height: 62px; }
.topbar .logo { flex: none; }
.topbar .logo img { height: 32px; width: auto; }

.steps { min-width: 0; }
.steps ol { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.steps li {
  display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ink-3);
  padding: 5px 12px 5px 7px; border-radius: 999px; white-space: nowrap; cursor: pointer;
}
.steps li b { font-weight: 500; }
.steps li i {
  font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-100); color: var(--brand-700); font-size: .78rem; font-weight: 600; flex: none;
}
.steps li[aria-current="step"] { background: var(--brand-050); color: var(--brand-900); }
.steps li[aria-current="step"] i { background: var(--brand-600); color: #fff; }
.steps li.done i { background: var(--brand-700); color: #fff; }
@media (max-width: 900px) { .steps { margin-left: auto; } }
@media (max-width: 620px) {
  .topbar .wrap { gap: 12px; min-height: 56px; padding: 0 16px; }
  .topbar .logo img { height: 27px; }
  .steps li { padding: 5px 7px; font-size: .8rem; }
  .steps li b { display: none; }
  .steps li[aria-current="step"] b { display: inline; }
}
@media (max-width: 420px) {
  .topbar .wrap { gap: 8px; padding: 0 12px; }
  .topbar .logo img { height: 20px; }
  .steps ol { gap: 2px; }
  .steps li { padding: 4px 6px; gap: 5px; }
  .steps li[aria-current="step"] b { display: none; }   /* sonst ragt „Prüfen und absenden" über den Rand */
}

/* ---------------- Layout Funnel ---------------- */
.funnel { padding: 26px 0 68px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 28px; align-items: start; }
@media (max-width: 980px) { .cols { grid-template-columns: 1fr; } }

.panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-1); padding: 30px; margin-bottom: 22px;
}
.panel > header { margin-bottom: 20px; }
.panel > header h2 { margin-bottom: 4px; }
.panel > header .mini { margin: 0; }
.step-num {
  display: inline-block; font-size: .9rem; font-weight: 700;
  color: var(--brand-600); margin-bottom: 6px;
}
@media (max-width: 620px) { .panel { padding: 22px 18px; border-radius: var(--r); } }

/* ---------------- Produktauswahl ---------------- */
.packs { display: grid; gap: 22px; }
.pack { position: relative; }
.pack input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pack label {
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center;
  border: 1.5px solid var(--line); border-radius: var(--r); padding: 18px 20px; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.pack label:hover { border-color: var(--brand); background: #f7fbfe; }
.pack input:focus-visible + label { box-shadow: var(--ring); }
.pack input:checked + label { border-color: var(--brand-600); background: var(--brand-050); box-shadow: 0 0 0 1px var(--brand-600) inset; }
.pack .t-name { display: block; font-weight: 600; color: var(--brand-900); font-size: 1.06rem; }
.pack .t-sub { display: block; font-size: .875rem; color: var(--ink-3); margin-top: 2px; }
.pack .t-price { text-align: right; }
.pack .t-price b { display: block; font-size: 1.32rem; font-weight: 700; color: var(--brand-900); }
.pack .t-price span { font-size: .8rem; color: var(--ink-3); }
.pack .flag {
  position: absolute; top: -12px; right: 18px; box-shadow: 0 0 0 4px #fff; background: var(--brand-700); color: #fff;
  font-size: .8rem; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; z-index: 2;
}
@media (max-width: 560px) {
  .pack label { grid-template-columns: 1fr; row-gap: 10px; padding: 16px; }
  .pack .t-price { grid-column: 1 / -1; text-align: left; display: flex; align-items: baseline; gap: 10px; }
  .pack .t-price b { display: inline; }
}

.qtyrow {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap;
}
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.stepper button {
  width: 44px; height: 46px; border: 0; background: #fff; color: var(--brand-700);
  font-size: 1.25rem; line-height: 1; cursor: pointer;
}
.stepper button:hover { background: var(--brand-050); }
.stepper button:disabled { color: #c3cbd8; cursor: not-allowed; background: #fff; }
.stepper input {
  width: 58px; height: 46px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  text-align: center; font: inherit; font-size: 1.02rem; font-weight: 600; color: var(--ink);
  -moz-appearance: textfield; font-variant-numeric: tabular-nums;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------------- Formular ---------------- */
fieldset { border: 0; margin: 0 0 8px; padding: 0; }
legend { font-size: .95rem; font-weight: 700; color: var(--ink); padding: 0 0 12px; }
.row { display: grid; gap: 16px; }
.row.two { grid-template-columns: 1fr 1fr; }
.row.split { grid-template-columns: 140px 1fr; }
@media (max-width: 620px) { .row.two, .row.split { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > label { font-size: .875rem; font-weight: 500; color: var(--ink-2); }
.field .opt { color: var(--ink-3); font-weight: 400; }

input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid #cfd8e6; border-radius: var(--r-sm); padding: 12px 14px; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:hover, textarea:hover, select:hover { border-color: #b6c3d6; }
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--brand-600); box-shadow: var(--ring); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--alert); background: var(--alert-bg); }
textarea { min-height: 96px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%235b6778' stroke-width='1.8' d='M1 1l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.err { color: var(--alert); font-size: .82rem; }

.check { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; margin-bottom: 14px; font-size: .93rem; }
.check input[type="checkbox"] { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--brand-600); cursor: pointer; }
.check label { cursor: pointer; padding: 5px 0; min-height: 34px; }
.switchrow { padding: 4px 0 12px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-size: 1rem; font-weight: 600; border-radius: 12px; padding: 15px 26px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .15s ease, border-color .15s ease, transform .08s ease;
}
.btn:active { transform: translateY(1px); }
/* Knöpfe wie auf fachtagakademie.de („zur Buchung"): Anthrazit, gelbe fette Schrift, Pille */
.btn-primary { background: var(--brand-900); color: var(--aqua); font-weight: 700; border-radius: 50px; }
.btn-primary:hover { background: #262626; color: var(--aqua); }
.btn-primary:disabled { background: #a6a6a6; color: #f2f2f2; cursor: not-allowed; }
.btn-ghost { background: #fff; color: var(--brand-900); border-color: #bdbdbd; border-radius: 50px; }
.btn-ghost:hover { background: var(--grau); color: var(--brand-900); }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 6px; }

/* ---------------- Prüfen und anfragen ---------------- */
.review { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 22px; }
.review .rhead {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--brand-050); padding: 12px 18px; font-size: .875rem; font-weight: 600; color: var(--brand-900);
}
.review .rhead button {
  background: none; border: 0; color: var(--brand-600); font: inherit; font-size: .85rem;
  font-weight: 500; cursor: pointer; text-decoration: underline; padding: 0;
}
.review .rbody { padding: 16px 18px; font-size: .95rem; }
.review .rbody p { margin: 0 0 .35em; }
.review .rbody p:last-child { margin: 0; }

/* ---------------- Zusammenfassung ---------------- */
.summary { position: sticky; top: 78px; }
.sum-item { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sum-item .n { font-size: .93rem; color: var(--ink-2); }
.sum-item .n small { display: block; color: var(--ink-3); font-size: .8rem; }
.sum-item .v { font-weight: 600; color: var(--brand-900); white-space: nowrap; }
/* Gleich hoch für jedes Angebot, damit bei gesperrter Aufzeichnung keine Höhe der Seite das gewählte Angebot verrät
   (längster Eintrag am 12.10.2026: 134 px, Lehrgang CE-Koordinator). Längere Angebotsnamen: Wert nachziehen. */
#sumItems { min-height: 140px; }
/* Dasselbe im Prüfschritt: Angebot und Antworten sind bei Sperre gesperrt, ihre Höhe soll es nicht verraten.
   Gemessen am 12.10.2026 mit dem längsten Angebot und den längsten Antworten, ganze Pixel gegen Rundung. */
#revItems { min-height: 110px; }
#revAntworten { min-height: 200px; }
@media (max-width: 620px) {
  #sumItems { min-height: 180px; }
  #revItems { min-height: 185px; }
  #revAntworten { min-height: 275px; }
}
.sum-empty { color: var(--ink-3); font-size: .92rem; padding: 6px 0 12px; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: .94rem; }
.sum-line > :last-child { white-space: nowrap; font-weight: 500; color: var(--ink); }
.sum-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px;
}
.sum-total span { font-weight: 600; color: var(--brand-900); }
.sum-total strong { font-size: 1.5rem; font-weight: 700; color: var(--brand-900); white-space: nowrap; }
.trust { display: grid; gap: 10px; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; }
.trust li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: .85rem; color: var(--ink-3); }
.trust svg { width: 16px; height: 16px; color: var(--brand-600); margin-top: 3px; }

/* Mobile Abschlussleiste */
.mobilebar { display: none; }
.mobilebar[hidden] { display: none !important; }
@media (max-width: 980px) {
  .summary { position: static; }
  .mobilebar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: 14px; align-items: center;
    justify-content: space-between; background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px);
    border-top: 1px solid var(--line); padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 24px rgba(61, 61, 61, .07);
  }
  .mobilebar .mb-sum { font-size: .8rem; color: var(--ink-3); }
  .mobilebar .mb-sum b { display: block; font-size: 1.16rem; color: var(--brand-900); }
  .mobilebar .btn { padding: 13px 20px; }
  body.has-bar .funnel { padding-bottom: 108px; }
}

/* ---------------- Bestätigung ---------------- */
.done-hero { text-align: left; }
.done-hero .tick {
  width: 58px; height: 58px; border-radius: 50%; background: var(--brand-600); color: #fff;
  display: grid; place-items: center; margin-bottom: 18px;
}
.done-hero .tick svg { width: 30px; height: 30px; }
.ordernum {
  display: inline-flex; gap: 10px; align-items: baseline; background: var(--brand-050);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; margin: 4px 0 22px;
}
.ordernum b { font-size: 1.18rem; color: var(--brand-900); font-variant-numeric: tabular-nums; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.timeline li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; }
.timeline .dot {
  width: 30px; height: 30px; border-radius: 50%; background: var(--brand-100); color: var(--brand-700);
  display: grid; place-items: center; font-size: .82rem; font-weight: 600;
}
.timeline b { display: block; color: var(--brand-900); font-weight: 600; }

/* ---------------- Inhaltsbereiche ---------------- */
.info { background: var(--paper); border-top: 1px solid var(--line); padding: 64px 0; }
.info .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
@media (max-width: 860px) { .info .grid { grid-template-columns: 1fr; gap: 32px; } }
.dose { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.dose li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; font-size: .96rem; }
.dose .k {
  width: 34px; height: 34px; border-radius: 10px; background: var(--brand-050); border: 1px solid var(--line);
  color: var(--brand-700); display: grid; place-items: center; font-weight: 600; font-size: .85rem;
}
details.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
details.faq summary { cursor: pointer; font-weight: 600; color: var(--brand-900); list-style: none; display: flex; justify-content: space-between; gap: 14px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--brand-600); font-weight: 400; font-size: 1.3rem; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 10px 0 2px; font-size: .95rem; }

/* ---------------- Fußzeile ---------------- */
.site-footer { background: var(--paper); padding: 38px 0 56px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 26px; flex-wrap: wrap; align-items: flex-start; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; }
.site-footer nav a { color: var(--ink-2); text-decoration: none; }
.site-footer nav a:hover { color: var(--brand-700); text-decoration: underline; }
.site-footer img { height: 34px; margin-bottom: 12px; }

.hidden { display: none !important; }
.notice {
  border: 1px solid var(--line); border-left: 3px solid var(--brand); background: var(--brand-050);
  border-radius: 12px; padding: 14px 18px; font-size: .9rem; margin: 0 0 20px; color: var(--ink-2);
}
.notice.draft { border-left-color: var(--alert); background: var(--alert-bg); }
