/* ═════════════════════════════════════════════════════════════════
   SALZHAUT TATTOO · Linie Bühne · Umsetzung nach GESTALTUNG.md
   Salz konserviert, Tinte bleibt. Tuscheschwarz-Blau × Kupfer.
   ═════════════════════════════════════════════════════════════════ */
@layer reset, tokens, basis, komponenten, effekte, abfragen, vorfuehrung;

/* ─── Schriften: zwei Welten, lokal, variabel ─── */
@font-face {
  font-family: "Cormorant";
  src: url("../fonts/Cormorant-var.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant";
  src: url("../fonts/Cormorant-Italic-var.woff2") format("woff2");
  font-weight: 300 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo-var.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
}

@layer reset {
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  img, svg, video { display: block; max-width: 100%; height: auto; }
  button, input { font: inherit; color: inherit; }
  ul[class], ol[class] { list-style: none; }
  a { color: inherit; }
}

@layer tokens {
  :root {
    color-scheme: dark;
    --grund:       oklch(0.158 0.007 258.4);  /* #0B0D10 Tuscheschwarz */
    --flaeche:     oklch(0.204 0.013 264.2);  /* #14171D Karten */
    --salz:        oklch(0.955 0.007 233.6);  /* #ECF1F4 Frostweiß */
    --nebel:       oklch(0.723 0.022 248.1);  /* #9BA7B3 */
    --kupfer:      oklch(0.659 0.114 50.6);   /* #C97C4E */
    --kupfer-hell: oklch(0.728 0.116 53.1);   /* #E0925F */

    --serif: "Cormorant", Georgia, serif;
    --grotesk: "Archivo", system-ui, sans-serif;
    --s-hero:  clamp(3.5rem, 12vw, 9rem);
    --s-h2:    clamp(2rem, 5vw, 3.75rem);
    --s-h3:    clamp(1.375rem, 2.5vw, 1.75rem);
    --s-lauf:  clamp(1rem, 0.95rem + 0.35vw, 1.1875rem);
    --s-klein: 0.875rem;

    --rand: clamp(1.25rem, 4vw, 4rem);
    --takt: clamp(5rem, 10vw, 9rem);
    --breite: 1440px;
    --squircle: 1.5rem 2.5rem 1.5rem 2.5rem;
  }
}

@layer basis {
  body {
    font-family: var(--grotesk);
    font-size: var(--s-lauf);
    line-height: 1.6;
    background: var(--grund);
    color: var(--salz);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
  }
  h1, h2, h3 { text-wrap: balance; }
  p { text-wrap: pretty; max-width: 62ch; }
  .sr-only {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
  .sprunglink {
    position: fixed; top: 0.75rem; left: 0.75rem; z-index: 200;
    background: var(--kupfer); color: var(--grund);
    padding: 0.7rem 1.2rem; border-radius: var(--squircle);
    font-weight: 600; text-decoration: none; translate: 0 -300%;
  }
  .sprunglink:focus-visible { translate: 0 0; }
  :focus-visible { outline: 2px solid var(--salz); outline-offset: 3px; }
  ::selection { background: var(--kupfer); color: var(--grund); }
  .kursiv { font-family: var(--serif); font-style: italic; font-weight: 500; }
}

/* ═════════════════ KOMPONENTEN ═════════════════ */
@layer komponenten {

  /* ─── Preloader: Nadelkreis + Wortmarke + Kupferlinie.
     Bewusst OHNE filter/Glow: Filterflächen zeichnen auf dunklem Grund
     sichtbare Layer-Rechtecke. Grund = Seitengrund, nahtlos. ─── */
  .preloader {
    position: fixed; inset: 0; z-index: 150;
    display: grid; place-content: center; justify-items: center;
    row-gap: 1.4rem;
    background: var(--grund);
  }
  .preloader__buehne { display: grid; place-items: center; }
  .preloader__signet { width: clamp(120px, 17vw, 160px); }
  .preloader__signet .signet__kreis { stroke: var(--kupfer); stroke-width: 3; }
  .preloader__wortmarke {
    font-family: var(--grotesk); font-weight: 800; font-stretch: 125%;
    font-size: clamp(1.15rem, 2.4vw, 1.55rem);
    letter-spacing: 0.34em; text-indent: 0.34em; text-transform: uppercase;
  }
  .preloader__linie {
    width: min(210px, 46vw); height: 1px;
    background: oklch(from var(--nebel) l c h / 0.28);
    display: block; overflow: hidden;
  }
  .preloader__linie-wert {
    display: block; height: 100%; width: 0;
    background: var(--kupfer);
  }
  .preloader__zahl {
    font-family: var(--serif); font-style: italic;
    font-size: clamp(0.95rem, 1.7vw, 1.1rem);
    color: var(--nebel);
    font-variant-numeric: tabular-nums;
    min-width: 4ch; text-align: center;
    transition: opacity 0.3s;
  }
  .preloader.zahl-weg .preloader__zahl { opacity: 0; }
  .preloader__vorhang { /* Tusche zieht sich nach dem Morph in den Nadelpunkt zurueck */
    position: fixed; inset: 0; z-index: 140;
    background: var(--grund);
    visibility: hidden; /* erst im Einsatz sichtbar: keine Layer-Kante beim Laden */
    clip-path: circle(150% at 50% 44%);
    transition: clip-path 0.75s cubic-bezier(0.77, 0, 0.175, 1);
    pointer-events: none;
  }
  .seite-frei .preloader__vorhang { visibility: visible; clip-path: circle(0% at 50% 44%); }

  /* ─── Signet (Handpoke-Kreis + Salzkorn) ─── */
  .signet { display: block; }
  .signet__kreis {
    fill: none; stroke: currentColor; stroke-width: 4;
    stroke-linecap: round;
  }
  .signet__korn { fill: var(--kupfer); }

  /* ─── Nav ─── */
  .kopf {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    padding: 1.1rem var(--rand);
  }
  .nav {
    display: flex; align-items: center; gap: 2rem;
    max-width: var(--breite); margin-inline: auto;
  }
  .nav__marke {
    display: inline-flex; align-items: center; gap: 0.65rem;
    font-weight: 800; font-stretch: 125%;
    font-size: 1.2rem; letter-spacing: 0.04em; text-transform: uppercase;
    text-decoration: none;
  }
  .nav__marke .signet { width: 26px; color: var(--salz); }
  .nav__marke:hover .signet__korn { animation: kornpuls 0.4s ease; }
  @keyframes kornpuls { 50% { transform: scale(1.4); } }
  .signet__korn { transform-origin: center; transform-box: fill-box; }
  .nav__liste {
    display: flex; gap: 2.2rem; margin-left: auto;
    font-size: 0.95rem;
  }
  .nav__liste a {
    text-decoration: none; font-weight: 400; font-variation-settings: "wght" 400;
    transition: font-variation-settings 0.2s, color 0.2s;
  }
  .nav__liste a:hover { font-variation-settings: "wght" 600; color: var(--kupfer-hell); }

  /* ─── Hero: SALZ / HAUT über dem Ink-Loop ─── */
  .hero {
    min-height: 100dvh;
    display: grid; align-content: center;
    padding: 7rem var(--rand) 4rem;
    position: relative; isolation: isolate; overflow: clip;
  }
  .hero__video {
    position: absolute; inset: 0; z-index: -1;
    display: grid; place-items: center;
  }
  .hero__video video, .hero__video img {
    width: min(72vw, 900px); height: auto;
    opacity: 0.8;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at center, black 55%, transparent 100%);
            mask-image: radial-gradient(ellipse 70% 70% at center, black 55%, transparent 100%);
  }
  .hero__innen { max-width: var(--breite); margin-inline: auto; width: 100%; }
  .hero__titel {
    font-family: var(--grotesk); font-weight: 800; font-stretch: 125%;
    font-size: var(--s-hero); line-height: 0.9;
    letter-spacing: -0.025em; text-transform: uppercase;
    display: grid;
  }
  .hero__titel .zeile:last-child { text-align: right; }
  .zeile { display: block; overflow: clip; }
  .zeile > span { display: inline-block; }
  .hero__satz {
    margin-top: 2.2rem; max-width: 40ch;
    color: var(--nebel); font-size: calc(var(--s-lauf) * 1.08);
  }
  .hero__satz .kursiv { color: var(--salz); font-size: 1.15em; }
  .hero__handlung { margin-top: 2.4rem; }

  /* ─── Manifest: drei Sätze Cormorant ─── */
  .manifest { padding: var(--takt) var(--rand); }
  .manifest__innen { max-width: 52rem; margin-inline: auto; }
  .manifest p {
    font-family: var(--serif); font-weight: 500;
    font-size: var(--s-h2); line-height: 1.25;
    letter-spacing: -0.01em; max-width: none;
  }
  .manifest p + p { margin-top: 1.8rem; }
  .manifest .kupferwort { color: var(--kupfer); font-style: italic; }

  /* ─── Arbeiten: draggbare Ink-Blob-Galerie ─── */
  .arbeiten { padding: var(--takt) 0; overflow: clip; }
  .arbeiten__kopf { padding: 0 var(--rand); max-width: var(--breite); margin: 0 auto 3rem; }
  .arbeiten__kopf h2 { font-family: var(--serif); font-weight: 600; font-size: var(--s-h2); }
  .arbeiten__wink { color: var(--nebel); font-size: var(--s-klein); margin-top: 0.6rem; letter-spacing: 0.06em; }
  .galerie {
    display: flex; gap: clamp(1.5rem, 4vw, 3.5rem);
    padding: 0 var(--rand);
    cursor: grab; touch-action: pan-y;
    will-change: transform;
    width: max-content;
  }
  .galerie.greift { cursor: grabbing; }
  .werk { flex: 0 0 auto; width: clamp(240px, 32vw, 420px); position: relative; }
  .werk:nth-child(2) { translate: 0 3.5rem; }
  .werk:nth-child(3) { rotate: 2.5deg; }
  .werk:nth-child(4) { translate: 0 1.8rem; }
  .werk img {
    width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
    border-radius: var(--blob-a);
    transition: border-radius 0.45s cubic-bezier(0.77, 0, 0.175, 1);
  }
  .werk:nth-child(4) img { aspect-ratio: 1; }
  @media (hover: hover) and (pointer: fine) {
    .werk:hover img { border-radius: var(--blob-b); }
  }
  .werk__nr {
    position: absolute; top: -0.6em; left: -0.2em; z-index: 2;
    font-family: var(--grotesk); font-weight: 800; font-stretch: 125%;
    font-size: 2rem; color: var(--kupfer);
  }
  /* Organische Ink-Blob-Radien (Hover morpht zwischen zwei Formen) */
  .werk { --blob-a: 58% 42% 63% 37% / 46% 56% 44% 54%;
          --blob-b: 42% 58% 39% 61% / 55% 44% 58% 45%; }
  .werk:nth-child(even) { --blob-a: 41% 59% 46% 54% / 58% 43% 57% 42%;
                          --blob-b: 60% 40% 57% 43% / 42% 59% 41% 58%; }

  /* ─── Stile: drei ungleiche Spalten ─── */
  .stile { background: var(--flaeche); padding: var(--takt) var(--rand); position: relative; }
  .stile::before, .stile::after { /* 35-Grad-Eckkanten oben/unten */
    content: ""; position: absolute; left: 0; width: min(38vw, 420px); height: 3.2rem;
    background: var(--grund);
  }
  .stile::before { top: 0; clip-path: polygon(0 0, 100% 0, 0 100%); }
  .stile::after { bottom: 0; right: 0; left: auto; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
  .stile__innen {
    max-width: var(--breite); margin-inline: auto;
    display: grid; gap: 3rem;
    grid-template-columns: 1fr 0.85fr 1.15fr;
    align-items: center;
  }
  .stile h2 { font-family: var(--serif); font-weight: 600; font-size: var(--s-h2); margin-bottom: 1.4rem; }
  .stil { border-top: 1px solid oklch(from var(--nebel) l c h / 0.25); padding: 1.3rem 0; }
  .stil h3 { font-size: var(--s-h3); font-weight: 600; margin-bottom: 0.4rem; }
  .stil p { color: var(--nebel); font-size: 0.98rem; }
  .stile__video video, .stile__video img {
    width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
    border-radius: 55% 45% 60% 40% / 44% 58% 42% 56%;
  }

  /* ─── Studio: Kreis öffnet sich beim Scrollen (CSS scroll-driven) ─── */
  .studio { min-height: 160vh; position: relative; }
  .studio__buehne {
    position: sticky; top: 0; min-height: 100vh;
    display: grid; place-items: center; overflow: clip;
  }
  .studio__bild {
    position: absolute; inset: 0;
    clip-path: circle(75% at 50% 50%); /* Fallback: offen */
  }
  .studio__bild img { width: 100%; height: 100%; object-fit: cover; }
  @supports (animation-timeline: view()) {
    .studio__bild {
      animation: kreis-auf linear both;
      animation-timeline: view();
      animation-range: entry 30% cover 62%;
    }
  }
  @keyframes kreis-auf {
    from { clip-path: circle(19% at 50% 50%); }
    to   { clip-path: circle(75% at 50% 50%); }
  }
  .studio__wort {
    position: relative; z-index: 2; text-align: center;
    padding: 0 var(--rand);
    text-shadow: 0 2px 24px oklch(0 0 0 / 0.55);
  }
  .studio__wort h2 { font-family: var(--serif); font-weight: 600; font-size: var(--s-h2); }
  .studio__wort p { margin: 0.8rem auto 0; color: var(--salz); }
  .studio__werkzeug {
    position: absolute; right: var(--rand); bottom: 8vh; z-index: 2;
    width: clamp(130px, 16vw, 220px);
    rotate: -2deg;
    box-shadow: 0 18px 50px oklch(0 0 0 / 0.5);
  }
  .studio__werkzeug img { border-radius: var(--squircle); }

  /* ─── Ablauf ─── */
  .ablauf { background: var(--flaeche); padding: var(--takt) var(--rand); position: relative; }
  .ablauf::before {
    content: ""; position: absolute; top: 0; right: 0; width: min(30vw, 340px); height: 2.8rem;
    background: var(--grund); clip-path: polygon(0 0, 100% 0, 100% 100%);
  }
  .ablauf__innen {
    max-width: var(--breite); margin-inline: auto;
    display: grid; gap: 3rem 4rem; grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
  .ablauf h2 { font-family: var(--serif); font-weight: 600; font-size: var(--s-h2); margin-bottom: 2rem; }
  .schritte { display: grid; gap: 1.6rem; }
  .schritt { display: grid; grid-template-columns: auto 1fr; gap: 1.3rem; align-items: baseline; }
  .schritt__nr {
    font-family: var(--grotesk); font-weight: 800; font-stretch: 125%;
    font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1;
    color: var(--kupfer);
  }
  .schritt h3 { font-size: var(--s-h3); font-weight: 600; }
  .schritt p { color: var(--nebel); font-size: 0.98rem; margin-top: 0.25rem; }
  .ablauf__bild img { border-radius: var(--squircle); }

  /* ─── Termin ─── */
  .termin {
    padding: calc(var(--takt) * 1.2) var(--rand);
    position: relative; overflow: clip;
  }
  .termin__salz {
    position: absolute; right: -6%; top: 50%; translate: 0 -50%; z-index: -1;
    width: clamp(220px, 30vw, 460px); opacity: 0.55;
    -webkit-mask-image: linear-gradient(to left, black 55%, transparent);
            mask-image: linear-gradient(to left, black 55%, transparent);
  }
  .termin__innen { max-width: var(--breite); margin-inline: auto; }
  .termin h2 {
    font-family: var(--serif); font-weight: 600;
    font-size: var(--s-h2); max-width: 18ch;
  }
  .termin .cta { margin-top: 2.2rem; }

  /* ─── Footer ─── */
  .fuss { padding: 3.5rem var(--rand) 2.5rem; border-top: 1px solid oklch(from var(--nebel) l c h / 0.2); }
  .fuss__innen {
    max-width: var(--breite); margin-inline: auto;
    display: flex; flex-wrap: wrap; gap: 1rem 3rem;
    justify-content: space-between;
    font-size: var(--s-klein); color: var(--nebel);
  }
  .fuss address { font-style: normal; display: inline; }
  .fuss a { text-underline-offset: 3px; }
  .fuss a:hover { color: var(--salz); }

  /* ─── Buttons ─── */
  .cta {
    display: inline-flex; align-items: center; gap: 0.7rem;
    min-height: 52px; padding: 0.95rem 2rem;
    background: var(--kupfer); color: var(--grund);
    border: none; border-radius: var(--squircle);
    font-weight: 600; font-size: 1.02rem;
    text-decoration: none; cursor: pointer;
    position: relative; overflow: clip; isolation: isolate;
    transition: background-color 0.3s, scale 0.11s cubic-bezier(0.23, 1, 0.32, 1);
  }
  @supports (corner-shape: squircle) {
    .cta { corner-shape: squircle; border-radius: 1.6rem; }
  }
  .cta::before { /* wandernder Glanz */
    content: ""; position: absolute; inset: -20%; z-index: -1;
    background: linear-gradient(115deg, transparent 30%, oklch(1 0 0 / 0.35) 50%, transparent 70%);
    translate: -120% 0;
  }
  @media (hover: hover) and (pointer: fine) {
    .cta:hover { background: var(--kupfer-hell); }
    .cta:hover::before { transition: translate 0.3s ease; translate: 120% 0; }
  }
  .cta:active { scale: 0.96; }
  .cta:focus-visible { outline: 2px solid var(--salz); outline-offset: 3px; }

  .cta--ghost {
    background: none; color: var(--salz);
    border: 1px solid var(--nebel);
    --einfall: 0%;
  }
  .cta--ghost::before { content: none; }
  .cta--ghost::after { /* Füllung fährt von der Cursorseite ein */
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: var(--kupfer);
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.25s cubic-bezier(0.23, 1, 0.32, 1);
  }
  .cta--ghost.von-rechts::after { clip-path: inset(0 0 0 100%); }
  @media (hover: hover) and (pointer: fine) {
    .cta--ghost:hover { color: var(--grund); border-color: var(--kupfer); background: none; }
    .cta--ghost:hover::after { clip-path: inset(0 0 0 0); }
  }

  /* ─── Nach-oben-Kreis: Scroll-Fortschritt, 0 kB JS ─── */
  .hoch {
    position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 120;
    width: 56px; height: 56px; border-radius: 50%;
    background: oklch(from var(--flaeche) l c h / 0.85);
    backdrop-filter: blur(8px);
    display: grid; place-items: center;
    border: none; cursor: pointer;
    opacity: 0; translate: 0 12px; pointer-events: none;
    transition: opacity 0.3s, translate 0.3s, rotate 0.3s;
  }
  .hoch.ist-da { opacity: 1; translate: 0 0; pointer-events: auto; }
  .hoch:hover { rotate: 30deg; }
  .hoch:active { scale: 0.96; }
  .hoch svg { position: absolute; inset: 4px; width: auto; height: auto; rotate: -90deg; }
  .hoch__spur { fill: none; stroke: oklch(from var(--nebel) l c h / 0.3); stroke-width: 2.5; }
  .hoch__wert {
    fill: none; stroke: var(--kupfer); stroke-width: 2.5; stroke-linecap: round;
    stroke-dasharray: 132; stroke-dashoffset: 132;
  }
  @supports (animation-timeline: scroll()) {
    .hoch__wert { animation: hochfortschritt linear both; animation-timeline: scroll(); }
  }
  @keyframes hochfortschritt { to { stroke-dashoffset: 0; } }
  .hoch__pfeil { color: var(--salz); rotate: 0deg; }
}

/* ═════════════════ EFFEKTE ═════════════════ */
@layer effekte {

  /* Grain: kaltes Salzkorn */
  body::after {
    content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='k'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23k)'/%3E%3C/svg%3E");
    opacity: 0.05; mix-blend-mode: overlay;
  }

  /* Hero-Eintritt nach Vorhang (rise+fade, @starting-style) */
  .hero__titel .zeile > span, .hero__satz, .hero__handlung {
    opacity: 1; translate: 0 0;
    transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                translate 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  }
  .hero__titel .zeile:nth-child(2) > span { transition-delay: 0.08s; }
  .hero__satz { transition-delay: 0.18s; transition-duration: 0.45s; }
  .hero__handlung { transition-delay: 0.26s; transition-duration: 0.45s; }
  @starting-style {
    .hero__titel .zeile > span { opacity: 0; translate: 0 0.5em; }
    .hero__satz, .hero__handlung { opacity: 0; translate: 0 12px; }
  }

  /* Bilder erscheinen per clip-Wipe (nur mit JS versteckt; IO rootMargin -15%) */
  .hat-js .wipe { clip-path: inset(100% 0 0 0); transition: clip-path 0.7s cubic-bezier(0.77, 0, 0.175, 1); }
  .hat-js .wipe.sichtbar { clip-path: inset(0 0 0 0); }
}

/* ═════════════════ ABFRAGEN ═════════════════ */
@layer abfragen {
  @media (max-width: 900px) {
    .stile__innen { grid-template-columns: 1fr; }
    .stile__video { order: -1; max-width: 420px; }
    .ablauf__innen { grid-template-columns: 1fr; }
    .werk:nth-child(2), .werk:nth-child(4) { translate: 0 0; }
    .nav__liste { gap: 1.4rem; font-size: 0.88rem; }
    .studio__werkzeug { display: none; }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.001s !important;
      animation-delay: 0s !important;
      transition-duration: 0.2s !important;
      transition-delay: 0s !important;
    }
    .hero__titel .zeile > span, .hero__satz, .hero__handlung { translate: 0 0; }
    .studio__bild { animation: none; clip-path: circle(75% at 50% 50%); }
    .werk img { border-radius: var(--blob-a) !important; }
    .wipe { clip-path: none; transition: opacity 0.2s; }
    .cta::before { content: none; }
    .hoch__wert { animation: none; stroke-dashoffset: 0; }
    .preloader__vorhang { transition: opacity 0.2s; clip-path: none; }
    .seite-frei .preloader__vorhang { opacity: 0; }
    .galerie { overflow-x: auto; width: auto; cursor: default; }
  }

  @media (prefers-reduced-transparency: reduce) {
    .hoch { background: var(--flaeche); backdrop-filter: none; }
  }

  @media print {
    .preloader, .preloader__vorhang, .hoch, body::after { display: none; }
    body { background: white; color: black; }
  }
}

/* ══════════════════════════════════════════════════════════════════════
   VORFÜHRUNG · Klammer von AI Media Halle um die Musterseite.
   Gehört NICHT zum Gestaltungsdirektiv (GESTALTUNG.md); eigene,
   zurückgenommene Fläche, damit die Flächenregeln der Seite unberührt
   bleiben. Wird beim Umbau auf einen echten Kunden komplett entfernt.
   ══════════════════════════════════════════════════════════════════════ */
@layer vorfuehrung {
  :root { --band-h: 2.5rem; --band-flaeche: oklch(0.23 0.015 258); }
  body { padding-top: var(--band-h); }
  .kopf { top: var(--band-h); }
  .musterband {
    position: fixed; inset: 0 0 auto 0; z-index: 145;
    min-height: var(--band-h);
    display: flex; align-items: center; justify-content: center;
    gap: 0.55rem 1.1rem; flex-wrap: wrap;
    padding: 0.4rem 1rem;
    background: var(--band-flaeche);
    border-bottom: 1px solid oklch(from var(--nebel) l c h / 0.22);
    font-family: var(--grotesk); font-size: 0.83rem; line-height: 1.35;
    color: var(--nebel); text-align: center;
  }
  .musterband__marke {
    width: 11px; height: 11px; flex: none; border-radius: 999px;
    border: 2.5px solid var(--kupfer);
  }
  .musterband p { margin: 0; max-width: none; }
  .musterband strong { color: var(--salz); font-weight: 600; }
  .musterband__weg {
    color: var(--salz); font-weight: 500;
    text-decoration: underline; text-underline-offset: 3px;
    text-decoration-color: var(--kupfer); text-decoration-thickness: 2px;
    border-radius: 4px;
  }
  @media (max-width: 40rem) {
    :root { --band-h: 3.4rem; }
    .musterband { font-size: 0.76rem; gap: 0.3rem 0.7rem; }
    .musterband .nur-breit { display: none; }
  }
  @media print { .musterband { display: none; } body { padding-top: 0; } }

  /* Anbieterkennzeichnung § 5 DDG — Fuss-Schalter und Popover */
  .fuss__imp {
    appearance: none; background: none; border: 0; padding: 0;
    font: inherit; color: var(--nebel); cursor: pointer;
    text-decoration: underline; text-underline-offset: 3px;
    text-decoration-color: var(--kupfer); text-decoration-thickness: 2px;
  }
  .fuss__imp:hover { color: var(--salz); }
  /* Abstand zum fixierten Nach-oben-Ring, sonst ueberdeckt er den Link */
  .fuss__innen > span:last-child { padding-right: 3.5rem; }
  .anbieter {
    max-width: 34rem; margin: auto; border: 0; border-radius: 14px;
    padding: 2rem 2rem 1.5rem;
    background: var(--flaeche);
    color: var(--nebel);
    border: 1px solid oklch(from var(--nebel) l c h / 0.22);
    box-shadow: 0 30px 80px rgb(0 0 0 / 0.55);
  }
  .anbieter::backdrop { background: rgb(0 0 0 / 0.62); }
  .anbieter h2 {
    font-family: var(--serif, inherit); font-size: 1.5rem;
    margin: 0 0 0.9rem; color: var(--salz);
  }
  .anbieter p { font-size: 0.92rem; line-height: 1.6; margin: 0 0 0.9rem; max-width: none; }
  .anbieter__adresse { color: var(--salz); }
  .anbieter a { color: var(--salz); text-underline-offset: 3px; }
  .anbieter__zu {
    appearance: none; cursor: pointer; font: inherit;
    padding: 0.55rem 1.4rem; border-radius: 999px;
    border: 1px solid var(--kupfer); background: none; color: var(--salz);
  }
  .anbieter__zu:hover { background: var(--kupfer); }
}
