/* smartmeter.energieberatung-schwabenland.de · Smart Meter für Hausverwaltungen (EBS), Stil von hausverwaltung-provision.de
   Bildwelt: das Büro einer Verwaltung. Ordnerregal, Aktenvermerk, Kugelschreiber-Notizen.
   Schriften: Zilla Slab (Überschriften, Schreibmaschinen-Anmutung), IBM Plex Sans (Text),
   Architects Daughter (nur für Handnotizen und Unterschrift, seit Runde 9 statt Caveat). Alles lokal, kein Google-Fonts-Aufruf. */

@font-face { font-family: "Zilla Slab"; font-weight: 600; font-display: swap; src: url("fonts/zilla-slab-600.ttf") format("truetype"); }
@font-face { font-family: "Zilla Slab"; font-weight: 700; font-display: swap; src: url("fonts/zilla-slab-700.ttf") format("truetype"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 100 700; font-display: swap; src: url("fonts/ibm-plex-sans-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 100 700; font-display: swap; src: url("fonts/ibm-plex-sans-latin-ext-var.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0; }
@font-face { font-family: "Architects Daughter"; font-weight: 400; font-display: swap; src: url("fonts/architects-daughter-400-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Architects Daughter"; font-weight: 400; font-display: swap; src: url("fonts/architects-daughter-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  /* Papier, Tinte, Kugelschreiber, Löwen-Orange, Ordnerfarben */
  --paper: #f6f7f3;
  --paper-2: #eceee6;
  --sheet: #ffffff;
  --ink: #1d2733;
  --ink-2: #46515d;
  --ink-3: #66707a;
  --rule: #d6d9d0;
  --pen: #2747a6;
  --lion: #f39200;
  --lion-deep: #d97e00;
  --binder-green: #2e5e4e;
  --binder-red: #7a2e2e;
  --binder-blue: #3a4f6b;
  --binder-grey: #8c8f86;
  --label: #efe9d8;

  --serif: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --hand: "Architects Daughter", "Segoe Print", "Bradley Hand", cursive;

  --wrap: 1140px;
  --gutter: clamp(1.25rem, 4vw, 2.75rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.62 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--pen); text-underline-offset: 3px; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 700; color: var(--ink); text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.12; letter-spacing: -0.005em; }
h3 { font-size: 1.3rem; line-height: 1.25; font-weight: 600; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--pen); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Noch vom Team zu füllende Stellen: in der Vorschau unübersehbar */
.todo { background: #fff3a8; box-shadow: 0 0 0 2px #e9c900; border-radius: 2px; padding: 0 0.2em; }

/* —— Knöpfe ——————————————————————————————— */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; min-height: 3.1rem; padding: 0.75rem 1.4rem;
  font: 600 1.0625rem/1.2 var(--sans); text-decoration: none; border-radius: 4px; border: 2px solid transparent; cursor: pointer; }
.btn--lion { background: var(--lion); color: var(--ink); box-shadow: 0 2px 0 var(--lion-deep); }
.btn--lion:hover { background: #ffa01a; }
.btn--lion:active { transform: translateY(2px); box-shadow: none; }
.btn--plain { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--plain:hover { background: var(--ink); color: #fff; }
.btn svg { width: 1.1em; height: 1.1em; }

/* —— Kopf ——————————————————————————————— */
.top { background: var(--paper); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 30; }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: 0.15rem; text-decoration: none; color: var(--ink); }
.brand__lion { width: 3.6rem; height: auto; margin: -0.35rem -0.1rem -0.25rem -0.3rem; transform: rotate(-4deg); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__ebs { position: relative; font: 700 2.05rem/0.9 var(--serif); letter-spacing: 0.05em; padding-bottom: 0.4rem; align-self: flex-start; }
.brand__swash { position: absolute; left: -0.1rem; bottom: -0.05rem; width: calc(100% + 0.5rem); height: 0.55rem; overflow: visible; }
.brand__swash path { fill: none; stroke: var(--lion); stroke-width: 3.2; stroke-linecap: round; }
.brand__swash path + path { stroke-width: 2; opacity: 0.55; }
.brand__tag { font: 600 1.28rem/1 var(--hand); color: var(--pen); margin-top: 0.2rem; transform: rotate(-1.5deg); transform-origin: left; white-space: nowrap; }
.top__call { text-align: right; text-decoration: none; color: var(--ink); line-height: 1.25; }
.top__call span { display: block; font-size: 0.8125rem; color: var(--ink-3); }
.top__call strong { font-size: 1.125rem; font-weight: 600; }
@media (max-width: 560px) { .brand__tag { font-size: 1.05rem; } .top__call span { display: none; } .brand__lion { width: 2.9rem; } .brand__ebs { font-size: 1.7rem; } }
@media (max-width: 380px) { .brand__tag { display: none; } }

/* —— Hero ——————————————————————————————— */
.hero { padding: clamp(2.25rem, 5vw, 4.25rem) 0 clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem); line-height: 1.08; letter-spacing: -0.01em; max-width: 14ch; }
.hero__fig { display: block; font-size: clamp(2.8rem, 1.6rem + 4vw, 4.6rem); line-height: 0.95; letter-spacing: -0.025em; margin-bottom: 0.4rem; white-space: nowrap; }
.hero__sub { margin-top: 1.25rem; font-size: 1.25rem; line-height: 1.5; color: var(--ink-2); max-width: 36ch; }
.hero__money { margin-top: 1.75rem; display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; align-items: center; max-width: 34rem;
  padding: 0.9rem 1.1rem; background: var(--sheet); border: 1px solid var(--rule); border-left: 5px solid var(--lion); }
.hero__money-fig { font: 700 1.6rem/1.1 var(--serif); color: var(--ink); white-space: nowrap; }
.hero__money-txt { font-size: 0.9375rem; color: var(--ink-2); line-height: 1.45; }
@media (max-width: 560px) { .hero__money { grid-template-columns: 1fr; } }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.5rem; margin-top: 1.75rem; }
.hero__phone { color: var(--ink-2); font-size: 0.9375rem; }
.hero__phone a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--rule); }
.hero__proof { margin-top: 1.75rem; display: flex; gap: 0.5rem 1.75rem; flex-wrap: wrap; font-size: 0.9375rem; color: var(--ink-2); }
.hero__proof b { color: var(--ink); font-weight: 600; }
.stars { color: #e0a100; letter-spacing: 1px; }


/* Hero-Bild: Ordnerregal, davor die Musterrechnung „Ihre Verwaltung an EBS“ mit offenem Betrag */
.scene { position: relative; padding: 6.5rem 0 1.5rem; }
.scene__note { position: absolute; top: 0; left: 0.5rem; max-width: 15rem; font: 600 1.6rem/1.05 var(--hand); color: var(--pen); transform: rotate(-3deg); }
.scene__note svg { position: absolute; left: 100%; top: 0.6rem; width: 66px; height: 70px; }
.shelf__row { display: flex; align-items: flex-end; gap: 6px; height: 330px; padding: 0 1rem; border-bottom: 14px solid #b9ad93; position: relative; }
.shelf__row::after { content: ""; position: absolute; left: 0; right: 0; bottom: -22px; height: 8px; background: #9c9077; }
.binder { flex: 1 1 0; min-width: 0; height: 100%; border-radius: 3px 3px 0 0; position: relative; box-shadow: inset -6px 0 0 rgba(0,0,0,0.12), inset 2px 0 0 rgba(255,255,255,0.08); }
.binder:nth-child(2) { height: 96%; } .binder:nth-child(4) { height: 98%; } .binder:nth-child(6) { height: 95%; }
.binder__label { position: absolute; left: 14%; right: 18%; top: 9%; height: 58%; background: var(--label); border-radius: 2px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.binder__label span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font: 600 1.2rem/1 var(--hand); color: var(--ink); }
.binder__label span.print { font: 600 0.78rem/1 var(--sans); letter-spacing: 0.02em; }
.binder__hole { position: absolute; left: 50%; bottom: 10%; width: 46%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(0,0,0,0.38) 0 38%, rgba(255,255,255,0.14) 39% 46%, transparent 47%); }
.b-green { background: var(--binder-green); } .b-red { background: var(--binder-red); } .b-blue { background: var(--binder-blue); }
.b-grey { background: var(--binder-grey); } .b-black { background: #2b2f33; }
.binder--lion { background: var(--lion); flex-grow: 1.15; transform: translateY(-40px) rotate(-3deg); transform-origin: bottom left; z-index: 1;
  box-shadow: inset -6px 0 0 rgba(0,0,0,0.1), 8px 10px 0 rgba(29,39,51,0.08); animation: pull 900ms cubic-bezier(0.2, 0.9, 0.25, 1.15) 350ms both; }
.binder--lion .binder__label { background: #fff8e8; }
.binder--lion .binder__label span { font-size: 1.45rem; }
.binder--lion img { position: absolute; left: 50%; bottom: 6%; width: 82%; transform: translateX(-50%); filter: brightness(0) invert(1); opacity: 0.92; }
@keyframes pull { from { transform: translateY(0) rotate(0); } to { transform: translateY(-40px) rotate(-3deg); } }

.bill { position: relative; margin: 2.5rem 0 0 3.5rem; width: min(20rem, 85%); background: var(--sheet); padding: 1.1rem 1.25rem 1rem;
  border: 1px solid var(--rule); box-shadow: 10px 12px 0 var(--paper-2); transform: rotate(-2.5deg); font-size: 0.875rem; }
.bill__from { font-weight: 600; color: var(--ink-2); font-size: 0.8125rem; border-bottom: 1px solid var(--rule); padding-bottom: 0.4rem; }
.bill__title { font: 700 1.45rem/1 var(--serif); margin: 0.6rem 0 0.6rem; }
.bill dl { display: grid; grid-template-columns: 4.6rem 1fr; gap: 0.2rem 0.6rem; margin: 0; }
.bill dt { color: var(--ink-3); }
.bill dd { margin: 0; color: var(--ink); line-height: 1.35; }
.bill__sum { display: flex; justify-content: space-between; align-items: baseline; margin-top: 0.8rem; padding-top: 0.6rem; border-top: 2px solid var(--ink); }
.bill__sum span { font-weight: 600; }
.bill__sum b { font: 700 2rem/1 var(--hand); color: var(--pen); }
.bill__hint { text-align: right; font: 600 1.3rem/1 var(--hand); color: var(--pen); margin-top: 0.3rem; transform: rotate(-2deg); }
.bill__mark { position: absolute; right: 0.8rem; top: 0.75rem; font: 600 0.75rem/1 var(--sans); color: var(--ink-3); border: 1px solid var(--rule); padding: 0.15rem 0.4rem; border-radius: 2px; }
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .scene { max-width: 520px; }
  .shelf__row { height: 230px; }
  .binder__label span { font-size: 0.95rem; } .binder--lion .binder__label span { font-size: 1.1rem; }
}
@media (max-width: 480px) {
  .hero__fig { white-space: normal; }
  .shelf__row { height: 200px; gap: 4px; padding: 0 0.4rem; }
  .scene { padding-top: 5rem; } .scene__note { font-size: 1.3rem; max-width: 11rem; } .scene__note svg { width: 48px; height: 52px; } .binder:nth-child(n+7) { display: none; }
  .binder__label span.print { font-size: 0.62rem; }
  .bill { width: 64%; padding: 0.75rem 0.85rem; font-size: 0.75rem; } .bill dl { grid-template-columns: 3.6rem 1fr; } .bill__title { font-size: 1.2rem; } .bill__sum b { font-size: 1.6rem; }
}

/* —— Ablauf + Formular ——————————————————— */
.how { background: var(--sheet); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: clamp(3rem, 7vw, 5.5rem) 0; }
.how__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.how__intro { color: var(--ink-2); margin-top: 1rem; max-width: 50ch; }
.steps { list-style: none; padding: 0; margin: 2.25rem 0 0; display: grid; gap: 1.75rem; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; counter-increment: s; }
.steps li::before { content: counter(s); font: 700 2.4rem/1 var(--serif); color: var(--lion-deep); }
.steps h3 { margin-bottom: 0.35rem; }
.steps p { color: var(--ink-2); }
@media (max-width: 900px) { .how__grid { grid-template-columns: 1fr; } }

.form { background: var(--paper); border: 1px solid var(--rule); border-top: 6px solid var(--lion); border-radius: 4px; padding: clamp(1.25rem, 3vw, 2rem); position: sticky; top: 6rem; scroll-margin-top: 6rem; }
.form h2 { font-size: 1.75rem; }
.form__range { margin-top: 0.75rem; padding: 0.75rem 0.9rem; background: #fff8e8; border: 1px dashed var(--lion-deep); border-radius: 3px; }
.form__range b { display: block; font: 700 1.65rem/1.1 var(--serif); color: var(--ink); }
.form__range span { display: block; font-size: 0.8125rem; color: var(--ink-2); margin-top: 0.15rem; }
.form__hint { font-size: 0.875rem; color: var(--ink-3); margin: -0.4rem 0 0.9rem; }
.energy + .energy { margin-top: 0.6rem; }
.opt--check span::before { border-radius: 3px; }
.opt--check input:checked + span::before { background: var(--ink); box-shadow: inset 0 0 0 3px #fff; }
.opt span small { display: block; font-size: 0.8125rem; font-weight: 400; color: var(--ink-3); margin-top: 0.1rem; }
.usage { margin: 0.5rem 0 0 1rem; padding: 0.8rem 0.9rem; border-left: 3px solid var(--lion); background: var(--sheet); }
.usage label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 0.35rem; }
.usage__row { display: grid; grid-template-columns: 1fr; gap: 0.5rem; justify-items: start; }
.usage__row select { width: 100%; }
.usage select { font: inherit; font-size: 0.975rem; min-height: 2.9rem; padding: 0.5rem 2rem 0.5rem 0.7rem; border: 1.5px solid var(--rule); border-radius: 4px; background: #fff; color: var(--ink); min-width: 0; }
.usage select:disabled { opacity: 0.45; }
.usage select:focus { outline: none; border-color: var(--pen); box-shadow: 0 0 0 3px rgba(39, 71, 166, 0.15); }
.unsure { font: 500 0.875rem/1.2 var(--sans); padding: 0.5rem 0.75rem; border: 1.5px dashed var(--ink-3); background: transparent; color: var(--ink-2); border-radius: 4px; cursor: pointer; }
.unsure[aria-pressed="true"] { border-style: solid; border-color: var(--ink); background: var(--ink); color: #fff; }
@media (max-width: 420px) { .usage__row { grid-template-columns: 1fr; } .usage { margin-left: 0; } }
.form__check-err { min-height: 1.2em; margin-top: 0.5rem; font-size: 0.875rem; color: #b3261e; }
.estimate { background: #fff8e8; border: 1px dashed var(--lion-deep); border-radius: 3px; padding: 1rem 1.1rem; margin-bottom: 1.25rem; }
.estimate__label { font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }
.estimate__sum { font: 700 clamp(1.75rem, 1.4rem + 1.4vw, 2.3rem)/1.1 var(--serif); color: var(--ink); margin-top: 0.2rem; }
.estimate__basis { font-size: 0.8125rem; color: var(--ink-2); margin-top: 0.35rem; }
.estimate__note { font-size: 0.8125rem; color: var(--ink-2); margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px solid var(--accent-line, #f0c9b0); }
.form__sub { font-weight: 600; margin-bottom: 0.8rem; }
.field textarea { font: inherit; font-size: 1rem; padding: 0.6rem 0.8rem; border: 1.5px solid var(--rule); border-radius: 4px; background: #fff; color: var(--ink); width: 100%; resize: vertical; }
.field textarea:focus { outline: none; border-color: var(--pen); box-shadow: 0 0 0 3px rgba(39, 71, 166, 0.15); }
.field label small { font-weight: 400; color: var(--ink-3); }
.form__lead { color: var(--ink-2); margin-top: 0.85rem; font-size: 0.9875rem; }
.form__step { display: flex; justify-content: space-between; font-size: 0.8125rem; color: var(--ink-3); margin: 1.25rem 0 0.5rem; }
.form__bar { height: 3px; background: var(--rule); margin-bottom: 1.25rem; }
.form__bar span { display: block; height: 100%; width: 33%; background: var(--ink); transition: width 0.3s ease; }
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form legend { font-weight: 600; font-size: 1.0625rem; margin-bottom: 0.8rem; padding: 0; }
.panel[hidden] { display: none; }
.opts { display: grid; gap: 0.5rem; }
.opt { position: relative; }
.opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.opt span { display: block; padding: 0.8rem 1rem 0.8rem 2.75rem; background: var(--sheet); border: 1.5px solid var(--rule); border-radius: 4px; cursor: pointer; position: relative; font-weight: 500; }
.opt span::before { content: ""; position: absolute; left: 1rem; top: 50%; width: 1.05rem; height: 1.05rem; margin-top: -0.525rem; border: 1.5px solid var(--ink-3); border-radius: 2px; background: #fff; }
.opt input:checked + span { border-color: var(--ink); }
.opt input:checked + span::before { background: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 3px #fff; }
.opt:hover span { border-color: var(--ink-3); }
.opt input:focus-visible + span { outline: 3px solid var(--pen); outline-offset: 2px; }
.field { display: grid; gap: 0.25rem; margin-bottom: 0.85rem; }
.field label { font-size: 0.9375rem; font-weight: 500; }
.field input { font: inherit; font-size: 1rem; min-height: 3rem; padding: 0.6rem 0.8rem; border: 1.5px solid var(--rule); border-radius: 4px; background: #fff; color: var(--ink); width: 100%; }
.field input:focus { outline: none; border-color: var(--pen); box-shadow: 0 0 0 3px rgba(39, 71, 166, 0.15); }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.field__err { font-size: 0.8125rem; color: #b3261e; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.75rem; }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } }
.consent { display: grid; grid-template-columns: 1.2rem 1fr; gap: 0.6rem; font-size: 0.8125rem; color: var(--ink-2); margin: 0.3rem 0 0.5rem; }
.consent input { margin: 0.2rem 0 0; width: 1.1rem; height: 1.1rem; accent-color: var(--ink); }
.consent.is-error { color: #b3261e; }
.form__nav { display: flex; gap: 0.75rem; align-items: center; margin-top: 1.1rem; }
.form__nav .btn { flex: 1; }
.form__back { background: none; border: 0; font: inherit; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0.5rem 0.2rem; }
.form__small { margin-top: 1rem; font-size: 0.8125rem; color: var(--ink-3); }
.form__small a { color: var(--ink); font-weight: 600; }
.form__error { display: none; margin-top: 0.75rem; padding: 0.7rem 0.8rem; background: #fdecec; color: #8c2020; border-radius: 4px; font-size: 0.9375rem; }
.form__error.is-on { display: block; }
.form__done h2 { margin-bottom: 0.75rem; }
.form__done p + p { margin-top: 0.75rem; }
.form__done .hand { font: 600 1.6rem/1.1 var(--hand); color: var(--pen); margin-top: 1rem; }
.hp { position: absolute; left: -9999px; }

/* —— Aktenvermerk (Rechtliches) ————————— */
.memo-band { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.memo-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.memo-grid > div:first-child p { color: var(--ink-2); margin-top: 1rem; max-width: 42ch; }
.memo { background: var(--sheet); border: 1px solid var(--rule); padding: clamp(1.5rem, 4vw, 2.5rem); position: relative; box-shadow: 6px 6px 0 var(--paper-2); }
.memo__head { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; border-bottom: 2px solid var(--ink); padding-bottom: 0.5rem; margin-bottom: 1rem; }
.memo dl { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.25rem 1rem; margin: 0 0 1.25rem; font-size: 0.9375rem; }
.memo dt { color: var(--ink-3); }
.memo dd { margin: 0; font-weight: 500; }
.memo p + p { margin-top: 0.9rem; }
.memo strong { font-weight: 600; }
.memo__fine { margin-top: 1.5rem !important; padding-top: 0.9rem; border-top: 1px dashed var(--rule); font-size: 0.8125rem; color: var(--ink-3); }
.memo__note { position: absolute; right: 1.5rem; top: -1.4rem; font: 700 1.7rem/1 var(--hand); color: var(--pen); transform: rotate(5deg); }
@media (max-width: 880px) { .memo-grid { grid-template-columns: 1fr; } .memo__note { right: 0.5rem; } }
@media (max-width: 480px) { .memo dl { grid-template-columns: 1fr; } .memo dt { margin-top: 0.4rem; } }

/* —— Beide Seiten ——————————————————————— */
.both { background: var(--ink); color: #fff; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.both h2 { color: #fff; max-width: 22ch; }
.both__grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 2.5rem; border-top: 1px solid rgba(255,255,255,0.22); }
.both__col { padding: 1.75rem 2rem 0 0; }
.both__col + .both__col { padding: 1.75rem 0 0 2rem; border-left: 1px solid rgba(255,255,255,0.22); }
.both__col h3 { color: #fff; font-size: 1.4rem; margin-bottom: 1rem; }
.both__col h3 small { display: block; font: 500 0.9375rem/1.4 var(--sans); color: var(--lion); margin-bottom: 0.25rem; }
.both ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.8rem; color: #d9dee3; }
.both li { padding-left: 1.6rem; position: relative; }
.both li::before { content: ""; position: absolute; left: 0.1rem; top: 0.55em; width: 0.7rem; height: 0.38rem; border-left: 2px solid var(--lion); border-bottom: 2px solid var(--lion); transform: rotate(-45deg); }
.both .todo { color: var(--ink); }
@media (max-width: 760px) { .both__grid { grid-template-columns: 1fr; } .both__col + .both__col { padding: 1.75rem 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,0.22); margin-top: 1.75rem; } .both__col { padding-right: 0; } }

.case { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 2rem; align-items: center; margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,0.22); }
.case__fig { font: 700 clamp(2.4rem, 1.6rem + 3vw, 3.6rem)/1 var(--serif); color: var(--lion); }
.case__fig small { display: block; font: 400 1rem/1.5 var(--sans); color: #d9dee3; margin-top: 0.6rem; max-width: 34ch; }
.case blockquote { margin: 0; }
.case blockquote p { font: 600 1.4rem/1.35 var(--serif); color: #fff; }
.case cite { display: block; margin-top: 0.75rem; font-style: normal; color: #c3cad1; font-size: 0.9375rem; }
.case__video { margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; color: #fff; font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; font-size: 0.9375rem; text-decoration: underline; text-underline-offset: 4px; }
.video-frame { position: relative; aspect-ratio: 16/9; margin-top: 1rem; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 760px) { .case { grid-template-columns: 1fr; } }

/* —— Brief von Raphael ————————————————— */
.letter-band { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.letter { max-width: 760px; margin: 0 auto; background: var(--sheet); border: 1px solid var(--rule); padding: clamp(1.75rem, 5vw, 3.5rem); position: relative; }
.letter__head { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.75rem; }
.letter__head img { width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; }
.letter__head b { display: block; font-family: var(--serif); font-size: 1.3rem; }
.letter__head span { color: var(--ink-3); font-size: 0.9375rem; }
.letter p { font-size: 1.125rem; line-height: 1.7; max-width: 62ch; }
.letter p + p { margin-top: 1rem; }
.letter .letter__sign { margin-top: 1.75rem; font: 600 2.4rem/1 var(--hand); color: var(--pen); transform: rotate(-2deg); transform-origin: left; }
.letter .letter__contact { margin-top: 0.5rem; color: var(--ink-2); font-size: 0.9375rem; }
.letter__contact a { color: var(--ink); font-weight: 600; }

/* —— Fragen ————————————————————————————— */
.faq-band { padding: 0 0 clamp(3.5rem, 8vw, 6rem); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 4rem); }
.faq-grid > div:first-child p { color: var(--ink-2); margin-top: 1rem; }
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.25rem 1.1rem 0; position: relative; font: 600 1.15rem/1.35 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.95rem; font: 400 1.6rem/1 var(--sans); color: var(--ink-2); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 1.2rem; color: var(--ink-2); max-width: 64ch; }
@media (max-width: 880px) { .faq-grid { grid-template-columns: 1fr; } }

/* —— Schluss und Fuß ————————————————————— */
.close { background: var(--paper-2); padding: clamp(3rem, 7vw, 5rem) 0; border-top: 1px solid var(--rule); }
.close__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.close h2 { max-width: 20ch; }
.close__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.foot { padding: 2rem 0 6rem; font-size: 0.875rem; color: var(--ink-3); }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.foot a { color: var(--ink-2); }
@media (min-width: 721px) { .foot { padding-bottom: 2rem; } }

.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; gap: 0.5rem; padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 1px solid var(--rule); transform: translateY(110%); transition: transform 0.3s ease; }
.mbar.is-on { transform: none; }
.mbar .btn { flex: 1; min-height: 2.9rem; font-size: 0.9375rem; padding: 0.55rem 0.7rem; }
@media (max-width: 720px) { .mbar { display: flex; } }

/* ======================= Runde 5 (Feedback 30.11.) ======================= */

/* Hero-Hintergrund: Rechenpapier, nach unten und zur Mitte ausgeblendet */
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(39, 71, 166, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(39, 71, 166, 0.09) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(120% 90% at 85% 20%, #000 20%, transparent 75%);
          mask-image: radial-gradient(120% 90% at 85% 20%, #000 20%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; top: 0; bottom: 0; left: clamp(1rem, 6vw, 5rem);
  width: 2px; background: rgba(196, 72, 60, 0.18);
}

/* Ordner „Vergütung“: Position kommt aus --pull (0 = unten, 1 = herausgezogen) */
.binder-slot { flex: 1.15 1 0; min-width: 0; height: 98%; position: relative; cursor: pointer; }
.binder-slot::before { content: ""; position: absolute; left: 0; right: 0; top: -52px; height: 52px; }
.binder-slot .binder--lion { width: 100%; height: 100%; animation: none;
  transform: translateY(calc(var(--pull, 0) * -40px)) rotate(calc(var(--pull, 0) * -3deg));
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.25, 1.1); }
.binder-slot:hover .binder--lion, .binder-slot.is-down .binder--lion { transform: translateY(0) rotate(0); }

/* Textmarker */
mark { background: linear-gradient(transparent 52%, rgba(243, 146, 0, 0.38) 52%, rgba(243, 146, 0, 0.38) 92%, transparent 92%); color: inherit; padding: 0 0.1em; }

/* Ablauf kompakt, Formular breiter */
.how__grid { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); }
.how__text h2 { margin-bottom: 0.25rem; }
.steps { margin-top: 1.75rem; gap: 1.4rem; }
.steps p { font-size: 1.0625rem; }
.bill { position: relative; margin: 2.25rem 0 0 2.5rem; width: min(19rem, 88%); }
@media (max-width: 900px) { .how__grid { grid-template-columns: 1fr; } .bill { display: none; } }

/* Einheiten in zwei Spalten */
.opts--units { grid-template-columns: 1fr 1fr; }
.opts--units .opt:last-child { grid-column: 1 / -1; }

/* Strom / Gas als Karten mit Symbol */
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.kind { position: relative; }
.kind input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.kind > span { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 0.65rem; align-items: center;
  padding: 0.9rem 1rem; background: var(--sheet); border: 1.5px solid var(--rule); border-radius: 6px; cursor: pointer; }
.kind svg { grid-row: 1 / 3; width: 2rem; height: 2rem; padding: 0.35rem; border-radius: 50%; }
.kind--strom svg { color: #8a5a00; background: #fff1cc; }
.kind--gas svg { color: #2747a6; background: #e3e9fb; }
.kind b { font-weight: 600; font-size: 1.0625rem; }
.kind small { font-size: 0.8125rem; color: var(--ink-3); }
.kind input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.kind input:checked + span::after { content: ""; position: absolute; right: 0.8rem; top: 0.8rem; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/0.8rem no-repeat; }
.kind input:focus-visible + span { outline: 3px solid var(--pen); outline-offset: 2px; }
.kind:hover > span { border-color: var(--ink-3); }

/* Verbrauch als antippbare Stufen */
.usage { margin: 0.9rem 0 0; padding: 1rem; border: 0; border-radius: 6px; background: var(--sheet); border-top: 4px solid var(--lion); }
.usage--gas { border-top-color: var(--pen); }
.usage__q { display: grid; grid-template-columns: auto 1fr; column-gap: 0.5rem; font-weight: 600; margin-bottom: 0.75rem; }
.usage__q svg { width: 1.2rem; height: 1.2rem; margin-top: 0.15rem; }
.usage--strom .usage__q svg { color: #b07400; } .usage--gas .usage__q svg { color: var(--pen); }
.usage__q small { grid-column: 2; font-weight: 400; font-size: 0.8125rem; color: var(--ink-3); margin-top: 0.1rem; }
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: block; text-align: center; padding: 0.6rem 0.5rem; font-size: 0.9375rem; font-weight: 500; border: 1.5px solid var(--rule); border-radius: 999px; background: #fff; cursor: pointer; font-variant-numeric: tabular-nums; }
.chip:hover span { border-color: var(--ink-3); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--pen); outline-offset: 2px; }
.chip--unsure { grid-column: 1 / -1; }
.chip--unsure span { border-style: dashed; color: var(--ink-2); background: transparent; }
@media (min-width: 1100px) { .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 420px) { .kinds { grid-template-columns: 1fr; } }

/* Kontaktdaten: Anrede, Vorname, Nachname */
.row3 { display: grid; grid-template-columns: 0.7fr 1fr 1fr; gap: 0 0.75rem; }
@media (max-width: 560px) { .row3 { grid-template-columns: 1fr 1fr; } .row3 .field:first-child { grid-column: 1 / -1; } }
.field select { font: inherit; font-size: 1rem; min-height: 3rem; padding: 0.6rem 0.8rem; border: 1.5px solid var(--rule); border-radius: 4px; background: #fff; color: var(--ink); width: 100%; }
.field select:focus { outline: none; border-color: var(--pen); box-shadow: 0 0 0 3px rgba(39, 71, 166, 0.15); }
.field select[aria-invalid="true"] { border-color: #b3261e; }

/* Rechtsfrage kompakt */
.memo p { font-size: 1.0625rem; }

/* Fallbeispiel mit Videovorschau */
.case { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: center; }
.case blockquote { margin-top: 1.5rem; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #0b1f29; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3); }
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video__play { position: absolute; inset: 0; border: 0; cursor: pointer; display: grid; place-items: center; background: linear-gradient(180deg, rgba(11,31,41,0) 35%, rgba(11,31,41,0.7) 100%); }
.video__play span { display: inline-flex; align-items: center; gap: 0.55rem; background: var(--lion); color: var(--ink); font: 600 1rem/1 var(--sans); padding: 0.85rem 1.2rem; border-radius: 4px; box-shadow: 0 2px 0 var(--lion-deep); }
.video__play svg { width: 1.1rem; height: 1.1rem; }
.video__play:hover span { background: #ffa01a; }
.video__note { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 0.5rem 0.75rem; font-size: 0.75rem; color: #dfe4e8; text-align: center; pointer-events: none; }
.video.is-playing .video__note { display: none; }

/* Schräger Zettel als zusätzlicher CTA */
.ticket-wrap { display: flex; justify-content: center; margin-top: 3.25rem; }
.ticket { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0.2rem; text-decoration: none; color: var(--ink);
  background: var(--lion); padding: 1.1rem 1.6rem 1.15rem 1.4rem; transform: rotate(-3deg); border-radius: 3px;
  box-shadow: 0 3px 0 var(--lion-deep), 10px 14px 0 rgba(0, 0, 0, 0.22); position: relative; transition: transform 0.2s ease; }
.ticket::before { content: ""; position: absolute; top: -10px; left: 50%; width: 76px; height: 22px; transform: translateX(-50%) rotate(2deg);
  background: rgba(255, 255, 255, 0.55); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }
.ticket:hover { transform: rotate(-1.5deg) translateY(-2px); }
.ticket__hand { font: 600 1.45rem/1 var(--hand); color: var(--ink); }
.ticket__main { font: 700 clamp(1.35rem, 1.1rem + 1vw, 1.75rem)/1.15 var(--serif); }
.ticket:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

/* Leiste unten (alle Geräte) */
.mbar { display: none !important; }
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(246, 247, 243, 0.97); border-top: 1px solid var(--rule);
  box-shadow: 0 -6px 20px rgba(29, 39, 51, 0.06); transform: translateY(110%); transition: transform 0.3s ease; padding-bottom: env(safe-area-inset-bottom); }
.dock.is-on { transform: none; }
.dock__in { display: flex; align-items: center; gap: 0.75rem; min-height: 4.25rem; }
.dock__text { margin-right: auto; font: 700 1.2rem/1.2 var(--serif); }
.dock__text span { font: 400 0.9375rem/1.3 var(--sans); color: var(--ink-2); margin-left: 0.5rem; }
.dock .btn { min-height: 2.9rem; padding: 0.55rem 1.1rem; font-size: 0.9875rem; }
.dock__call svg { width: 1.05rem; height: 1.05rem; }
@media (max-width: 720px) { .dock__text { display: none; } .dock .btn--lion { flex: 1; } .dock__call span { display: none; } .dock__in { min-height: 3.8rem; } }
body.has-dock .foot { padding-bottom: 6rem; }
.foot { padding-bottom: 2rem; }
.foot__link { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Cookie-Banner */
.cookie { position: fixed; left: 50%; bottom: 1rem; z-index: 60; width: min(44rem, calc(100% - 1.5rem)); transform: translate(-50%, 130%);
  background: var(--sheet); border: 1px solid var(--rule); border-top: 5px solid var(--ink); border-radius: 6px;
  box-shadow: 0 20px 60px rgba(29, 39, 51, 0.25); transition: transform 0.35s ease; }
.cookie.is-on { transform: translate(-50%, 0); }
.cookie__in { padding: 1.25rem 1.4rem 1.2rem; }
.cookie__title { font: 700 1.3rem/1.2 var(--serif); margin-bottom: 0.5rem; }
.cookie__text { font-size: 0.9375rem; color: var(--ink-2); }
.cookie__more { margin-top: 0.9rem; display: grid; gap: 0.5rem; }
.cookie__opt { display: grid; grid-template-columns: 1.2rem 1fr; gap: 0.6rem; font-size: 0.875rem; color: var(--ink-2); padding: 0.6rem 0.7rem; border: 1px solid var(--rule); border-radius: 4px; }
.cookie__opt input { width: 1.1rem; height: 1.1rem; margin: 0.15rem 0 0; accent-color: var(--ink); }
.cookie__opt b { display: block; color: var(--ink); font-weight: 600; }
.cookie__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 1rem; }
.cookie__btn { flex: 1 1 10rem; min-height: 2.9rem; font: 600 0.9875rem/1.2 var(--sans); border: 2px solid var(--ink); background: var(--ink); color: #fff; border-radius: 4px; cursor: pointer; padding: 0.55rem 1rem; }
.cookie__btn + .cookie__btn { background: transparent; color: var(--ink); }
.cookie__btn[data-c="save"] { background: var(--ink); color: #fff; }
.cookie__link { background: none; border: 0; font: 500 0.9375rem/1.2 var(--sans); color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0.5rem; }
body.has-cookie .dock { transform: translateY(110%); }

/* Rechtstexte */
.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0 4rem; }
.legal__in { max-width: 46rem; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); line-height: 1.1; margin-bottom: 0.75rem; }
.legal h2 { font-size: 1.4rem; margin: 2.25rem 0 0.6rem; }
.legal h3 { font-size: 1.1rem; margin: 1.5rem 0 0.4rem; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 0.75rem; }
.legal ul { padding-left: 1.2rem; margin: 0.5rem 0; display: grid; gap: 0.3rem; }
.legal address { font-style: normal; color: var(--ink); }
.legal__lead { font-size: 1.125rem; }
.legal__back { display: inline-block; margin-bottom: 1.5rem; font-weight: 600; color: var(--ink); }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-top: 0.75rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--rule); }
.legal th { font-weight: 600; color: var(--ink); background: var(--paper-2); }
.legal__table { overflow-x: auto; }
.legal__stand { margin-top: 2.5rem; font-size: 0.875rem; color: var(--ink-3); }

.cookie__more[hidden], .cookie [hidden], .usage[hidden] { display: none !important; }

/* ======================= Runde 6 ======================= */

/* Textmarker, wie von Hand gezogen: unregelmäßige Kanten, leicht schräg */
mark {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath d='M4 14 C 30 9, 80 11, 120 8 S 186 9, 197 11 L 195 18 C 196 23, 198 28, 194 33 C 150 35, 90 31, 40 35 S 8 34, 3 31 C 6 26, 2 20, 4 14 Z' fill='%23ffc61a' fill-opacity='0.62'/%3E%3Cpath d='M10 30 C 60 27, 130 30, 190 26' stroke='%23ffb300' stroke-opacity='0.35' stroke-width='3' fill='none'/%3E%3C/svg%3E") 0 60% / 100% 78% no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  color: inherit; padding: 0 0.2em; margin: 0 -0.05em; border-radius: 2px;
}

/* Ordner als Knopf */
.binder-slot { display: block; text-decoration: none; color: inherit; }
.binder-slot .binder--lion { display: block; }
.binder-slot .binder__label { display: flex; }
.binder__tip { position: absolute; left: 50%; top: -3.4rem; transform: translateX(-50%) rotate(-4deg); white-space: nowrap;
  font: 600 1.15rem/1 var(--hand); color: var(--pen); opacity: 0; transition: opacity 0.2s ease; pointer-events: none; }
.binder-slot:hover .binder__tip, .binder-slot:focus-visible .binder__tip { opacity: 1; }
.binder-slot:focus-visible { outline: 3px solid var(--pen); outline-offset: 4px; }
.binder-slot.is-open .binder--lion { transform: translateY(-90px) rotate(-6deg) !important; transition-duration: 0.35s; }

/* Notizzettel bei der Rechtsfrage */
.postit { margin: 2.25rem 0 0; max-width: 24rem; padding: 1.3rem 1.4rem 1.4rem; background: #fff6b8; transform: rotate(-2deg);
  box-shadow: 0 1px 0 rgba(0,0,0,0.05), 8px 12px 0 rgba(29, 39, 51, 0.06); position: relative; }
.postit::before { content: ""; position: absolute; top: -9px; left: 38%; width: 70px; height: 20px; background: rgba(255,255,255,0.6); transform: rotate(-3deg); box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.postit figcaption { font: 600 1.35rem/1.1 var(--hand); color: var(--pen); margin-bottom: 0.6rem; }
.postit blockquote { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--ink); }
.memo-grid > div:first-child p { max-width: 34ch; }

/* Schräger Zettel: klar als Knopf erkennbar */
.ticket { cursor: pointer; }
.ticket__btn { margin-top: 0.75rem; display: inline-flex; align-items: center; gap: 0.5rem; background: var(--ink); color: #fff;
  font: 600 1rem/1 var(--sans); padding: 0.75rem 1.1rem; border-radius: 4px; box-shadow: 0 2px 0 #000; transition: background 0.15s ease, transform 0.15s ease; }
.ticket__btn svg { width: 1.1rem; height: 1.1rem; transition: transform 0.2s ease; }
.ticket:hover .ticket__btn { background: #2f3b48; }
.ticket:hover .ticket__btn svg { transform: translateX(3px); }

/* FAQ links: Ansprechpartner */
.ask { margin-top: 2rem; padding: 1.4rem; background: var(--sheet); border: 1px solid var(--rule); border-top: 5px solid var(--lion); display: grid; grid-template-columns: 4.5rem 1fr; column-gap: 1rem; row-gap: 0.15rem; align-items: center; position: sticky; top: 6rem; }
.ask img { grid-row: 1 / 4; width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; }
.ask__hand { font: 600 1.35rem/1 var(--hand); color: var(--pen); margin: 0 !important; }
.ask__name { font: 700 1.15rem/1.2 var(--serif); margin: 0 !important; color: var(--ink) !important; }
.ask__name span { display: block; font: 400 0.875rem/1.3 var(--sans); color: var(--ink-3); }
.ask__phone { font-weight: 600; color: var(--ink); text-decoration: none; }
.ask__btn { grid-column: 1 / -1; margin-top: 1rem; }
.faq-grid { align-items: start; }

/* Spielerei: Lineal-Schieber */
.quick { padding: clamp(3rem, 7vw, 5rem) 0; background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.quick__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.quick__intro { margin-top: 0.6rem; color: var(--ink-2); font-size: 1.125rem; }
.quick__fine { margin-top: 1rem; font-size: 0.875rem; color: var(--ink-3); }
.ruler { margin-top: 1.75rem; position: relative; padding: 0.9rem 1rem 0.5rem; border-radius: 4px;
  background: #f4d77a linear-gradient(180deg, rgba(255,255,255,0.35), rgba(0,0,0,0.04));
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.08), 0 6px 0 rgba(29,39,51,0.08); }
.ruler::before { content: ""; position: absolute; left: 1rem; right: 1rem; top: 0; height: 1.1rem;
  background: repeating-linear-gradient(90deg, rgba(29,39,51,0.55) 0 1px, transparent 1px 10px),
              repeating-linear-gradient(90deg, rgba(29,39,51,0.7) 0 2px, transparent 2px 50px);
  -webkit-mask: linear-gradient(180deg, #000 0 100%); background-size: 10px 0.55rem, 50px 1.1rem; background-repeat: repeat-x; }
.ruler input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 2.6rem; background: transparent; margin: 0.4rem 0 0; cursor: grab; }
.ruler input[type=range]:active { cursor: grabbing; }
.ruler input[type=range]::-webkit-slider-runnable-track { height: 6px; background: rgba(29,39,51,0.25); border-radius: 3px; }
.ruler input[type=range]::-moz-range-track { height: 6px; background: rgba(29,39,51,0.25); border-radius: 3px; }
.ruler input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -12px; border-radius: 50%; background: var(--ink); border: 4px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.3); }
.ruler input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 4px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.3); }
.ruler input[type=range]:focus-visible { outline: 3px solid var(--pen); outline-offset: 2px; }
.ruler__scale { display: flex; justify-content: space-between; font: 600 0.8rem/1 var(--sans); color: rgba(29,39,51,0.75); padding: 0.2rem 0 0.2rem; font-variant-numeric: tabular-nums; }
.quick__note { background: #fff6b8; padding: 1.5rem 1.5rem 1.6rem; transform: rotate(1.5deg); box-shadow: 8px 12px 0 rgba(29,39,51,0.07); position: relative; }
.quick__note::before { content: ""; position: absolute; top: -9px; left: 40%; width: 70px; height: 20px; background: rgba(255,255,255,0.6); transform: rotate(3deg); }
.quick__units { font-size: 1rem; color: var(--ink-2); }
.quick__units b { font: 700 1.2rem/1 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; }
.quick__sum { font: 600 1.6rem/1 var(--hand); color: var(--pen); margin-top: 0.5rem; }
.quick__sum b { font: 700 clamp(2.4rem, 1.8rem + 2vw, 3.2rem)/1 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; }
.quick__label { font-size: 0.875rem; color: var(--ink-2); margin: 0.4rem 0 1.1rem; }
@media (max-width: 860px) { .quick__grid { grid-template-columns: 1fr; } .quick__note { transform: rotate(0.8deg); } }

/* Neuer Fuß */
.foot { display: none; }
.foot2 { background: var(--ink); color: #c9d0d6; position: relative; margin-top: 0; }
.foot2__spines { height: 22px; background:
  repeating-linear-gradient(90deg,
    #3a4f6b 0 34px, #f6f7f3 34px 37px, #8c8f86 37px 66px, #f6f7f3 66px 69px, #2e5e4e 69px 104px, #f6f7f3 104px 107px,
    #f39200 107px 140px, #f6f7f3 140px 143px, #7a2e2e 143px 176px, #f6f7f3 176px 179px, #2b2f33 179px 210px, #f6f7f3 210px 213px); }
.foot2__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.8fr); gap: 2.5rem; padding-top: 3rem; padding-bottom: 2.25rem; }
.foot2__brand img { width: 15rem; height: auto; }
.foot2__brand p { margin: 1rem 0 1.25rem; max-width: 34ch; font-size: 0.9375rem; }
.foot2__head { font: 700 1.1rem/1.2 var(--serif); color: #fff; margin-bottom: 0.75rem; }
.foot2__col p { font-size: 0.9375rem; line-height: 1.6; }
.foot2__col p + p { margin-top: 0.75rem; }
.foot2 a { color: #fff; text-decoration-color: rgba(255,255,255,0.35); }
.foot2 nav { display: grid; gap: 0.45rem; }
.foot2 nav a, .foot2__link { font-size: 0.9375rem; }
.foot2__link { background: none; border: 0; padding: 0; text-align: left; font: inherit; color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.35); text-underline-offset: 3px; cursor: pointer; }
.foot2__base { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: 1.25rem; padding-bottom: 1.5rem; border-top: 1px solid rgba(255,255,255,0.14); font-size: 0.8125rem; color: #9aa5ae; }
.foot2__hand { font: 600 1.25rem/1 var(--hand); color: var(--lion); transform: rotate(-2deg); }
body.has-dock .foot2 { padding-bottom: 4.5rem; }
@media (max-width: 860px) { .foot2__grid { grid-template-columns: 1fr 1fr; } .foot2__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot2__grid { grid-template-columns: 1fr; } }

/* ======================= Runde 7 ======================= */
/* Textmarker wie ein echter Leuchtstift: Keilspitze, Tinte sammelt sich an Anfang und Ende,
   Faserstreifen in Zugrichtung, ausgefranste Kanten. Wird beim Scrollen im Tempo des Scrollens
   von links nach rechts gezogen und bleibt danach stehen (--p von 0 bis 1, setzt script.js). */
mark {
  background: none; padding: 0; margin: 0; border-radius: 0;
  position: relative; white-space: nowrap; color: inherit;
}
/* Der Strich liegt hinter dem Text des ganzen Absatzes, auch hinter Satzzeichen daneben */
:where(p, li, div):has(> mark) { isolation: isolate; }
mark::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: -0.24em; right: -0.3em; top: 0.02em; bottom: -0.1em;
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%2040'%20preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter%20id='e'%20x='-3%25'%20y='-30%25'%20width='106%25'%20height='160%25'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.04%200.5'%20numOctaves='2'%20seed='4'/%3E%3CfeDisplacementMap%20in='SourceGraphic'%20scale='3.6'/%3E%3C/filter%3E%3Cfilter%20id='g'%20x='0'%20y='0'%20width='100%25'%20height='100%25'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.005%200.6'%20numOctaves='2'%20seed='11'%20result='n'/%3E%3CfeColorMatrix%20in='n'%20values='0%200%200%200%201%20%200%200%200%200%201%20%200%200%200%200%200.85%20%200%200%200%20-2.6%201.3'/%3E%3CfeComposite%20in2='SourceGraphic'%20operator='in'/%3E%3C/filter%3E%3C/defs%3E%3Cg%20filter='url%28%23e%29'%3E%3Cpath%20d='M9%207%20L291%204.5%20Q297%205%20297%2010%20L295%2033%20Q294%2036.5%20287%2036%20L7%2038.5%20Q2.5%2038%203%2033%20L5%2011%20Q5.5%207.5%209%207%20Z'%20fill='%23fff23d'%20fill-opacity='0.86'/%3E%3Cpath%20d='M9%207%20Q16%206.6%2020%207.5%20L18%2037.6%20L7%2038.5%20Q2.5%2038%203%2033%20L5%2011%20Q5.5%207.5%209%207%20Z'%20fill='%23ffcf00'%20fill-opacity='0.5'/%3E%3Cpath%20d='M282%204.8%20L291%204.5%20Q297%205%20297%2010%20L295%2033%20Q294%2036.5%20287%2036%20L280%2036.2%20Z'%20fill='%23ffcf00'%20fill-opacity='0.42'/%3E%3Cpath%20d='M240%206%20L290%205%20L289%2020%20L239%2021.5%20Z'%20fill='%23ffe100'%20fill-opacity='0.22'/%3E%3C/g%3E%3Crect%20x='4'%20y='5'%20width='292'%20height='33'%20fill='%23fffde8'%20fill-opacity='0.5'%20filter='url%28%23g%29'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  transform: rotate(-0.7deg);
  -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--p, 1) * 112% - 12%), transparent calc(var(--p, 1) * 112%));
          mask-image: linear-gradient(90deg, #000 calc(var(--p, 1) * 112% - 12%), transparent calc(var(--p, 1) * 112%));
}

/* ======================= Runde 8 ======================= */
/* Pfeil von der Handnotiz zum Ordner „Vergütung“: wird per Skript an die echten Positionen gezeichnet */
.scene__note svg { display: none; }
.scene__arrow { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; color: var(--pen); z-index: 2; }
.scene__arrow path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
/* Genug Platz zwischen Notiz und herausgezogenem Ordner, damit der Pfeil überall sichtbar bleibt */
.scene { padding-top: 9rem; }
@media (max-width: 480px) { .scene { padding-top: 8.25rem; } }
/* Desktop: Regal tiefer im Hero, damit man das Herausziehen beim Scrollen sieht */
@media (min-width: 881px) {
  .hero__grid { align-items: start; }
  .hero__grid > div:first-child { padding-top: 1.25rem; }
  .scene { margin-top: 4rem; padding-top: 9rem; }
}

/* Fix: Kundenstimme auf schmalen Bildschirmen untereinander (Regel oben wurde von Runde 5 überschrieben) */
@media (max-width: 760px) { .case { grid-template-columns: 1fr; } }

/* ======================= Runde 9 ======================= */
/* Handschrift Architects Daughter: gleiche x-Höhe wie vorher Caveat, kein künstliches Fett (gibt es nur in 400) */
.brand__tag, .scene__note, .binder__label span:not(.print), .bill__sum b, .bill__hint, .form__done .hand, .memo__note, .letter .letter__sign, .ticket__hand, .binder__tip, .postit figcaption, .ask__hand, .quick__sum, .foot2__hand { font-size-adjust: 0.35; font-synthesis: none; }
.quick__sum b { font-size-adjust: none; }

/* ======================= Smart-Meter-Seite ======================= */
/* Frist-Hinweis im Hero */
.hero__due { margin-top: 1.25rem; max-width: 34rem; padding: 0.75rem 1rem; background: var(--sheet); border: 1px solid var(--rule); border-left: 5px solid #c4483c; font-size: 0.9375rem; line-height: 1.45; color: var(--ink-2); }
.hero__due b { display: block; color: #a8362b; font-weight: 600; margin-bottom: 0.1rem; }

/* Wochenkalender mit Ableseterminen: wird beim Scrollen durchgestrichen (--s je Termin, --done für den Stempel) */
.cal { display: block; position: relative; margin: 0 0 0 auto; max-width: 31rem; background: var(--sheet); color: var(--ink); text-decoration: none;
  padding: 1.6rem 1.5rem 1.4rem; border: 1px solid var(--rule); transform: rotate(1.2deg); transition: transform 0.25s ease;
  box-shadow: 0 22px 30px -20px rgba(29, 39, 51, 0.45), 0 2px 0 rgba(29, 39, 51, 0.04); }
.cal::before { content: ""; position: absolute; left: 1.2rem; right: 1.2rem; top: -8px; height: 16px;
  background: radial-gradient(circle at 50% 50%, #f6f7f3 3px, #8c8f86 3.6px, #8c8f86 5px, transparent 5.6px) 0 0 / 24px 16px repeat-x; }
.cal:hover, .cal:focus-visible { transform: rotate(0deg) translateY(-3px); }
.cal:focus-visible { outline: 3px solid var(--pen); outline-offset: 4px; }
.cal__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 2px solid var(--ink); padding-bottom: 0.55rem; margin-bottom: 0.2rem; }
.cal__head b { font: 700 1.6rem/1 var(--serif); }
.cal__head span { font-size: 0.875rem; color: var(--ink-3); }
.cal__list { list-style: none; margin: 0; padding: 0; }
.cal__list li { display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.5rem; align-items: baseline; padding: 0.6rem 0; border-bottom: 1px dashed var(--rule); }
.cal__day { font-size: 0.8125rem; font-weight: 600; color: var(--ink-3); }
.cal__txt { position: relative; justify-self: start; white-space: nowrap; font: 400 1.35rem/1.3 var(--hand); color: var(--pen); font-size-adjust: 0.35; font-synthesis: none; }
.cal__txt::after { content: ""; position: absolute; left: -0.25em; right: -0.35em; top: 50%; height: 0.8em; margin-top: -0.38em; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M2 12 C 40 8, 90 13, 130 9 S 185 10, 198 8' fill='none' stroke='%23c4483c' stroke-width='2.6' stroke-linecap='round'/%3E%3Cpath d='M6 14 C 60 11, 120 15, 194 11' fill='none' stroke='%23c4483c' stroke-width='1.6' stroke-linecap='round' opacity='0.7'/%3E%3C/svg%3E") 0 50% / 100% 100% no-repeat;
  transform: scaleX(var(--s, 0)); transform-origin: left center; }
.cal__stamp { position: absolute; right: 1.1rem; bottom: 1.3rem; padding: 0.45rem 0.8rem; font: 700 1.05rem/1 var(--sans); letter-spacing: 0.02em; color: #2e7d4f;
  border: 3px solid currentColor; border-radius: 6px; background: rgba(255, 255, 255, 0.88); pointer-events: none;
  opacity: var(--done, 0); transform: rotate(-9deg) scale(calc(1.5 - 0.5 * var(--done, 0))); }
.cal__tip { position: absolute; left: 50%; top: -3rem; transform: translateX(-50%) rotate(-4deg); white-space: nowrap; font: 400 1.25rem/1 var(--hand);
  font-size-adjust: 0.35; color: var(--pen); opacity: 0; transition: opacity 0.2s ease; pointer-events: none; }
.cal:hover .cal__tip, .cal:focus-visible .cal__tip { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .cal { transition: none; } }
@media (max-width: 880px) { .cal { margin: 0 auto; } }
@media (max-width: 480px) { .cal { padding: 1.4rem 1.1rem 1.2rem; } .cal__txt { font-size: 1.2rem; } .cal__stamp { font-size: 0.95rem; } }

/* Musterzettel „Aushang“ statt Rechnung */
.bill--sm .bill__sum b { font-size: 1.6rem; }

/* Vier Zählerarten im Formular */
.kinds--4 { grid-template-columns: 1fr 1fr; }
.kind--heat svg { color: #a8362b; background: #fbe4e0; }
.kind--water svg { color: #1f6f8b; background: #dff1f7; }
#funk-box { margin-top: 0.9rem; }
.estimate--check .estimate__sum { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.8rem); }
.estimate--check .estimate__basis { font-size: 0.9375rem; line-height: 1.5; }

/* Lineal-Ergebnis: zweite Zeile */
.quick__extra { font-size: 0.9375rem; color: var(--ink-2); margin: -0.4rem 0 1.1rem; }
.quick__extra b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Kostenlos + Zeitersparnis sofort sichtbar */
.hero__facts { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 0.75rem; margin-top: 1.4rem; }
.fact { margin: 0; background: var(--sheet); border: 1px solid var(--rule); border-top: 4px solid var(--lion); padding: 0.7rem 1rem 0.75rem; max-width: 15rem; }
.fact b { display: block; font: 700 clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem)/1 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fact span { display: block; margin-top: 0.3rem; font-size: 0.875rem; line-height: 1.35; color: var(--ink-2); }
.fact:first-child b { color: #2e7d4f; }
@media (max-width: 400px) { .hero__facts { grid-template-columns: 1fr 1fr; } .fact { padding: 0.6rem 0.75rem; } }
.estimate__save { margin-top: 0.6rem; font-size: 0.9375rem; line-height: 1.45; color: var(--ink); }
.estimate__save b { color: #2e7d4f; }
.quick__sum { font: 700 1.6rem/1 var(--serif); color: var(--ink); }
