/* raptyx.app – Farbwelt Kupfer (docs/DESIGN.md, E113). Ein eigenes Skript (rechner.js, CSP script-src 'self'), keine fremden Schriften. */
:root {
  color-scheme: dark;
  --bg: #111417; --card: #1C2126; --card2: #262D34; --sunken: #171B1F; --line: #323B44;
  --text: #F4F6F8; --muted: #AEB8C2; --inactive: #8A96A2;
  --accent: #FF7A59; --on-accent: #2B0E05; --accent-light: #FFB4A1; --accent-dark: #B8563F; --accent-fill: #3A231C;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 17px/1.55 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 20px; top: 12px; z-index: 50; padding: 10px 14px; border-radius: 12px; background: var(--accent); color: var(--on-accent); }

/* Kopf */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 900; letter-spacing: -.01em; text-decoration: none; }
.nav { display: flex; gap: 24px; margin-left: 12px; }
.nav a { color: var(--muted); font-size: 15px; font-weight: 700; text-decoration: none; }
.nav a:hover { color: var(--text); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang { color: var(--muted); font-size: 14px; font-weight: 800; text-decoration: none; padding: 6px 10px; border-radius: 10px; background: var(--card); }
.lang:hover { color: var(--text); }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 14px; font-size: 16px; font-weight: 900; text-decoration: none; white-space: nowrap; }
.btn.small { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-light); }
.btn.ghost { background: var(--card2); color: var(--text); }
.btn.ghost:hover { background: var(--line); }
.btn.soon { background: var(--card2); color: var(--text); cursor: default; flex-direction: column; gap: 0; height: 58px; padding: 0 22px; align-items: flex-start; }
.btn.soon small { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-light); }
.btn.soon span { font-size: 17px; }

/* Typo */
.kicker { margin: 0 0 14px; color: var(--accent); font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; letter-spacing: -.025em; }
h1 { font-size: clamp(42px, 5.2vw, 68px); line-height: 1; font-weight: 900; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.05; font-weight: 900; }
h3 { font-size: 21px; font-weight: 900; letter-spacing: -.01em; }
.lead { margin: 22px 0 0; max-width: 560px; color: var(--muted); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; font-weight: 600; }
.muted { color: var(--muted); }

/* Hero */
.hero { position: relative; padding: 84px 0 40px; overflow: hidden; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }
.fine { margin: 18px 0 0; color: var(--inactive); font-size: 14px; font-weight: 700; }
.phones { position: relative; height: 640px; }
.phone { position: absolute; width: 290px; border-radius: 46px; padding: 10px; background: #0A0C0E; box-shadow: 0 0 0 1.5px #2C343C, 0 40px 80px rgba(0, 0, 0, .55); }
.phone img { width: 100%; border-radius: 37px; aspect-ratio: 598 / 1300; object-fit: cover; background: var(--card); }
.phone.center { left: 50%; top: 0; transform: translateX(-50%); z-index: 3; }
.phone.left { left: 0; top: 70px; transform: rotate(-7deg) scale(.86); opacity: .9; z-index: 1; }
.phone.right { right: 0; top: 70px; transform: rotate(7deg) scale(.86); opacity: .9; z-index: 2; }

/* Vertrauen */
.trust { padding: 30px 0 10px; }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.trust li { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 18px; background: var(--card); font-size: 15px; font-weight: 800; line-height: 1.3; }
.trust svg { flex: none; color: var(--accent); }

/* Abschnitte */
section.block { padding: 110px 0 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.split.flip .shots { order: -1; }
.shots { display: flex; justify-content: center; gap: 22px; }
.shots .phone { position: relative; width: 280px; }
.shots .phone + .phone { margin-top: 80px; }
.points { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 18px; }
.points li { display: grid; grid-template-columns: 14px 1fr; gap: 4px 16px; }
.points li::before { content: ''; grid-row: span 2; width: 11px; height: 11px; margin-top: 8px; transform: rotate(45deg); border-radius: 3px; background: var(--accent); }
.points b { font-size: 17px; font-weight: 900; }
.points span { color: var(--muted); font-size: 16px; }

/* Rangleiter */
.ladder { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.ladder li { display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 10px; border-radius: 14px; background: var(--card); font-size: 14px; font-weight: 900; }
.ladder li i { display: block; height: 5px; border-radius: 3px; }
.ladder li small { color: var(--inactive); font-size: 11px; font-weight: 800; }

/* Karten-Raster */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
.card { padding: 24px; border-radius: 22px; background: var(--card); }
.card svg { color: var(--accent); }
.card h3 { margin: 16px 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.center-head { text-align: center; max-width: 760px; margin-inline: auto; }
.center-head .lead { margin-inline: auto; }

/* Datenschutz-Band */
.privacy { margin-top: 110px; padding: 72px 0; background: var(--sunken); }
.privacy .grid3 .card { background: var(--card); }

/* FAQ */
.faq { max-width: 820px; margin: 40px auto 0; display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: var(--card); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-size: 18px; font-weight: 900; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 10px; height: 10px; border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details p { margin: 0; padding: 0 22px 22px; color: var(--muted); font-size: 16px; }

/* Abschluss */
.final { margin-top: 110px; padding: 80px 0 90px; text-align: center; }
.final .mark { margin: 0 auto 22px; }
.final .cta { justify-content: center; }

/* Fuß */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--inactive); font-size: 14px; font-weight: 700; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* Rechtliche Seiten */
.page { max-width: 760px; padding: 64px 0 90px; }
.page h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 26px; }
.page h2 { font-size: 22px; margin: 34px 0 8px; letter-spacing: -.01em; }
.page p, .page li { color: var(--muted); font-size: 16px; }
.page a { color: var(--accent-light); }

@media (max-width: 1060px) {
  .nav { display: none; }
  .hero .wrap, .split { grid-template-columns: minmax(0, 1fr); }
  .split.flip .shots { order: 0; }
  .phones { height: 560px; max-width: 560px; width: 100%; margin: 10px auto 0; }
  .phone { width: 250px; }
  .trust ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { gap: 48px; }
}
@media (max-width: 640px) {
  .top .wrap { gap: 12px; }
  .top .btn { display: none; }
  .hero { padding-top: 48px; }
  .phones { height: 470px; }
  .phone { width: 210px; border-radius: 36px; padding: 8px; }
  .phone img { border-radius: 29px; }
  .phone.left { left: -10px; } .phone.right { right: -10px; }
  .trust ul, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .shots { gap: 12px; }
  .shots .phone { width: 48%; }
  .shots .phone + .phone { margin-top: 40px; }
  .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  section.block { padding-top: 80px; }
  .btn.soon, .cta .btn { width: 100%; }
}

/* Rangrechner (E138) */
[hidden] { display: none !important; }
.rechner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 12px; margin-top: 40px; align-items: start; }
.rechner-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 24px; border-radius: 22px; background: var(--card); }
.rechner-form label { display: grid; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rechner-form .wide { grid-column: 1 / -1; }
.rechner-form input, .rechner-form select { width: 100%; height: 52px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--card2); color: var(--text); font: 700 17px/1 inherit; letter-spacing: 0; text-transform: none; appearance: none; -webkit-appearance: none; }
.rechner-form select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.rechner-form input::placeholder { color: var(--inactive); }
.rechner-result { padding: 24px; border-radius: 22px; background: var(--card); min-height: 200px; display: grid; align-content: center; }
.rechner-empty, .rechner-off { margin: 0; color: var(--muted); font-size: 16px; font-weight: 700; text-align: center; }
.rechner-off { margin-top: 32px; }
.rechner-out p { margin: 14px 0 0; color: var(--muted); font-size: 16px; }
.rechner-out.err { color: var(--accent-light); font-weight: 800; }
.rank-line { display: flex; align-items: center; gap: 20px; }
.rank-line i { flex: none; width: 22px; height: 22px; margin-left: 6px; transform: rotate(45deg); border-radius: 6px; }
.rank-line small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rank-line strong { display: block; font-size: clamp(30px, 5vw, 42px); font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.meter { height: 8px; margin-top: 20px; border-radius: 4px; background: var(--card2); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: 4px; }
.fine.center { max-width: 760px; margin-inline: auto; text-align: center; }
@media (max-width: 860px) { .rechner { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .rechner-form { grid-template-columns: 1fr; padding: 18px; } .rechner-result { padding: 18px; } }

/* Athleten-Seite und Formular (E139) */
.h1-page { margin: 0 0 18px; font-size: clamp(36px, 5.5vw, 60px); font-weight: 900; letter-spacing: -.02em; line-height: 1.05; }
.h1-page em { font-style: normal; color: var(--accent); }
.cta.center { justify-content: center; margin-top: 28px; }
.athlete-form { max-width: 720px; margin: 36px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 24px; border-radius: 22px; background: var(--card); }
.athlete-form label { display: grid; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.athlete-form .wide { grid-column: 1 / -1; }
.athlete-form input:not([type="checkbox"]), .athlete-form select, .athlete-form textarea { width: 100%; padding: 0 16px; border: 0; border-radius: 14px; background: var(--card2); color: var(--text); font: 700 17px/1.4 inherit; letter-spacing: 0; text-transform: none; }
.athlete-form input:not([type="checkbox"]), .athlete-form select { height: 52px; appearance: none; -webkit-appearance: none; }
.athlete-form select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.athlete-form textarea { padding: 14px 16px; min-height: 140px; resize: vertical; }
.athlete-form .check { grid-template-columns: 22px 1fr; align-items: start; gap: 12px; text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; line-height: 1.5; }
.athlete-form .check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.athlete-form .check a { color: var(--accent-light); }
.athlete-form .btn { width: 100%; border: 0; cursor: pointer; font-family: inherit; }
.athlete-form .btn:disabled { opacity: .6; cursor: default; }
/* Honigtopf: für Menschen unsichtbar und nicht erreichbar, Bots füllen es aus */
.athlete-form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { max-width: 720px; margin: 20px auto 0; padding: 16px 20px; border-radius: 16px; background: var(--card); font-weight: 700; }
.form-status.ok { background: var(--accent-fill); color: var(--accent-light); }
.form-status.err { color: var(--accent-light); box-shadow: inset 0 0 0 2px var(--accent-dark); }
@media (max-width: 640px) { .athlete-form { grid-template-columns: 1fr; padding: 18px; } }

/* Creator-Zugang (E140) */
.portal { padding: 40px 0 80px; max-width: 880px; }
.portal-tag { margin-left: 10px; padding: 3px 9px; border-radius: 8px; background: var(--accent-fill); color: var(--accent-light); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.portal-card { padding: 22px; border-radius: 22px; background: var(--card); margin-bottom: 12px; }
.portal-card h1 { margin: 0 0 8px; }
.portal-card h2 { margin: 0 0 12px; font-size: 20px; font-weight: 900; letter-spacing: -.01em; }
button.btn { border: 0; cursor: pointer; font-family: inherit; }
.portal-h1 { margin: 4px 0 18px; font-size: clamp(30px, 5vw, 44px); font-weight: 900; letter-spacing: -.02em; }
.portal-label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.portal-form { display: grid; gap: 14px; margin-top: 18px; max-width: 460px; }
.portal-form label { display: grid; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.portal-form input, .portal-copy input { height: 52px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--card2); color: var(--text); font: 700 17px/1 inherit; letter-spacing: 0; text-transform: none; min-width: 0; width: 100%; }
.portal-form .btn, .portal-copy .btn { border: 0; cursor: pointer; font-family: inherit; }
.portal-copy { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.portal-range { display: flex; gap: 8px; margin: 18px 0 12px; }
.portal-range button { height: 40px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--card); color: var(--muted); font: 800 14px/1 inherit; cursor: pointer; }
.portal-range button[aria-checked="true"] { background: var(--accent); color: var(--on-accent); }
.portal-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.portal-kpis .portal-card { margin-bottom: 12px; }
.portal-kpis b { display: block; font-size: 38px; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.portal-kpis small { color: var(--muted); font-size: 13px; }
.portal-chart { width: 100%; height: 160px; display: block; }
.portal-chart .bar { fill: var(--accent); }
.portal-chart .bar.empty { fill: var(--card2); }
.portal-sources { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.portal-sources li { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 12px; background: var(--card2); }
@media (max-width: 640px) { .portal-kpis { grid-template-columns: 1fr; } .portal-copy { grid-template-columns: 1fr; } }
.portal-card h3 { margin: 18px 0 6px; font-size: 16px; font-weight: 900; }
.portal-secret { display: block; margin: 10px 0; padding: 14px 16px; border-radius: 14px; background: var(--card2); font: 700 16px/1.4 ui-monospace, Menlo, monospace; letter-spacing: .06em; word-break: break-all; user-select: all; }
#security .btn, .portal-card > .btn { margin: 4px 0; }
#security .portal-form { margin-top: 14px; }
.portal-range button { cursor: pointer; }
.portal-form[hidden], .portal-form label[hidden] { display: none; }

/* Creator-Banner (E141) */
.creator-banner { background: var(--accent-fill); border-bottom: 1px solid var(--accent-dark); }
.creator-banner[hidden] { display: none; }
.creator-banner .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; padding-top: 14px; padding-bottom: 14px; }
.creator-banner p { margin: 0; font-weight: 700; }
.creator-banner b, .creator-banner code { color: var(--accent-light); }
.creator-banner code { padding: 4px 10px; border-radius: 8px; background: var(--card); font: 800 16px/1 ui-monospace, Menlo, monospace; letter-spacing: .05em; }
.creator-banner small { flex-basis: 100%; color: var(--muted); font-size: 13px; }
.creator-banner .btn { border: 0; cursor: pointer; font-family: inherit; margin-left: 6px; }

.portal-card .portal-range { margin: 16px 0 6px; }
.portal-card .portal-range button { background: var(--card2); }
.portal-card .portal-range button[aria-checked="true"] { background: var(--accent); }
