/*
Theme Name: Glaserei Sahin
Theme URI: https://www.glaserei-sahin.at/
Author: 1.wien webdesign
Author URI: https://1.wien
Description: Massgeschneidertes Theme fuer die Glaserei Sahin in Wien Floridsdorf - Designsystem "Dispersion". Schwarzweiss, das Spektrum als einziges Farbereignis an Kanten, eine Schriftfamilie in drei Breiten. Ohne Framework, mit selbst gehosteten Schriften.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sahin
*/
/* ==================================================================
   Glaserei Sahin — "Dispersion"
   Glas bricht Licht in Farben. Deshalb: Schwarzweiss, und das
   Spektrum als einziges Farbereignis — an Kanten, nie als Flaeche.
   Eine Schriftfamilie in drei Breiten traegt die ganze Hierarchie.
   ================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo.woff2") format("woff2-variations");
  font-weight: 300 800;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --klar:   #FFFFFF;
  --dunst:  #F1F4F7;
  --tief:   #0A0C11;
  --tief-2: #14181F;
  --rauch:  #6E767F;
  --linie:  #DFE4EA;

  --spektrum: linear-gradient(90deg, #22D3EE 0%, #7C5CFF 52%, #FFB020 100%);
  --cyan:     #22D3EE;
  --magenta:  #FF3D9A;
  --amber:    #FFB020;

  --schrift: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --breite: 1400px;
  --rand: clamp(1.25rem, 4vw, 4rem);

  --grund: var(--klar);
  --text: var(--tief);
  --schwach: var(--rauch);
  --kante: var(--linie);
}

/* Farbschemata setzen nur Token */
.f-klar  { --grund: var(--klar);  --text: var(--tief); --schwach: var(--rauch); --kante: var(--linie); }
.f-dunst { --grund: var(--dunst); --text: var(--tief); --schwach: #636C75; --kante: #D3D9E0; }
.f-tief  { --grund: var(--tief);  --text: var(--klar); --schwach: rgba(255,255,255,.62); --kante: rgba(255,255,255,.16); }

* { margin: 0; padding: 0; box-sizing: border-box; }
::selection { background: var(--tief); color: var(--klar); }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--schrift);
  font-size: 1.0625rem; line-height: 1.55;
  font-variation-settings: "wdth" 100;
  color: var(--text); background: var(--klar);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--tief); outline-offset: 3px; }

.springen { position: absolute; left: -9999px; top: 0; z-index: 90; background: var(--tief); color: var(--klar); padding: .75rem 1.25rem; }
.springen:focus { left: 0; }

.bahn { max-width: var(--breite); margin-inline: auto; padding-inline: var(--rand); }
section, header, footer { background: var(--grund); color: var(--text); }

/* ---------- Schriftregister: eine Familie, drei Breiten ---------- */

.weit {              /* Schaugroessen: extrabreit, sehr eng gesetzt */
  font-variation-settings: "wdth" 125, "wght" 700;
  letter-spacing: -.045em; line-height: .88; text-wrap: balance;
  text-transform: uppercase;
}
.schmal {            /* Labels und Daten: schmal, versal, gesperrt */
  font-variation-settings: "wdth" 68, "wght" 600;
  letter-spacing: .18em; text-transform: uppercase; font-size: .6875rem;
}

h1, h2, h3 { font-weight: 700; }
.marke-schrift { font-variation-settings: "wdth" 118, "wght" 700; letter-spacing: -.03em; text-transform: uppercase; }

.daten { font-variation-settings: "wdth" 68, "wght" 600; letter-spacing: .18em; text-transform: uppercase; font-size: .6875rem; color: var(--schwach); }
.fliess { color: var(--schwach); max-width: 56ch; }
.fliess + .fliess { margin-top: .8rem; }
.gross { font-size: clamp(1.2rem, 1.9vw, 1.55rem); line-height: 1.4; color: var(--text); max-width: 34ch; font-variation-settings: "wdth" 100, "wght" 500; }

/* Der prismatische Strich: das einzige Farbereignis */
.spektrum { height: 3px; background: var(--spektrum); border: 0; }
.spektrum-duenn { height: 2px; background: var(--spektrum); border: 0; }

/* ---------- Kopf ---------- */

.kopf { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--kante); backdrop-filter: blur(12px); background: color-mix(in srgb, var(--grund) 88%, transparent); }
.kopf .bahn { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: .9rem; }
/* Das Zeichen traegt den Firmennamen, darunter steht der Auftritt.
   Feste Hoehe statt max-width: so bleibt die Kopfzeile bei jeder
   Schriftgroesse gleich hoch. */
.marke { display: inline-flex; flex-direction: column; gap: .25rem; text-decoration: none; }
.marke-logo { height: 2.3rem; width: auto; }
.marke small {
  font-variation-settings: "wdth" 68, "wght" 600;
  letter-spacing: .2em; text-transform: uppercase;
  font-size: .625rem; color: var(--schwach);
}
@media (max-width: 620px) { .marke-logo { height: 1.9rem; } }
.kopf nav { display: flex; gap: clamp(.8rem, 1.8vw, 1.6rem); align-items: center; flex-wrap: wrap; }
.kopf nav a { font-variation-settings: "wdth" 68, "wght" 600; letter-spacing: .16em; text-transform: uppercase; font-size: .6875rem; text-decoration: none; color: var(--schwach); transition: color .18s; }
.kopf nav a:hover { color: var(--text); }
.kopf .anruf { color: var(--text); position: relative; padding-bottom: .25rem; }
.kopf .anruf::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--spektrum); }

/* ---------- Auftakt ---------- */

/* Das Werkstattbild traegt den Auftakt. Es liegt als <img> darunter, nicht
   als CSS-Hintergrund: nur so findet der Browser es beim Vorauslesen des
   Quelltextes und kann es mit fetchpriority vorziehen - es ist das
   groesste Element im ersten Bildausschnitt. */
.auftakt {
  position: relative; overflow: hidden;
  min-height: min(86vh, 760px);
  display: grid; align-items: end;
  padding-block: clamp(4.5rem, 13vw, 8.5rem) clamp(2.25rem, 4vw, 3.5rem);
  background: var(--tief);
  --grund: var(--tief); --text: var(--klar);
  --schwach: rgba(255,255,255,.68); --kante: rgba(255,255,255,.2);
}
.auftakt-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }

/* Abgedunkelt wird nur so viel, wie die Schrift braucht - und nur dort, wo
   sie steht. Die Aufnahme ist gut belichtet (mittlere Helligkeit 123 von
   255); eine flaechige Abdunklung wuerde sie ohne Not zunichte machen.
   Deshalb ein einziger Verlauf von unten: unten traegt er den Text, oben
   laesst er die Werkstatt fast unberuehrt. */
.auftakt::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top,
    rgba(10,12,17,.90) 0%,
    rgba(10,12,17,.74) 20%,
    rgba(10,12,17,.40) 44%,
    rgba(10,12,17,.12) 72%,
    rgba(10,12,17,.05) 100%);
}

/* Statt die Flaeche weiter abzudunkeln, bekommt die Schrift selbst einen
   weichen Schatten. Das haelt den Kontrast auch dort, wo ein heller Reflex
   im Glas hinter die Buchstaben faellt. drop-shadow statt text-shadow,
   weil die H1 ihren eigenen farbigen Schatten fuer die Aberration traegt. */
.auftakt > .bahn {
  position: relative; z-index: 2; width: 100%;
  filter: drop-shadow(0 2px 14px rgba(10, 12, 17, .6));
}

/* Der prismatische Strich sitzt auf der Unterkante des Bildes */
.auftakt::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  z-index: 3; background: var(--spektrum);
}

.auftakt h1 {
  font-size: clamp(2.3rem, 7.4vw, 6.4rem);
  margin: 1.1rem 0 0;
  max-width: 16ch;
}
.auftakt .daten { color: rgba(255,255,255,.72); }

.auftakt-ruf { display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin-top: 1.6rem; }
.ruf-haupt, .ruf-neben {
  display: inline-flex; align-items: center; gap: .6rem; text-decoration: none;
  font-variation-settings: "wdth" 68, "wght" 700; letter-spacing: .16em;
  text-transform: uppercase; font-size: .6875rem;
  padding: .95rem 1.5rem; transition: background .18s, color .18s;
}
.ruf-haupt { background: var(--klar); color: var(--tief); position: relative; }
.ruf-haupt::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--spektrum); }
.ruf-haupt:hover { background: var(--dunst); }
.ruf-neben { border: 1px solid rgba(255,255,255,.42); color: var(--klar); }
.ruf-neben:hover { background: rgba(255,255,255,.1); border-color: var(--klar); }

.auftakt-marke {
  position: absolute; right: var(--rand); bottom: 1.6rem; z-index: 2;
  font-variation-settings: "wdth" 68, "wght" 600; letter-spacing: .16em;
  text-transform: uppercase; font-size: .625rem; color: rgba(255,255,255,.55);
}
@media (max-width: 940px) { .auftakt-marke { display: none; } }

/* Auf schmalen Schirmen wird das Bild zum Band ueber dem Text.
   Grund ist die Rechnung hinter object-fit: cover. Die Aufnahme ist
   1600x720 (2,2:1), ein Handyschirm etwa 0,6:1. Fuellt das Bild die ganze
   Hoehe, bleiben nur rund 28 % seiner Breite sichtbar - ein Streifen, auf
   dem die Werkstatt nicht mehr zu erkennen ist. Ein niedrigeres Bildfeld
   dreht die Rechnung um: bei 46vh sind es knapp 60 %.
   Der Text steht darunter auf Tiefschwarz statt auf dem Bild, der Verlauf
   fuehrt das eine ins andere ueber. */
@media (max-width: 700px) {
  .auftakt {
    min-height: 0; align-items: start;
    padding-block: calc(34vh + 1.6rem) 2.5rem;
  }
  .auftakt-bild { height: 36vh; bottom: auto; object-position: 50% 40%; }
  .auftakt::after {
    inset: 0 0 auto 0; height: 36vh;
    background: linear-gradient(to bottom,
      rgba(10,12,17,.3) 0%,
      rgba(10,12,17,.16) 42%,
      rgba(10,12,17,.82) 84%,
      #0A0C11 100%);
  }
}
/* Chromatische Aberration: Licht spaltet sich am Glas */
.spaltung { text-shadow: -0.14em 0 rgba(34,211,238,.5), 0.14em 0 rgba(255,61,154,.42); }
@media (prefers-reduced-motion: reduce) { .spaltung { text-shadow: -0.012em 0 rgba(34,211,238,.5), 0.012em 0 rgba(255,61,154,.42); } }

.auftakt-unten { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(2rem, 5vw, 4.5rem); margin-top: clamp(2.5rem, 5vw, 4rem); align-items: start; }
@media (max-width: 940px) { .auftakt-unten { grid-template-columns: 1fr; } }

/* ---------- Kennzahlenleiste ---------- */

.leiste { border-top: 1px solid var(--kante); border-bottom: 1px solid var(--kante); }
.leiste .bahn { display: grid; grid-template-columns: repeat(4, 1fr); }
/* Jede Zahl sitzt mittig in ihrer Spalte. Vorher hing sie linksbuendig am
   Rand, waehrend die Trennlinie rechts Abstand hielt - dadurch stand die
   ganze Leiste sichtbar schief. */
.leiste div { padding: 1.5rem 1.25rem 1.6rem; text-align: center; }
.leiste div + div { border-left: 1px solid var(--kante); }
.leiste b { display: block; font-size: clamp(1.6rem, 3.2vw, 2.9rem); font-variation-settings: "wdth" 118, "wght" 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.leiste span { display: block; margin-top: .6rem; font-variation-settings: "wdth" 68, "wght" 600; letter-spacing: .16em; text-transform: uppercase; font-size: .625rem; color: var(--schwach); }
@media (max-width: 780px) {
  .leiste .bahn { grid-template-columns: repeat(2, 1fr); }
  .leiste div { padding: 1.35rem 1rem 1.45rem; }
  .leiste div:nth-child(3) { border-left: 0; }
  .leiste div:nth-child(n+3) { border-top: 1px solid var(--kante); }
}

/* ---------- Abschnitt ---------- */

.abschnitt { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.kopfzeile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: end; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.kopfzeile h2 { font-size: clamp(1.9rem, 4.2vw, 3.4rem); margin-top: .9rem; }
@media (max-width: 820px) { .kopfzeile { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Register der Techniken ---------- */
/* Statt sechs gleicher Karten nebeneinander: links eine Liste wie ein
   Inhaltsverzeichnis, rechts eine Tafel, die auf die gewaehlte Zeile
   umschlaegt. Der Wechsel laeuft ueber Radiofelder und den ~-Selektor -
   ohne JavaScript, damit die Auswahl auch dann funktioniert, wenn ein
   Optimierungs-Plugin Skripte zurueckhaelt.
   Voraussetzung dafuer: Felder, Beschriftungen und Tafeln muessen
   Geschwister sein. Deshalb traegt .register das Raster selbst. */

.register {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  column-gap: clamp(2rem, 5vw, 5rem);
  border-top: 1px solid var(--kante);
}
.register > input { position: absolute; opacity: 0; pointer-events: none; }

.register > label {
  grid-column: 1;
  display: grid; grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: .15rem 1rem; align-items: baseline;
  padding: clamp(1rem, 1.9vw, 1.5rem) 0;
  border-bottom: 1px solid var(--kante);
  cursor: pointer; position: relative;
}
.register > label::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: var(--spektrum); transition: width .45s cubic-bezier(.2,.7,.3,1);
}
.register > label:hover::after { width: 38%; }
.register > input:checked + label::after { width: 100%; }
.register > input:focus-visible + label { outline: 2px solid var(--tief); outline-offset: 3px; }

.register .nr {
  font-variation-settings: "wdth" 68, "wght" 600; letter-spacing: .16em;
  font-size: .6875rem; color: var(--schwach); font-variant-numeric: tabular-nums;
}
.register .titel {
  font-size: clamp(1.3rem, 2.7vw, 2.15rem);
  font-variation-settings: "wdth" 112, "wght" 700;
  letter-spacing: -.035em; text-transform: uppercase; line-height: 1.05;
  color: var(--schwach); transition: color .2s;
}
.register > label:hover .titel { color: var(--text); }
.register > input:checked + label .titel { color: var(--text); }
.register .kurz {
  grid-column: 2; color: var(--schwach); font-size: .875rem;
  max-width: 40ch; margin-top: .3rem;
}

/* Die Tafel steht rechts und laeuft ueber alle sechs Zeilen mit.
   Alle sechs liegen uebereinander in derselben Rasterzelle statt mit
   display:none nebeneinander. Zwei Gruende:
   - Mit display:none haetten die Bilder nie ein Layout und der Browser
     laedt sie deshalb nie vor. Beim ersten Umschalten stuende ein leerer
     Rahmen, bis das Bild nachgeladen ist.
   - Uebereinander bestimmt die hoechste Tafel die Hoehe. Der Abschnitt
     springt beim Wechseln nicht. */
/* Spannt ueber alle Beschriftungszeilen des Registers. Die Zahl muss
   zur Anzahl der Techniken passen - bei sechs stand hier 1 / 7. */
.tafeln { grid-column: 2; grid-row: 1 / 5; align-self: start; position: sticky; top: 5.5rem; display: grid; }
.tafel {
  grid-area: 1 / 1; visibility: hidden; opacity: 0;
  transition: opacity .3s ease;
}
#tk1:checked ~ .tafeln .tf1,
#tk2:checked ~ .tafeln .tf2,
#tk3:checked ~ .tafeln .tf3,
#tk4:checked ~ .tafeln .tf4,
#tk5:checked ~ .tafeln .tf5,
#tk6:checked ~ .tafeln .tf6 { visibility: visible; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .tafel { transition: none; } }

/* Die Tafel wiederholt den Namen der Technik. Fuer die Gliederung des
   Dokuments ist das die eigentliche Ueberschrift - die Beschriftung links
   ist ein Bedienelement und darf keine tragen. */
.tafel-titel {
  font-size: clamp(1.1rem, 1.9vw, 1.4rem);
  font-variation-settings: "wdth" 112, "wght" 700;
  letter-spacing: -.02em; text-transform: uppercase;
  margin-bottom: .85rem; padding-bottom: .55rem;
  border-bottom: 1px solid var(--kante);
}
.tafel figure { margin: 0; overflow: hidden; background: var(--dunst); position: relative; }
.tafel figure::after { content: ""; position: absolute; inset: auto 0 0 0; height: 2px; background: var(--spektrum); }
.tafel img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.tafel .text { margin-top: 1.2rem; color: var(--schwach); font-size: .9375rem; }
.tafel .werte {
  display: grid; gap: .45rem; margin-top: 1.2rem;
  font-size: .75rem; color: var(--schwach);
  font-variation-settings: "wdth" 78, "wght" 500; letter-spacing: .06em; line-height: 1.35;
}
.tafel .werte span { display: grid; gap: .05rem; padding-top: .45rem; border-top: 1px solid var(--kante); }
.tafel .werte b { color: var(--text); font-variation-settings: "wdth" 78, "wght" 700; font-size: .8125rem; }
/* Weg von der Kachel in den ausfuehrlichen Text */
.tafel-mehr { margin-top: 1.1rem; }
.tafel-mehr a {
  font-variation-settings: "wdth" 68, "wght" 700; letter-spacing: .14em;
  text-transform: uppercase; font-size: .625rem; color: var(--text);
  text-decoration: none; padding-bottom: .3rem;
  border-bottom: 2px solid var(--tief); transition: letter-spacing .2s;
  display: inline-block;
}
.tafel-mehr a:hover { letter-spacing: .19em; }

/* Unter 900 px steht die Tafel unter der Liste - die Spalte waere zu schmal
   fuer ein Bild im Hochformat. */
@media (max-width: 900px) {
  .register { grid-template-columns: 1fr; }
  .register > label { grid-column: 1; }
  .tafeln { grid-column: 1; grid-row: auto; position: static; margin-top: 1.75rem; }
  .tafel img { aspect-ratio: 3/2; }
  .register .titel { font-size: clamp(1.2rem, 6vw, 1.7rem); }
}

/* ---------- Aussage auf Tiefschwarz ---------- */

.aussage { padding-block: clamp(4rem, 10vw, 8rem); position: relative; overflow: hidden; background: var(--tief); }

/* Der Zuschnitt am Filztisch traegt den Abschnitt - dasselbe Verfahren wie
   im Auftakt. Darueber liegt allein die Abdunklung fuer die Lesbarkeit. */
.aussage-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
/* Hier laeuft der Text ueber die ganze Breite, deshalb ein gleichmaessiger
   Schleier statt eines gerichteten Verlaufs - und nur so dicht, dass der
   Zuschnitt gut zu erkennen bleibt. Die Lesbarkeit haelt zusaetzlich der
   Schatten an der Schrift selbst. */
.aussage::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(10,12,17,.46) 0%,
    rgba(10,12,17,.44) 34%,
    rgba(10,12,17,.62) 62%,
    rgba(10,12,17,.74) 100%);
}
.aussage .bahn {
  position: relative; z-index: 3;
  filter: drop-shadow(0 2px 14px rgba(10, 12, 17, .7));
}

/* Der prismatische Strich schliesst den Abschnitt nach unten ab */
.aussage::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 4; background: var(--spektrum); }

@media (max-width: 780px) {
  .aussage::after {
    background: linear-gradient(to bottom,
      rgba(10,12,17,.6) 0%, rgba(10,12,17,.74) 45%, rgba(10,12,17,.82) 100%);
  }
}
.aussage .satz { font-size: clamp(2.4rem, 7.5vw, 6.5rem); }
.aussage .drei { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); margin-top: clamp(2rem, 4vw, 3.5rem); }
.aussage .drei > div { border-top: 2px solid transparent; border-image: var(--spektrum) 1; padding-top: 1.1rem; }
.aussage .drei b { display: block; font-variation-settings: "wdth" 100, "wght" 700; font-size: 1.0625rem; margin-bottom: .4rem; }
.aussage .drei p { color: var(--schwach); font-size: .9375rem; }

/* ---------- Gegenueberstellung ---------- */

.wege { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.weg { border: 1px solid var(--kante); padding: clamp(1.3rem, 2.4vw, 2rem); position: relative; }
.weg.gut { background: var(--tief); color: var(--klar); border-color: var(--tief); }
.weg.gut p { color: rgba(255,255,255,.7); }
.weg.gut::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--spektrum); }
.weg h3 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); font-variation-settings: "wdth" 112, "wght" 700; letter-spacing: -.03em; text-transform: uppercase; margin-bottom: .7rem; }
.weg p { color: var(--schwach); font-size: .9375rem; }
.weg .marke-weg { display: block; font-variation-settings: "wdth" 68, "wght" 600; letter-spacing: .18em; text-transform: uppercase; font-size: .625rem; color: var(--schwach); margin-bottom: .8rem; }
.weg.gut .marke-weg { color: var(--amber); }

/* ---------- Glasarten ---------- */

.glasarten { border-top: 1px solid var(--kante); }
.glasarten details { border-bottom: 1px solid var(--kante); }
.glasarten summary {
  cursor: pointer; list-style: none; padding: 1.15rem 0;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.25rem; align-items: center;
  font-size: clamp(1.15rem, 2.2vw, 1.8rem);
  font-variation-settings: "wdth" 112, "wght" 700; letter-spacing: -.03em; text-transform: uppercase;
}
.glasarten summary::-webkit-details-marker { display: none; }
.glasarten summary .plus { font-variation-settings: "wdth" 68, "wght" 600; letter-spacing: .16em; font-size: .625rem; color: var(--schwach); }
.glasarten details[open] summary { padding-bottom: .6rem; }
.glasarten .inhalt { padding-bottom: 1.4rem; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.5rem; }
.glasarten .inhalt p { color: var(--schwach); font-size: .9375rem; }
.glasarten dl { font-size: .6875rem; color: var(--schwach); font-variation-settings: "wdth" 78, "wght" 500; letter-spacing: .06em; align-self: start; }
.glasarten dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .38rem 0; border-bottom: 1px solid var(--kante); }
.glasarten dl dt { text-transform: uppercase; letter-spacing: .14em; }
.glasarten dl dd { color: var(--text); font-variation-settings: "wdth" 78, "wght" 700; }
@media (max-width: 720px) { .glasarten .inhalt { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */

.kontakt { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; border-top: 1px solid var(--kante); }
.kontakt > div { padding: 1.6rem 1.5rem 1.8rem 0; border-bottom: 1px solid var(--kante); }
.kontakt > div + div { border-left: 1px solid var(--kante); padding-left: 1.5rem; }
.kontakt h3 { font-variation-settings: "wdth" 68, "wght" 600; letter-spacing: .18em; text-transform: uppercase; font-size: .625rem; color: var(--schwach); margin-bottom: .9rem; }
.kontakt address, .kontakt p { font-style: normal; color: var(--schwach); font-size: .9375rem; }
.kontakt a.gross-ruf { font-size: clamp(1.2rem, 2vw, 1.6rem); font-variation-settings: "wdth" 112, "wght" 700; letter-spacing: -.03em; text-decoration: none; color: var(--text); }
.zeiten { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1.1rem; color: var(--schwach); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.zeiten dt { color: var(--text); }
@media (max-width: 700px) { .kontakt > div + div { border-left: 0; padding-left: 0; } }

/* ---------- Fuss ---------- */

/* Verzeichnis der Unterseiten, ueber der Schlusszeile */
.fuss-navi {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.75rem 2.5rem; padding-bottom: 2.25rem; margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--kante);
}
.fuss-navi h2 {
  font-variation-settings: "wdth" 68, "wght" 600; letter-spacing: .18em;
  text-transform: uppercase; font-size: .625rem; color: var(--schwach);
  margin-bottom: .9rem;
}
.fuss-navi ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
/* Doppelte Klasse mit Absicht: Die allgemeine Regel ".fuss a" weiter
   unten setzt Versalien in 10 Pixel - richtig fuer die Schlusszeile,
   unlesbar fuer eine Navigationsliste. Ohne den hoeheren Vorrang
   gewaenne sie, weil sie spaeter steht. */
.fuss .fuss-navi a {
  font-variation-settings: "wdth" 100, "wght" 500; letter-spacing: 0;
  text-transform: none; font-size: .875rem; color: var(--text);
  text-decoration: none; opacity: .78; transition: opacity .16s ease;
}
.fuss .fuss-navi a:hover { opacity: 1; text-decoration: underline; text-underline-offset: .18em; }

.fuss { padding-block: 2.4rem 2.1rem; }
.fuss .bahn { display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; }
.fuss, .fuss a { font-variation-settings: "wdth" 68, "wght" 600; letter-spacing: .16em; text-transform: uppercase; font-size: .625rem; color: var(--schwach); }
.fuss a { text-decoration: none; }
.fuss a:hover { color: var(--text); }

/* Urhebervermerk auf eigener Zeile - er soll die Kontaktangaben nicht
   auseinanderziehen. */
/* Als einzige Zeile der Fusszeile nicht versal: "1.wien webdesign" ist ein
   Eigenname und wird klein geschrieben. Gesperrte Versalien wuerden ihn
   veraendern. */
/* Der Link muss mitgenannt werden: .fuss a setzt uppercase direkt auf dem
   Anker, das schlaegt jede Vererbung vom Elternelement. */
.fuss-urheber, .fuss-urheber a {
  text-transform: none; letter-spacing: .01em;
  font-variation-settings: "wdth" 88, "wght" 500; font-size: .6875rem;
}
.fuss-urheber { flex-basis: 100%; margin-top: .5rem; opacity: .72; }
/* currentColor statt fester Farbe: die Fusszeile steht auf den Unterseiten
   auf Weiss, auf der Startseite auf Tiefschwarz. */
.fuss-urheber a { border-bottom: 1px solid; border-color: color-mix(in srgb, currentColor 45%, transparent); }
.fuss-urheber a:hover { color: var(--text); border-bottom-color: currentColor; }
.fuss-urheber .herz { color: var(--amber); font-style: normal; }
@media (min-width: 900px) { .fuss-urheber { flex-basis: auto; margin-top: 0; } }

/* ---------- Rechtsseiten ---------- */

.rechtsseite { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.rechtsseite .bahn { max-width: 820px; }
.rechtsseite h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); font-variation-settings: "wdth" 118, "wght" 700; letter-spacing: -.04em; text-transform: uppercase; line-height: .92; margin-bottom: 1.5rem; }
.rechtsseite h2 { font-variation-settings: "wdth" 68, "wght" 600; letter-spacing: .18em; text-transform: uppercase; font-size: .6875rem; color: var(--schwach); margin: 2rem 0 .5rem; }
.rechtsseite p, .rechtsseite li, .rechtsseite address { color: var(--schwach); font-style: normal; }
.rechtsseite ul { padding-left: 1.2rem; }
.rechtsseite li + li { margin-top: .3rem; }
.rechtsseite p + p { margin-top: .8rem; }
.meldung { border: 1px solid var(--kante); border-top: 3px solid transparent; border-image: var(--spektrum) 1; padding: 1rem 1.2rem; margin-bottom: 1.5rem; }
.meldung p { color: var(--text); }
.meldung ul { margin-top: .4rem; padding-left: 1.2rem; color: var(--schwach); font-size: .9rem; }
.kantenlink { display: inline-block; font-variation-settings: "wdth" 68, "wght" 700; letter-spacing: .16em; text-transform: uppercase; font-size: .6875rem; text-decoration: none; padding-bottom: .3rem; border-bottom: 2px solid var(--tief); transition: letter-spacing .2s; }
.kantenlink:hover { letter-spacing: .21em; }

/* ---------- Aufblende ---------- */

@media (prefers-reduced-motion: no-preference) {
  .blende { opacity: 0; transform: translateY(12px); transition: opacity .55s ease, transform .55s ease; }
  .blende.da { opacity: 1; transform: none; }
}

/* Beim Laden buendelt sich das gespaltene Licht */
@keyframes buendeln {
  from { text-shadow: -0.16em 0 rgba(34,211,238,.55), 0.16em 0 rgba(255,61,154,.46); }
  to   { text-shadow: -0.013em 0 rgba(34,211,238,.5), 0.013em 0 rgba(255,61,154,.42); }
}
@media (prefers-reduced-motion: no-preference) {
  .spaltung { animation: buendeln 1.7s cubic-bezier(.16,.84,.32,1) .15s both; }
}

/* ================= Verfeinerung ================= */

/* Prismatische Flaeche zurueckhaltender */
.aussage canvas { opacity: .55; }

/* Altbau: Karten gleich hoch, kein Leerlauf darunter */
.wege { align-items: stretch; }
.weg { display: flex; flex-direction: column; }
.weg p { margin-top: auto; }

/* Kopfzeile der Abschnitte etwas kompakter */
.kopfzeile { margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }

/* ---------- Mobil ---------- */

@media (max-width: 620px) {
  .auftakt { min-height: min(80vh, 620px); padding-block: 4rem 2.25rem; }
  .auftakt h1 { font-size: clamp(2.1rem, 11vw, 3.2rem); max-width: none; }
  .auftakt-ruf { gap: .6rem; }
  .ruf-haupt, .ruf-neben { flex: 1 1 100%; justify-content: center; }
  .spaltung { text-shadow: -0.02em 0 rgba(34,211,238,.5), 0.02em 0 rgba(255,61,154,.42); }
  .gross { font-size: 1.0625rem; max-width: none; }
  .leiste b { font-size: 1.5rem; }
  .kopfzeile h2 { font-size: clamp(1.6rem, 8vw, 2.2rem); }
  .aussage .satz { font-size: clamp(2rem, 11vw, 3rem); }
  .aussage { padding-block: 3rem; }
  .glasarten summary { font-size: 1.05rem; padding: .95rem 0; }
  .kontakt > div { padding-right: 0; }
  .kopf nav { gap: .3rem .7rem; }
  .kopf nav a { font-size: .625rem; letter-spacing: .12em; }
}

/* Auf kleinen Schirmen keine Aberrations-Animation – sie wirkt dort unruhig */
@media (max-width: 620px) and (prefers-reduced-motion: no-preference) {
  .spaltung { animation: none; }
}

/* ==================================================================
   Kundenstimmen
   ================================================================== */

/* Die Gesamtnote steht in der Kopfzeile rechts, wo sonst der Fliesstext
   sitzt - sie ist hier die Aussage. */
.wertung { display: grid; gap: .15rem; justify-items: start; }
.wertung-zahl {
  font-variation-settings: "wdth" 118, "wght" 700;
  font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: .9;
  letter-spacing: -.045em; font-variant-numeric: tabular-nums;
}
.wertung-zahl span {
  font-size: .3em; letter-spacing: .04em; color: var(--schwach);
  margin-left: .35rem; vertical-align: .55em;
}
.wertung-sterne { color: var(--amber); font-size: 1.05rem; letter-spacing: .12em; margin-top: .3rem; }
.wertung-quelle { font-size: .8125rem; color: var(--schwach); margin-top: .2rem; }
.wertung-quelle b { color: var(--text); font-variation-settings: "wdth" 100, "wght" 700; }

.stimmen {
  display: grid; gap: 0 clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
/* Die Spektrumskante oben - dasselbe Zeichen wie im Dreispalter der
   Aussage, damit beide Abschnitte zusammengehoeren. */
.stimme {
  margin: 0; padding: 1.2rem 0 1.5rem;
  border-top: 2px solid transparent; border-image: var(--spektrum) 1;
  display: flex; flex-direction: column;
}
.stimme-sterne { color: var(--amber); font-size: .9rem; letter-spacing: .1em; }
.stimme blockquote { margin: .7rem 0 0; }
.stimme blockquote p {
  color: var(--text); font-size: 1.0625rem; line-height: 1.55;
  font-variation-settings: "wdth" 100, "wght" 500;
}
.stimme blockquote p::before { content: "\201E"; }
.stimme blockquote p::after { content: "\201C"; }
.stimme figcaption {
  margin-top: auto; padding-top: 1.1rem;
  font-variation-settings: "wdth" 68, "wght" 700;
  letter-spacing: .16em; text-transform: uppercase; font-size: .6875rem;
}
.stimme figcaption span {
  display: block; margin-top: .25rem;
  font-variation-settings: "wdth" 68, "wght" 500;
  color: var(--schwach); letter-spacing: .14em;
}
.stimmen-hinweis {
  margin-top: 2rem; color: var(--schwach);
  font-size: .8125rem; line-height: 1.6; max-width: 68ch;
}

@media (max-width: 820px) { .wertung { justify-items: start; margin-top: 1.25rem; } }

/* ==================================================================
   Karte: laedt erst auf Klick
   ================================================================== */

.karte { margin-top: clamp(2rem, 4vw, 3rem); border: 1px solid var(--kante); position: relative; }
.karte::before { content: ""; position: absolute; inset: -1px -1px auto -1px; height: 3px; background: var(--spektrum); z-index: 2; }

.karte-platzhalter {
  position: relative; overflow: hidden; background: var(--dunst);
  min-height: clamp(300px, 38vw, 440px);
  display: grid; place-items: center; padding: clamp(1.5rem, 4vw, 3rem);
}
/* Andeutung eines Stadtplans, rein dekorativ - kein Kartenausschnitt, der
   etwas Falsches behaupten wuerde. */
.karte-gitter {
  position: absolute; inset: 0; opacity: .5;
  background:
    repeating-linear-gradient(90deg, transparent 0 63px, var(--linie) 63px 64px),
    repeating-linear-gradient(0deg,  transparent 0 63px, var(--linie) 63px 64px),
    linear-gradient(118deg, transparent 0 46%, var(--linie) 46% 46.5%, transparent 46.5%);
}
.karte-inhalt { position: relative; text-align: center; max-width: 34rem; }
.karte-adresse {
  margin: .7rem 0 1.4rem; font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-variation-settings: "wdth" 112, "wght" 700;
  letter-spacing: -.03em; text-transform: uppercase; line-height: 1.15;
}
.karte-knoepfe { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.karte-laden, .karte-route {
  font-family: var(--schrift); font-size: .6875rem;
  font-variation-settings: "wdth" 68, "wght" 700; letter-spacing: .16em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  padding: .9rem 1.5rem; border-radius: 0; position: relative;
}
.karte-laden { background: var(--tief); color: var(--klar); border: 0; }
.karte-laden::after { content: ""; position: absolute; inset: auto 0 0 0; height: 2px; background: var(--spektrum); }
.karte-laden:hover { background: var(--tief-2); }
.karte-route { border: 1px solid var(--linie); color: var(--tief); background: var(--klar); }
.karte-route:hover { border-color: var(--tief); }
.karte-hinweis { margin-top: 1.1rem; font-size: .75rem; color: var(--rauch); line-height: 1.5; }

/* Nach dem Laden fuellt die Karte denselben Rahmen.
   Bewusst ohne Graustufenfilter: er haette auch den Standortmarker entfaerbt,
   und der ist der eigentliche Zweck der Karte. Die Fotos auf dieser Seite
   stehen ebenfalls in Farbe - die Karte ist Inhalt, kein Schmuck. */
.karte iframe {
  display: block; width: 100%; height: clamp(320px, 42vw, 480px); border: 0;
}
.karte-quelle {
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; justify-content: space-between;
  padding: .7rem 1rem; border-top: 1px solid var(--kante);
  font-size: .6875rem; color: var(--rauch);
}
.karte-quelle a { color: inherit; }


/* ==================================================================
   Anfrage: eigener Abschnitt statt Kaestchen im Auftakt
   ================================================================== */

.anfrage-block {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
@media (max-width: 940px) { .anfrage-block { grid-template-columns: 1fr; } }

.anfrage-seite h2 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); margin: .9rem 0 1.1rem; }
.anfrage-seite .fliess { max-width: 44ch; }

/* Was nach dem Absenden passiert - nimmt dem Formular die Unverbindlichkeit */
.ablauf { list-style: none; margin-top: 2rem; display: grid; gap: 0; }
.ablauf li {
  display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: .1rem 1rem;
  align-items: baseline; padding: .95rem 0; border-top: 1px solid var(--kante);
}
.ablauf li:last-child { border-bottom: 1px solid var(--kante); }
.ablauf .schritt {
  font-variation-settings: "wdth" 68, "wght" 600; letter-spacing: .16em;
  font-size: .6875rem; color: var(--schwach); font-variant-numeric: tabular-nums;
}
.ablauf b { font-variation-settings: "wdth" 100, "wght" 700; font-size: 1rem; }
.ablauf p { grid-column: 2; color: var(--schwach); font-size: .875rem; margin-top: .15rem; }

.anfrage-direkt { margin-top: 2rem; display: grid; gap: .35rem; }
.anfrage-direkt .daten { margin-bottom: .3rem; }
.anfrage-direkt a { text-decoration: none; }
.anfrage-direkt .ruf {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-variation-settings: "wdth" 112, "wght" 700; letter-spacing: -.035em;
}
.anfrage-direkt .ruf:hover { text-decoration: underline; text-underline-offset: .2em; }
.anfrage-direkt .zeit { color: var(--schwach); font-size: .8125rem; }

/* Formularkarte */
.anfrage { border: 1px solid var(--kante); padding: clamp(1.5rem, 3vw, 2.5rem); position: relative; background: var(--klar); }
.anfrage::before { content: ""; position: absolute; inset: -1px -1px auto -1px; height: 3px; background: var(--spektrum); }
.anfrage h3 {
  font-size: 1.45rem; font-variation-settings: "wdth" 112, "wght" 700;
  letter-spacing: -.03em; text-transform: uppercase; margin-bottom: .3rem;
}
.anfrage .hinw { color: var(--rauch); font-size: .875rem; margin-bottom: 1.5rem; }

.felder { display: grid; gap: 1.05rem; }
.feld-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }
@media (max-width: 560px) { .feld-paar { grid-template-columns: 1fr; } }

.feld { display: grid; gap: .25rem; }
.feld label { font-variation-settings: "wdth" 68, "wght" 600; letter-spacing: .16em; text-transform: uppercase; font-size: .625rem; color: var(--rauch); }
.feld label .opt { color: #A7AEB6; letter-spacing: .1em; }
.feld input, .feld textarea, .feld select {
  font-family: var(--schrift); font-size: .95rem; color: var(--tief);
  background: transparent; border: 0; border-bottom: 1px solid var(--linie);
  padding: .45rem 0; border-radius: 0; width: 100%;
}
.feld select {
  appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--rauch) 50%), linear-gradient(135deg, var(--rauch) 50%, transparent 50%);
  background-position: right .6rem center, right .25rem center;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
  padding-right: 1.5rem;
}
.feld textarea { resize: vertical; min-height: 5.5rem; line-height: 1.5; }
.feld input:focus, .feld textarea:focus, .feld select:focus {
  outline: none; border-bottom: 2px solid transparent;
  border-image: var(--spektrum) 1; padding-bottom: calc(.45rem - 1px);
}
.feld input::placeholder, .feld textarea::placeholder { color: #B3BAC2; }

/* ==================================================================
   Antippflaechen
   ==================================================================
   Etliche Zeilen sind nur 13 bis 21 px hoch - fuer die Maus genug, fuer
   den Finger nicht. Massgeblich ist nicht die Schirmbreite, sondern das
   Zeigergeraet: ein Tablet mit 768 px wird genauso angetippt wie ein
   Handy mit 360. Deshalb (pointer: coarse) statt eines Breakpoints.

   Der Block steht am Ende der Datei, damit er bei gleicher Spezifitaet
   die Grundwerte ueberschreibt. */

@media (pointer: coarse) {
  .kopf nav a { padding-block: .8rem; }
  .kopf .anruf { padding-bottom: .8rem; }

  .fuss .bahn { gap: .1rem 2rem; }
  .fuss a { display: inline-block; padding-block: .55rem; }

  /* Rufnummer und E-Mail im Kontaktblock sind eigenstaendige Ziele, keine
     Links im Fliesstext. */
  .kontakt a.gross-ruf, .kontakt p a { display: inline-block; padding-block: .45rem; }
  .kantenlink { padding-top: .4rem; padding-bottom: .5rem; }

  .feld input, .feld select { padding-block: .72rem; }
  .feld input:focus, .feld select:focus { padding-bottom: calc(.72rem - 1px); }
}

.honigtopf { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.senden {
  justify-self: start; font-family: var(--schrift);
  font-variation-settings: "wdth" 68, "wght" 700; letter-spacing: .16em;
  text-transform: uppercase; font-size: .6875rem;
  background: var(--tief); color: var(--klar); border: 0; cursor: pointer;
  padding: 1rem 1.9rem; border-radius: 0; position: relative;
  transition: background .18s;
}
.senden::after { content: ""; position: absolute; inset: auto 0 0 0; height: 2px; background: var(--spektrum); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.7,.3,1); }
.senden:hover::after { transform: scaleX(1); }
.senden:hover { background: var(--tief-2); }
.zustimmung { display: flex; gap: .55rem; align-items: flex-start; font-size: .78rem; color: var(--rauch); line-height: 1.45; }
.zustimmung input { margin-top: .22rem; accent-color: var(--tief); flex: none; }
.pflicht-hinw { font-size: .72rem; color: #A7AEB6; }

/* ==================================================================
   Schnellzugriff: Anruf und E-Mail, immer erreichbar
   ================================================================== */

.schnellhilfe {
  position: fixed; z-index: 60;
  right: clamp(.9rem, 2vw, 1.6rem);
  bottom: calc(clamp(.9rem, 2vw, 1.6rem) + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: .55rem; align-items: flex-end;
}
.schnellhilfe a {
  display: inline-flex; align-items: center; gap: .6rem; text-decoration: none;
  position: relative; box-shadow: 0 12px 34px -14px rgba(10, 12, 17, .65);
  transition: transform .2s cubic-bezier(.2,.7,.3,1), background .2s;
}
.schnellhilfe a:hover { transform: translateY(-2px); }
.schnellhilfe svg { flex: none; }
.sh-ruf {
  background: var(--tief); color: var(--klar);
  font-variation-settings: "wdth" 68, "wght" 700; letter-spacing: .16em;
  text-transform: uppercase; font-size: .6875rem;
  padding: .95rem 1.25rem;
}
/* Das eine Farbereignis - als Kante, nicht als Flaeche */
.sh-ruf::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--spektrum); }
.sh-ruf:hover { background: var(--tief-2); }
.sh-mail { background: var(--klar); color: var(--tief); border: 1px solid var(--linie); padding: .85rem; }
.sh-mail:hover { background: var(--dunst); }

/* Dritte Schaltflaeche der Schnellhilfe: Schadenmeldung. Gleiche Form
   wie .sh-mail, damit die Leiste ruhig bleibt - der Notruf soll das
   auffaellige Element bleiben, nicht das Formular. */
.sh-schaden { background: var(--klar); color: var(--tief); border: 1px solid var(--linie); padding: .85rem; }
.sh-schaden:hover { background: var(--dunst); }

/* Die breite Anruf-Pille legt sich auf schmalen Schirmen ueber den
   Fliesstext - auf den Leistungsseiten deckt sie ganze Zeilen zu.
   Ab hier bleibt nur noch das Hoerersymbol stehen. Frueher lag die
   Grenze bei 480px; das reichte nur, solange es keine langen Texte
   gab. */
@media (max-width: 820px) {
  .sh-ruf .beschriftung { display: none; }
  .sh-ruf { padding: .85rem; }
}
@media print { .schnellhilfe { display: none; } }

/* Vollbreite-Baender */
.band { position: relative; margin: 0; overflow: hidden; background: var(--dunst); }
.band img { width: 100%; aspect-ratio: 20/9; object-fit: cover; }
.band figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .9rem var(--rand); max-width: var(--breite); margin-inline: auto;
  font-variation-settings: "wdth" 68, "wght" 600; letter-spacing: .16em;
  text-transform: uppercase; font-size: .625rem; color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,.55);
}
@media (max-width: 700px) { .band img { aspect-ratio: 3/2; } }

/* ==================================================================
   Rueckmeldung des Anfrageformulars
   ================================================================== */

/* Nach dem Absenden kommt der Besucher mit einem Vermerk in der Adresse
   auf die Seite zurueck - die Meldung steht dann ueber dem Formular. */
.anfrage-meldung {
  margin-bottom: 1.4rem; padding: .9rem 1.1rem;
  font-size: .9rem; line-height: 1.55;
  border-left: 3px solid transparent;
}
.anfrage-meldung b { display: block; margin-bottom: .2rem; font-variation-settings: "wdth" 100, "wght" 700; }
.anfrage-ok { background: #EAF7F4; border-left-color: #1FA88F; color: #14503F; }
.anfrage-ok a { color: inherit; }
.anfrage-fehler { background: #FDECE6; border-left-color: #C43B12; color: #7E2E0E; }
.anfrage-fehler a { color: inherit; }

/* ---------- Rechtsseiten im WordPress-Editor ---------- */

.rechtsseite { padding-block: clamp(3rem, 7vw, 5.5rem); }
.rechtsseite .bahn { max-width: 820px; }
.rechtsseite h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); margin: .9rem 0 1.75rem; }
.rechtsseite .entry > * + * { margin-top: 1rem; }
.rechtsseite .entry h2 {
  font-variation-settings: "wdth" 68, "wght" 600; letter-spacing: .18em;
  text-transform: uppercase; font-size: .6875rem; color: var(--schwach);
  margin-top: 2.25rem;
}
.rechtsseite .entry h3 {
  font-variation-settings: "wdth" 112, "wght" 700; letter-spacing: -.02em;
  text-transform: uppercase; font-size: 1.15rem; margin-top: 1.75rem;
}
.rechtsseite .entry p,
.rechtsseite .entry li { color: var(--schwach); }
.rechtsseite .entry ul, .rechtsseite .entry ol { padding-left: 1.2rem; }
.rechtsseite .entry li + li { margin-top: .3rem; }
.rechtsseite .entry a { color: var(--text); }

/* ==================================================================
   Leistungsseiten — Kastenfenster, Vakuumglas und die uebrigen sechs
   ==================================================================
   Diese Seiten tragen lange Fachtexte mit Behoerdenzitaten. Anders als
   die Startseite leben sie nicht von Bildern, sondern von Lesbarkeit:
   schmale Spalte, klare Hierarchie, und Zitate, die sich optisch vom
   eigenen Text abheben - denn was die MA 18 sagt, ist etwas anderes
   als das, was wir sagen. Der Unterschied muss sichtbar sein. */

/* ---------- Auftakt ohne Foto ---------- */
.l-auftakt {
  background: var(--tief); color: var(--klar);
  --grund: var(--tief); --text: var(--klar);
  --schwach: rgba(255,255,255,.68); --kante: rgba(255,255,255,.2);
  padding-block: clamp(2.75rem, 7vw, 5rem);
  position: relative;
}
.l-auftakt::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--spektrum); }
.l-auftakt h1 {
  font-size: clamp(2rem, 5.4vw, 3.9rem);
  font-variation-settings: "wdth" 118, "wght" 700;
  letter-spacing: -.04em; line-height: .95; text-transform: uppercase;
  margin: .9rem 0 0; max-width: 20ch;
}
.l-auftakt .anriss { margin-top: 1.3rem; max-width: 52ch; color: rgba(255,255,255,.76); font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.55; }

/* ---------- Brotkrumen ---------- */
.krumen { font-variation-settings: "wdth" 68, "wght" 600; letter-spacing: .16em; text-transform: uppercase; font-size: .625rem; }
.krumen a { color: rgba(255,255,255,.62); text-decoration: none; }
.krumen a:hover { color: var(--klar); }
.krumen span { color: rgba(255,255,255,.38); padding-inline: .45rem; }

/* ---------- Fliesstext ---------- */
.l-text { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.l-text .bahn { max-width: calc(46rem + 2 * var(--rand)); }
.l-text > .bahn > * + * { margin-top: 1.05rem; }
.l-text p, .l-text li { color: var(--schwach); line-height: 1.65; }
.l-text ul, .l-text ol { padding-left: 1.15rem; }
.l-text li + li { margin-top: .45rem; }
.l-text a { color: var(--text); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; text-decoration-color: var(--kante); }
.l-text a:hover { text-decoration-color: currentColor; }
.l-text strong { color: var(--text); font-variation-settings: "wdth" 100, "wght" 700; }

.l-text h2 {
  font-size: clamp(1.4rem, 2.9vw, 2.05rem);
  font-variation-settings: "wdth" 112, "wght" 700;
  letter-spacing: -.03em; line-height: 1.08; text-transform: uppercase;
  margin-top: clamp(2.5rem, 5vw, 3.75rem); padding-top: 1.4rem;
  border-top: 1px solid var(--kante); color: var(--text);
}
.l-text h3 {
  font-variation-settings: "wdth" 100, "wght" 700; font-size: 1.0625rem;
  color: var(--text); margin-top: 1.9rem;
}

/* ---------- Behoerdenzitat ----------
   Bewusst anders gesetzt als eigener Text: eingerueckt, mit Farbkante
   und Herkunftszeile. Wer die Seite ueberfliegt, soll auf einen Blick
   sehen, was Behauptung und was Beleg ist. */
.beleg { margin-top: 1.5rem; padding: 0 0 0 clamp(1rem, 2.5vw, 1.6rem); border-left: 3px solid transparent; border-image: var(--spektrum) 1; }
.beleg p { color: var(--text); font-size: 1.0125rem; line-height: 1.55; font-variation-settings: "wdth" 100, "wght" 500; }
.beleg p + p { margin-top: .7rem; }
.beleg cite {
  display: block; margin-top: .7rem; font-style: normal;
  font-variation-settings: "wdth" 68, "wght" 600; letter-spacing: .13em;
  text-transform: uppercase; font-size: .625rem; color: var(--schwach);
}
.beleg cite a { color: inherit; text-decoration-color: var(--kante); }

/* ---------- Zahlentafel ---------- */
.l-tabelle { margin-top: 1.6rem; overflow-x: auto; }
.l-tabelle table { width: 100%; border-collapse: collapse; font-size: .875rem; min-width: 30rem; }
.l-tabelle th, .l-tabelle td { text-align: left; padding: .7rem .8rem .7rem 0; border-bottom: 1px solid var(--kante); vertical-align: baseline; }
.l-tabelle thead th {
  font-variation-settings: "wdth" 68, "wght" 600; letter-spacing: .14em;
  text-transform: uppercase; font-size: .5875rem; color: var(--schwach);
  border-bottom-color: var(--text);
}
.l-tabelle td { color: var(--schwach); }
.l-tabelle .wert { color: var(--text); font-variation-settings: "wdth" 78, "wght" 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.l-tabelle caption { caption-side: bottom; margin-top: .7rem; text-align: left; font-size: .75rem; color: var(--schwach); }

/* ---------- Merksatz ---------- */
.merksatz {
  margin-top: 1.6rem; padding: 1.15rem 1.3rem;
  background: var(--dunst); border-top: 3px solid transparent; border-image: var(--spektrum) 1;
}
.merksatz p { color: var(--text); font-size: .9375rem; }
.merksatz p + p { margin-top: .55rem; }
.merksatz .marke-merk {
  display: block; margin-bottom: .55rem;
  font-variation-settings: "wdth" 68, "wght" 700; letter-spacing: .18em;
  text-transform: uppercase; font-size: .625rem; color: var(--schwach);
}

/* ---------- Ablauf ---------- */
.ablauf { list-style: none; padding-left: 0; counter-reset: schritt; margin-top: 1.5rem; }
.ablauf li { counter-increment: schritt; padding-left: 2.9rem; position: relative; border-top: 1px solid var(--kante); padding-top: .9rem; padding-bottom: .3rem; }
.ablauf li::before {
  content: counter(schritt, decimal-leading-zero);
  position: absolute; left: 0; top: .85rem;
  font-variation-settings: "wdth" 68, "wght" 700; letter-spacing: .1em;
  font-size: .75rem; color: var(--schwach); font-variant-numeric: tabular-nums;
}
.ablauf li b { display: block; color: var(--text); font-variation-settings: "wdth" 100, "wght" 700; margin-bottom: .2rem; }

/* ---------- Fragen ---------- */
.l-fragen { border-top: 1px solid var(--kante); margin-top: 1.5rem; }
.l-fragen details { border-bottom: 1px solid var(--kante); }
.l-fragen summary {
  cursor: pointer; list-style: none; padding: 1.05rem 0;
  display: flex; justify-content: space-between; gap: 1.5rem; align-items: baseline;
  font-variation-settings: "wdth" 100, "wght" 700; color: var(--text);
}
.l-fragen summary::-webkit-details-marker { display: none; }
.l-fragen summary::after { content: "+"; color: var(--schwach); font-size: 1.1rem; line-height: 1; }
.l-fragen details[open] summary::after { content: "\2013"; }
.l-fragen details > p { padding-bottom: 1.15rem; margin-top: -.2rem; }
.l-fragen details > p + p { margin-top: .6rem; }

/* ---------- Quellen ---------- */
.quellen { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.3rem; border-top: 1px solid var(--kante); }
.quellen h2 {
  font-variation-settings: "wdth" 68, "wght" 600; letter-spacing: .18em;
  text-transform: uppercase; font-size: .625rem; color: var(--schwach);
  margin: 0 0 .7rem; border: 0; padding: 0;
}
.quellen li { font-size: .78rem; line-height: 1.6; color: var(--schwach); }
.quellen ul { list-style: none; padding-left: 0; }
.quellen li { padding: .3rem 0; border-bottom: 1px solid var(--kante); }
.quellen li + li { margin-top: 0; }

/* ---------- Weiterfuehrende Seiten ---------- */
.weiterlesen { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.weiterlesen a {
  border: 1px solid var(--kante); padding: 1.15rem 1.3rem 1.3rem;
  text-decoration: none; display: block; position: relative;
  transition: border-color .18s ease, transform .18s ease;
}
.weiterlesen a::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--spektrum); opacity: 0; transition: opacity .18s ease; }
.weiterlesen a:hover { border-color: var(--text); transform: translateY(-2px); }
.weiterlesen a:hover::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .weiterlesen a { transition: none; } .weiterlesen a:hover { transform: none; } }
.weiterlesen b { display: block; color: var(--text); font-variation-settings: "wdth" 100, "wght" 700; margin-bottom: .35rem; }
.weiterlesen span { color: var(--schwach); font-size: .875rem; line-height: 1.5; display: block; }

/* ---------- Handlungsband ---------- */
.l-band { background: var(--tief); color: var(--klar); padding-block: clamp(2.5rem, 6vw, 4rem); position: relative; }
.l-band::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--spektrum); }
.l-band .bahn { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.75rem 3rem; align-items: center; }
.l-band h2 { font-size: clamp(1.5rem, 3.4vw, 2.4rem); font-variation-settings: "wdth" 118, "wght" 700; letter-spacing: -.04em; line-height: 1; text-transform: uppercase; margin: .8rem 0 0; }
.l-band p { color: rgba(255,255,255,.7); margin-top: .8rem; max-width: 46ch; font-size: .9375rem; }
.l-band .daten { color: rgba(255,255,255,.72); }
.l-band .knoepfe { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 820px) { .l-band .bahn { grid-template-columns: 1fr; } }

@media (max-width: 620px) {
  .l-tabelle table { min-width: 24rem; font-size: .8125rem; }
  .ablauf li { padding-left: 2.4rem; }
}


/* ==================================================================
   Schadenmeldung Glasbruch
   ==================================================================
   Baut auf .felder und .feld auf, die es fuer die Anfrage schon gab.
   Neu ist nur, was ein langes Formular braucht: Feldgruppen mit
   Beschriftung, der Erklaerungskasten und der Verweis aufs PDF.

   fieldset und legend sind hier nicht Zierrat. Ein Screenreader nennt
   damit vor jedem Feld die Gruppe, zu der es gehoert - bei zwoelf
   Feldern ueber vier Themen ist das der Unterschied zwischen
   benutzbar und nicht. */

.schadenform fieldset {
  border: 0; border-top: 1px solid var(--linie);
  padding: 1.1rem 0 0; margin: 0;
}
.schadenform legend {
  font-variation-settings: "wdth" 68, "wght" 600;
  letter-spacing: .18em; text-transform: uppercase; font-size: .6875rem;
  color: var(--schwach); padding-inline-end: .7rem;
}
.schadenform fieldset > * + * { margin-top: 1.05rem; }

.sf-firma {
  background: var(--dunst); border-left: 2px solid var(--cyan);
  padding: .85rem 1rem; font-size: .9rem; line-height: 1.55;
}
.sf-text { font-size: .875rem; line-height: 1.65; color: var(--rauch); max-width: 72ch; }

.feld-haken label { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; line-height: 1.5; }
.feld-haken input { width: auto; margin-top: .3rem; flex: none; }

.feld-abschluss { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.feld-hinweis { font-size: .85rem; color: var(--schwach); line-height: 1.6; }

.schaden-pdf {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem;
  border: 1px solid var(--linie); padding: 1rem 1.15rem; margin: 1.6rem 0 2rem;
  font-size: .95rem;
}
.schaden-pdf small { flex: 1 0 100%; font-size: .82rem; color: var(--schwach); }

.hinweis-ok, .hinweis-fehler {
  padding: .9rem 1.1rem; margin: 1.4rem 0; font-size: .93rem; line-height: 1.55;
  border-left: 3px solid;
}
.hinweis-ok { background: #EAF7EF; border-color: #1A9E56; color: #12633A; }
.hinweis-fehler { background: #FDECEB; border-color: #C0392B; color: #96201A; }

@media (max-width: 640px) {
  .schadenform .feld-paar { grid-template-columns: 1fr; }
}

/* Auf Papier bleibt das Formular allein stehen. */
@media print {
  .kopf, .fuss, .sh-ruf, .schaden-pdf, .feld-abschluss { display: none !important; }
  .schadenform .feld input, .schadenform .feld textarea { border-color: #999; }
}


/* Zeichenflaeche der Schadenmeldung.
   Innenmass fest 900x360, per CSS skaliert - die Umrechnung der
   Zeigerposition macht das Skript. touch-action:none ist noetig, sonst
   scrollt die Seite, wenn mit dem Finger gezeichnet wird. */
.feld-skizze canvas {
  width: 100%; height: auto; display: block;
  background: #fff; touch-action: none; cursor: crosshair;
  border: 1px solid var(--linie); margin-top: .5rem;
}
.feld-hilfe { font-size: .85rem; color: var(--schwach); line-height: 1.55; margin: .3rem 0 0; }
.feld-skizze-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: .7rem; }
.feld-skizze-fuss .feld-hilfe { flex: 1 1 15rem; margin: 0; }

@media print { .feld-skizze-fuss { display: none; } }


/* Anfrageformular auf den Leistungsseiten.
   Nutzt .felder und .feld wie die Startseite, damit beide Formulare
   gleich aussehen und sich gleich bedienen lassen. */
.l-anfrage { padding-block: clamp(3rem, 7vw, 5rem); border-top: 1px solid var(--linie); }
.l-anfrage .bahn { max-width: 780px; }
.l-anfrage h2 { margin-top: .3rem; }
.l-anfrage .anriss { margin-bottom: 2rem; max-width: 62ch; }
