@charset "UTF-8";
/* ===========================================================================
   SwissOffice Pro – Hauptstylesheet
   1. Schrift & Design-Tokens        6. Sektionen
   2. Reset & Grundlagen             7. Preise
   3. Typografie                     8. FAQ & Formulare
   4. Buttons & Bausteine            9. Footer & Cookie-Banner
   5. Navigation                    10. Dashboard & Konto
=========================================================================== */

/* --- 1. Schrift & Design-Tokens ----------------------------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-variable-latin.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;
}

:root {
  /* Farben */
  --navy-950: #040e20;
  --navy-900: #06152e;
  --navy-800: #0a1d3a;
  --navy-700: #112a4e;
  --navy-600: #1b3a66;

  --blau-700: #0f52b8;
  --blau-600: #1668e3;
  --blau-500: #2a7ef0;
  --blau-400: #5b9df6;
  --blau-100: #d5e6ff;
  --blau-50: #eef5ff;

  --tinte: #0c1b33;
  --tinte-70: #41506b;
  --tinte-50: #64728c;
  --tinte-30: #94a0b5;

  --grau-200: #dfe5ef;
  --grau-100: #eaeef6;
  --grau-50: #f5f7fb;
  --weiss: #ffffff;

  --gruen: #0f9d76;
  --gruen-50: #e6f7f2;
  --rot: #d94848;
  --rot-50: #fdeded;
  --violett: #6357e3;
  --violett-50: #eeecfe;
  --gelb: #e0912c;
  --gelb-50: #fdf3e5;

  /* Flächen */
  --bg: var(--weiss);
  --bg-sanft: var(--grau-50);
  --linie: var(--grau-200);

  /* Radien */
  --r-xs: 8px;
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-voll: 999px;

  /* Schatten – bewusst sehr leicht */
  --sch-1: 0 1px 2px rgba(12, 27, 51, 0.05), 0 1px 3px rgba(12, 27, 51, 0.04);
  --sch-2: 0 2px 6px rgba(12, 27, 51, 0.05), 0 8px 20px -8px rgba(12, 27, 51, 0.1);
  --sch-3: 0 4px 14px rgba(12, 27, 51, 0.06), 0 22px 46px -18px rgba(12, 27, 51, 0.18);
  --sch-4: 0 10px 30px rgba(12, 27, 51, 0.08), 0 44px 80px -30px rgba(12, 27, 51, 0.26);
  --sch-blau: 0 8px 22px -8px rgba(22, 104, 227, 0.5);

  /* Raster */
  --breite: 1240px;
  --breite-schmal: 820px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);

  /* Bewegung */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-aus: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-hoehe: 74px;
}

/* --- 2. Reset & Grundlagen ---------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-hoehe) + 16px);
  /* "clip" statt "hidden": schneidet seitlichen Überhang ab (z. B. das
     geschlossene Mobilmenü), ohne position:sticky der Szene zu stören. */
  overflow-x: clip;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--tinte-70);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv05" 1, "ss03" 1;
  overflow-x: clip;
  min-height: 100vh;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--blau-600); text-decoration: none; }
a:hover { color: var(--blau-700); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

ul, ol { padding: 0; list-style: none; }

/* Das hidden-Attribut muss stärker sein als display-Regeln von Komponenten */
[hidden] { display: none !important; }

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

::selection { background: var(--blau-100); color: var(--navy-900); }

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

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 999;
  background: var(--navy-900); color: #fff; padding: 12px 20px; border-radius: 0 0 12px 12px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

/* --- 3. Typografie ------------------------------------------------------ */
h1, h2, h3, h4, h5 {
  color: var(--tinte);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 1.35rem + 3.4vw, 4rem); letter-spacing: -0.033em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2.1vw, 2.85rem); letter-spacing: -0.028em; }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.65vw, 1.55rem); line-height: 1.25; }
h4 { font-size: 1.06rem; line-height: 1.35; }

p { text-wrap: pretty; }
p + p { margin-top: 1em; }

strong { color: var(--tinte); font-weight: 650; }

.lead {
  font-size: clamp(1.06rem, 0.99rem + 0.36vw, 1.28rem);
  line-height: 1.6;
  color: var(--tinte-70);
}

.klein { font-size: .875rem; line-height: 1.6; }
.mini  { font-size: .8rem; line-height: 1.55; color: var(--tinte-50); }

.auge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blau-600);
}
.auge::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--blau-600), var(--blau-400));
}

.hervor { color: var(--blau-600); }

/* Container & Abstände */
.container {
  width: 100%;
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--schmal { max-width: var(--breite-schmal); }

.sektion { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); }
.sektion--eng { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.sektion--sanft { background: var(--bg-sanft); }
.sektion--dunkel {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: rgba(255, 255, 255, .78);
}
.sektion--dunkel h1, .sektion--dunkel h2, .sektion--dunkel h3, .sektion--dunkel h4 { color: #fff; }
.sektion--dunkel .lead { color: rgba(255, 255, 255, .8); }
.sektion--dunkel .auge { color: var(--blau-400); }

.kopf { max-width: 44rem; margin-bottom: clamp(2rem, 1.2rem + 2.4vw, 3.4rem); }
.kopf--zentriert { margin-inline: auto; text-align: center; }
.kopf h2 { margin-block: .7rem .85rem; }

/* --- 4. Buttons & Bausteine --------------------------------------------- */
.btn {
  --btn-bg: var(--blau-600);
  --btn-farbe: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .92rem 1.6rem;
  min-height: 50px;
  border-radius: var(--r-voll);
  background: var(--btn-bg);
  color: var(--btn-farbe);
  font-weight: 620; font-size: .97rem; letter-spacing: -.008em;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
  box-shadow: var(--sch-blau);
  text-align: center;
}
.btn:hover { color: var(--btn-farbe); transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(22, 104, 227, .6); }
.btn:active { transform: translateY(0); }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

.btn--gross { padding: 1.05rem 2rem; min-height: 56px; font-size: 1.02rem; }
.btn--klein { padding: .6rem 1.1rem; min-height: 40px; font-size: .88rem; }
.btn--voll  { width: 100%; }

.btn--zweit {
  --btn-bg: transparent;
  --btn-farbe: var(--tinte);
  border-color: var(--grau-200);
  box-shadow: var(--sch-1);
  background: var(--weiss);
}
.btn--zweit:hover { border-color: var(--blau-400); box-shadow: var(--sch-2); background: var(--weiss); }

.btn--geist {
  --btn-bg: transparent;
  --btn-farbe: #fff;
  border-color: rgba(255, 255, 255, .28);
  box-shadow: none;
  backdrop-filter: blur(6px);
}
.btn--geist:hover { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .1); box-shadow: none; }

.btn--text {
  --btn-bg: transparent; --btn-farbe: var(--blau-600);
  box-shadow: none; padding-inline: .4rem;
}
.btn--text:hover { background: var(--blau-50); box-shadow: none; transform: none; }

.btn-reihe { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; }

/* Karten */
.karte {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  box-shadow: var(--sch-1);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
/* Nur im Raster auf gleiche Höhe ziehen – sonst würde eine Karte als
   Grid-Kind die ganze Spaltenhöhe einnehmen. */
.raster > .karte { height: 100%; }
.karte--hover:hover { transform: translateY(-4px); box-shadow: var(--sch-3); border-color: var(--blau-100); }
.karte h3 { margin-bottom: .5rem; }
.karte p { font-size: .96rem; }

.karte__icon {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--blau-50); color: var(--blau-600);
  margin-bottom: 1.05rem;
}
.karte__icon--gruen   { background: var(--gruen-50);   color: var(--gruen); }
.karte__icon--rot     { background: var(--rot-50);     color: var(--rot); }
.karte__icon--violett { background: var(--violett-50); color: var(--violett); }
.karte__icon--gelb    { background: var(--gelb-50);    color: var(--gelb); }

.karte__link {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1rem; font-weight: 600; font-size: .92rem;
}
.karte__link .icon { transition: transform .25s var(--ease); }
.karte a.karte__link:hover .icon, .karte--hover:hover .karte__link .icon { transform: translateX(4px); }

/* Raster */
.raster { display: grid; gap: clamp(1rem, .7rem + 1vw, 1.6rem); }
.raster--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.raster--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.raster--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); }

/* Häkchen-Listen */
.haken { display: grid; gap: .7rem; }
.haken li { display: flex; align-items: flex-start; gap: .7rem; font-size: .96rem; }
.haken li > .icon {
  flex: 0 0 auto; width: 21px; height: 21px; margin-top: .22rem;
  padding: 3px; border-radius: 50%;
  background: var(--blau-50); color: var(--blau-600); stroke-width: 2.6;
}
.sektion--dunkel .haken li > .icon { background: rgba(90, 157, 246, .22); color: var(--blau-400); }
.haken--gruen li > .icon { background: var(--gruen-50); color: var(--gruen); }

/* Plaketten */
.plakette {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .34rem .78rem; border-radius: var(--r-voll);
  font-size: .78rem; font-weight: 620; letter-spacing: -.005em;
  background: var(--blau-50); color: var(--blau-700);
  border: 1px solid var(--blau-100);
}
.plakette--gruen   { background: var(--gruen-50);   color: var(--gruen);   border-color: rgba(15,157,118,.2); }
.plakette--gelb    { background: var(--gelb-50);    color: var(--gelb);    border-color: rgba(224,145,44,.2); }
.plakette--rot     { background: var(--rot-50);     color: var(--rot);     border-color: rgba(217,72,72,.2); }
.plakette--grau    { background: var(--grau-100);   color: var(--tinte-50);border-color: var(--grau-200); }
.plakette--hell    { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.22); backdrop-filter: blur(6px); }

/* Meldungen */
.meldung {
  display: flex; gap: .7rem; align-items: flex-start;
  padding: .95rem 1.15rem; border-radius: var(--r-sm);
  font-size: .93rem; margin-bottom: 1.2rem;
  border: 1px solid;
}
.meldung--info    { background: var(--blau-50);  border-color: var(--blau-100); color: var(--blau-700); }
.meldung--erfolg  { background: var(--gruen-50); border-color: rgba(15,157,118,.25); color: #0b6f54; }
.meldung--fehler  { background: var(--rot-50);   border-color: rgba(217,72,72,.25);  color: #a32c2c; }
.meldung--warnung { background: var(--gelb-50);  border-color: rgba(224,145,44,.28); color: #8d5a12; }
.meldung > svg { flex: 0 0 auto; margin-top: .1rem; }
.meldung > div, .meldung > span { min-width: 0; }
.meldung ul { margin: .3rem 0 0; display: grid; gap: .25rem; }
.meldung li { list-style: disc; margin-left: 1.1rem; }

/* Hinweisbox */
.hinweis {
  border-left: 3px solid var(--blau-400);
  background: var(--grau-50);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: .92rem;
  color: var(--tinte-50);
}

/* --- 5. Navigation ------------------------------------------------------ */
.kopfzeile {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.kopfzeile.ist-gescrollt {
  background: rgba(255, 255, 255, .92);
  border-bottom-color: var(--linie);
  box-shadow: 0 1px 20px rgba(12, 27, 51, .05);
}
.kopfzeile__innen {
  display: flex; align-items: center; gap: 1.2rem;
  height: var(--nav-hoehe);
}

/* Marke */
.marke { display: inline-flex; align-items: center; gap: .62rem; color: var(--blau-600); }
.marke__signet { display: block; width: 36px; height: 36px; flex: 0 0 auto; }
.marke__signet svg { width: 100%; height: 100%; }
.marke__text { display: flex; flex-direction: column; line-height: 1.1; }
.marke__name { font-size: 1.16rem; font-weight: 700; letter-spacing: -.028em; color: var(--tinte); white-space: nowrap; }
.marke__name em { font-style: normal; font-weight: 500; color: var(--blau-600); margin-left: .24em; }
.marke__claim { font-size: .7rem; color: var(--tinte-50); letter-spacing: -.005em; }
.marke--hell .marke__name { color: #fff; }
.marke--hell .marke__name em { color: var(--blau-400); }
.marke--hell .marke__claim { color: rgba(255,255,255,.6); }

/* Hauptmenü */
.kopfzeile__nav { margin-left: auto; }
.hauptmenue { display: flex; align-items: center; gap: .15rem; }
.hauptmenue > li { position: relative; flex: 0 0 auto; }
.hauptmenue__link {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .55rem .85rem; border-radius: var(--r-xs);
  color: var(--tinte-70); font-weight: 550; font-size: .95rem; white-space: nowrap;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
/* Mittlere Breiten (kleine Laptops, Tablet quer): Menü enger setzen, damit
   nichts umbricht – sechs Punkte plus zwei Knöpfe müssen auf eine Zeile. */
@media (min-width: 1024px) and (max-width: 1259px) {
  .marke__claim { display: none; }
  .hauptmenue__link { padding: .5rem .55rem; font-size: .9rem; }
  .kopfzeile__aktionen .btn { padding-inline: 1rem; }
}
@media (min-width: 1024px) and (max-width: 1159px) {
  .hauptmenue__link { padding-inline: .5rem; }
  .hauptmenue__link .icon { display: none; }
  .kopfzeile__aktionen { gap: .4rem; }
}
.hauptmenue__link:hover,
.hauptmenue__link[aria-expanded="true"] { color: var(--tinte); background: var(--grau-100); }
.hauptmenue__link.ist-aktiv { color: var(--blau-600); }
.hauptmenue__link .icon { flex: 0 0 auto; width: 15px; height: 15px; transition: transform .25s var(--ease); }
.hauptmenue__link[aria-expanded="true"] .icon { transform: rotate(180deg); }

/* Mega-Menü */
.megamenue {
  position: absolute; top: calc(100% + 10px); left: 50%;
  width: min(640px, 82vw);
  transform: translate(-50%, 8px);
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--r-lg);
  box-shadow: var(--sch-4);
  padding: .8rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: .2rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s var(--ease), transform .28s var(--ease-aus), visibility .22s;
}
.hauptmenue > li.ist-offen .megamenue { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.megamenue a {
  display: block; padding: .68rem .8rem; border-radius: var(--r-xs);
  transition: background-color .18s var(--ease);
}
.megamenue a:hover { background: var(--blau-50); }
.megamenue__titel { display: block; font-weight: 620; font-size: .93rem; color: var(--tinte); }
.megamenue__kurz { display: block; font-size: .8rem; color: var(--tinte-50); line-height: 1.45; margin-top: .12rem; }

.kopfzeile__aktionen { display: flex; align-items: center; gap: .55rem; }
.kopfzeile__aktionen .btn { white-space: nowrap; }
.kopfzeile__aktionen .btn { box-shadow: none; }
.kopfzeile__aktionen .btn:hover { box-shadow: var(--sch-blau); }

/* Mobiles Menü */
.menue-schalter {
  display: none; width: 44px; height: 44px; border-radius: var(--r-xs);
  align-items: center; justify-content: center; color: var(--tinte);
  border: 1px solid var(--linie); background: var(--weiss);
}
.menue-schalter .icon--zu { display: none; }
.menue-schalter[aria-expanded="true"] .icon--auf { display: none; }
.menue-schalter[aria-expanded="true"] .icon--zu { display: block; }

.mobilmenue {
  position: fixed; inset: var(--nav-hoehe) 0 0; z-index: 99;
  background: var(--weiss);
  padding: 1.4rem var(--gutter) 2.5rem;
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .4s var(--ease-aus), visibility .4s;
  display: flex; flex-direction: column; gap: .35rem;
}
.mobilmenue.ist-offen { transform: translateX(0); visibility: visible; }
.mobilmenue__gruppe > button {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: .95rem .25rem; font-size: 1.06rem; font-weight: 620; color: var(--tinte);
  border-bottom: 1px solid var(--grau-100);
}
.mobilmenue__gruppe > button .icon { transition: transform .3s var(--ease); color: var(--tinte-30); }
.mobilmenue__gruppe > button[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mobilmenue__unter {
  display: grid; gap: .1rem; overflow: hidden;
  max-height: 0; transition: max-height .4s var(--ease-aus);
}
.mobilmenue__gruppe.ist-offen .mobilmenue__unter { max-height: 560px; }
.mobilmenue__unter a { padding: .72rem .25rem .72rem 1rem; color: var(--tinte-70); font-size: .97rem; border-left: 2px solid var(--grau-100); }
.mobilmenue > a {
  padding: .95rem .25rem; font-size: 1.06rem; font-weight: 620; color: var(--tinte);
  border-bottom: 1px solid var(--grau-100);
}
.mobilmenue__aktionen { margin-top: 1.4rem; display: grid; gap: .7rem; }

@media (max-width: 1023px) {
  .kopfzeile__nav, .kopfzeile__aktionen { display: none; }
  .menue-schalter { display: flex; margin-left: auto; }
  .marke__claim { display: none; }
}
@media (min-width: 1024px) { .mobilmenue { display: none; } }

body.menue-offen { overflow: hidden; }

/* --- 6. Sektionen ------------------------------------------------------- */

/* Hero (Unterseiten) */
.seitenkopf {
  position: relative;
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(2.5rem, 1.6rem + 3vw, 4rem);
  background:
    radial-gradient(1100px 420px at 78% -10%, rgba(42, 126, 240, .13), transparent 62%),
    linear-gradient(180deg, var(--blau-50) 0%, rgba(245, 247, 251, 0) 100%);
}
.seitenkopf__innen { max-width: 48rem; }
.seitenkopf h1 { margin-block: .75rem 1rem; }

/* Brotkrumen */
.brotkrumen { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .84rem; color: var(--tinte-50); }
.brotkrumen a { color: var(--tinte-50); }
.brotkrumen a:hover { color: var(--blau-600); }
.brotkrumen li + li::before { content: "/"; margin-right: .4rem; color: var(--tinte-30); }
.brotkrumen li { display: inline-flex; }
.brotkrumen [aria-current] { color: var(--tinte); font-weight: 550; }

/* Logo-/Vertrauensleiste */
.vertrauensleiste {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .7rem clamp(1.2rem, 3vw, 2.6rem);
  padding-block: 1.4rem;
}
.vertrauensleiste__eintrag {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .87rem; font-weight: 550; color: var(--tinte-50);
}
.vertrauensleiste__eintrag .icon { color: var(--blau-600); width: 19px; height: 19px; }
.sektion--dunkel .vertrauensleiste__eintrag { color: rgba(255,255,255,.74); }
.sektion--dunkel .vertrauensleiste__eintrag .icon { color: var(--blau-400); }

/* Zweispalter Text + Bild */
.duo {
  display: grid; gap: clamp(2rem, 1.4rem + 3vw, 4.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  align-items: center;
}
.duo--gedreht > *:first-child { order: 2; }
@media (max-width: 800px) { .duo--gedreht > *:first-child { order: 0; } }

.bildrahmen {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--linie); box-shadow: var(--sch-3);
  background: var(--grau-50);
}
.bildrahmen img { width: 100%; }
.bildrahmen--frei { border: 0; box-shadow: none; background: none; }

/* Statistik */
.statreihe {
  display: grid; gap: clamp(1rem, .6rem + 1.5vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  text-align: center;
}
.statreihe__wert {
  display: block; font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.7rem);
  font-weight: 700; color: var(--tinte); letter-spacing: -.035em; line-height: 1.05;
}
.sektion--dunkel .statreihe__wert { color: #fff; }
.statreihe__text { font-size: .9rem; color: var(--tinte-50); margin-top: .3rem; }
.sektion--dunkel .statreihe__text { color: rgba(255,255,255,.62); }

/* Ablauf / Schritte */
.schritte { counter-reset: schritt; display: grid; gap: 1.2rem; }
.schritte li {
  counter-increment: schritt;
  display: grid; grid-template-columns: 44px 1fr; gap: 1.1rem; align-items: start;
}
.schritte li::before {
  content: counter(schritt);
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--weiss); border: 1px solid var(--linie);
  color: var(--blau-600); font-weight: 680; font-size: 1rem;
  box-shadow: var(--sch-1);
}
.schritte h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.schritte p { font-size: .95rem; }

/* CTA-Band */
.ctaband {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 58%, var(--blau-700) 130%);
  color: rgba(255,255,255,.8);
  padding: clamp(2.2rem, 1.5rem + 3.5vw, 4rem) clamp(1.5rem, 1rem + 3vw, 3.5rem);
  text-align: center;
  isolation: isolate;
}
.ctaband::after {
  content: ""; position: absolute; inset: -40% -10% auto; height: 120%;
  background: radial-gradient(60% 60% at 50% 0%, rgba(91, 157, 246, .3), transparent 70%);
  z-index: -1;
}
.ctaband h2 { color: #fff; margin-bottom: .8rem; }
.ctaband .lead { color: rgba(255,255,255,.82); max-width: 38rem; margin-inline: auto; }
.ctaband .btn-reihe { justify-content: center; margin-top: 1.9rem; }

/* --- 7. Preise ---------------------------------------------------------- */
.intervall-schalter {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .3rem; border-radius: var(--r-voll);
  background: var(--grau-100); border: 1px solid var(--linie);
  margin-inline: auto;
}
.intervall-schalter button {
  padding: .58rem 1.25rem; border-radius: var(--r-voll);
  font-weight: 600; font-size: .92rem; color: var(--tinte-50);
  transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.intervall-schalter button[aria-pressed="true"] {
  background: var(--weiss); color: var(--tinte); box-shadow: var(--sch-1);
}
.intervall-schalter .sparen {
  display: inline-block; margin-left: .4rem; font-size: .72rem; font-weight: 650;
  color: var(--gruen);
}
/* Kleine Handys (≤ 380 px): Schalter passt ohne Abschneiden */
@media (max-width: 380px) {
  .intervall-schalter { max-width: 100%; }
  .intervall-schalter button { padding: .55rem .8rem; font-size: .86rem; }
  .intervall-schalter .sparen { margin-left: .3rem; font-size: .66rem; }
}

.preistafel {
  display: grid; gap: clamp(1rem, .6rem + 1.4vw, 1.6rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  align-items: start;
}
.preiskarte {
  position: relative; display: flex; flex-direction: column;
  background: var(--weiss); border: 1px solid var(--linie);
  border-radius: var(--r-lg); padding: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  box-shadow: var(--sch-1);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  height: 100%;
}
.preiskarte:hover { transform: translateY(-4px); box-shadow: var(--sch-3); }
.preiskarte--top {
  border-color: var(--blau-400);
  box-shadow: var(--sch-3), 0 0 0 1px var(--blau-400);
}
.preiskarte--top::before {
  content: "Am beliebtesten";
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--blau-600); color: #fff;
  font-size: .73rem; font-weight: 650; letter-spacing: .02em;
  padding: .3rem .9rem; border-radius: var(--r-voll);
  box-shadow: var(--sch-blau); white-space: nowrap;
}
.preiskarte__name { font-size: 1.28rem; font-weight: 700; color: var(--tinte); }
.preiskarte__tagline { font-size: .9rem; color: var(--tinte-50); margin-top: .2rem; min-height: 2.6em; }
.preiskarte__preis { display: flex; align-items: baseline; gap: .35rem; margin-top: 1.1rem; }
.preiskarte__betrag { font-size: 2.65rem; font-weight: 700; color: var(--tinte); letter-spacing: -.04em; line-height: 1; }
.preiskarte__einheit { font-size: .92rem; color: var(--tinte-50); }
.preiskarte__zusatz { font-size: .82rem; color: var(--tinte-50); margin-top: .45rem; min-height: 1.4em; }
.preiskarte .btn { margin-block: 1.4rem 1.5rem; }
.preiskarte__inklusive {
  font-size: .82rem; font-weight: 650; color: var(--tinte);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: .9rem;
}
.preiskarte .haken { margin-top: auto; }
.preiskarte .haken li { font-size: .92rem; }

.preistabelle-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.preistabelle { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .93rem; }
.preistabelle th, .preistabelle td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--grau-100); }
.preistabelle thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--tinte-50); }
.preistabelle td:not(:first-child), .preistabelle th:not(:first-child) { text-align: center; width: 15%; }
.preistabelle tbody th { font-weight: 550; color: var(--tinte); }
.preistabelle .ja { color: var(--gruen); }
.preistabelle .nein { color: var(--tinte-30); }

/* Zahlungsmethoden */
.zahlarten { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: center; }
.zahlart {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .42rem .82rem; border-radius: var(--r-xs);
  background: var(--weiss); border: 1px solid var(--linie);
  font-size: .82rem; font-weight: 600; color: var(--tinte-70);
  box-shadow: var(--sch-1);
}
.zahlart__punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--blau-500); }
.zahlart--twint .zahlart__punkt { background: #1a1a1a; }
.zahlart--visa .zahlart__punkt { background: #1a1f71; }
.zahlart--mc .zahlart__punkt { background: #eb001b; }
.zahlart--apple .zahlart__punkt { background: #111; }
.zahlart--google .zahlart__punkt { background: #4285f4; }

/* --- 8. FAQ & Formulare ------------------------------------------------- */
.faq { display: grid; gap: .7rem; }
.faq__eintrag {
  background: var(--weiss); border: 1px solid var(--linie);
  border-radius: var(--r); overflow: hidden;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.faq__eintrag:hover { border-color: var(--blau-100); }
.faq__eintrag[open] { border-color: var(--blau-100); box-shadow: var(--sch-2); }
.faq__frage {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.35rem; cursor: pointer; list-style: none;
  font-weight: 620; font-size: 1.02rem; color: var(--tinte); line-height: 1.4;
}
.faq__frage::-webkit-details-marker { display: none; }
.faq__frage .icon { flex: 0 0 auto; color: var(--blau-600); transition: transform .3s var(--ease); }
.faq__eintrag[open] .faq__frage .icon { transform: rotate(45deg); }
.faq__antwort { padding: 0 1.35rem 1.35rem; font-size: .97rem; max-width: 62ch; }

/* Formulare */
.formular { display: grid; gap: 1.05rem; }
.feld { display: grid; gap: .38rem; align-content: start; }
.feld label { font-size: .89rem; font-weight: 600; color: var(--tinte); }
.feld label .opt { font-weight: 400; color: var(--tinte-30); }
.feld input[type="text"], .feld input[type="email"], .feld input[type="tel"],
.feld input[type="password"], .feld input[type="date"], .feld input[type="number"],
.feld input[type="url"], .feld input[type="search"], .feld input[type="month"],
.feld input:not([type]), .feld select, .feld textarea {
  width: 100%; padding: .82rem 1rem;
  border: 1px solid var(--grau-200); border-radius: var(--r-sm);
  background: var(--weiss); color: var(--tinte); font-size: .97rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  min-height: 48px;
}
.feld textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.feld input:focus, .feld select:focus, .feld textarea:focus {
  outline: none; border-color: var(--blau-500); box-shadow: 0 0 0 4px rgba(42, 126, 240, .14);
}
.feld input::placeholder, .feld textarea::placeholder { color: var(--tinte-30); }
.feld__hilfe { font-size: .8rem; color: var(--tinte-50); }
.feld--fehler input, .feld--fehler textarea { border-color: var(--rot); }

.feld-reihe { display: grid; gap: 1.05rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.checkbox { display: flex; gap: .7rem; align-items: flex-start; font-size: .89rem; line-height: 1.55; cursor: pointer; }
.checkbox input[type="checkbox"] {
  flex: 0 0 auto; width: 20px; height: 20px; margin-top: .14rem;
  accent-color: var(--blau-600); cursor: pointer;
}

/* Honeypot – für Menschen unsichtbar */
.hp-feld { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Konto-Karte */
.konto-karte {
  width: 100%; max-width: 480px; margin-inline: auto;
  background: var(--weiss); border: 1px solid var(--linie);
  border-radius: var(--r-lg); box-shadow: var(--sch-3);
  padding: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
}
.konto-karte h1 { font-size: clamp(1.5rem, 1.3rem + .8vw, 1.85rem); margin-bottom: .45rem; }
.konto-karte .btn { margin-top: .4rem; }
.konto-fuss { text-align: center; font-size: .9rem; margin-top: 1.4rem; color: var(--tinte-50); }
.konto-seite {
  min-height: calc(100vh - var(--nav-hoehe));
  display: grid; place-items: center;
  /* Feste Spur = Bildschirmbreite. Ohne sie misst das Raster seinen Inhalt
     "zu breit" und auf dem Handy werden Formular und Karte rechts abgeschnitten. */
  grid-template-columns: minmax(0, 1fr);
  padding-block: clamp(2rem, 1.4rem + 3vw, 4rem);
  background:
    radial-gradient(900px 400px at 50% -8%, rgba(42, 126, 240, .12), transparent 60%),
    var(--grau-50);
}

/* --- 9. Footer & Cookie-Banner ------------------------------------------ */
.fusszeile {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .62);
  padding-block: clamp(2.8rem, 2rem + 3vw, 4.5rem) 1.8rem;
  font-size: .92rem;
}
.fusszeile__raster {
  display: grid; gap: clamp(1.8rem, 1.2rem + 2vw, 3rem);
  grid-template-columns: minmax(230px, 1.4fr) repeat(auto-fit, minmax(150px, 1fr));
  padding-bottom: 2.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
/* Handy: zwei Spalten, Marke oben über die ganze Breite */
@media (max-width: 640px) {
  .fusszeile__raster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem 1.2rem; }
  .fusszeile__raster > :first-child { grid-column: 1 / -1; }
}
.fusszeile h3 {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .09em;
  color: rgba(255, 255, 255, .5); margin-bottom: 1rem; font-weight: 620;
}
.fusszeile ul { display: grid; gap: .6rem; }
.fusszeile a { color: rgba(255, 255, 255, .72); }
.fusszeile a:hover { color: #fff; }
.fusszeile__marke p { margin-top: 1rem; max-width: 30ch; color: rgba(255,255,255,.55); font-size: .9rem; }
.fusszeile__unten {
  display: flex; flex-wrap: wrap; gap: .8rem 1.4rem;
  align-items: center; justify-content: space-between;
  padding-top: 1.6rem; font-size: .84rem; color: rgba(255, 255, 255, .45);
}
.fusszeile__rechtlich { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.fusszeile__ch { display: inline-flex; align-items: center; gap: .45rem; }
.ch-kreuz {
  display: inline-grid; place-items: center;
  width: 17px; height: 17px; border-radius: 3px; background: #d8232a; position: relative; flex: 0 0 auto;
}
.ch-kreuz::before, .ch-kreuz::after { content: ""; position: absolute; background: #fff; border-radius: 1px; }
.ch-kreuz::before { width: 9px; height: 2.6px; }
.ch-kreuz::after { width: 2.6px; height: 9px; }

/* Cookie-Banner */
.cookie-banner {
  position: fixed; z-index: 200; left: 50%; bottom: 18px;
  width: min(760px, calc(100vw - 24px));
  transform: translate(-50%, 140%);
  background: var(--weiss);
  border: 1px solid var(--linie); border-radius: var(--r-lg);
  box-shadow: var(--sch-4);
  padding: 1.3rem 1.4rem;
  transition: transform .5s var(--ease-aus);
}
.cookie-banner.ist-sichtbar { transform: translate(-50%, 0); }
.cookie-banner h2 { font-size: 1.05rem; margin-bottom: .4rem; }
.cookie-banner p { font-size: .88rem; }
.cookie-banner__aktionen { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.cookie-banner__aktionen .btn { flex: 1 1 160px; }
.cookie-optionen { display: grid; gap: .8rem; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--grau-100); }
.cookie-optionen[hidden] { display: none; }
.cookie-option { display: flex; gap: .7rem; align-items: flex-start; font-size: .87rem; }
.cookie-option input { margin-top: .2rem; width: 20px; height: 20px; accent-color: var(--blau-600); }

/* Auf grossen Bildschirmen kompakt in der Ecke – verdeckt so nie die
   Haupt-Buttons in der Mitte (wichtig auf Laptops mit 720–800 px Höhe). */
@media (min-width: 901px) {
  .cookie-banner {
    left: 20px; bottom: 20px;
    width: min(410px, calc(100vw - 40px));
    transform: translateY(140%);
    padding: 1.05rem 1.15rem;
  }
  .cookie-banner.ist-sichtbar { transform: translateY(0); }
  .cookie-banner h2 { font-size: .98rem; }
  .cookie-banner p { font-size: .82rem; line-height: 1.5; }
  .cookie-banner__aktionen { margin-top: .85rem; gap: .5rem; }
  .cookie-banner__aktionen .btn { flex: 1 1 auto; min-height: 0; padding: .62rem .9rem; font-size: .86rem; }
}

/* --- 10. Dashboard & Konto ---------------------------------------------- */
.dash {
  display: grid; grid-template-columns: 238px 1fr;
  min-height: calc(100vh - var(--nav-hoehe));
  background: var(--grau-50);
}
.dash__seite {
  background: var(--navy-900); color: rgba(255,255,255,.66);
  padding: 1.4rem 1rem; display: flex; flex-direction: column; gap: .2rem;
}
.dash__seite a {
  display: flex; align-items: center; gap: .7rem;
  padding: .68rem .8rem; border-radius: var(--r-xs);
  color: rgba(255,255,255,.66); font-size: .93rem; font-weight: 520;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.dash__seite a:hover { background: rgba(255,255,255,.07); color: #fff; }
.dash__seite a.ist-aktiv { background: var(--blau-600); color: #fff; }
.dash__seite h3 {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.35); margin: 1.3rem .8rem .5rem; font-weight: 620;
}
.dash__inhalt { padding: clamp(1.4rem, 1rem + 1.6vw, 2.4rem); min-width: 0; }
@media (max-width: 860px) {
  .dash { grid-template-columns: 1fr; }
  .dash__seite { flex-direction: row; overflow-x: auto; gap: .3rem; padding: .7rem; }
  .dash__seite h3 { display: none; }
  .dash__seite a { white-space: nowrap; }
}

.kachelreihe { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.kachel {
  background: var(--weiss); border: 1px solid var(--linie);
  border-radius: var(--r); padding: 1.15rem 1.25rem; box-shadow: var(--sch-1);
}
.kachel__wert { font-size: 1.95rem; font-weight: 700; color: var(--tinte); letter-spacing: -.035em; line-height: 1.1; }
.kachel__label { font-size: .84rem; color: var(--tinte-50); margin-top: .15rem; }
.kachel__kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.kachel__kopf .karte__icon { width: 36px; height: 36px; border-radius: 10px; margin: 0; }

/* Tabellen */
.tabelle-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r); border: 1px solid var(--linie); background: var(--weiss); }
.tabelle { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .91rem; }
.tabelle th, .tabelle td { padding: .82rem 1rem; text-align: left; }
.tabelle thead th {
  font-size: .76rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--tinte-50); background: var(--grau-50); border-bottom: 1px solid var(--linie); font-weight: 620;
}
.tabelle tbody tr + tr td { border-top: 1px solid var(--grau-100); }
.tabelle td:first-child { font-weight: 550; color: var(--tinte); }

/* --- 11. Dashboard-Vorschau ----------------------------------------------
   Massstabsgetreue Nachbildung der Software-Oberfläche als echtes HTML –
   dadurch auf jedem Bildschirm gestochen scharf. Die Bühne gibt das
   Seitenverhältnis vor, JavaScript setzt --app-skala.
   Wird auf der Startseite, auf den Funktionsseiten und im Dashboard genutzt.
------------------------------------------------------------------------- */
.app-buehne {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0d1b33;
  border-radius: inherit;
}

.app {
  position: absolute;
  top: 0; left: 0;
  width: 1280px;
  height: 800px;
  transform-origin: top left;
  transform: scale(var(--app-skala, .5));
  display: grid;
  grid-template-columns: 238px 1fr;
  background: #f4f7fc;
  font-size: 15px;
  line-height: 1.5;
  color: #41506b;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

/* Seitenleiste */
.app__seite { background: #0a1d3a; padding: 22px 14px; color: rgba(255, 255, 255, .6); }
.app__marke { display: flex; align-items: center; gap: 9px; padding: 0 8px 20px; }
.app__marke-signet {
  width: 30px; height: 30px; border-radius: 9px; flex: 0 0 auto;
  background: linear-gradient(150deg, #2a7ef0, #1668e3);
  display: grid; place-items: center;
}
.app__marke-signet svg { width: 17px; height: 17px; color: #fff; }
.app__marke-text { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.app__marke-text em { font-style: normal; font-weight: 400; color: #8fbcfb; margin-left: 3px; }

.app__nav { display: grid; gap: 2px; }
.app__nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; border-radius: 9px;
  color: rgba(255, 255, 255, .62); font-size: 13.5px; font-weight: 500;
}
.app__nav a svg { width: 17px; height: 17px; flex: 0 0 auto; opacity: .85; }
.app__nav a.ist-aktiv { background: #1668e3; color: #fff; }
.app__nav a.ist-aktiv svg { opacity: 1; }

/* Hauptbereich */
.app__haupt { padding: 22px 26px; overflow: hidden; min-width: 0; }
.app__kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.app__gruss { font-size: 21px; font-weight: 700; color: #0c1b33; letter-spacing: -.025em; line-height: 1.2; }
.app__gruss-unter { font-size: 13px; color: #64728c; margin-top: 3px; }
.app__knopf {
  display: inline-flex; align-items: center; gap: 7px;
  background: #1668e3; color: #fff; padding: 9px 15px; border-radius: 9px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 6px 14px -6px rgba(22, 104, 227, .7);
}
.app__knopf svg { width: 15px; height: 15px; }

/* Kennzahlen */
.app__kacheln { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.app__kachel {
  background: #fff; border: 1px solid #e3e9f3; border-radius: 13px; padding: 13px 14px;
  box-shadow: 0 1px 2px rgba(12, 27, 51, .04);
  will-change: transform, opacity;
}
.app__kachel-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.app__kachel-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; }
.app__kachel-icon svg { width: 15px; height: 15px; }
.app__kachel-icon--blau    { background: #eaf2fe; color: #1668e3; }
.app__kachel-icon--gruen   { background: #e6f7f2; color: #0f9d76; }
.app__kachel-icon--violett { background: #eeecfe; color: #6357e3; }
.app__kachel-icon--rot     { background: #fdeded; color: #d94848; }
.app__kachel-icon--gelb    { background: #fdf3e5; color: #e0912c; }
.app__kachel-trend { font-size: 11px; font-weight: 650; color: #0f9d76; }
.app__kachel-wert { font-size: 26px; font-weight: 700; color: #0c1b33; letter-spacing: -.035em; line-height: 1.1; }
.app__kachel-label { font-size: 12px; color: #64728c; margin-top: 1px; }

/* Panels */
.app__panels { display: grid; grid-template-columns: 1.62fr 1fr; gap: 14px; }
.app__panel {
  background: #fff; border: 1px solid #e3e9f3; border-radius: 13px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(12, 27, 51, .04);
  will-change: transform, opacity;
}
.app__panel-kopf {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 15px; border-bottom: 1px solid #eef2f8;
}
.app__panel-titel { font-size: 13.5px; font-weight: 650; color: #0c1b33; }
.app__panel-link { font-size: 12px; color: #1668e3; font-weight: 550; }

.app__zeile {
  display: grid; grid-template-columns: 26px 1fr 78px 78px 82px;
  align-items: center; gap: 11px;
  padding: 10px 15px; font-size: 12.5px;
  will-change: transform, opacity;
}
.app__zeile + .app__zeile { border-top: 1px solid #f1f4fa; }
.app__zeile-icon { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; }
.app__zeile-icon svg { width: 14px; height: 14px; }
.app__zeile-name { font-weight: 560; color: #0c1b33; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app__zeile-typ, .app__zeile-datum { color: #7b8aa3; white-space: nowrap; }
.app__status {
  display: inline-block; padding: 3px 9px; border-radius: 99px;
  font-size: 10.5px; font-weight: 650; text-align: center; white-space: nowrap;
}
.app__status--gruen  { background: #e6f7f2; color: #0b7d5f; }
.app__status--blau   { background: #eaf2fe; color: #1359c4; }
.app__status--gelb   { background: #fdf3e5; color: #a8681a; }
.app__status--grau   { background: #eef1f7; color: #64728c; }
.app__status--rot    { background: #fdeded; color: #b23636; }

/* Schnellaktionen */
.app__aktionen { padding: 13px 15px; display: grid; gap: 8px; }
.app__aktion {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: 9px; border: 1px solid #e8edf6;
  font-size: 12.5px; font-weight: 550; color: #0c1b33; background: #fbfcfe;
  will-change: transform, opacity;
}
.app__aktion-icon { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; flex: 0 0 auto; }
.app__aktion-icon svg { width: 13px; height: 13px; }
.app__aktion-pfeil { margin-left: auto; color: #b4c0d2; font-size: 14px; }

/* Ohne JavaScript bleibt eine brauchbare Standardgrösse erhalten */
.js-aus .app { transform: scale(.45); }

/* --- Hilfsklassen ------------------------------------------------------- */
.zentriert { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.max-60 { max-width: 60ch; }
.mx-auto { margin-inline: auto; }

/* Sanftes Einblenden beim Scrollen (per JS aktiviert) */
.auf {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease-aus), transform .7s var(--ease-aus);
  will-change: opacity, transform;
}
.auf.ist-sichtbar { opacity: 1; transform: none; }
.auf--1 { transition-delay: .07s; }
.auf--2 { transition-delay: .14s; }
.auf--3 { transition-delay: .21s; }
.auf--4 { transition-delay: .28s; }
.js-aus .auf { opacity: 1; transform: none; }

/* --- Reduzierte Bewegung ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .auf { opacity: 1 !important; transform: none !important; }
}

/* --- Druck -------------------------------------------------------------- */
@media print {
  .kopfzeile, .fusszeile, .cookie-banner, .btn, .mobilmenue { display: none !important; }
  body { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* ===========================================================================
   12. Büro-Module: Kunden, Rechnungen, Auswertung
   Farben für Diagramme sind gegen Farbfehlsichtigkeit und Kontrast geprüft.
=========================================================================== */
:root {
  --dv-bezahlt: #0f9d76;   /* Zahlungseingang */
  --dv-offen:   #c47d12;   /* noch offen      */
}

/* Kopfzeile eines Arbeitsbereichs */
.dash__kopf {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: flex-end; justify-content: space-between;
  margin-bottom: 1.4rem;
}

/* Such- und Filterleiste */
.suchleiste {
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: center;
  margin-bottom: 1.2rem;
}
.suchleiste .feld { min-width: 150px; }

/* Leerzustand */
.leerzustand {
  text-align: center; padding: clamp(2rem, 1.4rem + 2vw, 3.5rem) 1.5rem;
  background: var(--weiss); border: 1px dashed var(--grau-200);
  border-radius: var(--r-lg);
}
.leerzustand .karte__icon { margin-bottom: 1rem; }

/* Logo */
.logo-vorschau {
  display: inline-block; padding: 1rem 1.2rem;
  background: var(--grau-50); border: 1px solid var(--linie); border-radius: var(--r);
}
.logo-leer {
  display: flex; align-items: center; gap: .7rem;
  padding: 1.4rem; border: 1px dashed var(--grau-200); border-radius: var(--r);
  color: var(--tinte-30); font-size: .9rem;
}

/* Datei-Auswahl – eigene Beschriftung, damit sie immer deutsch ist */
.datei {
  position: relative; display: flex; align-items: center; gap: .8rem;
  padding: .55rem .7rem; background: var(--weiss);
  border: 1px solid var(--linie); border-radius: var(--r-sm);
  cursor: pointer; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.datei:hover { border-color: var(--blau-200); }
.datei:focus-within { border-color: var(--blau-500); box-shadow: 0 0 0 3px var(--blau-50); }
.datei__feld {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
.datei__knopf {
  flex: none; padding: .45rem .9rem; border-radius: var(--r-sm);
  background: var(--grau-50); border: 1px solid var(--linie);
  font-size: .88rem; font-weight: 600; color: var(--tinte-70);
}
.datei__name {
  font-size: .88rem; color: var(--tinte-30);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.datei--gewaehlt .datei__name { color: var(--tinte); font-weight: 600; }

/* Blättern */
.blaettern {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin-top: 1.4rem; flex-wrap: wrap;
}
.blaettern__stand { font-size: .9rem; color: var(--tinte-50); }
.blaettern [aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* Zwei Karten-Spalten, die unabhängig voneinander wachsen (kein Ausrichten auf
   die höchste Karte, also keine grossen Lücken). */
.kartenspalten {
  display: grid; gap: clamp(1rem, .7rem + 1vw, 1.6rem);
  grid-template-columns: minmax(0, 1fr); align-items: start;
}
.kartenspalten__spalte {
  display: grid; gap: clamp(1rem, .7rem + 1vw, 1.6rem);
  align-content: start; min-width: 0;
}
.kartenspalten .karte { height: auto; }
@media (min-width: 1000px) { .kartenspalten { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --- Rechnungsformular --------------------------------------------------- */
.rechnung-layout {
  display: grid; gap: 1.2rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1180px) {
  .rechnung-layout { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; }
}

.positionen__kopf,
.position {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px 84px 96px 74px 92px 34px;
  gap: .5rem; align-items: start;
}
.positionen__kopf {
  font-size: .74rem; font-weight: 650; text-transform: uppercase; letter-spacing: .05em;
  color: var(--tinte-50); padding: 0 0 .5rem;
  border-bottom: 1px solid var(--grau-100);
}
.position { padding: .6rem 0; border-bottom: 1px solid var(--grau-100); }
.position .feld { margin: 0; gap: 0; }
.position input, .position textarea {
  min-height: 38px; padding: .45rem .6rem; font-size: .9rem; border-radius: var(--r-xs);
}
.position textarea { resize: none; overflow: hidden; line-height: 1.45; }
.position input[type="text"] { text-align: right; }
.position .feld:nth-child(3) input { text-align: left; }
.position__summe {
  align-self: center; text-align: right; font-weight: 620;
  font-variant-numeric: tabular-nums; font-size: .92rem; color: var(--tinte);
  padding-top: .55rem;
}
.position__weg {
  align-self: center; display: grid; place-items: center;
  width: 30px; height: 30px; margin-top: .3rem;
  border-radius: 8px; color: var(--tinte-30);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.position__weg:hover { background: var(--rot-50); color: var(--rot); }
.position__weg:disabled { opacity: .3; cursor: not-allowed; }

@media (max-width: 860px) {
  .positionen__kopf { display: none; }
  .position {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem .6rem; padding: .9rem 0;
  }
  .position .feld:first-child { grid-column: 1 / -1; }
  .position input[type="text"] { text-align: left; }
  /* Ohne Kopfzeile brauchen die Felder sichtbare Beschriftungen */
  .position .feld .sr-only {
    position: static; width: auto; height: auto; margin: 0 0 .25rem;
    overflow: visible; clip: auto; clip-path: none; white-space: normal;
    display: block; font-size: .74rem; font-weight: 650; text-transform: uppercase;
    letter-spacing: .04em; color: var(--tinte-50);
  }
  .position .feld:first-child .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .position__summe::before {
    content: "Betrag"; display: block; font-size: .74rem; font-weight: 650;
    text-transform: uppercase; letter-spacing: .04em; color: var(--tinte-50);
    margin-bottom: .1rem;
  }
  .position__summe { grid-column: 1 / 2; text-align: left; padding-top: 0; }
  .position__weg { grid-column: 2 / 3; justify-self: end; margin-top: 0; }
}

/* Summen */
.summenbox {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  align-items: flex-start; justify-content: space-between;
}
.summenliste { display: grid; gap: .45rem; min-width: 240px; margin-left: auto; }
.summenliste > div { display: flex; justify-content: space-between; gap: 1.5rem; font-size: .93rem; }
.summenliste dt { color: var(--tinte-50); }
.summenliste dd { margin: 0; font-variant-numeric: tabular-nums; color: var(--tinte); }
.summenliste__total {
  border-top: 1px solid var(--grau-200); padding-top: .55rem; margin-top: .3rem;
  font-size: 1.05rem !important; font-weight: 700;
}
.summenliste__total dt { color: var(--tinte) !important; }

/* Zahlungen */
.zahlliste { display: grid; gap: .5rem; }
.zahlliste li {
  display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem;
  padding: .6rem .75rem; background: var(--grau-50); border-radius: var(--r-xs);
  font-size: .9rem;
}
.zahlliste .mini { display: block; }

.qr-vorschau {
  display: grid; place-items: center; padding: .8rem;
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--r);
}
.qr-vorschau svg { width: 100%; height: auto; max-width: 200px; }

/* --- Kennzahl-Kacheln ---------------------------------------------------- */
.kachel__trend { font-size: .78rem; color: var(--tinte-50); margin-top: .3rem; }
.kachel__trend.ist-auf { color: var(--gruen); }
.kachel__trend.ist-ab  { color: var(--rot); }

/* --- Säulendiagramm ------------------------------------------------------ */
.diagramm__kopf {
  display: flex; flex-wrap: wrap; gap: .8rem;
  align-items: flex-start; justify-content: space-between; margin-bottom: 1.4rem;
}
.legende { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .82rem; color: var(--tinte-50); }
.legende li { display: inline-flex; align-items: center; gap: .4rem; }
.legende__punkt { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; }

.diagramm { display: flex; gap: .7rem; }
.diagramm__achse {
  display: flex; flex-direction: column; justify-content: space-between;
  height: 230px; font-size: .72rem; color: var(--tinte-30);
  font-variant-numeric: tabular-nums; text-align: right;
  padding-bottom: 22px; flex: 0 0 auto;
}
.diagramm__flaeche { position: relative; flex: 1; min-width: 0; }
.diagramm__raster {
  position: absolute; inset: 0 0 22px 0;
  display: flex; flex-direction: column; justify-content: space-between;
  pointer-events: none;
}
.diagramm__raster span { display: block; height: 1px; background: var(--grau-100); }

.saeulen {
  position: relative; display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 2px; align-items: stretch; height: 230px;
}
.saeule {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end; height: 100%; min-width: 0;
}
/* Die Spur nimmt die Höhe ohne Beschriftung ein – so sind die Prozentwerte exakt */
.saeule__spur {
  flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center;
}
.saeule__stapel {
  position: relative; width: 100%; max-width: 24px;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 2px; border-radius: 4px 4px 0 0; overflow: visible;
  transition: filter .2s var(--ease);
}
.saeule__stapel:focus-visible { outline: 2px solid var(--blau-500); outline-offset: 3px; }
.saeule__teil { display: block; width: 100%; min-height: 2px; }
/* 2 px Abstand in Flächenfarbe trennt die Segmente, ohne Rahmen zu zeichnen */
.saeule__teil--offen   { background: var(--dv-offen); border-radius: 4px 4px 0 0; margin-bottom: 2px; }
.saeule__teil--bezahlt { background: var(--dv-bezahlt); border-radius: 0 0 1px 1px; }
.saeule__stapel > .saeule__teil--bezahlt:first-child { border-radius: 4px 4px 1px 1px; }

.saeule__label {
  font-size: .7rem; color: var(--tinte-30); margin-top: .45rem;
  line-height: 1; white-space: nowrap;
}

.saeule__info {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(4px);
  min-width: 158px; padding: .55rem .7rem;
  background: var(--navy-900); color: rgba(255, 255, 255, .84);
  border-radius: var(--r-xs); font-size: .74rem; line-height: 1.5;
  box-shadow: var(--sch-3); pointer-events: none; z-index: 5;
  opacity: 0; visibility: hidden;
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.saeule__info strong { display: block; color: #fff; margin-bottom: .2rem; font-size: .8rem; }
.saeule__stapel:hover .saeule__info,
.saeule__stapel:focus-visible .saeule__info {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.saeule__stapel:hover { filter: brightness(1.08); }
/* Rand-Monate: Info-Box nach innen ausrichten, damit sie nicht aus dem Bild ragt */
.saeule:nth-child(-n+3) .saeule__info { left: 0; transform: translateY(4px); }
.saeule:nth-last-child(-n+3) .saeule__info { left: auto; right: 0; transform: translateY(4px); }
.saeule:nth-child(-n+3) .saeule__stapel:hover .saeule__info,
.saeule:nth-child(-n+3) .saeule__stapel:focus-visible .saeule__info,
.saeule:nth-last-child(-n+3) .saeule__stapel:hover .saeule__info,
.saeule:nth-last-child(-n+3) .saeule__stapel:focus-visible .saeule__info { transform: translateY(0); }

@media (max-width: 640px) {
  .saeule__label { font-size: .62rem; }
  .diagramm__achse { font-size: .66rem; }
}

/* --- Listen mit Balken --------------------------------------------------- */
.postenliste { display: grid; gap: .1rem; }
.postenliste li {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem .2rem; border-bottom: 1px solid var(--grau-100); font-size: .92rem;
}
.postenliste li:last-child { border-bottom: 0; }
.postenliste .mini { display: block; }
.postenliste__name { display: block; font-weight: 600; color: var(--tinte); }
.postenliste__balken { align-items: flex-start; }
/* Lange Listen laufen innerhalb der Karte, damit die Spalten gleich hoch bleiben */
.postenliste--rollen { max-height: 520px; overflow-y: auto; padding-right: .3rem; }
.postenliste--rollen::-webkit-scrollbar { width: 8px; }
.postenliste--rollen::-webkit-scrollbar-thumb { background: var(--grau-200); border-radius: 99px; }

.balken {
  display: block; height: 5px; margin-top: .4rem;
  background: var(--grau-100); border-radius: 3px; overflow: hidden;
}
.balken__fuell { display: block; height: 100%; background: var(--blau-500); border-radius: 3px; }

/* Zweifarbiger Balken: Breite = Umsatz, gefüllter Teil = schon bezahlt */
.balken__wert {
  display: block; height: 100%; border-radius: 3px;
  background: var(--dv-offen, #d9822b); overflow: hidden;
}
.balken__bezahlt {
  display: block; height: 100%; border-radius: 3px 0 0 3px;
  background: var(--dv-bezahlt, #0f9d76);
}

/* Auswahlfelder einheitlich zum restlichen Formular */
.feld select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364728c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 9.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
  padding-right: 2.4rem;
}
.feld input[type="file"] {
  width: 100%; padding: .6rem; font-size: .88rem;
  border: 1px dashed var(--grau-200); border-radius: var(--r-sm); background: var(--grau-50);
}
.feld input:disabled, .feld select:disabled, .feld textarea:disabled {
  background: var(--grau-50); color: var(--tinte-50); cursor: not-allowed;
}
/* Datumsfelder: gleiche Höhe wie Textfelder, Kalender-Symbol dezent */
.feld input[type="date"] { font-family: inherit; line-height: 1.2; }
.feld input[type="date"]::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }

/* --- Serienrechnung ------------------------------------------------------ */
.serie-werkzeuge {
  display: flex; flex-wrap: wrap; gap: .7rem; align-items: center;
  margin-bottom: .9rem;
}
.empfaengerliste {
  max-height: 340px; overflow-y: auto;
  border: 1px solid var(--linie); border-radius: var(--r);
  background: var(--weiss);
}
.empfaengerliste::-webkit-scrollbar { width: 8px; }
.empfaengerliste::-webkit-scrollbar-thumb { background: var(--grau-200); border-radius: 99px; }
.empfaenger {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .6rem .8rem; border-bottom: 1px solid var(--grau-100);
  cursor: pointer; font-size: .92rem;
}
.empfaenger:last-child { border-bottom: 0; }
.empfaenger:hover { background: var(--blau-50); }
.empfaenger input[type="checkbox"] {
  flex: 0 0 auto; width: 19px; height: 19px; margin-top: .12rem;
  accent-color: var(--blau-600); cursor: pointer;
}
.empfaenger .mini { display: block; }
.empfaenger[hidden] { display: none; }

/* --- 20. App-Modus: untere Tableiste, Handy-Feinschliff ------------------ */
/*  Ziel: Der Kundenbereich soll sich auf dem Handy wie eine App anfühlen.
    Die Leiste erscheint nur bis 860 px; darüber bleibt die Seitennavigation. */

.tableiste { display: none; }
.tableiste__schatten { display: none; }

@media (max-width: 860px) {

  /* 1. Seitennavigation wird zur Schublade von unten ---------------------- */
  .dash { grid-template-columns: 1fr; }
  .dash__seite {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    flex-direction: column; gap: .15rem;
    max-height: 82vh; max-height: 82dvh; overflow-y: auto;
    padding: .5rem 1rem calc(1.1rem + env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 40px rgba(4, 14, 32, .38);
    transform: translateY(101%);
    visibility: hidden;
    transition: transform .28s var(--ease), visibility .28s;
  }
  .dash__seite.ist-offen { transform: translateY(0); visibility: visible; }
  .dash__seite h3 { display: block; margin: 1rem .8rem .35rem; }
  .dash__seite a { white-space: normal; min-height: 46px; }
  .dash__seite-griff {
    width: 40px; height: 4px; border-radius: 99px;
    background: rgba(255, 255, 255, .28);
    margin: .35rem auto .5rem; flex: 0 0 auto;
  }
  .dash__seite-install { margin-top: 1rem; }

  .tableiste__schatten {
    display: block; position: fixed; inset: 0; z-index: 69;
    background: rgba(4, 14, 32, .5);
    opacity: 0; transition: opacity .28s var(--ease);
  }
  .tableiste__schatten.ist-sichtbar { opacity: 1; }
  .tableiste__schatten[hidden] { display: none; }

  /* 2. Die Tableiste ------------------------------------------------------ */
  .tableiste {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 68;
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid var(--linie);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tableiste__knopf {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; min-height: 56px; padding: .45rem .2rem .5rem;
    background: none; border: 0; cursor: pointer;
    font: inherit; font-size: 10.5px; font-weight: 560; letter-spacing: -.01em;
    color: var(--tinte-50); text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: color .18s var(--ease);
  }
  .tableiste__knopf.ist-aktiv,
  .tableiste__knopf[aria-expanded="true"] { color: var(--blau-600); }
  .tableiste__icon { width: 22px; height: 22px; flex: 0 0 auto; }

  /* Der «Neu»-Knopf sticht hervor */
  .tableiste__plus {
    width: 40px; height: 40px; margin-top: -14px; border-radius: 14px;
    background: var(--blau-600); color: #fff;
    display: grid; place-items: center;
    box-shadow: 0 5px 16px rgba(22, 104, 227, .4);
  }
  .tableiste__knopf--neu { color: var(--tinte-70); gap: 2px; }

  /* 3. Platz schaffen, damit die Leiste nichts verdeckt ------------------- */
  .dash__inhalt { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

  /* 4. Kennzahlen auf dem Handy zweispaltig statt riesig ------------------ */
  .kachelreihe { grid-template-columns: 1fr 1fr; gap: .65rem; }
  .kachel { padding: .8rem .85rem; }
  .kachel__wert { font-size: 1.4rem; }
  .kachel__label { font-size: .76rem; line-height: 1.35; }
  .kachel__kopf { margin-bottom: .4rem; }
  .kachel__kopf .karte__icon { width: 30px; height: 30px; border-radius: 9px; }

  /* 5. Tippen soll sich satt anfühlen ------------------------------------ */
  .btn { min-height: 48px; }
  .btn--klein { min-height: 40px; }

  /* 6. Der Cookie-Hinweis darf die Tableiste nicht verdecken ------------- */
  .cookie-banner { bottom: calc(76px + env(safe-area-inset-bottom)); }

  /* 7. Filterleiste: Suchfeld auf eine eigene Zeile --------------------- */
  .suchleiste { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; align-items: stretch; }
  .suchleiste .feld { min-width: 0; }
  .suchleiste .feld:first-child { grid-column: 1 / -1; }
  .suchleiste .feld input,
  .suchleiste .feld select { width: 100%; }
  .suchleiste .btn { grid-column: 1 / -1; }

  /* 8. Lange Tabellen werden zu Karten ---------------------------------- */
  .tabelle-wrap--karten {
    border: 0; background: none; overflow: visible; border-radius: 0;
  }
  .tabelle--karten,
  .tabelle--karten tbody,
  .tabelle--karten tr,
  .tabelle--karten td { display: block; width: 100%; min-width: 0; }
  .tabelle--karten thead { display: none; }
  .tabelle--karten tr {
    background: var(--weiss); border: 1px solid var(--linie);
    border-radius: var(--r); padding: .85rem 1rem; margin-bottom: .7rem;
    box-shadow: var(--sch-1);
  }
  .tabelle--karten td {
    border: 0; padding: .22rem 0;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    text-align: right; white-space: normal;
  }
  .tabelle--karten td::before {
    content: attr(data-spalte);
    flex: 0 0 auto; color: var(--tinte-50);
    font-size: .8rem; font-weight: 550; text-align: left;
  }
  .tabelle--karten td[data-spalte=""]::before { content: none; }
  /* Rechnungsnummer als Kopfzeile der Karte */
  .tabelle--karten .zelle--kopf {
    justify-content: flex-start; font-size: 1.02rem;
    padding-bottom: .35rem; margin-bottom: .35rem;
    border-bottom: 1px solid var(--grau-100);
  }
  .tabelle--karten .zelle--titel { font-weight: 600; }
  /* Leere Zellen (z. B. ohne Kategorie) verschwinden */
  .tabelle--karten td:empty { display: none; }
  .tabelle--karten .zelle--tat { justify-content: flex-end; padding-top: .55rem; }
  .tabelle--karten .zelle--tat .btn { min-width: 84px; }
}

/* Im installierten Zustand stört die Browser-Kopfzeile nicht mehr:
   etwas mehr Luft oben, damit nichts unter der Statusleiste klebt. */
.ist-app .kopfzeile { padding-top: env(safe-area-inset-top); }

@media (max-width: 860px) {
  /* Eine sehr kleine Anzeige darf die Leiste nicht überfüllen */
  @media (max-width: 340px) {
    .tableiste__knopf { font-size: 9.5px; }
    .tableiste__icon { width: 20px; height: 20px; }
  }
}

/* Hinweis für iPhone-Nutzer: dort gibt es keinen Installationsdialog. */
.ios-hinweis {
  display: flex; gap: .7rem; align-items: flex-start;
  background: var(--blau-50); border: 1px solid var(--blau-100);
  border-radius: var(--r); padding: .85rem 1rem;
  font-size: .88rem; color: var(--tinte-70); line-height: 1.5;
}
.ios-hinweis[hidden] { display: none; }
.ios-hinweis svg { flex: 0 0 auto; color: var(--blau-600); margin-top: .1rem; }

/* --- 21. Prüfliste (Stripe-Selbstprüfung) -------------------------------- */
.pruefliste { display: grid; gap: .55rem; list-style: none; padding: 0; margin: 0; }
.pruefliste__punkt {
  display: flex; gap: .7rem; align-items: flex-start;
  padding: .7rem .85rem; border-radius: var(--r-xs);
  border: 1px solid var(--linie); background: var(--grau-50);
  font-size: .91rem; line-height: 1.5;
}
.pruefliste__zeichen {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 7px;
  display: grid; place-items: center; margin-top: .05rem;
}
.pruefliste__text { display: block; color: var(--tinte-50); font-size: .86rem; margin-top: .15rem; }
.pruefliste__punkt--ok      { background: var(--gruen-50); border-color: rgba(15,157,118,.22); }
.pruefliste__punkt--ok      .pruefliste__zeichen { background: rgba(15,157,118,.14); color: var(--gruen); }
.pruefliste__punkt--fehler  { background: var(--rot-50); border-color: rgba(217,72,72,.25); }
.pruefliste__punkt--fehler  .pruefliste__zeichen { background: rgba(217,72,72,.14); color: var(--rot); }
.pruefliste__punkt--warnung { background: var(--gelb-50); border-color: rgba(224,145,44,.25); }
.pruefliste__punkt--warnung .pruefliste__zeichen { background: rgba(224,145,44,.15); color: var(--gelb); }
.pruefliste__punkt--info    .pruefliste__zeichen { background: var(--grau-100); color: var(--tinte-50); }

/* ===========================================================================
   Kunden-Import: Vorschau-Tabelle
=========================================================================== */
.importtabelle-wrap { max-height: 62vh; overflow: auto; }
.importtabelle { min-width: 1240px; font-size: .86rem; }
.importtabelle th { position: sticky; top: 0; z-index: 1; background: var(--grau-50); white-space: nowrap; }
.importtabelle td { padding: .3rem .35rem; vertical-align: middle; }
.importtabelle input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--blau-600); }
.importfeld {
  width: 100%; min-width: 0; padding: .42rem .5rem; font-size: .86rem;
  border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--tinte);
}
.importfeld:hover { border-color: var(--grau-200); background: var(--weiss); }
.importfeld:focus { outline: none; border-color: var(--blau-500); background: var(--weiss); box-shadow: 0 0 0 3px rgba(42,126,240,.14); }
.importfeld--nummer { width: 4.2rem; }
.importfeld--plz { width: 4.8rem; }
.importfeld--email { min-width: 13rem; }
.importfeld--firma { min-width: 9rem; }
.importfeld--vorname, .importfeld--nachname { min-width: 7.5rem; }
.importfeld--strasse { min-width: 11.5rem; }
.importfeld--ort { min-width: 8.5rem; }
.importtabelle tr.ist-aus td { opacity: .45; }
.importtabelle tr.ist-hinweis td:last-child .plakette { background: var(--gelb-50); color: #8d5a12; }

/* Textbausteine im Dokument-Editor */
.bausteinliste { display: grid; gap: .35rem; }
.bausteinliste li { display: flex; align-items: center; gap: .3rem; }
.bausteinliste__knopf {
  flex: 1; display: flex; align-items: center; gap: .45rem; text-align: left;
  padding: .5rem .65rem; border-radius: var(--r-xs); background: var(--grau-50);
  border: 1px solid var(--linie); font-size: .86rem; font-weight: 600; color: var(--tinte);
}
.bausteinliste__knopf:hover { border-color: var(--blau-400); color: var(--blau-700); }

/* ===========================================================================
   Gratis-Tools & Ratgeber-Text
=========================================================================== */
.karte--sanft { background: var(--grau-50); box-shadow: none; }
.inhaltstext > h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); margin-bottom: .7rem; }
.inhaltstext > p { max-width: 68ch; }
.inhaltstext > p + p { margin-top: .9rem; }
.inhaltstext .tabelle td, .inhaltstext .tabelle th { vertical-align: top; }
.tool-karte { display: flex; flex-direction: column; }
.tool-karte .karte__link { margin-top: auto; padding-top: 1rem; }
.tool-karte__plakette { align-self: flex-start; margin-bottom: .9rem; }
fieldset.feld { border: 0; padding: 0; margin: 0; min-width: 0; }
.feld__legende { font-size: .89rem; font-weight: 600; color: var(--tinte); padding: 0; margin-bottom: .45rem; }
.feld label.checkbox { font-weight: 400; }
.checkbox input[type="radio"] { width: 18px; height: 18px; margin-top: .18rem; flex: 0 0 auto; accent-color: var(--blau-600); }
/* Adresszeilen bleiben auch auf dem Handy nebeneinander: Strasse | Nr. und PLZ | Ort */
.feld-reihe--strasse { grid-template-columns: minmax(0, 1fr) 5.5rem; gap: .8rem; }
.feld-reihe--ort     { grid-template-columns: 6.5rem minmax(0, 1fr); gap: .8rem; }

/* Kampagnen: alter Preis durchgestrichen, Code-Chip */
.preis-alt { color: var(--tinte-30); font-size: 1.05rem; font-weight: 600; margin-right: .45rem; text-decoration-thickness: 2px; }
.code-chip {
  display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .95rem; border-radius: 999px;
  background: var(--weiss); border: 2px dashed var(--blau-400); color: var(--blau-700);
  font-weight: 750; letter-spacing: .06em; font-size: 1.02rem;
}
.kampagne-preise { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.kampagne-preise .karte { display: flex; flex-direction: column; gap: .35rem; }
.kampagne-preise .preiskarte__preis { margin: .2rem 0 0; }
.vergleich-tabelle td:nth-child(2), .vergleich-tabelle th:nth-child(2) { background: var(--blau-50); }
.vergleich-tabelle td { vertical-align: top; }
.ja  { color: var(--gruen); font-weight: 650; }
.nein { color: var(--tinte-50); }
.vorlage-vorschau {
  display: block; width: 100%; max-width: 420px; height: auto; margin-inline: auto;
  border-radius: var(--r); border: 1px solid var(--linie); box-shadow: var(--sch-3); background: #fff;
}

/* Tabellen, die auf dem Handy als Karten gestapelt werden (statt seitlich zu scrollen).
   Jede Zelle braucht ein data-label mit der Spaltenüberschrift. */
@media (max-width: 640px) {
  .tabelle--stapel { min-width: 0; }
  .tabelle--stapel thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tabelle--stapel tr { display: block; padding: .8rem 1rem; }
  .tabelle--stapel tbody tr + tr { border-top: 1px solid var(--grau-100); }
  .tabelle--stapel td {
    display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
    padding: .28rem 0; border: 0 !important; background: none !important; text-align: right;
  }
  .tabelle--stapel td::before {
    content: attr(data-label); flex: 0 0 42%; text-align: left;
    font-size: .8rem; font-weight: 600; color: var(--tinte-50);
  }
  .tabelle--stapel td:first-child { display: block; text-align: left; font-size: 1rem; padding-bottom: .45rem; }
  .tabelle--stapel td:first-child::before { content: none; }
  .vergleich-tabelle td:nth-child(2) { color: var(--blau-700); font-weight: 650; }
}
.kampagne-preise .preiskarte__preis { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .35rem; }
.kampagne-preise .preis-alt { flex-basis: 100%; margin: 0; }
