/* WiesnerStudios Version 8 · „Live-Bau“
   Die Seite wird vor den Augen der Besucher gebaut: Zeiger ziehen Rahmen auf, ein Cursor tippt die Texte.
   Zwei Schriften (Archivo, JetBrains Mono), ein Farbklang (Papier, Tinte, Auswahlblau). */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-teil.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --papier: #F3F2EE;
  --weiss: #FFFFFF;
  --tinte: #0D0D0E;
  --text-2: #4A4A50;
  --linie: #D9D6CE;
  --blau: #2350FF;
  --blau-hauch: rgba(35, 80, 255, .08);
  --schwarz: #0B0B0C;

  --schrift: "Archivo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --rand: clamp(16px, 4vw, 40px);
  --breite: 1180px;
  --leiste-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: calc(var(--leiste-h) + 12px); }
body {
  position: relative; margin: 0; overflow-x: clip;
  font-family: var(--schrift); font-size: 19px; line-height: 1.6; font-weight: 420; font-stretch: 100%;
  color: var(--tinte);
  background-color: var(--papier);
  /* Zeichenfläche: feines Punktraster wie im Gestaltungsprogramm */
  background-image: radial-gradient(circle at 1px 1px, rgba(13, 13, 14, .085) 1.1px, transparent 1.5px);
  background-size: 24px 24px;
  font-synthesis: none; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
a[href^="tel:"], a[href^="mailto:"] { white-space: nowrap; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--blau); color: #fff; }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nur-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
.wrap { width: min(var(--breite), 100% - 2 * var(--rand)); margin-inline: auto; }

.sprunglink { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--tinte); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 650; }
.sprunglink:focus { top: 12px; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 1.4em; border-radius: 999px;
  font-family: var(--schrift); font-size: 15px; font-weight: 760; font-stretch: 112%; letter-spacing: .05em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 2px solid var(--tinte);
  transition: background-color .2s, color .2s, transform .15s, box-shadow .2s;
}
.knopf-voll { background: var(--tinte); color: var(--papier); }
.knopf-voll:hover { background: var(--blau); border-color: var(--blau); color: #fff; }
.knopf-rand { background: transparent; color: var(--tinte); }
.knopf-rand:hover { background: var(--tinte); color: var(--papier); }
.knopf:active { transform: scale(.97); }
.knopf-gross { min-height: 62px; font-size: 16px; padding: 0 1.7em; }
.knopf-klein { min-height: 42px; font-size: 13px; padding: 0 1.1em; }

/* ---------- Kopfleiste ---------- */
.leiste {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--leiste-h);
  background: rgba(243, 242, 238, .97);
  border-bottom: 1px solid var(--linie);
  transform: translateY(-105%); transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.leiste.zeigen { transform: none; }
.leiste-innen { height: 100%; width: min(var(--breite), 100% - 2 * var(--rand)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.leiste-logo svg { height: 34px; width: auto; color: var(--tinte); }
.leiste-knoepfe { display: flex; gap: 8px; }
.leiste-bau { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.leiste-bau i { display: block; height: 100%; width: 100%; background: var(--blau); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s ease; }
.nur-schmal { display: none; }

/* ---------- Start ---------- */
.held {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 88px var(--rand) 96px; text-align: center;
}
.zeichenflaeche {
  position: absolute; left: var(--rand); top: 22px; margin: 0;
  font: 500 12px/1 var(--mono); color: var(--text-2); letter-spacing: .02em;
}
.zeichenflaeche span + span { margin-left: .6em; color: var(--blau); }
.buehne {
  position: relative; width: min(1200px, 100%);
  height: clamp(200px, 44vh, 470px);
  display: grid; place-items: center; grid-template-columns: minmax(0, 1fr);
}
.schlag {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 900; font-stretch: 125%; text-transform: uppercase; line-height: .92; letter-spacing: -.01em;
  pointer-events: none;
}
.schlag .zeile { display: block; white-space: nowrap; }
.schlag .wort { display: inline-block; }
.schlag .z { position: relative; }
/* Tippfehler liegt als eigene Ebene über dem noch unsichtbaren richtigen Buchstaben, nichts verrutscht */
.schlag .fehltipp { position: absolute; left: 0; top: 0; white-space: nowrap; }
/* Der fertige Satz fliegt klein in die Mitschrift */
.schlag.flug { z-index: 2; }

/* Mitschrift über der Bühne: alles Getippte zum Nachlesen */
.mitschrift {
  position: relative; z-index: 3; max-width: 46em; margin: 0 auto clamp(12px, 2.4vh, 26px);
  font-size: clamp(14px, 1.35vw, 17.5px); line-height: 1.5; font-weight: 800; font-stretch: 112%;
  text-transform: uppercase; letter-spacing: .045em; color: var(--text-2); text-wrap: balance;
}
.mitschrift > span { white-space: nowrap; } /* umbrochen wird nur zwischen den Sätzen */
.mitschrift b { font-weight: inherit; }
.js:not(.ruhig) .mitschrift > span:not(.da) { visibility: hidden; }
.mitschrift > span.frisch { animation: frisch 1.4s ease-out; }
@keyframes frisch { 0%, 25% { color: var(--blau); } 100% { color: var(--text-2); } }

.logo-gross { position: relative; width: min(820px, 100%); }
.logo-gross svg { width: 100%; height: auto; color: var(--tinte); overflow: visible; }

.held-aktion {
  margin-top: clamp(28px, 5vh, 52px);
  display: flex; align-items: center; justify-content: center; flex-wrap: nowrap;
}
.tel-huelle { display: grid; grid-template-columns: 1fr; transition: grid-template-columns .55s cubic-bezier(.2, .8, .2, 1); }
.tel-innen { min-width: 0; min-height: 0; overflow: hidden; padding-left: 12px; }
.tel-huelle.zu { grid-template-columns: 0fr; }
/* Nach dem Herausziehen darf der Knopf wieder über den Rand (Fokusrahmen, Druck-Effekt) */
.tel-huelle.gebaut .tel-innen { animation: frei 0s .6s forwards; }
html:not(.js) .tel-innen, .ruhig .tel-innen { overflow: visible; }
@keyframes frei { to { overflow: visible; } }
.tel-huelle.zu .tel-innen { padding-left: 0; }

/* Anfrage-Knopf als Wortmarke „WIESNERSTUDIOS“, bevor er zum Knopf wird */
.knopf-anfrage { transition: background-color .45s, color .45s, border-color .45s, padding .45s, font-size .45s, min-height .45s, letter-spacing .45s, transform .15s; }
.knopf-anfrage[data-zustand="wortmarke"] {
  background: transparent; border-color: transparent; color: var(--tinte);
  font-size: clamp(22px, 3.6vw, 42px); font-weight: 900; font-stretch: 125%; letter-spacing: .04em; padding: 0; min-height: 62px;
}
.knopf-anfrage .knopf-pfeil { transition: opacity .3s, width .3s, margin .3s; }
.knopf-anfrage[data-zustand="wortmarke"] .knopf-pfeil { opacity: 0; width: 0; margin-left: -.6em; }
.knopf-anfrage[data-zustand="wortmarke"]:hover { background: transparent; color: var(--tinte); }
.knopf-anfrage[data-zustand="leer"] { visibility: hidden; }

.held-steuer { position: absolute; right: var(--rand); bottom: 22px; display: flex; gap: 8px; }
.steuer-knopf {
  font: 500 12px/1 var(--mono); letter-spacing: .02em; color: var(--text-2);
  background: transparent; border: 1px solid var(--linie); border-radius: 999px; padding: 9px 14px; cursor: pointer;
}
.steuer-knopf:hover { color: var(--tinte); border-color: var(--tinte); }

/* ---------- Abschnitte ---------- */
.abschnitt { padding-block: clamp(80px, 12vw, 150px); }
.kicker { margin: 0 0 14px; font: 500 13px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--blau); }
.titel {
  margin: 0 0 22px; font-size: clamp(32px, 5.4vw, 66px); line-height: 1; font-weight: 900; font-stretch: 125%;
  text-transform: uppercase; letter-spacing: -.01em; text-wrap: balance;
}
.gross { font-size: clamp(20px, 2vw, 23px); line-height: 1.55; }
p { margin: 0 0 1em; }
.klein { font-size: 16px; color: var(--text-2); }

.zweispaltig { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.vorstellung-text { max-width: 34em; }
.vorstellung-text p:not(.gross):not(.kicker) { color: var(--text-2); }

/* Bildrahmen: vor dem Platzieren leer mit Diagonalkreuz, wie ein Bildrahmen im Satzprogramm */
.bildrahmen { position: relative; margin: 0; aspect-ratio: 4 / 5; background: var(--weiss); border: 1px solid var(--linie); max-width: 440px; width: 100%; justify-self: center; }
.bildrahmen img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; }
.bildrahmen::before {
  content: ""; position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity .25s;
  background:
    linear-gradient(to top right, transparent calc(50% - .6px), var(--linie) 50%, transparent calc(50% + .6px)),
    linear-gradient(to bottom right, transparent calc(50% - .6px), var(--linie) 50%, transparent calc(50% + .6px));
}
.bildrahmen.leer::before { opacity: 1; }
.bildrahmen.leer img { opacity: 0; }
.bildrahmen.platziert img { animation: platzieren .55s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes platzieren { from { clip-path: inset(0 0 100% 0); filter: grayscale(1) contrast(.9); } 60% { filter: grayscale(.4); } to { clip-path: inset(0); filter: none; } }

/* Auszeichnungen: was Luca mitbringt, jede mit Siegel */
.auszeichnungen-abschnitt { padding-top: 0; }
.vorstellung { padding-bottom: clamp(56px, 8vw, 96px); }
.auszeichnungen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.auszeichnung { position: relative; display: flex; align-items: flex-start; gap: 18px; background: var(--weiss); border: 1px solid var(--linie); border-radius: 18px; padding: clamp(20px, 2.4vw, 28px); }
.auszeichnung h3 { margin: 0 0 6px; font-size: 20px; line-height: 1.25; font-weight: 800; font-stretch: 105%; hyphens: manual; }
.auszeichnung p { margin: 0; font-size: 16.5px; line-height: 1.5; color: var(--text-2); }
.auszeichnung > div { min-width: 0; }
.auszeichnung-gross { grid-column: span 2; background: var(--tinte); color: #fff; border-color: var(--tinte); align-items: center; }
.auszeichnung-gross h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 900; font-stretch: 125%; text-transform: uppercase; line-height: 1.05; margin-bottom: 10px; }
.auszeichnung-gross p { color: #CFCBC2; font-size: 18px; }
/* Siegel: Kreis mit gestricheltem Innenring wie ein Prägestempel */
.siegel { position: relative; flex: none; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; color: var(--blau); background: var(--blau-hauch); box-shadow: inset 0 0 0 2px var(--blau); }
.siegel::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1.5px dashed rgba(35, 80, 255, .55); }
.siegel svg { width: 30px; height: 30px; }
.siegel-voll { width: 96px; height: 96px; background: var(--blau); color: #fff; box-shadow: none; }
.siegel-voll::before { inset: 7px; border-color: rgba(255, 255, 255, .6); }
.siegel-voll svg { width: 44px; height: 44px; }
.siegel-zahl { flex-direction: column; gap: 0; line-height: 1; }
.siegel-zahl b { font-size: 30px; font-weight: 900; font-stretch: 125%; }
.siegel-zahl small { font: 600 9.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.js:not(.ruhig) [data-bau] [data-siegel]:not(.gebaut) { visibility: hidden; }
.js:not(.ruhig) [data-siegel].gebaut { animation: stempeln .45s cubic-bezier(.2, .9, .3, 1.35) both; }
@keyframes stempeln { 0% { transform: scale(1.8) rotate(-12deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; opacity: 1; } }

.mass .titel { margin-bottom: clamp(32px, 5vw, 56px); }
.karten { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.karte { position: relative; background: var(--weiss); border: 1px solid var(--linie); border-radius: 18px; padding: clamp(26px, 3vw, 36px); }
.karte-nr { display: inline-block; font: 600 14px/1 var(--mono); color: var(--blau); margin-bottom: 26px; }
.karte h3 { margin: 0 0 10px; font-size: 23px; line-height: 1.2; font-weight: 800; font-stretch: 112%; }
.karte p { margin: 0; color: var(--text-2); font-size: 18px; }
/* Media Day: Sucher-Ecken wie im Kamerasucher, beim Bau löst der „Auslöser“ einen Blitz aus */
.sucher { position: absolute; inset: 14px; pointer-events: none; }
.sucher i { position: absolute; width: 16px; height: 16px; border: 0 solid var(--blau); }
.sucher i:nth-child(1) { left: 0; top: 0; border-left-width: 2px; border-top-width: 2px; }
.sucher i:nth-child(2) { right: 0; top: 0; border-right-width: 2px; border-top-width: 2px; }
.sucher i:nth-child(3) { left: 0; bottom: 0; border-left-width: 2px; border-bottom-width: 2px; }
.sucher i:nth-child(4) { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px; }
.karte-media.blitz::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #fff; animation: blitz .6s ease-out both; pointer-events: none; }
@keyframes blitz { 0% { opacity: 0; } 8% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- Anfrage ---------- */
.zweispaltig-form { align-items: start; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.anfrage-text { position: sticky; top: calc(var(--leiste-h) + 32px); }
.anruf { position: relative; margin-top: 30px; display: inline-flex; flex-direction: column; gap: 10px; align-items: stretch; }
.anruf .klein { margin: 0; text-align: center; }
.formular { position: relative; background: var(--weiss); border: 1px solid var(--linie); border-radius: 22px; padding: clamp(22px, 3.4vw, 40px); }
.feld { margin-bottom: 18px; }
.feld-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.feld label { display: block; margin-bottom: 6px; font-size: 16px; font-weight: 650; }
.optional { font-weight: 420; color: var(--text-2); }
.feld input, .feld textarea {
  display: block; width: 100%; min-height: 54px; padding: 12px 14px; font-size: 18px;
  background: var(--papier); border: 1.5px solid #C9C5BB; border-radius: 12px;
  transition: border-color .15s, background-color .15s;
}
.feld textarea { resize: vertical; min-height: 104px; line-height: 1.5; }
/* Einfliegende Buchstaben: Ebene über dem Feld mit denselben Maßen; ohne Unterschneidung, damit jeder Buchstabe
   genau dort landet, wo der echte (unsichtbare) steht */
.feld input, .feld textarea, .flug-ebene { font-kerning: none; font-variant-ligatures: none; }
.eingabe-huelle { position: relative; display: block; }
.flug-ebene {
  position: absolute; inset: 0; display: flex; align-items: center; pointer-events: none; visibility: hidden;
  border-style: solid; border-color: transparent; color: var(--tinte); white-space: pre;
  clip-path: inset(-80px 2px -8px 2px);
}
.flug-ebene.mehrzeilig { display: block; white-space: pre-wrap; overflow-wrap: break-word; clip-path: inset(-80px 2px 2px 2px); }
.flug-zeile { display: block; flex: none; white-space: inherit; }
.eingabe-huelle.fliegt .flug-ebene { visibility: visible; }
.eingabe-huelle.fliegt input, .eingabe-huelle.fliegt textarea { color: transparent; caret-color: var(--tinte); }
.flug-ebene .neu { display: inline-block; white-space: pre; animation: einfliegen .45s cubic-bezier(.2, .9, .3, 1.15) both; animation-delay: calc(var(--v, 0) * 24ms); }
@keyframes einfliegen {
  0% { transform: translateY(-52px) rotate(-10deg) scale(1.2); opacity: 0; color: var(--blau); }
  45% { opacity: 1; }
  100% { transform: none; opacity: 1; color: var(--tinte); }
}
/* Erkennen, wenn der Browser ein Feld automatisch ausfüllt (dann zeigt sich der echte Text) */
.feld input:-webkit-autofill { animation: autofill-an .001s; }
.feld input:not(:-webkit-autofill) { animation: autofill-aus .001s; }
@keyframes autofill-an { from { opacity: 1; } to { opacity: 1; } }
@keyframes autofill-aus { from { opacity: 1; } to { opacity: 1; } }
.feld input:focus, .feld textarea:focus { outline: none; border-color: var(--blau); background: var(--weiss); box-shadow: 0 0 0 3px var(--blau-hauch); }
.feld input::placeholder, .feld textarea::placeholder { color: #77767C; }
.haekchen { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; margin: 4px 0 14px; font-size: 16px; line-height: 1.5; cursor: pointer; }
.haekchen input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--blau); }
.fehler { display: none; margin: 6px 0 0; font-size: 15px; font-weight: 600; color: #B3261E; }
.fehler.zeigen { display: block; }
.knopf-senden { width: 100%; margin-top: 10px; }
.form-status { margin: 14px 0 0; font-size: 16px; }
.form-status:empty { display: none; }
.sicher { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font: 500 13px/1.4 var(--mono); color: var(--text-2); }
.sicher .ic { color: var(--blau); width: 16px; height: 16px; }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.danke { text-align: left; }
.danke h3 { font-size: 30px; font-weight: 900; font-stretch: 125%; text-transform: uppercase; margin: 14px 0 10px; }
.danke-haken { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--blau); color: #fff; }
.danke-haken .ic { width: 28px; height: 28px; }

/* ---------- Fußzeile ---------- */
.fuss { background: var(--schwarz); color: #E9E7E1; padding: clamp(72px, 10vw, 120px) 0 36px; }
.ein-mensch { margin: 0 0 12px; font-size: clamp(30px, 5.4vw, 66px); line-height: 1; font-weight: 900; font-stretch: 125%; text-transform: uppercase; color: #fff; }
.ein-mensch-unter { font-size: clamp(19px, 2vw, 22px); color: #CFCBC2; max-width: 36em; }
.fuss-zeile { margin-top: clamp(48px, 7vw, 80px); padding-top: 28px; border-top: 1px solid #2A2A2E; display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; justify-content: space-between; }
.fuss-logo svg { height: 46px; width: auto; color: #fff; }
.fuss-kontakt { display: flex; flex-direction: column; gap: 6px; font-size: 17px; }
.fuss-kontakt a { text-decoration: none; }
.fuss-kontakt a:hover, .fuss-recht a:hover { color: #fff; text-decoration: underline; }
.fuss-recht { display: flex; gap: 20px; font-size: 16px; }
.fuss-recht a { text-decoration: none; color: #CFCBC2; }
.protokoll { margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font: 500 12.5px/1.5 var(--mono); color: #9B978F; }
.protokoll-titel { color: #CFCBC2; }
.protokoll [data-pruef]::before { content: "✓ "; color: #7C9BFF; }
.protokoll [data-pruef].nein::before { content: "· "; color: #9B978F; }

/* ---------- Rechtliche Seiten (Impressum, Datenschutz, AGB): ruhig, gut lesbar, ohne Animation ---------- */
.recht-seite .leiste { transform: none; }
.recht { padding: calc(var(--leiste-h) + clamp(36px, 6vw, 80px)) 0 clamp(64px, 9vw, 110px); }
.recht .wrap { width: min(780px, 100% - 2 * var(--rand)); }
.recht-ebene { margin: 0 0 18px; font: 500 12px/1 var(--mono); color: var(--text-2); letter-spacing: .02em; }
.recht-ebene span + span { margin-left: .6em; color: var(--blau); }
.recht h1 {
  margin: 0 0 14px; font-size: clamp(30px, 6.2vw, 64px); line-height: 1.02; font-weight: 900; font-stretch: 125%;
  text-transform: uppercase; letter-spacing: -.01em; overflow-wrap: break-word;
}
.recht h2 { margin: 2.1em 0 .55em; font-size: clamp(21px, 2.3vw, 25px); line-height: 1.25; font-weight: 800; font-stretch: 112%; }
.recht p, .recht li { font-size: 18px; line-height: 1.65; }
.recht ul { margin: 0 0 1em; padding-left: 1.25em; }
.recht li { margin-bottom: .4em; }
.recht li::marker { color: var(--blau); }
.recht strong { font-weight: 700; }
.recht a:not(.knopf) { color: var(--blau); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.recht a:not(.knopf):hover { text-decoration-thickness: 2px; }
.recht .stand { margin: 0 0 1.4em; font: 500 13.5px/1.5 var(--mono); color: var(--text-2); }
.recht h2 + .stand, .recht p + .stand:last-of-type { margin-top: 2.4em; }
.recht-zurueck { margin: clamp(40px, 6vw, 64px) 0 0; }
.recht-pfeil { transform: scaleX(-1); }
.fuss-schlicht { padding-top: clamp(40px, 6vw, 64px); }
.fuss-schlicht .fuss-zeile { margin-top: 0; padding-top: 0; border-top: 0; }
.fuss-recht a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* ================= Bau-Animation ================= */
/* Noch nicht gebaute Teile sind unsichtbar, nehmen aber schon ihren Platz ein (nichts springt). */
.js:not(.ruhig) [data-bau] [data-tippen]:not(.gebaut):not(.tippt),
.js:not(.ruhig) [data-bau] [data-rahmen]:not(.gebaut):not(.zieht) { visibility: hidden; }
.js:not(.ruhig) .held .logo-gross:not(.gebaut):not(.zieht) { visibility: hidden; }
.js:not(.ruhig) .held .tel-huelle:not(.gebaut) { grid-template-columns: 0fr; }
.js:not(.ruhig) .held .tel-huelle:not(.gebaut) .tel-innen { padding-left: 0; }
.js:not(.ruhig) .held .knopf-anfrage:not(.gebaut) { visibility: hidden; }
.js:not(.ruhig) .held .knopf-anfrage.tippt { visibility: visible; }
.js .held [data-nochmal][hidden], .js .held [data-ueberspringen][hidden] { display: none; }
html:not(.js) .held-steuer, .ruhig .held-steuer { display: none; }

.js:not(.ruhig) [data-bau] [data-auf]:not(.gebaut),
.js:not(.ruhig) [data-bau] [data-sicher]:not(.gebaut) { visibility: hidden; }
.js:not(.ruhig) [data-auf].gebaut, .js:not(.ruhig) [data-sicher].gebaut { animation: auftauchen .35s cubic-bezier(.2, .9, .3, 1.25) both; }
@keyframes auftauchen { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }

.tippt .z { visibility: hidden; }
.tippt .z.da { visibility: visible; }
/* Beim Aufziehen eigene Ebene: spart dem Grafikchip das Neuzeichnen (gemessen, ca. 15 % weniger) */
.zieht { will-change: transform; }

/* Ebene für Zeiger: liegt im Dokument, scrollt also ohne Nachziehen mit */
.zeiger-ebene { position: absolute; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; }
.zeiger { position: absolute; left: 0; top: 0; transition: opacity .35s; will-change: transform; }
.zeiger.weg { opacity: 0; }
/* Wie am Computer: beim Tippen verschwindet der Mauszeiger */
.zeiger.tippt { opacity: 0; transition-duration: .12s; }
.zeiger.weg .zeiger-innen, .zeiger.tippt .zeiger-innen { animation-play-state: paused; }
.zeiger-innen { position: relative; transform-origin: 0 0; transition: transform .12s; }
.zeiger.drueckt .zeiger-innen { transform: scale(.82); }
.zeiger svg { width: 22px; height: 26px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }
.zeiger path { fill: var(--blau); stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }
.zeiger-name {
  position: absolute; left: 16px; top: 21px; white-space: nowrap;
  font: 600 12px/1 var(--mono); color: #fff; background: var(--blau);
  padding: 5px 8px 5px; border-radius: 3px 10px 10px 10px;
  transition: opacity .25s;
}
.zeiger.links .zeiger-name { left: auto; right: calc(100% - 6px); border-radius: 10px 3px 10px 10px; }
.zeiger.ruht .zeiger-innen { animation: schweben 3.2s ease-in-out infinite; }
@keyframes schweben { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(3px, -4px); } }
.zeiger-welle { position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--blau); opacity: 0; }
.zeiger.klickt .zeiger-welle { animation: welle .45s ease-out; }
@keyframes welle { from { transform: scale(.3); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }

/* Ebene für Auswahlrahmen und Schreibmarken (scrollt mit dem Dokument) */
.bau-ebene { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 55; pointer-events: none; }
.auswahl { position: absolute; left: 0; top: 0; border: 1.5px solid var(--blau); background: var(--blau-hauch); transition: opacity .4s; }
.auswahl.ohne-flaeche { background: transparent; }
.auswahl.folgt { transition: transform .22s ease, width .22s ease, height .22s ease, opacity .4s; }
.auswahl.aus { opacity: 0; }
.auswahl b { position: absolute; width: 9px; height: 9px; background: #fff; border: 1.5px solid var(--blau); }
.auswahl b:nth-of-type(1) { left: -5px; top: -5px; }
.auswahl b:nth-of-type(2) { right: -5px; top: -5px; }
.auswahl b:nth-of-type(3) { left: -5px; bottom: -5px; }
.auswahl b:nth-of-type(4) { right: -5px; bottom: -5px; }
.auswahl-mass {
  position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%);
  font: 600 11.5px/1 var(--mono); color: #fff; background: var(--blau); padding: 4px 7px; border-radius: 4px; white-space: nowrap;
}
.marke { position: absolute; left: 0; top: 0; width: 2px; background: var(--blau); border-radius: 1px; animation: blinken 1.05s steps(1) infinite; }
.marke.tippt-gerade { animation: none; }
@keyframes blinken { 50% { opacity: 0; } }

/* Besucher können selbst einen Auswahlrahmen auf der Zeichenfläche ziehen */
.eigene-auswahl { position: absolute; left: 0; top: 0; border: 1.5px solid var(--blau); background: var(--blau-hauch); pointer-events: none; z-index: 54; transition: opacity .35s; }
.eigene-auswahl.aus { opacity: 0; }
.eigene-auswahl .auswahl-mass { top: calc(100% + 6px); }
body.zieht-selbst { user-select: none; -webkit-user-select: none; }

/* Mit der Maus über fertige Bauteile: Ebenenname wie im Gestaltungsprogramm */
@media (hover: hover) and (pointer: fine) {
  [data-ebene].gebaut:hover, .logo-gross.gebaut:hover { outline: 1.5px solid var(--blau); outline-offset: 6px; }
  [data-ebene].gebaut:hover::after, .logo-gross.gebaut:hover::after {
    content: attr(data-ebene); position: absolute; left: -7px; top: -32px; z-index: 3;
    font: 600 11.5px/1 var(--mono); color: #fff; background: var(--blau); padding: 5px 7px; border-radius: 4px; white-space: nowrap; pointer-events: none;
  }
  .karte-media.gebaut.blitz:hover::after { content: ""; }
  .formular.gebaut:hover { outline-color: rgba(35, 80, 255, .35); }
  .formular.gebaut:hover::after { display: none; }
  html:not(.js) [data-ebene]:hover::after, .ruhig [data-ebene]:hover::after { display: none; }
}

/* ---------- Breiten ---------- */
/* ================= Ruhigere Schrift (Luca, 20.11.2026) =================
   Keine Großbuchstaben, normale Breite. Start-Animation und Mitschrift einheitlich dünn,
   Überschriften durchgehend fett (Luca, 20.11.2026). Fette Einzelwörter gibt es nur auf der Auswahlseite.
   Die kleinen technischen Beschriftungen (Maße, Zeiger, Bauprotokoll) bleiben in JetBrains Mono. */
html .knopf { font-size: 16px; font-weight: 650; font-stretch: 100%; letter-spacing: 0; text-transform: none; }
html .knopf-klein { font-size: 14.5px; }
html .knopf-gross { font-size: 17px; }
html .schlag { font-weight: 300; font-stretch: 100%; text-transform: none; line-height: 1.04; letter-spacing: -.035em; }
html .mitschrift { font-weight: 300; font-stretch: 100%; text-transform: none; letter-spacing: 0; color: var(--tinte); }
html .knopf-anfrage[data-zustand="wortmarke"] { font-weight: 300; font-stretch: 100%; letter-spacing: -.01em; }
html .kicker { font-family: var(--schrift); font-size: 15px; font-weight: 600; letter-spacing: .01em; text-transform: none; }
html .titel, html .ein-mensch, html .auszeichnung-gross h3 { font-weight: 800; font-stretch: 100%; text-transform: none; letter-spacing: -.025em; line-height: 1.04; }
html .danke h3, html .recht h1 { font-weight: 800; font-stretch: 100%; text-transform: none; letter-spacing: -.02em; }
html .recht h2 { font-stretch: 100%; }
html .karte h3, html .auszeichnung h3 { font-stretch: 100%; }
html .siegel-zahl b { font-weight: 800; font-stretch: 100%; }
html .siegel-zahl small { font-family: var(--schrift); font-size: 10px; font-weight: 600; letter-spacing: 0; text-transform: none; }

/* Kachel Blitzbewerbung: die zwei Wege (Blitzbewerbung / Mehr erfahren) */
.zwei-wege { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.zwei-wege li { display: flex; align-items: flex-start; gap: 12px; font-size: 16.5px; line-height: 1.45; color: #CFCBC2; }
.weg-ico { flex: none; width: 26px; height: 26px; margin-top: -1px; border-radius: 50%; display: grid; place-items: center; background: var(--blau); color: #fff; }
.weg-ico svg { width: 14px; height: 14px; display: block; }
.weg-name { color: #fff; }

@media (max-width: 960px) {
  .auszeichnungen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auszeichnung { flex-direction: column; gap: 14px; }
  .auszeichnung-gross { flex-direction: row; gap: 18px; }
  .karten { grid-template-columns: 1fr; max-width: 640px; }
  .zweispaltig, .zweispaltig-form { grid-template-columns: 1fr; }
  .anfrage-text { position: static; }
  .bildrahmen { max-width: 360px; justify-self: start; }
}
@media (max-width: 720px) {
  body { font-size: 18px; }
  .recht h1 { font-stretch: 100%; }
  .recht p, .recht li { font-size: 17.5px; }
  .schlag { font-stretch: 100%; }
  .nur-breit { display: none; }
  .nur-schmal { display: inline; }
  .leiste-logo svg { height: 28px; }
  .held { padding-top: 72px; padding-bottom: 104px; }
  .held-steuer { left: 50%; right: auto; transform: translateX(-50%); }
  .zeiger svg { width: 18px; height: 22px; }
  .zeiger-name { font-size: 11px; left: 13px; top: 18px; }
  .zeiger.ruht .zeiger-name { opacity: 0; }
  .mitschrift { font-stretch: 100%; letter-spacing: .03em; }
}
@media (max-width: 560px) {
  .auszeichnungen { grid-template-columns: minmax(0, 1fr); }
  .auszeichnung { flex-direction: row; gap: 18px; }
  .auszeichnung-gross { grid-column: auto; flex-direction: column; align-items: flex-start; }
  .held-aktion { flex-direction: column; width: 100%; max-width: 400px; }
  .held-aktion .knopf { width: 100%; }
  .knopf-anfrage[data-zustand="wortmarke"] { width: auto; }
  .tel-huelle { width: 100%; grid-template-columns: 1fr; grid-template-rows: 1fr; transition: grid-template-rows .55s cubic-bezier(.2, .8, .2, 1); }
  .tel-huelle .tel-innen { padding-left: 0; padding-top: 12px; }
  .js:not(.ruhig) .held .tel-huelle:not(.gebaut), .tel-huelle.zu { grid-template-columns: 1fr; grid-template-rows: 0fr; }
  .js:not(.ruhig) .held .tel-huelle:not(.gebaut) .tel-innen, .tel-huelle.zu .tel-innen { padding-top: 0; }
  .feld-paar { grid-template-columns: 1fr; }
  .anruf, .anruf .knopf { width: 100%; }
  .fuss-recht { gap: 16px; }
}
/* Sehr schmal: Überschriften etwas schmaler laufen lassen, sonst ragt „GESCHNEIDERT.“ über den Rand */
@media (max-width: 420px) {
  .titel { font-stretch: 100%; }
}
@media (max-width: 400px) {
  .auszeichnung-gross h3 { font-size: 22px; font-stretch: 100%; }
  .knopf-gross { font-size: 15px; padding: 0 1.2em; }
  .leiste-knoepfe .knopf-klein { padding: 0 .9em; letter-spacing: .03em; }
}

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