/* Supremeclean Links – eine Spalte, Handy zuerst. Dunkel ist Standard, hell per Systemeinstellung oder Schalter. */

@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/fonts/inter-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('/fonts/inter-500-latin.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('/fonts/inter-600-latin.woff2') format('woff2'); }

:root {
  --bg:        #0D1117;
  --surface:   #161C25;
  --surface-2: #1D2532;
  --border:    rgba(255, 255, 255, 0.09);
  --ink:       #E6EDF3;
  --muted:     #9DA9B6;
  --brand:     #4D6FFF;          /* Logoblau, für dunklen Grund aufgehellt */
  --brand-glow: rgba(0, 46, 255, 0.38);
  --wa:        #25D366;
  --wa-ink:    #062A16;
  --star:      #F5B301;
  --shadow:    0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
  --ease:      cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}
[data-theme="light"] { --bg: #F5F7FC; --surface: #FFFFFF; --surface-2: #EEF2FA; --border: rgba(10, 25, 70, 0.11); --ink: #0D1117; --muted: #55627A; --brand: #002EFF; --brand-glow: rgba(0, 46, 255, 0.12); --shadow: 0 1px 2px rgba(10,25,70,.06), 0 8px 24px -12px rgba(10,25,70,.18); color-scheme: light; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) { --bg: #F5F7FC; --surface: #FFFFFF; --surface-2: #EEF2FA; --border: rgba(10, 25, 70, 0.11); --ink: #0D1117; --muted: #55627A; --brand: #002EFF; --brand-glow: rgba(0, 46, 255, 0.12); --shadow: 0 1px 2px rgba(10,25,70,.06), 0 8px 24px -12px rgba(10,25,70,.18); color-scheme: light; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  font: 400 1rem/1.5 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  background-image: radial-gradient(70% 38% at 50% -6%, var(--brand-glow), transparent 72%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

.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; }

.page {
  max-width: 460px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(56px + env(safe-area-inset-top)) 20px calc(28px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

/* Kopf */
.hero { text-align: center; padding-bottom: 28px; }
.logo { display: none; width: min(100%, 320px); height: auto; margin: 0 auto; }
:root:not([data-theme="light"]) .logo--dark { display: block; }
[data-theme="light"] .logo--light { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .logo--dark { display: none; }
  :root:not([data-theme]) .logo--light { display: block; }
}
.tagline { max-width: 34ch; margin: 6px auto 0; font-weight: 500; color: var(--muted); text-wrap: balance; }

/* Buttons */
.links { display: flex; flex-direction: column; gap: 12px; }
.btn {
  display: flex; align-items: center; gap: 14px;
  min-height: 60px; padding: 12px 16px 12px 18px;
  border: 1px solid var(--border); border-radius: 16px;
  background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .15s var(--ease), background-color .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.982); }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.btn__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.btn__label { font-weight: 600; font-size: 1.0625rem; line-height: 1.3; }
.btn__hint { font-size: .8125rem; line-height: 1.35; color: var(--muted); overflow-wrap: anywhere; }
.ico { flex: none; width: 22px; height: 22px; }
.btn > .ico:first-child { color: var(--brand); }
.btn > .ico:last-child { width: 18px; height: 18px; color: var(--muted); }

.btn--primary {
  min-height: 72px; padding-left: 20px;
  background: var(--wa); color: var(--wa-ink); border-color: transparent;
  box-shadow: 0 1px 2px rgba(0,0,0,.25), 0 14px 32px -12px rgba(37, 211, 102, .55);
}
.btn--primary > .ico:first-child { width: 30px; height: 30px; color: inherit; }
.btn--primary > .ico:last-child { color: inherit; opacity: .75; }
.btn--primary .btn__label { font-size: 1.125rem; }
.btn--primary .btn__hint { color: inherit; opacity: .8; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn--split { justify-content: center; min-height: 56px; padding: 10px 12px; }
.btn--split .btn__label { font-size: 1rem; }
.btn--split .ico { color: var(--brand); }

.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.btn--google > .ico:first-child { color: var(--star); fill: currentColor; }

.btn--soon { opacity: .55; border-style: dashed; box-shadow: none; cursor: default; }
.btn--soon > .ico:first-child { color: var(--muted); }
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 9px; border-radius: 999px;
  font-size: .75rem; font-weight: 600; letter-spacing: .01em;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
}
.badge .ico { width: 13px; height: 13px; }

@media (hover: hover) and (pointer: fine) {
  .btn--row:hover, .btn--split:hover { background: var(--surface-2); border-color: color-mix(in oklab, var(--brand) 45%, var(--border)); transform: translateY(-1px); }
  .btn--primary:hover { transform: translateY(-1px); box-shadow: 0 1px 2px rgba(0,0,0,.25), 0 18px 36px -12px rgba(37, 211, 102, .7); }
  .btn--soon:hover { transform: none; }
}

/* Fuß */
.foot { margin-top: auto; padding-top: 36px; text-align: center; font-size: .8125rem; color: var(--muted); }
.foot p { margin: 0 0 6px; }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.foot a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in oklab, currentColor 40%, transparent); }
.foot a:hover { color: var(--ink); }
.foot a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* Hell/Dunkel-Schalter */
.theme-toggle {
  position: fixed; z-index: 10;
  top: calc(12px + env(safe-area-inset-top)); right: calc(12px + env(safe-area-inset-right));
  width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--muted);
  box-shadow: var(--shadow); cursor: pointer;
  transition: color .2s, background-color .2s;
}
.theme-toggle:hover { color: var(--ink); }
.theme-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.theme-toggle span { grid-area: 1 / 1; display: grid; transition: opacity .25s, transform .35s var(--ease); }
.theme-toggle .ico { width: 20px; height: 20px; }
.theme-toggle__sun { opacity: 1; transform: rotate(0) scale(1); }
.theme-toggle__moon { opacity: 0; transform: rotate(-60deg) scale(.6); }
[data-theme="light"] .theme-toggle__sun { opacity: 0; transform: rotate(60deg) scale(.6); }
[data-theme="light"] .theme-toggle__moon { opacity: 1; transform: rotate(0) scale(1); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-toggle__sun { opacity: 0; transform: rotate(60deg) scale(.6); }
  :root:not([data-theme]) .theme-toggle__moon { opacity: 1; transform: rotate(0) scale(1); }
}

/* Einstieg: Kopf zuerst, dann die Buttons von oben nach unten */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero, .links > *, .rows > li, .foot { animation: rise .6s var(--ease) both; }
.links > .btn--primary { animation-delay: .08s; }
.links > .split { animation-delay: .14s; }
.rows { animation: none; }
.rows > li:nth-child(1) { animation-delay: .20s; }
.rows > li:nth-child(2) { animation-delay: .25s; }
.rows > li:nth-child(3) { animation-delay: .30s; }
.rows > li:nth-child(4) { animation-delay: .35s; }
.rows > li:nth-child(5) { animation-delay: .40s; }
.rows > li:nth-child(6) { animation-delay: .45s; }
.rows > li:nth-child(n+7) { animation-delay: .50s; }
.foot { animation-delay: .55s; }
@media (prefers-reduced-motion: reduce) {
  .hero, .links > *, .rows > li, .foot { animation: none; }
  .btn, .theme-toggle span { transition: none; }
}

/* Etwas mehr Luft auf großen Bildschirmen */
@media (min-width: 640px) {
  .page { padding-top: calc(72px + env(safe-area-inset-top)); }
  .hero { padding-bottom: 36px; }
  .logo { width: 340px; }
}
