/* bia-messung.at – AENGUS Ernährungskonzepte GmbH
   Farben aus dem BIA-Logo (Orange/Grau). Systemschriften: keine externen
   Fonts (Google Fonts ohne Einwilligung ist in AT datenschutzrechtlich heikel). */

:root {
  --orange: #e2742a;
  --orange-dark: #b9581a;
  --orange-soft: #fdf1e8;
  --ink: #2c2e30;
  --grey: #58595b;
  --muted: #74767a;
  --line: #e4e1dc;
  --bg: #ffffff;
  --bg-alt: #f7f5f2;
  --ok: #2f7d4f;
  --err: #c0392b;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 20px rgba(0,0,0,.06);
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-dark); }
a:hover { color: var(--orange); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--orange-dark); margin-bottom: .8em;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand img { height: 56px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--grey); font-weight: 600; font-size: .95rem;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--orange-dark); background: var(--orange-soft); }
.nav a.btn { color: #fff; background: var(--orange); margin-left: 8px; }
.nav a.btn:hover { background: var(--orange-dark); color: #fff; }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 12px; font: inherit; font-weight: 600; color: var(--grey); cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
  }
  .nav.open { display: flex; }
  .nav a.btn { margin: 8px 0 0; text-align: center; }
  .brand img { height: 38px; }
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 8px; border: 2px solid var(--orange);
  background: var(--orange); color: #fff; font: inherit; font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--orange-dark); }
.btn.ghost:hover { background: var(--orange-soft); color: var(--orange-dark); }
.btn.small { padding: 8px 14px; font-size: .9rem; }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }

/* ── Sections ───────────────────────────────────────────────────────────── */
section.block { padding: 72px 0; }
section.block.alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* Hero */
.hero { padding: 64px 0 56px; background: linear-gradient(180deg, var(--orange-soft), #fff 85%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero .lead { font-size: 1.15rem; color: var(--grey); max-width: 560px; }
.hero-img { filter: drop-shadow(0 18px 30px rgba(0,0,0,.14)); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 2em; }
.hero-facts div { font-size: .9rem; color: var(--muted); }
.hero-facts b { display: block; font-size: 1.6rem; color: var(--ink); line-height: 1.1; }
.page-hero { padding: 56px 0 40px; background: linear-gradient(180deg, var(--orange-soft), #fff); }
.page-hero p { max-width: 720px; font-size: 1.1rem; color: var(--grey); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero-img { max-width: 480px; margin: 0 auto; }
}

/* Grids & cards */
.grid { display: grid; gap: 22px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid.two, .grid.three { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.feature-list li { position: relative; padding-left: 36px; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--orange-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9581a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat;
}
.feature-list b { color: var(--ink); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.feature .num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--orange-soft); color: var(--orange-dark); font-weight: 800; margin-bottom: 10px;
}
.feature h3 { font-size: 1.05rem; }
.feature p { color: var(--grey); font-size: .96rem; margin: 0; }

.cta-band { background: var(--grey); color: #fff; padding: 52px 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; margin: 0 0 .2em; }
.cta-band p { margin: 0; color: #e6e6e6; }

/* Steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps li::before { content: counter(s); display: block; font-size: 1.8rem; font-weight: 800; color: var(--orange); line-height: 1; margin-bottom: 8px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Kurs-Karten (Akademie) */
.course { display: grid; grid-template-columns: 300px 1fr; gap: 0; overflow: hidden; padding: 0; align-items: start; }
/* Bild oben in der linken Spalte im Querformat – nicht über die ganze Kartenhöhe strecken */
.course > img { width: calc(100% - 26px); margin: 26px 0 26px 26px; aspect-ratio: 3 / 2; height: auto; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-alt); }
.course-body { padding: 24px 26px; }
.course-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .92rem; color: var(--muted); margin-bottom: 12px; }
.course-meta b { color: var(--ink); }
.course ul { margin: 0 0 12px; padding-left: 20px; }
.course .dates { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.chip {
  display: inline-block; padding: 5px 11px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: var(--orange-soft); color: var(--orange-dark);
}
.chip.none { background: #eee; color: var(--muted); font-weight: 500; }
.price-tag { font-weight: 700; color: var(--ink); }
.price-tag small { font-weight: 500; color: var(--ok); }
/* Akademie: Anmeldeformular direkt unter der gewählten Schulung */
#anmelde-panel.inline { grid-column: 1 / -1; background: var(--bg-alt); border: 1px solid var(--line); border-top: 3px solid var(--orange); border-radius: var(--radius); padding: 26px; margin-top: -8px; }
#anmelde-panel.inline .section-head { margin-bottom: 18px; }
@media (max-width: 480px) { #anmelde-panel.inline { padding: 18px 12px; } }
@media (max-width: 760px) {
  .course { grid-template-columns: 1fr; }
  .course > img { width: calc(100% - 40px); margin: 20px 20px 0; aspect-ratio: 16 / 9; }
  .course-body { padding-top: 18px; }
}

/* Person (Support) */
.person { display: flex; gap: 22px; align-items: center; }
.person img { width: 120px; border-radius: var(--radius); }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 10px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; font-weight: 650; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--orange); font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 20px 16px; color: var(--grey); }
.faq .a ul, .faq .a ol { padding-left: 20px; margin: 0 0 10px; }
.faq .a p:last-child { margin-bottom: 0; }
.faq .contact { color: var(--orange-dark); font-weight: 600; }

/* Download-Liste */
.downloads { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.downloads a {
  display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; border: 1px solid var(--line);
  border-radius: 8px; text-decoration: none; color: var(--ink); background: #fff; font-weight: 600;
}
.downloads a:hover { border-color: var(--orange); }
.downloads span { color: var(--muted); font-weight: 500; font-size: .9rem; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { background: #2c2e30; color: #cfd0d2; padding: 48px 0 28px; font-size: .93rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: .8em; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer .copy { grid-column: 1 / -1; border-top: 1px solid #45484b; padding-top: 18px; color: #9a9c9f; font-size: .85rem; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ── Anfrage-/Buchungsformular ──────────────────────────────────────────── */
.form-shell { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
@media (max-width: 960px) { .form-shell { grid-template-columns: 1fr; } }
.form-shell > *, .split > *, .hero .wrap > * { min-width: 0; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); margin-bottom: 24px; }
.form-card > h2 { font-size: 1.3rem; margin-bottom: .3em; }
.form-card > .intro { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.offer-desc .hl { color: var(--err); font-weight: 700; }
/* Angebots-Boxen: Überschrift als Kopfleiste, damit klar ist, dass die Optionen darunter dazugehören */
.form-card[id^="sec-"] > h2 { margin: -26px -26px 16px; padding: 16px 26px; background: var(--orange-soft); border-bottom: 2px solid var(--orange); border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; }

.offer-row {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; align-items: center;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.offer-row:first-of-type { border-top: 0; }
.offer-row.stacked { grid-template-columns: 1fr; }
.offer-row.stacked .offer-ctrl { justify-content: flex-start; }
.offer-row.selected { background: linear-gradient(90deg, var(--orange-soft), transparent 70%); margin: 0 -26px; padding: 14px 26px; }
.offer-title { font-weight: 650; }
.offer-desc { color: var(--muted); font-size: .9rem; }
.offer-price { font-size: .88rem; color: var(--grey); margin-top: 2px; }
.offer-price .partner { color: var(--ok); }
.offer-ctrl { display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.offer-ctrl label.inline { font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
@media (max-width: 600px) {
  .offer-row { grid-template-columns: 1fr; }
  .offer-ctrl { justify-content: flex-start; }
}

.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty button { width: 38px; border: 0; background: var(--bg-alt); font-size: 1.1rem; cursor: pointer; color: var(--grey); }
.qty button:hover { background: var(--orange-soft); color: var(--orange-dark); }
.qty input { width: 52px; border: 0; text-align: center; font: inherit; padding: 8px 0; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--grey); }
.switch input { width: 20px; height: 20px; accent-color: var(--orange); }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .fields { grid-template-columns: 1fr; } }
.form-group label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.form-group input[type=text], .form-group input[type=email], .form-group input[type=tel],
.form-group select, .form-group textarea, .offer-ctrl select {
  width: 100%; font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid #cfccc6;
  border-radius: 8px; background: #fff; color: var(--ink);
}
.offer-ctrl select { width: auto; max-width: 100%; font-size: .92rem; padding: 8px 10px; }
.form-group textarea { resize: vertical; }
input:focus, select:focus, textarea:focus, .qty:focus-within { outline: 2px solid var(--orange); outline-offset: 1px; }
.form-group .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .95rem; }
.form-group .check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--orange); flex: none; }
.error { border-color: var(--err) !important; }
.error-msg { color: var(--err); font-size: .87rem; margin: 6px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.summary { position: sticky; top: 96px; }
.summary h3 { font-size: 1.05rem; }
.summary ul { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; font-size: .93rem; }
.summary li { border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.summary li small { display: block; color: var(--muted); }
.summary .empty { color: var(--muted); font-size: .93rem; }
.summary .btn { width: 100%; }
.summary .note { font-size: .82rem; color: var(--muted); margin-top: 12px; }

.success-msg { text-align: center; padding: 40px 10px; }
.success-msg .icon {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: #e7f4ec;
  display: grid; place-items: center; color: var(--ok); font-size: 2rem; font-weight: 800;
}
.loading-msg { color: var(--muted); }
.form-version { font-size: .78rem; color: #aaa; text-align: right; margin-top: 8px; }

.legal h2 { font-size: 1.3rem; margin-top: 1.6em; }

/* Schnellwahl auf der Angebotsseite */
.quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 24px 0 14px; }
.quick-link { display: block; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 6px; padding: 14px 16px; color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.quick-link:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); transform: translateY(-1px); }
.quick-link b { display: block; color: var(--orange-dark); }
.quick-link span { display: block; font-size: .9rem; color: var(--muted); margin-top: 2px; }

/* Zweiter Button im dunklen CTA-Band */
.cta-band .btn-row { margin-top: 0; }
.cta-band .btn.ghost { color: #fff; border-color: #fff; }
.cta-band .btn.ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Info-Webinar (Startseite) */
.next-webinar { margin-top: 1.1em; font-size: .95rem; color: var(--grey); }
.info-webinar { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: start; }
.info-webinar > * { min-width: 0; }
.info-webinar h3 { font-size: 1.25rem; }
@media (max-width: 860px) { .info-webinar { grid-template-columns: 1fr; } }
.info-webinar .dates { margin-top: 16px; }

/* Akademie: Einschulung & Beratung – Buttons am Kartenende auf gleicher Höhe */
.card.individual { display: flex; flex-direction: column; }
.card.individual .btn-row { margin-top: auto; padding-top: 1.2em; }

/* Shop: Summe im Warenkorb */
.summary .sum { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--ink); padding-top: 10px; margin: 4px 0 2px; }
.summary .sum b { font-size: 1.15rem; }
.summary .sum-note { font-size: .8rem; color: var(--muted); margin: 0 0 14px; }

/* Produktbild in einer Formularzeile ("thumb" in angebot.json) */
.offer-row.has-thumb { grid-template-columns: 150px 1fr auto; }
.offer-thumb { width: 150px; height: auto; border-radius: 6px; }
@media (max-width: 600px) {
  .offer-row.has-thumb { grid-template-columns: 1fr; }
  .offer-thumb { width: 100%; max-width: 280px; }
}

/* Technische Daten */
.spec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.spec-list li { padding: 12px 0 12px 32px; border-bottom: 1px solid var(--line); position: relative; }
.spec-list li::before { content: "✓"; position: absolute; left: 4px; color: var(--orange); font-weight: 800; }

/* Video erst nach Klick laden (Datenschutz) */
.video-facade { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); aspect-ratio: 16 / 9; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 12px;
  background: var(--orange); color: #fff; border: 0; border-radius: 999px; padding: 12px 22px 12px 14px; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.video-play:hover { background: var(--orange-dark); }
.video-play small { font-weight: 500; opacity: .85; }
.video-play span { white-space: nowrap; }
.video-play-icon { width: 34px; height: 34px; border-radius: 50%; background: #fff; position: relative; flex: none; }
.video-play-icon::after { content: ""; position: absolute; left: 13px; top: 9px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent var(--orange); }
.video-note { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 8px 14px; font-size: .78rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.video-note a { color: #fff; }
.video-facade.playing .video-note, .video-facade.playing .video-play, .video-facade.playing img { display: none; }

/* Gut zu wissen */
.gzw-figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.gzw-figure img { width: 100%; }
figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; text-align: center; }
.reasons { display: grid; gap: 22px; }
.reason { display: grid; grid-template-columns: 44px 1fr auto; gap: 18px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.reason > * { min-width: 0; }
.reason .num { width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; display: grid; place-items: center; }
.reason h3 { margin-top: 6px; }
.reason img { max-width: 240px; border-radius: 6px; }
.reason img.wide { grid-column: 2 / -1; max-width: 100%; }
.reason .check-list { list-style: none; padding: 0; display: grid; gap: 6px; margin: 0; }
.reason .check-list li { padding-left: 24px; position: relative; }
.reason .check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--orange); font-weight: 800; }
.printouts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -8px; }
.printouts figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.study-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .95rem; }
.study-list span { display: inline-block; background: var(--orange-soft); color: var(--orange-dark); font-weight: 700; font-size: .8rem; padding: 2px 8px; border-radius: 999px; margin-right: 6px; }
@media (max-width: 760px) {
  .reason { grid-template-columns: 1fr; }
  .reason img, .reason img.wide { grid-column: auto; max-width: 100%; }
  .printouts { grid-template-columns: repeat(2, 1fr); }
}

/* Bild-Lightbox (js/lightbox.js) */
a.zoom { display: block; cursor: zoom-in; position: relative; }
a.zoom::after { content: "⤢"; position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; font-size: 15px; opacity: .8; transition: opacity .15s; }
a.zoom:hover::after { opacity: 1; background: var(--orange); }
.printouts a.zoom:hover img, .reason a.zoom:hover img { outline: 2px solid var(--orange); outline-offset: 2px; }
.reason a.zoom { justify-self: end; }
.reason a.zoom:has(img.wide) { grid-column: 2 / -1; justify-self: stretch; }
body.lb-open { overflow: hidden; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; overflow: hidden; }
.lightbox::backdrop { background: rgba(20,20,22,.88); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 64px 20px; pointer-events: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); width: auto; height: auto; background: #fff; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,.5); pointer-events: auto; }
.lightbox figcaption { color: #eee; margin-top: 12px; font-size: .95rem; white-space: pre; }
.lightbox button { position: fixed; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; border-radius: 50%; width: 48px; height: 48px; font-size: 30px; line-height: 1; display: grid; place-items: center; }
.lightbox button:hover { background: var(--orange); }
.lightbox .lb-close { top: 14px; right: 14px; font-size: 28px; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox button[hidden] { display: none; }
@media (max-width: 600px) {
  .lightbox figure { padding: 56px 8px 16px; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 14px; transform: none; }
}

/* ── Mobile-Feinschliff ──────────────────────────────────────────────────── */
/* Lange Wörter/Links (E-Mail-Adressen, URLs, AGB-Begriffe) dürfen umbrechen */
body { overflow-wrap: break-word; }
.legal, .card, .faq .a { overflow-wrap: anywhere; }
/* Hero-Bild: nie breiter als die Spalte (max-width:480px hätte max-width:100% überschrieben) */
.hero-img { width: 100%; }
@media (max-width: 860px) { .hero-img { max-width: min(480px, 100%); } }
/* Kontakt-Karte Support */
.person > div { min-width: 0; }
.grid > * { min-width: 0; }
@media (max-width: 420px) {
  .person { flex-direction: column; align-items: flex-start; }
  .person img { width: 110px; }
}
/* Kleine Bildschirme: etwas weniger Innenabstand, Buttons volle Breite in Button-Reihen der Hero-Bereiche */
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  section.block { padding: 48px 0; }
  .hero, .page-hero { padding: 40px 0 32px; }
  .form-card { padding: 20px 16px; }
  .form-card[id^="sec-"] > h2 { margin: -20px -16px 14px; padding: 14px 16px; }
  .offer-row.selected { margin: 0 -16px; padding: 14px 16px; }
  .hero .btn-row .btn, .cta-band .btn-row .btn { flex: 1 1 100%; text-align: center; }
  .card { padding: 20px; }
}
/* Formularzeilen: Inhalte dürfen schrumpfen; Termin-Auswahl auf Handys volle Breite */
.offer-row > * { min-width: 0; }
.offer-ctrl select { min-width: 0; }
@media (max-width: 600px) {
  .offer-ctrl select { width: 100%; }
  .offer-ctrl label.inline { width: 100%; justify-content: space-between; }
}

/* Handy: Auswahl-Leiste unten (js/anfrage.js mobileBar) */
.mobile-bar { display: none; }
@media (max-width: 960px) {
  .mobile-bar:not([hidden]) {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
    justify-content: space-between; align-items: center; gap: 12px;
    background: var(--orange); color: #fff; border: 0; border-radius: 12px; padding: 14px 18px;
    font: inherit; font-size: .95rem; box-shadow: 0 8px 24px rgba(0,0,0,.25); cursor: pointer; text-align: left;
  }
  .mobile-bar b { white-space: nowrap; }
}
