/* RudelLink – Website
   Farben = Material-3-Palette der App (Seed #0A5FA5 „FRITZ!-Blau“), hell + dunkel,
   runde Material-Formen, Systemschrift. Keine externen Ressourcen, kein Inline-CSS/JS
   (die strenge CSP der Einstiegsseite gilt auch hier). */

:root {
  --brand: #0A5FA5;
  --primary: #2A5F98;
  --on-primary: #FFFFFF;
  --primary-container: #D3E3FF;
  --on-primary-container: #001C38;
  --secondary-container: #D7E3F7;
  --tertiary-container: #F2DAFF;
  --bg: #F8F9FF;
  --surface: #FFFFFF;
  --surface-container: #ECEEF4;
  --surface-high: #E1E2E9;
  --text: #191C20;
  --text-muted: #43474E;
  --outline: #C3C6CF;
  --ok: #2E7D32;
  --shadow: 0 1px 2px rgba(0, 28, 56, .08), 0 8px 24px rgba(0, 28, 56, .08);
  --radius: 28px;
  --radius-sm: 16px;
  --maxw: 1140px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #A2C9FF; --on-primary: #00315C;
    --primary-container: #0D4A85; --on-primary-container: #D3E3FF;
    --secondary-container: #3B4858; --tertiary-container: #573E68;
    --bg: #111418; --surface: #191C20; --surface-container: #1D2024; --surface-high: #32353A;
    --text: #E1E2E8; --text-muted: #C3C6CF; --outline: #43474E; --ok: #81C784;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--primary); }
a:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
section { padding: 72px 0; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 44em; }
.muted { color: var(--text-muted); }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--surface); padding: .5rem 1rem; }

/* Kopf (wie die App-Leiste) */
.topbar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--outline); }
.topbar .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.1rem; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--primary); }
.nav .lang { border: 1.5px solid var(--outline); border-radius: 999px; padding: 2px 10px; font-size: .82rem; letter-spacing: .06em; }
@media (max-width: 760px) { .nav a:not(.lang) { display: none; } }

/* Buttons (Material 3) */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 1.5px solid transparent; }
.btn-filled { background: var(--primary); color: var(--on-primary); }
.btn-filled:hover { filter: brightness(1.08); }
.btn-outlined { border-color: var(--outline); color: var(--primary); }
.btn-outlined:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.btn small { font-weight: 600; opacity: .8; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Aufmacher */
.hero { padding: 56px 0 72px; background:
  radial-gradient(900px 480px at 88% -10%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 70%),
  radial-gradient(640px 380px at -10% 110%, color-mix(in srgb, var(--tertiary-container) 70%, transparent), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }
.hero h1 em { font-style: normal; color: var(--primary); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 22px 0 0; padding: 0; }
.chips li { border: 1px solid var(--outline); border-radius: 8px; padding: 3px 12px; font-size: .85rem; font-weight: 600; color: var(--text-muted); background: var(--surface); }

/* Handy mit App-Startseite (nachgebaut, Beispieldaten) */
.phone { width: 300px; max-width: 100%; margin: 0 auto; padding: 12px; border-radius: 42px; background: #15181C; box-shadow: 0 30px 60px rgba(0, 28, 56, .28); }
.screen { border-radius: 32px; overflow: hidden; background: var(--bg); min-height: 540px; display: flex; flex-direction: column; }
.appbar { display: flex; justify-content: space-between; align-items: center; padding: 18px 18px 10px; font-size: 1.15rem; font-weight: 600; }
.appbar span { color: var(--text-muted); font-size: 1rem; }
.vpn-card { margin: 4px 12px 8px; background: var(--surface-high); border-radius: 14px; padding: 14px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.vpn-card .ico { width: 24px; height: 24px; color: var(--ok); }
.vpn-card small { display: block; font-size: .7rem; color: var(--text-muted); }
.vpn-card b { color: var(--ok); font-size: 1rem; }
.vpn-card .mini { border: 1px solid var(--outline); border-radius: 999px; padding: 5px 12px; font-size: .75rem; font-weight: 700; color: var(--primary); }
.clients { list-style: none; margin: 0; padding: 0; }
.clients li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 16px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-container); color: var(--on-primary-container); font-weight: 600; }
.clients b { display: block; font-weight: 500; font-size: .95rem; }
.clients small { display: block; color: var(--text-muted); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clients .drag { color: var(--text-muted); letter-spacing: -2px; }
.fab { margin: auto 14px 16px auto; background: var(--primary-container); color: var(--on-primary-container); border-radius: 16px; padding: 14px 18px; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow); }
.phone-hint { text-align: center; font-size: .8rem; color: var(--text-muted); margin-top: 12px; }

/* Schritte */
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); padding: 24px; counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--primary); color: var(--on-primary); font-weight: 800; margin-bottom: 14px; }
.steps p { color: var(--text-muted); font-size: .96rem; margin: 0; }
.path { font-weight: 600; background: var(--primary-container); color: var(--on-primary-container); border-radius: 6px; padding: 1px 6px; }

/* Funktionen */
.alt { background: var(--surface-container); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--surface); border-radius: var(--radius-sm); padding: 24px; border: 1px solid var(--outline); }
.card p { color: var(--text-muted); font-size: .96rem; margin: 0; }
.card .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-container); color: var(--on-primary-container); margin-bottom: 14px; }
.card .ico svg { width: 24px; height: 24px; }

/* Sicherheit */
.secure { background: #0A3D6B; color: #D3E3FF; }
.secure .eyebrow { color: #A2C9FF; }
.secure h2, .secure h3 { color: #fff; }
.secure .lead { color: #B9CDE8; }
.secure-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
@media (max-width: 900px) { .secure-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .secure-grid { grid-template-columns: minmax(0, 1fr); } }
.secure-grid div { border-top: 1px solid #3D6A99; padding-top: 16px; }
.secure-grid p { color: #B9CDE8; font-size: .95rem; margin: 0; }
.secure a { color: #A2C9FF; }

/* Voraussetzungen + FAQ */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: minmax(0, 1fr); } }
.req { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.req li { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius-sm); padding: 14px 18px; }
.req b { display: block; }
.req span { color: var(--text-muted); font-size: .95rem; }
details.faq { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius-sm); padding: 0 20px; margin-top: 10px; }
details.faq summary { cursor: pointer; font-weight: 700; padding: 15px 0; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; float: right; color: var(--primary); font-size: 1.3rem; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--text-muted); }

/* Download + Kontakt */
.panels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 860px) { .panels { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--primary-container); color: var(--on-primary-container); border-radius: var(--radius); padding: 32px; }
.panel.plain { background: var(--surface); color: var(--text); border: 1px solid var(--outline); }
.panel h2 { font-size: 1.7rem; }
.price { font-size: 2rem; font-weight: 800; margin: 4px 0 12px; }
.facts { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; }
.facts b { display: inline-block; min-width: 7.5rem; }
.mail { font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }

/* Fuß */
footer { border-top: 1px solid var(--outline); padding: 28px 0; font-size: .9rem; color: var(--text-muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a { color: var(--text-muted); }

/* Platzhalter – vor Veröffentlichung ersetzen */
.todo { background: #FFE08A; color: #3A2800; border-radius: 4px; padding: 0 4px; font-weight: 600; outline: 1px dashed #B07A00; }

/* Die anderen Rudel-Apps */
.rudel { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 26px; }
@media (max-width: 760px) { .rudel { grid-template-columns: 1fr; } }
.rudel a { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--outline); border-radius: 16px; padding: 14px; text-decoration: none; color: var(--text); }
.rudel a:hover { border-color: var(--primary); }
.rudel img { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.rudel b { display: block; }
.rudel small { color: var(--text-muted); }
.rudel .hier { border: 2px solid var(--brand); }
