:root {
  color-scheme: light;
  --ink: #000;             /* Nur Schrift und Fokusrahmen. Keine dunklen Flächen, keine dunklen Linien. */
  --edge: 2px solid transparent; /* hält den Platz frei, damit die orange Auswahl nichts verschiebt */
  --soft: #f3d9cc;         /* Nebenbuttons und erledigte Schritte */
  --field: #7a858d;        /* Rand von Eingabefeldern, Kontrast 3.9:1 */
  --orange: #F9491A;       /* Markenfarbe, nur fuer Flaechen und grosse Elemente */
  --orange-strong: #D63B0F; /* Buttons mit weisser Schrift, Kontrast 4.7:1 */
  --orange-text: #B9310B;   /* Text und Links auf Creme, Kontrast 5.4:1 */
  --amber: #FD9313;
  --cream: #FFF1EA;
  --white: #fff;
  --muted: #55606a;
  --line: #e8d9cf;
  --danger: #b42318;
  --ok-bg: #e7f4ec;
  --ok: #17603a;
  --radius: 8px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--cream); color: var(--ink); font: 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
html[lang="de"] [data-l="en"], html[lang="en"] [data-l="de"] { display: none !important; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
a { color: var(--orange-text); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.8vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
h1:focus, h2:focus { outline: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--orange-strong); color: #fff; padding: 8px 12px; border-radius: var(--radius); z-index: 20; }
.skip:focus { left: 8px; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 680px; }
.flow { padding-block: 36px 64px; }

/* Kopf */
.top { background: var(--white); color: var(--ink); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.logo { display: flex; }
.logo img { width: 168px; height: auto; display: block; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; padding: 6px 0; }
.nav a:hover { text-decoration: underline; }
.top-right { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); overflow: hidden; }
.lang button { border: 0; background: var(--white); color: var(--ink); font: inherit; font-size: .85rem; font-weight: 600; padding: 6px 10px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--orange-strong); color: #fff; }
@media (max-width: 820px) { .nav { order: 3; width: 100%; margin-left: 0; gap: 18px; overflow-x: auto; } .top-right { margin-left: auto; } }
@media (max-width: 560px) {
  html { scroll-padding-top: 108px; }
  .wrap { padding-inline: 16px; }
  .top-in { gap: 6px 8px; min-height: 0; padding-block: 8px 4px; }
  .logo img { width: 124px; }
  .top-right { gap: 8px; }
  .lang button { padding: 6px 8px; }
  .nav { font-size: .9rem; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .35em; border: 2px solid transparent; border-radius: 999px; font: inherit; font-weight: 700; padding: 11px 24px; cursor: pointer; text-decoration: none; min-height: 46px; }
.btn-primary { background: var(--orange-strong); color: #fff; }
.btn-primary:hover { background: #b9310b; }
.btn-outline, .btn-ghost { background: var(--soft); color: var(--ink); }
.btn-outline:hover, .btn-ghost:hover { background: #ecc6b3; }
.btn-sm { padding: 6px 14px; min-height: 36px; font-size: .9rem; }
.btn-lg { padding: 14px 28px; font-size: 1.08rem; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }

/* Hero */
.eyebrow { color: var(--orange-text); font-weight: 700; margin: 0 0 10px; }
.lead { font-size: 1.1rem; max-width: 34em; margin: 0 0 24px; }
.hint { color: var(--muted); font-size: .9rem; margin: 12px 0 0; }

/* Hero: Foto über die volle Breite, Überschrift in einer weißen Karte darauf */
.hero { background: var(--cream); padding-bottom: 48px; }
.photo.hero-photo { border-radius: 0; }
.photo.hero-photo figcaption { left: auto; right: 16px; bottom: 16px; }
.hero-card { position: relative; background: var(--white); border-radius: 14px; padding: 32px; max-width: 640px; margin-top: 48px; }
/* Mit Foto füllt der Hero genau den ersten Bildschirm unter der Kopfzeile. Die Karte liegt unten im Foto
   und ist damit immer vollständig sichtbar, egal wie hoch das Fenster ist. --top-h setzt app.js. */
.hero.has-photo { position: relative; display: flex; align-items: flex-end; padding: 0; min-height: min(calc(100vh - var(--top-h, 65px)), 920px); min-height: min(calc(100svh - var(--top-h, 65px)), 920px); }
.hero.has-photo .photo.hero-photo { position: absolute; inset: 0; }
.hero.has-photo .photo.hero-photo img { height: 100%; aspect-ratio: auto; object-position: center 30%; }
.hero.has-photo > .wrap { position: relative; width: 100%; padding-block: 32px; }
.hero.has-photo .hero-card { margin-top: 0; }
.btn-arrow { gap: 12px; padding-left: 10px; }

/* Runder Pfeil-Button */
.arrow { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none; border: 0; border-radius: 50%; background: var(--orange-strong); color: #fff; cursor: pointer; padding: 0; }
.arrow svg { width: 22px; height: 22px; }
.arrow-inv { background: var(--white); color: var(--orange-strong); }
.btn-arrow .arrow { width: 34px; height: 34px; }
.btn-arrow .arrow svg { width: 18px; height: 18px; }
button.arrow:hover { background: #b9310b; color: #fff; }

/* Kacheln: Text oben, Bild unten, Pfeil-Button ragt über die Bildkante */
.tiles3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.tile3 { display: flex; flex-direction: column; }
.tile3 p { margin: 0 0 16px; }
.tile3-media { position: relative; margin-top: auto; margin-bottom: 24px; min-height: 72px; border-radius: var(--radius); background: var(--cream); }
.tile3-media .arrow { position: absolute; left: 50%; bottom: -24px; margin-left: -24px; }
.tile3-media .photo img[src$="robot-arm.jpg"] { object-position: 38% center; }
.price-block { aspect-ratio: 3 / 2; border-radius: var(--radius); background: var(--cream); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.price-block strong { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; font-weight: 800; color: var(--orange-text); }
@media (max-width: 820px) {
  .tiles3 { grid-template-columns: 1fr; gap: 28px; }
  .hero.has-photo > .wrap { padding-block: 16px; }
  .hero-card { padding: 22px; }
}
.photo { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--white); }
.photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.photo figcaption { position: absolute; left: 8px; bottom: 8px; background: var(--white); color: var(--ink); font-size: .75rem; padding: 1px 8px; border-radius: 4px; }

/* Abschnitte */
.band { padding-block: 56px; }
.band-white { background: var(--white); }
.steps3 { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps3 li { background: var(--white); border: var(--edge); border-radius: var(--radius); padding: 20px; }
.steps3 p, .card p { margin: 0; }
.num { display: inline-flex; width: 38px; height: 38px; border-radius: 6px; background: var(--orange-strong); color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 12px; }
.num-mid { background: var(--orange); color: var(--ink); }
.num-amber { background: var(--amber); color: var(--ink); }
.price-card ul { margin: 14px 0 0; padding-left: 1.1em; }
.price-card { background: var(--cream); border: var(--edge); border-radius: var(--radius); padding: 28px; max-width: 420px; margin-top: 24px; }
.price { font-size: 2.6rem; font-weight: 800; margin: 0; line-height: 1; }
.price small { font-size: 1rem; font-weight: 400; color: var(--muted); }
.price-card ul { margin-bottom: 22px; }
details { background: var(--white); border: var(--edge); border-radius: var(--radius); padding: 14px 18px; margin-top: 10px; }
summary { font-weight: 700; cursor: pointer; }
details p { margin: 10px 0 2px; }
@media (max-width: 820px) { .steps3 { grid-template-columns: 1fr; } .band { padding-block: 40px; } }

/* Buchung */
.stepper { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 28px; font-size: .9rem; }
.stepper li { flex: 1; padding: 6px 10px; border-radius: 6px; background: var(--white); color: var(--muted); border: var(--edge); border-color: var(--line); }
.stepper li[aria-current="step"] { background: var(--orange-strong); border-color: var(--orange-strong); color: #fff; font-weight: 700; }
.stepper li.done { background: var(--soft); border-color: var(--soft); color: var(--ink); }
fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
legend { font-weight: 700; padding: 0; margin-bottom: 10px; }
.choice2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .choice2 { grid-template-columns: 1fr; } }
.pick, .chip { position: relative; display: block; cursor: pointer; }
.pick input, .chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pick-in { display: flex; flex-direction: column; gap: 4px; background: var(--white); border: var(--edge); border-radius: var(--radius); padding: 20px; min-height: 96px; }
.pick-in span { color: var(--muted); font-size: .95rem; }
.pick input:checked + .pick-in { border-color: var(--orange-strong); background: #fff8f4; box-shadow: inset 0 0 0 2px var(--orange-strong); }
.pick input:focus-visible + .pick-in, .chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
[data-dates] { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
[data-dates] .chip > span { width: 100%; justify-content: center; }
.chip > span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; background: var(--white); border: var(--edge); border-radius: var(--radius); font-weight: 600; }
.chip input:checked + span { background: var(--orange-strong); border-color: var(--orange-strong); color: #fff; }
.actions { display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; margin-top: 8px; }
.error { color: var(--danger); font-weight: 600; margin: 0 0 12px; }
.summary { background: var(--white); border: var(--edge); border-radius: var(--radius); padding: 8px 20px; margin: 0 0 24px; }
.summary > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.summary > div:last-child { border-bottom: 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; text-align: right; }
.summary .total dt, .summary .total dd { color: var(--ink); font-weight: 800; font-size: 1.15rem; }
.summary small { font-weight: 400; font-size: .8rem; color: var(--muted); }

/* Hinweise und Formular */
.notice { background: var(--white); border: var(--edge); border-left: 8px solid var(--amber); padding: 16px 18px; margin: 16px 0 28px; }
.notice.ok { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); }
label[for] { display: block; font-weight: 700; margin-bottom: 6px; }
input[type="email"], input[type="password"] { width: 100%; font: inherit; padding: 12px 14px; border: 2px solid var(--field); border-radius: var(--radius); background: #fff; color: var(--ink); min-height: 48px; }
input[aria-invalid="true"] { border-color: var(--danger); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-size: .95rem; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--orange-strong); }
.legal h2 { font-size: 1.15rem; margin-top: 1.6em; }
.legal a { overflow-wrap: anywhere; }
.todo { background: #ffe08a; color: #4a3500; padding: 0 4px; }

/* Fuss */
main { flex: 1; }
.foot { background: var(--white); color: var(--ink); font-size: .9rem; border-top: 1px solid var(--line); }
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; }
.foot a { color: var(--ink); }
.foot-links { display: flex; gap: 18px; }
