/* sortless – Landing. Marke der App (sortless/web/index.html): tiefer Violett-Verlauf,
   Glasflächen, Pink nur für Kauf-Aktionen, nur dunkel. Überall die Systemschrift,
   Überschriften halbfett und eng. Nichts wird von fremden Servern geladen. */

:root {
  color-scheme: dark;
  --grund: #1E0B3D;
  --flaeche: #2C1456;
  --tinte: #fff;
  --leise: rgba(255, 255, 255, .78);
  --linie: rgba(255, 255, 255, .16);
  --glas: rgba(255, 255, 255, .06);
  --glanz: 0 0 transparent;
  --ordnerblau: #7CC4FF;
  --kauf: #D81B72;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}
@media (prefers-contrast: more) { :root { --leise: #fff; --linie: rgba(255, 255, 255, .5); } }

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { min-height: 100svh; color: var(--tinte); font: 400 18px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip;
  background:
    radial-gradient(800px 640px at 88% 6%, rgba(216, 27, 114, .26), transparent 65%),
    radial-gradient(900px 760px at -10% 42%, rgba(70, 40, 190, .34), transparent 62%),
    radial-gradient(800px 700px at 100% 88%, rgba(120, 30, 150, .3), transparent 62%),
    linear-gradient(170deg, #24104F 0%, #3A1470 40%, #2A0F58 75%, var(--grund) 100%) var(--grund);
  background-attachment: fixed;  /* das Lila-Pink bleibt im Fenster, auch auf einer langen Seite */
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #CDE8FF; }
:focus-visible { outline: 3px solid rgba(255, 255, 255, .75); outline-offset: 3px; border-radius: 6px; }
h1, h2 { font-family: var(--sans); font-weight: 600; letter-spacing: -.03em; text-wrap: balance; }
h2 { font-size: clamp(36px, 5.6vw, 80px); line-height: 1.04; margin-bottom: 40px; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 600; }
p { text-wrap: pretty; }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 760px) { .wrap { padding-inline: 40px; } }
.schmal { max-width: 760px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--flaeche); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* Knöpfe: flach, Pink nur für Kaufen */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; text-decoration: none; cursor: pointer;
       font: 600 16px/1.2 var(--sans); color: var(--tinte); border: 0; border-radius: 999px; padding: 12px 22px; min-height: 48px; transition: background-color .15s, transform .1s; }
.btn:hover { color: var(--tinte); }
.btn:active { transform: scale(.98); }
.btn-kauf { background: #C21062; /* Weiß darauf 5,9:1 */ }
.btn-kauf:hover { background: #D4186F; }
.btn-kauf:active { background: #A80B54; }
.btn-kauf:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-glas { background: rgba(255, 255, 255, .1); box-shadow: var(--glanz); }
.btn-glas:hover { background: rgba(255, 255, 255, .16); }
.btn-gross { font-size: 17px; padding: 14px 28px; min-height: 54px; }
.btn-klein { font-size: 15px; padding: 8px 18px; min-height: 40px; }

/* Kopfzeile: über die ganze Breite, ohne Kasten: links die Marke, rechts Kaufen. Der Verlauf hält beide lesbar, wenn Inhalt darunter durchläuft. */
header.kopf { display: block; position: fixed; top: 0; left: 0; right: 0; z-index: 20; padding: 14px 20px 44px; pointer-events: none; background: linear-gradient(rgba(30, 11, 61, .92), rgba(30, 11, 61, .55) 55%, rgba(30, 11, 61, 0)); }
@media (min-width: 760px) { header.kopf { padding-inline: max(40px, calc((100% - 1360px) / 2)); } }
.kopf-pille { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.marke img { width: 118px; height: auto; }
main { padding-top: 72px; }
main:has(.hero) { padding-top: 0; }

/* Abschnitte: der Abstand zwischen zwei Abschnitten ist deutlich größer als jeder Abstand darin */
.abschnitt { padding: 96px 0; }
@media (min-width: 900px) {
  .abschnitt { padding: 160px 0; }
}

/* So geht's: echte Reihenfolge, daher nummeriert */
.schritte { list-style: none; padding: 0; display: grid; gap: 36px; counter-reset: schritt; }
.schritte li { counter-increment: schritt; }
.schritte img { border-radius: 14px; margin-bottom: 18px; }
.schritte h3 { font: 400 24px/1.2 var(--sans); display: flex; align-items: baseline; gap: 12px; }
.schritte h3::before { content: counter(schritt); font-size: 40px; line-height: 1; color: var(--ordnerblau); }
.schritte p { margin-top: 8px; color: var(--leise); }
@media (min-width: 900px) { .schritte { grid-template-columns: repeat(2, 1fr); gap: 28px; } }

/* Ordnung, die bleibt */

/* Flächen: ein Tonschritt statt Glas, Rahmen und Schatten */
.glas { background: var(--glas); border-radius: 24px; }
#kaufen { background: var(--glas); }
#datenschutz-kurz .glas, #kaufen .glas { background: none; border-radius: 0; }

/* Voraussetzungen */
.voraussetzung { font-size: 16px; color: var(--leise); }
#voraussetzungen { margin-top: 24px; display: grid; gap: 6px; scroll-margin-top: 90px; }
.haken { list-style: none; padding: 0; display: grid; gap: 14px; }
.haken li { position: relative; padding-left: 34px; }
.haken li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: rgba(124, 196, 255, .18)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237CC4FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.nur-mobil { margin-top: 24px; color: var(--leise); }
@media (min-width: 900px) { .nur-mobil { display: none; } }

/* FAQ */
.faq-spalte { max-width: 900px; }
.faq-spalte h2 { text-align: center; }
.faq { border-top: 1px solid var(--linie); }
.faq details { border-bottom: 1px solid var(--linie); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font-weight: 600; font-size: 20px; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font: 400 28px/1 var(--sans); color: var(--ordnerblau); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 24px; color: var(--leise); max-width: 62ch; }

/* Kaufen: zentriert */
.kauf { max-width: 640px; margin-inline: auto; text-align: center; }
.kauf h2 { margin-bottom: 16px; }
.preis { font: 600 clamp(56px, 8vw, 104px)/1 var(--sans); letter-spacing: -.03em; }
.kauf-sub { margin-top: 12px; color: var(--leise); }
.zustimmung { display: flex; gap: 12px; align-items: flex-start; text-align: left; margin: 32px 0 24px; font-size: 16px; color: var(--leise); }
.zustimmung input { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--kauf); cursor: pointer; }
.zustimmung label { cursor: pointer; }
.kauf .btn { width: 100%; }
.kauf-fehler { min-height: 1.5em; margin-top: 12px; font-size: 15px; color: #FFC2DC; }
.kauf-fein { font-size: 15px; color: var(--leise); }

/* Danke-Seite */
.ergebnis { padding: 36px 22px; text-align: center; }
.ergebnis h1 { font-size: clamp(32px, 7vw, 44px); margin: 14px 0 12px; }
.ergebnis > p { color: var(--leise); }
.ergebnis-ico { width: 56px; height: 56px; padding: 12px; border-radius: 50%; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ergebnis-ico.gut { stroke: #7CF0B8; background: rgba(124, 240, 184, .14); }
.ergebnis-ico.schlecht { stroke: #FFB3CF; background: rgba(255, 179, 207, .14); }
.aktionen { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 26px 0; }
.ergebnis .hinweis { font-size: 15px; }
@media (max-width: 559px) { .aktionen .btn { width: 100%; } }

/* Rechtsseiten (und Grundformen für die Installationsseite) */
.legal { padding: 48px 0 72px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font: 400 clamp(32px, 7vw, 44px)/1.1 var(--sans); margin: 18px 0 24px; }
.legal h2 { font-size: 24px; margin: 36px 0 12px; }
.legal h3 { margin: 22px 0 8px; }
.legal p, .legal li { color: var(--leise); }
.legal p + p, .legal ul, .legal ol { margin-top: 12px; }
.back { font-size: 15px; color: var(--leise); }
.section { padding: 56px 0; }
.h2 { margin-bottom: 16px; }
.lede, .sub { color: var(--leise); max-width: 40em; }
.kbd { font: 500 .9em ui-monospace, "SF Mono", Menlo, monospace; background: rgba(255, 255, 255, .1); padding: 1px 6px; border-radius: 6px; }

/* Fuß */
.fuss { padding: 48px 0 56px; font-size: 15px; }
.fuss-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.fuss-links a { color: var(--leise); }
.fuss-hinweis { margin-top: 16px; color: var(--leise); font-size: 14px; }
.fuss-hinweis + .fuss-hinweis { margin-top: 4px; }

/* Installationsseite */
.installation ol { padding-left: 1.4em; display: grid; gap: 8px; }
.installation ul { padding-left: 1.2em; display: grid; gap: 8px; }
.inst-bild { margin: 20px 0 0; }
.inst-bild img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--linie); }
.inst-bild.klein img { max-width: 340px; }
.inst-bild.mittel img { max-width: 520px; }
li .inst-bild { margin: 12px 0 8px; }
