/* haasandcompany.com: the stylesheet of every subpage in the look of the light home page
   (index.html with assets/hell.css). Florian, 01.12.2026, about the light draft: "Das hier auf
   http://localhost:5187/ finde ich tendenziell gut. Da stimmen nur die parallelseiten dazu irgendwie
   noch nicht ... Das sieht nicht passend aus im Design".

   Used by /flatrate/ (US), /flatrate/au/, /flatrate/thanks/, /retained-search/ (US),
   /retained-search/au/, the five pages under /tools/ and /404.html. Ivory and sand sections, white
   cards with the warm shadow, serif headlines, gold pill buttons, faint grid lines and warm glows at
   the top, Florian's photo card, the photo band before the last section, header and footer as
   on the home page.

   Colours only through the variables in :root (same names and values as assets/hell.css), so the
   brand area can swap the palette in one place. Every page links this file with ?v=<date>: bump it
   on every change, so no browser keeps an old copy. lp.js and maerkte.js stay as they are.
   Booking first on the flat rate (Florian, 24.11.2026): its buttons lead to the plans, the plans go
   straight to Stripe, the briefing call is booked on /flatrate/thanks/. */
@font-face { font-family:'Inter'; src:url('/assets/fonts/Inter-Variable.woff2') format('woff2-variations');
  font-weight:100 900; font-style:normal; font-display:swap; }

:root {
  /* ---- Palette (as assets/hell.css). A new design swaps this block only. ---- */
  --hc-bg:#fbf8f2;                     /* ivory */
  --hc-sand:#f4eee3;                   /* every second section */
  --hc-card:#ffffff;
  --hc-ink:#121724;                    /* navy of the wordmark on light ground */
  --hc-ink-2:#384154;
  --hc-ink-3:#525c70;
  --hc-ink-4:#6b7487;
  --hc-text:#2a3142;
  --hc-line:rgba(18,23,36,.09);
  --hc-line-2:rgba(18,23,36,.14);      /* fields, market switch */
  --hc-line-3:rgba(18,23,36,.25);      /* hover */
  --hc-rand:#ebe2d4;                   /* card border */
  --hc-gold:#a8762c;                   /* gold of the wordmark on light ground */
  --hc-gold-dark:#8a5f1f;
  --hc-gold-tief:#6f4c14;
  --hc-gold-hell:#d4a253;
  --hc-gold-punkt:#e9c27f;
  --hc-gold-hauch:#fbf0dc;             /* pill, highlighted card */
  --hc-gold-linie:rgba(168,118,44,.25);
  --hc-gold-rand:rgba(168,118,44,.45);
  --hc-gold-weich:rgba(212,162,83,.18);
  --hc-goldtext:linear-gradient(100deg,#b8863a 0%,#a8762c 45%,#8a5f1f 100%);
  --hc-knopf:linear-gradient(100deg,#f0d29a,#cf9a48);
  --hc-knopf-text:#070a12;
  --hc-balken:#525c70;                 /* agency-fee bar */
  --hc-balken-gold:linear-gradient(90deg,#a8762c,#d4a253);
  --hc-raster:rgba(18,23,36,.05);
  --hc-aura-1:#d4a253;
  --hc-aura-2:#e9c27f;
  --hc-kopf-hg:rgba(251,248,242,.88);
  --hc-leiste-hg:rgba(251,248,242,.96);
  --hc-foto-hg:#0d1220;
  --hc-foto-verlauf:linear-gradient(to top,rgba(7,10,18,.94) 15%,rgba(7,10,18,.70) 55%,transparent);
  --hc-foto-name:#ffffff;
  --hc-foto-rolle:#f2d9a8;
  --hc-band-verlauf:linear-gradient(to bottom,rgba(251,248,242,.45) 0%,rgba(244,238,227,.10) 45%,var(--hc-sand) 100%);
  --hc-auswahl:rgba(212,162,83,.28);
  --hc-schatten:0 24px 48px -26px rgba(74,44,20,.30);
  --hc-schatten-karte:0 1px 2px rgba(74,44,20,.04),var(--hc-schatten);
  --hc-schatten-hoch:0 1px 2px rgba(74,44,20,.05),0 30px 56px -28px rgba(74,44,20,.36);
  --hc-schatten-haupt:0 0 0 1px rgba(168,118,44,.35),0 30px 60px -34px rgba(138,95,31,.55);
  --hc-schatten-knopf:0 10px 24px -14px rgba(143,99,33,.65);
  --hc-schatten-seite:0 28px 60px -22px rgba(74,44,20,.45);
  --hc-schatten-leiste:0 -12px 28px -20px rgba(74,44,20,.35);
  /* ---- Type and measures (as the home page) ---- */
  --hc-serif:'Iowan Old Style','Palatino Linotype',Palatino,'Book Antiqua',Georgia,serif;
  --hc-sans:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
  --max:1280px;
  --kopf-h:64px;
}
@media (min-width:1024px) { :root { --kopf-h:80px; } }

/* ---------- Basics ---------- */
*, *::before, *::after { box-sizing:border-box; }
* { margin:0; padding:0; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; text-size-adjust:100%; }
body { font-family:var(--hc-sans); color:var(--hc-text); background:var(--hc-bg); font-size:17px; line-height:1.6;
  -webkit-font-smoothing:antialiased; overflow-x:clip; }
img { display:block; max-width:100%; height:auto; }
a { color:inherit; }
::selection { background:var(--hc-auswahl); }
.wrap { width:100%; max-width:var(--max); margin:0 auto; padding:0 16px; }
.zahl { font-variant-numeric:tabular-nums; }
h1, h2, h3 { text-wrap:balance; }
[id] { scroll-margin-top:calc(var(--kopf-h) + 16px); }
section.teil[id] { scroll-margin-top:0; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline:2px solid var(--hc-gold); outline-offset:3px; border-radius:8px; }
.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; }

/* ---------- Type: serif headlines as on the home page, Inter for text and small headings ---------- */
h1, h2 { font-family:var(--hc-serif); font-weight:700; letter-spacing:-.012em; color:var(--hc-ink); }
h2 { font-size:30px; line-height:1.12; margin-top:16px; }
h3 { color:var(--hc-ink); font-weight:700; }
.kicker { font-size:11px; font-weight:700; letter-spacing:.18em; text-transform:uppercase; color:var(--hc-gold-dark); }
.lead { margin-top:20px; color:var(--hc-ink-3); font-size:18px; line-height:1.625; max-width:42rem; }
.mitte { text-align:center; }
.mitte .lead { margin-left:auto; margin-right:auto; }
.goldtext, .hero h1 span, .hero h1 em, .preis-gold em { font-style:normal; background:var(--hc-goldtext);
  -webkit-background-clip:text; background-clip:text; color:transparent; padding-bottom:.04em; }

/* ---------- Buttons: gold pill like .goldbtn, quiet pill with a hairline ---------- */
.knopf { display:inline-flex; align-items:center; justify-content:center; gap:8px; font:inherit; font-size:16px; font-weight:600;
  line-height:1.5; text-decoration:none; text-align:center; border:0; border-radius:999px; padding:16px 28px; cursor:pointer;
  color:var(--hc-knopf-text); background:var(--hc-knopf); box-shadow:var(--hc-schatten-knopf);
  transition:filter .3s, transform .3s, box-shadow .3s, color .3s; }
.knopf:hover { filter:brightness(1.1); transform:translateY(-2px); }
.knopf .pfeil { width:18px; height:18px; flex:none; }
.knopf.klein { padding:8px 16px; font-size:14px; line-height:1.43; }
.knopf.klein:hover { transform:none; }
.knopf.breit { width:100%; }
.knopf.leise { background:transparent; color:var(--hc-ink-2); box-shadow:inset 0 0 0 1px var(--hc-line); }
.knopf.leise:hover { color:var(--hc-ink); box-shadow:inset 0 0 0 1px var(--hc-line-3); filter:none; }

/* ---------- Header as on the home page: fixed, clear over the top, ivory with blur once scrolled.
   The small script after the header sets .oben at the top; without script it stays ivory. ---------- */
body > header, .kopfzeile { position:fixed; top:0; left:0; right:0; z-index:50; background:var(--hc-kopf-hg);
  -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); border-bottom:1px solid var(--hc-line);
  transition:background-color .3s, border-color .3s; }
.kopfzeile.oben { background:transparent; border-bottom-color:transparent; -webkit-backdrop-filter:none; backdrop-filter:none; }
.kopf { display:flex; align-items:center; justify-content:space-between; gap:12px; height:var(--kopf-h); }
.kopf .marke { display:flex; align-items:center; flex:none; }
.kopf .marke img { height:26px; width:auto; }
.hauptnav { display:none; }
.rechts { display:flex; align-items:center; gap:12px; flex:none; }
.markt { display:inline-flex; padding:3px; border-radius:999px; border:1px solid var(--hc-line-2); background:var(--hc-card); }
.markt a { font-size:12.5px; font-weight:700; letter-spacing:.04em; line-height:1.3; color:var(--hc-ink-3); text-decoration:none;
  padding:5px 10px; border-radius:999px; transition:color .25s; }
.markt a:hover { color:var(--hc-ink); }
.markt a[aria-current="page"] { color:var(--hc-gold-tief); background:var(--hc-gold-hauch); box-shadow:inset 0 0 0 1px var(--hc-gold-rand); }

/* ---------- Top of the page: faint grid, warm glows, text and Florian's photo card ---------- */
.hero { position:relative; overflow:hidden; padding:calc(var(--kopf-h) + 32px) 0 56px; }
.raster { position:absolute; inset:0; pointer-events:none;
  background-image:linear-gradient(var(--hc-raster) 1px,transparent 1px),linear-gradient(90deg,var(--hc-raster) 1px,transparent 1px);
  background-size:64px 64px;
  -webkit-mask-image:radial-gradient(ellipse 80% 60% at 50% 0%,#000 20%,transparent 75%);
          mask-image:radial-gradient(ellipse 80% 60% at 50% 0%,#000 20%,transparent 75%); }
.aura { position:absolute; width:520px; height:520px; top:-128px; left:-96px; border-radius:50%;
  background:var(--hc-aura-1); filter:blur(90px); opacity:.10; pointer-events:none; }
.aura.zwei { left:auto; right:0; top:96px; width:420px; height:420px; background:var(--hc-aura-2); }
.hero-gitter { position:relative; display:grid; gap:40px; align-items:center; }
.hero-gitter > * { min-width:0; }
.pille { display:inline-flex; align-items:center; gap:10px; margin-bottom:24px; padding:6px 14px; border-radius:999px;
  background:var(--hc-gold-hauch); border:1px solid var(--hc-gold-linie); font-size:11px; font-weight:700; line-height:1.5;
  letter-spacing:.18em; text-transform:uppercase; color:var(--hc-gold-dark); }
.pille .punkt { width:6px; height:6px; border-radius:50%; background:var(--hc-gold-punkt); flex:none; }
.hero h1 { font-size:clamp(2.2rem,3.6vw,3.05rem); line-height:1.08; }
.hero .sub { margin-top:24px; font-size:18px; line-height:1.625; color:var(--hc-ink-2); max-width:42rem; }
.hero .sub b { color:var(--hc-ink); font-weight:600; }
.hero .lead { margin-top:20px; }
.hero .hint { margin-top:20px; font-size:14px; color:var(--hc-ink-3); }
.preise { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:28px; max-width:520px; }
.preis { border-radius:18px; padding:16px 18px; background:var(--hc-card); border:1px solid var(--hc-rand); box-shadow:var(--hc-schatten-karte); }
.preis .z { font-family:var(--hc-serif); font-variant-numeric:lining-nums; font-size:34px; font-weight:700; line-height:1.05;
  color:var(--hc-gold-dark); }
.preis .l { font-size:15px; font-weight:600; line-height:1.35; margin-top:8px; color:var(--hc-ink); }
.preis .u { font-size:13px; color:var(--hc-ink-3); margin-top:2px; }
.aktionen { display:flex; flex-direction:column; gap:14px; margin-top:32px; }

.portrait { position:relative; margin:0 auto; width:100%; max-width:290px; }
.portrait::before { content:""; position:absolute; inset:-12px; border-radius:2.2rem; opacity:.4; filter:blur(26px);
  background:linear-gradient(150deg,var(--hc-gold-hell),transparent 62%); }
.portrait img { position:relative; width:100%; aspect-ratio:4/5; object-fit:cover; object-position:top; border-radius:1.8rem;
  border:1px solid var(--hc-line); background:var(--hc-foto-hg); }
.portrait figcaption { position:absolute; left:0; right:0; bottom:0; padding:64px 20px 20px; border-radius:0 0 1.8rem 1.8rem;
  background:var(--hc-foto-verlauf); }
.portrait figcaption b { display:block; font-size:16px; line-height:1.25; color:var(--hc-foto-name); }
.portrait figcaption span { display:block; font-size:12px; color:var(--hc-foto-rolle); margin-top:2px; }

/* ---------- Sections: ivory and sand in turn, white cards ---------- */
section.teil { position:relative; padding:80px 0; border-top:1px solid var(--hc-line); }
section.sand { background:var(--hc-sand); }
.karte-hell { background:var(--hc-card); border:1px solid var(--hc-rand); border-radius:24px; box-shadow:var(--hc-schatten-karte); }

/* ---------- What you save ---------- */
.vergleich { padding:28px 32px; margin-top:40px; }
.vergleich .titel { font-size:20px; font-weight:700; color:var(--hc-ink); line-height:1.35; }
.vergleich .titel span { font-weight:400; color:var(--hc-ink-3); font-size:15px; margin-left:8px; }
.vergleich .inhalt { display:grid; grid-template-columns:minmax(0,1fr) 260px; gap:36px; align-items:center; margin-top:24px; }
.bz { margin-bottom:20px; }
.bz:last-child { margin-bottom:0; }
.bz .l { font-size:14.5px; color:var(--hc-ink-3); margin-bottom:8px; }
.bz .spur { display:flex; align-items:center; gap:14px; }
.bz .b { height:40px; border-radius:0 12px 12px 0; background:var(--hc-balken); }
.bz .b.gold { background:var(--hc-balken-gold); }
.bz .w { font-size:24px; font-weight:800; white-space:nowrap; color:var(--hc-ink); }
.ersparnis { background:var(--hc-gold-hauch); border:1px solid var(--hc-gold-linie); border-radius:20px; padding:26px; text-align:center; }
.ersparnis .n { font-family:var(--hc-serif); font-variant-numeric:lining-nums; font-size:44px; font-weight:700; line-height:1.05;
  color:var(--hc-gold-dark); }
.ersparnis .k { color:var(--hc-ink-3); margin-top:6px; }
.rechnung, .quellen { font-size:13px; color:var(--hc-ink-3); margin-top:18px; max-width:860px; line-height:1.5; }

/* ---------- Plans ---------- */
.tarife { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; margin:44px auto 0; max-width:900px; align-items:start; }
.tarif { position:relative; padding:30px 30px 28px; }
.tarif.haupt { border-color:var(--hc-gold-rand); box-shadow:var(--hc-schatten-haupt); }
.tarif .name { font-size:12px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--hc-gold-dark); }
.tarif .betrag { display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 10px; margin-top:14px; }
.tarif .betrag .zahl { font-family:var(--hc-serif); font-variant-numeric:lining-nums; font-size:54px; font-weight:700;
  letter-spacing:-.01em; line-height:1; color:var(--hc-ink); }
.tarif .betrag .einheit { font-size:15.5px; color:var(--hc-ink-3); }
.tarif .dazu { margin-top:10px; color:var(--hc-ink-2); font-size:16px; }
.tarif .dazu b { color:var(--hc-ink); font-weight:700; }
.tarif .knopf { margin-top:24px; }
.liste { list-style:none; margin-top:24px; padding-top:22px; border-top:1px solid var(--hc-line); display:grid; gap:12px; }
.liste li { position:relative; padding-left:30px; color:var(--hc-ink-2); font-size:15.5px; line-height:1.45; }
.liste li::before { content:""; position:absolute; left:0; top:1px; width:19px; height:19px; border-radius:50%; background:var(--hc-gold-weich); }
.liste li::after { content:""; position:absolute; left:3px; top:4px; width:13px; height:13px; background:var(--hc-gold-dark);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat; }
.sicher { display:flex; align-items:center; justify-content:center; gap:8px; margin-top:28px; color:var(--hc-ink-3); font-size:14.5px; }
.sicher svg { width:16px; height:16px; flex:none; }
.markt-hinweis { text-align:center; margin-top:6px; color:var(--hc-ink-3); font-size:14.5px; }
.markt-hinweis a { color:var(--hc-gold-dark); font-weight:600; }
.markt-hinweis a:hover { color:var(--hc-gold-tief); }
.gut { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin:48px auto 0; max-width:1040px; }
.gut > div { padding:22px 24px; border-radius:20px; background:var(--hc-card); border:1px solid var(--hc-rand); box-shadow:var(--hc-schatten-karte); }
.gut h3 { font-size:15.5px; }
.gut p { margin-top:6px; color:var(--hc-ink-3); font-size:15px; line-height:1.5; }
.gut p.preis-zeile { margin-top:14px; font-family:var(--hc-serif); font-variant-numeric:lining-nums; font-size:21px; font-weight:700; color:var(--hc-ink); }

/* ---------- Comparison table (retained search) ---------- */
.tabelle-rahmen { margin-top:36px; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.vergleichstabelle { width:100%; min-width:640px; border-collapse:collapse; font-size:15.5px; }
.vergleichstabelle th, .vergleichstabelle td { text-align:left; vertical-align:top; padding:16px 20px; border-bottom:1px solid var(--hc-line); }
.vergleichstabelle tbody tr:last-child th, .vergleichstabelle tbody tr:last-child td { border-bottom:0; }
.vergleichstabelle thead th { font-size:12px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--hc-gold-dark);
  background:var(--hc-sand); }
.vergleichstabelle thead a { color:inherit; }
.vergleichstabelle thead a:hover { color:var(--hc-gold-tief); }
.vergleichstabelle tbody th { font-weight:700; color:var(--hc-ink); width:18%; }
.vergleichstabelle td { color:var(--hc-ink-2); }

/* ---------- How it works ---------- */
.schritte { list-style:none; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:22px; margin-top:44px; }
.schritt { padding:26px 24px; }
.schritt .nr { width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-weight:800; color:var(--hc-gold-dark); background:var(--hc-gold-weich); margin-bottom:16px; }
.schritt.zuerst .nr { color:var(--hc-knopf-text); background:var(--hc-knopf); }
.schritt h3 { font-size:18px; margin-bottom:6px; line-height:1.3; }
.schritt p { color:var(--hc-ink-3); font-size:15.5px; line-height:1.5; }

/* ---------- Calculator ---------- */
.rechner { display:grid; grid-template-columns:1fr 1fr; gap:28px; margin-top:40px; align-items:start; }
.eingaben { padding:28px; display:grid; gap:26px; }
.feld label { display:flex; justify-content:space-between; gap:12px; font-weight:600; font-size:15px; margin-bottom:10px; color:var(--hc-ink); }
.feld label output { font-weight:800; color:var(--hc-ink); }
.feld .hinweis { font-size:13px; color:var(--hc-ink-3); margin-top:6px; }
input[type=range] { width:100%; accent-color:var(--hc-gold); }
.ergebnis { display:grid; gap:14px; }
.karte { padding:20px 24px; }
.karte .k { font-size:12px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--hc-ink-3); }
.karte .n { font-size:34px; font-weight:800; letter-spacing:-.02em; margin-top:4px; color:var(--hc-ink); }
.karte .r { font-size:14px; color:var(--hc-ink-3); margin-top:4px; }
/* "dunkel" was the navy card of the dark design; here the highlighted gold card */
.karte.dunkel { background:var(--hc-gold-hauch); border:1px solid var(--hc-gold-rand); border-radius:24px; box-shadow:var(--hc-schatten-karte); }
.karte.dunkel .k, .karte.dunkel .n { color:var(--hc-gold-dark); }
.karte.dunkel .r { color:var(--hc-ink-2); }

/* ---------- Florian ---------- */
.person { display:grid; grid-template-columns:260px minmax(0,1fr); gap:48px; align-items:center; max-width:960px; margin:0 auto; }
.person img { width:100%; aspect-ratio:1; object-fit:cover; object-position:top; border-radius:26px; border:1px solid var(--hc-rand);
  box-shadow:var(--hc-schatten-karte); }
.person h2 { margin-top:12px; }
.person .rolle { color:var(--hc-ink-3); margin-top:6px; font-size:15px; }
.person p.text { color:var(--hc-ink-2); margin-top:14px; max-width:600px; }

/* ---------- Photo band before the last section (as before the contact section of the home page) ---------- */
.bildband { position:relative; height:144px; overflow:hidden; border-top:1px solid var(--hc-line); }
.bildband img { position:absolute; inset:0; width:100%; height:100%; max-width:none; object-fit:cover; opacity:.9; }
.bildband-verlauf { position:absolute; inset:0; background:var(--hc-band-verlauf); }

/* ---------- Last call to action: sand, centred, like the contact section of the home page ---------- */
.schluss { position:relative; overflow:hidden; background:var(--hc-sand); padding:80px 0; text-align:center; }
.schluss .aura { width:600px; height:600px; left:50%; right:auto; top:0; margin-left:-300px; }
.schluss .wrap { position:relative; }
.schluss .lead { margin:20px auto 0; }
.schluss .knopf { margin-top:32px; }
.schluss .mail { margin-top:20px; color:var(--hc-ink-3); font-size:15px; }
.schluss .mail a, .danke .mail a { color:var(--hc-gold-dark); font-weight:600; }
.schluss .mail a:hover, .danke .mail a:hover { color:var(--hc-gold-tief); }

/* ---------- Footer as on the home page ---------- */
.fusszeile { background:var(--hc-bg); border-top:1px solid var(--hc-line); padding:48px 0; color:var(--hc-ink-3); }
.fuss-oben { display:flex; flex-direction:column; gap:32px; }
.fuss-marke { height:22px; width:auto; }
.fuss-adresse { font-size:12px; line-height:1.5; color:var(--hc-ink-4); margin-top:12px; }
.fuss-nav { display:flex; flex-wrap:wrap; gap:12px 28px; font-size:14px; line-height:1.43; color:var(--hc-ink-3); }
.fuss-nav a, .fuss-unten a { text-decoration:none; transition:color .3s; }
.fuss-nav a:hover { color:var(--hc-ink); }
.fuss-unten { margin-top:40px; padding-top:24px; border-top:1px solid var(--hc-line); display:flex; flex-direction:column; gap:12px;
  font-size:12px; line-height:1.5; color:var(--hc-ink-4); }
.fuss-unten a:hover { color:var(--hc-gold); }
/* older markup without the classes above */
body > footer:not(.fusszeile) { border-top:1px solid var(--hc-line); padding:30px 0; font-size:13.5px; color:var(--hc-ink-3); }
footer .zeile { display:flex; flex-wrap:wrap; gap:10px 28px; justify-content:space-between; }
footer .zeile a:hover { color:var(--hc-ink); }

/* ---------- Thank-you page ---------- */
.danke { position:relative; overflow:hidden; padding:calc(var(--kopf-h) + 72px) 0 96px; min-height:min(88vh,860px); display:flex; align-items:center; }
.danke .wrap { position:relative; max-width:792px; text-align:center; }
.danke .haken-gross { width:64px; height:64px; margin:0 auto 24px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  color:var(--hc-knopf-text); background:var(--hc-knopf); box-shadow:var(--hc-schatten-knopf); }
.danke .haken-gross svg { width:30px; height:30px; }
.danke h1 { font-size:clamp(2.2rem,4.2vw,3.05rem); line-height:1.08; margin:14px 0 18px; }
.danke .lead { margin:0 auto; color:var(--hc-ink-2); }
.danke .knopf { margin-top:32px; }
.danke .mail { margin-top:20px; color:var(--hc-ink-3); font-size:15px; }

/* ---------- Tool pages (/tools/) and the 404 page: one narrow or wide column of white cards ---------- */
.hero.werkzeug-kopf { padding-bottom:40px; }
.wrap.schmal { max-width:792px; }
.werkzeug { padding-bottom:72px; }
.werkzeug .card { background:var(--hc-card); border:1px solid var(--hc-rand); border-radius:24px; padding:28px; margin-bottom:20px;
  box-shadow:var(--hc-schatten-karte); }
.werkzeug .card p { margin:0 0 14px; }
.werkzeug .card p:last-child { margin-bottom:0; }
.werkzeug .card a:not(.knopf) { color:var(--hc-gold-dark); }
.werkzeug .card a:not(.knopf):hover { color:var(--hc-gold-tief); }
.werkzeug .card h2 { font-size:22px; line-height:1.25; margin:0 0 12px; }
.werkzeug ul { padding-left:20px; }
.werkzeug li { margin:8px 0; }
.werkzeug li b { color:var(--hc-ink); }
.werkzeug .muted { color:var(--hc-ink-3); }
.werkzeug .hint { color:var(--hc-ink-3); font-size:13px; }
.werkzeug label { display:block; font-weight:600; font-size:15px; color:var(--hc-ink); margin:18px 0 6px; }
.werkzeug .card > label:first-child { margin-top:0; }
.werkzeug input, .werkzeug select { width:100%; background:var(--hc-card); color:var(--hc-ink); border:1px solid var(--hc-line-2);
  border-radius:12px; padding:12px 14px; font:inherit; font-size:16px; transition:border-color .25s, box-shadow .25s; }
.werkzeug input::placeholder { color:var(--hc-ink-4); }
.werkzeug input:focus, .werkzeug select:focus { outline:none; border-color:var(--hc-gold-rand); box-shadow:0 0 0 3px var(--hc-gold-hauch); }
form.mail { display:none; gap:10px; }
form.mail.on { display:flex; }
form.mail input { flex:1 1 auto; min-width:0; }
form.mail .knopf { flex:none; }
.werkzeug .more { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.werkzeug .more .card { margin-bottom:0; display:flex; flex-direction:column; }
.werkzeug .more .card p.muted { flex:1; }
.notiz { margin-top:28px; font-size:13px; color:var(--hc-ink-3); }
.notiz a { color:var(--hc-gold-dark); }
.notiz a:hover { color:var(--hc-gold-tief); }
.fehlt { min-height:min(70vh,640px); }
.fehlt .lead a { color:var(--hc-gold-dark); font-weight:600; }

/* ---------- Phones: the button fixed at the bottom (flat rate and retained search) ---------- */
.leiste { display:none; }

/* ---------- Wider screens (the home page's steps: 640, 768, 1024 px) ---------- */
@media (min-width:640px) {
  .wrap { padding:0 24px; }
  h2 { font-size:36px; }
  .aktionen { flex-direction:row; flex-wrap:wrap; }
  .portrait { max-width:330px; }
  .bildband { height:208px; }
  .fuss-unten { flex-direction:row; justify-content:space-between; }
}
@media (min-width:768px) {
  .fuss-oben { flex-direction:row; align-items:center; justify-content:space-between; }
}
@media (min-width:1024px) {
  .wrap { padding:0 32px; }
  h2 { font-size:46px; line-height:1.08; }
  .hauptnav { display:flex; align-items:center; gap:clamp(.9rem,1.4vw,1.75rem); font-size:14px; line-height:1.43; color:var(--hc-ink-2); }
  .hauptnav a { text-decoration:none; transition:color .3s; white-space:nowrap; }
  .hauptnav a:hover { color:var(--hc-ink); }
  .hauptnav a[aria-current="page"] { color:var(--hc-ink); font-weight:600; }
  .hero { padding:calc(var(--kopf-h) + 48px) 0 80px; }
  .hero.werkzeug-kopf { padding-bottom:48px; }
  .hero-gitter { grid-template-columns:repeat(12,minmax(0,1fr)); gap:56px; }
  .hero-gitter > :first-child { grid-column:span 7; }
  .hero-gitter > :last-child { grid-column:span 5; }
  .hero .sub { font-size:20px; }
  .portrait { max-width:none; }
  section.teil, .schluss { padding:112px 0; }
  .bildband { height:256px; }
}

/* ---------- Tablets and phones ---------- */
@media (max-width:900px) {
  .rechner, .tarife, .vergleich .inhalt, .person { grid-template-columns:1fr; }
  .schritte, .gut { grid-template-columns:1fr 1fr; }
  .person { gap:28px; }
  .person img { max-width:240px; }
  .leiste { display:flex; align-items:center; gap:12px; position:fixed; left:0; right:0; bottom:0; z-index:40; padding:10px 16px;
    padding-bottom:calc(10px + env(safe-area-inset-bottom)); background:var(--hc-leiste-hg);
    -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); border-top:1px solid var(--hc-line);
    box-shadow:var(--hc-schatten-leiste); transition:transform .2s ease; }
  .leiste .text { flex:1; min-width:0; color:var(--hc-ink-3); font-size:13.5px; line-height:1.3; }
  .leiste .text b { display:block; color:var(--hc-ink); font-size:15px; }
  .leiste .knopf { flex:none; padding:12px 22px; }
  .leiste.weg { transform:translateY(110%); }
  body:has(> .leiste) { padding-bottom:74px; }
  body.ohne-leiste { padding-bottom:0; }
}
@media (max-width:560px) {
  body { font-size:16px; }
  .kopf { gap:10px; }
  .rechts { gap:10px; }
  .markt a { padding:5px 8px; }
  .preise { gap:10px; margin-top:26px; }
  .preis { padding:14px; border-radius:16px; }
  .preis .z { font-size:28px; }
  .preis .l { font-size:14px; }
  .preis .u { font-size:12.5px; }
  .schritte, .gut { grid-template-columns:1fr; }
  .vergleich { padding:22px 18px; }
  .vergleich .titel span { display:block; margin:4px 0 0; }
  .bz .b { height:30px; }
  .bz .w { font-size:19px; }
  .ersparnis .n { font-size:38px; }
  .tarif { padding:24px 22px; }
  .tarif .betrag .zahl { font-size:46px; }
  .eingaben { padding:22px; }
  .werkzeug .card { padding:22px; }
  .werkzeug .more { grid-template-columns:1fr; }
  form.mail.on { flex-direction:column; }
}
@media (max-width:360px) {
  .kopf .marke img { height:21px; }
  .kopf, .rechts { gap:8px; }
  .knopf.klein { padding:8px 13px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  .leiste, .knopf, .kopfzeile { transition:none; }
  .knopf:hover { transform:none; }
}

/* The navigation has the home page's ten entries; next to the market switch it needs 1280 px. */
@media (min-width:1024px) and (max-width:1279px) { .hauptnav { display:none; } }
