/* Stundio Website (Startseite, Preise, Rechtliches, Hilfe)
   Nach Apples Human Interface Guidelines: Systemschrift, klare Hierarchie, eine Akzentfarbe, semantische Farben,
   gruppierte Listen, Dunkelmodus, 44-pt-Tippflächen, Material nur für die Navigationsleiste.
   Bewegung nach Emil Kowalski: nur transform/opacity, kräftige ease-out-Kurven, unter 300 ms für Bedienelemente.
   Lädt keine externen Schriften. Die App selbst nutzt weiterhin style.css. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-2: #f5f5f7;            /* gruppierter Hintergrund */
  --card: #ffffff;
  --label: #1d1d1f;
  --label-2: #5c5c62;         /* Nebentext, 6:1 auf Weiss */
  --label-3: #6e6e73;         /* Fussnoten, 4.9:1 auf Weiss */
  --sep: rgba(60, 60, 67, .16);
  --fill: rgba(120, 120, 128, .12);
  --tint: #4a2fe0;            /* Stundio-Violett, einzige Akzentfarbe */
  --tint-press: #3a22c4;
  --tint-soft: rgba(74, 47, 224, .09);
  --on-tint: #ffffff;
  --green: #248a3d;
  --orange: #c93400;
  --bar: rgba(255, 255, 255, .72);
  --bar-edge: rgba(0, 0, 0, .1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --w: 1060px;
  --gutter: clamp(20px, 5vw, 40px);
  --r-l: 22px;                /* grosse Flächen */
  --r-m: 14px;                /* Listen, Felder */

  /* Bewegung: feste Kurven und Dauern (emil-design-eng) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-press: 160ms;
  --dur-ui: 200ms;
  --dur-move: 250ms;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-2: #101012;
    --card: #1c1c1e;
    --label: #f5f5f7;
    --label-2: #aeaeb2;
    --label-3: #8e8e93;
    --sep: rgba(84, 84, 88, .6);
    --fill: rgba(118, 118, 128, .24);
    --tint: #9d8fff;
    --tint-press: #b6abff;
    --tint-soft: rgba(157, 143, 255, .16);
    --on-tint: #12092e;
    --green: #30d158;
    --orange: #ff9f0a;
    --bar: rgba(22, 22, 24, .72);
    --bar-edge: rgba(255, 255, 255, .12);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body.site {
  margin: 0; background: var(--bg); color: var(--label);
  font: 400 1.0625rem/1.47 var(--font); letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.site a { color: var(--tint); text-decoration: none; }
.site :focus-visible { outline: 3px solid var(--tint); outline-offset: 3px; border-radius: 6px; }
.w { max-width: var(--w); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--card); padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 12px; }

/* Typografie: Stufen nach den HIG-Textstilen. Laufweite je Grösse: gross = enger, klein = neutral */
.t-hero { font-size: clamp(2.125rem, 1rem + 5.2vw, 4.75rem); line-height: 1.05; font-weight: 700; letter-spacing: -.028em; margin: 0; text-wrap: balance; }
.t-large { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.08; font-weight: 700; letter-spacing: -.024em; margin: 0 0 .4em; text-wrap: balance; }
.t-title2 { font-size: 1.75rem; line-height: 1.14; font-weight: 700; letter-spacing: -.02em; margin: 0 0 .35em; }
.t-title3 { font-size: 1.375rem; line-height: 1.2; font-weight: 600; letter-spacing: -.017em; margin: 0 0 .4em; }
.t-headline { font-size: 1.0625rem; line-height: 1.3; font-weight: 600; margin: 0 0 .2em; }
.t-lead { font-size: clamp(1.1875rem, 2vw, 1.375rem); line-height: 1.42; letter-spacing: -.016em; color: var(--label-2); margin: 0; max-width: 34em; text-wrap: pretty; }
.t-body { margin: 0; color: var(--label-2); text-wrap: pretty; }
.t-foot { font-size: .8125rem; line-height: 1.4; color: var(--label-3); letter-spacing: -.004em; }

/* Knöpfe: Kapsel, mind. 44 pt. Feedback sofort beim Drücken, Loslassen federt weich zurück */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px;
       border-radius: 999px; border: 0; font: 600 1.0625rem/1 var(--font); letter-spacing: -.01em; cursor: pointer;
       text-decoration: none; white-space: nowrap; -webkit-tap-highlight-color: transparent;
       transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-ui) ease; }
.btn:active { transform: scale(.97); }
.btn-fill { background: var(--tint); color: var(--on-tint); }
.btn-tinted { background: var(--tint-soft); color: var(--tint); }
.btn-l { min-height: 52px; padding: 0 28px; font-size: 1.125rem; }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: .9375rem; }
.site a.btn-fill { color: var(--on-tint); }
.link-more { font-weight: 500; display: inline-flex; align-items: center; min-height: 44px; }
.link-more::after { content: ""; width: .45em; height: .45em; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); margin-left: 6px; }
@media (hover: hover) and (pointer: fine) {
  .site a:not(.btn):not(.marke):hover { text-decoration: underline; text-underline-offset: 3px; }
  .btn-fill:hover { background: var(--tint-press); }
  .btn-tinted:hover { background: color-mix(in srgb, var(--tint) 16%, transparent); }
}

/* Navigationsleiste: einziges Material der Seite. Die Kante erscheint erst, wenn Inhalt darunter liegt */
.bar { position: sticky; top: 0; z-index: 50; background: var(--bar);
       -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--bar-edge);
              opacity: 0; transition: opacity var(--dur-ui) ease; pointer-events: none; }
.bar.is-scrolled::after { opacity: 1; }
@media (prefers-reduced-transparency: reduce) { .bar { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-contrast: more) { .bar { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } .bar::after { opacity: 1; background: var(--label-3); } :root { --sep: rgba(60, 60, 67, .45); } }
.bar-in { max-width: var(--w); margin: 0 auto; padding: 0 var(--gutter); height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.marke { display: inline-flex; align-items: center; gap: 8px; color: var(--label); font-weight: 700; font-size: 1.1875rem; letter-spacing: -.03em; min-height: 44px; }
.site a.marke { color: var(--label); }
.marke svg { color: var(--tint); flex: none; }
.bar nav { display: flex; align-items: center; gap: 4px; }
.site .bar nav a:not(.btn) { color: var(--label); font-size: .9375rem; padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 10px; text-decoration: none; transition: background-color var(--dur-ui) ease; }
.site .bar nav a[aria-current="page"] { color: var(--tint); }
.bar nav .btn { margin-left: 8px; }
@media (hover: hover) and (pointer: fine) { .site .bar nav a:not(.btn):hover { background: var(--fill); } }
@media (max-width: 560px) { .bar .hide-s { display: none !important; } .bar nav .btn { margin-left: 4px; } }

/* Abschnitte */
.sec { padding: clamp(72px, 10vw, 120px) 0; }
.sec-2 { background: var(--bg-2); }
.sec-head { max-width: 40em; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head .t-body { font-size: 1.1875rem; }

/* Gruppierte Liste (iOS-Einstellungen) */
.group { background: var(--card); border-radius: var(--r-m); overflow: hidden; margin: 0; padding: 0; list-style: none; }
.sec:not(.sec-2) .group { background: var(--bg-2); }
.row { display: flex; align-items: center; gap: 14px; padding: 13px 18px; min-height: 52px; position: relative; }
.row + .row::before { content: ""; position: absolute; top: 0; right: 0; left: 18px; border-top: 1px solid var(--sep); }
.row .main { flex: 1; min-width: 0; }
.row .main b { display: block; font-weight: 600; }
.row .main span { display: block; color: var(--label-2); font-size: .9375rem; }
.row .val { text-align: right; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.row .val small { display: block; font-weight: 400; color: var(--label-3); font-size: .8125rem; }
.group-title { font-size: .9375rem; color: var(--label-2); margin: 32px 18px 8px; font-weight: 500; }
.group-title:first-child { margin-top: 0; }
@media (max-width: 560px) { .row { align-items: flex-start; } }

/* Fragen: aufklappbare Zeilen. Zeile hellt beim Drücken sofort auf und blendet weich zurück */
.faq { max-width: 760px; }
.faq details { position: relative; }
.faq details + details::before { content: ""; position: absolute; top: 0; right: 0; left: 18px; border-top: 1px solid var(--sep); }
.faq summary { list-style: none; cursor: pointer; padding: 15px 52px 15px 18px; min-height: 52px; font-weight: 600; position: relative;
               -webkit-tap-highlight-color: transparent; transition: background-color var(--dur-ui) ease; }
.faq summary:active { background: var(--fill); transition-duration: 0s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border: solid var(--label-3);
                      border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform var(--dur-ui) var(--ease-out); }
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq details > p { margin: 0; padding: 0 18px 18px; color: var(--label-2);
                   transition: opacity var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out); }
@starting-style { .faq details[open] > p { opacity: 0; transform: translateY(-4px); } }

/* Lade-Moment: einmal beim Öffnen, leicht versetzt. Klicken geht sofort */
.rise { animation: rise 400ms var(--ease-out) backwards; }
.rise-2 { animation-delay: 60ms; } .rise-3 { animation-delay: 120ms; } .rise-4 { animation-delay: 180ms; } .rise-5 { animation-delay: 240ms; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Fusszeile */
.fuss { background: var(--bg-2); border-top: 1px solid var(--sep); padding: 40px 0 48px; font-size: .8125rem; color: var(--label-3); }
.fuss .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.fuss .marke { font-size: 1.0625rem; }
.fuss p { margin: 6px 0 0; max-width: 24em; }
.fuss h2 { font-size: .8125rem; font-weight: 600; color: var(--label); margin: 0 0 8px; letter-spacing: 0; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.site .fuss li a { color: var(--label-2); display: inline-block; padding: 4px 0; }
.fuss .fine { border-top: 1px solid var(--sep); margin-top: 28px; padding-top: 16px; max-width: none; }
@media (max-width: 720px) { .fuss .cols { grid-template-columns: 1fr 1fr; } .fuss .cols > :first-child { grid-column: 1 / -1; } .site .fuss li a { padding: 10px 0; } }

/* Lesetexte (Rechtliches, Hilfe) */
.doc { max-width: 720px; margin: 0 auto; padding: clamp(40px, 7vw, 72px) var(--gutter) 88px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.1; font-weight: 700; letter-spacing: -.024em; margin: 0 0 10px; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
.doc .stand { color: var(--label-3); margin: 0 0 40px; font-size: .9375rem; }
.doc h2 { font-size: 1.375rem; font-weight: 600; letter-spacing: -.017em; margin: 44px 0 10px; }
.doc h3 { font-size: 1.0625rem; font-weight: 600; margin: 24px 0 6px; }
.doc p, .doc li { color: var(--label-2); overflow-wrap: break-word; hyphens: auto; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc b, .doc strong { color: var(--label); }
.doc .kasten { background: var(--bg-2); border-radius: var(--r-m); padding: 18px 20px; margin: 24px 0; }
.doc .kasten p { margin: 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: .9375rem; margin: 12px 0; }
.doc th, .doc td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--sep); vertical-align: top; color: var(--label-2); }
.doc th { color: var(--label); font-weight: 600; }
.doc .tbl { overflow-x: auto; }
@media print { .bar, .fuss, .skip { display: none; } .doc { padding: 0; } body.site { background: #fff; color: #000; } }

/* Bewegung reduzieren: keine Verschiebung, nur Überblenden bleibt */
@media (prefers-reduced-motion: reduce) {
  .btn:active { transform: none; }
  .rise { animation-name: fade; animation-duration: 200ms; }
  .faq summary::after { transition: none; }
  @starting-style { .faq details[open] > p { opacity: 0; transform: none; } }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
