/* ==========================================================================
   EDVLINE — Entwurf 2026
   Farbe: Markenrot #ED1C24 auf Anthrazit-Marine (wie die Bürowand)
   Motiv:  die vier gestuften Quadrate aus dem Logo = Statusbalken
   ========================================================================== */

/* --- Tokens: Hell (Standard) --------------------------------------------- */
:root {
  --ground:      #FAF8F7;
  --surface:     #FFFFFF;
  --surface-2:   #F2EEED;
  --ink:         #14171E;
  --ink-2:       #454B58;
  --muted:       #636977;
  --line:        #E4DEDC;
  --line-strong: #CFC7C4;

  --red:         #ED1C24;
  --red-ink:     #C0141B;
  --red-soft:    #FDEBEA;

  --ok:          #2C7A56;
  --ok-soft:     #E4F1EA;
  --warn:        #A96410;

  --dark-ground: #14171E;
  --dark-panel:  #1C212B;
  --dark-line:   #2E3542;
  --dark-text:   #E9EAEE;
  --dark-muted:  #949BA9;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body:    "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --shell: 1140px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --r: 12px;
  --r-sm: 8px;
  --shadow: 0 1px 2px rgba(20, 23, 30, .04), 0 10px 28px -14px rgba(20, 23, 30, .14);
  --shadow-lift: 0 2px 4px rgba(20, 23, 30, .05), 0 18px 40px -18px rgba(20, 23, 30, .22);
}

/* --- Tokens: Dunkel ------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:      #0D1016;
    --surface:     #151A22;
    --surface-2:   #1E242F;
    --ink:         #E9EAEE;
    --ink-2:       #B7BDC9;
    --muted:       #8B94A3;
    --line:        #2A313C;
    --line-strong: #3A4350;

    --red:         #FF4038;
    --red-ink:     #FF7D74;
    --red-soft:    #2B1618;

    --ok:          #46B383;
    --ok-soft:     #12251D;
    --warn:        #D79A3E;

    --dark-ground: #090C11;
    --dark-panel:  #141922;
    --dark-line:   #262D38;
    --dark-text:   #E9EAEE;
    --dark-muted:  #8B94A3;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 30px -14px rgba(0,0,0,.55);
  --shadow-lift: 0 2px 6px rgba(0,0,0,.35), 0 20px 44px -18px rgba(0,0,0,.7);
  }
}
:root[data-theme="dark"] {
  --ground:      #0D1016;
  --surface:     #151A22;
  --surface-2:   #1E242F;
  --ink:         #E9EAEE;
  --ink-2:       #B7BDC9;
  --muted:       #8B94A3;
  --line:        #2A313C;
  --line-strong: #3A4350;

  --red:         #FF4038;
  --red-ink:     #FF7D74;
  --red-soft:    #2B1618;

  --ok:          #46B383;
  --ok-soft:     #12251D;
  --warn:        #D79A3E;

  --dark-ground: #090C11;
  --dark-panel:  #141922;
  --dark-line:   #262D38;
  --dark-text:   #E9EAEE;
  --dark-muted:  #8B94A3;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 30px -14px rgba(0,0,0,.55);
  --shadow-lift: 0 2px 6px rgba(0,0,0,.35), 0 20px 44px -18px rgba(0,0,0,.7);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--red-ink); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--red); }

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

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.018em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.prose { max-width: 64ch; }

/* Kleine Auszeichnungszeile in Mono — Bereichslabels, Daten, Status */
.tag {
  font-family: var(--f-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- Stufenquadrate (Logo-Motiv) ------------------------------------------ */
.steps { display: inline-flex; align-items: flex-end; gap: 3px; height: 14px; }
.steps i {
  display: block;
  width: 5px;
  background: var(--red);
  border-radius: 1px;
}
.steps i:nth-child(1) { height: 6px;  opacity: .45; }
.steps i:nth-child(2) { height: 14px; opacity: 1; }
.steps i:nth-child(3) { height: 9px;  opacity: .75; }
.steps i:nth-child(4) { height: 5px;  opacity: .35; }

/* --- Entwurfs-Hinweisstreifen --------------------------------------------- */
.draftbar {
  background: var(--warn);
  color: #14171E;
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .04em;
  padding: .5rem 0;
}
.draftbar .shell { display: flex; gap: .75rem; flex-wrap: wrap; align-items: baseline; }
.draftbar strong { font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }

/* --- Kopfbereich ---------------------------------------------------------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  /* Deckend als Grundlage — sonst scheint beim Scrollen der Inhalt durch,
     wenn der Browser den Weichzeichner nicht beherrscht (etwa ältere iPhones). */
  background: var(--ground);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
  .masthead {
    background: color-mix(in srgb, var(--ground) 88%, transparent);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    backdrop-filter: saturate(1.4) blur(10px);
  }
}
.masthead > .shell {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.5rem;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { width: 138px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.4rem; }
.nav a {
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
}
.nav a:hover { color: var(--red); }
.nav a[aria-current="page"] { color: var(--red); }
/* .nav a ist spezifischer als .btn-primary — Schriftfarbe hier zurückholen */
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
.nav a.btn { font-family: var(--f-display); }

/* --- Schaltflächen -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: -0.005em;
  padding: .78rem 1.35rem;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #C0141B; color: #fff; }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-onDark { border-color: rgba(255,255,255,.28); color: var(--dark-text); background: transparent; }
.btn-onDark:hover { border-color: var(--red); color: var(--red); }

/* --- Abschnittsrhythmus --------------------------------------------------- */
section { padding-block: clamp(2.75rem, 6vw, 4.75rem); }
.section-head { display: flex; flex-direction: column; gap: .9rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head .label { display: flex; align-items: center; gap: .7rem; }
.section-head h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
.section-head p { color: var(--ink-2); max-width: 62ch; }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  background: var(--dark-ground);
  color: var(--dark-text);
  padding-block: clamp(3.5rem, 9vw, 7rem);
  border-bottom: 1px solid var(--dark-line);
}
.hero .shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}
.hero .tag { color: var(--dark-muted); }
.hero h1 {
  font-size: clamp(2.4rem, 6.2vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-block: 1.1rem .1rem;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: #C6CCD8;
  max-width: 46ch;
  margin-top: 1.1rem;
}
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero .meta {
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--dark-line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem 2rem;
  max-width: 30rem;
}
.hero .meta div { display: flex; flex-direction: column; gap: .15rem; }
.hero .meta b {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark-text);
  font-variant-numeric: tabular-nums;
}
.hero .meta span { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .11em; text-transform: uppercase; color: var(--dark-muted); }

/* Die beiden Standbeine im Einstieg */
.saeulen { display: flex; flex-direction: column; gap: 1rem; }
.saeule {
  background: var(--dark-panel);
  border: 1px solid var(--dark-line);
  border-radius: var(--r);
  padding: clamp(1.35rem, 3vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: .6rem;
  box-shadow: 0 20px 50px -26px rgba(0,0,0,.8);
}
.saeule h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); color: var(--dark-text); }
.saeule p { color: #C6CCD8; font-size: .97rem; }
.saeule > a {
  margin-top: .35rem;
  align-self: flex-start;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: .95rem;
  color: var(--dark-text);
  text-decoration: none;
  border-bottom: 2px solid var(--red);
  padding-bottom: .12rem;
}
.saeule > a:hover { color: var(--red); }
.saeule > a::after { content: " \2192"; }

/* ==========================================================================
   Fernwartungsseite — als Ablauf gebaut, nicht als Artikel
   ========================================================================== */
.fw { padding-block: clamp(2.25rem, 5vw, 3.5rem) 0; }

.fw-intro { max-width: 34rem; margin-bottom: clamp(2.25rem, 5vw, 3.25rem); }
.fw-intro h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-block: .9rem 0;
}
.fw-intro h1 em { font-style: normal; color: var(--red); }
.fw-lead { margin-top: .9rem; font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--ink-2); }
.fw-hint {
  margin-top: 1.4rem;
  padding: .85rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: .95rem;
  color: var(--ink-2);
}
.fw-hint strong { color: var(--ink); }

/* Der rote Faden */
.rail { list-style: none; margin: 0; padding: 0; }
.rail-step {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0 1.5rem;
  padding-bottom: clamp(2.25rem, 5vw, 3.25rem);
  position: relative;
}
.rail-step::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 3rem;
  bottom: 0;
  width: 2px;
  background: var(--line);
  transform: translateX(-1px);
}
.rail-step:last-child { padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.rail-step:last-child::before { display: none; }
.rail-num {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.rail-body { display: flex; flex-direction: column; gap: .7rem; padding-top: .35rem; }
.rail-body h2 { font-size: clamp(1.3rem, 2.6vw, 1.75rem); }
.rail-body h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
.rail-body > p { color: var(--ink-2); max-width: 58ch; }

.fw-phone { display: flex; flex-wrap: wrap; gap: .4rem 2rem; margin-top: .3rem; }
.fw-phone a {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--red);
  padding-bottom: .1rem;
}
.fw-phone a:hover { color: var(--red); }

/* Die beiden Programme */
.choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(255px, 100%), 1fr));
  gap: 1.25rem;
  margin-top: .9rem;
}
.choice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.choice-head { display: flex; align-items: center; gap: .9rem; }
.choice-head h3 { font-size: 1.2rem; }
.choice-sub {
  font-family: var(--f-mono);
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .25rem;
}
.choice-logo {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  width: 60px;
  height: 60px;
  flex: none;
  display: grid;
  place-items: center;
  padding: .5rem;
}
.choice-logo img { max-height: 100%; width: auto; }
.choice-logo-wide { width: 128px; padding: .5rem .7rem; }
.choice-do { font-size: .97rem; color: var(--ink-2); }
.choice-do strong { color: var(--ink); }
.choice .btn { justify-content: center; }
.choice-shot { margin: 0; }
.choice-shot img {
  width: 100%;
  max-width: 240px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

/* Kurz gefragt */
.faq { padding-block: 0 clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); padding-top: clamp(2rem, 4vw, 3rem); }
.faq > h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 1.6rem; }
.faq dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 1.5rem 2.5rem; }
.faq dl > div { display: flex; flex-direction: column; gap: .35rem; }
.faq dt { font-family: var(--f-display); font-weight: 700; font-size: 1.02rem; }
.faq dd { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* Vollbreites Bildband */
.band { position: relative; }
.band img { width: 100%; height: clamp(240px, 34vw, 420px); object-fit: cover; display: block; }
.band figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.5rem var(--pad) 1.1rem;
  background: linear-gradient(to top, rgba(10,13,18,.85), rgba(10,13,18,0));
  color: #E9EAEE;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.band figcaption span { display: block; max-width: var(--shell); margin-inline: auto; }

/* Abschlussband mit Handlungsaufforderung */
.closer { background: var(--surface-2); }
.closer .shell { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.closer h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.closer p { color: var(--ink-2); max-width: 48ch; margin-top: .5rem; }
.closer .actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: .75rem; }

/* --- Karten --------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(235px, 100%), 1fr));
  gap: 1.1rem;
}
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .cards-2 { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: .85rem;
  transition: box-shadow .18s ease, transform .18s ease;
}
@media (hover: hover) {
  .card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover { transform: none; }
}
.card h3 { font-size: 1.2rem; }
.card p { color: var(--ink-2); font-size: .98rem; }
.card ul { margin: .2rem 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.card ul li {
  font-size: .92rem;
  color: var(--ink-2);
  padding-left: 1.1rem;
  position: relative;
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 5px; height: 5px;
  background: var(--red);
  border-radius: 1px;
}

/* --- Ablauf (echte Reihenfolge, daher nummeriert) ------------------------- */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 1.75rem; }
.flow > li { list-style: none; display: flex; flex-direction: column; gap: .6rem; padding-top: 1.1rem; border-top: 2px solid var(--red); }
.flow .num {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--red-ink);
  font-variant-numeric: tabular-nums;
}
.flow h3 { font-size: 1.08rem; }
.flow p { color: var(--ink-2); font-size: .95rem; }

/* --- Pakete --------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 1.25rem; align-items: start; }
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}
.plan.is-featured { border-color: var(--red); box-shadow: 0 0 0 1px var(--red), var(--shadow-lift); }
.plan .plan-top { display: flex; flex-direction: column; gap: .45rem; }
.plan h3 { font-size: 1.35rem; }
.plan .who { color: var(--muted); font-size: .92rem; }
.plan .price {
  font-family: var(--f-display);
  font-size: 2.1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: .4rem;
}
.plan .price small { font-family: var(--f-body); font-size: .85rem; font-weight: 400; color: var(--muted); }
.plan .price.is-placeholder { color: var(--muted); }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.plan ul li { font-size: .95rem; color: var(--ink-2); padding-left: 1.35rem; position: relative; }
.plan ul li::before {
  content: "";
  position: absolute; left: 0; top: .45em;
  width: 9px; height: 5px;
  border-left: 2px solid var(--ok);
  border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}
.plan .btn { margin-top: auto; justify-content: center; }
.placeholder {
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--red-soft);
  color: var(--red-ink);
  border: 1px dashed var(--red-ink);
  padding: .15rem .45rem;
  border-radius: 2px;
  overflow-wrap: anywhere;
}

/* Aktionsband über den Tarifen: Einrichtungsgebühr entfällt zurzeit (23.09.2026) */
.aktion-band {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .85rem;
  margin: 1.4rem 0 0; padding: .85rem 1.15rem;
  border: 1px solid color-mix(in srgb, var(--red) 40%, transparent);
  border-radius: 14px; background: color-mix(in srgb, var(--red) 7%, transparent);
  font-size: 1rem; line-height: 1.5;
}
.aktion-band > strong {
  flex: none; padding: .28rem .72rem; border-radius: 999px;
  background: var(--red-knopf, #E41921); color: #fff;
  font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.aktion-band > span { flex: 1 1 20rem; min-width: 0; }

.plans-note {
  margin-top: 1.5rem;
  font-size: .95rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: .5rem;
  max-width: 68ch;
}
.plans-note strong { color: var(--ink); }
.plans-note p { max-width: 68ch; }
.plans-note .placeholder { margin-left: .3rem; }

/* --- Checkliste zum Herunterladen ---------------------------------------- */
.dl-blatt {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: center;
}
.dl-blatt > div:first-child { flex: 1 1 22rem; }
.dl-blatt h2 { font-size: clamp(1.25rem, 2.6vw, 1.65rem); margin-top: .6rem; }
.dl-blatt p { color: var(--ink-2); margin-top: .7rem; max-width: 58ch; }
.dl-meta {
  font-family: var(--f-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.dl-aktion { flex: 0 0 auto; }

/* --- Zehn Beispiele für individuelle Lösungen ----------------------------- */
.moeglich {
  margin-top: 2.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.moeglich > h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
.moeglich-lead { margin-top: .7rem; color: var(--ink-2); max-width: 66ch; font-size: .97rem; }
.moeglich ol {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  counter-reset: m;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: 1.4rem 2.5rem;
}
.moeglich ol li {
  counter-increment: m;
  position: relative;
  padding-left: 2.5rem;
}
.moeglich ol li::before {
  content: counter(m, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: .1em;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--red-ink);
}
.moeglich ol b { font-family: var(--f-display); font-size: 1.02rem; display: block; }
.moeglich ol span { display: block; margin-top: .25rem; color: var(--ink-2); font-size: .93rem; }
.moeglich-fuss { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .93rem; max-width: 66ch; }

/* --- Tabelle -------------------------------------------------------------- */
.table-wrap { margin-top: 2rem; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .95rem; }
caption { text-align: left; padding: 1rem 1.15rem; color: var(--muted); font-size: .88rem; border-bottom: 1px solid var(--line); }
th, td { text-align: left; padding: .8rem 1.15rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
tbody th { font-weight: 600; color: var(--ink); }
td.mid, th.mid { text-align: center; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tbody td.num { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.yes { color: var(--ok); font-weight: 700; }
.no  { color: var(--muted); }

/* --- Über mich ------------------------------------------------------------ */
.about { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.about .portrait { border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); }
.about .body { display: flex; flex-direction: column; gap: 1.1rem; }
.about .body p { color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 1.25rem; margin-top: .6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.facts div { display: flex; flex-direction: column; gap: .1rem; }
.facts b { font-family: var(--f-display); font-size: .98rem; font-weight: 700; line-height: 1.3; }
.facts span { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* --- Fernwartung ---------------------------------------------------------- */
.remote { background: var(--surface-2); }
.remote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 1.25rem; }
.remote-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: clamp(1.4rem, 3vw, 1.9rem); display: flex; flex-direction: column; gap: .8rem; }
.remote-card h3 { font-size: 1.1rem; }
.remote-card p { font-size: .95rem; color: var(--ink-2); }
.notes { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.notes > div { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; }
.notes .n { font-family: var(--f-mono); font-size: .72rem; color: var(--red-ink); padding-top: .28em; }
.notes p { font-size: .95rem; color: var(--ink-2); }
.notes strong { color: var(--ink); }

/* --- Kontakt -------------------------------------------------------------- */
.contact { background: var(--dark-ground); color: var(--dark-text); }
.contact .shell { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: clamp(2rem, 5vw, 4rem); }
.contact h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
.contact .lead { color: #C6CCD8; margin-top: 1rem; max-width: 42ch; }
.contact .tag { color: var(--dark-muted); }
.contact dl { margin: 0; display: flex; flex-direction: column; gap: 1.15rem; }
.contact dt { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .11em; text-transform: uppercase; color: var(--dark-muted); margin-bottom: .2rem; }
.contact dd { margin: 0; font-size: 1.05rem; }
.contact dd a { color: var(--dark-text); text-decoration-color: rgba(255,255,255,.35); }
.contact dd a:hover { color: var(--red); }
.contact dd .sub { display: block; margin-top: .3rem; font-size: .88rem; color: var(--dark-muted); }
.contact dd .sub a { color: var(--dark-muted); }
.contact dd .sub a:hover { color: var(--red); }

/* --- Fußbereich ----------------------------------------------------------- */
.foot { background: var(--dark-ground); color: var(--dark-muted); border-top: 1px solid var(--dark-line); padding-block: 2rem; font-size: .88rem; }
.foot .shell { display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; align-items: center; }
.foot a { color: var(--dark-muted); text-decoration: none; }
.foot a:hover { color: var(--red); }
.foot .right { margin-left: auto; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; }

/* --- Umschaltbarer Hinweisstreifen ---------------------------------------- */
.notice {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  padding: .7rem 0;
  font-size: .95rem;
  color: var(--ink-2);
}
.notice .shell { display: flex; align-items: baseline; gap: .7rem; }
.notice-dot {
  width: 8px; height: 8px; flex: none;
  border-radius: 50%;
  background: var(--warn);
  transform: translateY(-1px);
}

/* --- Die ersten Wochen ---------------------------------------------------- */
.phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 1.75rem; }
.phases li { display: flex; flex-direction: column; gap: .55rem; padding-top: 1.1rem; border-top: 2px solid var(--red); }
.phases .ph {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red-ink);
}
.phases h3 { font-size: 1.08rem; }
.phases p { color: var(--ink-2); font-size: .95rem; }

/* --- Grenzen des Angebots ------------------------------------------------- */
.scope {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  background: var(--surface-2);
  border-radius: var(--r);
  font-size: .97rem;
  color: var(--ink-2);
  max-width: 72ch;
}
.scope strong { color: var(--ink); }

/* --- Ausfallszenarien ----------------------------------------------------- */
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 1.1rem; }
.cases article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.cases .when {
  font-family: var(--f-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red-ink);
}
.cases h3 { font-size: 1.05rem; }
.cases p { font-size: .94rem; color: var(--ink-2); }
.cases-note { margin-top: 1.5rem; font-size: .97rem; color: var(--ink-2); max-width: 68ch; }

/* --- Anfrageformular ------------------------------------------------------ */
.form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.75rem; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 1rem; }
.form label { display: flex; flex-direction: column; gap: .35rem; }
.form .lbl {
  font-family: var(--f-mono);
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dark-muted);
}
.form input, .form textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--dark-text);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--dark-line);
  border-radius: var(--r-sm);
  padding: .7rem .85rem;
  width: 100%;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: transparent; }
.form textarea { min-height: 8rem; resize: vertical; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .send { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form .hint { font-size: .85rem; color: var(--dark-muted); max-width: 42ch; }
.form .hint a { color: var(--dark-muted); }
.form .hint a:hover { color: var(--red); }

/* --- Einsatzgebiet -------------------------------------------------------- */
.area-grid {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.area-map { width: 100%; height: auto; display: block; }
.area-list {
  columns: 3;
  column-gap: 2rem;
  font-size: .97rem;
  color: var(--ink-2);
}
.area-list span { display: block; padding: .22rem 0; break-inside: avoid; }
.area-note { margin-top: 1.5rem; font-size: .95rem; color: var(--muted); max-width: 60ch; }
.area-note a { font-weight: 600; }

@media (max-width: 860px) {
  .area-grid { grid-template-columns: 1fr; }
  .area-map { max-width: 340px; margin-inline: auto; }
}
@media (max-width: 520px) {
  .area-list { columns: 2; }
}

/* ==========================================================================
   Fernwartungsseite
   ========================================================================== */
.fw-hint {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--r) var(--r) 0;
  padding: .8rem 1.05rem;
  font-size: .93rem;
  color: var(--ink-2);
}
.fw-hint strong { color: var(--ink); }

.fw-logo {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: grid;
  place-items: center;
  flex: none;
  /* Ein einziges Rasterfeld für beide Logos — quadratisches Symbol und
     breiter Schriftzug sitzen darin gleich groß nebeneinander. */
  width: 132px;
  height: 60px;
  padding: .5rem .75rem;
}
.fw-logo img { max-height: 40px; max-width: 108px; width: auto; height: auto; }

.fw-shot img {
  width: 100%;
  height: 340px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .6rem;
}
.fw-shot figcaption {
  margin-top: .5rem;
  font-family: var(--f-mono);
  font-size: .64rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.fw-faq { border-top: 1px solid var(--line); padding-top: clamp(1.75rem, 4vw, 2.5rem); }
.fw-faq h2 { font-size: 1.35rem; margin-bottom: 1.4rem; }
.fw-faq dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 1.4rem 2.5rem; }
.fw-faq dl > div { display: flex; flex-direction: column; gap: .3rem; }
.fw-faq dt { font-family: var(--f-display); font-weight: 700; font-size: 1rem; }
.fw-faq dd { margin: 0; color: var(--ink-2); font-size: .94rem; }

/* ==========================================================================
   Fernwartungsseite — Inhalt links, Kontaktbox rechts
   ========================================================================== */
.fw { padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.fw-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19rem;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.fw h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); font-weight: 800; letter-spacing: -.03em; }
.fw h1 em { font-style: normal; color: var(--red); }
.fw .sub { margin-top: .9rem; font-size: 1.08rem; color: var(--ink-2); max-width: 56ch; }
.fw h2 { font-size: 1.4rem; margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.fw .art > p { color: var(--ink-2); margin-top: .7rem; max-width: 60ch; }
.fw .fw-hint { margin-top: 1.25rem; }

.fw-row {
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: 1.2rem 1.35rem;
  margin-top: 1rem;
}
.fw-row h3 { font-size: 1.12rem; }
.fw-row p { font-size: .93rem; color: var(--ink-2); margin-top: .2rem; }
.fw-row .btn { white-space: nowrap; }

.fw-steps { margin: 1rem 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .7rem; counter-reset: s; }
.fw-steps li {
  counter-increment: s;
  padding-left: 2.4rem;
  position: relative;
  color: var(--ink-2);
}
.fw-steps li::before {
  content: counter(s);
  position: absolute;
  left: 0; top: .05em;
  width: 1.7rem; height: 1.7rem;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red-ink);
  font-family: var(--f-mono);
  font-size: .78rem;
  display: grid;
  place-items: center;
}
.fw-steps strong { color: var(--ink); }

.fw-aside { position: sticky; top: 6rem; display: flex; flex-direction: column; gap: 1rem; }
.fw-box {
  box-shadow: var(--shadow-lift);
  background: var(--dark-ground);
  color: var(--dark-text);
  border-radius: var(--r);
  padding: 1.4rem;
}
.fw-box h3 { font-size: 1.08rem; margin-bottom: .9rem; }
.fw-box dl { margin: 0; display: flex; flex-direction: column; gap: .9rem; }
.fw-box dt { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dark-muted); }
.fw-box dd { margin: .15rem 0 0; }
.fw-box dd a { color: var(--dark-text); font-family: var(--f-display); font-weight: 600; font-size: 1.08rem; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); }
.fw-box dd a:hover { color: var(--red); }
.fw-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.2rem;
  font-size: .93rem;
  color: var(--ink-2);
}
.fw-card h3 { font-size: 1rem; margin-bottom: .5rem; }

/* Bilder und Fragen laufen über die volle Breite, damit rechts kein Loch bleibt */
.fw-wide { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.fw-shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 1.5rem;
  max-width: 760px;
  margin-block: clamp(2rem, 4vw, 3rem);
}
.fw-wide .fw-faq { margin-top: 0; }
.fw-faq dl { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }

@media (max-width: 900px) {
  .fw-cols { grid-template-columns: 1fr; }
  .fw-aside { position: static; }
}
@media (max-width: 620px) {
  .fw-row { grid-template-columns: 1fr; }
  .fw-row .btn { justify-self: start; }
}

/* --- Rechtsseiten (Impressum / Datenschutz) ------------------------------- */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal h1 { font-size: clamp(1.9rem, 5vw, 2.75rem); margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2.25rem; margin-bottom: .6rem; }
.legal p, .legal li { color: var(--ink-2); max-width: 68ch; }
.legal p { margin-bottom: .9rem; }
.legal address { font-style: normal; line-height: 1.8; }
.legal ul { padding-left: 1.2rem; }

/* --- Umbrüche ------------------------------------------------------------- */
@media (max-width: 620px) {
  .rail-step { grid-template-columns: 2.4rem minmax(0, 1fr); gap: 0 1rem; }
  .rail-step::before { left: 1.2rem; top: 2.4rem; }
  .rail-num { width: 2.4rem; height: 2.4rem; font-size: 1.1rem; }
}

@media (max-width: 900px) {
  .hero .shell { grid-template-columns: minmax(0, 1fr); }
  .about { grid-template-columns: minmax(0, 1fr); }
  .about .portrait { max-width: 260px; }
}
@media (max-width: 1140px) {
  .masthead > .shell { min-height: auto; padding-block: .7rem; gap: .75rem; flex-wrap: nowrap; }
  .brand img { width: 116px; }

  /* Ohne JavaScript bleibt die alte scrollbare Zeile — die Seite ist dann
     immer noch vollständig bedienbar. */
  .nav { margin-left: 0; width: 100%; overflow-x: auto; gap: 1.1rem; padding-bottom: .2rem; }
  .nav a { white-space: nowrap; font-size: .9rem; }
  .nav a.btn { order: -1; padding: .55rem 1rem; }
}

/* --- Sprung nach oben ----------------------------------------------------- */
.nach-oben {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 30;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  box-shadow: var(--shadow-lift);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nach-oben svg { width: 20px; height: 20px; }
.nach-oben:hover { border-color: var(--red); color: var(--red); }
body.zeig-nach-oben .nach-oben { opacity: 1; visibility: visible; transform: none; }
@media (prefers-reduced-motion: reduce) { .nach-oben { transition: none; } }
/* Ohne JavaScript bleibt der Knopf unsichtbar — er hätte dort keine Funktion. */

/* --- Klappmenü ------------------------------------------------------------ */
.burger { display: none; }

@media (max-width: 1140px) {
  .js .burger {
    display: grid;
    place-content: center;
    gap: 5px;
    margin-left: auto;
    width: 46px;
    height: 42px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    cursor: pointer;
  }
  .js .burger span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform .18s ease, opacity .18s ease;
  }
  .js .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .js .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .js .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  @media (prefers-reduced-motion: reduce) { .js .burger span { transition: none; } }

  .js .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: auto;
    overflow: visible;
    padding: .5rem var(--pad) 1.25rem;
    background: var(--ground);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lift);
  }
  .js body.menue-offen .nav { display: flex; }

  .js .nav a {
    font-size: 1.08rem;
    padding: .95rem .25rem;
    border-bottom: 1px solid var(--line);
    white-space: normal;
  }
  .js .nav a.btn {
    order: 0;
    margin-top: 1.1rem;
    padding: .95rem 1.25rem;
    justify-content: center;
    font-size: 1rem;
    border-bottom: 0;
  }
  .masthead { position: sticky; }
  .masthead > .shell { position: relative; }
}

/* ---- E-Mail-Schutz ----------------------------------------------------
   Vor dem Zusammensetzen im Browser ist .mail kein anklickbarer Link.
   Ohne JavaScript bleibt die Adresse trotzdem lesbar. */
a.mail:not([href]) {
  color: inherit;
  text-decoration: none;
  cursor: text;
}

/* ---- Kleinigkeiten ohne style-Attribut -------------------------------------
   Damit im HTML keine Formatierung mehr direkt drinsteht und die
   Sicherheitsregel (Content-Security-Policy) ohne Ausnahme auskommt. */
.knopfzeile { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.abstand-oben { margin-top: 2rem; }
.ohne-linie { border-top: 0; padding-top: 0; }
.ergebnis { border-left: 4px solid var(--line); padding-left: 1rem; }
.ergebnis-ok { border-left-color: var(--ok); }
.ergebnis-fehler { border-left-color: var(--red); }

/* ---- Sprungmarke für die Tastatur ------------------------------------------
   Nur sichtbar, wenn jemand mit der Tabulatortaste ankommt. */
.sprungmarke {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 100;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  background: var(--red);
  color: #fff;
  padding: 0;
  border-radius: 0 0 var(--r-sm) 0;
  font-size: .95rem;
  text-decoration: none;
}
.sprungmarke:focus {
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  padding: .7rem 1.1rem;
}

/* Lange deutsche Wörter dürfen auf schmalen Handys umbrechen,
   sonst schiebt ein einziges Wort die ganze Seite zur Seite. */
body { overflow-wrap: break-word; }

/* --- Referenzen: aus welchen Bereichen die Kunden kommen -------------------- */
.referenzen {
  margin-top: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.referenzen > h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); }
.referenzen-lead {
  margin-top: .7rem;
  max-width: 62ch;
  color: var(--ink-2);
  font-size: .97rem;
}
.ref-gruppen { margin: 1.9rem 0 0; }
.ref-gruppen > div {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: .75rem 1.5rem;
  align-items: baseline;
  padding: 1.05rem 0;
  border-top: 1px solid var(--line);
}
.ref-gruppen > div:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 720px) {
  .ref-gruppen > div { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
}
.ref-gruppen dt {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.ref-gruppen dd { margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.ref-gruppen dd span {
  display: inline-block;
  padding: .32rem .7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: .88rem;
  line-height: 1.35;
}
.referenzen-fuss {
  margin-top: 2rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  max-width: 68ch;
  color: var(--ink-2);
  font-size: .95rem;
}
.referenzen-fuss b { color: var(--ink); }

/* Sternchen am Preis — soll klein bleiben, nicht wie ein Link aussehen */
.plan .price small a { color: var(--red-ink); text-decoration: none; font-weight: 600; }
.plan .price small a:hover { text-decoration: underline; }

/* --- Kopf der Unterseiten --------------------------------------------------
   Kürzer als der Einstieg auf der Startseite, gleiche dunkle Fläche. */
.seitenkopf {
  background: var(--dark-ground);
  color: var(--dark-text);
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--dark-line);
}
.seitenkopf .tag { color: var(--dark-muted); }
.seitenkopf h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -.025em;
  margin-top: 1rem;
  max-width: 18ch;
}
.seitenkopf h1 em { font-style: normal; color: var(--red); }
.seitenkopf .lead {
  margin-top: 1.4rem;
  max-width: 62ch;
  color: var(--dark-muted);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
}

/* Auf sehr schmalen Handys stehen die vier Eckdaten untereinander —
   nebeneinander passen die Begriffe sonst nicht mehr in die Spalte. */
@media (max-width: 420px) {
  .hero .meta { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
}

.hero h1 { max-width: 14ch; }
.hero .lead strong { color: var(--dark-text); }

/* --- Hinweis für Briefempfänger (Webseiten-Seite) -------------------------- */
#post { padding-block: clamp(2rem, 5vw, 3rem); }
.post-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem 3rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 3vw, 2.1rem);
}
.post-box .tag { color: var(--red-ink); }
.post-box h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); margin-top: .35rem; }
.post-box p { color: var(--ink-2); max-width: 64ch; margin-top: .75rem; }
.post-box p strong { color: var(--ink); }
.post-aktionen { display: flex; flex-direction: column; gap: .7rem; min-width: 15rem; }
.post-aktionen .btn { justify-content: center; text-align: center; }
.post-link { font-size: .92rem; color: var(--ink-2); text-align: center; }
@media (max-width: 820px) {
  .post-box { grid-template-columns: minmax(0, 1fr); }
  .post-aktionen { min-width: 0; }
}

/* ==========================================================================
   Aufgepeppt (16.09.2026) — gleiche Gestaltung, mehr Tiefe und Bewegung.
   Alles Zusätzliche ist abschaltbar: ohne JavaScript bleibt alles sichtbar,
   bei „Bewegung reduzieren" im System entfallen Animationen.
   ========================================================================== */

/* --- Tiefe im dunklen Einstieg -------------------------------------------- */
.hero, .seitenkopf {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(52rem 34rem at 88% -12%, rgba(237, 28, 36, .20), transparent 62%),
    radial-gradient(40rem 26rem at -8% 115%, rgba(237, 28, 36, .09), transparent 60%),
    var(--dark-ground);
}
.hero::before, .seitenkopf::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(115deg, transparent 35%, #000 75%);
          mask-image: linear-gradient(115deg, transparent 35%, #000 75%);
  pointer-events: none;
}
.hero::after, .seitenkopf::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), rgba(237, 28, 36, 0) 70%);
}

/* --- Die beiden Standbeine ------------------------------------------------ */
.saeule {
  position: relative;
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.saeule::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  height: 3px; width: 3rem;
  background: var(--red);
  transition: width .35s ease;
}
.saeule > a::after { display: inline-block; transition: transform .2s ease; }
@media (hover: hover) {
  .saeule:hover { transform: translateY(-3px); border-color: rgba(237, 28, 36, .45); box-shadow: 0 28px 60px -28px rgba(0, 0, 0, .9); }
  .saeule:hover::before { width: 100%; }
  .saeule:hover > a::after { transform: translateX(4px); }
}

/* --- Knöpfe --------------------------------------------------------------- */
.btn { transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease; }
@media (hover: hover) {
  .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(237, 28, 36, .65); }
  .btn-ghost:hover, .btn-onDark:hover { transform: translateY(-1px); }
}
.btn:active { transform: translateY(0); box-shadow: none; }

/* --- Menü: Unterstrich wächst beim Überfahren ------------------------------ */
@media (min-width: 1141px) and (hover: hover) {
  .nav a:not(.btn) { position: relative; }
  .nav a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -.35rem;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
  }
  .nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
}

/* --- Preiskarten heben sich beim Überfahren ------------------------------ */
.plan { transition: transform .2s ease, box-shadow .2s ease; }
@media (hover: hover) {
  .plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
  .plan.is-featured:hover { box-shadow: 0 0 0 1px var(--red), 0 26px 50px -24px rgba(237, 28, 36, .35); }
}
.plan .price { transition: color .2s ease; }
.plan:hover .price { color: var(--red); }

/* --- Eckdaten im Einstieg: kleine rote Markierung ------------------------ */
.hero .meta > div { position: relative; padding-left: .85rem; }
.hero .meta > div::before {
  content: "";
  position: absolute;
  left: 0; top: .3rem;
  height: 1.35rem;
  width: 3px;
  border-radius: 2px;
  background: var(--red);
}

/* --- Ablauf: Nummern leuchten kurz auf, wenn sie ins Bild kommen --------- */
.rail-num { box-shadow: 0 0 0 0 rgba(237, 28, 36, .45); }
.js .rail-step.sichtbar .rail-num { animation: puls 1.1s ease-out .15s 1; }
/* (läuft einmal beim Einblenden) */
@keyframes puls {
  0%   { box-shadow: 0 0 0 0 rgba(237, 28, 36, .45); }
  100% { box-shadow: 0 0 0 14px rgba(237, 28, 36, 0); }
}

/* --- Einblenden beim Scrollen --------------------------------------------- */
.js .einblenden {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
}
.js .einblenden.sichtbar { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .saeule, .saeule::before, .saeule a::after, .btn, .plan, .nav a::after { transition: none !important; }
  .saeule:hover, .plan:hover, .btn:hover { transform: none !important; }
  .js .einblenden { opacity: 1; transform: none; transition: none; }
  .js .rail-step.sichtbar .rail-num { animation: none; }
}
@media print {
  .js .einblenden { opacity: 1 !important; transform: none !important; }
  .hero::before, .seitenkopf::before { display: none; }
}

/* --- Brief erhalten? (brief.php) ------------------------------------------ */
.brief-bereich { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.brief-raster { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.brief-karte {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.brief-karte h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: .3rem; }
.brief-karte > p { color: var(--ink-2); margin-top: .8rem; }
.brief-schritt { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red-ink); }
.brief-fehler { background: var(--red-soft); color: var(--red-ink) !important; border-radius: var(--r-sm); padding: .7rem .9rem; font-weight: 600; }
.brief-hinweis { background: var(--surface-2); border-radius: var(--r-sm); padding: .9rem 1rem; }
.brief-entwurf { font-weight: 600; color: var(--red-ink); }
.brief-code { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .8rem; margin-top: 1.4rem; }
.brief-code label { flex: 1 1 14rem; display: flex; flex-direction: column; gap: .35rem; }
.brief-code input {
  font: 600 1.35rem/1.2 var(--f-mono);
  letter-spacing: .12em;
  padding: .75rem .9rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  width: 100%;
}
.brief-code input:focus, .brief-form input:focus, .brief-form textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
.brief-form { margin-top: 1.6rem; display: flex; flex-direction: column; gap: 1.3rem; }
.brief-wahl { border: 0; margin: 0; padding: 0; display: grid; gap: .6rem; }
.brief-wahl legend { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; margin-bottom: .6rem; }
.wahl {
  display: flex; gap: .85rem; align-items: flex-start;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: .85rem 1rem; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.wahl:hover { border-color: var(--line-strong); }
.wahl input { accent-color: var(--red); margin-top: .3rem; width: 1.1rem; height: 1.1rem; flex: none; }
.wahl span { display: flex; flex-direction: column; }
.wahl small { color: var(--muted); font-size: .92rem; }
.wahl:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.wahl-leise strong { font-weight: 600; }
.brief-felder { display: flex; flex-direction: column; gap: .9rem; }
.brief-felder .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: .9rem; }
.brief-felder label { display: flex; flex-direction: column; gap: .35rem; }
.brief-felder input, .brief-felder textarea {
  font: inherit; padding: .7rem .8rem; border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm); background: var(--surface); color: var(--ink); width: 100%;
}
.brief-felder textarea { min-height: 7rem; resize: vertical; }
.brief-klein { font-size: .92rem; color: var(--muted); }
/* „Keine Post mehr“ gewählt: Kontaktfelder sind überflüssig */
.brief-form:has(input[value="keine"]:checked) .brief-felder { display: none; }
.brief-form .send { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; }
.brief-form .hint { font-size: .9rem; color: var(--muted); max-width: 36ch; }
.brief-seite { padding-top: .4rem; }
.brief-seite h3 { font-size: 1.05rem; }
.brief-seite h3 + p { margin-top: .4rem; }
.brief-seite p { color: var(--ink-2); font-size: .97rem; }
.brief-seite p + h3 { margin-top: 1.8rem; }
.brief-telefon { font: 700 1.5rem var(--f-display); color: var(--ink); text-decoration: none; }
.brief-telefon:hover { color: var(--red); }
@media (max-width: 860px) { .brief-raster { grid-template-columns: minmax(0, 1fr); } }

/* Menüpunkt „Brief erhalten?“ — ganz rechts, dunkel und auffällig,
   damit Briefempfänger ihn sofort finden und er sich vom roten Knopf abhebt */
.nav a.nav-brief {
  order: 10;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .72rem 1.15rem .72rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.1;
  box-shadow: 0 0 0 3px rgba(237, 28, 36, .22), 0 8px 18px -8px rgba(20, 23, 30, .55);
  transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.nav a.nav-brief::before {
  content: "";
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  background-color: var(--red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%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='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* kleiner „neue Post“-Punkt am Umschlag */
.nav a.nav-brief::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  left: 2.02rem;
  top: .56rem;
  bottom: auto; right: auto;
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: #FFC400;
  border: 2px solid var(--ink);
  transform: none !important;
  animation: post-punkt 2.4s ease-out infinite;
}
@keyframes post-punkt {
  0%   { box-shadow: 0 0 0 0 rgba(255, 196, 0, .75); }
  70%  { box-shadow: 0 0 0 8px rgba(255, 196, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 196, 0, 0); }
}
.nav a.nav-brief:hover, .nav a.nav-brief[aria-current="page"] {
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(237, 28, 36, .28), 0 10px 22px -8px rgba(237, 28, 36, .6);
}
.nav a.nav-brief:hover::before, .nav a.nav-brief[aria-current="page"]::before { background-color: #fff; }
.nav a.nav-brief:hover::after, .nav a.nav-brief[aria-current="page"]::after { border-color: var(--red); }
@media (hover: hover) { .nav a.nav-brief:hover { transform: translateY(-1px); } }
@media (max-width: 1140px) {
  .js .nav a.nav-brief {
    order: -1;
    justify-content: center;
    margin: .8rem 0 .4rem;
    padding: .95rem 1rem;
    border-bottom: 0;
    font-size: 1.05rem;
  }
  .js .nav a.nav-brief::after { display: none !important; }  /* im großen Handy-Knopf überflüssig */
}
@media (prefers-reduced-motion: reduce) {
  .nav a.nav-brief { transition: none; }
  .nav a.nav-brief::after { animation: none; }
}

/* Honigtopf-Feld gegen Spam: für Menschen nie sichtbar, auf jeder Seite */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* --- Fragen zum Aufklappen (17.09.2026) ----------------------------------- */
.faq-liste { display: flex; flex-direction: column; border-top: 1px solid var(--line); max-width: 52rem; }
.faq-liste details { border-bottom: 1px solid var(--line); }
.faq-liste summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  padding: 1.05rem .2rem;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}
.faq-liste summary::-webkit-details-marker { display: none; }
.faq-liste summary::after {
  content: "";
  flex: none;
  width: 1.9rem; height: 1.9rem;
  border-radius: 50%;
  background:
    linear-gradient(var(--red), var(--red)) center / .75rem 2px no-repeat,
    linear-gradient(var(--red), var(--red)) center / 2px .75rem no-repeat,
    var(--red-soft);
  transition: transform .2s ease;
}
.faq-liste details[open] summary::after {
  background: linear-gradient(#fff, #fff) center / .75rem 2px no-repeat, var(--red);
  transform: rotate(180deg);
}
.faq-liste summary:hover { color: var(--red-ink); }
.faq-liste summary:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: var(--r-sm); }
.faq-antwort { padding: 0 3rem 1.2rem .2rem; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .faq-liste summary::after { transition: none; } }
.fw-faq .faq-liste { margin-top: .2rem; }

/* Checkliste als schmale Zeile unter den Fragen */
.checkliste-zeile {
  margin-top: 2rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem 1.5rem;
  max-width: 52rem;
  padding: 1rem 1.2rem;
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--ink-2);
}
.checkliste-zeile strong { color: var(--ink); }

/* --- Sprungleiste auf der IT-Seite ---------------------------------------- */
.sprungleiste {
  position: sticky;
  top: var(--kopfhoehe, 4.5rem);
  z-index: 30;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 16px -14px rgba(20, 23, 30, .4);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .sprungleiste { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
.sprungleiste .shell {
  display: flex;
  gap: .35rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: .55rem;
}
.sprungleiste .shell::-webkit-scrollbar { display: none; }
.sprungleiste a {
  flex: none;
  padding: .45rem .85rem;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}
.sprungleiste a:hover { color: var(--ink); background: var(--surface-2); }
.sprungleiste a.aktiv { background: var(--ink); color: #fff; }
.sprungleiste a.sprung-extra { color: var(--red-ink); }
@media (min-width: 1141px) {
  .sprungleiste a:not(.sprung-extra) + a.sprung-extra { margin-left: auto; }
}
html:has(.sprungleiste) { scroll-padding-top: calc(var(--kopfhoehe, 4.5rem) + 3.6rem); }

/* --- E-Rechnung: Zeitplan -------------------------------------------------- */
.zeitplan { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.zeitplan li {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.4rem 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}
.zeitplan li::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; border-radius: var(--r) var(--r) 0 0; background: var(--line-strong); }
.zeitplan li.zeitplan-jetzt::before { background: var(--red); }
.zeitplan-wann { display: block; font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; color: var(--ink); }
.zeitplan-jetzt .zeitplan-wann { color: var(--red); }
.zeitplan li p { margin-top: .4rem; color: var(--ink-2); }
.zeitplan-hinweis { margin-top: 1.2rem; font-size: .92rem; color: var(--muted); max-width: 60ch; }
@media (max-width: 760px) { .zeitplan { grid-template-columns: minmax(0, 1fr); } }
.saeule p a { color: var(--dark-text); text-decoration-color: var(--red); text-underline-offset: .2em; }
.saeule p a:hover { color: var(--red); }

/* Vergleichstabelle der Pakete zum Aufklappen */
.tabelle-klappe { margin-top: 2rem; }
.tabelle-klappe > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--f-display); font-weight: 700; color: var(--ink);
  padding: .7rem 1.1rem; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--surface);
}
.tabelle-klappe > summary::-webkit-details-marker { display: none; }
.tabelle-klappe > summary::after { content: "+"; color: var(--red); font-size: 1.2rem; line-height: 1; }
.tabelle-klappe[open] > summary::after { content: "–"; }
.tabelle-klappe > summary:hover { border-color: var(--red); }
.tabelle-klappe .table-wrap { margin-top: 1rem; }


/* --- Kontraste nach WCAG AA (17.09.2026) -----------------------------------
   Weiße Schrift auf dem Logo-Rot #ED1C24 erreicht nur 4,4:1 (nötig 4,5:1).
   Knöpfe bekommen deshalb ein kaum sichtbar tieferes Rot (4,7:1), das Logo und
   alle Akzente bleiben im Originalton. Gilt auch im dunklen Modus. */
:root { --red-knopf: #E41921; }
.btn-primary { background: var(--red-knopf); }
.nav a.nav-brief:hover, .nav a.nav-brief[aria-current="page"] { background: var(--red-knopf); }

/* --- Größere Tippflächen in der Fußzeile (mind. 24 px, besser 44 px) ------- */
.foot a { display: inline-block; padding-block: .6rem; }
.foot .shell { row-gap: .2rem; }

/* --- Dunkler Modus und Kontraste nachgeschärft (17.09.2026) ----------------
   Im dunklen Modus wird --ink hell. Knöpfe mit weißer Schrift auf var(--ink)
   wären dann unlesbar — deshalb feste Farbe statt Variable. */
.nav a.nav-brief { background: #14171E; }
.sprungleiste a.aktiv { background: var(--ink); color: var(--ground); }
.sprungmarke { background: var(--red-knopf); }
.nav a[aria-current="page"]:not(.btn):not(.nav-brief) { color: var(--red-ink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav a.nav-brief { background: #2A303C; box-shadow: 0 0 0 1.5px rgba(255, 90, 90, .55); }
  :root:not([data-theme="light"]) .nav a[aria-current="page"]:not(.btn):not(.nav-brief) { color: var(--red); }
}
:root[data-theme="dark"] .nav a.nav-brief { background: #2A303C; box-shadow: 0 0 0 1.5px rgba(255, 90, 90, .55); }

/* ==========================================================================
   Modernisiert 18.09.2026: Farbumschalter, Seitenübergänge, Handy-Leiste
   ========================================================================== */

/* --- Hell/Dunkel-Schalter -------------------------------------------------- */
.farbwahl {
  order: 4;
  margin-left: .6rem;
  width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, transform .15s ease;
}
.farbwahl:hover { border-color: var(--red); color: var(--red); transform: translateY(-1px); }
.farbwahl:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.farbwahl > span {
  grid-area: 1 / 1;
  width: 1.15rem; height: 1.15rem;
  background-color: currentColor;
  /* Einzelwerte statt Kurzschreibweise: die Kurzform würde das Symbol
     der spezifischeren Regel weiter unten wieder löschen. */
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.farbwahl-sonne {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E");
}
.farbwahl-mond {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8Z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8Z'/%3E%3C/svg%3E");
}
/* Hell: Mond anbieten (Wechsel zu dunkel). Dunkel: Sonne anbieten. */
.farbwahl-sonne { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .farbwahl-sonne { display: block; }
  :root:not([data-theme="light"]) .farbwahl-mond { display: none; }
}
:root[data-theme="dark"] .farbwahl-sonne { display: block; }
:root[data-theme="dark"] .farbwahl-mond { display: none; }
:root[data-theme="light"] .farbwahl-sonne { display: none; }
:root[data-theme="light"] .farbwahl-mond { display: block; }
@media (max-width: 1140px) {
  /* Reihenfolge auf dem Handy: Logo · Schalter · Burger · (Menü darunter) */
  .brand { order: 0; }
  .farbwahl { order: 1; margin-left: auto; margin-right: .1rem; }
  .burger { order: 2; }
  .nav { order: 3; }
}

/* --- Weiche Seitenübergänge (Browser, die es können) ---------------------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation-duration: .18s; }
::view-transition-new(root) { animation-duration: .22s; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* --- Ruhigerer Textsatz --------------------------------------------------- */
p, li, dd, figcaption, .lead, .sub { text-wrap: pretty; }
h1, h2, h3, summary, .plan .price, .zeitplan-wann { text-wrap: balance; }

/* --- Aktionsleiste am unteren Rand (nur Handy) ---------------------------- */
.handyleiste { display: none; }
@media (max-width: 1140px) {
  .handyleiste {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 45;
    gap: 1px;
    background: var(--line);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .handyleiste a {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 3.4rem;
    background: var(--surface);
    color: var(--ink);
    font-family: var(--f-display);
    font-weight: 700;
    font-size: .98rem;
    text-decoration: none;
  }
  .handyleiste a.hl-ruf { background: var(--red-knopf); color: #fff; }
  .handyleiste a::before {
    content: ""; width: 1.1rem; height: 1.1rem; flex: none;
    background-color: currentColor;
    -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat;
  }
  .handyleiste a.hl-ruf::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .3 1.9.6 2.8a2 2 0 0 1-.5 2.1L8.1 9.9a16 16 0 0 0 6 6l1.3-1.1a2 2 0 0 1 2.1-.5c.9.3 1.8.5 2.8.6a2 2 0 0 1 1.7 2Z'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .3 1.9.6 2.8a2 2 0 0 1-.5 2.1L8.1 9.9a16 16 0 0 0 6 6l1.3-1.1a2 2 0 0 1 2.1-.5c.9.3 1.8.5 2.8.6a2 2 0 0 1 1.7 2Z'/%3E%3C/svg%3E");
  }
  .handyleiste a.hl-schreiben::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-9 8.4 8.6 8.6 0 0 1-3.9-.9L3 20.5l1.5-4.6A8.4 8.4 0 0 1 12 3.1a8.4 8.4 0 0 1 9 8.4Z'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-9 8.4 8.6 8.6 0 0 1-3.9-.9L3 20.5l1.5-4.6A8.4 8.4 0 0 1 12 3.1a8.4 8.4 0 0 1 9 8.4Z'/%3E%3C/svg%3E");
  }
  body { padding-bottom: 3.6rem; }
  /* Der schwebende runde Knopf lag auf schmalen Bildschirmen über dem Text.
     Dort übernimmt die dritte Zelle der Handyleiste seine Aufgabe. */
  .nach-oben { display: none; }
  .handyleiste a.hl-oben { padding-inline: 1.1rem; }
  .handyleiste a.hl-oben::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E");
  }
  /* Die Zeile mit dem Urheberrecht stand sonst halb unter dem runden Knopf. */
  .foot .right { margin-left: 0; width: 100%; }
}

/* Hinweis unter den Branchen: keine Rund-um-die-Uhr-Erwartung wecken */
.branchen-hinweis {
  margin-top: 1.6rem;
  max-width: 62ch;
  color: var(--ink-2);
  font-size: .97rem;
}
.branchen-hinweis strong { color: var(--ink); }

/* Erwartungshinweis unter der Seitenüberschrift */
.seitenkopf .kopf-hinweis {
  margin-top: 1rem;
  max-width: 62ch;
  color: var(--dark-muted);
  font-size: .96rem;
  padding-left: .9rem;
  border-left: 2px solid rgba(237, 28, 36, .55);
}

/* Hinweis auf den möglichen Nachlass direkt in der Preistabelle */
table th small { display: block; font-weight: 400; font-size: .86rem; color: var(--muted); margin-top: .2rem; }
.satz-rabatt { display: inline-block; margin-top: .25rem; font-size: .82rem; font-weight: 600; color: var(--red-ink); white-space: nowrap; }

/* Stiller Zugang zum Kundenbereich (Firmenzentrale), links neben „Brief erhalten?“ */
.nav a.nav-konto {
  order: 9;
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
}
.nav a.nav-konto::before {
  content: "";
  flex: none;
  width: 1rem;
  height: 1rem;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10.5' width='16' height='10.5' rx='2'/%3E%3Cpath d='M8 10.5V7a4 4 0 0 1 8 0v3.5'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10.5' width='16' height='10.5' rx='2'/%3E%3Cpath d='M8 10.5V7a4 4 0 0 1 8 0v3.5'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
          mask-size: contain;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
}
.nav a.nav-konto:hover { color: var(--red); }
@media (max-width: 1140px) {
  .js .nav a.nav-konto { order: 11; border-bottom: 0; font-size: 1rem; }
}

/* Ortsliste auf der Seite Einsatzgebiet */
.orte {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.orte li {
  padding: .42rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: .92rem;
  font-weight: 600;
}

/* --- Textseiten („Kurz erklärt“) ------------------------------------------ */
.textseite article {
  max-width: 68ch;
}
.textseite h2 {
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  margin: 2.4rem 0 .9rem;
}
.textseite article > h2:first-child { margin-top: 0; }
.textseite p {
  color: var(--ink-2);
  margin-bottom: 1rem;
  line-height: 1.75;
  text-wrap: pretty;
}
.textseite strong { color: var(--ink); }
.merke {
  margin: 1.8rem 0;
  padding: 1.1rem 1.3rem;
  background: var(--surface-2);
  border-left: 3px solid var(--red-knopf);
  border-radius: 0 var(--r) var(--r) 0;
}
.merke p { margin: 0; }
.textseite-zurueck {
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-weight: 600;
}

/* Karten mit Verweis (Übersicht „Kurz erklärt“) */
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--red); }
.karte-mehr { margin-top: auto; font-weight: 600; }
.karte-mehr a { color: var(--red-ink); text-decoration: none; }
.karte-mehr a:hover { text-decoration: underline; }

/* --- Paket-Schätzer ------------------------------------------------------- */
.nur-js { display: none; }
.js .nur-js { display: block; }

.schaetzer-block {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.schaetzer {
  display: grid;
  gap: 1.4rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.schaetzer-felder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 1rem 1.4rem;
  align-items: end;
}
.schaetzer label { display: flex; flex-direction: column; gap: .4rem; }
.schaetzer .lbl {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.schaetzer input[type="number"] {
  width: 100%;
  padding: .7rem .85rem;
  font: 600 1.1rem var(--f-body);
  color: var(--ink);
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.schaetzer input:focus-visible { outline: 2px solid var(--red-knopf); outline-offset: 1px; }
.schaetzer .schalter {
  flex-direction: row;
  align-items: center;
  gap: .6rem;
  color: var(--ink-2);
  font-size: .96rem;
  padding-bottom: .55rem;
}
.schaetzer .schalter input { width: 1.15rem; height: 1.15rem; accent-color: var(--red-knopf); flex: none; }

.schaetzer-ausgabe {
  padding: 1.2rem 1.3rem;
  background: var(--surface-2);
  border-radius: var(--r-sm);
  display: grid;
  gap: .6rem;
  justify-items: start;
}
.schaetzer-paket {
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red-ink);
  margin: 0;
}
.schaetzer-spanne {
  font: 700 clamp(1.25rem, 3vw, 1.7rem) var(--f-display);
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}
.schaetzer-zusatz p { color: var(--ink-2); font-size: .95rem; margin: 0 0 .5rem; }
.schaetzer-zusatz p:last-child { margin-bottom: 0; }
.schaetzer-fuss { color: var(--muted); font-size: .9rem; margin: 0; max-width: 62ch; }

/* --- Preistabelle auf schmalen Bildschirmen -------------------------------
   Zwei Spalten passen dort nicht nebeneinander: Der Stundensatz stand außerhalb
   des Sichtbereichs und sah aus, als fehlten die Preise. Deshalb untereinander. */
@media (max-width: 760px) {
  table.preise { min-width: 0; }
  table.preise thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table.preise tbody tr { display: block; border-bottom: 1px solid var(--line); padding: .3rem 0; }
  table.preise tbody tr:last-child { border-bottom: 0; }
  table.preise tbody th,
  table.preise tbody td { display: block; border-bottom: 0; }
  table.preise tbody th { padding-bottom: .35rem; }
  table.preise tbody td.num { text-align: left; padding-top: 0; white-space: normal; }
  table.preise tbody td.num::before {
    content: "Stundensatz netto";
    display: block;
    font-family: var(--f-mono);
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .15rem;
  }
  table.preise .satz-rabatt { white-space: normal; }
}

/* Hinweis auf die seitlich scrollbare Vergleichstabelle (nur schmale Bildschirme) */
.wisch-hinweis { display: none; }
@media (max-width: 760px) {
  .wisch-hinweis {
    display: block;
    margin: 1.2rem 0 -.6rem;
    color: var(--muted);
    font-size: .88rem;
  }
  .wisch-hinweis strong { color: var(--ink-2); }
}
