/* ==========================================================================
   Ebert-Service — Stylesheet
   Bildsprache aus dem Logo: Haus bei Nacht, blaue Leuchtlinie, warmes Licht
   in den Fenstern. Dunkler Grund, eine kalte und eine warme Lichtfarbe,
   sonst nichts. Grosse Schrift, weite Abstaende.
   ========================================================================== */

/* --- Schriften, selbst gehostet ------------------------------------------ */
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-var-latin.woff2') format('woff2-variations'),
       url('../fonts/archivo-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: 'Plex Sans';
  src: url('../fonts/plexsans-var-latin.woff2') format('woff2-variations'),
       url('../fonts/plexsans-var-latin.woff2') format('woff2');
  font-weight: 100 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('../fonts/plexmono-500-latin.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212;
}

/* --- Farben und Masse ----------------------------------------------------
   Heller Grund fuer die Arbeitsflaeche, damit die Handwerksfotos wirken.
   Das Nachtblau des Logos bleibt als Buehne: Kopf, Hero-Band und Fussbereich. */
:root {
  --papier:     #f5f2ec;   /* warmes Weiss, vertraegt sich mit Fotos */
  --papier-2:   #eae4da;   /* zweite Flaeche, sichtbarer Wechsel */
  --karte:      #ffffff;
  --karte-hoch: #ffffff;
  --linie:      rgba(24, 28, 34, .14);
  --linie-hell: rgba(24, 28, 34, .26);

  --nacht:      #04070f;   /* Hero-Band, Kopf, Fuss */
  --nacht-2:    #070c18;

  --blau:       #1f5fd8;   /* Logoblau, auf hellem Grund tragfaehig */
  --blau-knopf: #1a53c4;   /* Knopfflaeche: weisse Schrift 6,3:1 */
  --blau-hell:  #7fb4ff;   /* nur auf dunklem Grund */
  --blau-tief:  #123a7d;
  --licht:      #d9781a;   /* warmes Licht, zweiter Ton */

  --text:       #16181c;
  --text-2:     #4b5360;
  --text-3:     #6d7686;

  --wrap:       1200px;
  --rad:        18px;
  --rad-s:      10px;

  --schnell:    .18s cubic-bezier(.2,.7,.3,1);
  --ruhig:      .45s cubic-bezier(.2,.7,.3,1);
}

/* --- Grundlage ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
/* clip statt hidden: schneidet die geschlossene Menue-Schublade rechts ab,
   ohne einen eigenen Scroll-Bereich zu erzeugen (sonst bricht der klebende Kopf). */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--text);
  font: 400 1.125rem/1.65 'Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  overflow-x: clip;
}
img, svg { max-width: 100%; height: auto; display: block; }
/* Grundfarbe fuer Links ist das dunklere Blau — die Seite ist hell.
   Auf den dunklen Baendern (Kopf, Hero, Fuss) setzen eigene Regeln die helle Variante. */
a { color: var(--blau); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: #14429c; }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: 'Archivo', 'Plex Sans', sans-serif;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.08;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
/* Kartenueberschriften deutlich ueber dem Fliesstext (1,125rem), sonst
   verschwimmen Titel und Text zu einem Block. */
h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); letter-spacing: -.015em; font-weight: 700; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--blau); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 var(--rad-s) 0;
}
.skip:focus { left: 0; }

/* Kleinschrift-Label wie eine Werkstattbeschriftung */
.label {
  font-family: 'Plex Mono', ui-monospace, monospace;
  font-size: .74rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--blau);
  display: inline-flex; align-items: center; gap: .6rem;
}
.label::before {
  content: ''; width: 1.6rem; height: 1px; background: var(--blau);
}
.ico { flex: none; }

/* --- Schaltflaechen ------------------------------------------------------ */
/* Sachliche Schaltflaechen: eckig statt Pille, kein Leuchten, ruhiger Farbwechsel. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.6rem;
  border: 1px solid transparent; border-radius: 6px;
  font: 600 1rem/1 'Plex Sans', sans-serif;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--schnell), border-color var(--schnell), color var(--schnell);
}
/* Knopfblau ist dunkler als das Logoblau: weisse Schrift braucht 4,5:1, das helle
   Logoblau schafft nur 3,9:1. */
.btn-hell { background: var(--blau-knopf); color: #fff; }
.btn-hell:hover { background: #14429c; color: #fff; }
.btn-still { background: transparent; color: var(--text); border-color: var(--linie-hell); }
.btn-still:hover { background: rgba(24,28,34,.06); border-color: var(--text-2); color: var(--text); }
.btn-gross { padding: 1.15rem 2rem; font-size: 1.06rem; }

/* --- Kopfbereich --------------------------------------------------------- */
/* Kopfzeile gehoert optisch zum dunklen Hero-Band, deshalb eigene helle Schriftfarben. */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: rgba(4,7,15,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(126,173,255,.16);
  color: #e9eefb;
}
.kopf .marke { color: #e9eefb; }
.kopf .marke-txt span { color: #8fa1bd; }
/* Nur die Navigationspunkte einfaerben — nicht die Schaltflaechen daneben,
   sonst bekommt der Anfrage-Knopf graue statt weisser Schrift. */
.kopf .nav ul a { color: #b9c6dd; }
.kopf .nav ul a:hover, .kopf .nav ul a[aria-current="page"] { color: #fff; }
.kopf .btn-still { background: rgba(126,173,255,.10); color: #e9eefb; border-color: rgba(126,173,255,.30); }
.kopf .btn-still:hover { background: rgba(126,173,255,.18); color: #fff; }
.kopf .burger { background: rgba(126,173,255,.10); border-color: rgba(126,173,255,.26); }
.kopf .burger span { background: #e9eefb; }
/* Der Kopf darf breiter sein als der Textbereich: Marke, sieben Punkte,
   Telefonnummer und Anfrage-Knopf brauchen mehr als 1200 px. */
.kopf-in { display: flex; align-items: center; gap: 1.5rem; min-height: 78px; width: min(100% - 2.5rem, 1440px); }
.marke { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--text); margin-right: auto; flex: none; }
.marke img { width: 52px; height: 52px; }
.marke-txt { display: flex; flex-direction: column; line-height: 1.2; }
/* Name und Zusatz duerfen nicht umbrechen — sonst schiebt sich die Marke
   in die Navigation. Der Zusatz weicht, sobald es eng wird. */
.marke-txt strong { font-family: 'Archivo', sans-serif; font-size: 1.22rem; letter-spacing: -.02em; white-space: nowrap; }
.marke-txt span { font-family: 'Plex Mono', monospace; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
@media (max-width: 1450px) { .marke-txt span { display: none; } }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
/* Nur Navigationspunkte, nicht die Schaltflaechen in .nav-cta daneben. */
.nav ul a { color: var(--text-2); text-decoration: none; font-size: .97rem; padding: .4rem 0; position: relative; white-space: nowrap; }
.nav ul a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--blau); box-shadow: 0 0 10px var(--blau);
  transition: right var(--schnell);
}
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--text); }
.nav ul a:hover::after, .nav ul a[aria-current="page"]::after { right: 0; }
.nav-cta { display: flex; gap: .7rem; }
.nav-cta .btn { padding: .7rem 1.2rem; font-size: .93rem; }
.nav-zu { display: none; }

.burger {
  display: none; width: 46px; height: 46px; padding: 11px;
  background: rgba(126,173,255,.08); border: 1px solid var(--linie); border-radius: 12px; cursor: pointer;
}
.burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--schnell), opacity var(--schnell); }
.burger span + span { margin-top: 5px; }

/* --- Hero: das dunkle Band mit dem Logo (Signature) ----------------------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
  background: var(--nacht); color: #e9eefb;
}
.hero::before {
  content: ''; position: absolute; inset: -30% -10% auto -10%; height: 90%;
  background: radial-gradient(60% 60% at 70% 30%, rgba(47,123,255,.22), transparent 70%);
  pointer-events: none;
}
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin-top: .8rem; }
.hero h1 em { font-style: normal; color: var(--blau-hell); }
.hero-text { font-size: clamp(1.06rem, 1.6vw, 1.22rem); color: var(--text-2); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-fakten { display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem; margin-top: 2.6rem; padding-top: 1.7rem; border-top: 1px solid var(--linie); }
.hero-fakt { display: flex; align-items: center; gap: .7rem; color: var(--text-2); font-size: .96rem; }
.hero-fakt .ico { color: var(--blau-hell); }

/* Farben auf dem dunklen Hero-Band. Stehen bewusst NACH den Grundregeln,
   sonst gewinnen bei gleicher Spezifitaet die hellen Werte von oben. */
.hero .label      { color: #7fb4ff; }
.hero .label::before { background: #2f7bff; box-shadow: 0 0 8px #2f7bff; }
.hero h1          { color: #f2f5fd; }
.hero h1 em       { color: #7fb4ff; }
.hero .hero-text  { color: #b9c6dd; }
.hero .btn-still  { background: rgba(126,173,255,.10); color: #e9eefb; border-color: rgba(126,173,255,.30); }
.hero .btn-still:hover { background: rgba(126,173,255,.18); color: #fff; border-color: rgba(126,173,255,.55); }
.hero .hero-fakten { border-top-color: rgba(126,173,255,.20); }
.hero .hero-fakt   { color: #9dafcd; }
.hero .hero-fakt .ico { color: #7fb4ff; }

/* Das Logo des Kunden — groesstes Einzelelement der Seite */
.hero-logo { position: relative; display: grid; place-items: center; }
.hero-logo::before {
  content: ''; position: absolute; width: 92%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,123,255,.35), transparent 62%);
  filter: blur(22px);
}
.hero-logo img {
  position: relative; width: min(100%, 460px); height: auto;
  /* Kein border-radius: das Emblem ist selbst rund und reicht bis an den Bildrand —
     ein Kreis-Zuschnitt wuerde den aeusseren Schriftzug abschneiden. */
  box-shadow: 0 30px 70px -30px rgba(47,123,255,.9);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-logo img { animation: logo-auf .9s cubic-bezier(.2,.7,.3,1) both; }
  .hero-logo::before { animation: schein 5s ease-in-out 1s infinite alternate; }
}
@keyframes logo-auf { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes schein  { from { opacity: .65; } to { opacity: 1; } }

/* Band mit der gezeichneten Hauskontur als Uebergang zum naechsten Abschnitt */
.haus-band {
  width: min(100% - 2.5rem, var(--wrap)); margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  border-top: 1px solid var(--linie); padding-top: clamp(1.5rem, 3vw, 2.5rem);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.haus-band .haus { max-height: 210px; margin-inline: auto; }

/* gezeichnete Hauskontur */
.haus { width: 100%; height: auto; color: var(--blau); }
.haus .kontur { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(47,123,255,.85)); }
.haus .kontur-2 { stroke: var(--blau-hell); stroke-width: 1.2; opacity: .55; }
.haus .fenster { fill: var(--licht); opacity: .9; filter: drop-shadow(0 0 10px rgba(255,178,87,.75)); }
.haus .boden { stroke: var(--blau-tief); stroke-width: 1; opacity: .8; }
/* Die Linie zeichnet sich erst, wenn das Haus ins Bild kommt (Klasse setzt ebert.js) —
   sonst laeuft die Animation ab, waehrend niemand hinsieht. */
@media (prefers-reduced-motion: no-preference) {
  .haus-band .kontur  { stroke-dasharray: 1400; stroke-dashoffset: 1400; }
  .haus-band .fenster { opacity: 0; }
  .haus-band.sichtbar .kontur { animation: zeichnen 2.4s cubic-bezier(.4,0,.2,1) forwards; }
  .haus-band.sichtbar .fenster { animation: lichtan .7s forwards; }
  .haus-band.sichtbar .fenster:nth-of-type(1) { animation-delay: 1.3s; }
  .haus-band.sichtbar .fenster:nth-of-type(2) { animation-delay: 1.5s; }
  .haus-band.sichtbar .fenster:nth-of-type(3) { animation-delay: 1.7s; }
  .haus-band.sichtbar .fenster:nth-of-type(4) { animation-delay: 1.9s; }
  .haus-band.sichtbar .fenster:nth-of-type(5) { animation-delay: 2.1s; }
}
@keyframes zeichnen { to { stroke-dashoffset: 0; } }
@keyframes lichtan  { from { opacity: 0; } to { opacity: .9; } }

/* --- Abschnitte ---------------------------------------------------------- */
.abschnitt { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.abschnitt-dunkel { background: var(--papier-2); border-block: 1px solid var(--linie); }
.abschnitt-kopf { max-width: 62ch; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.abschnitt-kopf h2 { margin-top: .7rem; }
.abschnitt-kopf p { color: var(--text-2); font-size: 1.09rem; margin-bottom: 0; }

/* --- Leistungskarten: Licht geht an -------------------------------------- */
/* Zwei Karten nebeneinander — vier in einer Reihe waeren zu schmal fuer
   Bild, Ueberschrift und Liste. Drei Karten ohne Bild passen in drei Spalten,
   sonst bliebe der vierte Platz leer. */
.karten { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.karten-drei { grid-template-columns: repeat(3, 1fr); }
.karte {
  position: relative; display: flex; flex-direction: column;
  padding: 2rem 1.9rem 1.7rem;
  background: var(--karte); border: 1px solid var(--linie); border-radius: var(--rad);
  overflow: hidden;
  transition: transform var(--ruhig), border-color var(--ruhig), background var(--ruhig);
}
.karte::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(31,95,216,.06), transparent 60%);
  opacity: 0; transition: opacity var(--ruhig);
}
.karte:hover, .karte:focus-within {
  transform: translateY(-4px); border-color: var(--linie-hell);
  box-shadow: 0 18px 40px -26px rgba(20,30,50,.55);
}
.karte:hover::before, .karte:focus-within::before { opacity: 1; }
.karte-ico {
  width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 1.4rem;
  border-radius: 12px; color: #fff; background: var(--blau);
}
.karte h3 { margin-bottom: .5rem; }
.karte-kurz { color: var(--text-2); font-size: 1rem; }
.karte-liste { list-style: none; margin: 1.3rem 0 1.7rem; padding: 0; display: grid; gap: .55rem; }
.karte-liste li { display: flex; gap: .65rem; align-items: flex-start; color: var(--text-2); font-size: .97rem; }
.karte-liste .ico { color: var(--blau); margin-top: .28rem; }
/* Der Link ist der Ausgang aus der Karte — groesser als der Fliesstext daneben. */
.karte-mehr {
  margin-top: auto; display: inline-flex; align-items: center; gap: .5rem;
  font-size: 1.12rem; padding-top: .3rem;
  color: var(--blau); text-decoration: none; font-weight: 600;
}
.karte-mehr .ico { transition: transform var(--schnell); }
.karte:hover .karte-mehr .ico { transform: translateX(4px); }
.karte-mehr::after { content: ''; position: absolute; inset: 0; }  /* ganze Karte klickbar */

/* --- Warum wir ----------------------------------------------------------- */
.warum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.warum-pkt { padding: 1.7rem 1.5rem; border: 1px solid var(--linie); border-radius: var(--rad); background: var(--karte); }
.warum-pkt .ico { color: var(--blau); margin-bottom: 1rem; }
.warum-pkt h3 { font-size: 1.16rem; margin-bottom: .4rem; }
.warum-pkt p { color: var(--text-2); font-size: .96rem; margin: 0; }

/* --- Ueber uns ----------------------------------------------------------- */
.ueber { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.ueber-text p { font-size: 1.09rem; color: var(--text-2); }
.ueber-text .satz {
  margin-top: 1.8rem; padding-left: 1.4rem; border-left: 2px solid var(--blau);
  font-family: 'Archivo', sans-serif; font-weight: 600; font-size: 1.2rem; color: var(--text); line-height: 1.4;
}
.portrait { border-radius: var(--rad); border: 1px solid var(--linie); overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* Platzhalter fuer Bilder, die noch fehlen */
.platz {
  position: relative; display: grid; place-items: center; gap: .8rem;
  aspect-ratio: 4 / 3; padding: 2rem;
  border: 1px dashed var(--linie-hell); border-radius: var(--rad);
  background:
    repeating-linear-gradient(-45deg, rgba(47,123,255,.05) 0 12px, transparent 12px 24px),
    var(--karte);
  color: var(--text-3); text-align: center;
}
.platz .ico { color: var(--blau); opacity: .7; }
.platz b { font-family: 'Plex Mono', monospace; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blau-hell); font-weight: 500; }
.platz span { font-size: .92rem; max-width: 32ch; }

/* --- Fragen -------------------------------------------------------------- */
.fragen { max-width: 80ch; }
.frage { border-bottom: 1px solid var(--linie); }
.frage summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0; cursor: pointer; list-style: none;
  font-family: 'Archivo', sans-serif; font-weight: 600; font-size: clamp(1.06rem, 2vw, 1.2rem);
}
.frage summary::-webkit-details-marker { display: none; }
.frage summary::after {
  content: ''; flex: none; width: 13px; height: 13px;
  border-right: 2px solid var(--blau-hell); border-bottom: 2px solid var(--blau-hell);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform var(--schnell);
}
.frage[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.frage p { color: var(--text-2); padding-bottom: 1.4rem; margin: 0; max-width: 70ch; }

/* --- Anfrage-Abschnitt --------------------------------------------------- */
.anfrage { position: relative; overflow: hidden; }
.anfrage::before {
  content: ''; position: absolute; inset: auto -20% -60% -20%; height: 120%;
  background: radial-gradient(50% 50% at 50% 100%, rgba(47,123,255,.18), transparent 70%);
  pointer-events: none;
}
.anfrage-in { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.anfrage-info ul { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.anfrage-info li { display: flex; gap: .9rem; align-items: flex-start; color: var(--text-2); }
.anfrage-info .ico { color: var(--blau-hell); margin-top: .2rem; }
.anfrage-info a { color: var(--text); text-decoration: none; font-weight: 600; }
.anfrage-info a:hover { color: var(--blau-hell); }

/* --- Formular ------------------------------------------------------------ */
.form { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--rad); padding: clamp(1.6rem, 3vw, 2.4rem); }
.feld { margin-bottom: 1.25rem; }
.feld label { display: block; margin-bottom: .5rem; font-weight: 600; font-size: .97rem; }
.feld .hinweis { font-weight: 400; color: var(--text-3); font-size: .88rem; }
.feld input, .feld textarea, .feld select {
  width: 100%; padding: .95rem 1.05rem;
  background: var(--papier); color: var(--text);
  border: 1px solid var(--linie); border-radius: var(--rad-s);
  font: 400 1.02rem/1.5 'Plex Sans', sans-serif;
  transition: border-color var(--schnell), box-shadow var(--schnell);
}
.feld input:focus, .feld textarea:focus, .feld select:focus {
  outline: none; border-color: var(--blau); box-shadow: 0 0 0 3px rgba(47,123,255,.22);
}
.feld textarea { min-height: 160px; resize: vertical; }
.feld-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.feld-pflicht { color: #b3341f; }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.6rem; }
.form-schutz { font-size: .87rem; color: var(--text-3); display: flex; align-items: center; gap: .5rem; }
/* display:flex wuerde das hidden-Attribut ueberstimmen — daher ausdruecklich. */
.form-schutz[hidden] { display: none; }
.form-schutz .ico { color: var(--blau); }
.form-recht { font-size: .89rem; color: var(--text-3); margin-top: 1.2rem; }

.meldung { padding: 1.1rem 1.3rem; border-radius: var(--rad-s); margin-bottom: 1.5rem; border: 1px solid; font-size: 1rem; }
.meldung-ok { background: rgba(47,123,255,.1); border-color: var(--blau); color: var(--text); }
.meldung-fehler { background: #fbeceb; border-color: #b3341f; color: #7f1d1d; }

/* --- Unterseiten-Kopf ---------------------------------------------------- */
.seiten-kopf { padding: clamp(2.8rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--linie); position: relative; overflow: hidden; }
.seiten-kopf::before {
  content: ''; position: absolute; inset: -60% -10% auto 30%; height: 160%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(47,123,255,.16), transparent 70%);
  pointer-events: none;
}
/* Volle Rasterbreite: eine Begrenzung am ganzen Block wuerde zusammen mit dem
   margin-inline:auto von .wrap den Kopf mittig einruecken — er stuende dann
   schmaler und weiter rechts als der Inhalt darunter. Nur der Fliesstext
   bekommt eine Lesebreite. */
.seiten-kopf-in { position: relative; }
.seiten-kopf h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-top: .7rem; }
.seiten-kopf p { color: var(--text-2); font-size: 1.12rem; margin-bottom: 0; max-width: 68ch; }
.brotkrume { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0 0 1.4rem; padding: 0; font-size: .88rem; color: var(--text-3); }
.brotkrume a { color: var(--text-2); text-decoration: none; }
.brotkrume a:hover { color: var(--blau); }
.brotkrume li + li::before { content: '/'; margin-right: .5rem; color: var(--text-3); opacity: .6; }

/* Leistungs-Detail */
.detail { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.detail-text p { font-size: 1.09rem; color: var(--text-2); }
.leist-liste { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .9rem; }
.leist-liste li {
  display: flex; gap: .9rem; align-items: center;
  padding: 1rem 1.2rem; background: var(--karte); border: 1px solid var(--linie); border-radius: var(--rad-s);
  font-size: 1.02rem;
}
.leist-liste .ico { color: var(--blau); }
.seite-cta {
  margin-top: clamp(2.5rem, 5vw, 4rem); padding: clamp(1.8rem, 4vw, 2.8rem);
  border: 1px solid var(--linie-hell); border-radius: var(--rad);
  background: linear-gradient(180deg, rgba(47,123,255,.10), rgba(47,123,255,.02));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.seite-cta h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 .3rem; }
.seite-cta p { color: var(--text-2); margin: 0; }

/* Fliesstext auf Rechtsseiten */
.text-seite { max-width: 78ch; padding-block: clamp(2.5rem, 5vw, 4rem); }
.text-seite h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 2.4rem; }
.text-seite h3 { font-size: 1.2rem; margin-top: 1.8rem; }
.text-seite p, .text-seite li { color: var(--text-2); }
.text-seite ul { padding-left: 1.3rem; }
.text-seite li { margin-bottom: .5rem; }
.text-seite dl { display: grid; grid-template-columns: max-content 1fr; gap: .6rem 1.5rem; margin: 1.5rem 0; }
.text-seite dt { color: var(--text-3); }
.text-seite dd { margin: 0; }

/* --- Fussbereich --------------------------------------------------------- */
/* Fussbereich ist das zweite dunkle Band — eigene helle Schriftfarben. */
.fuss { background: var(--nacht); border-top: 1px solid rgba(126,173,255,.16); padding-top: clamp(2.8rem, 5vw, 4rem); color: #b9c6dd; }
.fuss .fuss-satz { color: #9dafcd; }
.fuss .fuss-sp h2 { color: #7f8fa8; }
.fuss .fuss-sp a { color: #d6e0f2; }
.fuss .fuss-sp a:hover { color: #7fb4ff; }
.fuss .fuss-sp li { color: #9dafcd; }
.fuss .fuss-zeile { border-top-color: rgba(126,173,255,.14); }
.fuss .fuss-zeile p { color: #7f8fa8; }
/* Kontakt-Spalte breiter: die E-Mail-Adresse soll in eine Zeile passen.
   Leistungen ebenfalls breiter wegen der langen Bezeichnungen. */
.fuss-in { display: grid; grid-template-columns: 1fr 1.1fr 1.35fr 1fr; gap: 2rem 2.5rem; padding-bottom: 2.5rem; }
.fuss-marke img { width: 64px; height: 64px; margin-bottom: 1.1rem; }
.fuss-satz { color: var(--text-2); font-size: .98rem; max-width: 34ch; }
.fuss-sp h2 { font-family: 'Plex Mono', monospace; font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 1.1rem; }
.fuss-sp ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.fuss-sp a { color: var(--text-2); text-decoration: none; font-size: .97rem; }
.fuss-sp a:hover { color: var(--blau-hell); }
.fuss-sp li { color: var(--text-2); font-size: .97rem; }
.fuss-zeile {
  border-top: 1px solid var(--linie); padding: 1.4rem 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.5rem;
}
.fuss-zeile p { color: var(--text-3); font-size: .88rem; margin: 0; }

/* ==========================================================================
   Breite Bildschirme -> schmale Geraete
   ========================================================================== */
@media (max-width: 1080px) {
  .karten { grid-template-columns: 1fr 1fr; }
  .warum  { grid-template-columns: 1fr 1fr; }
  .fuss-in { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 900px) {
  .hero-in, .ueber, .anfrage-in, .detail { grid-template-columns: 1fr; }
  .hero-bild { order: -1; max-width: 520px; }
  .ueber .portrait, .ueber .platz { max-width: 520px; }
}

@media (max-width: 1330px) {
  /* Menue wird zur vollflaechigen Schublade */
  .burger { display: block; }
  /* WICHTIG: kein backdrop-filter am Kopf, solange die Schublade in ihm steckt.
     Ein Element mit backdrop-filter wird zum Bezugsrahmen fuer position:fixed —
     die Schublade klebte dann am Kopf statt am Fenster und rutschte beim
     Scrollen mit nach oben aus dem Bild; sichtbar blieb nur die Abdunkelung.
     Der Kopf ist zu 92 % deckend, der Weichzeichner faellt hier nicht auf. */
  .kopf { backdrop-filter: none; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(88vw, 380px); height: 100dvh; z-index: 60;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: 5rem 1.8rem 1.6rem;         /* oben freier Platz fuer Kopfzeile und Kreuz */
    background: #060b16;                 /* deckend, nichts scheint durch */
    border-left: 1px solid var(--linie-hell);
    box-shadow: -30px 0 60px -20px rgba(0,0,0,.9);
    transform: translateX(102%);
    transition: transform var(--ruhig);
    overflow: hidden;                    /* nur die Liste rollt, siehe unten */
    visibility: hidden;
  }
  .nav.offen { transform: none; visibility: visible; }
  /* Reicht der Platz nicht (kleines Geraet, Querformat), rollt allein die Liste.
     Die Schaltflaechen darunter bleiben dadurch immer sichtbar — vorher rollte
     der ganze Kasten und "Anfrage stellen" war abgeschnitten. */
  .nav ul { flex-direction: column; gap: 0; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .nav li + li { border-top: 1px solid var(--linie); }
  /* Nur die Navigationspunkte als Block — die Schaltflaechen daneben bleiben
     inline-flex, sonst rutscht das Symbol ueber die Telefonnummer. */
  .nav ul a { display: block; padding: 1.05rem 0; font-size: 1.08rem; }
  .nav ul a::after { display: none; }
  /* Trennlinie, damit die Schaltflaechen sich vom letzten Punkt absetzen —
     auf niedrigen Geraeten stossen sie sonst direkt aneinander. */
  .nav-cta { flex-direction: column; margin-top: 1.6rem; flex: none;
             padding-top: 1.1rem; border-top: 1px solid var(--linie); }
  .nav-cta .btn { padding: 1rem 1.3rem; font-size: 1rem; }
  /* Bei offener Schublade uebernimmt das Kreuz — zwei Knoepfe nebeneinander
     (Burger und Kreuz) haben verwirrt. Das Kreuz sitzt genau auf dem Platz
     des Burgers, damit der Daumen dort bleiben kann, wo er getippt hat. */
  .kopf .burger { position: relative; z-index: 61; }
  body.nav-offen .kopf .burger { visibility: hidden; }
  /* Die Schublade ist dunkel — das Kreuz muss hell sein, sonst sieht man es nicht. */
  .nav-zu {
    display: grid; place-items: center; position: absolute; top: 1rem; right: 1.25rem;
    width: 48px; height: 48px; font-size: 2.1rem; line-height: 1;
    background: rgba(126,173,255,.14); color: #e9eefb;
    border: 1px solid rgba(126,173,255,.4); border-radius: 12px; cursor: pointer;
  }
  .nav-zu:hover { background: rgba(126,173,255,.26); color: #fff; }
  /* Symbol und Nummer bleiben in einer Zeile — die Schublade ist breit genug. */
  .nav-cta .btn { flex-direction: row; flex-wrap: nowrap; }
  body.nav-offen { overflow: hidden; }
  /* Abdunkelung liegt UNTER der Kopfzeile (z-index 50): die Schublade steckt im
     Stapel-Kontext des Kopfes, ein hoeherer Wert wuerde den Schliessen-Knopf abdecken. */
  body.nav-offen::after {
    content: ''; position: fixed; inset: 0; z-index: 40; background: rgba(2,4,10,.72); backdrop-filter: blur(3px);
  }
}

/* Niedriges Fenster (kleines Handy, Querformat, eingeblendete Browserleiste):
   die Punkte ruecken zusammen, damit alle neun Eintraege ohne Rollen passen.
   Die Schrift bleibt gross genug — nur die Abstaende geben nach. */
@media (max-width: 1330px) and (max-height: 740px) {
  .nav { padding-top: 4.6rem; }
  .nav ul a { padding: .72rem 0; }
  .nav-cta { margin-top: 1rem; gap: .6rem; }
  .nav-cta .btn { padding: .78rem 1.1rem; }
}

@media (max-width: 680px) {
  .karten, .warum { grid-template-columns: 1fr; }
  .feld-2 { grid-template-columns: 1fr; }
  .fuss-in { grid-template-columns: 1fr; }
  .seite-cta { flex-direction: column; align-items: flex-start; }
  .hero-fakten { gap: 1rem 1.6rem; }
  .text-seite dl { grid-template-columns: 1fr; gap: .2rem 0; }
  .text-seite dd { margin-bottom: .8rem; }
}

@media (max-width: 400px) {
  .wrap { width: calc(100% - 1.8rem); }
  .marke img { width: 44px; height: 44px; }
  .marke-txt strong { font-size: 1.06rem; }
  .btn { padding: .9rem 1.3rem; }
}

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

/* Hinweis am Formular, wenn der Spamschutz nicht durchlaeuft */
.form-schutz-fehler { color: #b3341f; }
/* CTA-Reihe direkt unter einer Ueberschrift, ohne zusaetzlichen Abstand */
.cta-eng { margin-top: 0; }

/* Die E-Mail-Adresse soll in einer Zeile stehen — die Kontakt-Spalte ist dafuer
   breit genug, die Schrift dort etwas kleiner. Nur wenn es wirklich eng wird
   (schmale Geraete), darf sie umbrechen. */
.fuss-sp a[href^="mailto:"] { font-size: .92rem; white-space: nowrap; }
.anfrage-info a[href^="mailto:"] { overflow-wrap: anywhere; }
@media (max-width: 1080px) {
  .fuss-sp a[href^="mailto:"] { white-space: normal; overflow-wrap: anywhere; }
}

/* Bild in der Leistungskarte: randlos oben, Icon sitzt darunter */
.karte { padding-top: 0; }
.karte-bild {
  width: calc(100% + 3.8rem); max-width: none;   /* sonst kappt die globale 100%-Regel das Bild */
  margin: 0 -1.9rem 1.4rem;
  aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: var(--rad) var(--rad) 0 0;
}
.karte:not(:has(.karte-bild)) { padding-top: 2rem; }
.karte .karte-ico { margin-top: 0; }

/* Zugang zur Verwaltung: kleiner, unauffaelliger Link ganz unten — der Kunde
   weiss, wo er ist, Besucher stolpern nicht darueber. */
.fuss-login { color: #6b7a94; text-decoration: none; font-size: .84rem; white-space: nowrap; }
.fuss-login:hover { color: #b9c6dd; }

/* Browser geben <figure> von Haus aus 40 px Rand links und rechts —
   dadurch blieb das Bild schmaler als seine Spalte. */
figure { margin: 0; }

/* Ueberschriften in Karten (auch die als h2 gesetzten auf Uebersicht und 404)
   auf dieselbe Groesse wie h3 — Karte bleibt Karte, egal welche Ebene. */
.karte h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); letter-spacing: -.015em; font-weight: 700; }
.warum-pkt h3 { font-size: 1.3rem; }

/* Sichtbare Sicherheitsfrage: schmales Feld, es geht nur um eine Zahl */
.feld-rechnen input { max-width: 8rem; }
/* Datenschutzhinweis am Formular */
.form-dsgvo {
  display: flex; gap: .6rem; align-items: flex-start;
  margin: 0 0 1.4rem; padding: .9rem 1rem;
  background: rgba(31,95,216,.05); border-left: 3px solid var(--blau); border-radius: 0 6px 6px 0;
  font-size: .9rem; line-height: 1.55; color: var(--text-2);
}
.form-dsgvo .ico { color: var(--blau); flex: none; margin-top: .15rem; }

/* Beanstandetes Feld hervorheben — die Meldung spricht von markierten Feldern */
.feld-fehler { border-color: #b3341f !important; background: #fff8f7; }
.feld-fehler:focus { box-shadow: 0 0 0 3px rgba(179,52,31,.2); }
