/* RüstBox – Website
   Farben, Typografie, Abstände: RüstBox Design System (Stahlblau/Signalgelb, Roboto, 4-px-Raster, 48-px-Klickflächen).
   Schrift wird bewusst NICHT von Google geladen (DSGVO): Roboto, falls installiert, sonst Systemschrift. */

:root {
  --primary: #1E4E79; --primary-dark: #163B5C; --primary-contrast: #FFFFFF; --primary-container: #DCE8F4;
  --secondary: #F5B800; --secondary-contrast: #1F1A00;
  --success: #2E7D32; --warning: #A15C00; --info: #0277BD;
  --background: #F5F6F8; --surface: #FFFFFF; --surface-alt: #EEF2F6;
  --text-primary: #1B2733; --text-secondary: #4E5D6C;
  --divider: #DDE2E7; --lines-inputs: #7A8794;
  --tint-success: #E6F2E7; --tint-warning: #FBEFDF; --tint-info: #E1F0FA;
  --elevation-1: 0 1px 3px rgba(27,39,51,.12), 0 1px 2px rgba(27,39,51,.08);
  --elevation-4: 0 4px 12px rgba(27,39,51,.16);
  --elevation-8: 0 12px 32px rgba(27,39,51,.20);
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 16px; --radius-full: 9999px;
  --touch: 48px; --max: 1180px;
  --font: Roboto, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #8CBDEB; --primary-dark: #6FA6D9; --primary-contrast: #0B2236; --primary-container: #1F3A55;
    --secondary: #FFD54F;
    --success: #81C784; --warning: #FFB74D; --info: #6EC1F5;
    --background: #12171C; --surface: #1B2229; --surface-alt: #161C22;
    --text-primary: #E6EBF0; --text-secondary: #A9B6C2;
    --divider: #2E3842; --lines-inputs: #6B7885;
    --tint-success: #1E3321; --tint-warning: #3A2C17; --tint-info: #17303F;
    --elevation-1: 0 1px 3px rgba(0,0,0,.5); --elevation-4: 0 4px 12px rgba(0,0,0,.6); --elevation-8: 0 12px 32px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.6; color: var(--text-primary); background: var(--background); -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; font-weight: 700; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 5.2vw, 56px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 22px; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--secondary); color: var(--secondary-contrast); padding: 12px 16px; z-index: 100; border-radius: var(--radius-md); }
.skip:focus { left: 8px; }
.icon { width: 24px; height: 24px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Kopfzeile (wie App-Bar der Anwendung) ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: #1E4E79; color: #fff; border-bottom: 3px solid #F5B800; }
.topbar .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 26px; font-weight: 500; letter-spacing: -.01em; }
.brand img { width: 158px; height: 44px; }
.brand b { color: #F5B800; font-weight: 700; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: #fff; text-decoration: none; font-size: 16px; font-weight: 500; padding: 10px 14px; border-radius: var(--radius-md); min-height: var(--touch); display: inline-flex; align-items: center; }
.nav a:hover { background: rgba(255,255,255,.12); }
.nav .btn { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; background: transparent; border: 0; color: #fff; width: var(--touch); height: var(--touch); border-radius: var(--radius-md); cursor: pointer; }
.menu-btn:hover { background: rgba(255,255,255,.12); }
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #1E4E79; flex-direction: column; align-items: stretch; padding: 8px 16px 16px; border-bottom: 3px solid #F5B800; }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* ---------- Schaltflächen ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--touch); padding: 12px 24px; border-radius: var(--radius-md); font: 600 17px var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, box-shadow .15s; }
.btn-accent { background: #F5B800; color: #1F1A00 !important; box-shadow: var(--elevation-1); }
.btn-accent:hover { background: #FFC93D; box-shadow: var(--elevation-4); }
.btn-primary { background: var(--primary); color: var(--primary-contrast) !important; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border-color: currentColor; color: inherit; background: transparent; }
.btn-outline:hover { background: rgba(127,127,127,.12); }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 18px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, #1E4E79 0%, #163B5C 100%); color: #fff; padding: 64px 0 0; overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 48px 48px; pointer-events: none; }
.hero .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: #F5B800; }
.hero .lead { font-size: 21px; color: #DCE8F4; max-width: 34em; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(245,184,0,.16); color: #FFD54F; border: 1px solid rgba(245,184,0,.5); border-radius: var(--radius-full); padding: 6px 14px; font-size: 15px; font-weight: 600; margin-bottom: 20px; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #F5B800; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }
.hero .btn-outline { color: #fff; }
.hero-note { font-size: 15px; color: #B9CDE0; display: flex; gap: 18px; flex-wrap: wrap; }
.hero-note span { display: inline-flex; gap: 6px; align-items: center; }
.hero-note .icon { width: 18px; height: 18px; color: #F5B800; }
.hero-visual { position: relative; min-height: 460px; align-self: end; }
.hero-visual .screen { position: absolute; left: 0; bottom: 0; width: 120%; max-width: none; border-radius: 12px 12px 0 0; box-shadow: var(--elevation-8); border: 1px solid rgba(255,255,255,.2); border-bottom: 0; }
.hero-visual .phone { position: absolute; right: -8px; bottom: -40px; width: 46%; max-width: 260px; filter: drop-shadow(0 20px 40px rgba(0,0,0,.45)); }
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { min-height: 0; }
  .hero-visual .screen { position: static; width: 100%; }
  .hero-visual .phone { width: 38%; right: 8px; bottom: -24px; }
}

/* ---------- Abschnitte ---------- */
section { padding: 88px 0; }
.section-alt { background: var(--surface); }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.eyebrow::before { content: ""; display: inline-block; width: 24px; height: 3px; background: #F5B800; vertical-align: middle; margin-right: 10px; border-radius: 2px; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head p { font-size: 20px; color: var(--text-secondary); }

/* Probleme */
.pain { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pain div { background: var(--surface); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--elevation-1); border-top: 4px solid #F5B800; }
.pain h3 { font-size: 19px; margin-bottom: 8px; }
.pain p { font-size: 16px; color: var(--text-secondary); margin: 0; }
@media (max-width: 900px) { .pain { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pain { grid-template-columns: 1fr; } }

/* Feature-Zeilen */
.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; margin-bottom: 88px; }
.feature:last-child { margin-bottom: 0; }
.feature.flip .feature-text { order: 2; }
.feature-text ul { list-style: none; padding: 0; margin: 20px 0 0; }
.feature-text li { display: flex; gap: 12px; margin-bottom: 12px; font-size: 17px; }
.feature-text li .icon { color: var(--success); margin-top: 3px; }
.feature-text p { color: var(--text-secondary); font-size: 18px; }
.shot { border-radius: var(--radius-lg); box-shadow: var(--elevation-8); border: 1px solid var(--divider); overflow: hidden; background: var(--surface); }
.shot img { width: 100%; }
.status { display: inline-flex; align-items: center; gap: 6px; border-radius: var(--radius-full); font-size: 14px; font-weight: 600; padding: 3px 12px; margin-bottom: 12px; }
.status.v1 { background: var(--tint-info); color: var(--info); }
.status.v2 { background: var(--tint-warning); color: var(--warning); }
.status .icon { width: 16px; height: 16px; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 28px; margin-bottom: 64px; }
  .feature.flip .feature-text { order: 0; }
}

/* Telefon-Galerie */
.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: start; }
.phones figure { margin: 0; text-align: center; }
.phones img { margin: 0 auto 16px; max-width: 300px; width: 100%; filter: drop-shadow(0 16px 28px rgba(27,39,51,.22)); }
.phones figcaption strong { display: block; font-size: 19px; margin-bottom: 4px; }
.phones figcaption span { color: var(--text-secondary); font-size: 16px; }
@media (max-width: 900px) { .phones { grid-template-columns: 1fr; gap: 48px; } }

/* Kacheln */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.tile { background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius-lg); padding: 24px; }
.section-alt .tile { background: var(--background); }
.tile .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--primary-container); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.tile h3 { font-size: 19px; margin-bottom: 6px; }
.tile p { font-size: 16px; color: var(--text-secondary); margin: 0; }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

/* Preise */
.price-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.price-steps div { background: var(--surface); border-radius: var(--radius-lg); padding: 28px 24px; box-shadow: var(--elevation-1); position: relative; }
.price-steps div::before { counter-increment: step; content: counter(step); position: absolute; top: -18px; left: 24px; width: 40px; height: 40px; border-radius: 50%; background: #F5B800; color: #1F1A00; font-weight: 700; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.price-steps h3 { margin-top: 12px; }
.price-steps p { color: var(--text-secondary); font-size: 16px; margin: 0; }
.price-note { margin-top: 32px; background: var(--tint-info); color: var(--text-primary); border-radius: var(--radius-lg); padding: 20px 24px; display: flex; gap: 14px; align-items: flex-start; font-size: 17px; }
.price-note .icon { color: var(--info); margin-top: 2px; }
@media (max-width: 900px) { .price-steps { grid-template-columns: 1fr; gap: 32px; } }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius-md); margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 20px; font-weight: 600; font-size: 18px; position: relative; min-height: var(--touch); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 28px; font-weight: 400; color: var(--primary); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 20px 18px; color: var(--text-secondary); }

/* Kontakt */
.contact { background: linear-gradient(180deg, #1E4E79 0%, #163B5C 100%); color: #fff; }
.contact .eyebrow { color: #FFD54F; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-grid > div:first-child p { color: #DCE8F4; font-size: 19px; }
.contact ul { list-style: none; padding: 0; margin: 24px 0; }
.contact li { display: flex; gap: 12px; margin-bottom: 12px; color: #DCE8F4; }
.contact li .icon { color: #F5B800; margin-top: 3px; }
.contact a { color: #fff; }
.form-card { background: #fff; color: #1B2733; border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--elevation-8); min-height: 320px; }
.form-card a { color: #1E4E79; }
.form-card h3 { color: #1B2733; }
.consent p { font-size: 15px; color: #4E5D6C; }
.direct { font-size: 16px; color: #B9CDE0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Fußzeile */
footer { background: #0F2840; color: #B9CDE0; padding: 40px 0; font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
footer a { color: #fff; text-decoration: none; min-height: var(--touch); display: inline-flex; align-items: center; }
footer a:hover { text-decoration: underline; }
footer nav { display: flex; gap: 24px; margin-left: auto; flex-wrap: wrap; }

/* Rechtstexte */
.legal { padding: 56px 0 88px; }
.legal .wrap { max-width: 860px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); }
.legal h2 { font-size: 24px; margin-top: 40px; }
.legal h3 { font-size: 19px; margin-top: 24px; }
.legal p, .legal li { font-size: 17px; }
.legal address { font-style: normal; }
.legal .card { background: var(--surface); border-radius: var(--radius-lg); padding: 24px 28px; box-shadow: var(--elevation-1); }
.todo { background: #FFF3C4; color: #5A4300; padding: 0 4px; border-radius: 3px; }
