/* ===================================================================
   Admins Tech — das Aussehen der Website
   ===================================================================
   Eine Datei, keine Voranstufe, kein Build-Schritt. Was hier steht,
   liegt so auch auf dem Server.

   Drei Farben kommen aus den Einstellungen und werden von inc/head.php
   in den <head> geschrieben: --at-grund, --at-neon, --at-akzent. Alles
   Weitere leitet sich hier davon ab. Wer im Editor die Farben ändert,
   ändert die ganze Website.

   Zum Kontrast: Neonfarben sind auf dunklem Grund verführerisch und oft
   unlesbar. Das kräftige Lila (--at-neon) wird deshalb nie als
   Schriftfarbe für Fließtext benutzt — dafür gibt es --at-neon-hell.
   Alle Textpaare erreichen mindestens 4,5:1 nach WCAG 2.1 AA.
   =================================================================== */

:root {
    /* Von head.php gesetzt; die Werte hier sind nur der Notnagel,
       falls die Seite ohne PHP betrachtet wird. */
    --at-grund:  #05060A;
    --at-neon:   #A855F7;
    --at-akzent: #22D3EE;

    /* Flächen. Von unten nach oben immer eine Spur heller. */
    --at-grund-2:  #080A12;
    --at-flaeche:  #0D1019;
    --at-flaeche-2:#131726;
    --at-erhaben:  #191E30;

    /* Linien. Die neonfarbene ist für ruhende Ränder gedacht und
       bewusst schwach — sie soll begrenzen, nicht leuchten. */
    --at-linie:      #232840;
    --at-linie-neon: rgba(168, 85, 247, .30);

    /* Schrift. */
    --at-text:       #E8EAF4;   /* 16,9:1 auf --at-grund */
    --at-text-leise: #A2A8C0;   /*  8,6:1 */
    --at-text-still: #8A91AB;   /*  6,5:1 auf Grund, 5,3:1 auf --at-erhaben — nur für Kleinstes */
    --at-neon-hell:  #C9A4FF;   /*  9,9:1 — das Lila in lesbar */
    --at-akzent-hell:#7EE7F7;

    /* Ein Grün und ein Rot für „enthalten“ / „nicht enthalten“ und für
       Meldungen. Beide auf dunklem Grund geprüft. */
    --at-gut:     #4ADE80;
    --at-warnung: #FBBF24;
    --at-fehler:  #FB7185;

    --at-schrift: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    /* Kein zusätzlicher Schriftschnitt für das Technische: die
       Systemschrift mit fester Laufweite ist überall vorhanden, kostet
       keinen Download und sieht auf jeder Plattform passend aus. */
    --at-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas,
               'Liberation Mono', 'Courier New', monospace;

    --at-rund:   14px;
    --at-rund-s: 8px;

    --at-huelle: 1180px;
    --at-luft:   clamp(56px, 8vw, 104px);   /* Abstand zwischen Abschnitten */
}

/* ------------------------------------------------------------------
   Grundlagen
   ------------------------------------------------------------------ */

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

html {
    scroll-behavior: smooth;
    /* Ein angeklickter Anker soll nicht unter der Kopfzeile verschwinden. */
    scroll-padding-top: 96px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--at-schrift);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--at-text);
    background: var(--at-grund);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; }
img { border-style: none; }

a { color: var(--at-akzent-hell); text-underline-offset: .18em; }
a:hover { color: #fff; }

h1, h2, h3, h4 {
    margin: 0 0 .5em;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -.015em;
    color: #fff;
    text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.35rem + 2.7vw, 3.4rem); }
/* Lange Wörter („Datenschutzerklärung“) brechen bei 320 px um, statt zu überlaufen. */
h1, h2, h3, h4, .inhalt { overflow-wrap: break-word; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.25rem); }
h3 { font-size: 1.2rem; letter-spacing: -.005em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

hr { border: 0; border-top: 1px solid var(--at-linie); margin: 2em 0; }

/* Sichtbar nur für Bildschirmleseausgaben. */
.nur-vorlesen {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Der Fokusrahmen muss auf jeder Fläche zu sehen sein — deshalb hell
   und nicht in einer der Markenfarben. */
:focus-visible {
    outline: 2px solid var(--at-akzent);
    outline-offset: 3px;
    border-radius: 3px;
}

.sprungmarke {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    padding: 10px 18px;
    background: var(--at-neon); color: #0B0616;
    font-weight: 700; text-decoration: none;
    border-radius: 0 0 var(--at-rund-s) var(--at-rund-s);
    transition: top .15s;
}
.sprungmarke:focus { top: 0; color: #0B0616; }

/* ------------------------------------------------------------------
   Der Hintergrund
   ------------------------------------------------------------------
   Drei Lagen, alle fest im Fenster stehend und hinter allem anderen:
   der laufende Zahlencode, ein feines Gitter und ein farbiger Schein.
   Zusammen geben sie der Seite Tiefe, ohne dass ein einziges Foto
   geladen werden müsste.                                              */

.at-grund {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: var(--at-grund);
}

/* Der Zahlencode wird zur Mitte hin schwächer.
   Gleichmäßig über die ganze Fläche gelegt lief er dem Fließtext in die
   Quere: lesbar blieb er zwar, ruhig aber nicht. Die Maske lässt ihn dort
   stehen, wo Platz ist — an den Rändern und oben — und nimmt ihn hinter
   der Textspalte auf ein Viertel zurück. */
.at-matrix {
    position: absolute;
    inset: 0;
    opacity: .5;
    -webkit-mask-image: radial-gradient(ellipse 62% 58% at 42% 42%,
                            rgba(0, 0, 0, .22) 0%, rgba(0, 0, 0, .55) 45%, #000 82%);
            mask-image: radial-gradient(ellipse 62% 58% at 42% 42%,
                            rgba(0, 0, 0, .22) 0%, rgba(0, 0, 0, .55) 45%, #000 82%);
}
.at-matrix canvas { display: block; width: 100%; height: 100%; }
/* Auf dem Telefon liegt die Textspalte fast über der ganzen Fläche: schwächer,
   damit auch die hellsten Zeichen unter der Brotkrume 4,5:1 halten. */
@media (max-width: 640px) {
    .at-matrix { opacity: .4; }
}
/* Sichtbar ist die Fläche nur, solange matrix.js „an“ gesetzt hat: ohne
   Skript, bei reduzierter Bewegung ohne eigene Wahl und nach dem
   Abschalten über den Knopf in der Kopfzeile bleibt sie verborgen. */
html:not([data-matrix="an"]) .at-matrix { display: none; }

/* Das Gitter. Zwei Verläufe kreuzen sich; die Maske lässt es zum unteren
   Rand hin verschwinden, damit es nicht wie Millimeterpapier wirkt. */
.at-raster {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right,  var(--at-linie-neon) 1px, transparent 1px),
        linear-gradient(to bottom, var(--at-linie-neon) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: .32;
    -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
            mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
}

/* Der Schein: zwei weiche Farbflecken, einer je Markenfarbe. */
.at-schein {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 52% 40% at 78% 4%,
            color-mix(in srgb, var(--at-neon) 26%, transparent), transparent 68%),
        radial-gradient(ellipse 46% 34% at 8% 26%,
            color-mix(in srgb, var(--at-akzent) 13%, transparent), transparent 66%);
}

/* ------------------------------------------------------------------
   Aufbau
   ------------------------------------------------------------------ */

.huelle {
    width: 100%;
    max-width: var(--at-huelle);
    margin: 0 auto;
    padding: 0 clamp(18px, 4vw, 32px);
}

/* Für Fließtext ist die volle Breite zu viel: über etwa 75 Zeichen je
   Zeile verliert das Auge beim Zeilenwechsel den Anschluss. Die Hülle
   selbst bleibt so breit wie überall, damit die linke Kante mit der
   Kopfzeile fluchtet; begrenzt werden ihre Kinder. */
.huelle-text > * { max-width: 760px; }

.abschnitt { padding: var(--at-luft) 0; position: relative; }

/* Der sichtbare Leerraum zwischen zwei Abschnitten ist genau einmal
   --at-luft: Folgt ein Abschnitt auf einen ohne eigene Fläche (auch auf
   den Aufmacher der Startseite), entfällt seine Oberkante. Ein abgesetztes
   Band behält innen oben und unten seinen vollen Abstand, ebenso der
   Abschnitt nach einem Band. */
:is(.aufmacher, .abschnitt:not(.abschnitt-abgesetzt)) + .abschnitt:not(.abschnitt-abgesetzt) {
    padding-top: 0;
}

/* Der erste Abschnitt einer Unterseite steht direkt unter der Kopfzeile
   und braucht dort weniger Luft. */
.abschnitt-erst { padding-top: clamp(28px, 4vw, 48px); }
.abschnitt-schmal { padding: clamp(28px, 4vw, 44px) 0; }

/* Ein abgesetzter Abschnitt bekommt eine eigene Fläche mit Hairlines
   oben und unten — das gliedert die Seite ohne einen zweiten Farbton. */
.abschnitt-abgesetzt {
    background: linear-gradient(180deg,
        transparent, color-mix(in srgb, var(--at-flaeche) 70%, transparent) 12%,
        color-mix(in srgb, var(--at-flaeche) 70%, transparent) 88%, transparent);
    border-block: 1px solid var(--at-linie);
}

.abschnitt-kopf { max-width: 760px; margin-bottom: clamp(30px, 4vw, 48px); }
.abschnitt-kopf .vorspann { margin-bottom: 0; }

.abschnitt-mehr { margin-top: 30px; font-size: .98rem; }
.abschnitt-mehr a { font-weight: 600; text-decoration: none; }
.abschnitt-mehr a:hover { text-decoration: underline; }

/* Der Obertitel: klein, in fester Laufweite, mit einem blinkenden
   Zeichen davor. Das ist das wiederkehrende Technik-Motiv der Seite. */
.obertitel {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-family: var(--at-mono);
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--at-neon-hell);
}
.obertitel-zeichen {
    width: 8px; height: 8px;
    flex: 0 0 auto;
    background: var(--at-neon);
    box-shadow: 0 0 10px var(--at-neon);
    animation: at-puls 2.4s ease-in-out infinite;
}
@keyframes at-puls {
    0%, 100% { opacity: 1;  transform: scale(1); }
    50%      { opacity: .35; transform: scale(.7); }
}

.vorspann {
    font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
    color: var(--at-text-leise);
}

.leer {
    padding: 26px;
    border: 1px dashed var(--at-linie);
    border-radius: var(--at-rund);
    color: var(--at-text-leise);
    background: color-mix(in srgb, var(--at-flaeche) 60%, transparent);
}

/* ------------------------------------------------------------------
   Knöpfe
   ------------------------------------------------------------------ */

.knopf {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    /* Dunkle Schrift auf dem Lila: mindestens 4,8:1 über den ganzen Verlauf.
       Helle Schrift käme auf 2,4:1 und wäre nicht zulässig. */
    color: #0B0616;
    background: linear-gradient(135deg, var(--at-neon), #A259F6);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--at-neon) 55%, transparent);
    transition: box-shadow .22s, transform .22s, filter .22s;
}
.knopf:hover {
    color: #0B0616;
    filter: brightness(1.12);
    box-shadow: 0 0 26px -4px color-mix(in srgb, var(--at-neon) 70%, transparent);
    transform: translateY(-1px);
}
.knopf:active { transform: translateY(0); }

.knopf.leise {
    color: var(--at-text);
    background: color-mix(in srgb, var(--at-flaeche-2) 80%, transparent);
    border-color: var(--at-linie);
}
.knopf.leise:hover {
    color: #fff;
    border-color: var(--at-neon);
    background: var(--at-flaeche-2);
    filter: none;
}

.knopf.klein { padding: 9px 18px; font-size: .93rem; }

.tat-leiste { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ------------------------------------------------------------------
   Kopfzeile
   ------------------------------------------------------------------ */

.kopf {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--at-grund) 82%, transparent);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
            backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--at-linie);
}

.kopf-innen {
    max-width: var(--at-huelle);
    margin: 0 auto;
    padding: 0 clamp(18px, 4vw, 32px);
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.marke { display: flex; align-items: center; flex: 0 0 auto; }
.marke img {
    height: 40px;
    width: auto;
    display: block;
    /* Das Logo bringt eine feine Struktur mit; ein schwacher Schein
       darunter bindet es an den Rest der Seite an. */
    filter: drop-shadow(0 0 14px color-mix(in srgb, var(--at-neon) 40%, transparent));
}
.marke-text {
    font-family: var(--at-mono);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
}

.hauptmenu { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.hauptmenu ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.hauptmenu li { position: relative; }

.hauptmenu a,
.hauptmenu > ul button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border: 0;
    background: none;
    border-radius: var(--at-rund-s);
    font: inherit;
    font-size: .97rem;
    font-weight: 500;
    color: var(--at-text-leise);
    text-decoration: none;
    cursor: pointer;
    transition: color .18s, background .18s;
}
.hauptmenu a:hover,
.hauptmenu > ul button:hover { color: #fff; background: var(--at-flaeche); }

/* Der aktive Punkt bekommt einen leuchtenden Strich, keine Füllung —
   das bleibt ruhig und ist trotzdem eindeutig. */
.hauptmenu li.aktiv > a,
.hauptmenu li.aktiv > button { color: #fff; }
.hauptmenu li.aktiv > a::after,
.hauptmenu li.aktiv > button::after {
    content: '';
    position: absolute;
    left: 14px; right: 14px; bottom: 2px;
    height: 2px;
    background: var(--at-neon);
    box-shadow: 0 0 10px var(--at-neon);
}

.pfeil { width: 10px; height: 6px; opacity: .7; }

.untermenu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 210px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
    background: var(--at-flaeche-2);
    border: 1px solid var(--at-linie);
    border-radius: var(--at-rund-s);
    box-shadow: 0 18px 40px -18px #000;
}
.untermenu.offen { display: flex; }
.untermenu a { padding: 9px 12px; width: 100%; }

.kopf-tat { display: flex; align-items: center; gap: 14px; }

.kopf-tel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .95rem;
    font-weight: 500;
    color: var(--at-text-leise);
    text-decoration: none;
    white-space: nowrap;
}
.kopf-tel:hover { color: #fff; }
.kopf-tel svg { width: 17px; height: 17px; color: var(--at-akzent); }

/* Der Knopf für die Hintergrundanimation steht rechts der Navigation,
   auf dem Telefon neben dem Menüknopf. Er bleibt verborgen, bis
   matrix.js ihn freigibt. */
.matrix-schalter {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    padding: 0;
    border: 1px solid var(--at-linie);
    border-radius: var(--at-rund-s);
    background: transparent;
    color: var(--at-text-leise);
    cursor: pointer;
    transition: color .18s, border-color .18s;
}
.matrix-schalter[hidden] { display: none; }
.matrix-schalter:hover { color: #fff; border-color: var(--at-neon); }
.matrix-schalter[aria-pressed="true"] { color: var(--at-akzent); border-color: var(--at-linie-neon); }
.matrix-schalter svg { width: 20px; height: 20px; }
/* Läuft die Animation nicht, ist das Sinnbild durchgestrichen. */
.matrix-schalter .matrix-strich { display: none; }
.matrix-schalter[aria-pressed="false"] .matrix-strich { display: inline; }

.menu-schalter {
    display: none;
    margin-left: auto;
    width: 44px; height: 44px;
    padding: 0;
    border: 1px solid var(--at-linie);
    border-radius: var(--at-rund-s);
    background: var(--at-flaeche);
    cursor: pointer;
}
/* Drei Striche aus einem Element: der mittlere ist das Element selbst,
   die beiden äußeren sind seine Pseudo-Elemente. */
.menu-schalter .balken,
.menu-schalter .balken::before,
.menu-schalter .balken::after {
    display: block;
    width: 20px; height: 2px;
    margin: 0 auto;
    background: var(--at-text);
    transition: transform .2s, opacity .2s;
}
.menu-schalter .balken { position: relative; }
.menu-schalter .balken::before,
.menu-schalter .balken::after { content: ''; position: absolute; left: 0; }
.menu-schalter .balken::before { top: -6px; }
.menu-schalter .balken::after  { top:  6px; }
.menu-schalter[aria-expanded="true"] .balken { background: transparent; }
.menu-schalter[aria-expanded="true"] .balken::before { transform: translateY(6px)  rotate(45deg); }
.menu-schalter[aria-expanded="true"] .balken::after  { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------------------------------------------
   Aufmacher
   ------------------------------------------------------------------ */

.aufmacher { padding: clamp(48px, 8vw, 104px) 0 var(--at-luft); }

.aufmacher-innen {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.aufmacher-text h1 { margin-bottom: .45em; }
.aufmacher-text .vorspann { max-width: 56ch; }

.aufmacher-knoepfe { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.aufmacher-fussnote {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--at-linie);
    font-family: var(--at-mono);
    font-size: .85rem;
    color: var(--at-text-still);
}

.aufmacher-bild { display: flex; justify-content: center; }

/* ------------------------------------------------------------------
   Die Zahnräder
   ------------------------------------------------------------------
   Aus tools/zahnraeder-erzeugen.php, eingebettet von inc/bausteine.php.
   Jedes Rad trägt seine Mitte, seine Richtung und seine Dauer als
   eigene Eigenschaft im style-Attribut — so muss hier nicht für jedes
   Rad eine eigene Regel stehen.                                       */

.at-raeder { width: 100%; height: auto; overflow: visible; }
.at-raeder-gross  { max-width: 460px; }
.at-raeder-mittel { max-width: 300px; }

.at-rad-koerper {
    fill: color-mix(in srgb, var(--at-neon) 8%, transparent);
    stroke: var(--at-neon);
    stroke-width: 2.2;
    stroke-linejoin: round;
}
.at-rad-ring {
    fill: none;
    stroke: color-mix(in srgb, var(--at-neon) 55%, transparent);
    stroke-width: 2;
}
.at-rad-ring-innen { stroke: color-mix(in srgb, var(--at-akzent) 45%, transparent); }

.at-personen {
    fill: var(--at-akzent);
    stroke: var(--at-akzent);
    stroke-width: 2.5;
    stroke-linecap: round;
}
.at-personen path { fill: none; }

/* Der Planetengürtel.
   Er dreht sich nicht — er liegt fest an seinem Platz, und nur das
   Material darin läuft um. Den räumlichen Eindruck macht die
   Zeichenreihenfolge: die ferne Hälfte liegt hinter dem Rad und ist dort
   ausgespart, die nahe läuft darüber hinweg. */

.at-orbit ellipse { fill: none; }

/* Die Fläche zwischen den Kanten — nur angedeutet, sonst erschlüge sie
   das Rad darunter. */
.at-orbit-flaeche { stroke: color-mix(in srgb, var(--at-akzent) 16%, transparent); }

/* Die beiden Kanten. Im Original ist der Gürtel ein umrandetes Band;
   ohne sie sähe er aus wie ein dicker Strich. */
.at-orbit-kante {
    stroke: color-mix(in srgb, var(--at-akzent) 70%, transparent);
    stroke-width: 1.4;
}

/* Das umlaufende Material. Die Strichelung wandert um genau ein Segment
   weiter und ist danach wieder deckungsgleich — deshalb sieht man keinen
   Sprung, obwohl die Bewegung alle paar Sekunden von vorn beginnt.
   Die Segmentlänge steht als --takt am Element und stammt aus dem
   Umfang der Ellipse, damit sie ganzzahlig aufgeht. */
.at-orbit-strom {
    stroke: var(--at-akzent);
    stroke-linecap: round;
    opacity: .9;
    animation: at-orbit-strom 3.2s linear infinite;
}

@keyframes at-orbit-strom {
    from { stroke-dashoffset: 0; }
    to   { stroke-dashoffset: calc(var(--takt, 30) * -1px); }
}

/* Die ferne Hälfte liegt weiter weg und ist deshalb schwächer. */
.at-orbit-hinten { opacity: .55; }

/* Die Drehung.
   transform-origin bekommt die Mitte des jeweiligen Rades, die als
   --mx/--my im style-Attribut steht. Ohne das nähme der Browser die
   Mitte des gesamten SVG, und die Räder liefen auf Kreisbahnen um den
   Bildmittelpunkt statt sich um sich selbst zu drehen.

   Die Richtung lässt sich in CSS nicht aus einer Zahl errechnen. Sie
   kommt deshalb über eine zweite Regel, die auf das style-Attribut
   schaut: --richtung:-1 heißt gegen den Uhrzeigersinn. Zwei ineinander
   greifende Räder müssen sich gegenläufig drehen — täten sie es nicht,
   fiele es sofort auf. */
.at-rad, .at-rad-gegen {
    transform-origin: var(--mx) var(--my);
    animation: at-drehen var(--dauer, 40s) linear infinite;
    animation-direction: normal;
}
[style*="--richtung:-1"] { animation-direction: reverse; }

@keyframes at-drehen {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Das Emblem im Aufruf-Kasten liegt als Schmuck hinter dem Text. */
.at-raeder-aufruf {
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 340px;
    opacity: .16;
    pointer-events: none;
}

/* ------------------------------------------------------------------
   Zusagen
   ------------------------------------------------------------------
   Alle auto-fit-Raster auf dieser Seite verwenden minmax(min(Npx,100%), 1fr)
   und nicht minmax(Npx, 1fr). Der Unterschied zeigt sich erst auf einem
   sehr schmalen Telefon: ist die Spalte breiter als der Platz, schiebt
   die zweite Fassung die Seite auf und erzeugt einen waagerechten
   Rollbalken. Mit min() gibt die Spalte stattdessen nach.            */

.zusagen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 1px;
    background: var(--at-linie);
    border: 1px solid var(--at-linie);
    border-radius: var(--at-rund);
    overflow: hidden;
}
.zusage {
    padding: 26px 28px;
    background: color-mix(in srgb, var(--at-flaeche) 88%, transparent);
}
.zusage-titel {
    margin: 0 0 8px;
    font-weight: 700;
    color: #fff;
}
.zusage-text { margin: 0; font-size: .96rem; color: var(--at-text-leise); }

/* ------------------------------------------------------------------
   Anliegen der Entwicklung und Bereichskarten der Startseite
   ------------------------------------------------------------------
   Die Anliegen tragen die Startseite: vier Karten in einer Reihe, mit
   mehr Fläche und Luft als die beiden Bereichskarten darunter, die nur
   anreißen und auf die eigene Seite verweisen.                       */

.anliegen-gitter {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.anliegen-karte {
    padding: 30px 26px;
    border: 1px solid var(--at-linie-neon);
    border-radius: var(--at-rund);
    background: var(--at-flaeche);
}
.anliegen-karte h3 { margin: 0 0 .5em; font-size: 1.2rem; color: #fff; }
.anliegen-karte p  { margin: 0; font-size: .98rem; color: var(--at-text-leise); }

.bereich-teaser-gitter {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}
.bereich-teaser {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid var(--at-linie);
    border-radius: var(--at-rund);
    background: color-mix(in srgb, var(--at-flaeche) 72%, transparent);
}
.bereich-teaser h3 { margin: 0 0 .4em; font-size: 1.1rem; }
.bereich-teaser p  { margin: 0 0 14px; font-size: .95rem; color: var(--at-text-leise); }
.bereich-teaser-liste {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
    font-size: .95rem;
}

/* ------------------------------------------------------------------
   Leistungsstufen
   ------------------------------------------------------------------ */

.stufen-gitter {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
    gap: 22px;
    align-items: start;
}

.stufe {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 28px;
    border-radius: var(--at-rund);
    /* Rand als Verlauf: der Kasten bekommt zwei Hintergründe, der eine
       füllt die Fläche, der andere den Rand. Damit lässt sich ein
       farbverlaufender Rahmen zeichnen, den border allein nicht kann. */
    border: 1px solid transparent;
    background:
        linear-gradient(var(--at-flaeche), var(--at-flaeche)) padding-box,
        linear-gradient(160deg, var(--at-linie-neon), var(--at-linie) 45%) border-box;
    transition: transform .25s, box-shadow .25s;
}
.stufe:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 48px -28px #000,
                0 0 32px -12px color-mix(in srgb, var(--at-neon) 45%, transparent);
}

/* Eine Stufe in Vorbereitung sieht anders aus — gestrichelter Rand,
   zurückgenommene Fläche. Sie soll nicht wie ein Angebot wirken. */
.stufe-kommend {
    background: color-mix(in srgb, var(--at-flaeche) 55%, transparent);
    border: 1px dashed color-mix(in srgb, var(--at-akzent) 40%, transparent);
}
.stufe-kommend:hover { box-shadow: none; transform: none; }

.stufe-kopf { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.stufe-kopf h3 { margin: 0; }

/* Die Kennung als Plakette: das ist das Element, an dem man M1, M2 und
   M3 im Vorbeigehen auseinanderhält. */
.stufe-kennung {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    border-radius: 10px;
    font-family: var(--at-mono);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--at-neon-hell);
    background: color-mix(in srgb, var(--at-neon) 14%, transparent);
    border: 1px solid var(--at-linie-neon);
}
.stufe-kommend .stufe-kennung {
    color: var(--at-akzent-hell);
    background: color-mix(in srgb, var(--at-akzent) 10%, transparent);
    border-color: color-mix(in srgb, var(--at-akzent) 32%, transparent);
}

.etikett {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-family: var(--at-mono);
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}
.etikett-kommend {
    color: #0A1418;
    background: var(--at-akzent);
    font-weight: 600;
}

.stufe-kurz { color: var(--at-text-leise); font-size: .98rem; }

.stufe-baut-auf {
    margin: 4px 0 12px;
    padding-top: 14px;
    border-top: 1px solid var(--at-linie);
    font-size: .9rem;
    color: var(--at-text-still);
}
.stufe-baut-auf strong { color: var(--at-neon-hell); font-weight: 600; }

.stufe-merkmale, .merkmal-liste {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 9px;
}
.stufe-merkmale li, .merkmal-liste li {
    position: relative;
    padding-left: 26px;
    font-size: .96rem;
    color: var(--at-text-leise);
}
/* Das Häkchen als gedrehtes L aus zwei Rändern — kein Bild, keine Schrift,
   und es nimmt automatisch die Farbe an. */
.stufe-merkmale li::before, .merkmal-liste li::before {
    content: '';
    position: absolute;
    left: 4px; top: .5em;
    width: 6px; height: 10px;
    border: solid var(--at-akzent);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.stufe-fuss {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--at-linie);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    justify-content: space-between;
}
.stufe-alarm { margin: 0; font-size: .86rem; line-height: 1.4; }
.stufe-alarm span { display: block; font-family: var(--at-mono); font-size: .72rem;
                    letter-spacing: .1em; text-transform: uppercase; color: var(--at-text-still); }
.stufe-alarm strong { color: var(--at-text); font-weight: 600; }

.stufe-mehr {
    font-size: .93rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.stufe-mehr:hover { text-decoration: underline; }

.hinweis-preis {
    margin-top: 28px;
    padding: 18px 22px;
    border-left: 3px solid var(--at-neon);
    border-radius: 0 var(--at-rund-s) var(--at-rund-s) 0;
    background: color-mix(in srgb, var(--at-flaeche) 70%, transparent);
    font-size: .96rem;
    color: var(--at-text-leise);
}
.hinweis-preis strong { color: #fff; }

/* --- Detailseite einer Stufe --- */

.stufe-aufmacher {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
}
.stufe-aufmacher-bild { display: flex; justify-content: center; }
/* Der Abstand nach unten gehört dem Abschnitt, nicht dem letzten Element
   des Kopfs; folgt auf den Kopf noch Inhalt im selben Abschnitt, setzt
   dieser ihn selbst. */
.stufe-aufmacher-text > :last-child { margin-bottom: 0; }
.stufe-aufmacher + * { margin-top: clamp(30px, 4vw, 48px); }

.stufe-eckdaten {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 26px 0 0;
}
.stufe-eckdaten > div {
    padding: 12px 18px;
    border: 1px solid var(--at-linie);
    border-radius: var(--at-rund-s);
    background: color-mix(in srgb, var(--at-flaeche) 60%, transparent);
}
.stufe-eckdaten dt {
    font-family: var(--at-mono);
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--at-text-still);
}
.stufe-eckdaten dd { margin: 3px 0 0; font-weight: 600; color: var(--at-text); }

.merkmal-gruppe { margin-bottom: 32px; }
.merkmal-gruppe:last-child,
.merkmal-gruppe:last-child .merkmal-liste { margin-bottom: 0; }
.merkmal-gruppe-titel {
    font-family: var(--at-mono);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--at-neon-hell);
    margin-bottom: 14px;
}

.weiter-karte {
    display: block;
    padding: 26px 30px;
    border: 1px solid var(--at-linie);
    border-radius: var(--at-rund);
    background: color-mix(in srgb, var(--at-flaeche) 70%, transparent);
    text-decoration: none;
    color: inherit;
    transition: border-color .2s, background .2s;
}
.weiter-karte:hover { border-color: var(--at-neon); background: var(--at-flaeche); color: inherit; }
.weiter-vor {
    display: block;
    font-family: var(--at-mono);
    font-size: .74rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--at-text-still);
}
.weiter-titel { display: block; margin: 6px 0 4px; font-size: 1.3rem; font-weight: 700; color: #fff; }
.weiter-text  { display: block; font-size: .95rem; color: var(--at-text-leise); }

/* ------------------------------------------------------------------
   Leistungsbereiche
   ------------------------------------------------------------------
   Projekt- und Beratungsarbeit steht gleichwertig neben den
   Managed-Stufen, sieht aber bewusst anders aus: ruhiger, ohne
   Kennungs-Plakette, mit einer Strichzeichnung statt einer Zahl. Sonst
   läse man die Bereiche als weitere Stufen — und suchte vergeblich, wie
   sie aufeinander aufbauen.                                            */

.bereiche-gitter {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
    gap: 20px;
    align-items: start;
}

.bereich {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 26px;
    border: 1px solid var(--at-linie);
    border-radius: var(--at-rund);
    background: color-mix(in srgb, var(--at-flaeche) 72%, transparent);
    transition: border-color .22s, transform .22s, background .22s;
}
.bereich:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--at-akzent) 55%, transparent);
    background: var(--at-flaeche);
}
.bereich-kommend { border-style: dashed; }
.bereich-kommend:hover { transform: none; }

.bereich-kopf { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.bereich-kopf h3 { margin: 0; font-size: 1.12rem; }

.bereich-symbol {
    flex: 0 0 auto;
    width: 40px; height: 40px;
    padding: 8px;
    border-radius: 10px;
    color: var(--at-akzent);
    background: color-mix(in srgb, var(--at-akzent) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--at-akzent) 28%, transparent);
}

.bereich-kurz { font-size: .95rem; color: var(--at-text-leise); margin-bottom: 14px; }

.bereich-merkmale {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 7px;
}
.bereich-merkmale li {
    position: relative;
    padding-left: 18px;
    font-size: .92rem;
    color: var(--at-text-leise);
}
.bereich-merkmale li::before {
    content: '';
    position: absolute;
    left: 2px; top: .62em;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--at-akzent);
}

.bereich-mehr {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--at-linie);
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
}
.bereich-mehr:hover { text-decoration: underline; }

/* ------------------------------------------------------------------
   Sprungliste
   ------------------------------------------------------------------
   Die Leistungsseite ist lang geworden, seit die Bereiche dazugekommen
   sind. Drei Anker oben ersparen das Scrollen auf gut Glück.          */

.sprungliste {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: -8px 0 clamp(30px, 4vw, 48px);
}
.sprungliste a {
    padding: 7px 16px;
    border: 1px solid var(--at-linie);
    border-radius: 999px;
    font-family: var(--at-mono);
    font-size: .8rem;
    color: var(--at-text-leise);
    text-decoration: none;
    transition: border-color .18s, color .18s;
}
.sprungliste a:hover { color: #fff; border-color: var(--at-neon); }

/* Der Zusagen-Streifen unter Kopf und Sprungliste, mit dem Abstand, den
   die Seite sonst zwischen Blöcken hat. */
.zusagen-block { margin-bottom: clamp(30px, 4vw, 48px); }

/* ------------------------------------------------------------------
   Ablauf
   ------------------------------------------------------------------ */

.ablauf {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(215px, 100%), 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}
.ablauf-schritt { position: relative; padding-top: 26px; }
/* Die Linie über jedem Schritt macht die Abfolge sichtbar; beim letzten
   endet sie, statt ins Leere zu laufen. */
.ablauf-schritt::before {
    content: '';
    position: absolute;
    top: 8px; left: 0; right: -24px;
    height: 1px;
    background: linear-gradient(90deg, var(--at-neon), transparent);
    opacity: .5;
}
.ablauf-schritt:last-child::before { right: 0; }

.ablauf-nummer {
    display: block;
    font-family: var(--at-mono);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--at-neon-hell);
    margin-bottom: 10px;
}
.ablauf-schritt h3 { font-size: 1.08rem; margin-bottom: .35em; }
.ablauf-schritt p  { margin: 0; font-size: .95rem; color: var(--at-text-leise); }

/* ------------------------------------------------------------------
   Gegenüberstellung
   ------------------------------------------------------------------ */

/* position: relative ist nötig: die versteckten Vorlese-Texte (.nur-vorlesen,
   position: absolute) in den Zellen hängen sonst am nächsten positionierten
   Vorfahren, der Seitenspalte. overflow-x klemmt sie dann nicht, und die
   Seite wird auf dem Telefon so breit wie die Tabelle. */
.tabelle-rollt { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }

.vergleich {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: .96rem;
}
.vergleich th, .vergleich td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--at-linie);
    vertical-align: top;
}
.vergleich thead th {
    position: sticky;
    top: 0;
    background: var(--at-flaeche-2);
    border-bottom: 1px solid var(--at-linie-neon);
    white-space: nowrap;
}
.vergleich tbody th { font-weight: 400; color: var(--at-text-leise); }
.vergleich tbody tr:hover { background: color-mix(in srgb, var(--at-flaeche) 60%, transparent); }
.vergleich td { text-align: center; width: 1%; }
.vergleich td.ja   { color: var(--at-gut); font-size: 1.15rem; }
.vergleich td.nein { color: var(--at-text-still); }

.vergleich-kennung {
    display: block;
    font-family: var(--at-mono);
    font-size: .78rem;
    letter-spacing: .1em;
    color: var(--at-neon-hell);
}
.vergleich-name { display: block; color: #fff; }
.vergleich thead .etikett { margin-top: 6px; }

/* ------------------------------------------------------------------
   Was nicht enthalten ist
   ------------------------------------------------------------------
   Bewusst nicht kleingedruckt und nicht grau in grau: der Abschnitt ist
   eine Aussage über die eigene Arbeitsweise und keine Fußnote.        */

.ausschluss {
    padding: clamp(28px, 4vw, 44px);
    border: 1px solid color-mix(in srgb, var(--at-warnung) 26%, transparent);
    border-radius: var(--at-rund);
    background: color-mix(in srgb, var(--at-flaeche) 80%, transparent);
}
.ausschluss-kopf { max-width: 640px; margin-bottom: 28px; }
.ausschluss-kopf h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
.ausschluss-kopf p { margin: 0; color: var(--at-text-leise); font-size: .98rem; }

.ausschluss-liste {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ausschluss-liste li { display: flex; gap: 14px; }
/* Ein durchgestrichener Kreis, aus zwei Rändern gebaut. */
.ausschluss-zeichen {
    position: relative;
    flex: 0 0 auto;
    width: 20px; height: 20px;
    margin-top: 3px;
    border: 2px solid var(--at-warnung);
    border-radius: 50%;
}
.ausschluss-zeichen::after {
    content: '';
    position: absolute;
    left: 1px; right: 1px; top: 50%;
    height: 2px;
    background: var(--at-warnung);
    transform: translateY(-50%) rotate(-45deg);
}
.ausschluss-liste strong { color: #fff; }
.ausschluss-liste p { margin: 5px 0 0; font-size: .93rem; color: var(--at-text-leise); }

/* ------------------------------------------------------------------
   Aufruf am Seitenende
   ------------------------------------------------------------------ */

.aufruf {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: center;
    justify-content: space-between;
    padding: clamp(30px, 4vw, 52px);
    border: 1px solid var(--at-linie-neon);
    border-radius: var(--at-rund);
    background:
        radial-gradient(ellipse 70% 120% at 100% 0%,
            color-mix(in srgb, var(--at-neon) 18%, transparent), transparent 70%),
        var(--at-flaeche);
}
.aufruf-text { position: relative; z-index: 1; max-width: 620px; }
.aufruf-text h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
.aufruf-text p  { margin: 0; color: var(--at-text-leise); }
.aufruf-knoepfe { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------------
   Formular
   ------------------------------------------------------------------ */

.formular { display: grid; gap: 20px; }

/* align-content: start ist hier nicht Kosmetik.
   Zwei Felder nebeneinander werden auf dieselbe Höhe gestreckt. Ohne
   diese Zeile verteilt das Grid die überschüssige Höhe auf seine Zeilen —
   beim Feld ohne Hinweis auf zwei, beim Feld mit Hinweis auf drei. Das
   Eingabefeld ohne Hinweis wird dadurch sichtbar höher als das daneben. */
.feld { display: grid; gap: 7px; align-content: start; }
.feld-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.feld label, .formular label {
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .01em;
    color: var(--at-text);
}
.pflicht { color: var(--at-neon-hell); }

input[type="text"], input[type="email"], input[type="tel"],
input[type="url"], input[type="password"], input[type="number"],
input[type="search"], select, textarea {
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    font-size: .98rem;
    color: var(--at-text);
    background: var(--at-grund-2);
    border: 1px solid var(--at-linie);
    border-radius: var(--at-rund-s);
    transition: border-color .18s, box-shadow .18s;
}
textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

input::placeholder, textarea::placeholder { color: var(--at-text-still); }

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--at-neon);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--at-neon) 22%, transparent);
}

.hinweis { margin: 0; font-size: .85rem; color: var(--at-text-still); line-height: 1.5; }
.hinweis code { font-family: var(--at-mono); font-size: .95em; color: var(--at-neon-hell); }

.formular-hinweis {
    margin: 0;
    padding: 16px 18px;
    border: 1px solid var(--at-linie);
    border-radius: var(--at-rund-s);
    background: color-mix(in srgb, var(--at-flaeche) 55%, transparent);
    font-size: .88rem;
    line-height: 1.6;
    color: var(--at-text-leise);
}

/* Der Honigtopf. Nicht display:none — manche Bots erkennen das und
   lassen das Feld dann leer. So steht es außerhalb des Bildes. */
.honigtopf {
    position: absolute;
    left: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
}

.meldung {
    padding: 16px 20px;
    margin-bottom: 22px;
    border-radius: var(--at-rund-s);
    border-left: 3px solid var(--at-linie);
    background: var(--at-flaeche);
    font-size: .96rem;
}
.meldung strong { color: #fff; }
.meldung.gut     { border-left-color: var(--at-gut); }
.meldung.fehler  { border-left-color: var(--at-fehler); }
.meldung.warnung { border-left-color: var(--at-warnung); }
.hinweis-kasten  { border-left-color: var(--at-akzent); margin: 22px 0 0; }

/* ------------------------------------------------------------------
   Kontaktseite
   ------------------------------------------------------------------ */

.kontakt-raster {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr);
    gap: clamp(28px, 4vw, 52px);
    align-items: start;
}

.kontakt-daten { display: grid; gap: 18px; }

.karte-block {
    padding: 24px 26px;
    border: 1px solid var(--at-linie);
    border-radius: var(--at-rund);
    background: color-mix(in srgb, var(--at-flaeche) 70%, transparent);
}
.karte-block h2 {
    font-size: .82rem;
    font-family: var(--at-mono);
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--at-neon-hell);
    margin-bottom: 14px;
}
.karte-block p { font-size: .93rem; color: var(--at-text-leise); }
.karte-block .hinweis { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--at-linie); }

.daten { margin: 0; display: grid; gap: 13px; }
.daten dt { font-size: .78rem; color: var(--at-text-still); }
.daten dd { margin: 2px 0 0; color: var(--at-text); font-size: .96rem; }

/* ------------------------------------------------------------------
   Brotkrume
   ------------------------------------------------------------------ */

.krume {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 26px;
    font-family: var(--at-mono);
    font-size: .8rem;
    color: var(--at-text-still);
}
.krume a { color: var(--at-text-leise); text-decoration: none; }
.krume a:hover { color: var(--at-akzent-hell); text-decoration: underline; }
.krume span[aria-hidden] { opacity: .5; }
.krume-blatt { color: var(--at-text-leise); }

/* ------------------------------------------------------------------
   Inhalte aus dem Editor
   ------------------------------------------------------------------
   Was hier steht, hat jemand im Editor geschrieben. Die Regeln müssen
   deshalb mit allem zurechtkommen, was inc/html.php durchlässt —
   Überschriften, Listen, Tabellen, Bilder und das Raster von Bootstrap. */

.inhalt { font-size: 1.03rem; }
.inhalt > :first-child { margin-top: 0; }
.inhalt > :last-child  { margin-bottom: 0; }

.inhalt h2 { margin-top: 1.8em; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); }
.inhalt h3 { margin-top: 1.6em; font-size: 1.15rem; }
.inhalt h4 { margin-top: 1.4em; font-size: 1.02rem; color: var(--at-neon-hell); }

.inhalt p, .inhalt li { color: var(--at-text-leise); }
.inhalt strong, .inhalt b { color: var(--at-text); }

.inhalt ul, .inhalt ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.inhalt li { margin-bottom: .45em; }

.inhalt a { color: var(--at-akzent-hell); }

.inhalt blockquote {
    margin: 1.6em 0;
    padding: 4px 0 4px 22px;
    border-left: 3px solid var(--at-neon);
    color: var(--at-text-leise);
    font-style: normal;
}

.inhalt table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: .95rem;
}
.inhalt th, .inhalt td {
    padding: 11px 14px;
    border: 1px solid var(--at-linie);
    text-align: left;
    vertical-align: top;
}
.inhalt th { background: var(--at-flaeche); color: var(--at-text); font-weight: 600; }
.inhalt td { color: var(--at-text-leise); }

.inhalt img { border-radius: var(--at-rund-s); margin: .6em 0; }
.inhalt figure { margin: 1.6em 0; }
.inhalt figcaption { margin-top: 8px; font-size: .87rem; color: var(--at-text-still); }

.inhalt code {
    font-family: var(--at-mono);
    font-size: .92em;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--at-flaeche-2);
    color: var(--at-neon-hell);
}

/* Rechtstexte: engere Zeilen, klare Gliederung, keine Effekte. Wer ein
   Impressum liest, sucht eine Angabe und will nicht unterhalten werden. */
.inhalt-recht { font-size: .99rem; }
.inhalt-recht h2 {
    margin-top: 2.2em;
    padding-top: 1em;
    border-top: 1px solid var(--at-linie);
    font-size: 1.25rem;
}
.inhalt-recht h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.seiten-bilder {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
    gap: 18px;
    margin-top: 36px;
}
.seiten-bilder figure { margin: 0; }
.seiten-bilder img { width: 100%; border-radius: var(--at-rund-s); cursor: zoom-in; }

/* Bild in voller Größe — von assets/js/admins.js angelegt. */
.lupe {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(2, 3, 6, .92);
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
}
.lupe.offen { display: flex; }
.lupe img { max-width: 100%; max-height: 90vh; border-radius: var(--at-rund-s); }
.lupe button {
    position: absolute;
    top: 20px; right: 20px;
    width: 44px; height: 44px;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--at-text);
    background: var(--at-flaeche-2);
    border: 1px solid var(--at-linie);
    border-radius: 50%;
    cursor: pointer;
}

/* ------------------------------------------------------------------
   Seitenfuß
   ------------------------------------------------------------------ */

.fuss {
    margin-top: var(--at-luft);
    border-top: 1px solid var(--at-linie);
    background: color-mix(in srgb, var(--at-grund-2) 88%, transparent);
    font-size: .93rem;
}

.fuss-innen {
    max-width: var(--at-huelle);
    margin: 0 auto;
    padding: clamp(40px, 5vw, 64px) clamp(18px, 4vw, 32px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 36px;
}

.fuss h2 {
    font-family: var(--at-mono);
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--at-neon-hell);
    margin-bottom: 14px;
}

.fuss-marke { max-width: 320px; }
.fuss-name   { margin: 0 0 6px; font-weight: 700; color: #fff; }
.fuss-slogan { margin: 0 0 10px; color: var(--at-text-leise); }
.fuss-ust    { margin: 0; font-family: var(--at-mono); font-size: .8rem; color: var(--at-text-still); }

.fuss-liste { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.fuss-liste li { color: var(--at-text-leise); }
.fuss-liste a  { color: var(--at-text-leise); text-decoration: none; }
.fuss-liste a:hover { color: #fff; text-decoration: underline; }

.fuss-zeiten li { display: grid; gap: 1px; }
.fuss-zeiten .tag  { color: var(--at-text-still); font-size: .82rem; }
.fuss-zeiten .zeit { color: var(--at-text-leise); }

.fuss-zeile {
    border-top: 1px solid var(--at-linie);
    max-width: var(--at-huelle);
    margin: 0 auto;
    padding: 20px clamp(18px, 4vw, 32px);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: space-between;
    align-items: center;
    color: var(--at-text-still);
    font-size: .87rem;
}
/* Die beiden Pflichtverweise sind absichtlich kräftiger als der
   Urhebervermerk daneben: sie müssen auffindbar sein. */
.fuss-recht { display: flex; gap: 20px; }
.fuss-recht a { color: var(--at-text-leise); text-decoration: none; font-weight: 500; }
.fuss-recht a:hover { color: #fff; text-decoration: underline; }

/* ------------------------------------------------------------------
   Bewegung abschalten
   ------------------------------------------------------------------
   Wer im Betriebssystem „Bewegung reduzieren“ eingestellt hat, bekommt
   eine stehende Seite. Die Zahnräder bleiben sichtbar, sie drehen sich
   nur nicht mehr; der Zahlencode wird von matrix.js gar nicht erst
   gestartet, solange die Person ihn nicht selbst anschaltet.          */

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

/* ------------------------------------------------------------------
   Schmale Bildschirme
   ------------------------------------------------------------------ */

@media (max-width: 991px) {
    .menu-schalter { display: block; order: 2; }
    .matrix-schalter { order: 1; margin-left: auto; }
    /* Den Platz nach rechts nimmt der sichtbare Animationsknopf; fehlt er
       (Matrix aus, kein JavaScript), rückt der Menüknopf selbst nach rechts. */
    .kopf-innen:has(> .matrix-schalter:not([hidden])) .menu-schalter { margin-left: 0; }

    .hauptmenu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 16px clamp(18px, 4vw, 32px) 24px;
        background: var(--at-grund-2);
        border-bottom: 1px solid var(--at-linie);
        box-shadow: 0 24px 40px -24px #000;
    }
    .hauptmenu.offen { display: flex; }

    .hauptmenu ul { flex-direction: column; align-items: stretch; gap: 2px; }
    .hauptmenu a, .hauptmenu > ul button { width: 100%; padding: 12px 14px; font-size: 1rem; }
    .hauptmenu li.aktiv > a::after,
    .hauptmenu li.aktiv > button::after { left: 0; width: 3px; height: auto; top: 8px; bottom: 8px; right: auto; }

    .untermenu { position: static; box-shadow: none; margin: 4px 0 4px 14px; }

    .kopf-tat { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 10px; }
    .kopf-tat .knopf { justify-content: center; }

    .aufmacher-innen,
    .stufe-aufmacher { grid-template-columns: 1fr; }
    /* Auf dem Telefon steht das Emblem über dem Text und wird kleiner —
       darunter wäre es das Erste, was man nach dem Scrollen sieht. */
    .aufmacher-bild, .stufe-aufmacher-bild { order: -1; }
    .at-raeder-gross { max-width: 260px; }
    .at-raeder-mittel { max-width: 190px; }

    .kontakt-raster { grid-template-columns: 1fr; }

    .anliegen-gitter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bereich-teaser-gitter { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }
    .feld-paar { grid-template-columns: 1fr; gap: 16px; }
    .aufruf { flex-direction: column; align-items: flex-start; }
    .aufruf-knoepfe { width: 100%; }
    .aufruf-knoepfe .knopf { flex: 1 1 auto; justify-content: center; }
    .at-raeder-aufruf { display: none; }
    .stufe { padding: 22px; }
    .anliegen-gitter { grid-template-columns: 1fr; }
    .ablauf-schritt::before { right: 0; }
    .fuss-zeile { flex-direction: column; align-items: flex-start; }
}

/* Drucken: der Hintergrund verschwindet, der Text bleibt. Gedacht ist
   das vor allem für Impressum und Datenschutzerklärung. */
@media print {
    .at-grund, .kopf, .aufruf, .sprungmarke, .krume { display: none; }
    body { color: #000; background: #fff; font-size: 11pt; }
    h1, h2, h3, .inhalt p, .inhalt li { color: #000; }
    a { color: #000; text-decoration: underline; }
    .fuss { border-color: #999; background: none; }
}

/* ------------------------------------------------------------------
   Vorschau aus dem Editor
   ------------------------------------------------------------------
   Steht über einem ungespeicherten Entwurf. Bewusst auffällig: niemand
   soll die Vorschau mit der fertigen Seite verwechseln und sich wundern,
   warum Besucher sie nicht sehen.                                     */

.vorschau-streifen {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding: 12px clamp(18px, 4vw, 32px);
    background: var(--at-neon);
    color: #0B0616;
    font-size: .92rem;
}
.vorschau-streifen strong { color: #0B0616; }
.vorschau-streifen a { color: #0B0616; font-weight: 600; }

/* Ein noch nicht ausgefüllter Wert — „[Telefonnummer]“. Er wird angezeigt,
   damit er auffällt, aber nicht verlinkt: ein tel:-Verweis darauf wählt
   nichts. Die gestrichelte Unterstreichung sagt, dass hier etwas fehlt. */
.fuss-platzhalter {
    color: var(--at-warnung);
    font-family: var(--at-mono);
    font-size: .88em;
    text-decoration: underline dashed;
    text-underline-offset: .25em;
}
