/* ==========================================================================
   SkyGeoScan – Designsystem
   Marke: Arimo, #1a2e3f (dunkelblau), #00b4d8 (cyan)
   Aufbau übernommen von /gebaeudevermessung-bayern/ und der neuen Startseite.
   ========================================================================== */

/* ---------- Schrift (selbst gehostet, kein Google-Abruf) ---------- */
@font-face {
  font-family: "Arimo";
  src: url("/assets/fonts/arimo-var.woff2") format("woff2-variations"),
       url("/assets/fonts/arimo-var.woff2") format("woff2");
  font-weight: 400 700;      /* variable Schrift: ein Font fuer alle Schnitte */
  font-style: normal;
  font-display: swap;
}

/* ---------- Grundwerte ---------- */
:root {
  --dunkel:      #1a2e3f;
  --dunkel2:     #16283a;
  --dunkel3:     #0e1f2d;
  --hell:        #f0f4f8;
  --weiss:       #ffffff;
  --cyan:        #00b4d8;
  --cyan-hell:   #4fc9e8;   /* auf dunklem Grund lesbar */
  --cyan-dunkel: #0082a3;   /* auf hellem Grund lesbar */
  --text-hell:   #c3d1dc;
  --text-dunkel: #43535f;
  --breite:      1200px;
  --radius:      14px;
}

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

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

body {
  margin: 0;
  font-family: Arimo, Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--dunkel);
  background: var(--weiss);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

img, video { max-width: 100%; height: auto; display: block; }
/* Die Bildverarbeitung verpackt jedes Bild in <picture> - fuers Layout
   soll es sein, als staende das <img> allein da */
picture { display: contents; }
/* Sonst werden die <source>-Eintraege mit display:contents zu eigenen
   Rasterzellen und schieben das Bild in eine andere Spalte */
picture > source { display: none; }

a { color: var(--cyan-dunkel); }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--cyan-hell);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 { margin: 0 0 14px; line-height: 1.2; }

.sprung {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--cyan); color: #fff; padding: 12px 22px;
  font-weight: 700; text-decoration: none;
}
.sprung:focus { left: 12px; top: 12px; }

/* ---------- Kopfzeile ---------- */
.kopf {
  position: sticky; top: 0; z-index: 100;
  background: rgba(26, 46, 63, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.kopf-in {
  max-width: var(--breite); margin: 0 auto;
  padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.marke img { height: 38px; width: auto; }

.menue ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.menue a {
  display: block; padding: 9px 13px;
  color: #dbe6ee; text-decoration: none;
  font-size: 15.5px; border-radius: 6px;
}
.menue a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.menue a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--cyan); }

.menue-schalter {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 10px; width: 46px; height: 42px;
}
.menue-schalter span {
  display: block; height: 2px; background: #fff; margin: 5px 0;
  transition: transform .25s, opacity .2s;
}
body.menue-offen .menue-schalter span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menue-offen .menue-schalter span:nth-child(2) { opacity: 0; }
body.menue-offen .menue-schalter span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .menue-schalter { display: block; }
  .menue { display: none; width: 100%; order: 3; }
  body.menue-offen .menue { display: block; }
  .menue ul { flex-direction: column; gap: 0; padding: 8px 0 4px; }
  .menue a { padding: 13px 4px; border-bottom: 1px solid rgba(255, 255, 255, .07); border-radius: 0; }
  .kopf-in { flex-wrap: wrap; }
}

/* ---------- Abschnitte ---------- */
.sec { padding: 64px 20px; }
.in { max-width: var(--breite); margin: 0 auto; }
.dark  { background: var(--dunkel);  color: #e8eef3; }
.dark2 { background: var(--dunkel2); color: #e8eef3; }
.light { background: var(--hell); }
.white { background: var(--weiss); }
@media (max-width: 600px) { .sec { padding: 46px 16px; } }

.kick {
  color: var(--cyan-hell); font-weight: 700; letter-spacing: .14em;
  font-size: 13px; margin: 0 0 10px; text-transform: uppercase;
}
.light .kick, .white .kick { color: var(--cyan-dunkel); }

.t1 { font-size: clamp(30px, 5.5vw, 48px); font-weight: 700; }
.t2 { font-size: clamp(24px, 4vw, 38px);   font-weight: 700; }
.sub { font-size: clamp(16px, 2vw, 18px); line-height: 1.65; max-width: 660px; margin: 0 0 28px; }
.dark .sub, .dark2 .sub { color: var(--text-hell); }
.light .sub, .white .sub { color: var(--text-dunkel); }

.dark h2, .dark h3, .dark h4,
.dark2 h2, .dark2 h3, .dark2 h4 { color: #fff; }
.light h2, .light h3, .light h4,
.white h2, .white h3, .white h4 { color: var(--dunkel); }

/* ---------- Raster und Karten ---------- */
.grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}
.cols2 {
  display: grid; gap: 30px; align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.card {
  border-radius: var(--radius); padding: 26px 24px;
  display: flex; flex-direction: column; gap: 10px;
  border-top: 3px solid var(--cyan);
}
.dark .card, .dark2 .card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
  border-top: 3px solid var(--cyan);
}
.light .card, .white .card { background: #fff; box-shadow: 0 6px 22px rgba(26, 46, 63, .08); }
.card h3 { font-size: 20px; font-weight: 700; margin: 0; }
.card p  { margin: 0; font-size: 15.5px; line-height: 1.6; }
.dark .card p, .dark2 .card p { color: var(--text-hell); }
.light .card p, .white .card p { color: var(--text-dunkel); }

.icb {
  display: block; width: 62px; height: 62px; border-radius: 12px;
  overflow: hidden; border: 1px solid rgba(26, 46, 63, .15);
  margin-bottom: 6px; flex: 0 0 auto;
}
.icb img { width: 100%; height: 100%; object-fit: cover; }
.dark .icb, .dark2 .icb { border-color: rgba(255, 255, 255, .18); }

a.more {
  color: var(--cyan-dunkel); font-weight: 700; font-size: 14.5px;
  text-decoration: none; margin-top: auto; padding-top: 8px;
  display: inline-block; border-bottom: 1px solid transparent;
}
a.more:hover, a.more:focus-visible { border-bottom-color: currentColor; }
.dark a.more, .dark2 a.more { color: var(--cyan-hell); }

/* ---------- Schaltflächen ---------- */
.btn {
  display: inline-block; background: var(--cyan); color: #fff;
  font-weight: 700; text-decoration: none; padding: 14px 32px;
  border-radius: 40px; font-size: 16px; border: 0; cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn:hover, .btn:focus-visible { background: #0096b4; color: #fff; transform: translateY(-1px); }
.btn.ghost { background: transparent; border: 2px solid var(--cyan-hell); color: var(--cyan-hell); }
.btn.ghost:hover, .btn.ghost:focus-visible { background: rgba(79, 201, 232, .14); color: #fff; }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(145deg, var(--dunkel) 0%, #14222f 60%, var(--dunkel) 100%);
  color: #fff; padding: 72px 20px 64px; position: relative; overflow: hidden;
}
.hero h1 { color: #fff; }
.hero .sub { color: #c9d6e0; }
.hero .in { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .hero .in { grid-template-columns: 1.05fr .95fr; } }
@media (max-width: 600px) { .hero { padding: 48px 16px; } }

.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

.badge {
  display: inline-block; border: 1px solid rgba(79, 201, 232, .55);
  color: #8fdcee; border-radius: 30px; padding: 7px 16px;
  font-size: 13px; letter-spacing: .1em; margin-bottom: 18px;
}

/* Bewegtbild als Hero-Hintergrund, Standbild als Rückfallebene */
.hero-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; opacity: .22;
}
.hero-video + .in { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }

/* Scanner-Motiv: der Laserscanner dreht sich um die eigene Achse */
.scanwrap {
  position: relative; width: 100%; max-width: 450px; margin: 0 auto;
  aspect-ratio: 1; display: grid; place-items: center;
}
.scanwrap .foto {
  width: 84%; aspect-ratio: 1; object-fit: cover; object-position: 50% 74%;
  border-radius: 50%; position: relative; z-index: 2;
  box-shadow: 0 14px 48px rgba(0, 0, 0, .55);
}
.ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px dashed rgba(79, 201, 232, .4);
  animation: sgsSpin 26s linear infinite;
}
.ring.r2 {
  inset: 5%; border-style: solid; border-color: rgba(79, 201, 232, .16);
  animation-duration: 18s; animation-direction: reverse;
}
.sweep {
  position: absolute; inset: -1%; border-radius: 50%; z-index: 1;
  background: conic-gradient(from 0deg,
    rgba(0, 180, 216, .5) 0deg, rgba(0, 180, 216, .22) 26deg,
    rgba(0, 180, 216, .05) 58deg, transparent 92deg,
    transparent 352deg, rgba(0, 180, 216, .2) 360deg);
  animation: sgsSpin 6s linear infinite;
}
.pip {
  position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: var(--cyan-hell); box-shadow: 0 0 12px var(--cyan-hell);
  top: -4px; left: calc(50% - 4px);
}
@keyframes sgsSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .ring, .sweep { animation: none; }
  .sweep { background: radial-gradient(circle, rgba(0, 180, 216, .18), transparent 70%); }
}

/* ---------- Kennzahlen ---------- */
.stats { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin-top: 38px; }
@media (min-width: 1150px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 12px; padding: 16px 12px; text-align: center;
}
.stat b { display: block; color: var(--cyan-hell); font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 4px; white-space: nowrap; }
.stat span { color: var(--text-hell); font-size: 13.5px; line-height: 1.35; display: block; }

/* ---------- Ablauf ---------- */
.steps {
  display: grid; gap: 18px; counter-reset: step;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}
.step {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 12px; padding: 22px;
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; color: var(--cyan-hell); font-weight: 700; font-size: 24px; margin-bottom: 8px;
}
.step h3 { font-size: 17px; margin: 0 0 6px; color: #fff; }
.step p  { margin: 0; font-size: 14.5px; color: var(--text-hell); line-height: 1.55; }

/* ---------- Listen, Marken, Abschluss ---------- */
ul.check { list-style: none; padding: 0; margin: 14px 0 0; }
ul.check li { padding: 6px 0 6px 26px; position: relative; font-size: 15.5px; line-height: 1.55; }
ul.check li::before { content: "\2713"; position: absolute; left: 0; color: var(--cyan); font-weight: 700; }
.dark ul.check li::before, .dark2 ul.check li::before { color: var(--cyan-hell); }

.orte { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding: 0; list-style: none; }
.orte a {
  display: inline-block; border: 1px solid rgba(26, 46, 63, .18); background: #fff;
  color: var(--dunkel); border-radius: 30px; padding: 9px 18px;
  font-size: 14.5px; text-decoration: none; transition: border-color .2s, color .2s;
}
.orte a:hover, .orte a:focus-visible { border-color: var(--cyan); color: var(--cyan-dunkel); }

.ctasec {
  background: linear-gradient(135deg, #0092b0, #006a92);
  color: #fff; text-align: center;
}
.ctasec h2 { color: #fff; }
.ctasec p  { color: #dff4fa; }
.ctasec .sub { margin-left: auto; margin-right: auto; }
.ctasec .btn { background: #fff; color: var(--dunkel); }
.ctasec .btn:hover { background: #e8f7fc; color: var(--dunkel); }

/* ---------- Häufige Fragen ---------- */
.faq { max-width: 840px; margin: 0 auto; }
.faq details { background: #fff; border-radius: 12px; margin-bottom: 12px; box-shadow: 0 4px 16px rgba(26, 46, 63, .07); }
.faq summary {
  cursor: pointer; padding: 18px 52px 18px 22px; font-weight: 700;
  font-size: 17px; list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 15px;
  color: var(--cyan-dunkel); font-size: 24px; font-weight: 700;
}
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin: 0; padding: 0 22px 20px; color: var(--text-dunkel); font-size: 15.5px; line-height: 1.65; }

/* ---------- Auftritt beim Scrollen ---------- */
.auftritt { opacity: 0; transform: translateY(14px); }
.auftritt.sichtbar {
  opacity: 1; transform: none;
  transition: opacity .55s ease-out, transform .55s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .auftritt { opacity: 1; transform: none; transition: none; }
}

/* ---------- WhatsApp-Knopf ---------- */
.wa-knopf {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  transition: transform .2s;
}
.wa-knopf:hover, .wa-knopf:focus-visible { transform: scale(1.06); color: #fff; }
@media (prefers-reduced-motion: reduce) { .wa-knopf:hover { transform: none; } }

/* ---------- Fußzeile ---------- */
.fuss { background: var(--dunkel3); color: #9fb3c4; padding: 54px 20px 0; font-size: 15px; }
.fuss-in {
  max-width: var(--breite); margin: 0 auto;
  display: grid; gap: 34px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}
.fuss h2 { font-size: 15px; color: #fff; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: 9px; }
.fuss a { color: #9fb3c4; text-decoration: none; }
.fuss a:hover, .fuss a:focus-visible { color: var(--cyan-hell); }
.fuss .nap { margin: 0 0 14px; line-height: 1.7; }
.fuss .nap strong { color: #fff; }
.fuss-spalte img { margin-bottom: 16px; }

.fuss-unten {
  max-width: var(--breite); margin: 40px auto 0;
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding: 18px 0 26px;
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  align-items: center; justify-content: space-between;
  font-size: 14px;
}
.fuss-unten ul { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; }
.fuss-unten p { margin: 0; }
.uc-oeffnen {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: #9fb3c4; font: inherit; text-decoration: underline;
}
.uc-oeffnen:hover { color: var(--cyan-hell); }

/* ---------- Seitenwechsel ---------- */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ==========================================================================
   Schnellkontakt – eigenes Fenster, kein fremder Dienst, kein Cookie
   ========================================================================== */
.sk-knopf {
  position: fixed; right: 18px; bottom: 92px; z-index: 95;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px 13px 16px; border: 0; cursor: pointer;
  border-radius: 40px; background: var(--cyan); color: #fff;
  font: 700 15.5px/1 Arimo, Arial, sans-serif;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .3);
  transition: transform .2s, background .2s;
}
.sk-knopf:hover, .sk-knopf:focus-visible { background: #0096b4; transform: translateY(-2px); }
.sk-knopf svg { flex: 0 0 auto; }
@media (prefers-reduced-motion: reduce) { .sk-knopf:hover { transform: none; } }
@media (max-width: 480px) { .sk-knopf span { display: none; } .sk-knopf { padding: 15px; border-radius: 50%; } }

.sk-fenster {
  position: fixed; right: 18px; bottom: 158px; z-index: 96;
  width: min(370px, calc(100vw - 36px));
  background: #fff; color: var(--dunkel);
  border-radius: 16px; box-shadow: 0 24px 60px rgba(10, 25, 38, .34);
  overflow: hidden; border: 1px solid rgba(26, 46, 63, .1);
}
.sk-fenster[hidden] { display: none; }
.sk-kopf {
  background: var(--dunkel); color: #fff; padding: 16px 18px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.sk-kopf p { margin: 4px 0 0; font-size: 13.5px; color: #b8c6d1; line-height: 1.45; }
.sk-kopf strong { font-size: 16px; }
.sk-zu {
  background: none; border: 0; color: #b8c6d1; cursor: pointer;
  font-size: 24px; line-height: 1; padding: 0 2px;
}
.sk-zu:hover { color: #fff; }

.sk-koerper { padding: 16px 18px 18px; }
.sk-feld { margin-bottom: 11px; }
.sk-feld label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.sk-feld input, .sk-feld textarea {
  width: 100%; padding: 11px 13px; font: inherit; font-size: 15px;
  border: 1px solid rgba(26, 46, 63, .22); border-radius: 9px; background: #fff; color: inherit;
}
.sk-feld input:focus, .sk-feld textarea:focus {
  outline: 3px solid var(--cyan-hell); outline-offset: 1px; border-color: var(--cyan);
}
.sk-feld textarea { min-height: 88px; resize: vertical; }
.sk-hp { position: absolute; left: -9999px; }
.sk-senden { width: 100%; }
.sk-hinweis { font-size: 12.5px; color: var(--text-dunkel); margin: 11px 0 0; line-height: 1.5; }
.sk-hinweis a { color: var(--cyan-dunkel); }
.sk-melde { margin: 0 0 11px; padding: 11px 13px; border-radius: 9px; font-size: 14.5px; }
.sk-melde.gut    { background: #e6f7ed; color: #14532d; }
.sk-melde.fehler { background: #fdeaea; color: #7f1d1d; }

.sk-oder {
  margin: 15px 0 0; padding-top: 14px; border-top: 1px solid rgba(26, 46, 63, .12);
  display: flex; flex-direction: column; gap: 9px;
}
.sk-alt {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 9px; text-decoration: none;
  color: var(--dunkel); font-size: 14.5px; font-weight: 700;
  border: 1px solid rgba(26, 46, 63, .14);
}
.sk-alt:hover, .sk-alt:focus-visible { border-color: var(--cyan); color: var(--cyan-dunkel); }
.sk-alt svg { flex: 0 0 auto; }
.sk-alt small { display: block; font-weight: 400; font-size: 12.5px; color: var(--text-dunkel); }
.sk-alt.wa { border-color: rgba(37, 211, 102, .5); }
.sk-alt.wa svg { color: #25d366; }

/* ---------- Projektkacheln (Startseite, Blog) ---------- */
.projekte {
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.pj {
  display: flex; flex-direction: column;
  background: var(--weiss); border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(26, 46, 63, .1);
  box-shadow: 0 1px 2px rgba(26, 46, 63, .05);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.sec.dark .pj, .sec.dark2 .pj {
  background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12);
}
.pj:hover, .pj:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(26, 46, 63, .14);
  border-color: rgba(0, 180, 216, .45);
}
@media (prefers-reduced-motion: reduce) { .pj:hover, .pj:focus-within { transform: none; } }
.pj > img,
.pj > picture > img {
  display: block; width: 100%; height: 190px; object-fit: cover;
  background: var(--hell);
}
.pjin { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.pj .wo {
  display: inline-block; align-self: flex-start;
  font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--cyan-dunkel); margin-bottom: 9px;
}
.sec.dark .pj .wo, .sec.dark2 .pj .wo { color: var(--cyan-hell); }
.pjin h3 { margin: 0 0 10px; font-size: 20px; line-height: 1.3; }
.pjin p { margin: 0 0 16px; }
.pjin .more { margin-top: auto; align-self: flex-start; }

/* ---------- Ortsseiten ---------- */
.grid.einspaltig { grid-template-columns: 1fr; gap: 16px; }

.umkreis {
  list-style: none; margin: 22px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.umkreis li {
  padding: 8px 15px; border-radius: 999px; font-size: 15px;
  background: var(--hell); color: var(--dunkel);
  border: 1px solid rgba(26, 46, 63, .1);
}
.sec.dark .umkreis li, .sec.dark2 .umkreis li {
  background: rgba(255, 255, 255, .06); color: var(--text-hell);
  border-color: rgba(255, 255, 255, .13);
}

/* Geländemotiv statt Foto auf den Drohnenseiten */
.scanwrap .foto.gelaende { padding: 0; overflow: hidden; background: var(--dunkel3); }
.scanwrap .foto.gelaende svg { display: block; width: 100%; height: 100%; }

/* ---------- Schmale Textspalte (Rechtstexte, Blogbeitraege) ---------- */
.in.schmal { max-width: 760px; }

.recht h1 { margin-bottom: 30px; }
.recht h2 {
  margin: 42px 0 12px; font-size: 21px; line-height: 1.35;
  padding-top: 20px; border-top: 1px solid rgba(26, 46, 63, .12);
}
.recht h3 { margin: 26px 0 10px; font-size: 17.5px; }
.recht p, .recht li { line-height: 1.75; }
.recht ul, .recht ol { padding-left: 22px; }
.recht li { margin-bottom: 8px; }
.recht a { color: var(--cyan-dunkel); }
.recht table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.recht th, .recht td { border: 1px solid rgba(26, 46, 63, .15); padding: 9px 11px; text-align: left; }

.hinweis-entwurf {
  margin: 0 0 34px; padding: 16px 18px; border-radius: 10px;
  background: #fff8e1; border: 1px solid #f0d48a; color: #5a4400;
  font-size: 15px; line-height: 1.6;
}
.quelle { margin-top: 38px; font-size: 14px; color: var(--text-dunkel); }

/* ---------- Kopfbereich ohne Bild (Kontakt, Blog, 404) ---------- */
.kontakt-kopf { padding-top: 116px; }
.kontakt-kopf .t1 { margin-top: 16px; }
.kontakt-kopf .sub { max-width: 720px; }

/* ---------- Kontaktseite ---------- */
.kontakt-raster {
  display: grid; gap: 40px;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .85fr);
  align-items: start;
}
@media (max-width: 900px) { .kontakt-raster { grid-template-columns: 1fr; } }
.kontakt-wege { display: flex; flex-direction: column; gap: 20px; }
.kontakt-wege .card h2 { margin: 0 0 14px; font-size: 19px; }
.kontakt-wege .nap { margin: 0 0 16px; line-height: 1.6; }
.kontakt-wege .nap:last-child { margin-bottom: 0; }
.kontakt-wege .nap small { color: var(--text-dunkel); font-size: 13.5px; }
.kontakt-wege a { color: var(--cyan-dunkel); font-weight: 700; }

.anfrage { margin-top: 24px; max-width: 640px; }
.af-zeile { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .af-zeile { grid-template-columns: 1fr; } }
.af { display: block; margin-bottom: 16px; }
.af > span { display: block; margin-bottom: 6px; font-size: 14.5px; font-weight: 700; }
.af > span em { color: #b3261e; font-style: normal; }
.af > span small { font-weight: 400; color: var(--text-dunkel); }
.af input, .af select, .af textarea {
  width: 100%; padding: 12px 13px; font: inherit; font-size: 15.5px;
  border: 1px solid rgba(26, 46, 63, .24); border-radius: 9px;
  background: #fff; color: inherit;
}
.af textarea { resize: vertical; min-height: 130px; }
.af input:focus, .af select:focus, .af textarea:focus {
  outline: 3px solid var(--cyan-hell); outline-offset: 1px; border-color: var(--cyan);
}
.af-melde { margin: 4px 0 18px; padding: 13px 15px; border-radius: 9px; font-size: 15px; line-height: 1.55; }
.af-melde.gut    { background: #e6f7ed; color: #14532d; }
.af-melde.fehler { background: #fdeaea; color: #7f1d1d; }
.af-hinweis { margin: 16px 0 0; font-size: 13.5px; color: var(--text-dunkel); line-height: 1.6; }
.af-hinweis em { color: #b3261e; font-style: normal; }
.af-hinweis a { color: var(--cyan-dunkel); }
.af-schritte { margin: 0; padding-left: 20px; line-height: 1.7; }
.af-schritte li { margin-bottom: 7px; }

/* ---------- Blogbeitrag ---------- */
.beitrag-kopf { padding: 116px 0 30px; background: var(--dunkel); color: #fff; }
.beitrag-kopf .t1 { margin: 12px 0 16px; }
.beitrag-kopf .sub { color: var(--text-hell); }
.beitrag-meta { margin: 14px 0 0; font-size: 14px; color: var(--text-hell); }
.pjin .beitrag-meta { color: var(--text-dunkel); margin-bottom: 14px; }

.beitrag-bild { margin: -18px auto 0; }
.beitrag-bild img {
  display: block; width: 100%; height: auto; border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(26, 46, 63, .18);
}
.beitrag-text { padding: 46px 0 60px; }
.beitrag-text h2 { margin: 44px 0 14px; font-size: 27px; line-height: 1.3; }
.beitrag-text h3 { margin: 32px 0 10px; font-size: 20px; }
.beitrag-text p, .beitrag-text li { font-size: 17px; line-height: 1.8; }
.beitrag-text ul, .beitrag-text ol { padding-left: 24px; }
.beitrag-text li { margin-bottom: 10px; }
.beitrag-text a { color: var(--cyan-dunkel); }
.beitrag-text img {
  display: block; width: 100%; height: auto; margin: 32px 0;
  border-radius: var(--radius); border: 1px solid rgba(26, 46, 63, .1);
}
.beitrag-text blockquote {
  margin: 30px 0; padding: 4px 0 4px 22px;
  border-left: 4px solid var(--cyan); font-size: 18px; line-height: 1.7;
}
.beitrag-text table { width: 100%; border-collapse: collapse; margin: 26px 0; font-size: 15.5px; }
.beitrag-text th, .beitrag-text td { border: 1px solid rgba(26, 46, 63, .15); padding: 10px 12px; text-align: left; }
.beitrag-text th { background: var(--hell); }

/* ==================================================================
   Punktwolke, Schimmer, Kacheln - auf allen Seiten
   Alles haengt an body.wow (steht in basis.njk). Wer eine Seite davon
   ausnehmen will, nimmt dort die Klasse weg.
   ================================================================== */

/* ---------- Punktwolken-Hero ---------- */

/* Die Wolke liegt jetzt grossflaechig hinter dem ganzen Hero, nicht mehr im
   Kaestchen rechts. Nach links blendet sie aus, damit die Ueberschrift ihren
   Kontrast behaelt. */
body.wow .hero > .wolke {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 26%, #000 46%);
          mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 26%, #000 46%);
}
@media (max-width: 899px) {
  /* Einspaltig liegt der Text ueber der Wolke - dann rundum abdunkeln */
  body.wow .hero > .wolke {
    /* --wy setzt wow.js auf die Hoehe des Kreisbilds */
    -webkit-mask-image: radial-gradient(ellipse at 50% var(--wy, 62%), #000 30%, transparent 78%);
            mask-image: radial-gradient(ellipse at 50% var(--wy, 62%), #000 30%, transparent 78%);
    opacity: .75;
  }
}
body.wow .hero .in { position: relative; z-index: 1; }

/* Die gedrehten Ringe weichen der Wolke. Markup bleibt stehen,
   damit ein Rueckbau eine Zeile CSS ist. */
body.wow .ring,
body.wow .sweep { display: none; }

/* Das Kreisbild bleibt, wie Sebastian es wollte - nur etwas kleiner, damit
   die Wolke dahinter sichtbar bleibt. Es laedt und erscheint weiterhin
   sofort; die Animation haelt nichts auf und nichts rutscht nach. */
body.wow .scanwrap .foto {
  position: absolute; left: 2%; bottom: 4%;
  width: 46%;
  border: 1px solid rgba(79, 201, 232, .35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55);
}
@media (max-width: 899px) {
  /* Einspaltig steht das Bild wieder mittig, die Wolke liegt dahinter */
  body.wow .scanwrap .foto { position: static; width: 62%; }
}

/* ---------- Kacheln ---------- */

body.wow .card {
  transition: transform .28s cubic-bezier(.2, .7, .3, 1),
              box-shadow .28s ease, border-color .28s ease, background .28s ease;
}
body.wow .card:hover,
body.wow .card:focus-within {
  transform: translateY(-5px) rotate(-.4deg);
}
body.wow .white .card:hover,
body.wow .white .card:focus-within,
body.wow .light .card:hover,
body.wow .light .card:focus-within {
  box-shadow: 0 16px 34px rgba(26, 46, 63, .16);
}
body.wow .dark .card:hover,
body.wow .dark .card:focus-within,
body.wow .dark2 .card:hover,
body.wow .dark2 .card:focus-within {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(79, 201, 232, .42);
}
@media (prefers-reduced-motion: reduce) {
  body.wow .card { transition: none; }
  body.wow .card:hover, body.wow .card:focus-within { transform: none; }
}

/* ---------- Scanner-Schimmer ---------- */

/* Laeuft dem Systemzeiger hinterher, nimmt keine Klicks an und
   wird nur auf Geraeten mit Maus ueberhaupt erzeugt. */
.schimmer {
  position: fixed; top: 0; left: 0; z-index: 60;
  width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border: 1px solid rgba(79, 201, 232, .75);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease, width .2s ease, height .2s ease,
              margin .2s ease, border-color .2s ease, background .2s ease;
}
.schimmer.da { opacity: 1; }

/* Fadenkreuz */
.schimmer::before,
.schimmer::after {
  content: ""; position: absolute; background: rgba(79, 201, 232, .8);
}
.schimmer::before { left: 50%; top: -7px; bottom: -7px; width: 1px; margin-left: -.5px; }
.schimmer::after  { top: 50%; left: -7px; right: -7px; height: 1px; margin-top: -.5px; }

/* Ueber anklickbaren Dingen wird aus dem Suchkreis ein Messpunkt */
.schimmer.am-ziel {
  width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border-color: var(--cyan-hell);
  background: rgba(0, 180, 216, .16);
}

@media (prefers-reduced-motion: reduce) { .schimmer { display: none; } }
@media (hover: none), (pointer: coarse) { .schimmer { display: none; } }

/* ---------- Ablauf: die Schritte ziehen nacheinander herein ---------- */

/* .bereit setzt erst das Skript - faellt es aus, stehen die Schritte
   einfach da, wie vorher. clip verhindert, dass die noch versetzten
   Schritte am Handy die Seite seitlich verbreitern. */
body.wow .steps.bereit { overflow-x: clip; }
body.wow .steps.bereit .step {
  opacity: 0;
  transform: translateX(54px);
  transition: opacity .6s ease-out, transform .62s cubic-bezier(.2, .75, .3, 1);
}
body.wow .steps.bereit .step.drin {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  body.wow .steps.bereit .step { opacity: 1; transform: none; transition: none; }
}

/* Die Nummer zaehlt mit, sobald der Schritt steht */
body.wow .steps.bereit .step::before {
  opacity: 0;
  transition: opacity .5s ease-out .18s;
}
body.wow .steps.bereit .step.drin::before { opacity: 1; }

/* Portraet auf "Ueber mich": groesser als die uebrigen Kreisbilder */
body.wow .scanwrap .foto.gross { width: 64%; left: 0; bottom: 2%; }
@media (max-width: 899px) { body.wow .scanwrap .foto.gross { width: 78%; } }

/* ---------- Aufklappmenue "Leistungen" ---------- */
.menue .hat-unter { position: relative; }
.menue .unter {
  display: none; position: absolute; top: 100%; left: 0; z-index: 120;
  min-width: 270px; padding: 8px; margin: 0;
  flex-direction: column; gap: 0;
  background: #16283a; border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 10px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}
.menue .unter a { padding: 9px 12px; font-size: 15px; white-space: nowrap; }
.menue .unter li:first-child a { color: var(--cyan-hell); }
@media (min-width: 901px) {
  .menue .hat-unter:hover > .unter,
  .menue .hat-unter:focus-within > .unter { display: flex; }
  /* Unsichtbare Bruecke, damit das Menue beim Herunterfahren offen bleibt */
  .menue .hat-unter::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 8px; }
}
@media (max-width: 900px) {
  .menue .unter {
    display: flex; position: static; min-width: 0; padding: 0 0 6px 16px;
    background: none; border: 0; box-shadow: none;
  }
  .menue .unter a { font-size: 14.5px; padding: 10px 4px; white-space: normal; }
}

/* Rundes Praxisbild auf den Leistungsseiten */
.rund-bild {
  width: min(100%, 420px); aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  margin: 0 auto; box-shadow: 0 14px 40px rgba(26, 46, 63, .22);
}

/* Ablauf auf hellem Grund: die Grundform ist fuer dunkle Abschnitte gebaut
   (weisse Schrift) - auf .light/.white war sie praktisch unsichtbar */
.light .step, .white .step {
  background: #fff; border: 1px solid rgba(26, 46, 63, .10);
  box-shadow: 0 6px 22px rgba(26, 46, 63, .07);
}
.white .step { background: var(--hell); }
.light .step h3, .white .step h3 { color: var(--dunkel); }
.light .step p,  .white .step p  { color: var(--text-dunkel); }
.light .step::before, .white .step::before { color: var(--cyan-dunkel); }
.rund-bild.eckig { aspect-ratio: 4 / 3; border-radius: var(--radius); width: 100%; max-width: 560px; }
.light ul.check li, .white ul.check li { color: var(--text-dunkel); }
