/* STUDIO TRUST, Tools. Dunkel wie studiotrust.de: Woodsmoke-Grund, Gallery-Schrift, Rot nur im Leuchtband der Pille,
   als Punkt und im Fokusring. Eine Schrift, eine Kurve, Bewegung nur über Deckkraft und transform. */
@font-face {
  font-family: "BDO Grotesk";
  src: url("/assets/fonts/BDOGrotesk-VF.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --seite: #121212;            /* Woodsmoke */
  --flaeche: #1a1a1a;
  --flaeche-2: #232323;
  --tinte: #ebebeb;            /* Gallery */
  --gedaempft: #a6a6a6;        /* 7,2:1 auf --flaeche */
  --linie: rgb(235 235 235 / 10%);
  --linie-stark: rgb(235 235 235 / 24%);
  --akzent: #ea4335;           /* Cinnabar, nur Leuchten und Punkte */
  --rot-knopf: #d93a2d;        /* weißer Text darauf: 4,6:1 */
  --geist: rgb(235 235 235 / 6%);
  --r-karte: 28px;
  --kurve: cubic-bezier(.22, 1, .36, 1);
  --schrift: "BDO Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --rand: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { background: var(--seite); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--seite); color: var(--tinte);
  font-family: var(--schrift); font-weight: 450; font-size: 1.0625rem; line-height: 1.55; letter-spacing: 0;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; border-radius: 8px; }
.sprung { position: absolute; left: var(--rand); top: -80px; z-index: 100; padding: .6rem 1rem; border-radius: 999px; background: var(--tinte); color: var(--seite); text-decoration: none; }
.sprung:focus { top: 12px; }

/* Leuchtband: das rote Band aus der Navigationspille von studiotrust.de, hier als langsam wandernder Schein */
.glut { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.glut::before {
  content: ""; position: absolute; top: -60%; bottom: -60%; left: 8%; width: 46%;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgb(234 67 53 / 78%), rgb(234 67 53 / 28%) 48%, transparent 72%);
  filter: blur(6px);
}
@media (prefers-reduced-motion: no-preference) {
  .glut::before { animation: wandern 8s var(--kurve) infinite alternate; }
  @keyframes wandern { from { transform: translateX(0); } to { transform: translateX(120%); } }
}

/* Kopfzeile: schwebende Glaspille */
.kopf { position: sticky; top: 0; z-index: 50; padding: 16px var(--rand) 0; display: flex; justify-content: center; pointer-events: none; }
.pille {
  position: relative; isolation: isolate; width: 100%; max-width: 1100px; height: 64px; padding: 0 12px 0 22px;
  display: flex; align-items: center; gap: 8px; pointer-events: auto;
  border-radius: 999px; background: rgb(18 18 18 / 72%); border: 1px solid var(--linie);
  backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
}
.pille > * { position: relative; z-index: 1; }
.pille > .glut { position: absolute; z-index: 0; }
.marke { display: flex; align-items: center; margin-right: 12px; flex: none; }
.logo { height: 30px; width: auto; opacity: .94; }
.menue { display: flex; gap: 2px; flex: 1; min-width: 0; }
.menue a {
  text-decoration: none; font-size: .95rem; font-weight: 600; padding: .5rem .95rem; border-radius: 999px; color: var(--gedaempft);
  transition: background-color .3s var(--kurve), color .3s var(--kurve);
}
.menue a:hover { color: var(--tinte); }
.menue a[aria-current="page"] { background: rgb(235 235 235 / 10%); color: var(--tinte); }
.cta {
  display: inline-flex; align-items: center; gap: 8px; flex: none; text-decoration: none; font-weight: 650; font-size: .95rem;
  height: 42px; padding: 0 18px; border-radius: 999px; background: var(--rot-knopf); color: #fff;
  transition: transform .35s var(--kurve), background-color .25s var(--kurve);
}
.cta svg { transition: transform .35s var(--kurve); }
.cta:hover { background: #c9342a; }
.cta:hover svg { transform: translateX(3px); }
.cta:active { transform: scale(.97); }

main { max-width: 1180px; margin: 0 auto; padding: 0 var(--rand); }

/* Typografie: große Schrift eng, kleine Schrift normal (Spuren je Größe) */
h1 { font-weight: 750; font-size: clamp(2.6rem, 7.6vw, 6rem); line-height: 1.02; letter-spacing: -.045em; text-wrap: balance; }
h1 span { display: inline-block; }
h1 em { font-style: italic; color: var(--akzent); font-weight: 750; padding-right: .06em; }
h2 { font-weight: 750; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.12; letter-spacing: -.035em; }
h3 { font-weight: 700; font-size: 1.2rem; line-height: 1.25; letter-spacing: -.02em; }
.unter { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.5; color: var(--gedaempft); max-width: 40ch; text-wrap: pretty; }
.kicker { display: flex; align-items: center; gap: 10px; font-size: .95rem; font-weight: 600; color: var(--gedaempft); }
.punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--akzent); flex: none; box-shadow: 0 0 12px rgb(234 67 53 / 70%); }

/* Start */
.held { padding: clamp(72px, 12vw, 152px) 0 clamp(36px, 5vw, 64px); display: grid; gap: clamp(20px, 2.6vw, 32px); justify-items: start; }
.suche { position: relative; width: min(100%, 620px); margin-top: clamp(8px, 2vw, 20px); }
.suche-icon { position: absolute; left: 22px; top: 50%; translate: 0 -50%; color: var(--gedaempft); display: grid; pointer-events: none; }
.suche input {
  width: 100%; height: 64px; padding: 0 24px 0 56px; appearance: none;
  border-radius: 999px; border: 1px solid var(--linie-stark); background: var(--flaeche);
  font-size: 1.08rem; font-weight: 500;
  transition: border-color .3s var(--kurve), background-color .3s var(--kurve);
}
.suche input::placeholder { color: var(--gedaempft); opacity: 1; }
.suche input:hover { border-color: rgb(235 235 235 / 45%); }
.suche input:focus-visible { outline: none; border-color: var(--tinte); box-shadow: 0 0 0 3px var(--seite), 0 0 0 5px var(--akzent); }
.filter { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--linie-stark); background: transparent; font-weight: 600; font-size: .96rem;
  transition: background-color .3s var(--kurve), color .3s var(--kurve), border-color .3s var(--kurve), transform .3s var(--kurve);
}
.chip:hover { border-color: rgb(235 235 235 / 55%); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--tinte); color: var(--seite); border-color: var(--tinte); }

/* Liste und Karten */
.unten { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(20px, 3vw, 40px); align-items: start; padding-bottom: clamp(72px, 10vw, 128px); }
.zahl { color: var(--gedaempft); font-size: .95rem; margin-bottom: 16px; min-height: 1.55em; }
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.karte {
  position: relative; display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 12px 12px 26px;
  border-radius: var(--r-karte); background: var(--flaeche); border: 1px solid var(--linie); text-decoration: none; overflow: hidden;
  transition: transform .5s var(--kurve), border-color .3s var(--kurve);
}
/* Zeiger-Licht: folgt der Maus, nur mit feinem Zeiger */
.karte::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; border-radius: inherit;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgb(234 67 53 / 14%), transparent 62%);
  transition: opacity .4s var(--kurve);
}
@media (hover: hover) and (pointer: fine) {
  .karte:hover { transform: translateY(-4px); border-color: rgb(235 235 235 / 28%); }
  .karte:hover::after { opacity: 1; }
}
.karte > :not(.karte-bild) { margin-inline: 14px; }
.karte-bild { display: grid; place-items: center; height: 180px; border-radius: 18px; background: var(--seite); border: 1px solid var(--linie); overflow: hidden; }
.blatt { width: min(240px, 80%); height: auto; transition: transform .7s var(--kurve); }
.karte:hover .blatt { transform: translateY(-4px) rotate(-1.5deg); }
.karte h3 { font-size: clamp(1.55rem, 3vw, 1.9rem); letter-spacing: -.035em; font-weight: 750; margin-top: 6px; }
.karte p { color: var(--gedaempft); text-wrap: pretty; }
.karte-kopf { display: flex; gap: 8px; margin-top: 8px; }
.etikett { padding: .25rem .75rem; border-radius: 999px; background: var(--flaeche-2); font-size: .85rem; font-weight: 600; }
.etikett-neu { background: var(--tinte); color: var(--seite); }
.karte-fuss { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; }
.format { font-size: .92rem; color: var(--gedaempft); font-weight: 500; }
.kreis {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--linie-stark);
  transition: background-color .3s var(--kurve), color .3s var(--kurve), border-color .3s var(--kurve), transform .5s var(--kurve);
}
.karte:hover .kreis { background: var(--tinte); color: var(--seite); border-color: var(--tinte); transform: rotate(45deg); }
.leer, .bald { margin-top: 20px; color: var(--gedaempft); }

/* Vorstellung */
.ich { display: grid; gap: 22px; justify-items: start; position: sticky; top: 96px; padding: 28px; border-radius: var(--r-karte); background: var(--flaeche); border: 1px solid var(--linie); }
.portrait {
  width: 128px; height: 128px; border-radius: 36px; object-fit: cover; object-position: 50% 40%; background: var(--flaeche-2);
  box-shadow: 0 0 0 1px var(--linie-stark), 0 18px 40px -16px rgb(234 67 53 / 45%); filter: contrast(1.04) saturate(.92);
}
.ich h2 { margin-bottom: 10px; }
.ich p { color: var(--gedaempft); text-wrap: pretty; }
.ich .links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; }
.textlink { display: inline-flex; align-items: center; gap: 6px; color: var(--tinte); font-weight: 650; text-decoration: underline; text-decoration-color: var(--linie-stark); text-underline-offset: 5px; transition: text-decoration-color .3s var(--kurve); }
.textlink:hover { text-decoration-color: var(--tinte); }
@media (max-width: 980px) {
  .unten { grid-template-columns: 1fr; }
  .ich { position: static; grid-template-columns: auto 1fr; align-items: center; column-gap: 24px; }
  .ich > div { grid-column: 1 / -1; }
}

/* Unterseite */
.zurueck { padding: 36px 0 0; font-weight: 600; }
.zurueck a { text-decoration: none; color: var(--gedaempft); transition: color .3s var(--kurve); }
.zurueck a:hover { color: var(--tinte); }
.kopf-block { padding: clamp(28px, 6vw, 72px) 0 clamp(36px, 5vw, 64px); display: grid; gap: clamp(18px, 2.4vw, 28px); justify-items: start; }
.kopf-block h1 { font-size: clamp(2.4rem, 6.6vw, 5.2rem); }
.aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.status { min-height: 1.55em; color: var(--gedaempft); font-size: .95rem; }

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 28px; border-radius: 999px;
  border: 1px solid transparent; font-weight: 700; font-size: 1.02rem; text-decoration: none;
  transition: transform .35s var(--kurve), background-color .3s var(--kurve), color .3s var(--kurve), border-color .3s var(--kurve);
}
.knopf:active { transform: scale(.97); }
.knopf-hell { background: var(--tinte); color: var(--seite); }
.knopf-hell:hover { background: #fff; }
.knopf-rand { border-color: var(--linie-stark); color: var(--tinte); background: transparent; }
.knopf-rand:hover { border-color: var(--tinte); background: rgb(235 235 235 / 8%); }
.knopf.ok { background: transparent; color: var(--tinte); border-color: var(--tinte); }

.schritte, .hinweise, .prompt { padding: clamp(36px, 6vw, 72px) 0; border-top: 1px solid var(--linie); }
.schritte h2, .hinweise h2, .prompt h2 { margin-bottom: clamp(22px, 3vw, 36px); }
.schritte ol { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.schritte li { display: grid; gap: 18px; align-content: start; padding: 28px; border-radius: var(--r-karte); background: var(--flaeche); border: 1px solid var(--linie); }
.nr { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--linie-stark); font-weight: 750; font-size: 1.1rem; }
.schritte p { color: var(--gedaempft); margin-top: 8px; text-wrap: pretty; }
.hinweise ul { display: grid; gap: 16px; max-width: 68ch; }
.hinweise li { padding-left: 24px; position: relative; text-wrap: pretty; color: var(--gedaempft); }
.hinweise li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--akzent); }
.hinweise li strong { color: var(--tinte); font-weight: 700; }

details { border: 1px solid var(--linie-stark); border-radius: 24px; background: var(--flaeche); }
summary { list-style: none; cursor: pointer; padding: 20px 26px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; border-radius: inherit; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.6rem; font-weight: 400; line-height: 1; transition: transform .4s var(--kurve); }
details[open] > summary::after { transform: rotate(45deg); }
.klein { color: var(--gedaempft); font-weight: 500; font-size: .92rem; }
.online { margin-top: 32px; max-width: 68ch; }
.online p { padding: 0 26px 16px; color: var(--gedaempft); text-wrap: pretty; }
.online p:last-child { padding-bottom: 26px; }
/* Prompt-Box: Anfang sichtbar, unten verschwimmt es, Knopf klappt auf. Kopieren sitzt oben rechts. */
.prompt-box { position: relative; border: 1px solid var(--linie-stark); border-radius: 24px; background: var(--flaeche); overflow: hidden; }
.prompt-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 0 26px; }
.knopf-klein {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--linie-stark); background: transparent;
  font-weight: 650; font-size: .92rem; transition: background-color .3s var(--kurve), border-color .3s var(--kurve), transform .35s var(--kurve);
}
.knopf-klein:hover { border-color: var(--tinte); background: rgb(235 235 235 / 8%); }
.knopf-klein:active { transform: scale(.97); }
.prompt pre { margin: 0; padding: 10px 26px 26px; max-height: 190px; overflow: hidden; font-family: var(--mono); font-size: .85rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; color: #d4d4d4;
  -webkit-mask-image: linear-gradient(#000 38%, transparent); mask-image: linear-gradient(#000 38%, transparent); }
.prompt-box.offen pre { max-height: 560px; overflow: auto; -webkit-mask-image: none; mask-image: none; }
.prompt-fuss { display: flex; justify-content: center; padding: 0 16px 18px; }
.prompt-box:not(.offen) .prompt-fuss { margin-top: -64px; position: relative; }
.aufklappen { height: 48px; padding: 0 24px; border-radius: 999px; background: var(--tinte); color: var(--seite); border: 0; font-weight: 700; transition: transform .35s var(--kurve), background-color .3s var(--kurve); }
.aufklappen:hover { background: #fff; }
.aufklappen:active { transform: scale(.97); }

/* Leiste am Handy: dasselbe Leuchtband, erscheint, sobald der große Knopf aus dem Bild ist */
.leiste {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 20; padding: 8px; isolation: isolate;
  border-radius: 999px; background: rgb(18 18 18 / 78%); border: 1px solid var(--linie);
  backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
}
.leiste > .glut { z-index: 0; }
.leiste .knopf { position: relative; z-index: 1; width: 100%; height: 52px; }
@media (min-width: 900px) { .leiste { display: none !important; } }
@media (prefers-reduced-transparency: reduce) { .pille, .leiste { background: var(--seite); backdrop-filter: none; -webkit-backdrop-filter: none; } }

/* Fuß */
.fuss { max-width: 1180px; margin: 0 auto; padding: 0 var(--rand) 32px; position: relative; overflow: hidden; }
.geist { font-weight: 750; letter-spacing: -.06em; line-height: .8; color: var(--geist); font-size: clamp(6rem, 25vw, 20rem); margin: 0 0 24px -.04em; user-select: none; pointer-events: none; white-space: nowrap; }
.fuss-raster { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 48px; border-top: 1px solid var(--linie); padding-top: 32px; }
.fuss-marke { display: grid; gap: 14px; max-width: 30ch; }
.fuss-marke .logo { height: 30px; opacity: .85; }
.fuss-marke p { color: var(--gedaempft); font-size: .95rem; }
.fuss nav { display: grid; grid-template-columns: repeat(2, auto); gap: 4px 40px; align-content: start; }
.fuss nav a { text-decoration: none; padding: 6px 0; color: var(--gedaempft); font-weight: 550; transition: color .3s var(--kurve); }
.fuss nav a:hover { color: var(--tinte); }
.rechte { margin-top: 36px; color: var(--gedaempft); font-size: .9rem; }

/* Einblendung: eine Kurve, nur Deckkraft und transform */
@media (prefers-reduced-motion: no-preference) {
  .held > *, .kopf-block > *, .karte-zeile, .ich { animation: ein .9s var(--kurve) both; }
  .held > :nth-child(2), .kopf-block > :nth-child(2) { animation-delay: .07s; }
  .held > :nth-child(3), .kopf-block > :nth-child(3) { animation-delay: .14s; }
  .held > :nth-child(4), .kopf-block > :nth-child(4) { animation-delay: .21s; }
  .held > :nth-child(5), .kopf-block > :nth-child(5) { animation-delay: .28s; }
  .karte-zeile { animation-delay: .35s; }
  .ich { animation-delay: .45s; }
  @keyframes ein { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition-duration: .01ms !important; } }

/* Handy: eigene Gestaltung, nicht nur gestaucht */
@media (max-width: 720px) {
  .kopf { padding-top: 12px; }
  .pille { height: 56px; padding: 0 8px 0 18px; }
  .logo { height: 26px; }
  .menue { display: none; }
  .marke { margin-right: auto; }
  .cta { height: 40px; padding: 0 16px; }
  .held { padding-top: 56px; }
  .suche input { height: 58px; }
  .karte { padding-bottom: 22px; }
  .karte-bild { height: 156px; }
  .ich { padding: 22px; column-gap: 20px; }
  .portrait { width: 88px; height: 88px; border-radius: 26px; }
  .zurueck { padding-top: 28px; }
  .kopf-block h1 { font-size: clamp(1.9rem, 9.2vw, 3.4rem); max-width: none; }
  .schritte ol { grid-template-columns: 1fr; }
  .aktionen { width: 100%; flex-direction: column; }
  .aktionen .knopf { width: 100%; }
  .prompt-kopf { padding-left: 18px; }
  .prompt pre { padding: 10px 18px 22px; font-size: .8rem; }
  .prompt-box.offen pre { max-height: 420px; }
  summary { padding: 16px 20px; }
  .online p { padding-left: 20px; padding-right: 20px; }
  .fuss nav { grid-template-columns: 1fr 1fr; }
  body.hat-leiste .fuss { padding-bottom: 96px; }
}
