/* VISARO Startseite, zweiter Entwurf: Startmotiv und Kontaktbild sind violett erzeugt, alle anderen Bilder bleiben wie sie sind.
   Helle Flächen in kühlem Weiß, keine seitlichen Rahmen.
   Formen: Karten rund (--rund), Knöpfe als Pille. Eine Akzentfarbe (--akzent) nur auf dunklen Flächen. */

@font-face { font-family: "Inter Tight"; src: url(../fonts/inter-tight-400-800.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(../fonts/dm-sans-400-700.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
	--nacht: #0D0716;
	/* Grund der dunklen Flächen (dunkle Abschnitte, Fuß): tiefes Violett mit weichem Licht statt flachem Schwarz */
	--dunst: radial-gradient(90% 120% at 100% 0%, rgba(162, 89, 255, .46), rgba(162, 89, 255, 0) 62%), radial-gradient(70% 95% at 0% 100%, rgba(120, 60, 230, .3), rgba(120, 60, 230, 0) 60%), linear-gradient(135deg, #21103F, #150A2A 55%, #0D0716);
	--lila: #A259FF;
	--weiss: #F4F3F8;
	--tinte: #1A0F2B;
	--ton: #9285AB;
	--grau: #5C5470;
	--linie: rgba(26, 15, 43, .14);
	--akzent: #D8FF45;
	--akzent-text: #12091E;
	--rand: clamp(20px, 4.6vw, 72px);
	--kopf: 72px;
	--rund: 20px;
	--aus: cubic-bezier(.16, 1, .3, 1);
	--titel: "Inter Tight", system-ui, sans-serif;
	--text: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--kopf); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--weiss); color: var(--tinte); font: 400 1.0625rem/1.55 var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lila); outline-offset: 3px; }
::selection { background: var(--lila); color: #fff; }

.sprung { position: absolute; left: -999px; top: 8px; z-index: 40; background: var(--tinte); color: var(--weiss); padding: 12px 16px; border-radius: 999px; }
.sprung:focus { left: 8px; }

/* ---------- Bausteine ---------- */

h1, .gross, .l-name, .tel-gross, .fakten dt, .menue nav a, .detail h3, .stapel { font-family: var(--titel); font-weight: 400; }
h1, .gross, .tel-gross, .menue nav a, .stapel { text-transform: uppercase; }
.gross { font-size: clamp(2rem, 6.2vw, 5.4rem); line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; }
.ton { color: var(--ton); }
.lauf { max-width: 50ch; font-size: clamp(1.02rem, 1.35vw, 1.2rem); color: var(--grau); }
.klein { font: 500 .74rem/1.3 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--grau); }

/* Bild-Pille mitten in einer Überschrift */
.pille { position: relative; display: inline-block; width: 1.9em; height: .76em; margin-inline: .06em; border-radius: 999px; overflow: hidden; vertical-align: -.03em; background: var(--nacht); }
.pille img { width: 100%; height: 100%; object-fit: cover; }

/* Bildrahmen der Karten: rund, das Bild füllt die Fläche. Keine Farbschicht über Bildern (Andrés Wunsch). */
.tauch { position: relative; display: block; overflow: hidden; border-radius: var(--rund); background: var(--nacht); }
.tauch img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--aus); }

.pfeil { width: 1.15em; height: 1.15em; flex: none; transition: transform .4s var(--aus); }

.knopf { display: inline-flex; align-items: center; gap: .8em; padding: 1.1em 1.6em; border-radius: 999px; background: var(--tinte); color: var(--weiss); font: 500 .8rem/1 var(--text); letter-spacing: .07em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background .3s, color .3s, box-shadow .3s; }
.knopf:active { transform: translateY(1px); }
.knopf-akzent { background: var(--akzent); color: var(--akzent-text); }
.knopf-linie { background: none; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.knopf-klein { padding: .9em 1.25em; font-size: .74rem; }
.textlink { display: inline-flex; align-items: center; gap: .7em; padding: .6em 0; font: 500 .8rem/1 var(--text); letter-spacing: .07em; text-transform: uppercase; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .5s var(--aus); }

@media (hover: hover) {
	.knopf:hover { background: var(--lila); color: var(--nacht); }
	.knopf-akzent:hover { background: #fff; color: var(--nacht); }
	.knopf-linie:hover { background: none; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
	.knopf:hover .pfeil, .textlink:hover .pfeil { transform: translateX(4px); }
	.textlink:hover { background-size: 0 1px; background-position: 100% 100%; }
	a:hover > .tauch img, button:hover > .tauch img { transform: scale(1.04); }
}

/* ---------- Kopf: liegt über dem Startbild, wird danach hell ---------- */

.kopf { position: fixed; inset: 0 0 auto; z-index: 20; height: var(--kopf); display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); padding-inline: var(--rand); color: #fff; transition: background .4s, color .4s, box-shadow .4s; }
.kopf.fest { background: color-mix(in srgb, var(--weiss) 86%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--tinte); box-shadow: 0 1px 0 var(--linie); }
.logo img { height: 22px; width: auto; }
.logo-dunkel, .kopf.fest .logo-hell { display: none; }
.kopf.fest .logo-dunkel { display: block; }
.haupt { display: none; margin-left: auto; gap: clamp(18px, 2.4vw, 38px); }
.haupt a, .kopf-tel { padding: .5em 0; font: 500 .78rem/1 var(--text); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.haupt a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--aus); }
.haupt a:hover { background-size: 100% 1px; }
.kopf-rechts { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.kopf-tel, .kopf .knopf { display: none; }
.kopf .knopf { background: #fff; color: var(--nacht); }
.kopf.fest .knopf { background: var(--tinte); color: var(--weiss); }
.menue-auf { padding: .85em 1.3em; border: 0; border-radius: 999px; background: none; box-shadow: inset 0 0 0 1px currentColor; font: 500 .74rem/1 var(--text); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
@media (min-width: 900px) {
	.haupt { display: flex; }
	.kopf-rechts { margin-left: 0; }
	.kopf .knopf { display: inline-flex; }
	.menue-auf { display: none; }
}
@media (min-width: 1160px) { .kopf-tel { display: block; } }

/* ---------- Start ---------- */

.hero, .kontakt { position: relative; isolation: isolate; display: grid; align-items: end; overflow: hidden; background: var(--nacht); color: #fff; }
.hero { min-height: 100svh; }
.hero-foto, .kontakt-foto { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 77% 30%; }
/* Am Handy bleibt nur ein Streifen des Querformats sichtbar: dorthin schieben, wo der Kopf ist (oben Alpinist, unten Falke) */
.kontakt-foto { object-position: 60% 30%; }
.hero::after, .kontakt::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--nacht) 6%, rgba(13, 7, 22, .62) 36%, rgba(13, 7, 22, 0) 66%); }
.hero-innen { display: grid; gap: clamp(18px, 2.6vw, 36px); padding: calc(var(--kopf) + 24px) var(--rand) calc(96px + env(safe-area-inset-bottom)); }
h1 { font-size: clamp(2.5rem, 12.2vw, 5.4rem); line-height: 1; letter-spacing: -.05em; }
.zeile { display: block; overflow: hidden; padding-top: .05em; }
.zeile > span { display: block; }

/* Handschrift: weiße Tinte als Maske, eingefärbt in der Akzentfarbe */
.schrift { display: block; width: min(56vw, 270px); aspect-ratio: 3.36; margin: 0 0 -4px 30%; background: var(--akzent); -webkit-mask: url(../img/schrift.webp) center / contain no-repeat; mask: url(../img/schrift.webp) center / contain no-repeat; rotate: -5deg; }

.hero-unten { display: grid; gap: 22px; }
.hero-sub { max-width: 34ch; font-size: clamp(1rem, 1.3vw, 1.15rem); color: rgba(255, 255, 255, .86); }
.hero-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
/* Kleiner Text mit Strich, am Handy oben links unter dem Logo */
.hero-seite { position: absolute; top: calc(var(--kopf) + 14px); left: var(--rand); padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .6); font: 500 .66rem/1.75 var(--text); letter-spacing: .16em; text-transform: uppercase; }

@media (min-width: 900px) {
	.hero { min-height: max(100svh, 640px); }
	.hero::after, .kontakt::after { background: linear-gradient(90deg, rgba(13, 7, 22, .8), rgba(13, 7, 22, .3) 44%, rgba(13, 7, 22, 0) 62%), linear-gradient(0deg, rgba(13, 7, 22, .72), rgba(13, 7, 22, 0) 40%); }
	.hero-innen { padding-bottom: clamp(32px, 4.4vw, 60px); }
	h1 { font-size: clamp(5rem, 9.4vw, 10.5rem); }
	.schrift { width: clamp(230px, 23vw, 400px); margin: 0 0 -1.4vw 27%; }
	.hero-unten { grid-template-columns: minmax(0, 36ch) auto 1fr; align-items: end; gap: clamp(28px, 4vw, 64px); }
	.hero-seite { position: static; justify-self: end; padding: 0 16px 0 0; border-left: 0; border-right: 1px solid rgba(255, 255, 255, .6); font-size: .7rem; }
}

/* ---------- Helle Abschnitte ---------- */

main > section { padding: clamp(72px, 10vw, 150px) var(--rand); }
main > .hero { padding: 0; }

/* Wischbare Bänder (Arbeiten am Handy, Leistungen überall) */
.band { display: flex; gap: 14px; overflow-x: auto; margin-inline: calc(var(--rand) * -1); padding-inline: var(--rand); scroll-padding-inline: var(--rand); scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.band::-webkit-scrollbar { display: none; }
.band > * { flex: none; width: 76vw; max-width: 340px; scroll-snap-align: start; }

/* Aussage + Arbeiten */
.aussage { display: grid; gap: clamp(28px, 4vw, 56px); }
.zeichen { width: clamp(44px, 5vw, 72px); height: auto; }
.aussage-text { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.arbeiten { display: grid; gap: 22px; margin-top: clamp(16px, 4vw, 56px); }
.stapel { font-size: clamp(1.15rem, 1.7vw, 1.6rem); line-height: 1.12; letter-spacing: -.02em; }
.stapel br { display: none; }
.stapel a { text-decoration-thickness: 1px; text-underline-offset: .2em; }
.karte { display: grid; gap: 3px; align-content: start; text-decoration: none; }
.karte .tauch { aspect-ratio: 4 / 5; margin-bottom: 12px; }
.karte-titel { font-weight: 500; }
.karte-art { font: 500 .7rem/1.4 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--grau); }
@media (min-width: 900px) {
	.aussage { grid-template-columns: minmax(0, 2fr) minmax(0, 10fr); }
	.arbeiten { grid-column: 1 / -1; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); align-items: end; }
	.stapel br { display: inline; }
	.band-arbeiten { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.8vw, 28px); overflow: visible; margin: 0; padding: 0; }
	.band-arbeiten > * { width: auto; max-width: none; }
	.band-arbeiten > :nth-child(2) { margin-top: 64px; }
}

/* Leistungen */
.leistungen { display: grid; gap: clamp(32px, 4.5vw, 64px); }
.mitte { display: grid; gap: 22px; justify-items: center; text-align: center; }
.mitte .gross { max-width: 16ch; }
.l-reihe { position: relative; display: grid; grid-template: 1fr auto auto / 1fr auto; align-items: end; gap: 6px 12px; width: 100%; aspect-ratio: 4 / 5; padding: 20px; border: 0; border-radius: var(--rund); overflow: hidden; background: var(--nacht); color: #fff; text-align: left; cursor: pointer; transition: transform .6s var(--aus); }
.l-reihe .tauch { position: absolute; inset: 0; border-radius: 0; }
.l-reihe::after { content: ""; position: absolute; inset: 42% 0 0; background: linear-gradient(0deg, rgba(13, 7, 22, .88), rgba(13, 7, 22, 0)); pointer-events: none; }
.l-name, .l-satz, .l-reihe .plus { position: relative; z-index: 1; }
.l-name { grid-area: 2 / 1; font-size: 1.7rem; line-height: 1.05; letter-spacing: -.03em; }
.l-satz { grid-area: 3 / 1; font-size: .9rem; color: rgba(255, 255, 255, .8); }
.plus { grid-area: 2 / 2 / span 2; width: 46px; height: 46px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .75); transition: background .3s, transform .6s var(--aus); }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px; background: currentColor; }
.plus::after { transform: rotate(90deg); }
.band-pfeile { display: none; }
@media (hover: hover) {
	.l-reihe:hover { transform: translateY(-10px); }
	.l-reihe:hover .plus { background: var(--akzent); color: var(--akzent-text); box-shadow: none; transform: rotate(90deg); }
}
@media (min-width: 900px) {
	.band-leistungen { gap: clamp(14px, 1.6vw, 24px); padding-block: 12px 40px; }
	.band-leistungen > * { width: clamp(280px, 24vw, 360px); max-width: none; }
	.band-leistungen > :nth-child(even) { margin-top: 40px; }
	.band-pfeile { display: flex; justify-content: flex-end; gap: 10px; margin-top: -24px; }
	.band-pfeile button { display: grid; place-items: center; width: 54px; height: 54px; border: 0; border-radius: 50%; background: none; box-shadow: inset 0 0 0 1px var(--tinte); cursor: pointer; transition: background .3s, color .3s; }
	.band-pfeile button:first-child .pfeil { rotate: 180deg; }
	.band-pfeile button:hover { background: var(--tinte); color: var(--weiss); }
}

/* Kunden */
main > .kunden { display: grid; gap: 24px; justify-items: center; padding-block: 0 clamp(72px, 10vw, 150px); }
/* Eine Zeile Logos, die langsam von links nach rechts durchläuft. Das Skript hängt drei Kopien an (vier Sätze), deshalb
   wandert das Band genau um ein Viertel. Ohne Skript oder bei „weniger Bewegung“ stehen die Logos mittig und brechen um. */
.logos-band { justify-self: stretch; margin-inline: calc(var(--rand) * -1); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; row-gap: 28px; }
.logos li { flex: none; margin-inline: clamp(18px, 2.6vw, 36px); }
.logos li > * { display: block; }
.logos img { display: block; width: auto; height: auto; max-width: 88px; max-height: 46px; }
.logos.laeuft { flex-wrap: nowrap; justify-content: flex-start; width: max-content; animation: logos 52s linear infinite; }
.logos-band:hover .laeuft, .laeuft:focus-within { animation-play-state: paused; }
@keyframes logos { from { transform: translateX(-25%); } }
@media (min-width: 900px) { .logos img { max-width: 104px; max-height: 55px; } }

/* Haltung */
.haltung { display: grid; gap: clamp(36px, 5vw, 80px); border-top: 1px solid var(--linie); }
.treppe > span { display: block; }
.haltung-unten { display: grid; gap: 36px; }
.haltung-unten > div { display: grid; gap: 24px; justify-items: start; align-content: start; }
.fakten { display: grid; margin: 0; }
.fakten div { display: grid; grid-template-columns: 6.4rem 1fr; gap: 16px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--linie); }
.fakten dt { font-size: 2.4rem; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.fakten dd { color: var(--grau); }
@media (min-width: 900px) {
	.treppe > span:nth-child(2) { margin-left: 12%; }
	.treppe > span:nth-child(3) { margin-left: 30%; }
	.haltung-unten { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 110px); }
	.fakten { grid-template-columns: repeat(3, 1fr); gap: 0 28px; }
	.fakten div { display: block; padding: 22px 0 0; }
	.fakten dt { font-size: clamp(3rem, 5.4vw, 4.8rem); }
	.fakten dd { margin-top: 10px; }
}

/* ---------- Kontakt und Fuß (dunkel) ---------- */

.kontakt { min-height: min(92svh, 860px); }
.kontakt-text { display: grid; gap: 22px; justify-items: start; max-width: 620px; }
.kontakt .gross { max-width: 11ch; }
.kontakt .ton { color: rgba(255, 255, 255, .62); }
.kontakt .lauf { color: rgba(255, 255, 255, .84); max-width: 40ch; }
.tel-gross { font-size: clamp(2.2rem, 9.6vw, 5rem); line-height: 1; letter-spacing: -.04em; text-decoration: none; background: linear-gradient(var(--akzent), var(--akzent)) 0 100% / 0 2px no-repeat; transition: background-size .6s var(--aus); }
.tel-gross:hover { background-size: 100% 2px; }
.kontakt-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .tel-gross { font-size: clamp(3rem, 5.6vw, 5rem); } }

.fuss { padding: clamp(48px, 6vw, 88px) var(--rand) 28px; background: var(--dunst); color: rgba(255, 255, 255, .88); border-top: 1px solid rgba(255, 255, 255, .12); }
.fuss-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 24px; }
.fuss-marke { grid-column: 1 / -1; }
.fuss-marke img { height: 24px; width: auto; margin-bottom: 16px; }
.fuss-marke p, .fuss-recht, .fuss h3 { color: rgba(255, 255, 255, .58); }
.fuss-marke p, .fuss-recht { font-size: .9rem; }
.fuss-marke p + p { margin-top: 14px; }
.fuss-marke a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.fuss-sozial { display: flex; gap: 20px; }
.fuss h3 { margin: 0 0 14px; font: 500 .7rem/1 var(--text); letter-spacing: .14em; text-transform: uppercase; }
.fuss nav a { display: block; padding: 5px 0; text-decoration: none; }
.fuss a:hover { text-decoration: underline; text-decoration-color: var(--akzent); text-underline-offset: 4px; }
.fuss-recht { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); }
.fuss-recht span { margin-right: auto; }
@media (min-width: 900px) {
	.fuss-raster { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
	.fuss-marke { grid-column: auto; }
}

/* ---------- Handy: feste Kontaktleiste ---------- */

.leiste { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr 1.1fr; border-radius: 999px; overflow: hidden; background: var(--nacht); color: #fff; box-shadow: 0 12px 32px rgba(13, 7, 22, .4), inset 0 0 0 1px rgba(255, 255, 255, .14); }
.leiste a { display: grid; place-items: center; min-height: 54px; font: 500 .76rem/1 var(--text); letter-spacing: .09em; text-transform: uppercase; text-decoration: none; }
.leiste a + a { border-left: 1px solid rgba(255, 255, 255, .16); }
.leiste a:active { background: rgba(255, 255, 255, .12); }
.leiste .leiste-haupt { background: var(--akzent); color: var(--akzent-text); border-left: 0; }
@media (max-width: 899px) { .fuss { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }
@media (min-width: 900px) { .leiste { display: none; } }

/* ---------- Fenster: Menü und Leistung im Detail ---------- */

dialog { border: 0; padding: 0; max-width: none; max-height: none; background: var(--weiss); color: var(--tinte); opacity: 0; transform: translateY(18px); transition: opacity .35s var(--aus), transform .45s var(--aus), overlay .45s allow-discrete, display .45s allow-discrete; }
dialog[open] { opacity: 1; transform: none; }
@starting-style { dialog[open] { opacity: 0; transform: translateY(18px); } }
dialog::backdrop { background: rgba(13, 7, 22, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

.zu { position: absolute; z-index: 2; top: 14px; right: 14px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: none; box-shadow: inset 0 0 0 1px currentColor; color: inherit; cursor: pointer; }
.zu::before, .zu::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; margin: -.75px 0 0 -8px; background: currentColor; transform: rotate(45deg); }
.zu::after { transform: rotate(-45deg); }

.menue { width: 100vw; height: 100dvh; margin: 0; padding: calc(var(--kopf) + 20px) var(--rand) 36px; background: var(--nacht); color: #fff; }
.menue[open] { display: flex; flex-direction: column; justify-content: space-between; }
.menue nav a { display: block; padding: .22em 0; border-bottom: 1px solid rgba(255, 255, 255, .14); font-size: clamp(2.3rem, 11vw, 4rem); line-height: 1.12; letter-spacing: -.04em; text-decoration: none; }
.menue p { line-height: 1.9; color: rgba(255, 255, 255, .8); }
.menue p a { text-decoration: none; }

.detail { width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; overflow: auto; overscroll-behavior: contain; }
.detail .zu { background: var(--weiss); box-shadow: none; }
.detail-bild { aspect-ratio: 16 / 10; background: var(--nacht); }
.detail-bild img { width: 100%; height: 100%; object-fit: cover; }
.detail-text { display: grid; gap: 16px; align-content: start; padding: clamp(24px, 4vw, 48px); }
.detail h3 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.05; letter-spacing: -.035em; }
.detail-satz { font-weight: 600; }
.detail-inhalt ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.detail-inhalt li { padding: .6em .95em; border-radius: 999px; background: rgba(26, 15, 43, .06); font: 500 .72rem/1 var(--text); letter-spacing: .05em; }
.detail-inhalt > a { display: none; }
.detail-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 8px; }
@media (min-width: 760px) {
	.detail { width: min(980px, 100vw - 48px); max-height: min(86dvh, 700px); margin: auto; border-radius: 24px; }
	.detail[open] { display: grid; grid-template-columns: 5fr 6fr; }
	.detail-bild { position: relative; aspect-ratio: auto; min-height: 480px; }
	.detail-bild img { position: absolute; inset: 0; }
}

/* ---------- Bewegung (nur mit JS und wenn erwünscht) ---------- */

@media (prefers-reduced-motion: no-preference) {
	/* Start: Bild kommt näher, Zeilen steigen auf, die Handschrift wird geschrieben */
	.js .hero-foto { opacity: 0; scale: 1.1; }
	.js .zeile > span { transform: translateY(112%); }
	.js .hero-unten, .js .hero-seite { opacity: 0; transform: translateY(16px); }
	.js .schrift { clip-path: inset(-20% 100% -20% 0); }
	.js .leiste { transform: translateY(160%); }
	.js.bereit .hero-foto { opacity: 1; scale: 1; transition: opacity 1.2s, scale 2.4s var(--aus); }
	.js.bereit .zeile > span { transform: none; transition: transform 1.1s var(--aus) .25s; }
	.js.bereit .zeile:nth-child(2) > span { transition-delay: .36s; }
	.js.bereit .hero-unten, .js.bereit .hero-seite { opacity: 1; transform: none; transition: opacity .9s var(--aus) .7s, transform .9s var(--aus) .7s; }
	.js.bereit .schrift { clip-path: inset(-20% 0 -20% 0); transition: clip-path 1s cubic-bezier(.6, 0, .2, 1) 1.15s; }
	.js.bereit .leiste { transform: none; transition: transform .7s var(--aus) 1.3s; }

	/* Abschnitte: einmal einblenden, Karten nacheinander */
	.js [data-zeig] { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--aus), transform .9s var(--aus); }
	.js [data-zeig].da { opacity: 1; transform: none; }
	.js .band > [data-zeig]:nth-child(2) { transition-delay: .08s; }
	.js .band > [data-zeig]:nth-child(3) { transition-delay: .16s; }
	.js .band > [data-zeig]:nth-child(4) { transition-delay: .24s; }

	/* Beim Scrollen wandern die beiden großen Bilder leicht mit (ohne JS) */
	@supports (animation-timeline: view()) {
		.hero-foto { animation: sinkt linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
		.kontakt-foto { animation: steigt linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
	}
}
@keyframes sinkt { to { transform: translateY(14%); } }
@keyframes steigt { from { transform: translateY(-9%) scale(1.08); } }
