/* SetUp Landing: Design-Tokens, Basis und Bausteine. Hell/Dunkel folgt dem Gerät. */

/* Schrift: Archivo variabel, selbst gehostet (SIL OFL) */
@font-face{font-family:'Archivo';font-style:normal;font-weight:400 800;font-display:swap;src:url(../fonts/Archivo-normal-latinext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Archivo';font-style:normal;font-weight:400 800;font-display:swap;src:url(../fonts/Archivo-normal-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Archivo';font-style:italic;font-weight:400 800;font-display:swap;src:url(../fonts/Archivo-italic-latinext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Archivo';font-style:italic;font-weight:400 800;font-display:swap;src:url(../fonts/Archivo-italic-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* Tokens: dunkel ist der Standard */
:root{
  --ease-out:cubic-bezier(0.23,1,0.32,1);
  --bg:#0C0A12;--bg-card:#1C1A24;--bg-tile:#2F2A40;--bg-tile-pressed:#3A3450;
  --line:#2E2B3A;--line-strong:#4A4560;
  --text-1:#FFFFFF;--text-2:#A6A3B3;
  --brand:#8B45E6;--brand-pressed:#7A36D4;--brand-text:#AE88F7;--brand-soft:#2A1F45;--on-brand:#FFFFFF;
  --focus-ring:#AE88F7;--phone-frame:#1C1A24;
  --header-bg:rgba(12,10,18,0.78);--header-line:rgba(255,255,255,0.08);
  --segment-thumb:#4A4560;--tabbar-bg:rgba(28,26,36,0.88);--tabbar-line:rgba(255,255,255,0.08);
  --surface-hard:#2D5B8C;--surface-clay:#A8482A;--surface-grass:#2F6B3F;--surface-carpet:#1F7A7A;
  --court-line:rgba(255,255,255,0.26);
  color-scheme:dark;
}
@media (prefers-color-scheme:light){
  :root{
    --bg:#F6F4FA;--bg-card:#FFFFFF;--bg-tile:#EEE8FA;--bg-tile-pressed:#E3DAF5;
    --line:#E3DDEE;--line-strong:#C9C1D9;
    --text-1:#14111C;--text-2:#5E5970;
    --brand:#7020C8;--brand-pressed:#5E18AD;--brand-text:#6018B0;--brand-soft:#EFE6FB;
    --focus-ring:#7020C8;--phone-frame:#14111C;
    --header-bg:rgba(246,244,250,0.80);--header-line:rgba(20,17,28,0.08);
    --segment-thumb:#FFFFFF;--tabbar-bg:rgba(255,255,255,0.90);--tabbar-line:rgba(20,17,28,0.08);
    color-scheme:light;
  }
}

/* Basis */
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text-1);font-family:'Archivo',-apple-system,system-ui,sans-serif;font-size:16px;line-height:24px;font-variant-numeric:tabular-nums;-webkit-font-smoothing:antialiased}
.su-root{width:100%;min-height:100%;background:var(--bg);color:var(--text-1);font-family:'Archivo',-apple-system,system-ui,sans-serif;font-size:16px;line-height:24px;font-variant-numeric:tabular-nums}
.su-root *,.su-root *::before,.su-root *::after{box-sizing:border-box}
.su-root a{text-decoration:none}
.su-root button{font-family:inherit}
.su-root h1,.su-root h2,.su-root h3{text-wrap:balance}
.su-root p{text-wrap:pretty}
.su-root section[id]{scroll-margin-top:80px}
.su-root [hidden]{display:none !important}
.su-root picture{display:block}

/* WordPress-Rahmen neutralisieren */
.wp-site-blocks{padding:0}
.wp-site-blocks>*{margin-block-start:0}

/* Fokus */
.su-root a:focus-visible,.su-root button:focus-visible{outline:2px solid var(--focus-ring);outline-offset:3px}
.su-root .on-brand a:focus-visible{outline-color:#FFFFFF}

/* Skip-Link */
.skip{position:absolute;left:-9999px;top:12px;z-index:40;height:44px;display:inline-flex;align-items:center;padding:0 20px;border-radius:999px;background:var(--brand);color:var(--on-brand);font-size:15px;font-weight:600}
.skip:focus{left:16px}

/* Header: schwebende Ebene */
.site-header{position:sticky;top:0;z-index:20;background:var(--header-bg);-webkit-backdrop-filter:blur(20px) saturate(180%);backdrop-filter:blur(20px) saturate(180%);border-bottom:1px solid var(--header-line)}
body.admin-bar .site-header{top:32px}
@media (max-width:782px){body.admin-bar .site-header{top:46px}}

/* Buttons: nur transform und Farbe */
.btn{transition:transform 160ms var(--ease-out),background-color 160ms ease,color 160ms ease}
.btn:active{transform:scale(0.97)}

/* Sprachumschalter und Tab-Leiste */
.su-lang{height:44px;display:inline-flex;align-items:center;border-radius:999px;background:var(--bg-tile);border:1px solid var(--line-strong);margin:0 4px 0 8px}
.lang-btn{height:44px;min-width:44px;padding:0 12px;border:0;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;color:var(--text-2);background:transparent}
.lang-btn[aria-current="true"]{background:var(--brand-soft);color:var(--brand-text)}
.tab-btn{flex:1;height:44px;padding:0;border:0;border-radius:999px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:10px;line-height:12px;font-weight:600;cursor:pointer;background:transparent;color:var(--text-2)}
.tab-btn[aria-current="page"]{background:var(--brand-soft);color:var(--brand-text)}

/* Klickflächen über der Tab-Leiste im App-Screenshot */
.hs{position:absolute;top:0;height:100%;padding:0;border:0;border-radius:999px;background:transparent;cursor:pointer;-webkit-tap-highlight-color:transparent}
.hs:focus-visible{outline:2px solid var(--focus-ring);outline-offset:-3px}

/* Hover nur auf Geräten mit Maus */
@media (hover:hover) and (pointer:fine){
  .btn-primary:hover{background:var(--brand-pressed) !important}
  .btn-secondary:hover{background:var(--bg-tile-pressed) !important}
  .btn-white:hover{background:#EFE6FB !important}
  .nav-link:hover{color:var(--text-1) !important}
  .foot-link:hover{color:var(--text-1) !important;text-decoration:underline}
  .hs:not([aria-current="page"]):hover{background:rgba(255,255,255,0.07)}
  .lang-btn:not([aria-current="true"]):hover{color:var(--text-1)}
}

/* Einstieg: kurz gestaffelt, nur Hero */
@keyframes rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes fade{from{opacity:0}to{opacity:1}}
@keyframes screenIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.rise{animation:rise 480ms var(--ease-out) both}
.screen-in{animation:screenIn 220ms var(--ease-out) both}

/* FAQ */
.su-root details>summary{list-style:none;cursor:pointer}
.su-root details>summary::-webkit-details-marker{display:none}
.su-root details>summary:focus-visible{outline:2px solid var(--focus-ring);outline-offset:3px;border-radius:20px}
.plus{flex:0 0 auto;transition:transform 200ms var(--ease-out)}
details[open] .plus{transform:rotate(45deg)}
.text-link{color:var(--brand-text);text-decoration:underline;text-underline-offset:3px}

@media (max-width:700px){.hide-sm{display:none !important}}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .plus{transition:none}
  .rise{animation:fade 200ms ease both;animation-delay:0ms !important}
  .screen-in{animation:fade 150ms ease both}
  .btn{transition:background-color 160ms ease,color 160ms ease}
  .btn:active{transform:none}
}
@media (prefers-reduced-transparency:reduce){
  .site-header{background:var(--bg) !important;-webkit-backdrop-filter:none;backdrop-filter:none}
}

/* Einfache Seiten (404, sonstige) */
.su-plain{max-width:720px;margin:0 auto;padding:96px 20px;color:var(--text-1)}
.su-plain a{color:var(--brand-text);text-decoration:underline;text-underline-offset:3px}

/* Lange Namen in der App-Vorschau kürzen statt überlappen */
.su-root [data-screen] div[style*="flex:1;min-width:0"] > div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
