/* SMKW – Wartungsheft für Kälteanlagen und Wärmepumpen
   Stylesheet, Version 3 (28.10.2026): gezeichnete Hefte im Einstieg und im Band, Kontaktformular
   Farben aus dem Logo: Blau #28A0D8, Grün #68B038, Grau #404040 */

/* ------------------------------------------------------------ Schriften */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  src: url(../fonts/instrument-sans-latin-wdth-normal.woff2) format("woff2-variations");
  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: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  src: url(../fonts/instrument-sans-latin-ext-wdth-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Kalam";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/kalam-latin-400-normal.woff2) format("woff2");
}

/* ------------------------------------------------------------ Grundwerte */
:root {
  --eis: #F2F6F8;
  --papier: #FFFFFF;
  --frost: #D9EEF8;
  --frost-hell: #EAF5FB;
  --blau: #28A0D8;          /* Logo-Blau, für Grafik */
  --blau-text: #0F6E9E;     /* Links, Kontrast 5.5:1 auf Weiss */
  --gruen: #6AB23A;         /* Logo-Grün, Bestellknopf */
  --gruen-dunkel: #5A9E2C;
  --gruen-hell: #E6F3DA;
  --tinte: #1F3F8C;         /* Kugelschreiber im Beispiel-Eintrag */
  --text: #22292E;
  --text-2: #56636B;
  --linie: #D3DFE6;
  --graphit: #1D2124;
  --graphit-text: #C3CDD2;

  --rand: clamp(16px, 4vw, 40px);
  --breite: 1240px;
  --kopf-hoehe: 72px;
  --abstand: clamp(72px, 10vw, 136px);

  --schrift: "Instrument Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --schrift-hand: "Kalam", "Comic Neue", cursive;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--eis);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 1.125rem;
  line-height: 1.6;
  font-stretch: 100%;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
picture { display: block; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-stretch: 86%;
  letter-spacing: -0.02em;
}
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }
p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--blau-text); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--blau-text);
  outline-offset: 3px;
  border-radius: 3px;
}

[id] { scroll-margin-top: calc(var(--kopf-hoehe) + 16px); }

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--rand);
  top: -100px;
  z-index: 100;
  padding: 0.6em 1em;
  background: var(--papier);
  color: var(--text);
  border-radius: 6px;
}
.skip:focus { top: 12px; }

mark.offen { background: #FFF1A8; color: inherit; padding: 0 0.2em; }

/* ------------------------------------------------------------ Knöpfe und Links */
.knopf {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.78em 1.25em;
  border-radius: 6px;
  border: 1.5px solid transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 620;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}
.knopf .i-extern { width: 0.95em; height: 0.95em; flex: none; }
.knopf--bestellen {
  background: var(--gruen);
  color: #12200A;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 6px 18px -8px rgba(74, 130, 34, 0.8);
}
.knopf--bestellen:hover {
  background: var(--gruen-dunkel);
  color: #0B1606;
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 10px 22px -10px rgba(74, 130, 34, 0.9);
}
.knopf--bestellen:active { transform: translateY(0); }
.knopf--gross { padding: 1em 1.5em; font-size: 1.0625rem; }
.knopf--rand {
  border-color: var(--text);
  color: var(--text);
  background: transparent;
}
.knopf--rand:hover { background: var(--text); color: var(--papier); }

.textlink {
  color: var(--text);
  font-weight: 560;
  text-decoration: underline;
  text-decoration-color: var(--blau);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.28em;
}
.textlink:hover { color: var(--blau-text); }

.i-extern { display: inline-block; width: 0.85em; height: 0.85em; vertical-align: -0.05em; margin-left: 0.3em; }
.knopf .i-extern { margin-left: 0; }

/* ------------------------------------------------------------ Kopf */
.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--kopf-hoehe);
  background: rgba(242, 246, 248, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.kopf.ist-gescrollt {
  border-bottom-color: var(--linie);
  box-shadow: 0 8px 24px -20px rgba(20, 50, 70, 0.6);
}
.kopf__innen {
  height: 100%;
  max-width: calc(var(--breite) + 2 * var(--rand));
  margin: 0 auto;
  padding: 0 var(--rand);
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
}
.marke {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-2);
  text-decoration: none;
  flex: none;
}
.marke__logo { width: auto; height: 52px; }
.marke__name {
  max-width: 15.5em;
  font-size: 0.78rem;
  line-height: 1.25;
  padding-left: 14px;
  border-left: 1px solid var(--linie);
}
.hauptnav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
  margin-left: auto;
}
.hauptnav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.hauptnav__liste { gap: clamp(14px, 1.8vw, 28px); }
.hauptnav__liste a {
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 520;
  padding: 0.4em 0;
  background: linear-gradient(var(--blau), var(--blau)) 0 100% / 0 2px no-repeat;
  transition: background-size 0.25s ease;
}
.hauptnav__liste a:hover, .hauptnav__liste a.ist-aktiv { background-size: 100% 2px; }
.sprachwahl { gap: 2px; font-size: 0.875rem; font-weight: 600; }
.sprachwahl a, .sprachwahl span {
  display: block;
  padding: 0.3em 0.45em;
  border-radius: 4px;
  color: var(--text-2);
  text-decoration: none;
}
.sprachwahl a:hover { color: var(--text); background: var(--frost-hell); }
.sprachwahl__aktiv { color: var(--text) !important; background: var(--frost); }
.sprachwahl__fehlt { opacity: 0.45; cursor: help; }
.kopf__bestellen { padding: 0.65em 1em; font-size: 0.95rem; }

.menueknopf {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 10px;
  padding: 0.5em 0.2em 0.5em 0.6em;
  background: none;
  border: 0;
  font: inherit;
  font-size: 1rem;
  font-weight: 560;
  color: var(--text);
  cursor: pointer;
}
.menueknopf__striche, .menueknopf__striche::before, .menueknopf__striche::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.menueknopf__striche { position: relative; }
.menueknopf__striche::before, .menueknopf__striche::after { content: ""; position: absolute; left: 0; }
.menueknopf__striche::before { top: -7px; }
.menueknopf__striche::after { top: 7px; }
.menueknopf[aria-expanded="true"] .menueknopf__striche { background: transparent; }
.menueknopf[aria-expanded="true"] .menueknopf__striche::before { transform: translateY(7px) rotate(45deg); }
.menueknopf[aria-expanded="true"] .menueknopf__striche::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1180px) {
  .marke__name { display: none; }
}
@media (max-width: 899px) {
  :root { --kopf-hoehe: 64px; }
  .marke__logo { height: 44px; }
  .kopf__bestellen { display: none; }
  .menueknopf { display: inline-flex; }
  .hauptnav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin: 0;
    padding: 8px var(--rand) 24px;
    background: var(--eis);
    border-bottom: 1px solid var(--linie);
    box-shadow: 0 24px 32px -24px rgba(20, 50, 70, 0.5);
  }
  .hauptnav.ist-offen { display: flex; }
  .hauptnav__liste { flex-direction: column; gap: 0; }
  .hauptnav__liste a {
    display: block;
    padding: 0.75em 0;
    font-size: 1.25rem;
    border-bottom: 1px solid var(--linie);
    background: none;
  }
  .sprachwahl { padding-top: 8px; font-size: 1rem; }
}

/* ------------------------------------------------------------ Einstieg (Hero) */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  min-height: min(calc(100svh - var(--kopf-hoehe)), 860px);
  overflow: hidden;
}
.hero__text {
  align-self: center;
  position: relative;
  z-index: 2;
  padding: clamp(40px, 7vh, 88px) clamp(28px, 4vw, 64px) clamp(56px, 9vh, 104px) max(var(--rand), calc((100vw - var(--breite)) / 2));
}
.neu-hinweis {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: clamp(24px, 4vh, 40px);
  padding: 0.45em 0.9em 0.45em 0.7em;
  border-radius: 6px;
  background: var(--papier);
  border: 1px solid var(--linie);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 520;
  line-height: 1.3;
  text-decoration: none;
  transition: border-color 0.2s ease;
}
.neu-hinweis:hover { border-color: var(--gruen); }
.neu-hinweis__punkt {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gruen);
  box-shadow: 0 0 0 4px var(--gruen-hell);
}
.hero__titel {
  font-size: calc(clamp(2.5rem, 5vw, 4.6rem) * var(--titel-faktor, 1));
  font-stretch: 82%;
  font-weight: 520;
  line-height: 0.98;
  letter-spacing: -0.028em;
  margin-bottom: 0.42em;
  text-wrap: initial;
}
.hero__titel .zeile {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.hero__titel .zeile > span { display: block; white-space: nowrap; }
.hero__lead {
  max-width: 30em;
  font-size: clamp(1.125rem, 1.5vw, 1.3rem);
  line-height: 1.5;
  color: var(--text-2);
  margin-bottom: 2rem;
}
.hero__aktionen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}
.hero__bild {
  position: relative;
  container-type: size;
}
.hero__bild::before {
  /* zarter Frost-Schein hinter den Heften */
  content: "";
  position: absolute;
  inset: 6% 4%;
  background: radial-gradient(closest-side, #FFFFFF 0%, rgba(217, 238, 248, 0.9) 45%, rgba(217, 238, 248, 0) 100%);
}
/* Drei Hefte (DE, FR, IT) aufgefächert, vorne die Sprache der Seite – gezeichnet wie das Heft bei der Bestellung */
.stapel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(92cqw, 92cqh, 660px);
  aspect-ratio: 1;
  translate: -50% -50%;
}
/* Gezeichneter Heftumschlag (Einstieg und Band) – Titel wie auf dem gedruckten Heft */
.deckel {
  position: relative;
  aspect-ratio: 1 / 1.414;
  container-type: inline-size;
  padding: 10% 9%;
  border-radius: 2px;
  background: linear-gradient(165deg, #FFFFFF 0%, #FBFCFC 55%, #EEF1F2 100%);
  color: #1E2326;
  box-shadow: 0 1px 1px rgba(20, 40, 50, 0.12), 0 30px 50px -24px rgba(16, 50, 70, 0.5);
  overflow: hidden;
}
.deckel::after {
  /* Lichtkante, läuft einmal über das Heft */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.75) 50%, rgba(255, 255, 255, 0) 60%);
  transform: translateX(-100%);
  pointer-events: none;
}
.stapel__heft {
  /* --pos: 0 hinten, 1 Mitte, 2 vorne */
  position: absolute;
  width: 44%;
  left: calc(40% - var(--pos) * 15%);
  top: calc(1% + var(--pos) * 14.5%);
  rotate: calc(7deg - var(--pos) * 6deg);
  transition: translate 0.6s cubic-bezier(0.3, 0.9, 0.3, 1), rotate 0.6s cubic-bezier(0.3, 0.9, 0.3, 1);
}
.stapel__heft:not(.stapel__heft--vorne) { background: linear-gradient(165deg, #FBFCFC 0%, #F3F5F6 60%, #E6EAEC 100%); }
@media (hover: hover) {
  .stapel:hover .stapel__heft { translate: calc((2 - var(--pos)) * 7%) calc((var(--pos) - 2) * 4%); }
  .stapel:hover .stapel__heft--vorne { translate: -3% 2%; rotate: -6deg; }
}

/* Schneeflocke aus dem Logo-Motiv: setzt sich beim Laden zusammen, dreht beim Scrollen mit */
.flocke {
  position: absolute;
  z-index: 1;
  right: clamp(20px, 3.5vw, 56px);
  top: clamp(16px, 3%, 32px);
  width: clamp(100px, 10vw, 160px);
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(30, 150, 210, 0.3));
  overflow: visible;
}
.flocke__dreh {
  transform-box: view-box;
  transform-origin: 50% 50%;
  transform: rotate(var(--dreh, 0deg));
}
.flocke .arm__stab, .flocke .arm__zweig {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__titel .zeile > span { animation: zeile-hoch 0.95s cubic-bezier(0.2, 0.75, 0.15, 1) both; }
  .hero__titel .zeile:nth-child(2) > span { animation-delay: 0.09s; }
  .hero__titel .zeile:nth-child(3) > span { animation-delay: 0.18s; }
  .hero__titel .zeile:nth-child(4) > span { animation-delay: 0.27s; }
  .neu-hinweis, .hero__lead, .hero__aktionen { animation: einblenden 0.8s ease both; }
  .neu-hinweis { animation-delay: 0.05s; }
  .hero__lead { animation-delay: 0.45s; }
  .hero__aktionen { animation-delay: 0.6s; }
  .stapel__heft { animation: faechern 1.1s cubic-bezier(0.2, 0.75, 0.2, 1) backwards; animation-delay: calc(0.95s - var(--pos) * 0.15s); }
  .stapel__heft--vorne { animation: bild-ein 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s backwards; }
  .stapel__heft--vorne::after { animation: glanz 1.1s ease 1.6s; }

  .flocke .arm__stab { animation: wachsen 0.85s cubic-bezier(0.2, 0.8, 0.25, 1) both; animation-delay: calc(0.25s + var(--i) * 0.08s); }
  .flocke .arm__zweig { animation: spriessen 0.6s cubic-bezier(0.3, 1.5, 0.5, 1) both; animation-delay: calc(0.75s + var(--i) * 0.08s); }
  .flocke .arm__zweig--klein { animation-delay: calc(0.9s + var(--i) * 0.08s); }
}
@keyframes zeile-hoch { from { transform: translateY(108%); } to { transform: none; } }
@keyframes einblenden { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes bild-ein { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
/* hinteren Hefte starten deckungsgleich hinter dem vorderen und fächern sich auf */
@keyframes faechern { from { translate: calc((var(--pos) - 2) * 34.09%) calc((2 - var(--pos)) * 23.3%); rotate: -5deg; opacity: 0; } 25% { opacity: 1; } }
@keyframes wachsen { from { transform: scaleY(0); } to { transform: none; } }
@keyframes spriessen { from { transform: scale(0); } to { transform: none; } }

@media (max-width: 959px) {
  /* Handy: Grafik zwischen Text und Bestellknopf */
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 36px 0 48px; }
  .hero__text { display: contents; }
  .neu-hinweis, .hero__titel, .hero__lead, .hero__aktionen { margin-inline: var(--rand); }
  .neu-hinweis { order: 1; justify-self: start; }
  .hero__titel { order: 2; }
  .hero__lead { order: 3; margin-bottom: 0; }
  .hero__bild { order: 4; aspect-ratio: 5 / 4; margin: 4px 0 0; }
  .hero__aktionen { order: 5; }
  .flocke { right: 12px; top: 0; width: 72px; }
}

/* ------------------------------------------------------------ Abschnitte allgemein */
.abschnitt { padding: var(--abstand) 0; }
.intro { font-size: 1.2rem; line-height: 1.55; color: var(--text-2); max-width: 36em; }

.bestellung__raster, .ablauf-block, .wartungsheft__raster, .vorschriften__innen, .kontakt__raster, .fuss__innen {
  max-width: calc(var(--breite) + 2 * var(--rand));
  margin: 0 auto;
  padding: 0 var(--rand);
}

/* ------------------------------------------------------------ Bestellung */
.bestellung { background: var(--papier); }
.bestellung__raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.bestellung__text h2 { margin-bottom: 0.45em; }

.heft-buehne {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1.02;
  border-radius: 10px;
  background:
    radial-gradient(120% 90% at 30% 20%, #FFFFFF 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(160deg, var(--frost-hell) 0%, var(--frost) 100%);
  overflow: hidden;
}
.heft {
  position: relative;
  width: min(62%, 340px);
  aspect-ratio: 1 / 1.414;
  container-type: inline-size;
  transform: rotate(-5deg) translateX(-4%);
}
.heft__blatt, .heft__deckel {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  box-shadow: 0 1px 1px rgba(20, 40, 50, 0.12), 0 26px 46px -22px rgba(16, 50, 70, 0.55);
}
.heft__blatt--hinten { background: #EEF0F0; transform: translate(16%, -7%) rotate(10deg); }
.heft__blatt--mitte { background: #F6F7F7; transform: translate(8%, -3.5%) rotate(5deg); }
.heft__deckel {
  background: linear-gradient(165deg, #FFFFFF 0%, #FBFCFC 55%, #EEF1F2 100%);
  padding: 10% 9%;
  color: #1E2326;
  overflow: hidden;
}
.heft__deckel::after {
  /* Lichtkante wie auf dem Foto */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0) 60%);
  transform: translateX(-100%);
  pointer-events: none;
}
.heft__titel {
  font-size: 8.3cqi;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 1.1em;
}
.heft__unter {
  font-size: 4.3cqi;
  line-height: 1.3;
  max-width: 88%;
  margin: 0;
}
.heft--lang .heft__titel { font-size: 6.1cqi; line-height: 1.1; }
.heft--lang .heft__unter { font-size: 3.9cqi; }
.heft__logo {
  position: absolute;
  left: 9%;
  bottom: 9%;
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.6em 0.9em;
  border: 1.5px dashed #8FA6B3;
  border-radius: 6px;
  color: #4F6875;
  font-size: 5cqi;
  font-weight: 600;
  opacity: 0;
  transform: scale(1.4) rotate(-8deg);
  transition: opacity 0.2s ease, transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.heft__logo svg { width: 1.6em; height: 1.6em; }
.bestellung:has(#v-logo:checked) .heft__logo { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .bestellung:has(#v-logo:checked) .heft__deckel::after { animation: glanz 0.9s ease 0.1s; }
}
@keyframes glanz { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.umschalter {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  margin: 0.4rem 0 1.25rem;
  padding: 4px;
  border: 1.5px solid var(--linie);
  border-radius: 8px;
  background: var(--eis);
}
.umschalter input { position: absolute; top: 0; left: 0; opacity: 0; width: 1px; height: 1px; margin: 0; }
.umschalter label {
  position: relative;
  z-index: 1;
  padding: 0.6em 1.2em;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-2);
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.2s ease;
}
.umschalter input:checked + label { color: var(--text); }
.umschalter input:focus-visible + label { outline: 3px solid var(--blau-text); outline-offset: 1px; }
.umschalter__marke {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 6px;
  background: var(--papier);
  box-shadow: 0 1px 2px rgba(20, 50, 70, 0.18), 0 4px 10px -4px rgba(20, 50, 70, 0.25);
  transition: transform 0.3s cubic-bezier(0.3, 0.9, 0.3, 1);
}
.umschalter:has(#v-logo:checked) .umschalter__marke { transform: translateX(100%); }

.variante-text { display: grid; margin-bottom: 1.75rem; max-width: 32em; }
.variante-text p { grid-area: 1 / 1; margin: 0; transition: opacity 0.25s ease; }
.variante-text__logo { visibility: hidden; opacity: 0; }
.bestellung:has(#v-logo:checked) .variante-text__standard { visibility: hidden; opacity: 0; }
.bestellung:has(#v-logo:checked) .variante-text__logo { visibility: visible; opacity: 1; }

.ablauf-block { margin-top: clamp(64px, 8vw, 112px); }
.ablauf__titel { margin-bottom: 1.5rem; }
.ablauf {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(20px, 3vw, 40px);
}
.ablauf li { border-top: 2px solid var(--text); padding-top: 1.1rem; }
.ablauf__nr {
  display: block;
  font-size: 3.25rem;
  font-stretch: 75%;
  font-weight: 600;
  line-height: 1;
  color: #1784BB;
  margin-bottom: 0.6rem;
}
.ablauf h4 { margin-bottom: 0.4rem; }
.ablauf p { color: var(--text-2); font-size: 1rem; }
.vignetten {
  margin: 1.5rem 0 0;
  max-width: 48em;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  background: var(--frost-hell);
  font-size: 1rem;
  color: var(--text-2);
}
.vignetten strong { color: var(--text); }

@media (max-width: 899px) {
  .bestellung__raster { grid-template-columns: 1fr; }
  .heft-buehne { aspect-ratio: 4 / 3.4; }
  .heft { width: min(46%, 260px); }
  .ablauf { grid-template-columns: 1fr; gap: 28px; }
}

/* ------------------------------------------------------------ Wartungsheft / Beispiel-Eintrag */
.wartungsheft__raster {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.wartungsheft__text h2 { margin-bottom: 0.6em; }
.wartungsheft__text p { max-width: 34em; }

.neu-box {
  margin-top: 2.25rem;
  padding: 1.25rem 1.4rem;
  background: var(--papier);
  border-left: 4px solid var(--gruen);
  border-radius: 0 6px 6px 0;
}
.neu-box h3 { font-size: 1.125rem; margin-bottom: 0.4rem; }
.neu-box p { margin: 0; font-size: 1rem; color: var(--text-2); }

.eintrag {
  margin: 0;
  padding: clamp(22px, 3vw, 36px);
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(20, 50, 70, 0.06), 0 30px 60px -36px rgba(16, 50, 70, 0.45);
}
.eintrag__kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.eintrag__kennung {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  padding: 0.15em 0.6em;
  border: 1px solid var(--linie);
  border-radius: 4px;
}
.eintrag__intro { font-size: 0.95rem; color: var(--text-2); margin: 0.5rem 0 1rem; }
.eintrag__felder { margin: 0; }
.feld {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 0.25rem 1rem;
  align-items: end;
  padding: 0.65rem 0 0.4rem;
  border-bottom: 1px solid #C9DCE6;
}
.feld dt { font-size: 0.85rem; line-height: 1.3; color: var(--text-2); }
.feld dd {
  margin: 0;
  font-family: var(--schrift-hand);
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--tinte);
}
.feld--neu { background: linear-gradient(90deg, var(--gruen-hell), rgba(230, 243, 218, 0)); margin: 0 -0.6rem; padding-left: 0.6rem; padding-right: 0.6rem; }
.marke-neu {
  display: inline-block;
  margin-left: 0.25em;
  padding: 0.05em 0.45em;
  border-radius: 4px;
  background: var(--gruen);
  color: #12200A;
  font-size: 0.72rem;
  font-weight: 650;
  white-space: nowrap;
}
.schrift { display: inline-block; }
.unterschrift { width: 170px; height: auto; margin-top: -6px; }
.unterschrift path { fill: none; stroke: var(--tinte); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.eintrag figcaption { margin-top: 1rem; font-size: 0.85rem; color: var(--text-2); }

/* Schreiben: nur wenn das Skript läuft und Bewegung erwünscht ist */
@media (prefers-reduced-motion: no-preference) {
  .js-bereit .eintrag .schrift { clip-path: inset(0 100% 0 0); transition: clip-path 0.75s cubic-bezier(0.5, 0.1, 0.4, 1); }
  .js-bereit .eintrag .unterschrift path { stroke-dasharray: 420; stroke-dashoffset: 420; transition: stroke-dashoffset 1.2s ease-in-out 2.9s; }
  .js-bereit .eintrag.ist-geschrieben .schrift { clip-path: inset(0 -2px 0 0); }
  .js-bereit .eintrag.ist-geschrieben .unterschrift path { stroke-dashoffset: 0; }
  .feld:nth-child(1) .schrift { transition-delay: 0.1s !important; }
  .feld:nth-child(2) .schrift { transition-delay: 0.5s !important; }
  .feld:nth-child(3) .schrift { transition-delay: 0.95s !important; }
  .feld:nth-child(4) .schrift { transition-delay: 1.3s !important; }
  .feld:nth-child(5) .schrift { transition-delay: 1.65s !important; }
  .feld:nth-child(6) .schrift { transition-delay: 2.05s !important; }
  .feld:nth-child(7) .schrift { transition-delay: 2.4s !important; }
}

@media (max-width: 959px) {
  .wartungsheft__raster { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .feld { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ Band «drei Sprachen» mit gezeichneten Heften */
.band {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  background: var(--frost-hell);
  color: var(--text-2);
}
.band__text {
  align-self: center;
  padding: clamp(48px, 7vw, 96px) clamp(28px, 4vw, 64px) clamp(48px, 7vw, 96px) max(var(--rand), calc((100vw - var(--breite)) / 2));
}
.band__text h2 { color: var(--text); margin-bottom: 0.5em; }
.band__text p { max-width: 26em; margin-bottom: 1.75rem; }
.band__bild {
  position: relative;
  align-self: center;
  padding: clamp(48px, 6vw, 96px) max(var(--rand), calc((100vw - var(--breite)) / 2)) clamp(48px, 6vw, 88px) clamp(8px, 2vw, 32px);
}
.band__bild::before {
  /* heller Schein hinter den Heften */
  content: "";
  position: absolute;
  inset: 8% 6% 14%;
  background: radial-gradient(closest-side, #FFFFFF 0%, rgba(255, 255, 255, 0.7) 45%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}
.reihe {
  position: relative;
  isolation: isolate;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2.4vw, 32px);
  max-width: 720px;
}
.reihe__eintrag {
  /* --pos: 0, 1, 2 von links nach rechts */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 2vw, 22px);
  min-width: 0;
}
.reihe__eintrag .deckel {
  width: 100%;
  rotate: calc((var(--pos) - 1) * 2.5deg);
  transition: translate 0.4s cubic-bezier(0.3, 0.9, 0.3, 1), rotate 0.4s cubic-bezier(0.3, 0.9, 0.3, 1), box-shadow 0.4s ease;
}
.reihe__eintrag:nth-child(2) .deckel { translate: 0 -5%; }
.reihe__sprache {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.reihe__code {
  padding: 0.15em 0.45em;
  border-radius: 4px;
  background: var(--blau);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
@media (hover: hover) {
  .reihe__eintrag:hover .deckel {
    translate: 0 -10px;
    rotate: 0deg;
    box-shadow: 0 1px 1px rgba(20, 40, 50, 0.12), 0 40px 60px -26px rgba(16, 50, 70, 0.55);
  }
}
@media (prefers-reduced-motion: no-preference) {
  /* Die Hefte steigen nacheinander auf, sobald das Band sichtbar wird */
  .js-bereit .reihe__eintrag {
    transition: opacity 0.7s ease, translate 1s cubic-bezier(0.2, 0.75, 0.2, 1);
    transition-delay: calc(var(--pos) * 0.15s);
  }
  .js-bereit .reihe:not(.ist-sichtbar) .reihe__eintrag { opacity: 0; translate: 0 56px; }
  .reihe.ist-sichtbar .reihe__eintrag:first-child .deckel::after { animation: glanz 1.1s ease 0.9s; }
}
@media (max-width: 959px) {
  /* Handy: Grafik zwischen Text und Bestellknopf */
  .band { grid-template-columns: 1fr; padding: 56px 0 64px; }
  .band__text { display: contents; }
  .band__text h2, .band__text p, .band__text .knopf { margin-inline: var(--rand); }
  .band__text h2 { order: 1; }
  .band__text p { order: 2; margin-bottom: 0; }
  .band__bild { order: 3; padding: 36px var(--rand) 32px; }
  .band__text .knopf { order: 4; justify-self: start; }
}

/* ------------------------------------------------------------ Vorschriften */
.vorschriften { background: var(--papier); }
.vorschriften__innen h2 { margin-bottom: 0.45em; }
.vollzugshilfe {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  max-width: 58em;
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding: clamp(24px, 3vw, 40px);
  background: var(--eis);
  border-radius: 10px;
}
.vollzugshilfe__titelbild { display: block; }
.vollzugshilfe__titelbild img {
  width: clamp(120px, 15vw, 190px);
  height: auto;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(16, 30, 40, 0.2), 0 18px 30px -14px rgba(16, 50, 70, 0.55);
  transition: transform 0.25s ease;
}
.vollzugshilfe__titelbild:hover img { transform: translateY(-3px) rotate(-1deg); }
.vollzugshilfe h3 { font-size: 1.4rem; margin-bottom: 0.35rem; }
.vollzugshilfe__werk { font-weight: 560; color: var(--text); margin-bottom: 0.6rem; }
.vollzugshilfe__text p { max-width: 36em; }
.vollzugshilfe__meta { font-size: 0.9rem; color: var(--text-2); }
@media (max-width: 599px) {
  .vollzugshilfe { grid-template-columns: 1fr; }
  .vollzugshilfe__titelbild img { width: 140px; }
}
.pflichten { margin: clamp(32px, 4vw, 56px) 0 0; }
.pflicht {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 2.4fr);
  gap: 0.5rem clamp(20px, 3vw, 48px);
  padding: 1.75rem 0;
  border-top: 1px solid var(--linie);
}
.pflicht:last-child { border-bottom: 1px solid var(--linie); }
.pflicht dt {
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 560;
  font-stretch: 86%;
  line-height: 1.1;
  letter-spacing: -0.015em;
  hyphens: manual;
}
.pflicht dd { margin: 0; }
.pflicht__text { max-width: 38em; }
.pflicht__ref { font-size: 0.9rem; color: var(--text-2); padding-top: 0.3rem; }
.dokumente__titel { margin: clamp(48px, 6vw, 80px) 0 0.75rem; }
.dokumente { list-style: none; margin: 0; padding: 0; max-width: 56em; }
.dokumente li { border-bottom: 1px solid var(--linie); }
.dokumente a {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 1rem;
  padding: 1rem 0;
  color: var(--text);
  text-decoration: none;
}
.dok__titel { font-weight: 560; grid-column: 1; }
.dok__meta { grid-column: 1; font-size: 0.9rem; color: var(--text-2); }
.dokumente .i-extern { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 1.1rem; height: 1.1rem; color: var(--blau-text); transition: transform 0.2s ease; }
.dokumente a:hover .dok__titel { color: var(--blau-text); text-decoration: underline; text-underline-offset: 0.18em; }
.dokumente a:hover .i-extern { transform: translate(2px, -2px); }
.hinweis { margin-top: 1.5rem; font-size: 0.9rem; color: var(--text-2); }

@media (max-width: 899px) {
  .pflicht { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ Kontakt */
.kontakt { background: var(--frost-hell); }
.kontakt__raster {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.kontakt__text h2 { margin-bottom: 0.45em; }
.kontakt__text > p:first-of-type { color: var(--text-2); max-width: 26em; margin-bottom: 2rem; }
address { font-style: normal; margin: 1.5rem 0 2rem; color: var(--text-2); }
.kontakt__label { font-size: 0.95rem; color: var(--text-2); margin-bottom: 0.2rem; }
.telefon {
  display: inline-block;
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  font-stretch: 78%;
  font-weight: 520;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 1.5rem;
  font-variant-numeric: tabular-nums;
}
.telefon:hover { color: var(--blau-text); }
.kontakt__email {
  display: inline-block;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 560;
  color: var(--text);
  text-decoration-color: var(--linie);
}
.kontakt__email:hover { color: var(--blau-text); text-decoration-color: currentColor; }
@media (max-width: 899px) {
  .kontakt__raster { grid-template-columns: 1fr; }
}

/* Formular */
.formular {
  position: relative;
  background: var(--papier);
  border-radius: 12px;
  padding: clamp(22px, 3.4vw, 44px);
  box-shadow: 0 1px 2px rgba(20, 50, 70, 0.08), 0 28px 56px -32px rgba(16, 50, 70, 0.4);
}
.formular__kopf {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 16px;
  margin-bottom: 1.4rem;
}
.formular__kopf h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); font-stretch: 88%; }
.formular__pflicht { margin: 0; font-size: 0.9rem; color: var(--text-2); }
.stern { color: #C8332B; font-weight: 700; }
.formular__felder {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.eingabe { grid-column: span 3; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.eingabe--breit { grid-column: 1 / -1; }
.eingabe--plz { grid-column: span 2; }
.eingabe--ort { grid-column: span 4; }
.eingabe label { font-size: 0.95rem; font-weight: 560; line-height: 1.3; }
.eingabe input, .eingabe textarea {
  width: 100%;
  margin: 0;
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text);
  padding: 0.7em 0.85em;
  border: 1.5px solid var(--linie);
  border-radius: 8px;
  background: var(--eis);
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.eingabe textarea { resize: vertical; min-height: 8.5em; }
.eingabe input:hover, .eingabe textarea:hover { border-color: #B4C6D0; }
.eingabe input:focus, .eingabe textarea:focus {
  outline: none;
  border-color: var(--blau-text);
  background: var(--papier);
  box-shadow: 0 0 0 3px rgba(15, 110, 158, 0.2);
}
.eingabe [aria-invalid="true"] { border-color: #C8332B; background: #FFF6F5; }
.eingabe [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(200, 51, 43, 0.18); }
.eingabe__fehler { margin: 0; font-size: 0.875rem; font-weight: 540; color: #B42318; }
.eingabe--honig {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.formular__hinweis { margin: 1.25rem 0; font-size: 0.9rem; color: var(--text-2); max-width: 40em; }
.formular__fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.knopf--senden {
  background: var(--text);
  color: #FFFFFF;
  padding: 0.95em 1.5em;
}
.knopf--senden:hover { background: #0E1214; transform: translateY(-1px); }
.knopf--senden[disabled] { cursor: progress; transform: none; background: #48535A; }
.knopf--senden.ist-am-senden::before {
  content: "";
  width: 1em;
  height: 1em;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: drehen 0.8s linear infinite;
}
@keyframes drehen { to { transform: rotate(360deg); } }
.formular__status { margin: 0; font-size: 0.95rem; font-weight: 540; max-width: 34em; }
.formular__status--fehler { color: #B42318; }
.formular__status a { color: inherit; }
.formular__danke {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.6rem;
  padding: 32px;
  border-radius: 12px;
  background: var(--papier);
  text-align: center;
}
.formular__danke[hidden] { display: none; }
.formular__danke:focus { outline: none; }
.formular__danke h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-stretch: 86%; }
.formular__danke p { color: var(--text-2); max-width: 24em; margin: 0; }
.danke__haken { width: 64px; height: 64px; margin-bottom: 0.4rem; }
.danke__haken circle { fill: var(--gruen-hell); stroke: var(--gruen); stroke-width: 2.5; }
.danke__haken path { fill: none; stroke: var(--gruen-dunkel); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .formular__danke:not([hidden]) { animation: einblenden 0.5s ease both; }
  .formular__danke:not([hidden]) .danke__haken circle { stroke-dasharray: 151; animation: zeichnen-kreis 0.7s ease both; }
  .formular__danke:not([hidden]) .danke__haken path { stroke-dasharray: 40; animation: zeichnen-haken 0.45s ease 0.5s both; }
}
@keyframes zeichnen-kreis { from { stroke-dashoffset: 151; fill-opacity: 0; } to { stroke-dashoffset: 0; fill-opacity: 1; } }
@keyframes zeichnen-haken { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
@media (max-width: 599px) {
  .eingabe { grid-column: 1 / -1; }
  .eingabe--plz { grid-column: span 2; }
  .eingabe--ort { grid-column: span 4; }
}

/* ------------------------------------------------------------ Fuss */
.fuss {
  background: var(--graphit);
  color: var(--graphit-text);
  font-size: 0.95rem;
  padding: 56px 0 48px;
}
.fuss__innen {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 32px clamp(24px, 4vw, 64px);
}
.fuss__marke { display: flex; gap: 14px; align-items: flex-start; }
.fuss__marke img { width: 48px; height: 48px; flex: none; }
.fuss__marke strong { color: #FFFFFF; font-size: 1.1rem; }
.fuss p { margin: 0; }
.fuss a { color: #FFFFFF; text-decoration: none; }
.fuss a:hover { text-decoration: underline; }
.fuss__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.fuss__sprachen { display: flex; flex-wrap: wrap; gap: 0 1rem; margin-top: 0.4rem; }
.fuss__sprachen [aria-current] { color: #FFFFFF; font-weight: 600; }
.fuss .sprachwahl__fehlt { opacity: 0.55; }
.fuss__copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.85rem; }
@media (max-width: 899px) {
  .fuss__innen { grid-template-columns: 1fr; }
  .fuss { padding-bottom: 112px; }
}

/* ------------------------------------------------------------ Bestell-Leiste (Mobil) */
.bestellleiste { display: none; }
@media (max-width: 899px) {
  .bestellleiste {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 10px var(--rand) calc(10px + env(safe-area-inset-bottom));
    background: rgba(242, 246, 248, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--linie);
    transform: translateY(110%);
    transition: transform 0.35s cubic-bezier(0.3, 0.9, 0.3, 1);
  }
  .bestellleiste.ist-sichtbar { transform: none; }
  .bestellleiste .knopf { width: 100%; justify-content: center; padding: 0.9em 1em; }
}

/* ------------------------------------------------------------ Impressum */
.rechtliches {
  max-width: calc(46em + 2 * var(--rand));
  margin: 0 auto;
  padding: clamp(40px, 8vw, 96px) var(--rand) var(--abstand);
}
.rechtliches h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); font-stretch: 84%; margin: 0 0 0.6em; }
.rechtliches h1:not(:first-of-type) { margin-top: 1.6em; }
.rechtliches h2 { font-size: 1.25rem; font-stretch: 100%; letter-spacing: 0; margin: 1.6em 0 0.4em; }

/* ------------------------------------------------------------ Bewegung reduzieren */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
