/* Kopf und Fuss - die eine Quelle fuer ALLE Seiten.
   Am 30.09.2026 aus homepage.html herausgeloest, am 24.11.2026 auf den
   Stand der Seiten nachgezogen und auf alle Seiten ausgerollt.

   Dazu gehoeren Kopf.astro und Fuss.astro als Markup und kopf-fuss.js als
   Verhalten. Ohne alle drei wirkt die Datei nicht.

   Warum das hier liegt und nicht je Seite im <style>: bis zum 24.11.2026
   trugen vier Seiten eine eigene Kopie dieser Regeln und sechs eine andere
   Fassung von Kopf und Fuss. Genau dadurch fiel auf /anfrage und /intern001
   die Regel .logo { color } durch - der Schriftzug stand dort blau, in der
   Standardfarbe des Browsers fuer Links.

   Jede Farbe steht mit Rueckfallwert, damit die Datei auch auf Seiten
   funktioniert, die die Marken-Variablen nicht selbst setzen. */

/* Der Kopf schwebt ueber dem Inhalt und nimmt keine Hoehe ein. Seiten,
   deren Inhalt gleich oben beginnt, rechnen diesen Wert in ihren oberen
   Abstand ein - meist als max(eigener Wert, var(--kopf-luft)), damit der
   groessere der beiden gewinnt. Ohne das schiebt sich die erste Zeile
   unter Logo und Menueknopf. */
:root { --kopf-luft: 126px; }
@media (max-width: 720px) { :root { --kopf-luft: 118px; } }

/* ---------------------------------------------------------- Kopf */
.sprunglink { position: absolute; left: -9999px; top: 12px; z-index: 200;
    background: var(--ink, #0E0B16); color: var(--paper, #FAF8F4); padding: 12px 20px; border-radius: 999px;
    font-weight: 600; text-decoration: none; }
.sprunglink:focus-visible { left: 12px; }
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 40;
    display: flex; justify-content: space-between; align-items: center;
    padding: 22px 32px; pointer-events: none;
  }
.nav > * { pointer-events: auto; }
.nav-left { display: flex; align-items: center; gap: 22px; }
/* Kopflogo: oben der Schriftzug, beim Scrollen bleibt das Zeichen. Die
   Grundposition der Buchstaben liegt in ihren Gruppen - stuende sie am Pfad,
   loeschte die CSS-Transformation sie und alle ruckten aufeinander.
   Die Rahmenbreite --logo-w und die Anteile --p* kommen aus kopf-fuss.js. */
.logo { color: var(--ink, #0E0B16); display: block; position: relative;
    height: 34px; overflow: hidden; flex: 0 0 auto; width: var(--logo-w, 93.4px); }
.logo svg { height: 100%; width: auto; display: block; }
.logo .hub { transform: translateY(calc(var(--pe, 0) * -107px)); }
.logo .b-i { transform: translateX(calc(var(--pi, 0) * -2139px)); opacity: calc(1 - var(--pi, 0) * 2); }
.logo .b-m { transform: translateX(calc(var(--pm, 0) * -1181px)); opacity: calc(1 - var(--pm, 0) * 2); }
.logo .b-u { transform: translateX(calc(var(--pu, 0) * -585px)); opacity: calc(1 - var(--pu, 0) * 2); }
.logo .b-e { transform-origin: 310px 285px; transform: rotate(calc(var(--pe, 0) * -8deg)); }
.logo .punkt { transform: translate(calc(var(--pp, 0) * -1599px), calc(var(--pp, 0) * -632px)); }
@media (prefers-reduced-motion: reduce) {
  .logo .hub, .logo .b-e, .logo .punkt,
  .logo .b-i, .logo .b-m, .logo .b-u { transform: none; }
  .logo .b-i, .logo .b-m, .logo .b-u { opacity: calc(1 - var(--p, 0)); }
}
.nav-right { display: flex; gap: 12px; align-items: center; }
.cta-wrap { position: relative; display: inline-block; }
.cta-invert {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 26px; border-radius: 999px;
    font-weight: 500; font-size: 0.95rem; color: var(--ink, #0E0B16);
    background: var(--paper, #FAF8F4); border: 1.5px solid var(--paper, #FAF8F4);
    clip-path: inset(100% 0 0 0 round 999px);
  }
body.menu-open .cta-invert { opacity: 0; }
.nav-cta {
    position: relative; overflow: hidden; isolation: isolate;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 26px; border-radius: 999px; text-decoration: none;
    font-weight: 500; font-size: 0.95rem; color: var(--paper, #FAF8F4);
    border: 1.5px solid var(--ink, #0E0B16); background: transparent;
    transition: color 0.35s ease;
  }
.nav-cta::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: var(--ink, #0E0B16); border-radius: inherit;
    transform: scaleX(1); transform-origin: right;
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
  }
.nav-cta .arrow { transition: transform 0.35s ease; }
.nav-cta:hover { color: var(--ink, #0E0B16); }
.nav-cta:hover::before { transform: scaleX(0); }
.nav-cta:hover .arrow { transform: translateX(4px); }
.menu-trigger {
    width: 50px; height: 50px; border-radius: 999px; border: 1px solid rgba(14,11,22,0.14);
    background: rgba(250,248,244,0.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    display: grid; place-items: center; cursor: pointer;
  }
.menu-trigger div { width: 22px; position: relative; height: 14px; }
.menu-trigger span { position: absolute; left: 0; right: 0; height: 2px; display: block;
    transition: transform 0.24s cubic-bezier(0.65,0,0.35,1) 0.24s; }
.menu-trigger span:nth-child(1) { top: 0; }
.menu-trigger span:nth-child(2) { bottom: 0; }
.menu-trigger i { display: block; height: 2px; background: var(--ink, #0E0B16); border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.65,0,0.35,1) 0s, background 0.3s; }
body.menu-open .menu-trigger span { transition-delay: 0s; }
body.menu-open .menu-trigger span:nth-child(1) { transform: translateY(6px); }
body.menu-open .menu-trigger span:nth-child(2) { transform: translateY(-6px); }
body.menu-open .menu-trigger i { transition-delay: 0.22s; }
body.menu-open .menu-trigger span:nth-child(1) i { transform: rotate(45deg); }
body.menu-open .menu-trigger span:nth-child(2) i { transform: rotate(-45deg); }
.menu-panel {
    position: fixed; top: 16px; right: 16px; z-index: 39;
    width: min(440px, calc(100vw - 32px));
    border-radius: 28px; padding: 96px 40px 40px;
    background: rgba(250,248,244,0.72); backdrop-filter: blur(26px) saturate(1.4); -webkit-backdrop-filter: blur(26px) saturate(1.4);
    border: 1px solid rgba(14,11,22,0.1);
    box-shadow: 0 24px 80px rgba(14,11,22,0.18), inset 0 1px 0 rgba(255,255,255,0.5);
    
    clip-path: circle(0% at 100% 0%);
    pointer-events: none; visibility: hidden;
    transition: clip-path 0.7s cubic-bezier(0.62,0.05,0.3,1), visibility 0s linear 0.7s;
  }
body.menu-open .menu-panel {
    clip-path: circle(160% at 100% 0%);
    pointer-events: auto; visibility: visible;
    transition: clip-path 0.78s cubic-bezier(0.62,0.05,0.3,1), visibility 0s;
  }
.menu-panel a.mlink {
    display: block; text-decoration: none; color: var(--ink, #0E0B16);
    font-family: 'Instrument Sans'; font-weight: 600; font-size: clamp(1.8rem, 3vw, 2.4rem);
    padding: 10px 0; letter-spacing: -0.02em; transition: color 0.2s;
  }
.menu-panel .m-cta { transition-delay: 0s; }
.menu-panel a.mlink:nth-of-type(1) { transition-delay: 0.20s; }
.menu-panel a.mlink:nth-of-type(2) { transition-delay: 0.15s; }
.menu-panel a.mlink:nth-of-type(3) { transition-delay: 0.10s; }
.menu-panel a.mlink:nth-of-type(4) { transition-delay: 0.05s; }
.menu-panel a.mlink:hover { color: var(--violet, #773AA5); }
.menu-panel .m-cta {
    display: inline-flex; align-items: center; gap: 12px; margin-top: 30px;
    background: var(--ink, #0E0B16); color: var(--paper, #FAF8F4); text-decoration: none;
    font-weight: 600; font-size: 1.05rem; padding: 18px 34px; border-radius: 999px;
  }
.menu-panel .m-cta .arrow { transition: transform 0.3s; }
.menu-panel .m-cta:hover .arrow { transform: translateX(5px); }
.scrim { position: fixed; inset: 0; z-index: 38; background: rgba(14,11,22,0.2); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
body.menu-open .scrim { opacity: 1; pointer-events: auto; }
/* Nur der Overlay-Kopf dreht ins Helle. Der Assistent auf /anfrage hat
   einen eigenen hellen Balken - dort waere ein weisser Schriftzug
   unsichtbar. Darum .nav .logo und nicht .logo allein. */
body.nav-dark .nav .logo { color: var(--paper, #FAF8F4); }
body.nav-dark .menu-trigger { background: rgba(14,11,22,0.4); border-color: rgba(250,248,244,0.25); }
body.nav-dark .menu-trigger i { background: var(--paper, #FAF8F4); }
.logo, .menu-trigger { transition: color 0.3s, background 0.3s, border-color 0.3s; }
.nav-cta { transition: color 0.35s ease, opacity 0.25s ease; }
body.menu-open .nav-cta { opacity: 0; pointer-events: none; }
.cta-wrap { transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22,1,0.36,1); }
/* Seiten ohne Hero-Knopf setzen .cta-frei beim Laden - sonst bliebe der
   Kopf-CTA dort unsichtbar. Genau das war auf /checker, /website-checker
   und /datenschutz-check der Fall. */
body:not(.cta-frei) .cta-wrap { opacity: 0; pointer-events: none; transform: translateY(-8px); }
.cta-sticky { display: none; }
@media (max-width: 900px) {
  .cta-sticky {
      display: inline-flex; align-items: center; justify-content: center; gap: 10px;
      position: fixed; z-index: 45; left: 5vw; right: 5vw;
      bottom: calc(14px + env(safe-area-inset-bottom, 0px));
      background: var(--ink, #0E0B16); color: var(--paper, #FAF8F4); text-decoration: none;
      font-family: 'Instrument Sans'; font-weight: 600; font-size: 1rem;
      padding: 17px 24px; border-radius: 999px;
      box-shadow: 0 14px 36px rgba(14,11,22,0.3);
      transform: translateY(160%);
      transition: transform 0.42s cubic-bezier(0.22,1,0.36,1), background 0.35s ease, color 0.35s ease;
    }
  body.cta-frei .cta-sticky { transform: none; }
  body.menu-open .cta-sticky { transform: translateY(160%); }
  body.nav-dark .cta-sticky { background: var(--paper, #FAF8F4); color: var(--ink, #0E0B16);
      box-shadow: 0 14px 36px rgba(0,0,0,0.45); }
}
.cursor { position: fixed; z-index: 60; top: 0; left: 0; width: 74px; height: 74px; border-radius: 50%;
    pointer-events: none; display: grid; place-items: center;
    transform: translate(-50%,-50%) scale(0.135);
    transition: transform 0.25s; mix-blend-mode: exclusion; background: #fff; }
.cursor.is-view { transform: translate(-50%,-50%) scale(1); }
.cursor span { opacity: 0; font-size: 0; }
.cursor.is-view span { opacity: 1; font-size: 0.75rem; color: #000; font-weight: 600; transition: opacity 0.2s 0.1s; }
@media (pointer: coarse) {
  .cursor { display: none; }
}
@media (max-width: 900px) {
  .nav-cta { display: none; }
}

/* ---------------------------------------------------------- Fuss */
footer { position: relative; color: rgba(250,248,244,0.72); background: #2A0B4A; overflow: hidden; isolation: isolate; }
footer .fbg { position: absolute; left: 0; right: 0; bottom: 0; z-index: -2; }
footer .fbg-img { position: relative; width: 100%; }
footer .fbg img { width: 100%; height: auto; display: block;
    
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.55) 9%, #000 26%);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.55) 9%, #000 26%); }
footer .fscrim { position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(0deg, rgba(28,7,50,0.74) 0%, rgba(28,7,50,0.45) 26%, rgba(28,7,50,0) 62%); }
footer .fpin {
    position: absolute; left: 72.8%; bottom: 70.5%; transform: translateX(-50%);
    display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
    padding: 10px 16px 10px 12px; border-radius: 14px;
    background: rgba(250,248,244,0.94); color: var(--ink, #0E0B16);
    border: 1px solid rgba(255,255,255,0.55);
    box-shadow: 0 14px 34px rgba(9,2,20,0.45);
  }
footer .fpin svg { width: 22px; height: 22px; flex: none; }
footer .fpin b { font-family: 'Instrument Sans'; font-weight: 600; font-size: 0.9rem; letter-spacing: -0.01em; }
footer .fpin::after { content: ''; position: absolute; top: 100%; left: 50%; width: 1px; height: 12px;
    transform: translateX(-50%); background: linear-gradient(rgba(250,248,244,0.9), rgba(250,248,244,0)); }
footer::before { content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(100deg, #2A0B4A 0%, rgba(42,11,74,0.92) 30%, rgba(42,11,74,0.30) 60%, transparent 80%),
                linear-gradient(180deg, #2A0B4A 0%, rgba(42,11,74,0) 32%); }
footer .finner { position: relative; max-width: 1400px; margin: 0 auto;
    padding: clamp(64px, 9vh, 120px) 5vw clamp(32px, 5vh, 56px); }
footer .standort {
    max-width: 560px; padding: clamp(28px, 4vw, 48px); border-radius: 28px;
    background: rgba(250,248,244,0.07); border: 1px solid rgba(250,248,244,0.14); backdrop-filter: blur(18px);
  }
/* Ueberschriftenebenen: Der Fuss sprang frueher von der h1 der Seite direkt
   auf h3 - Lighthouse wertet das als uebersprungene Ebene. Mit h2 fuer den
   Standort und h3 fuer die Spaltenkoepfe ist die Folge auf jeder Seite
   lueckenlos, egal welche Ebenen der Seiteninhalt vorher benutzt. */
footer .standort h2 { font-family: 'Instrument Sans'; font-weight: 700; text-transform: lowercase;
    font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -0.03em; color: var(--paper, #FAF8F4); margin-bottom: 20px; }
footer .standort p { line-height: 1.7; margin-bottom: 14px; max-width: 46ch; }
footer .standort .adr { color: var(--paper, #FAF8F4); font-weight: 500; margin-top: 22px; margin-bottom: 0; }
footer .standort .adr a { color: var(--teal-light, #0BD8CF); text-decoration: none; margin: 0; }
footer .fnav { display: flex; flex-wrap: wrap; gap: clamp(28px, 6vw, 96px);
    margin-top: clamp(72px, 12vh, 160px); }
footer .fnav h3 { font-family: 'Instrument Sans'; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.12em;
    text-transform: uppercase; color: rgba(250,248,244,0.45); margin-bottom: 14px; }
footer .fnav span { display: block; margin: 0 0 10px; color: rgba(250,248,244,0.55); }
footer .fnav a { display: block; padding: 5px 0; margin: 0 0 4px; }
footer .row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center;
    margin-top: clamp(40px, 6vh, 72px); padding-top: 28px; border-top: 1px solid rgba(250,248,244,0.14); font-size: 0.9rem; }
footer .flogo { color: var(--paper, #FAF8F4); }
footer .flogo svg { width: 40px; height: 40px; }
footer a { color: rgba(250,248,244,0.72); text-decoration: none; }
/* WCAG 2.2 "Target Size": Die Links der Rechtszeile waren nur so hoch wie
   ihre Textzeile - rund 22px - und standen 20px auseinander. Lighthouse
   bemaengelte Instagram/Facebook, weil sie am Nachbarlink kleben. Der
   Innenabstand hebt das Tippziel ueber 24px, ohne das Schriftbild zu
   aendern; der groessere Seitenabstand trennt die Ziele sauber. */
footer .row a { margin-left: 24px; display: inline-block; padding: 5px 0; }
footer a:hover { color: var(--paper, #FAF8F4); }
@media (max-width: 900px) {
  footer .fbg-img { width: 170%; max-width: none; margin-left: -62%; }
  footer .finner { padding-bottom: 250px; }
  footer .fpin { padding: 8px 13px 8px 10px; }
  footer .fpin svg { width: 18px; height: 18px; }
  footer .fpin b { font-size: 0.8rem; }
  footer::before { background: linear-gradient(180deg, #2A0B4A 0%, #2A0B4A 46%, rgba(42,11,74,0) 72%); }
  footer .standort { max-width: none; }
  footer .fnav { margin-top: 56px; gap: 32px; }
}
