/*
Theme Name: kWhat?
Theme URI: https://kwhat.de
Author: H.Gekle
Description: Website zur App kWhat? – im selben Design wie die App (Farbverläufe je Rubrik, Glas-Karten, Illustrationen). Startseite mit kurzer Erklärung und kostenlosem Download. Ohne Plugins, ohne externe Schriften.
Version: 1.3.0
Requires at least: 6.4
Requires PHP: 7.4
License: All rights reserved
Text Domain: kwhat
*/

/* =====================================================================
   Design-Tokens (identisch mit der App)
   ===================================================================== */
:root {
  color-scheme: dark;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --text: #fff;
  --text-2: rgba(255,255,255,.74);
  --text-3: rgba(255,255,255,.52);
  --glass: rgba(255,255,255,.075);
  --glass-strong: rgba(255,255,255,.13);
  --glass-border: rgba(255,255,255,.15);
  --blur: saturate(160%) blur(22px);
  --r-lg: 24px; --r: 16px;

  --g-uebersicht: linear-gradient(140deg, #2a0b52 0%, #6a1599 45%, #c21f7a 100%);
  --t-uebersicht: linear-gradient(140deg, #ff6fc8, #9a33ff);
  --g-ladungen: linear-gradient(140deg, #031f2e 0%, #075866 48%, #0f9d7a 100%);
  --t-ladungen: linear-gradient(140deg, #3dffc4, #0aa5c9);
  --g-fahrzeuge: linear-gradient(140deg, #070f3a 0%, #142f96 50%, #2f6bff 100%);
  --t-fahrzeuge: linear-gradient(140deg, #6cb6ff, #3d5afe);
  --g-tarife: linear-gradient(140deg, #2a0710 0%, #8f1f2a 45%, #f06a2c 100%);
  --t-tarife: linear-gradient(140deg, #ffc14d, #ff4f6a);
  --g-einstellungen: linear-gradient(140deg, #0e0f24 0%, #24264f 50%, #4a4790 100%);
  --t-einstellungen: linear-gradient(140deg, #a9b2ff, #6a5cff);
}

/* =====================================================================
   Grundlagen
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: #12081f; color: var(--text); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.03em; line-height: 1.08; margin: 0; }
p { margin: 0; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; position: relative; }
.wrap.narrow { width: min(820px, 100% - 48px); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: #1a0f2e; padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 10px; }
::selection { background: rgba(255,122,217,.45); }

section { position: relative; overflow: hidden; }
.sec-uebersicht { background: var(--g-uebersicht); }
.sec-einstellungen { background: var(--g-einstellungen); }
.glow { position: absolute; inset: 0; pointer-events: none; }
.glow::before, .glow::after { content: ""; position: absolute; border-radius: 50%; filter: blur(90px); }
.sec-uebersicht .glow::before { width: 60vw; height: 60vw; right: -15vw; top: -25vw; background: #ff4fc0; opacity: .45; }
.sec-uebersicht .glow::after { width: 50vw; height: 50vw; left: -10vw; bottom: -30vw; background: #4b1fd1; opacity: .5; }
.sec-einstellungen .glow::before { width: 50vw; height: 50vw; right: -15vw; top: -20vw; background: #7a6cff; opacity: .45; }
.sec-einstellungen .glow::after { width: 40vw; height: 40vw; left: -10vw; bottom: -20vw; background: #1f8aa8; opacity: .35; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 650; letter-spacing: .02em; color: var(--text-2); }
.tile { width: 30px; height: 30px; border-radius: 9px; display: inline-grid; place-items: center; flex: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 12px rgba(0,0,0,.25); }
.tile svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.tile svg.fill { fill: #fff; stroke: none; }
.t-uebersicht { background: var(--t-uebersicht); } .t-ladungen { background: var(--t-ladungen); }
.t-fahrzeuge { background: var(--t-fahrzeuge); } .t-tarife { background: var(--t-tarife); } .t-einstellungen { background: var(--t-einstellungen); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 650; border-radius: 14px; padding: 12px 20px;
  border: 1px solid transparent; transition: transform .18s cubic-bezier(.2,.8,.2,1), background .18s, box-shadow .18s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-2px); }
.btn-light { background: #fff; color: #1a0f2e; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.btn-light:hover { box-shadow: 0 14px 40px rgba(0,0,0,.3), 0 0 40px rgba(255,122,217,.35); }
.btn-glass { background: var(--glass); border-color: var(--glass-border); color: #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn-glass:hover { background: var(--glass-strong); }
.btn-lg { padding: 15px 26px; font-size: 17px; border-radius: 16px; }
.btn-sm { padding: 8px 15px; font-size: 14.5px; border-radius: 12px; }
.btn-sm svg { width: 16px; height: 16px; }

/* =====================================================================
   Kopfzeile
   ===================================================================== */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(18,8,31,.55); border-color: rgba(255,255,255,.08); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.admin-bar .site-header { top: 32px; }
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font: 750 21px/1 var(--font-display); letter-spacing: -.02em; }
.brand img { border-radius: 10px; box-shadow: 0 6px 18px rgba(160,51,255,.45); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--text-2); font-weight: 550; font-size: 15.5px; transition: color .15s; }
.nav-links a:hover { color: #fff; }

/* =====================================================================
   Hero
   ===================================================================== */
.hero { padding: 150px 0 110px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6vw, 76px); font-weight: 800; margin: 18px 0 20px; }
.grad { background: linear-gradient(100deg, #ffd1f0, #ff7ad9 40%, #ffd35a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 560px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 32px 0 16px; }
.fine { color: var(--text-3); font-size: 14px; }
.hero-visual { position: relative; }
.hero-orb { position: absolute; width: 42%; max-width: 230px; left: -12%; bottom: -16%; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); z-index: 2; }

/* App-Fenster */
.window { position: relative; border-radius: 16px; overflow: hidden; background: #1a0c30;
  box-shadow: 0 50px 100px rgba(10,0,30,.55), 0 0 0 1px rgba(255,255,255,.14), inset 0 1px 0 rgba(255,255,255,.2); }
.window { container-type: inline-size; }
.win-bar { position: absolute; top: 0; left: 0; z-index: 2; display: flex; gap: .75cqw; padding: 1.25cqw 1.45cqw; }
.win-bar i { width: 1.1cqw; height: 1.1cqw; min-width: 6px; min-height: 6px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.25); }
.win-bar i:nth-child(2) { background: #febc2e; } .win-bar i:nth-child(3) { background: #28c840; }
.window img { width: 100%; }
.hero .window { transform: perspective(1600px) rotateY(-8deg) rotateX(3deg); transform-origin: left center; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.hero .window:hover { transform: none; }

/* =====================================================================
   Abschnittsköpfe
   ===================================================================== */
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.sec-head h2 { font-size: clamp(32px, 4.2vw, 52px); font-weight: 800; margin: 12px 0 14px; }
.sec-head p { color: var(--text-2); font-size: 18px; }
.sec-head .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12.5px; }

/* =====================================================================
   Funktionen
   ===================================================================== */
.features { padding: 120px 0; background: radial-gradient(1200px 600px at 50% 0%, #3a1170 0%, transparent 70%), linear-gradient(180deg, #1a0a33, #0f0a24); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { position: relative; border-radius: var(--r-lg); padding: 26px 24px 28px; overflow: hidden; isolation: isolate;
  border: 1px solid var(--glass-border); box-shadow: 0 20px 50px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.12);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .9; }
.card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.35)); }
.c-ladungen::before { background: var(--g-ladungen); } .c-fahrzeuge::before { background: var(--g-fahrzeuge); }
.c-tarife::before { background: var(--g-tarife); } .c-einstellungen::before { background: var(--g-einstellungen); }
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 70px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.18); }
.card-illu { width: 78%; margin: -6px auto 14px; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.card:hover .card-illu { transform: translateY(-6px) scale(1.04); }
.card h3 { font-size: 21px; font-weight: 750; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 15.5px; line-height: 1.55; }

/* =====================================================================
   Einblick / So geht's
   ===================================================================== */
.tour { padding: 120px 0; }
.tour-bg { position: absolute; inset: 0; }
.tour-bg > div { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.tour-bg > div.on { opacity: 1; }
.tour-bg .b-uebersicht { background: var(--g-uebersicht); } .tour-bg .b-ladungen { background: var(--g-ladungen); }
.tour-bg .b-fahrzeuge { background: var(--g-fahrzeuge); } .tour-bg .b-tarife { background: var(--g-tarife); }
.tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: -20px auto 30px; padding: 6px; width: fit-content; max-width: 100%;
  background: rgba(0,0,0,.2); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.tabs button { display: inline-flex; align-items: center; gap: 9px; border: 0; background: transparent; color: var(--text-2); font: 600 15px var(--font);
  padding: 7px 16px 7px 8px; border-radius: 13px; cursor: pointer; transition: background .2s, color .2s; }
.tabs button .tile { width: 26px; height: 26px; border-radius: 8px; }
.tabs button .tile svg { width: 14px; height: 14px; }
.tabs button:hover { color: #fff; background: rgba(255,255,255,.08); }
.tabs button[aria-selected="true"] { background: rgba(255,255,255,.18); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.window.big { max-width: 1080px; margin: 0 auto; }
.shots { position: relative; aspect-ratio: 2000 / 1250; }
.shots img { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease, transform .6s ease; transform: scale(1.01); }
.shots img.on { opacity: 1; transform: none; }
.steps { list-style: none; padding: 0; margin: 56px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1080px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--r-lg); background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.12); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.steps b { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 800 18px var(--font-display);
  background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.6), rgba(255,255,255,.12) 45%), var(--t-uebersicht); box-shadow: 0 0 0 5px rgba(255,255,255,.08), 0 0 24px rgba(255,122,217,.45); }
.steps h3 { font-size: 18px; font-weight: 700; margin: 6px 0 6px; }
.steps p { color: var(--text-2); font-size: 15px; line-height: 1.5; }

/* =====================================================================
   Download
   ===================================================================== */
.download { padding: 110px 0 120px; }
.dl-orb { width: 170px; margin: -10px auto 4px; filter: drop-shadow(0 26px 34px rgba(0,0,0,.3)); }
.dl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dl { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: var(--r-lg); text-decoration: none;
  background: var(--glass); border: 1px solid var(--glass-border); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: 0 14px 40px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.1); transition: transform .3s cubic-bezier(.2,.8,.2,1), background .3s, box-shadow .3s; }
.dl:hover { transform: translateY(-5px); background: var(--glass-strong); }
.dl .tile { width: 44px; height: 44px; border-radius: 13px; margin-bottom: 14px; }
.dl .tile svg { width: 22px; height: 22px; }
.dl-t { font: 750 19px/1.2 var(--font-display); letter-spacing: -.02em; }
.dl-s { color: var(--text-2); font-size: 14px; }
.dl-b { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 15px; color: #fff;
  padding: 9px 14px; border-radius: 11px; background: rgba(255,255,255,.12); width: fit-content; transition: background .2s, color .2s; }
.dl-b svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dl:hover .dl-b { background: #fff; color: #1a0f2e; }
.dl.recommended { background: rgba(255,255,255,.17); border-color: rgba(255,255,255,.4); box-shadow: 0 20px 50px rgba(0,0,0,.25), 0 0 0 1px rgba(255,255,255,.2), 0 0 50px rgba(255,122,217,.35); }
.dl.recommended .dl-b { background: #fff; color: #1a0f2e; }
.dl.recommended::before { content: "Empfohlen für dich"; position: absolute; top: 18px; right: 18px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
  padding: 3px 10px; border-radius: 99px; background: rgba(109,255,196,.18); color: #6dffc4; box-shadow: inset 0 0 0 1px rgba(109,255,196,.3); }
/* Download-Formular (Registrierung) */
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dl-step { display: flex; align-items: center; gap: 10px; font: 700 17px var(--font-display); margin: 0 0 14px; color: #fff; }
.dl-step b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.dl-form .dl-grid + .dl-step { margin-top: 30px; }
label.dl { cursor: pointer; }
.dl .when-on { display: none; }
.dl:has(input:checked), .dl.selected { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.6); box-shadow: 0 20px 50px rgba(0,0,0,.25), 0 0 0 2px #fff, 0 0 50px rgba(255,122,217,.45); transform: translateY(-5px); }
.dl:has(input:checked) .when-on, .dl.selected .when-on { display: inline; }
.dl:has(input:checked) .when-off, .dl.selected .when-off { display: none; }
.dl:has(input:checked) .dl-b, .dl.selected .dl-b { background: #fff; color: #1a0f2e; }
.dl:has(input:focus-visible) { outline: 3px solid #fff; outline-offset: 3px; }
.glass-lite { padding: 22px; border-radius: var(--r-lg); background: rgba(0,0,0,.2); border: 1px solid rgba(255,255,255,.14); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.dl-row { display: flex; gap: 12px; }
.dl-row input[type=email] { flex: 1; min-width: 0; font: 500 17px var(--font); color: #fff; padding: 14px 18px; border-radius: 16px; border: 1px solid rgba(255,255,255,.22); background: rgba(0,0,0,.25); outline: none; transition: border-color .2s, box-shadow .2s; }
.dl-row input[type=email]::placeholder { color: rgba(255,255,255,.4); }
.dl-row input[type=email]:focus { border-color: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.15); }
.dl-row .btn { border: 0; cursor: pointer; font-family: var(--font); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: #ff6fc8; flex: none; }
.consent a { color: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { max-width: 760px; margin: -24px auto 30px; padding: 14px 18px 14px 50px; border-radius: 16px; font-weight: 600; position: relative; }
.form-msg::before { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; }
.form-msg.ok { background: rgba(46,230,168,.18); color: #b6ffe4; box-shadow: inset 0 0 0 1px rgba(109,255,196,.4); }
.form-msg.ok::before { content: "✓"; background: #2ee6a8; color: #04302a; }
.form-msg.err { background: rgba(255,80,110,.2); color: #ffd0d8; box-shadow: inset 0 0 0 1px rgba(255,143,163,.45); }
.form-msg.err::before { content: "!"; background: #ff5a77; color: #fff; }
.dl-help { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; color: var(--text-2); font-size: 14.5px; }
.dl-help > div { padding: 16px 18px; border-radius: var(--r); background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.1); }
.dl-help b { color: #fff; }

/* =====================================================================
   Unterseiten (Impressum, Datenschutz …)
   ===================================================================== */
.subpage { position: relative; overflow: hidden; padding: 140px 0 100px; min-height: 80vh; }
.glass { background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--r-lg); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: 0 20px 50px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.1); padding: clamp(24px, 4vw, 48px); position: relative; }
.prose h1 { font-size: clamp(32px, 4vw, 46px); font-weight: 800; margin-bottom: 24px; }
.prose h2 { font-size: 24px; margin: 32px 0 10px; } .prose h3 { font-size: 19px; margin: 24px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; color: var(--text-2); }
.prose a { color: #ff9be3; }
.prose img { border-radius: 12px; }

/* =====================================================================
   Fußzeile
   ===================================================================== */
.site-footer { background: #0c0618; border-top: 1px solid rgba(255,255,255,.08); padding: 40px 0; }
.foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.foot .brand { font-size: 18px; }
.foot-claim { color: var(--text-3); font-size: 14.5px; }
.foot-links { display: flex; gap: 20px; margin-left: auto; }
.foot-links a { color: var(--text-2); text-decoration: none; font-size: 14.5px; }
.foot-links a:hover { color: #fff; }
.copy { color: var(--text-3); font-size: 13.5px; width: 100%; }

/* =====================================================================
   Bewegung
   ===================================================================== */
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.8,.2,1) var(--d, 0s), transform .8s cubic-bezier(.2,.8,.2,1) var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   Kleinere Bildschirme
   ===================================================================== */
@media (max-width: 1080px) {
  .cards, .dl-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { padding: 120px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero .window { transform: none; }
  .hero-orb { width: 120px; left: auto; right: -8px; bottom: -40px; }
  .steps, .dl-help { grid-template-columns: 1fr; }
  .features, .tour { padding: 90px 0; }
}
@media (max-width: 560px) {
  .dl-row { flex-direction: column; }
  .dl-row .btn { justify-content: center; }
  .cards, .dl-grid { grid-template-columns: 1fr; }
  .cta .btn { width: 100%; justify-content: center; }
  .tabs button { padding: 6px 10px 6px 6px; font-size: 14px; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
