/* Machora · Styles
   Alle Farben, Schriftgrössen und Abstände als Variablen. Mobil ist die Basis,
   ab 768 px wachsen die Werte fliessend bis zu den Desktop-Werten ab 1024 px.
   Werte nach Brand Guide (machora-main/design/brand/brand-guide.md). */
:root {
  /* Farben */
  --forest: #0b2e1d;        /* brand-forest */
  --forest-deep: #08241a;   /* Footer */
  --green: #6fb52c;         /* brand-lime: nie als kleine Schrift auf Weiss */
  --green-light: #8ccb4b;   /* brand-lime auf dunklem Grund */
  --green-mid: #3e7a52;
  --tint: #f4f6f2;
  --line: #dde3d9;
  --line-strong: #c3cdbf;
  --line-dark: rgba(255, 255, 255, 0.14);
  --ink: #0f1511;
  --muted: #56645a;         /* 5.9:1 auf Weiss */
  --on-dark: #d5ddd2;       /* Fliesstext auf Dunkelgrün */
  --on-dark-muted: #a7b6a5;
  --photo-bg: #1a2a20;
  --sold: #b8481f;          /* signal-sold */
  --error: #a3361a;
  --white: #ffffff;

  /* Schriften */
  --font-display: 'Saira', 'Arial Black', system-ui, sans-serif;
  --font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  /* Schriftgrössen: mobil (bis 767 px) als Basis, danach fliessend bis Desktop (ab 1024 px) */
  --fs-hero: 1.75rem;                                           /* 28 → 48–64 px */
  --lh-hero: 1.1;
  --fs-h2: clamp(1.5rem, 6.25vw - 1.5rem, 2.5rem);              /* 24 → 40 px */
  --lh-h2: 1.15;
  --fs-h3: clamp(1.125rem, 2.34375vw, 1.5rem);                  /* 18 → 24 px */
  --lh-h3: 1.2;
  --fs-body: clamp(0.9375rem, 1.171875vw + 0.375rem, 1.125rem); /* 15 → 18 px */
  --lh-body: 1.55;
  --fs-btn: 0.9375rem;
  --lh-btn: 1.2;
  --fs-small: 0.8125rem;                                        /* 13 → 14 px */
  --lh-small: 1.45;
  --fs-label: 0.8125rem;                                        /* 13 px, Grossbuchstaben-Labels */

  /* Abstände */
  --gutter: clamp(20px, 4.6875vw - 16px, 32px);                 /* 20 → 32 px */
  --sec-y: clamp(40px, 12.5vw - 56px, 72px);                    /* 40 → 72 px */
  --wrap: 1200px;
  --measure: 60ch;
  --gap: 20px;
  --header-h: 64px;

  /* Radien */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 16px;
}
@media (max-width: 379px) { :root { --fs-hero: 1.625rem; } }                         /* 26 px */
@media (min-width: 768px) { :root { --fs-hero: clamp(2rem, 4.68vw, 4rem); --lh-hero: 1.05; --header-h: 72px; --fs-btn: 1rem; --fs-small: 0.875rem; } } /* bis 64 px */

/* Grundlagen */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font-body); font-size: var(--fs-body); line-height: var(--lh-body); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, p { margin: 0; }
/* Umbruch nur an echten Bindestrichen; sehr lange Wörter notfalls umbrechen statt überlaufen */
h1, h2, h3 { overflow-wrap: break-word; hyphens: manual; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
/* Display: Saira ExtraBold, breiter Schnitt, Grossbuchstaben (Brand Guide) */
.disp { font-family: var(--font-display); font-weight: 800; font-stretch: 112.5%; text-transform: uppercase; letter-spacing: -0.005em; }
.mono { font-family: var(--font-mono); font-weight: 500; }
.accent { color: var(--green-light); }
.tagline { font-family: var(--font-body); font-weight: 400; font-size: 12px; line-height: 16px; letter-spacing: 0.2em; text-transform: uppercase; }

.h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); color: var(--forest); text-wrap: balance; }
.lead { margin-top: 16px; max-width: var(--measure); color: var(--muted); }

/* Abschnitte: Abstand nur über das eigene Padding, nie zusätzlich über Margins */
.sec { padding: var(--sec-y) 0; }
.sec-tint { background: var(--tint); }
.sec-dark { background: var(--forest); color: var(--white); }
.sec-head { max-width: var(--measure); }
.sec-head + * { margin-top: 32px; }
@media (min-width: 1024px) { .sec-head + *, .sec-head + .steps { margin-top: 40px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 20px; border-radius: var(--r-md); border: 0; font-family: var(--font-body); font-weight: 700; font-size: var(--fs-btn); line-height: var(--lh-btn); text-align: center; cursor: pointer; transition: background-color .15s ease, box-shadow .15s ease, color .15s ease; }
.btn-green { background: var(--green); color: var(--ink); }
.btn-green:hover { background: #7cc236; }
.btn-dark { background: var(--forest); color: var(--white); }
.btn-dark:hover { background: #134330; }
.btn-outline-light { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35); }
.btn-outline-light:hover { box-shadow: inset 0 0 0 2px var(--white); }
.btn-outline { background: var(--white); color: var(--forest); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-outline:hover { box-shadow: inset 0 0 0 2px var(--forest); }
.btn[disabled] { opacity: .6; cursor: progress; }

.pill { cursor: pointer; font-family: var(--font-body); font-weight: 600; font-size: var(--fs-small); line-height: 1.2; min-height: 44px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.pill:hover { border-color: var(--forest); }
.pill[aria-pressed="true"], .pill[aria-selected="true"] { border-color: var(--forest); background: var(--forest); color: var(--white); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.nav { position: relative; display: flex; align-items: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 8px; max-width: 145px; min-height: 44px; flex-shrink: 0; }
.brand-mark { width: 38px; height: auto; }
.brand-name { font-size: 1.25rem; line-height: 1; color: var(--forest); white-space: nowrap; }
/* Handy: nur das M-Zeichen, der Link heisst weiterhin "Machora" (aria-label) */
@media (max-width: 767px) { .brand-name { display: none; } .brand-mark { width: 42px; } }
.navright { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.lang-switch button { cursor: pointer; min-width: 44px; min-height: 44px; padding: 0 8px; border: 0; font-weight: 700; font-size: var(--fs-small); background: var(--white); color: var(--ink); }
.lang-switch button + button { border-left: 1px solid var(--line); }
.lang-switch button[aria-pressed="true"] { background: var(--forest); color: var(--white); }
.nav-toggle { display: inline-flex; cursor: pointer; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--forest); }
.nav-toggle .i-close, .nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: inline; }
/* Mobil/Tablet: Menü als Panel unter dem Header */
.navlinks { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; padding: 8px var(--gutter) 16px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px -16px rgba(11, 46, 29, .25); }
.navlinks.open { display: flex; }
.navlinks a { display: flex; align-items: center; min-height: 48px; font-weight: 600; font-size: var(--fs-body); border-bottom: 1px solid var(--line); }
.navlinks a:last-child { border-bottom: 0; }
@media (min-width: 1024px) {
  .nav { padding-top: 14px; padding-bottom: 14px; }
  .brand { max-width: none; gap: 12px; }
  .brand-mark { width: 44px; }
  .brand-name { font-size: 1.625rem; }
  .navright { gap: 28px; }
  .nav-toggle { display: none; }
  .navlinks { display: flex; position: static; flex-direction: row; gap: 28px; padding: 0; border: 0; box-shadow: none; background: transparent; }
  .navlinks a { min-height: 44px; border: 0; font-size: 0.9375rem; text-decoration: underline 2px transparent; text-underline-offset: 8px; transition: text-decoration-color .15s ease; }
  .navlinks a:hover { text-decoration-color: var(--green); }
}

/* ---------- Hero ---------- */
.hero { background: var(--forest); color: var(--white); }
.hero-grid { padding-top: 28px; padding-bottom: 28px; }
.hero-title { font-size: var(--fs-hero); line-height: var(--lh-hero); color: var(--white); max-width: 22ch; }
.hero-title > span { display: block; }
.hero-text { margin-top: 16px; max-width: 46ch; color: var(--on-dark); }
.hero-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.hero-btns .btn { width: 100%; }
/* Kategorien: auf Handys ausgeblendet (so mit dem Team abgemacht), ab Tablet sichtbar */
.hero-cats { display: none; }
.hero-cat { position: relative; display: block; overflow: hidden; border-radius: var(--r-md); background: var(--photo-bg); color: var(--white); box-shadow: inset 0 0 0 1px var(--line-dark); }
.hero-cat img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.hero-cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 36, 26, 0) 45%, rgba(8, 36, 26, .9) 100%); }
.hero-cat-text { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.hero-cat-label { font-size: var(--fs-h3); line-height: var(--lh-h3); }
.hero-cat-go { flex-shrink: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--green); color: var(--ink); transition: transform .2s ease; }
.hero-cat:hover .hero-cat-go { transform: translateX(2px); }
.hero-cat:hover img { transform: scale(1.03); }
.hero-cat:focus-visible { outline: 3px solid var(--green-light); outline-offset: 3px; }
@media (min-width: 768px) {
  .hero-grid { padding-top: var(--sec-y); padding-bottom: var(--sec-y); }
  .hero-title { max-width: 24ch; }
  .hero-text { margin-top: 24px; }
  .hero-btns { flex-direction: row; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
  .hero-btns .btn { width: auto; }
  .hero-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: 48px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-cats { gap: 12px; }
  .hero-cat-text { left: 12px; right: 12px; bottom: 10px; }
  .hero-cat-label { font-size: 1.0625rem; }
  .hero-cat-go { width: 30px; height: 30px; }
}

/* ---------- Marken-Laufband ---------- */
.brands { background: var(--white); border-bottom: 1px solid var(--line); padding: 14px 0; overflow: hidden; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; width: max-content; }
.marquee-track span { padding: 0 18px; font-family: var(--font-display); font-weight: 800; font-stretch: 112.5%; font-size: 1rem; line-height: 1.2; text-transform: uppercase; white-space: nowrap; color: var(--muted); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee var(--marquee-dur, 60s) linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { width: auto; flex-wrap: wrap; justify-content: center; row-gap: 6px; padding: 0 var(--gutter); }
  .marquee-track [aria-hidden="true"] { display: none; }
}

/* ---------- Maschinen ---------- */
.listings-bar { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.mode-switch { display: flex; padding: 4px; gap: 4px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); align-self: stretch; }
.mode-switch button { flex: 1 1 0; cursor: pointer; min-height: 44px; padding: 0 18px; border: 0; border-radius: 8px; font-weight: 700; font-size: var(--fs-small); background: transparent; color: var(--ink); transition: background-color .15s ease, color .15s ease; }
.mode-switch button[aria-checked="true"] { background: var(--forest); color: var(--white); }
.tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tabs .pill { padding: 0 8px; }
@media (min-width: 768px) {
  .listings-bar { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .mode-switch { align-self: auto; }
  .mode-switch button { flex: 0 0 auto; }
  .tabs { display: flex; flex-wrap: wrap; }
  .tabs .pill { padding: 0 16px; }
}
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); margin-top: 24px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 32px; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s ease, box-shadow .15s ease; }
.card:hover { border-color: var(--line-strong); box-shadow: 0 12px 28px -18px rgba(11, 46, 29, .35); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--photo-bg); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .tags { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.card.is-sold .card-media img { filter: saturate(.5); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex-grow: 1; }
.card-kicker { font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 500; color: var(--muted); }
.card-title { margin-top: 4px; font-size: var(--fs-h3); line-height: var(--lh-h3); color: var(--forest); }
.card-price { margin-top: 10px; font-size: 1.125rem; line-height: 1.3; color: var(--ink); }
/* Eckdaten wie auf einem Datenblatt: Bezeichnung links, Wert rechts */
.card-specs { margin: 14px 0 0; padding-top: 4px; border-top: 1px solid var(--line); font-size: var(--fs-small); line-height: var(--lh-small); }
.card-specs div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.card-specs dt { color: var(--muted); }
.card-specs dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.card-btn { margin-top: auto; }
.card-body .card-btn { margin-top: 18px; width: 100%; }
.card-sold-note { margin-top: 18px; font-weight: 700; font-size: var(--fs-small); color: var(--muted); }

/* Status-Chips: Angebot / Gesuch in Hellgrün, Verkauft in Signalrot, immer mit Text */
.tag { display: inline-block; font-family: var(--font-body); font-weight: 700; font-size: 0.8125rem; line-height: 1.4; padding: 3px 9px; border-radius: var(--r-sm); }
.tag-sale, .tag-wanted { background: var(--green); color: var(--ink); }
.tag-sold { background: var(--sold); color: var(--white); }
.tag-reserved { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* Leer, laden, Fehler */
.state-box { margin-top: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.state-box p { max-width: var(--measure); }
.state-box .state-title { font-weight: 700; color: var(--ink); }
.state-box .state-actions { display: flex; flex-direction: column; gap: 12px; }
.state-box.is-error { border-color: #e2b8a8; }
@media (min-width: 768px) {
  .state-box { padding: 32px; flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
  .state-box .state-actions { flex-direction: row; flex-shrink: 0; }
}
.skeleton .card-media, .skeleton .sk-line { background: linear-gradient(90deg, #edf1ea 25%, #f6f8f4 50%, #edf1ea 75%); background-size: 200% 100%; }
.skeleton .sk-line { height: 14px; border-radius: 4px; margin-top: 10px; }
.skeleton .sk-line.w60 { width: 60%; }
.skeleton .sk-line.w40 { width: 40%; height: 20px; }
@media (prefers-reduced-motion: no-preference) { .skeleton .card-media, .skeleton .sk-line { animation: shimmer 1.4s linear infinite; } }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Ablauf ---------- */
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; counter-reset: none; }
/* Drei Schritte als Karten mit grosser Nummer (echte Reihenfolge) */
.step { background: var(--tint); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.step-n { font-family: var(--font-display); font-weight: 800; font-stretch: 112.5%; font-size: clamp(2.25rem, 2.6vw + 1.2rem, 3rem); line-height: 1; color: var(--green); }
.step h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); color: var(--forest); }
.step p { color: var(--muted); max-width: 42ch; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); } .step { padding: 28px; } }

/* ---------- Über uns ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.about-title { font-size: var(--fs-h2); line-height: var(--lh-h2); color: var(--white); }
.about-text { margin-top: 16px; max-width: var(--measure); color: var(--on-dark); }
.about-grid .btn { margin-top: 24px; }
.about-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); background: var(--photo-bg); }
/* Drei Zusagen als eigene, klar abgegrenzte Felder */
.promises { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 40px; }
.promise { padding: 22px 22px 24px; border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-dark); }
.promise::before { content: ""; display: block; width: 32px; height: 3px; border-radius: 2px; background: var(--green-light); margin-bottom: 16px; }
.promise h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); color: var(--white); }
.promise p { margin-top: 8px; color: var(--on-dark-muted); max-width: 42ch; }
@media (min-width: 768px) {
  .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
  .promises { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: 56px; }
  .promise { padding: 28px; }
}

/* ---------- Community ---------- */
.community-head .btn { margin-top: 24px; }
.posts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.posts-label { grid-column: 1 / -1; font-weight: 600; color: var(--ink); }
.post { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.post .tag { align-self: flex-start; }
.post h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); color: var(--forest); }
.post-fields { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink); }
.post-fields li { display: flex; gap: 8px; align-items: flex-start; }
.post-fields svg { flex-shrink: 0; margin-top: 3px; color: var(--green-mid); }
@media (min-width: 768px) { .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); } .post { padding: 24px; } }

/* ---------- Kontakt + Formular ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.sec-dark .h2 { color: var(--white); }
.cta-intro p { margin-top: 16px; max-width: 44ch; color: var(--on-dark); }
.cta-points { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-small); line-height: var(--lh-small); }
.cta-points li { display: flex; gap: 8px; align-items: flex-start; }
.cta-points li { color: var(--on-dark); }
.cta-points svg { flex-shrink: 0; margin-top: 2px; color: var(--green-light); }
.form-card { background: var(--white); color: var(--ink); border-radius: var(--r-lg); padding: 20px; min-width: 0; box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .55); }
@media (min-width: 768px) { .form-card { padding: 32px; } }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } .cta-intro { position: sticky; top: calc(var(--header-h) + 32px); } }

.wiz { display: flex; flex-direction: column; gap: 20px; }
.wiz-progress { display: flex; flex-direction: column; gap: 8px; }
.wiz-step-label { font-size: var(--fs-small); line-height: 1.3; font-weight: 700; color: var(--green-mid); }
.wiz-bar { height: 6px; border-radius: 999px; background: #e4eae0; overflow: hidden; }
.wiz-bar span { display: block; height: 100%; border-radius: 999px; background: var(--green-mid); transition: width .25s ease; }
.wiz-q { font-size: var(--fs-h3); line-height: var(--lh-h3); color: var(--forest); }
.wiz-q:focus { outline: none; }
.wiz-sub { margin-top: 6px; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--muted); }
.choices { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 560px) { .choices { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.choice { cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 14px 16px; min-height: 64px; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); transition: border-color .15s ease, background-color .15s ease; }
.choice:hover { border-color: var(--forest); }
.choice[aria-pressed="true"] { border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); background: var(--tint); }
.choice-img { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 8px; background: var(--photo-bg) center / cover no-repeat; margin-bottom: 8px; }
.choice-label { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.choice-sub { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--muted); }
@media (max-width: 559px) {
  .choice.has-img { display: grid; grid-template-columns: 84px 1fr; column-gap: 14px; align-items: center; padding: 10px; }
  .choice.has-img .choice-img { grid-row: 1 / span 2; margin: 0; }
}
.fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 560px) { .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld.full { grid-column: 1 / -1; }
.fld label, .lbl { font-size: var(--fs-small); line-height: 1.3; font-weight: 600; color: var(--ink); }
.inp { min-height: 48px; width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; font-family: var(--font-body); font-size: 1rem; line-height: 1.3; color: var(--ink); background: var(--white); }
.inp::placeholder { color: #8a968c; }
.inp:focus { outline: 3px solid rgba(111, 181, 44, .45); outline-offset: 0; border-color: var(--green-mid); }
textarea.inp { resize: vertical; min-height: 120px; }
input[type=file].inp { padding: 10px 12px; }
.phone-row { display: flex; gap: 8px; }
.phone-row select { width: auto; flex: 0 0 auto; }
.phone-row input { flex: 1 1 auto; min-width: 0; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.file-note { font-size: var(--fs-small); color: var(--green-mid); font-weight: 600; }
.note-box { padding: 14px 16px; background: var(--tint); border-radius: 10px; font-size: var(--fs-small); line-height: var(--lh-small); }
.consent { display: flex; gap: 10px; align-items: flex-start; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--green-mid); flex-shrink: 0; }
.consent label { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink); }
.consent a { text-decoration: underline; color: var(--forest); }
.wiz-error { padding: 12px 14px; border-radius: 10px; background: #fbeee9; font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 600; color: var(--error); }
.wiz-nav { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.wiz-nav .push { margin-left: auto; }
@media (max-width: 479px) { .wiz-nav .btn { flex: 1 1 auto; } .wiz-nav .push { margin-left: 0; } }
.ref-box { display: flex; flex-direction: column; gap: 8px; }
.ref-card { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px; background: var(--tint); }
.ref-thumb { width: 80px; aspect-ratio: 4 / 3; flex: 0 0 auto; border-radius: 8px; background: var(--photo-bg) center / cover no-repeat; }
.ref-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.ref-info .tag { align-self: flex-start; }
.ref-title { font-size: 1rem; line-height: 1.3; color: var(--forest); }
.ref-meta { font-size: 0.8125rem; line-height: 1.4; color: var(--muted); }
.ref-clear { flex: 0 0 auto; width: 44px; height: 44px; border: 0; border-radius: 8px; background: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.thanks { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.thanks h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); color: var(--forest); }
.thanks p { color: var(--muted); }
/* Spam-Falle: für Menschen unsichtbar */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
/* Footer: dunkler als die Abschnitte darüber, mit hellgrüner Kante als klarer Abschluss */
.site-footer { background: #061a11; border-top: 3px solid var(--green); color: var(--white); padding: 48px 0 24px; font-size: var(--fs-small); line-height: var(--lh-small); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.footer-brand img { width: 150px; }
.footer-label { font-weight: 700; color: var(--white); font-size: 0.9375rem; margin-bottom: 6px; }
.footer-links { display: flex; flex-direction: column; color: var(--on-dark); }
.footer-links a { display: inline-flex; align-items: center; min-height: 40px; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 12px; font-size: 0.8125rem; line-height: 1.5; color: var(--on-dark-muted); }
.footer-bottom a { text-decoration: underline; display: inline-block; padding: 4px 0; }
@media (min-width: 768px) {
  .site-footer { padding-top: 64px; }
  .footer-top { grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
  .footer-brand img { width: 170px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ---------- Rechtliche Seiten ---------- */
.legal { max-width: 760px; font-size: 1rem; line-height: 1.6; }
.legal h1 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
.legal h2 { font-family: var(--font-body); font-weight: 700; font-size: 1.125rem; line-height: 1.3; margin: 32px 0 8px; }
.legal p { margin: 0 0 16px; }
.legal a { text-decoration: underline; }
.legal .legal-back { display: inline-flex; min-height: 44px; align-items: center; font-weight: 700; text-decoration: none; }
.legal-date { margin-top: 32px; font-size: var(--fs-small); color: var(--muted); }
