/* mein-hartmann.de – Stil der früheren WordPress-Seite: weiß, schwarze Kacheln,
   Markenblau für Aktionen, Funnel Display für Überschriften (lokal, SIL OFL).
   Grundstil für alle Seiten: Gerüst (Kopf, Fuß), Knöpfe, Typografie, Karten,
   Icons, Tabellen, Formulare, Druck. Seitenmodule ergänzen eigene Dateien
   (vertrauen.css, recht.css, cloudserver.css) mit eigenem Präfix. */

@font-face {
  font-family: 'Funnel Display';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/funnel-display-latin.woff2?v=2) 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: 'Funnel Display';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/funnel-display-latin-ext.woff2?v=2) 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --blau: #003f88;
  --blau-hell: #00509d;
  --blau-dunkel: #002f66;
  --blau-zart: #e8eff8;
  --blau-hauch: #f3f7fc;
  --text: #16181a;
  --text-2: #5c5f63;
  --linie: #e4e7ea;
  --linie-stark: #c9ced4;
  --feldrand: #7b838c;
  --flaeche: #f4f5f6;
  --dunkel: #0b0c0e;
  --weiss: #ffffff;
  --fehler: #b42318;
  --fehler-text: #7c1d1d;
  --fehler-flaeche: #fdf1f1;
  --fehler-linie: #f0c4c4;
  --fokus: var(--blau-hell);
  --radius: 18px;
  --radius-klein: 10px;
  --schatten: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
  --schatten-hoch: 0 2px 4px rgba(16, 24, 40, .06), 0 14px 36px rgba(16, 24, 40, .10);
  --kopf-h: 72px;
  --titel: 'Funnel Display', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fliess: 'Funnel Display', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
}

/* ---------------------------------------------------------------- Grundlagen */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--kopf-h) + 12px); }
body {
  margin: 0; background: var(--weiss); color: var(--text);
  font-family: var(--fliess); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blau); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blau-hell); text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--titel); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--text); text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.25; }
h4 { font-size: 1.08rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
p, li, dd { text-wrap: pretty; }
strong, b { font-weight: 700; }
small { font-size: .875em; }
hr { border: 0; border-top: 1px solid var(--linie); margin: 32px 0; }
code, kbd, samp { font-family: var(--mono); font-size: .9em; background: var(--flaeche); border-radius: 6px; padding: .1em .35em; }
abbr[title] { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
::selection { background: #cfe0f5; color: var(--text); }

/* Fokus: immer sichtbar (3 px, Markenblau); auf dunklen Flächen weiß (siehe unten). */
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; }
:where(a, summary):focus-visible { border-radius: 6px; }
:focus:not(:focus-visible) { outline: none; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--dunkel); color: #fff; padding: 12px 18px; border-radius: 10px;
  font: 600 15px/1.2 var(--titel); text-decoration: none;
}
.skip:focus { left: 8px; color: #fff; }

/* Nur für Screenreader sichtbar */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- Icons */
/* icon() aus src/icons.ts: 24×24, Strich in currentColor. Größe per CSS oder
   per width/height-Attribut (ikon() in layout.ts); das Attribut hat Vorrang. */
.icon { display: inline-block; flex-shrink: 0; vertical-align: middle; }
.icon:not([width]) { width: 24px; height: 24px; }
.icon-klein:not([width]) { width: 18px; height: 18px; }
.icon-gross:not([width]) { width: 32px; height: 32px; }
.icon-blau { color: var(--blau); }

/* ---------------------------------------------------------------- Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: var(--radius-klein); border: 2px solid transparent;
  font: 600 16px/1.2 var(--titel); text-decoration: none; text-align: center; cursor: pointer; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline-offset: 3px; }
.btn .icon:not([width]) { width: 20px; height: 20px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 17px; }
.btn-block { width: 100%; }
/* Weiß auf Markenblau 10,6 : 1, beim Überfahren 8,2 : 1 */
.btn-primary { background: var(--blau); color: #fff; box-shadow: 0 1px 2px rgba(0, 47, 102, .18); }
.btn-primary:hover { background: var(--blau-hell); color: #fff; box-shadow: 0 4px 14px rgba(0, 63, 136, .22); }
.btn-primary:active { background: var(--blau-dunkel); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--text); }
.btn-ghost:hover { background: var(--text); color: #fff; }
.btn-light { background: #fff; color: var(--dunkel); }
.btn-light:hover { background: #e9ecef; color: var(--dunkel); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .85); }
.btn-outline-light:hover { background: #fff; color: var(--dunkel); border-color: #fff; }
/* Gesperrte Knöpfe: Aussehen legt das Modul fest (z. B. grau), hier nur das Verhalten */
.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; box-shadow: none; transform: none; }
a.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; }
.knoepfe-links { justify-content: flex-start; }

/* Auf dunklen und blauen Flächen: weißer Fokusrahmen statt Blau auf Blau */
.band, .cta, .leistungen, .seitenkopf.dunkel { --fokus: #fff; }

/* ---------------------------------------------------------------- Kopf */
.kopf {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--linie);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .kopf { background: #fff; }
}
.kopf-in { display: flex; align-items: center; gap: 28px; height: var(--kopf-h); }
.marke {
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
  color: var(--text); text-decoration: none; font: 700 23px/1 var(--titel); letter-spacing: -.02em;
}
.marke:hover { color: var(--text); }
.marke:focus-visible { outline-offset: 6px; }
/* Markenzeichen (LOGO_SVG aus src/marke.ts): abgerundetes Quadrat mit H */
.logo-mark { width: 32px; height: 32px; flex-shrink: 0; }
.logo-grund { fill: var(--blau); transition: fill .15s; }
.logo-h { fill: #fff; }
.marke:hover .logo-grund { fill: var(--blau-hell); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  position: relative; padding: 9px 12px; border-radius: 8px; color: var(--text-2); text-decoration: none;
  font: 600 15px/1 var(--titel); transition: color .15s, background-color .15s;
}
.nav a:hover { color: var(--text); background: var(--flaeche); }
.nav a[aria-current="page"] { color: var(--blau); }
.nav a[aria-current="page"]::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: -3px; height: 2px;
  border-radius: 2px; background: currentColor;
}
.konto { display: flex; gap: 10px; }
.sprache-kopf {
  margin-left: 4px; display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--linie-stark); color: var(--text); font-size: 14px; font-weight: 600;
  letter-spacing: .04em; text-decoration: none;
}
.sprache-kopf:hover { background: var(--flaeche); color: var(--blau); }
.sprache-kopf:focus-visible { outline: 2px solid var(--fokus); outline-offset: 2px; }
.menu-sprache { display: block; margin-top: 14px; text-align: center; font-weight: 600; }
.konto .btn { min-height: 40px; padding: 0 16px; font-size: 15px; }
.menu { display: none; }

/* Sechs Punkte in der Navigation (seit Intelligence): Der Kopf wird in zwei
   Stufen enger und wechselt unter 1000 px zum Menü, damit nichts umbricht
   (geprüft bis 1001 px mit den deutschen Knöpfen, die breiter sind). */
@media (max-width: 1180px) {
  .kopf-in { gap: 18px; }
  .nav { gap: 0; }
  .nav a { padding: 9px 9px; }
  .nav a[aria-current="page"]::after { left: 9px; right: 9px; }
  .konto { gap: 8px; }
  .konto .btn { padding: 0 12px; }
}
@media (max-width: 1060px) {
  .kopf-in { gap: 12px; }
  .nav a { padding: 9px 7px; }
  .nav a[aria-current="page"]::after { left: 7px; right: 7px; }
  .sprache-kopf { margin-left: 0; }
  .konto { gap: 6px; }
  .konto .btn { padding: 0 10px; }
}

@media (max-width: 1000px) {
  .nav, .konto { display: none; }
  .sprache-kopf { margin-left: auto; }
  .menu { display: block; margin-left: 8px; }
  .menu summary {
    list-style: none; width: 46px; height: 46px; border-radius: 10px; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    transition: background-color .15s;
  }
  .menu summary:hover { background: var(--flaeche); }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .menu[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu[open] summary span:nth-child(2) { opacity: 0; }
  .menu[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menu-panel {
    position: absolute; left: 0; right: 0; top: var(--kopf-h); background: #fff;
    border-bottom: 1px solid var(--linie); box-shadow: var(--schatten-hoch); padding: 8px 24px 24px;
    max-height: calc(100vh - var(--kopf-h)); max-height: calc(100dvh - var(--kopf-h)); overflow-y: auto; overscroll-behavior: contain;
  }
  .menu-panel nav { display: flex; flex-direction: column; }
  .menu-panel nav a {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 15px 4px; border-bottom: 1px solid var(--linie); color: var(--text); text-decoration: none; font: 600 18px/1.2 var(--titel);
  }
  .menu-panel nav a::after {
    content: ''; width: 8px; height: 8px; margin-right: 4px; flex-shrink: 0;
    border-top: 2px solid var(--text-2); border-right: 2px solid var(--text-2); transform: rotate(45deg);
  }
  .menu-panel nav a:hover { color: var(--blau); }
  .menu-panel nav a[aria-current="page"] { color: var(--blau); }
  .menu-panel nav a[aria-current="page"]::after { border-color: var(--blau); }
  .menu-konto { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
}

/* ---------------------------------------------------------------- Kopfbereiche */
.badge {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; padding: 7px 14px;
  border-radius: 999px; background: var(--blau-zart); color: var(--blau-dunkel); font: 600 14.5px/1.2 var(--titel);
}
.seitenkopf.dunkel .badge { background: rgba(255, 255, 255, .12); color: #fff; }
.held, .seitenkopf { text-align: center; padding: clamp(56px, 10vw, 112px) 0 clamp(40px, 6vw, 72px); }
.held h1, .seitenkopf h1 { max-width: 1000px; margin-left: auto; margin-right: auto; text-wrap: balance; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-2); max-width: 760px; margin: 0 auto 0.6em; }
.held-konto { margin-top: 26px; color: var(--text-2); font-size: 15px; }
.seitenkopf.dunkel { background: var(--dunkel); color: #fff; }
.seitenkopf.dunkel h1 { color: #fff; }
.seitenkopf.dunkel .lead { color: #c9ccd1; }
.seitenkopf.dunkel a:not(.btn) { color: #cfe1ff; }
.klein-kopf { padding: 56px 0 8px; text-align: left; }
.klein-kopf h1 { max-width: none; margin: 0; font-size: clamp(2rem, 4vw, 3rem); }

/* ---------------------------------------------------------------- Leistungen (01/02/03) */
.leistungen {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  background: var(--dunkel); color: #fff; border-radius: var(--radius); padding: clamp(28px, 4vw, 48px);
}
.leistungen article { text-align: center; padding: 8px 12px; }
.leistungen .nr { display: block; font: 700 34px/1 var(--titel); margin-bottom: 20px; }
.leistungen h2 { color: #fff; font-size: 1.25rem; }
.leistungen p { color: #b9bcc1; font-size: 15.5px; }
.pfeil { color: #fff; font-weight: 600; }
.pfeil:hover { color: #cfe1ff; }

/* ---------------------------------------------------------------- Tarife */
.tarife { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
/* Ein, zwei oder vier Tarife (Anzahl kommt aus dem Produktkatalog): mittig, so breit wie bei dreien */
@media (min-width: 921px) {
  .tarife-1, .tarife-2, .tarife-4 { justify-content: center; }
  .tarife-1 { grid-template-columns: minmax(0, 368px); }
  .tarife-2, .tarife-4 { grid-template-columns: repeat(2, minmax(0, 368px)); }
}
.tarif {
  position: relative; display: flex; flex-direction: column; text-align: center;
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 40px 32px 32px;
  transition: box-shadow .2s, border-color .2s;
}
.tarif:hover { box-shadow: var(--schatten); border-color: var(--linie-stark); }
.tarif-top { background: var(--flaeche); border-color: transparent; }
.tarif-top:hover { border-color: transparent; }
.tarif-band {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--blau); color: #fff; font: 600 13px/1 var(--titel); padding: 7px 14px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 63, 136, .25);
}
.tarif h3 { font-size: 1.35rem; line-height: 1.25; }
.tarif-unter { color: var(--text-2); font-size: 15px; min-height: 3.2em; }
.preis { margin: 6px 0 20px; }
.preis strong { display: block; font: 700 clamp(2.8rem, 5vw, 3.6rem)/1 var(--titel); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.preis span { color: var(--text-2); font-size: 15px; }
.tarif .haken { text-align: left; margin: 0 auto 28px; padding-top: 22px; border-top: 1px solid var(--linie); width: 100%; }
.tarif-aktionen { margin-top: auto; display: grid; gap: 10px; }
.haken { list-style: none; padding: 0; }
.haken li { position: relative; padding-left: 30px; margin: 9px 0; font-size: 15.5px; }
.haken li::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--blau) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
}
.haken a { color: inherit; }
.hinweis-zentriert { text-align: center; padding-top: 48px; }
.hinweis-zentriert p { color: var(--text-2); max-width: 640px; margin: 20px auto 0; }

/* ---------------------------------------------------------------- Bänder */
.band { background: var(--blau); color: #fff; margin-top: clamp(56px, 8vw, 96px); }
.band-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 44px; padding-bottom: 44px; }
.band h2 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.band p { color: #d6e4f7; margin: 0; max-width: 620px; }
.band a:not(.btn) { color: #fff; }
.band .knoepfe { margin-top: 0; flex-shrink: 0; }
.cta {
  text-align: center; color: #fff; border-radius: var(--radius); margin-top: clamp(56px, 8vw, 96px);
  padding: clamp(48px, 8vw, 104px) clamp(20px, 5vw, 64px);
  background: linear-gradient(180deg, #2a2d33 0%, #111317 55%, #000 100%);
}
.cta h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.6rem); max-width: 820px; margin: 0 auto 18px; text-wrap: balance; }
.cta p { color: #c3c6cb; max-width: 680px; margin: 0 auto; }
.cta a:not(.btn) { color: #fff; }

/* ---------------------------------------------------------------- Karten, Text */
.kontakt-karten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.karte { border: 1px solid var(--linie); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; align-items: flex-start; }
.karte h2 { font-size: 1.35rem; }
.karte p { color: var(--text-2); }
.karte .btn { margin-top: auto; }
.karte .knoepfe { margin-top: auto; }
.karte .btn + .klein { margin-top: 14px; }
/* Ganze Karte als Link */
a.karte { color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
a.karte:hover { color: var(--text); border-color: var(--blau); box-shadow: var(--schatten); }
.klein { font-size: 14px; color: var(--text-2); }
.schritte { padding-top: 56px; max-width: 860px; }
.schritte ol { padding-left: 1.2em; }
.schritte li { margin: 12px 0; }
.text { max-width: 820px; padding-top: 16px; padding-bottom: 24px; }
.text h2 { font-size: 1.3rem; margin-top: 1.8em; }
.text h3 { font-size: 1.12rem; margin-top: 1.5em; }
.text ul, .text ol { padding-left: 1.2em; }
.text li { margin: 6px 0; }
.text li::marker { color: var(--text-2); }

/* ---------------------------------------------------------------- Tabellen */
/* Vergleichstabellen: <div class="tabelle-rahmen"><table class="tabelle">…
   Der Rahmen scrollt auf schmalen Bildschirmen waagerecht, die Seite nicht. */
.tabelle-rahmen {
  width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--linie); border-radius: var(--radius); background: #fff;
}
.tabelle { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.tabelle caption { caption-side: top; text-align: left; font: 700 1.1rem/1.3 var(--titel); padding: 0 0 12px; }
.tabelle th, .tabelle td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--linie); }
.tabelle thead th {
  vertical-align: bottom; background: var(--flaeche); color: var(--text);
  font: 700 14.5px/1.3 var(--titel); letter-spacing: .01em; white-space: nowrap;
}
.tabelle tbody th { font-weight: 600; }
.tabelle tbody tr:last-child > * { border-bottom: 0; }
.tabelle tbody tr:hover > * { background: var(--blau-hauch); }
.tabelle .zahl, .tabelle .rechts { text-align: right; white-space: nowrap; }
.tabelle .mitte { text-align: center; }
.tabelle .hervor { background: var(--blau-hauch); }
.tabelle thead .hervor { background: var(--blau-zart); color: var(--blau); }
.tabelle tfoot td, .tabelle tfoot th { border-top: 2px solid var(--linie-stark); border-bottom: 0; font-weight: 700; }
.tabelle-rahmen > .tabelle caption { padding: 16px 16px 12px; }

/* ---------------------------------------------------------------- Formulare */
/* Grundstil für Formulare mit .formular bzw. Feldern in .feld:
   <div class="feld"><label for="…">…</label><input …><p class="hinweis">…</p></div>
   Fehler: .fehler als Kasten über dem Formular oder als Zeile im .feld,
   das Feld selbst mit aria-invalid="true". Honigtopf: <div class="hp" aria-hidden="true">.
   Stile mit :where() haben keine Spezifität; Seitenmodule überschreiben sie leicht. */
.formular { display: block; }
.formular fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.feld { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.feld > label, .feld > legend, .formular legend {
  display: block; margin: 0 0 6px; padding: 0; color: var(--text);
  font: 600 15px/1.35 var(--titel);
}
.feld-zeile { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 16px; }
.optional-hinweis { font-weight: 400; color: var(--text-2); }

:where(.formular, .feld) :where(input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="reset"], [type="hidden"], [type="range"], [type="color"], [type="file"], [type="image"]), textarea, select) {
  display: block; width: 100%; min-height: 48px; margin: 0; padding: 11px 14px;
  font: inherit; font-size: 16px; line-height: 1.4; color: var(--text);
  background: #fff; border: 1.5px solid var(--feldrand); border-radius: var(--radius-klein);
  transition: border-color .15s, box-shadow .15s;
}
:where(.formular, .feld) :where(textarea) { min-height: 140px; resize: vertical; }
:where(.formular, .feld) :where(select) {
  appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316181a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center/18px no-repeat;
}
:where(.formular, .feld) :where(input, textarea, select):hover { border-color: #5f666e; }
:where(.formular, .feld) :is(input, textarea, select):focus-visible {
  border-color: var(--blau); outline: 3px solid rgba(0, 80, 157, .32); outline-offset: 1px; box-shadow: 0 0 0 1px var(--blau);
}
:where(.formular, .feld) :where(input, textarea, select):disabled { background: var(--flaeche); color: var(--text-2); cursor: not-allowed; }
:where(.formular, .feld) :where(input, textarea)::placeholder { color: #80868d; opacity: 1; }
:where(.formular, .feld) :where([aria-invalid="true"], :user-invalid) { border-color: var(--fehler); }
:where(.formular, .feld) :where(input[type="checkbox"], input[type="radio"]) {
  width: 18px; height: 18px; margin: 3px 0 0; flex-shrink: 0; accent-color: var(--blau); cursor: pointer;
}
/* Auswahl mit Text daneben: <label class="feld-option"><input type="checkbox"> <span>…</span></label>
   (auch direkt in .feld, daher stärker als .feld > label) */
.feld-option, .feld > .feld-option {
  display: flex; align-items: flex-start; gap: 10px; margin: 8px 0; cursor: pointer;
  font: 400 16px/1.45 var(--fliess); letter-spacing: normal;
}
.formular .btn:disabled { opacity: .5; }

/* Hilfetext unter einem Feld oder Absatz */
.hinweis { display: block; margin: 6px 0 0; color: var(--text-2); font-size: 14.5px; line-height: 1.5; font-weight: 400; }
/* Fehler: als Kasten (über dem Formular) … */
.fehler {
  display: flex; gap: 10px; align-items: flex-start; margin: 0 0 22px; padding: 14px 16px;
  border: 1px solid var(--fehler-linie); border-radius: 12px; background: var(--fehler-flaeche);
  color: var(--fehler-text); font-size: 15.5px; line-height: 1.5;
}
.fehler::before {
  content: ''; flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5h.01'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5h.01'/%3E%3C/svg%3E") center/contain no-repeat;
}
.fehler a { color: inherit; font-weight: 600; }
/* … oder als Zeile direkt im Feld */
.feld .fehler { display: flex; gap: 6px; margin: 6px 0 0; padding: 0; border: 0; background: none; color: var(--fehler); font-size: 14.5px; font-weight: 600; }
.feld .fehler::before { width: 16px; height: 16px; margin-top: 2px; }
/* Honigtopf gegen Formular-Roboter: für Menschen unsichtbar, nicht fokussierbar (tabindex="-1") */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- Spam-Schutz (schutz.js) */
/* Turnstile im Kontaktformular (turnstileFeld in src/layout.ts). Platz nur
   reservieren, wenn schutz.js läuft (html.schutz-aktiv); ohne JavaScript steht
   dort nur der <noscript>-Hinweis. Gesperrte Formulare (data-portal-gesperrt)
   zeigen kein Widget. */
.v-pruefung { margin: 4px 0 16px; }
.v-pruefung noscript p { margin: 0; }
.schutz-aktiv .v-pruefung .cf-turnstile { min-height: 65px; }
.cf-turnstile { max-width: 100%; }
form[data-portal-gesperrt] .v-pruefung { display: none; }
.schutz-hinweis { margin: 8px 0 0; }
.schutz-hinweis[hidden] { display: none; }

/* Dialog „E-Mail-Adresse anzeigen“: <dialog> mit showModal, in alten Browsern
   ein Overlay (.email-dialog-ueberlagerung > .email-dialog-ersatz). Die Karte
   füllt den Dialog ganz aus, damit ein Klick aufs <dialog> selbst die
   Abdunklung meint. Auf dem Handy als Blatt am unteren Rand. */
html.email-dialog-offen { overflow: hidden; }
.email-dialog {
  width: 100%; max-width: 460px; max-height: calc(100% - 32px); margin: auto; padding: 0;
  border: 0; border-radius: var(--radius); background: #fff; color: var(--text);
  box-shadow: 0 4px 10px rgba(16, 24, 40, .10), 0 24px 64px rgba(16, 24, 40, .24);
  overflow: auto; overscroll-behavior: contain;
}
dialog.email-dialog { max-width: min(460px, calc(100% - 32px)); }
dialog.email-dialog[open] { animation: email-dialog-auf .18s ease-out; }
.email-dialog::backdrop { background: rgba(11, 12, 14, .55); }
.email-dialog-ueberlagerung {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(11, 12, 14, .55);
}
.email-dialog-ueberlagerung[hidden] { display: none; }
.email-dialog-ersatz { position: relative; max-height: 100%; }
.email-dialog-ersatz:focus { outline: none; }
.email-dialog [hidden] { display: none !important; }
.email-dialog-karte { padding: 24px 28px 28px; }
.email-dialog-kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.email-dialog-titel { margin: 6px 0 8px; font-size: 1.4rem; line-height: 1.2; }
.email-dialog-zu {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin: 0 -10px 0 0; padding: 0; border: 0; border-radius: 999px;
  background: transparent; color: var(--text-2); cursor: pointer; transition: background-color .15s, color .15s;
}
.email-dialog-zu:hover { background: var(--flaeche); color: var(--text); }
.email-dialog-text { margin: 0 0 16px; color: var(--text-2); font-size: 15.5px; }
.email-dialog-pruefung { min-height: 65px; max-width: 100%; }
.email-dialog-status { margin: 10px 0 0; color: var(--text-2); font-size: 14.5px; }
.email-dialog-status:empty { display: none; }
.email-dialog-ergebnis { margin-top: 4px; }
.email-dialog-label { margin: 0 0 8px; color: var(--text-2); font-size: 14.5px; }
.email-dialog-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.email-dialog-adresse {
  flex: 1 1 200px; min-width: 0; font: 700 1.2rem/1.3 var(--titel); letter-spacing: -.01em;
  overflow-wrap: anywhere;
}
.email-dialog-kopieren { flex: 0 0 auto; }
.email-dialog-termin { margin-top: 2px; }
.email-dialog-fehler {
  margin-top: 14px; padding: 14px 16px; border: 1px solid var(--fehler-linie); border-radius: 12px;
  background: var(--fehler-flaeche); color: var(--fehler-text); font-size: 15.5px; line-height: 1.5;
}
.email-dialog-fehler p { margin: 0 0 10px; }
.email-dialog-fehler a { color: inherit; font-weight: 600; }
.email-dialog-fehler .btn { margin-top: 4px; }
/* Nach dem Anzeigen: Links mit der Adresse brechen notfalls um (lange Adresse auf schmalen Knöpfen). */
.email-offen { overflow-wrap: anywhere; }
@keyframes email-dialog-auf { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- Fuß */
.fuss { background: var(--flaeche); margin-top: clamp(64px, 9vw, 112px); padding-top: 56px; border-top: 1px solid var(--linie); }
.fuss-in { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.fuss-marke { display: flex; flex-direction: column; align-items: flex-start; }
.fuss-marke p { color: var(--text-2); margin: 14px 0 0; font-size: 15px; max-width: 320px; }
.fuss-spalte { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.fuss-spalte h2 {
  font: 700 13px/1.3 var(--titel); letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-2); margin: 0 0 8px;
}
.fuss-spalte a { max-width: 100%; color: var(--text); text-decoration: none; font-size: 15.5px; line-height: 1.4; padding: 3px 0; hyphens: auto; }
.fuss-spalte a:hover { color: var(--blau); text-decoration: underline; }
.fuss-spalte a[aria-current="page"] { color: var(--blau); font-weight: 600; }
.fuss-unten {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 20px; padding-bottom: 28px; color: var(--text-2); font-size: 14px;
}
/* Trennlinie nur so breit wie der Inhalt (nicht über den Seitenrand der .wrap) */
.fuss-unten::before { content: ''; position: absolute; top: 0; left: 24px; right: 24px; border-top: 1px solid var(--linie-stark); }
.fuss-unten a { color: var(--text-2); }
.fuss-unten a:hover { color: var(--blau); }
/* Sprachumschalter (Link mit lang-Attribut) */
.fuss-unten a[lang] {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px;
  border: 1px solid var(--linie-stark); border-radius: 999px; background: #fff;
  color: var(--text); font: 600 14px/1 var(--titel); text-decoration: none;
  transition: border-color .15s, color .15s;
}
.fuss-unten a[lang]::before {
  content: ''; width: 16px; height: 16px; flex-shrink: 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3.6 9h16.8M3.6 15h16.8M12 3c-2.3 2.5-3.5 5.5-3.5 9s1.2 6.5 3.5 9c2.3-2.5 3.5-5.5 3.5-9S14.3 5.5 12 3z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3.6 9h16.8M3.6 15h16.8M12 3c-2.3 2.5-3.5 5.5-3.5 9s1.2 6.5 3.5 9c2.3-2.5 3.5-5.5 3.5-9S14.3 5.5 12 3z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.fuss-unten a[lang]:hover { border-color: var(--blau); color: var(--blau); }
.fuss-unten a[lang]:focus-visible { border-radius: 999px; }

/* ---------------------------------------------------------------- Mobil */
@media (max-width: 1100px) {
  /* Fünf Spalten werden zu eng: Marke oben über die ganze Breite, darunter vier Spalten */
  .fuss-in { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fuss-marke { grid-column: 1 / -1; }
}
@media (max-width: 920px) {
  .leistungen, .tarife, .kontakt-karten { grid-template-columns: 1fr; }
  .tarife { gap: 28px; }
  .band-in { flex-direction: column; align-items: flex-start; }
  .fuss-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fuss-marke { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  /* Nur die Seitenränder: sonst gingen die oberen/unteren Abstände von
     .band-in, .schritte u. a. verloren. */
  .wrap { padding-left: 16px; padding-right: 16px; }
  .btn { white-space: normal; }
  .band-in { padding-top: 40px; padding-bottom: 40px; gap: 24px; }
  .knoepfe .btn { flex: 1 1 100%; }
  .band .knoepfe { width: 100%; }
  .tarif { padding: 36px 22px 24px; }
  .fuss { padding-top: 44px; }
  .fuss-in { gap: 32px 20px; }
  .fuss-spalte a { font-size: 15px; }
  .fuss-unten { flex-direction: column; align-items: flex-start; margin-top: 40px; }
  .fuss-unten::before { left: 16px; right: 16px; }
  .tabelle { font-size: 14.5px; }
  .tabelle th, .tabelle td { padding: 11px 12px; }
}
@media (max-width: 520px) {
  /* Dialog als Blatt am unteren Rand, volle Breite */
  dialog.email-dialog, .email-dialog {
    max-width: 100%; max-height: calc(100% - 24px); margin: auto 0 0;
    border-radius: var(--radius) var(--radius) 0 0;
  }
  .email-dialog-ueberlagerung { align-items: flex-end; padding: 0; }
  .email-dialog-karte { padding: 18px 20px calc(24px + env(safe-area-inset-bottom, 0px)); }
  .email-dialog-titel { font-size: 1.25rem; }
  .email-dialog-zeile .btn { flex: 1 1 100%; }
  .email-dialog-termin { display: flex; width: 100%; }
  dialog.email-dialog[open] { animation-name: email-dialog-hoch; }
  @keyframes email-dialog-hoch { from { transform: translateY(24px); } to { transform: none; } }
}
@media (max-width: 359px) {
  .fuss-in { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .logo-grund { fill: CanvasText; }
  .logo-h { fill: Canvas; }
  .btn { border-color: ButtonText; }
  .email-dialog { border: 1px solid CanvasText; }
}

/* ---------------------------------------------------------------- Druck */
/* Inhalt ohne Navigation, Knöpfe und Farbflächen; Links bleiben erkennbar.
   Rechtstexte ergänzen eigene Druckregeln in recht.css. */
@media print {
  @page { margin: 16mm 14mm; }
  html { scroll-padding-top: 0; }
  body { background: #fff; color: #000; font-size: 11pt; line-height: 1.45; }
  .kopf { position: static; background: none; border-bottom: 1px solid #999; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .kopf-in { height: auto; padding-top: 4mm; padding-bottom: 4mm; }
  .nav, .konto, .menu, .skip, .knoepfe, .btn, .hp, .fuss-spalte, .fuss-unten a[lang], .sprache-kopf,
  .email-dialog, .email-dialog-ueberlagerung, .v-pruefung, .schutz-hinweis { display: none !important; }
  .logo-mark { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .wrap { max-width: none; padding: 0; }
  .held, .seitenkopf { padding: 8mm 0 4mm; }
  .band, .cta, .leistungen, .seitenkopf.dunkel {
    background: none !important; color: #000 !important; border: 1px solid #999; border-radius: 0; box-shadow: none;
  }
  .band :is(h1, h2, h3, p), .cta :is(h1, h2, h3, p), .leistungen :is(h1, h2, h3, p, .nr), .seitenkopf.dunkel :is(h1, h2, .lead) { color: #000 !important; }
  .band-in { padding: 4mm; }
  .tarif, .karte, .tabelle-rahmen { box-shadow: none; border-color: #999; }
  .tarif-top { background: none; }
  .tabelle-rahmen { overflow: visible; }
  .tabelle thead th, .tabelle .hervor, .tabelle tbody tr:hover > * { background: none; }
  a { color: #000; }
  .text a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: 90%; overflow-wrap: anywhere; }
  h1, h2, h3, h4 { break-after: avoid; page-break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
  tr, .tarif, .karte, .fehler, figure { break-inside: avoid; page-break-inside: avoid; }
  .fuss { background: none; border-top: 1px solid #999; margin-top: 10mm; padding-top: 4mm; }
  .fuss-in { display: block; }
  .fuss-marke p { color: #000; }
  .fuss-unten { margin-top: 2mm; padding: 0; color: #000; }
  .fuss-unten::before { display: none; }
}
