/* Gemeinsame Grundlage aller Beispielseiten: Schriften, Reset, Effekte, Demo-Hinweise. */
@font-face { font-family: 'Archivo'; src: url('schriften/archivo-normal.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('schriften/fraunces-normal.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('schriften/fraunces-italic.woff2') format('woff2'); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('schriften/figtree-normal.woff2') format('woff2'); font-weight: 300 800; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('schriften/cormorant-normal.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('schriften/cormorant-italic.woff2') format('woff2'); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('schriften/manrope.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; overflow-x: hidden; overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
main, footer { overflow-x: clip; } /* hereingleitende Elemente sollen keine Querrollen auslösen */
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--fokus, #f5a623); outline-offset: 3px; border-radius: 4px; }
.nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.springen { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .7rem 1rem; background: #000; color: #fff; border-radius: 8px; }
.springen:focus { top: 1rem; }

/* Demo-Leiste ganz oben, klebt mit dem Kopf; der Zurück-Knopf ist bewusst groß und eindeutig */
.demo-leiste { position: relative; z-index: 60; display: flex; align-items: center; gap: .6rem 1.2rem;
  padding: .35rem clamp(.6rem, 3vw, 1.5rem); background: #0b0b0c; color: #e9e6e1; font: 500 .8rem/1.4 'Manrope', system-ui, sans-serif; }
.demo-leiste b { color: #fff; font-weight: 700; }
.demo-mehr { margin-left: auto; color: #ffd38a; text-underline-offset: 3px; }
.demo-zurueck { flex: none; display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .35rem 1rem .35rem .8rem; border-radius: 999px;
  background: #ffd38a; color: #111; font-weight: 800; font-size: .9rem; text-decoration: none; transition: background .2s; }
.demo-zurueck:hover { background: #fff; }
.demo-zurueck::before { content: '←'; font-size: 1.1rem; line-height: 1; }
html { scroll-padding-top: 135px; }
@media (max-width: 700px) {
  .demo-lang, .demo-mehr { display: none; }
  .demo-leiste { justify-content: space-between; }
}

/* Hereingleiten (gesteuert von effekte.js) */
/* Tempo und Kurve stellt jede Seite selbst ein (--zeit, --kurve, --staffel) */
[data-zeige] { opacity: 0; --k: var(--kurve, cubic-bezier(.2,.7,.2,1));
  transition: opacity var(--zeit, .8s) var(--k), transform calc(var(--zeit, .8s) + .1s) var(--k), filter var(--zeit, .8s) ease, clip-path calc(var(--zeit, .8s) + .3s) var(--k);
  transition-delay: calc(var(--i, 0) * var(--staffel, 90ms)); will-change: opacity, transform; }
[data-zeige="hoch"] { transform: translateY(34px); }
[data-zeige="rechts"] { transform: translateX(70px); }
[data-zeige="links"] { transform: translateX(-70px); }
[data-zeige="zoom"] { transform: scale(.93); }
[data-zeige="weich"] { filter: blur(8px); transform: scale(1.02); }
[data-zeige="vorhang"] { opacity: 1; clip-path: inset(0 100% 0 0); }
[data-zeige="kino"] { opacity: 1; clip-path: inset(50% 0 50% 0); transform: scale(1.14); }
[data-zeige].sichtbar { opacity: 1; transform: none; filter: none; }
[data-zeige="vorhang"].sichtbar, [data-zeige="kino"].sichtbar { clip-path: inset(0 0 0 0); }

/* Hinweis-Blase für ausgeschaltete Demo-Funktionen */
.toast { position: fixed; left: 50%; bottom: 1.2rem; z-index: 90; max-width: min(92vw, 30rem); padding: .85rem 1.1rem; border-radius: 14px;
  background: #111; color: #fff; font: 500 .9rem/1.45 'Manrope', system-ui, sans-serif; box-shadow: 0 12px 40px rgba(0,0,0,.35);
  transform: translate(-50%, calc(100% + 3rem)); opacity: 0; visibility: hidden; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .3s, visibility .45s; }
.toast.zeigen { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* DELTRY-Anfrage: Knopf unten rechts + Fenster (gemeinsam/deltry-anfrage.js) */
.deltry-knopf { position: fixed; z-index: 70; right: clamp(.8rem, 2.5vw, 1.6rem); bottom: clamp(.8rem, 2.5vw, 1.6rem); display: inline-flex; align-items: center; gap: .75rem;
  min-height: 60px; padding: .55rem 1.3rem .55rem .7rem; border: 2px solid #ffb000; border-radius: 999px; background: #0f1012; color: #fff; text-align: left;
  font: 500 .8rem/1.2 'Manrope', system-ui, sans-serif; box-shadow: 0 14px 40px -10px rgba(0,0,0,.55), 0 0 0 6px rgba(255,176,0,.18);
  transition: transform .25s, box-shadow .25s; animation: deltry-hallo 2.4s ease-in-out 1.5s 2; }
.deltry-knopf:hover { transform: translateY(-3px); box-shadow: 0 18px 44px -10px rgba(0,0,0,.6), 0 0 0 8px rgba(255,176,0,.25); }
.deltry-knopf svg { flex: none; width: 44px; height: 44px; padding: 9px 8px 10px; border-radius: 50%; background: #ffb000; fill: #0f1012; }
.deltry-knopf-text { display: grid; }
.deltry-knopf-text small { color: #ffd38a; font-size: .78rem; }
.deltry-knopf-text b { font-size: 1.02rem; font-weight: 800; }
@keyframes deltry-hallo { 0%, 100% { transform: none; } 40% { transform: translateY(-6px); } 60% { transform: translateY(0); } 75% { transform: translateY(-3px); } }
@media (max-width: 900px) { body:has(.mobil-leiste) .deltry-knopf { bottom: calc(5.4rem + env(safe-area-inset-bottom)); } }
.deltry-dialog { width: min(92vw, 30rem); max-height: 92vh; padding: clamp(1.3rem, 4vw, 2rem); border: 0; border-radius: 22px; background: #fff; color: #15171a;
  font: 400 1rem/1.55 'Manrope', system-ui, sans-serif; box-shadow: 0 40px 100px -20px rgba(0,0,0,.6); }
.deltry-dialog::backdrop { background: rgba(10,10,12,.62); backdrop-filter: blur(3px); }
.deltry-dialog[open] { animation: deltry-auf .3s cubic-bezier(.2,.8,.2,1); }
@keyframes deltry-auf { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.deltry-zu { position: absolute; top: .7rem; right: .7rem; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #f1efeb; font-size: 1.6rem; line-height: 1; color: #15171a; }
.deltry-zu:hover { background: #e4e1db; }
.deltry-marke { display: flex; align-items: center; gap: .5rem; color: #9c6a00; font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.deltry-marke svg { width: 22px; height: 20px; fill: #9c6a00; }
.deltry-dialog h2 { margin: .7rem 2.5rem .4rem 0; font: 800 1.45rem/1.2 'Manrope', system-ui, sans-serif; font-stretch: normal; font-style: normal; letter-spacing: -.01em; text-transform: none; color: #15171a; }
.deltry-unter { margin-bottom: 1.1rem; color: #5b5750; }
.deltry-feld { display: grid; gap: .3rem; margin-bottom: .85rem; font-weight: 700; font-size: .92rem; }
.deltry-feld small { color: #8a857c; font-weight: 500; }
.deltry-feld input, .deltry-feld textarea { width: 100%; min-height: 50px; padding: .7rem .9rem; border: 1.5px solid #d9d5ce; border-radius: 12px; background: #faf9f7; font: 400 1rem/1.4 'Manrope', system-ui, sans-serif; }
.deltry-feld textarea { resize: vertical; }
.deltry-feld input:focus, .deltry-feld textarea:focus { outline: none; border-color: #ffb000; box-shadow: 0 0 0 4px rgba(255,176,0,.25); }
.deltry-falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.deltry-ok { display: flex; gap: .65rem; align-items: flex-start; margin: .3rem 0 1rem; color: #5b5750; font-size: .85rem; }
.deltry-ok input { flex: none; width: 20px; height: 20px; margin-top: .1rem; accent-color: #0f1012; }
.deltry-fehler { margin-bottom: .8rem; padding: .6rem .8rem; border-radius: 10px; background: #fdecea; color: #8a2a2a; font-weight: 600; font-size: .9rem; }
.deltry-fehler[hidden], .deltry-dialog [hidden] { display: none; }
.deltry-senden { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; padding: .8rem 1rem; border: 0; border-radius: 999px;
  background: #0f1012; color: #fff; font: 800 1.02rem/1.2 'Manrope', system-ui, sans-serif; text-decoration: none; text-align: center; }
.deltry-senden:hover { background: #2a2c31; }
.deltry-senden:disabled { opacity: .6; cursor: wait; }
.deltry-ende, .deltry-ersatz { padding: 1rem 0 .4rem; text-align: center; outline: none; }
.deltry-ende p, .deltry-ersatz p { margin-bottom: 1.2rem; color: #5b5750; }
.deltry-haken { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #ffb000; color: #0f1012; font-size: 2rem; font-weight: 800; }
.deltry-ende h2, .deltry-ersatz h2 { margin-right: 0; }
@media (max-width: 480px) { .deltry-knopf { min-height: 54px; padding-right: 1rem; } .deltry-knopf svg { width: 38px; height: 38px; } }

/* Mehrschritt-Formulare */
[data-schritte] .schritt[hidden] { display: none; }
.erfolg[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-zeige] { opacity: 1; transform: none; filter: none; clip-path: none; }
}
