/* =====================================================================
   4N-GALAXY · Prototyp – zentrales Stylesheet
   ---------------------------------------------------------------------
   Aufbau:
     1. Design-Tokens (Farben, Typografie, Abstaende)
     2. Grundlagen / Reset
     3. Typografie
     4. Layout-Bausteine (Container, Section, Grid)
     5. Komponenten (Buttons, Karten, Tabellen, Platzhalter, ...)
     6. Kopf-, Navigations- und Fussbereich
     7. Seitenspezifische Bloecke (Hero, NIS2-Status, Glossar, Formular)
     8. Responsive
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Design-Tokens
   ------------------------------------------------------------------ */
:root {
  /* Farben – Platzhalter-CI bis IT-ES ein finales CI bestaetigt */
  --c-primary:        #0B3B4F;   /* tiefes Petrol/Navy */
  --c-primary-dark:   #072A39;
  --c-primary-mid:    #14526B;
  --c-primary-soft:   #E7EEF1;

  --c-graphite:       #4A4F54;   /* warmes Graphitgrau */
  --c-graphite-light: #6F757B;

  /* Gedecktes Kupfer/Amber, sparsam eingesetzt.
     --c-accent     = Flaechen- und Linienakzent (dekorativ)
     --c-accent-dark = Textfarbe und CTA-Flaeche; dunkler gewaehlt, weil
                       #B8763D mit weisser Schrift nur ~3,7:1 erreicht und
                       damit unter der WCAG-Schwelle von 4,5:1 laege. */
  --c-accent:         #B8763D;
  --c-accent-dark:    #9A6031;
  --c-accent-darker:  #7E4E28;
  --c-accent-soft:    #F6EEE5;

  --c-text:           #22272B;
  --c-text-muted:     #5D6469;
  --c-bg:             #FFFFFF;
  --c-bg-alt:         #F5F4F1;   /* warmes Off-White fuer Flaechen */
  --c-bg-deep:        #0B3B4F;
  --c-border:         #DDDAD4;
  --c-border-strong:  #C6C2BA;

  /* Typografie
     Slab-Serif fuer Ueberschriften statt klassischer Buchserife: wirkt
     technischer/"konstruiert" statt bieder, passt zum Connector-/Praezisions-
     motiv und liest sich deutlich zeitgemaesser als ein traditioneller Serif. */
  --f-serif: "Roboto Slab", Georgia, "Times New Roman", serif;
  --f-sans:  "Roboto", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-xs:   0.8125rem;
  --fs-sm:   0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md:   1.1875rem;
  --fs-lg:   clamp(1.25rem, 0.5vw + 1.15rem, 1.4rem);
  --fs-h3:   clamp(1.25rem, 0.6vw + 1.1rem, 1.5rem);
  --fs-h2:   clamp(1.55rem, 1.4vw + 1.1rem, 2.15rem);
  --fs-h1:   clamp(1.95rem, 2.6vw + 1.15rem, 3rem);

  /* Abstaende */
  --sp-1: 0.375rem;
  --sp-2: 0.75rem;
  --sp-3: 1.25rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4.5rem;

  --wrap: 1180px;
  --radius: 3px;   /* bewusst fast eckig: technisch, nicht verspielt */
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;           /* kein horizontales Scrollen auf Mobil */
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--c-primary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--c-accent-dark); }

:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
}

.skiplink {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 200;
}
.skiplink:focus { left: 0; color: #fff; }

/* ---------------------------------------------------------------------
   3. Typografie
   ------------------------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--f-serif);
  font-weight: 600;
  color: var(--c-primary);
  line-height: 1.2;
  margin: 0 0 var(--sp-2);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-h1); line-height: 1.12; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-md); }

p { margin: 0 0 var(--sp-3); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: var(--fs-lg);
  line-height: 1.55;
  color: var(--c-graphite);
}

.kicker {
  display: block;
  font-family: var(--f-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--c-accent-dark);
  margin-bottom: var(--sp-2);
}
.kicker--light { color: #D9A876; }

.measure   { max-width: 68ch; }
.measure-s { max-width: 56ch; }

/* Nur fuer Screenreader – z. B. Tabellen-Captions, die visuell doppeln */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.muted { color: var(--c-text-muted); }
.small { font-size: var(--fs-sm); }

/* Aufzaehlung mit Connector-Punkt statt Standard-Bullet */
ul.ticks { list-style: none; padding: 0; margin: 0 0 var(--sp-3); }
ul.ticks li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: var(--sp-2);
}
ul.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-soft);
}

/* ---------------------------------------------------------------------
   4. Layout
   ------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.25rem);
}

.section { padding-block: var(--sp-6); }
.section--tight { padding-block: var(--sp-5); }
.section--alt { background: var(--c-bg-alt); }
.section--soft { background: var(--c-primary-soft); }
.section--deep {
  background: var(--c-bg-deep);
  color: #E6EDF0;
}
.section--deep h2, .section--deep h3 { color: #fff; }
.section--deep a { color: #EBD4BC; }

.section__head { margin-bottom: var(--sp-4); }
.section__head p { color: var(--c-graphite); }

.grid { display: grid; gap: var(--sp-3); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.split--even { grid-template-columns: 1fr 1fr; }

.stack > * + * { margin-top: var(--sp-3); }

/* Grid-Kinder duerfen unter ihre Inhaltsbreite schrumpfen. Ohne min-width:0
   sprengen breite Inhalte (Tabellen, Schema-SVG) sonst das gesamte Layout,
   statt in ihrem eigenen Container zu scrollen. */
.grid > *, .split > *, .compare > *, .dualcta > *, .form__row > * { min-width: 0; }

.rule {
  border: 0;
  border-top: 1px solid var(--c-border);
  margin-block: var(--sp-4);
}

/* Abschnittsmarke mit Connector-Motiv */
.markline {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--c-accent);
  margin-bottom: var(--sp-3);
}
.markline::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--c-border);
}

/* ---------------------------------------------------------------------
   5. Komponenten
   ------------------------------------------------------------------ */

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--f-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.2;
  padding: 0.72rem 1.35rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--lg { font-size: var(--fs-base); padding: 0.9rem 1.7rem; }
.btn--block { width: 100%; }

.btn--accent { background: var(--c-accent-dark); color: #fff; border-color: var(--c-accent-dark); }
.btn--accent:hover { background: var(--c-accent-darker); border-color: var(--c-accent-darker); color: #fff; }

.btn--primary { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.btn--primary:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); color: #fff; }

.btn--outline { background: transparent; color: var(--c-primary); border-color: var(--c-border-strong); }
.btn--outline:hover { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-soft); }

.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost-light:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }

.btnrow { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* Textlink mit Pfeil, fuer Karten und Teaser */
.arrowlink {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: var(--fs-sm);
  text-decoration: none;
  color: var(--c-primary);
}
.arrowlink::after { content: "→"; transition: transform .15s ease; }
.arrowlink:hover::after { transform: translateX(3px); }
.arrowlink:hover { text-decoration: underline; }

/* --- Karten --- */
.card {
  display: flex;
  flex-direction: column;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-top: 3px solid var(--c-primary);
  border-radius: var(--radius);
  padding: var(--sp-3);
  height: 100%;
}
.card--accent { border-top-color: var(--c-accent); }
.card h3 { margin-bottom: var(--sp-1); }
.card__num {
  font-family: var(--f-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--c-graphite-light);
  margin-bottom: var(--sp-2);
  display: block;
}
.card__body { flex: 1; color: var(--c-graphite); font-size: var(--fs-sm); }
.card__foot { margin-top: var(--sp-3); }

.card--link { transition: border-color .15s ease, box-shadow .15s ease; }
.card--link:hover { border-color: var(--c-border-strong); border-top-color: var(--c-accent); }

/* --- Faktenstreifen (Vertrauen) --- */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.trust__item {
  padding: var(--sp-3);
  border-right: 1px solid var(--c-border);
}
.trust__item:last-child { border-right: 0; }
.trust__label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-accent-dark);
  margin-bottom: 0.35rem;
}
.trust__value {
  font-family: var(--f-serif);
  font-size: var(--fs-md);
  color: var(--c-primary);
  font-weight: 600;
  margin: 0 0 0.15rem;
}
.trust__note { font-size: var(--fs-sm); color: var(--c-text-muted); margin: 0; }

/* --- Bildplatzhalter --- */
.ph { margin: 0; }
.ph__frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  aspect-ratio: var(--ph-ratio, 16 / 9);
  width: 100%;
  background:
    repeating-linear-gradient(
      -45deg,
      #EFEEEB 0 10px,
      #E9E7E3 10px 20px
    );
  border: 1px dashed var(--c-border-strong);
  border-radius: var(--radius);
  color: var(--c-graphite-light);
  text-align: center;
  padding: var(--sp-2);
}
.ph__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--c-graphite);
}
.ph__mark { opacity: .35; }

/* Kleiner Marker fuer Platzhaltertexte im Fliesstext */
.ph-tag {
  display: inline-block;
  font-family: var(--f-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-graphite);
  background: #EDEBE7;
  border: 1px solid var(--c-border-strong);
  border-radius: 2px;
  padding: 0.05rem 0.35rem;
  vertical-align: 0.1em;
  white-space: nowrap;
}

/* --- Spezifikationstabelle --- */
.specs {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.specs caption {
  text-align: left;
  font-family: var(--f-serif);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--c-primary);
  padding-bottom: var(--sp-2);
}
.specs th, .specs td {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
}
.specs th {
  font-weight: 600;
  color: var(--c-graphite);
  width: 45%;
  background: var(--c-bg-alt);
}
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }

.tablewrap {
  overflow-x: auto;              /* breite Tabellen scrollen in sich */
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}

/* --- Produktblock im Shop --- */
.product {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.product__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: var(--sp-3);
  background: var(--c-bg-alt);
  border-bottom: 1px solid var(--c-border);
}
.product__head h3 { margin: 0; }
.product__art {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: var(--fs-sm);
  color: var(--c-graphite);
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 2px;
  padding: 0.1rem 0.5rem;
}
.product__body { padding: var(--sp-3); }
.product__body .specs { border: 0; }

/* Zwei gleichwertige CTAs nebeneinander */
.dualcta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  border-top: 1px solid var(--c-border);
  padding: var(--sp-3);
  background: #fff;
}
.dualcta__box h4 { margin-bottom: 0.25rem; font-family: var(--f-sans); font-weight: 700; font-size: var(--fs-sm); color: var(--c-primary); }
.dualcta__box p { font-size: var(--fs-sm); color: var(--c-text-muted); margin-bottom: var(--sp-2); }

/* --- Hinweis-/Statusbloecke --- */
.note {
  border-left: 4px solid var(--c-primary);
  background: var(--c-primary-soft);
  padding: var(--sp-3);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.note h3, .note h4 { margin-top: 0; }
.note--accent { border-left-color: var(--c-accent); background: var(--c-accent-soft); }
.note--plain  { border-left-color: var(--c-border-strong); background: var(--c-bg-alt); }

/* Antwortkasten fuer direkte, zitierfaehige Antworten */
.answer {
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-accent);
  background: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--sp-3);
}
.answer__label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-accent-dark);
  margin-bottom: var(--sp-1);
}
.answer p { font-size: var(--fs-md); color: var(--c-text); }

/* --- Ist/Soll-Status (NIS2-Seite) --- */
.status {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--c-border);
  border-top: 4px solid var(--c-graphite);
  border-radius: var(--radius);
  padding: var(--sp-3);
  height: 100%;
}
.status--ist      { border-top-color: var(--c-primary); }
.status--altlast  { border-top-color: var(--c-accent); }
.status--roadmap  { border-top-color: var(--c-graphite-light); border-style: dashed; border-top-style: dashed; background: var(--c-bg-alt); }

.status__tag {
  display: inline-block;
  align-self: flex-start;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  margin-bottom: var(--sp-2);
}
.status--ist .status__tag     { background: var(--c-primary); color: #fff; }
.status--altlast .status__tag { background: var(--c-accent); color: #fff; }
.status--roadmap .status__tag { background: var(--c-graphite); color: #fff; }

.status h3 { font-size: var(--fs-md); }
.status ul { font-size: var(--fs-sm); }
.status__foot {
  margin-top: auto;
  padding-top: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  border-top: 1px solid var(--c-border);
}

/* --- Glossar & FAQ --- */
.glossary { display: grid; gap: var(--sp-3); }
.glossary__entry {
  border-left: 3px solid var(--c-border-strong);
  padding-left: var(--sp-3);
}
.glossary__entry h3 { font-size: var(--fs-md); margin-bottom: 0.25rem; }
.glossary__entry p { font-size: var(--fs-sm); color: var(--c-graphite); }

.faq { display: grid; gap: var(--sp-4); }
.faq__item { border-bottom: 1px solid var(--c-border); padding-bottom: var(--sp-3); }
.faq__item:last-child { border-bottom: 0; }
.faq__item h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.faq__answer { font-size: var(--fs-sm); color: var(--c-graphite); }
.faq__answer strong { color: var(--c-text); }

/* --- Prozessschritte --- */
.steps { counter-reset: step; display: grid; gap: var(--sp-3); }
.steps__item {
  position: relative;
  padding-left: 3.25rem;
}
.steps__item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  width: 2.35rem; height: 2.35rem;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--c-primary);
  border: 1px solid var(--c-border-strong);
  border-radius: 50%;
  background: #fff;
}
.steps__item h3 { font-size: var(--fs-md); margin-bottom: 0.2rem; }
.steps__item p { font-size: var(--fs-sm); color: var(--c-graphite); }

/* --- Formular --- */
.form { display: grid; gap: var(--sp-3); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--c-graphite); }
.field input, .field select, .field textarea {
  font-family: var(--f-sans);
  font-size: var(--fs-base);
  color: var(--c-text);
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius);
  background: #fff;
  width: 100%;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--c-primary); }
.field__hint { font-size: var(--fs-xs); color: var(--c-text-muted); }
.field--check { flex-direction: row; align-items: flex-start; gap: 0.6rem; }
.field--check input { width: auto; margin-top: 0.35rem; }
.field--check label { font-weight: 400; font-size: var(--fs-sm); }

/* ---------------------------------------------------------------------
   6. Kopf, Navigation, Fuss
   ------------------------------------------------------------------ */

/* --- Servicezeile --- */
.topbar {
  background: var(--c-primary-dark);
  color: #C6D5DC;
  font-size: var(--fs-xs);
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-block: 0.45rem;
}
.topbar p { margin: 0; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: #E8C9A6; text-decoration: underline; }
.topbar__contact { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.topbar__sep { opacity: .5; }
.topbar .ph-tag { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #C6D5DC; }

/* --- Kopfbereich --- */
.masthead {
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-block: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--c-primary);
  flex-shrink: 0;
}
.brand__mark { color: var(--c-primary); display: flex; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--f-serif);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--c-primary);
}
.brand__sub {
  font-size: 0.7rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--c-graphite-light);
}

/* --- Navigation (Desktop) --- */
.nav { display: flex; align-items: center; gap: var(--sp-3); }
.nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__item { position: relative; }
.nav__row { display: flex; align-items: center; }

.nav__link {
  display: block;
  padding: 0.55rem 0.7rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-graphite);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav__link:hover { color: var(--c-primary); }
.nav__link.is-active { color: var(--c-primary); border-bottom-color: var(--c-accent); }

.nav__expander {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem; height: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--c-graphite-light);
}
.nav__chev {
  width: 0.42rem; height: 0.42rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform .15s ease;
}
.nav__expander[aria-expanded="true"] .nav__chev { transform: rotate(-135deg) translate(-2px, -2px); }

.nav__sub {
  list-style: none;
  margin: 0; padding: 0.4rem 0;
  position: absolute;
  top: 100%; left: 0;
  min-width: 17rem;
  background: #fff;
  border: 1px solid var(--c-border);
  border-top: 3px solid var(--c-accent);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 8px 24px rgba(11, 59, 79, .12);
  display: none;
  z-index: 110;
}
.nav__item--has-sub:hover > .nav__sub,
.nav__item--has-sub:focus-within > .nav__sub,
.nav__item--has-sub.is-open > .nav__sub { display: block; }

.nav__sublink {
  display: block;
  padding: 0.5rem 1rem;
  font-size: var(--fs-sm);
  color: var(--c-graphite);
  text-decoration: none;
}
.nav__sublink:hover { background: var(--c-bg-alt); color: var(--c-primary); }
.nav__sublink.is-active { color: var(--c-primary); font-weight: 600; }

.nav__cta { flex-shrink: 0; white-space: nowrap; }

/* --- Menue-Schalter (nur mobil sichtbar) --- */
.navtoggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius);
  padding: 0.5rem 0.8rem;
  font-family: var(--f-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-primary);
  cursor: pointer;
}
.navtoggle__bars { display: flex; flex-direction: column; gap: 3px; }
.navtoggle__bars span {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
}

/* --- Brotkrumenpfad --- */
.breadcrumb {
  background: var(--c-bg-alt);
  border-bottom: 1px solid var(--c-border);
  font-size: var(--fs-xs);
}
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0; padding: 0.6rem 0;
  color: var(--c-text-muted);
}
.breadcrumb__list li + li::before { content: "›"; margin-right: 0.4rem; opacity: .6; }
.breadcrumb a { color: var(--c-graphite); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: var(--c-primary); }

/* --- Abschluss-CTA --- */
.closing {
  background: var(--c-primary);
  color: #DCE7EC;
  padding-block: var(--sp-5);
}
.closing__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.closing__text { max-width: 46rem; }
.closing__title { color: #fff; }
.closing__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* --- Fussbereich --- */
.footer {
  background: var(--c-primary-dark);
  color: #B9C9D1;
  font-size: var(--fs-sm);
  padding-block: var(--sp-5) var(--sp-3);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: var(--sp-4);
}
.footer__mark { color: #E8C9A6; display: block; margin-bottom: var(--sp-2); }
.footer__brandname {
  font-family: var(--f-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.footer__brandsub {
  font-size: 0.7rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #8FA6B1;
  margin: 0 0 var(--sp-3);
}
.footer__addr { line-height: 1.7; margin: 0; }
.footer__head {
  font-family: var(--f-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #E8C9A6;
  margin-bottom: var(--sp-2);
}
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: 0.45rem; }
.footer a { color: #CFDDE4; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__phone { margin-top: var(--sp-3); font-weight: 600; }
.footer .ph-tag { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); color: #9FB3BD; }
.ext { font-size: .8em; }

.footer__legal {
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: start;
  justify-content: space-between;
  font-size: var(--fs-xs);
}
.footer__proto { max-width: 58ch; margin: 0; color: #9FB3BD; }
.footer__proto strong { color: #E8C9A6; }
.footer__legallinks {
  display: flex; flex-wrap: wrap; gap: var(--sp-3);
  list-style: none; margin: 0; padding: 0;
}

/* ---------------------------------------------------------------------
   7. Seitenspezifische Bloecke
   ------------------------------------------------------------------ */

/* --- Hero: flaeche Petrolflaeche, Connector-Motiv als Wasserzeichen --- */
.hero {
  position: relative;
  background: var(--c-primary);
  color: #DCE7EC;
  overflow: hidden;
  padding-block: clamp(2.75rem, 6vw, 5.25rem);
}
.hero__deco {
  position: absolute;
  right: -6rem;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  opacity: .06;
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 46rem; }
.hero h1 { color: #fff; margin-bottom: var(--sp-3); }
.hero p.lead { color: #C4D6DE; }
.hero .btnrow { margin-top: var(--sp-4); }

.hero--sub { padding-block: clamp(2.25rem, 4vw, 3.5rem); }
.hero--sub h1 { font-size: clamp(1.75rem, 2.2vw + 1.1rem, 2.6rem); }

/* --- Startseite: Vertrauensstreifen ueberlappt die Hero-Kante --- */
.section--overlap { padding-top: 0; }
.trustwrap { margin-top: -3rem; position: relative; z-index: 2; }

/* --- Zwei-Spalten-Gegenueberstellung (vorher/nachher, ist/soll) --- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare__col { padding: var(--sp-3); }
.compare__col + .compare__col { border-left: 1px solid var(--c-border); }
.compare__col--before { background: var(--c-bg-alt); }
.compare__col--after  { background: #fff; }
.compare h3 { font-size: var(--fs-md); }

/* --- Verantwortungs-/Ehrlichkeitskasten --- */
.disclaimer {
  border: 2px solid var(--c-accent);
  border-radius: var(--radius);
  background: var(--c-accent-soft);
  padding: var(--sp-4);
}
.disclaimer h2 { font-size: var(--fs-h3); }
.disclaimer ul.ticks li::before { background: var(--c-accent-dark); box-shadow: 0 0 0 3px #fff; }

/* --- Redaktionshinweis: nur im Prototyp sichtbar --- */
.editorial {
  border: 1px dashed var(--c-border-strong);
  background: repeating-linear-gradient(-45deg, #F7F6F3 0 8px, #F1EFEB 8px 16px);
  border-radius: var(--radius);
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--c-graphite);
}
.editorial strong { color: var(--c-accent-dark); text-transform: uppercase; letter-spacing: .08em; }

/* --- Prinzipschema (Inline-SVG, siehe inc/grafik-trennung.php) --- */
.schemafig { margin: 0; max-width: 820px; }
.schemafig__head { text-align: center; margin-bottom: var(--sp-3); }
/* Vollbreite Variante wird zentriert, damit die Beschriftung lesbar gross bleibt */
.schemafig__head + .schemafig { margin-inline: auto; }
.schemawrap {
  overflow-x: auto;               /* schmale Viewports: Grafik scrollt in sich */
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: #fff;
  padding: var(--sp-3);
}
.schema { display: block; width: 100%; height: auto; }
.schema text { font-family: var(--f-sans); fill: var(--c-text); }
/* Schriftgroessen sind auf die reale Skalierung abgestimmt: die Zeichnungen
   stehen teils in schmalen Spalten (~0,75) und muessen dort lesbar bleiben. */
.schema .s-head  { font-size: 20px; font-weight: 700; fill: var(--c-primary); }
.schema .s-sub   { font-size: 16px; fill: var(--c-graphite); }
.schema .s-label { font-size: 17px; font-weight: 600; fill: var(--c-graphite); }
.schema .s-accent{ font-size: 15px; font-weight: 700; fill: var(--c-accent-dark);
                   letter-spacing: .06em; text-transform: uppercase; }
.schema .s-note  { font-size: 15px; fill: var(--c-text-muted); font-style: italic; }
.schema .s-small { font-size: 15px; font-weight: 600; fill: var(--c-graphite); }
.schema .s-small-acc { font-size: 15px; font-weight: 700; fill: var(--c-accent-dark); }
.schema .s-num   { font-size: 14px; font-weight: 600; fill: var(--c-text-muted); }
.schemafig__cap {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  margin-top: var(--sp-2);
}

/* --- Kontaktkarte --- */
.contactcard {
  border: 1px solid var(--c-border);
  border-top: 3px solid var(--c-primary);
  border-radius: var(--radius);
  background: #fff;
  padding: var(--sp-3);
}
.contactcard__phone {
  font-family: var(--f-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--c-primary);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.25rem;
  word-break: break-word;
}
.contactcard__phone:hover { color: var(--c-accent-dark); }

/* ---------------------------------------------------------------------
   8. Responsive
   ------------------------------------------------------------------ */

@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .trust__item:nth-child(2n) { border-right: 0; }
  .trust__item:nth-child(-n+2) { border-bottom: 1px solid var(--c-border); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* Ab hier: Klappmenue statt horizontaler Navigation */
@media (max-width: 1024px) {
  .navtoggle { display: inline-flex; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-top: 1px solid var(--c-border);
    border-bottom: 3px solid var(--c-accent);
    box-shadow: 0 14px 28px rgba(11, 59, 79, .14);
    padding: var(--sp-2) clamp(1rem, 4vw, 2.25rem) var(--sp-3);
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
  }
  .nav.is-open { display: flex; }

  .masthead__inner { position: relative; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--c-border); }
  .nav__row { justify-content: space-between; }
  .nav__link { padding: 0.85rem 0; font-size: var(--fs-base); flex: 1; border-bottom: 0; }
  .nav__link.is-active { border-bottom: 0; color: var(--c-accent-dark); }
  .nav__expander { width: 2.75rem; height: 2.75rem; }

  .nav__sub {
    position: static;
    display: none;
    min-width: 0;
    border: 0;
    border-left: 2px solid var(--c-border);
    box-shadow: none;
    margin: 0 0 var(--sp-2) 0.35rem;
    padding: 0;
  }
  /* Auf Mobil oeffnet ausschliesslich der Klick, nicht Hover */
  .nav__item--has-sub:hover > .nav__sub,
  .nav__item--has-sub:focus-within > .nav__sub { display: none; }
  .nav__item--has-sub.is-open > .nav__sub { display: block; }
  .nav__sublink { padding: 0.6rem 0.9rem; }

  .nav__cta { margin-top: var(--sp-3); width: 100%; }
}

@media (max-width: 860px) {
  .split, .split--even { grid-template-columns: 1fr; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .compare { grid-template-columns: 1fr; }
  .compare__col + .compare__col { border-left: 0; border-top: 1px solid var(--c-border); }
  .closing__inner { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__deco { right: -10rem; opacity: .05; }
}

@media (max-width: 620px) {
  :root { --sp-6: 3.25rem; --sp-5: 2.25rem; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .trust__item { border-right: 0; border-bottom: 1px solid var(--c-border); }
  .trust__item:last-child { border-bottom: 0; }

  .form__row { grid-template-columns: 1fr; }
  .dualcta { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .section--overlap { padding-top: var(--sp-5); }
  .trustwrap { margin-top: 0; }

  /* Connector-Motiv weiter aus dem Textbereich schieben */
  .hero__deco { right: -16rem; opacity: .045; }

  /* Schema nicht unter die Lesbarkeitsgrenze quetschen, lieber scrollen */
  .schemawrap { padding: var(--sp-2); }
  .schema { min-width: 560px; }

  .topbar__inner { flex-direction: column; align-items: flex-start; }
  .topbar__note { display: none; }

  .brand__name { font-size: 1.15rem; }
  .brand__sub { font-size: 0.62rem; }
  .navtoggle__label { display: none; }
  .navtoggle { padding: 0.6rem 0.7rem; }

  .specs th { width: 42%; }
  .product__head { flex-direction: column; align-items: flex-start; }
  .disclaimer { padding: var(--sp-3); }
}

/* Druck: Navigation und CTA-Flaechen weglassen */
@media print {
  .topbar, .masthead, .closing, .footer, .skiplink { display: none; }
  body { color: #000; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
