/* ═══════════════════════════════════════════════════════════════════════════
   mi-su.me — Ergänzung zu mi-su.css.

   WARUM EINE ZWEITE DATEI
   Die Startseite gab es vor dem Umbau schon, und ihr Stylesheet ist von Hand
   gepflegt. Alles, was die neuen Seitenarten brauchen — Leistungsseiten,
   Preisseite, Rechtstexte —, steht deshalb hier statt mitten in einer Datei,
   die gerade funktioniert. Zwei Anfragen mehr kostet das nicht: beide Dateien
   liegen im selben Verzeichnis und werden zusammen ausgeliefert.

   Diese Datei wird VON HAND gepflegt (anders als die .html-Dateien, die aus
   website-seo/build.py fallen). Farben kommen ausnahmslos aus den Variablen in
   mi-su.css — kein rohes Hex in einer Regel.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Sprachumschalter ─────────────────────────────────────────────────────────
   Waren Knöpfe, sind jetzt Links: die Sprache steckt in der Adresse. Die alte
   Regel in mi-su.css greift auf `button` und läuft hier ins Leere. */
.lang a {
  font-size: 11px; font-weight: 700; letter-spacing: .6px;
  padding: 4px 10px; border-radius: 999px; color: var(--olive);
  transition: background .15s, color .15s; display: block;
}
.lang a:hover { color: var(--mint); }
.lang a.on { background: var(--forest); color: var(--mint); }

/* ── Sprachhinweis ───────────────────────────────────────────────────────────
   Fest am unteren Rand, nicht im Textfluss: eingeblendet wird sie erst per
   Skript, und im Fluss würde sie in dem Moment den ganzen Inhalt nach unten
   schieben. Genau das misst Google als Layout-Verschiebung (CLS).

   ⚠️ `hidden` allein reicht nicht — `display:flex` unten schlägt das
   Standardverhalten des Attributs. Die Regel muss explizit da stehen. */
.langbar[hidden] { display: none; }
.langbar {
  position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px;
  margin: 0 auto; max-width: 620px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 13px 14px 13px 20px;
  background: rgba(14,27,25,.97); backdrop-filter: blur(14px);
  border: 1px solid var(--line-2); border-radius: 16px;
  box-shadow: 0 12px 34px rgba(0,0,0,.42);
  font-size: 14px; color: var(--sage);
}
.langbar span { flex: 1; min-width: 190px; }
.langbar a {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font-weight: 700; color: var(--ink); background: var(--mint);
  border-radius: 999px; padding: 8px 16px; transition: background .2s;
}
.langbar a:hover { background: var(--paper); }
.langbar a svg { width: 15px; height: 15px; }
.langbar-x {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  font-size: 19px; line-height: 1; color: var(--olive);
  transition: background .2s, color .2s;
}
.langbar-x:hover { background: rgba(160,177,174,.1); color: var(--paper); }

@media (max-width: 480px) {
  .langbar { padding: 12px 12px 12px 16px; font-size: 13.5px; }
  .langbar span { min-width: 0; }
}

/* ── Unterseiten-Kopf ────────────────────────────────────────────────────── */
.hero-sub { padding: calc(var(--nav-h) + 48px) 0 68px; }
/* Auf der Startseite trägt der Kopfbereich `class="wrap hero-in"`. Beide Regeln
   greifen dann: die Breite kommt aus `.hero-in` (760 px), das `margin:0 auto`
   bleibt aber aus `.wrap` stehen — die Überschrift steht also in einer
   ZENTRIERTEN schmalen Spalte. Das ist dort gewollt.
   Auf den Unterseiten liegt `.hero-in` jetzt INNERHALB von `.wrap`, damit
   Brotkrume, Überschrift und Fließtext dieselbe linke Kante haben. */
/* Breit genug, dass die Überschrift nicht nach zwei Wörtern umbricht — der
   Fließtext darunter bekommt seine eigene, engere Zeilenlänge. */
.hero-sub .hero-in { max-width: 880px; }
.hero-sub .lead { max-width: 56ch; }
.hero-sub h1 { font-size: clamp(34px, 5vw, 58px); letter-spacing: -1.8px; }
/* Der zweite Teil jeder Überschrift steht im Markup in <em> und gehört auf eine
   eigene Zeile. Früher erledigte das ein <br> davor im Text — fehlt es, klebt
   „passt.Nicht umgekehrt." zusammen, und genau das war beim Umbau passiert.
   Als Regel statt als Zeichen im Text kann es nicht mehr vergessen werden. */
h1 em { display: block; }
.hero-sub .lead { max-width: 62ch; }

.crumbs {
  position: relative; display: flex; gap: 9px; align-items: center;
  font-size: 12.5px; color: var(--olive); margin-bottom: 26px;
}
.crumbs a { color: var(--sage); border-bottom: 1px solid var(--line); }
.crumbs a:hover { color: var(--mint); }
.crumbs span { color: var(--slate); }

.price-line {
  display: inline-block; margin-top: 22px;
  font-size: 14px; font-weight: 700; color: var(--mint);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 16px;
}

/* ── Leistungskarten auf der Startseite ──────────────────────────────────── */
.svc-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 16px;
}
.svc {
  position: relative; display: flex; flex-direction: column; gap: 9px;
  background: var(--ink-3); border: 1px solid var(--line);
  border-radius: 20px; padding: 24px 22px 22px;
  transition: border-color .25s, transform .25s;
}
.svc:hover { border-color: var(--line-2); transform: translateY(-3px); }
.svc-price {
  font-size: 11.5px; font-weight: 700; letter-spacing: .9px;
  text-transform: uppercase; color: var(--forest);
}
.svc h3 { font-size: 20px; font-weight: 900; letter-spacing: -.6px; color: var(--paper); }
.svc p { font-size: 14.5px; flex: 1; }
.svc .go { margin-top: 6px; }
.svc:hover .go svg { transform: translateX(4px); }

/* ── Region auf der Startseite ───────────────────────────────────────────── */
.region {
  margin-top: 54px; padding: 28px 30px;
  border: 1px solid var(--line); border-radius: 20px; background: var(--ink-2);
}
.region h3 { font-size: 17px; font-weight: 700; color: var(--paper); margin-bottom: 8px; }
.region p  { font-size: 14.5px; max-width: 88ch; }

/* ── Karte ohne Ziel („bald verfügbar") ──────────────────────────────────── */
.card-soon { cursor: default; }
.card-soon:hover { transform: none; border-color: var(--line); }
.card-soon .card-art svg { opacity: .55; }
.go-off { visibility: hidden; }

/* ── Fließtext ───────────────────────────────────────────────────────────── */
.prose-sec { padding-top: 56px; }
.prose { max-width: 74ch; }
.prose h2 {
  font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; letter-spacing: -.9px;
  font-weight: 900; color: var(--paper); margin: 46px 0 14px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; font-weight: 700; color: var(--paper); margin: 26px 0 8px; }
.prose p  { font-size: 15.5px; margin-bottom: 16px; }
.prose strong { color: var(--mint); font-weight: 700; }
.prose a { color: var(--mint); border-bottom: 1px solid var(--line-2); }
.prose a:hover { border-bottom-color: var(--mint); }

.prose .callout {
  border-left: 2px solid var(--forest); background: var(--ink-2);
  padding: 16px 20px; border-radius: 0 14px 14px 0;
  font-size: 14.5px; color: var(--sage); margin: 22px 0 26px;
}
.prose .addr-block { font-size: 15.5px; line-height: 1.9; color: var(--sage); }

/* Häkchenliste. Das Zeichen sitzt im ::before, damit es aus dem Textfluss
   verschwindet, wenn jemand die Seite vorlesen lässt. */
.ticks { list-style: none; margin: 4px 0 22px; display: grid; gap: 9px; }
.ticks li {
  position: relative; padding-left: 26px; font-size: 15px;
}
.ticks li::before {
  content: ''; position: absolute; left: 2px; top: 9px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--forest); box-shadow: 0 0 0 3px rgba(37,82,70,.28);
}

/* ── Preistabelle ────────────────────────────────────────────────────────── */
.prices {
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  margin: 6px 0 26px; background: var(--ink-3);
}
.pr-row {
  display: flex; gap: 18px; align-items: baseline; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
}
.pr-row:last-child { border-bottom: 0; }
.pr-l { font-size: 14.5px; color: var(--sage); }
.pr-v {
  font-size: 15px; font-weight: 700; color: var(--mint); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ── Ablauf ──────────────────────────────────────────────────────────────── */
.steps { list-style: none; counter-reset: st; display: grid; gap: 0; margin: 6px 0 26px; }
.steps li {
  counter-increment: st; position: relative; padding: 16px 0 16px 46px;
  border-top: 1px solid var(--line); display: grid; gap: 3px;
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(st, decimal-leading-zero);
  position: absolute; left: 0; top: 19px;
  font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--forest);
}
.steps strong { color: var(--paper); font-weight: 700; font-size: 15.5px; }
.steps span { font-size: 14.5px; color: var(--sage); }

/* ── Fragen und Antworten ────────────────────────────────────────────────── */
.faq-sec { padding-top: 22px; }
.qa-list { max-width: 82ch; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  cursor: pointer; list-style: none; padding: 17px 34px 17px 0; position: relative;
  font-size: 16px; font-weight: 700; color: var(--paper);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: '+'; position: absolute; right: 6px; top: 15px;
  font-size: 20px; font-weight: 400; color: var(--forest);
}
.qa[open] summary::after { content: '−'; }
.qa summary:hover { color: var(--mint); }
.qa p { font-size: 15px; padding: 0 0 20px; max-width: 72ch; }
.qa a { color: var(--mint); border-bottom: 1px solid var(--line-2); }

/* ── Querverweise ────────────────────────────────────────────────────────── */
.rel-sec { padding-top: 26px; padding-bottom: 26px; }
.rel-row { display: flex; flex-wrap: wrap; gap: 10px; }
.rel {
  font-size: 14px; font-weight: 600; padding: 10px 18px; border-radius: 999px;
  color: var(--mint); border: 1px solid var(--line-2);
  transition: background .2s, border-color .2s;
}
.rel:hover { background: rgba(184,204,200,.06); border-color: var(--mint); }

/* ── Abschlussband ───────────────────────────────────────────────────────── */
.band { border-top: 1px solid var(--line); background: var(--ink-2); }
.band-in {
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 30px;
  align-items: center;
}
.band h2 {
  font-size: clamp(22px, 2.8vw, 32px); line-height: 1.2; letter-spacing: -1px;
  font-weight: 900; color: var(--paper); margin-bottom: 8px;
}
.band p { font-size: 15px; max-width: 60ch; }

/* ── Fuß mit Spalten ─────────────────────────────────────────────────────── */
.foot-grid {
  display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 30px;
  padding-bottom: 30px; border-bottom: 1px solid var(--line);
}
.foot-col { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.foot-col h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase;
  color: var(--forest); margin-bottom: 3px;
}
.foot-col a { font-size: 13.5px; color: var(--sage); }
.foot-col a:hover { color: var(--mint); }
.foot-brand .brand { margin-bottom: 12px; }
.foot-addr { font-size: 13px; color: var(--olive); line-height: 1.75; }
.foot-addr a { color: var(--sage); border-bottom: 1px solid var(--line); }
footer .foot-in { padding-top: 22px; }

/* ── Schmale Fenster ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .foot-brand { grid-column: 1 / -1; }
  .band-in { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 720px) {
  .hero-sub { padding: calc(var(--nav-h) + 34px) 0 52px; }
  .region { padding: 22px 20px; }
  .pr-row { flex-direction: column; gap: 4px; }
  .prose h2 { margin-top: 36px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Klappmenüs in der Navigation — 12.08.2026
   ───────────────────────────────────────────────────────────────────────────
   Dieselbe Mechanik wie auf /midnightcompass/: rein CSS, geöffnet über :hover
   UND :focus-within. Kein Skript, damit es auch aus der Tastatur heraus
   funktioniert, ohne dass irgendwo ein Zustand verwaltet werden muss.

   Nebeneffekt, der hier zählt: die Einträge stehen als echte <a> im
   ausgelieferten HTML. Damit verlinkt jede Seite auf jede Leistungsseite —
   genau die interne Verlinkung, die eine Unterseite überhaupt erst auffindbar
   macht.
   ═══════════════════════════════════════════════════════════════════════════ */
.nav-item { position: relative; display: flex; align-items: center; }

/* Der Winkel: ein um 45° gedrehtes Quadrat aus zwei Rahmenkanten. Braucht
   keine Datei und färbt sich über currentColor mit. */
.nav-top { display: inline-flex; align-items: center; gap: 7px; }
.nav-top::after {
  content: ''; width: 5px; height: 5px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); opacity: .5;
  transition: transform .2s, opacity .2s;
}
.nav-item:hover > .nav-top::after,
.nav-item:focus-within > .nav-top::after {
  opacity: 1; transform: rotate(225deg) translate(-2px, -2px);
}

/* ⚠️ Zwischen Leiste und Menü liegt ein Spalt. Ohne diese unsichtbare Brücke
   verlässt der Zeiger auf dem Weg nach unten das Element, das Menü schliesst,
   und man kommt nie hinein. */
.nav-item::after {
  content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 12px;
}

.nav-menu {
  position: absolute; top: 100%; left: 50%; z-index: 60;
  min-width: 244px; padding: 8px;
  background: rgba(14, 27, 25, .97); backdrop-filter: blur(14px);
  border: 1px solid var(--line-2); border-radius: 16px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden;
  transform: translate(-50%, 0);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-item:hover > .nav-menu,
.nav-item:focus-within > .nav-menu {
  opacity: 1; visibility: visible; transform: translate(-50%, 10px);
}

.nav-menu a, .nav-menu .nav-soon {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 9px 12px; border-radius: 10px; white-space: nowrap;
  font-size: 14px; font-weight: 500; color: var(--paper);
  transition: background .15s, color .15s;
}
.nav-menu a:hover { background: rgba(184, 204, 200, .07); color: var(--mint); }
/* ⚠️ Der Zusatz stand zuerst in `--forest`. Auf dem Menügrund sind das 4,25:1,
   und kleiner Text braucht 4,5:1 — gerechnet, nicht geschätzt. `--sage` kommt
   auf 7,9:1. Die Rangfolge trägt jetzt die Schriftgröße und -stärke, nicht ein
   zu dunkler Ton. */
.nav-menu small { font-size: 11.5px; font-weight: 700; color: var(--sage);
                  letter-spacing: .3px; }
.nav-menu a:hover small { color: var(--mint); }
/* Midnight ERP hat noch keine Seite. Der Eintrag zeigt den Zustand, ist aber
   kein Link — ein Menüpunkt, der ins Leere führt, ist schlimmer als keiner. */
.nav-menu .nav-soon { color: var(--slate); cursor: default; }

/* ── Telefon: flach unter Überschriften ─────────────────────────────────────
   Kein zweites Antippen für ein Untermenü. */
.mobile .mob-head {
  font-size: 11px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase;
  color: var(--forest); padding: 16px 28px 6px;
}
.mobile .mob-sub { padding-left: 40px; font-size: 15px; }
.mobile .mob-sub::before {
  content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: var(--forest); vertical-align: middle; margin: -2px 11px 0 -16px;
}
.mobile .mob-soon { display: block; color: var(--slate); }

/* Hülle um die Anschrift. Sie hebt die Wirkung von `.addr-h + br` in
   mi-su.css auf, die sonst den ersten Zeilenumbruch der Adresse schluckt. */
.addr-body { display: block; }
