/* startsichtbar.de – Grundlage für Website und Kundenbereich */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 var(--gr-m)/1.6 var(--schrift-text); color: var(--tinte); background: var(--papier); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--pitaya-tief); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--pitaya); color: var(--tinte); }
:focus-visible { outline: 3px solid var(--tinte); outline-offset: 3px; border-radius: 4px; }
.abschluss :focus-visible, .fuss :focus-visible, .dunkel :focus-visible { outline-color: var(--hell); }
[hidden] { display: none !important; }

.nur-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.sprung { position: absolute; left: var(--a-4); top: -5rem; z-index: 100; padding: var(--a-3) var(--a-4); background: var(--tinte); color: var(--hell); border-radius: var(--r-s); font-weight: 700; }
.sprung:focus { top: var(--a-4); }

/* Schrift */
.titel-3xl, .titel-2xl, .titel-xl, .titel-l { font-family: var(--schrift-titel); font-weight: 800; letter-spacing: -0.025em; line-height: 1.02; text-wrap: balance; }
.titel-3xl { font-size: var(--gr-3xl); letter-spacing: -0.03em; line-height: 1; }
.titel-2xl { font-size: var(--gr-2xl); }
.titel-xl { font-size: var(--gr-xl); line-height: 1.1; }
.titel-l { font-size: var(--gr-l); line-height: 1.2; letter-spacing: -0.01em; font-weight: 700; }
.dachzeile { font-size: var(--gr-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pitaya-tief); }
.vorspann { font-size: var(--gr-l); line-height: 1.5; color: var(--tinte-weich); max-width: 38rem; text-wrap: pretty; }
.klein { font-size: var(--gr-s); color: var(--tinte-weich); }

/* Wortmarke */
.wortmarke { display: inline-flex; align-items: center; gap: 0.5rem; font: 800 1.3rem/1 var(--schrift-titel); letter-spacing: -0.03em; color: var(--tinte); }
.wortmarke b { font-weight: inherit; color: var(--pitaya-tief); }
.wortmarke__zeichen { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--pitaya); position: relative; overflow: hidden; flex: none; display: inline-block; }
.wortmarke__zeichen::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; background: var(--tinte); }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; gap: 0.75rem; min-height: 3.25rem; padding: 0.5rem 0.5rem 0.5rem 1.5rem; border: 0; border-radius: var(--r-rund); font-weight: 700; font-size: var(--gr-m); line-height: 1.15; text-decoration: none; transition: transform var(--dauer) var(--weich), background-color var(--dauer) var(--weich), color var(--dauer) var(--weich); }
.knopf > span:first-child:last-child { padding-right: 1rem; }
.knopf__pfeil { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: oklch(1 0 0 / 0.22); transition: transform var(--dauer) var(--weich); flex: none; }
.knopf:hover .knopf__pfeil { transform: translateX(3px); }
.knopf:active { transform: scale(0.98); }
.knopf--haupt { background: var(--pitaya-tief); color: var(--hell); }
.knopf--haupt:hover { background: var(--tinte); }
.knopf--tinte { background: var(--tinte); color: var(--hell); }
.knopf--tinte:hover { background: oklch(0.3 0.05 345); }
.knopf--hell { background: var(--hell); color: var(--tinte); }
.knopf--hell .knopf__pfeil, .knopf--rand .knopf__pfeil { background: oklch(0.2 0.035 345 / 0.08); }
.knopf--rand { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; padding-right: 1.5rem; }
.knopf--rand:hover { background: oklch(0.2 0.035 345 / 0.07); }
.knopf--klein { min-height: 2.75rem; padding: 0.4rem 1.15rem; font-size: var(--gr-s); }
.knopf--klein > span:first-child:last-child { padding-right: 0; }
.knopf--gefahr { background: var(--glut); color: var(--hell); padding-right: 1.5rem; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: var(--a-3); align-items: center; }
.textknopf { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; padding: 0 0.25rem; background: none; border: 0; color: var(--pitaya-tief); font-weight: 700; text-decoration: underline; text-underline-offset: 0.2em; }

/* Marken (kleine Status-Etiketten) */
.marke { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.6rem; border-radius: var(--r-rund); font-size: var(--gr-xs); font-weight: 700; line-height: 1.3; white-space: nowrap; background: var(--papier-tief); color: var(--tinte); }
.marke::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--tinte-fern); }
.marke--minze { background: var(--minze); } .marke--minze::before { background: var(--minze-tief); }
.marke--butter { background: var(--butter); } .marke--butter::before { background: var(--bernstein-tief); }
.marke--glut { background: var(--glut-hauch); color: oklch(0.4 0.16 28); } .marke--glut::before { background: var(--glut); }
.marke--demo { background: var(--tinte); color: var(--hell); letter-spacing: 0.04em; text-transform: uppercase; } .marke--demo::before { display: none; }

/* Formulare */
.feld { display: grid; gap: 0.4rem; margin-bottom: var(--a-5); }
.feld > label, .feld > .feld__name { font-weight: 700; font-size: var(--gr-s); }
.feld input[type="text"], .feld input[type="email"], .feld input[type="password"], .feld input[type="tel"], .feld input[type="url"], .feld input[type="number"], .feld input[type="time"], .feld input[type="date"], .feld select, .feld textarea {
  width: 100%; min-height: 3.1rem; padding: 0.7rem 0.95rem; border: 1.5px solid oklch(0.62 0.03 345); border-radius: var(--r-m); background: oklch(1 0 0); color: var(--tinte); transition: border-color 160ms, box-shadow 160ms; }
.feld textarea { min-height: 8rem; resize: vertical; }
.feld input:hover, .feld select:hover, .feld textarea:hover { border-color: var(--tinte); }
.feld input:focus-visible, .feld select:focus-visible, .feld textarea:focus-visible { outline: none; border-color: var(--pitaya-tief); box-shadow: 0 0 0 3px oklch(0.67 0.235 3 / 0.35); }
.feld__hilfe { font-size: var(--gr-xs); color: var(--tinte-weich); }
.feld__fehler { font-size: var(--gr-s); font-weight: 700; color: oklch(0.45 0.18 28); }
.feld--fehler input, .feld--fehler textarea { border-color: var(--glut); }
.haken { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; margin-bottom: var(--a-5); font-size: var(--gr-s); }
.haken input { width: 1.4rem; height: 1.4rem; margin: 0.1rem 0 0; accent-color: var(--pitaya-tief); }
.honig { position: absolute; left: -200vw; width: 1px; height: 1px; overflow: hidden; }
.schalter { position: relative; display: inline-flex; align-items: center; gap: 0.75rem; min-height: 2.75rem; font-weight: 500; cursor: pointer; }
.schalter input { position: absolute; opacity: 0; width: 3rem; height: 1.75rem; margin: 0; cursor: pointer; }
.schalter__bahn { width: 3rem; height: 1.75rem; border-radius: 999px; background: oklch(0.62 0.03 345); position: relative; flex: none; transition: background-color 200ms; }
.schalter__bahn::after { content: ""; position: absolute; left: 0.2rem; top: 0.2rem; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: oklch(1 0 0); transition: transform 240ms var(--weich); }
.schalter input:checked + .schalter__bahn { background: var(--minze-tief); }
.schalter input:checked + .schalter__bahn::after { transform: translateX(1.25rem); }
.schalter input:focus-visible + .schalter__bahn { outline: 3px solid var(--tinte); outline-offset: 3px; }

.meldung { padding: 0.9rem 1.1rem; border-radius: var(--r-m); margin-bottom: var(--a-5); font-weight: 500; background: var(--minze); color: var(--tinte); }
.meldung--fehler { background: var(--glut-hauch); color: oklch(0.36 0.15 28); }
.meldung--hinweis { background: var(--butter); }

/* Stilisiertes Hochformat-Video */
.videokachel { --vk: oklch(0.88 0.06 20); position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-m); overflow: hidden; background: linear-gradient(165deg, color-mix(in oklch, var(--vk) 70%, white), var(--vk) 55%, color-mix(in oklch, var(--vk) 78%, black)); display: grid; place-items: center; isolation: isolate; }
.videokachel__ding { width: 46%; aspect-ratio: 1; border-radius: 32% 38% 34% 40%; background: color-mix(in oklch, var(--vk) 45%, white); display: grid; place-items: center; font: 800 clamp(1.4rem, 9cqi, 3rem)/1 var(--schrift-titel); color: color-mix(in oklch, var(--vk) 40%, black); box-shadow: 0 12px 24px -10px color-mix(in oklch, var(--vk) 30%, black); transform: rotate(-6deg); }
.videokachel__werbung { position: absolute; left: 6%; top: 4.5%; padding: 0.15em 0.55em; border-radius: 0.4em; background: oklch(0.2 0.035 345 / 0.78); color: var(--hell); font-size: clamp(0.5rem, 5cqi, 0.7rem); font-weight: 700; letter-spacing: 0.03em; }
.videokachel__karte { position: absolute; left: 7%; right: 7%; bottom: 7%; padding: 0.5em 0.65em; border-radius: 0.6em; background: var(--hell); color: var(--tinte); font: 700 clamp(0.56rem, 6cqi, 0.82rem)/1.2 var(--schrift-text); box-shadow: 0 6px 14px -6px oklch(0.2 0.035 345 / 0.5); transform: rotate(-1.5deg); }
.videokachel { container-type: inline-size; }

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

/* Kachel mit echtem Beispielbild */
.videokachel > .videokachel__bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block !important; }
.videokachel--bild::after { content: ""; position: absolute; inset: 55% 0 0 0; background: linear-gradient(to top, oklch(0.2 0.035 345 / 0.45), transparent); pointer-events: none; }
.videokachel--bild .videokachel__karte, .videokachel--bild .videokachel__werbung { z-index: 1; }
/* Plattform-Zeichen in Markenfarbe */
.kanalzeichen { display: inline-grid; place-items: center; flex: none; width: 1.9em; height: 1.9em; border-radius: 30%; background: var(--kz); color: #fff; }
.kanalzeichen .zeichen { width: 58%; height: 58%; }

.videokachel__pause { position: absolute; right: 6%; top: 4%; z-index: 2; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: oklch(0.2 0.035 345 / 0.7); cursor: pointer; display: grid; place-items: center; }
.videokachel__pause span { width: 0.8rem; height: 0.9rem; border-left: 0.28rem solid #fff; border-right: 0.28rem solid #fff; }
.videokachel__pause[aria-pressed="true"] span { width: 0; height: 0; border: 0.5rem solid transparent; border-left: 0.8rem solid #fff; border-right: 0; margin-left: 0.2rem; }
.videokachel__pause:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
