/* HerrFleet – gemeinsames Stylesheet (keine externen Ressourcen) */

:root {
  color-scheme: light dark;
  --blue: #4a5cf0;
  --violet: #7d4fd6;
  --pink: #e48bbd;
  --grad: linear-gradient(160deg, #3d4fe0 0%, #6a4fd8 45%, #a35fc9 75%, #e08cb9 100%);
  --grad-text: linear-gradient(90deg, #3d4fe0, #7d4fd6 55%, #c04f93);

  --bg: #f4f5fb;
  --bg-2: #ffffff;
  --card: #ffffff;
  --card-border: rgba(20, 24, 60, .08);
  --text: #11152e;
  --muted: #555a78;
  --accent: #4152e6;
  --shadow: 0 10px 30px rgba(20, 24, 70, .08);
  --radius: 22px;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f26;
    --bg-2: #10153a;
    --card: #161c45;
    --card-border: rgba(255, 255, 255, .08);
    --text: #f3f4ff;
    --muted: #a8acd0;
    --accent: #8f9bff;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --grad-text: linear-gradient(90deg, #7f8cff, #b48cff 50%, #f2a2cf);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 2px; }

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--card); padding: 8px 12px; border-radius: 8px; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--card-border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 6px 10px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--card-border); }

/* ---------- Hero ---------- */
.hero {
  background: var(--grad);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.hero .wrap { display: grid; gap: 40px; padding-top: 56px; padding-bottom: 0; align-items: end; }
.hero-text { text-align: center; }
.hero-icon { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 22px; box-shadow: 0 12px 30px rgba(10, 10, 60, .35); }
.hero h1 { font-size: clamp(44px, 9vw, 76px); font-weight: 800; margin-bottom: .15em; }
.hero .subtitle { font-size: clamp(20px, 3.6vw, 28px); font-weight: 600; opacity: .95; margin: 0 0 14px; }
.hero .lead { font-size: 18px; max-width: 34em; margin: 0 auto 26px; opacity: .9; }
.platforms { font-size: 15px; opacity: .85; margin-top: 14px; }
.hero-phones { display: flex; justify-content: center; position: relative; }
.hero-phones .phone { width: min(76vw, 400px); margin-bottom: calc(min(76vw, 400px) * -0.95); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 200px; background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--bg) 70%, transparent) 60%, var(--bg)); pointer-events: none; }

@media (min-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr 1fr; padding-top: 80px; align-items: center; }
  .hero-text { text-align: left; padding-bottom: 60px; }
  .hero-icon { margin-left: 0; }
  .hero .lead { margin-left: 0; }
  .hero-phones { align-self: end; padding-top: 30px; }
  .hero-phones .phone { width: 400px; margin-bottom: -330px; }
}

/* Knöpfe */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 14px;
  font-weight: 600; font-size: 17px; text-decoration: none;
  border: 0; cursor: default;
}
.btn-store { background: #000; color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.btn-store svg { width: 22px; height: 22px; fill: currentColor; }
.btn-store small { display: block; font-size: 11px; font-weight: 500; opacity: .75; line-height: 1; }
.btn-store span { line-height: 1.15; text-align: left; }

/* Telefon-Rahmen */
.phone {
  border-radius: 13% / 6%;
  padding: 2.6%;
  background: #05070f;
  box-shadow: 0 30px 60px rgba(10, 10, 50, .45), inset 0 0 0 1.5px rgba(255, 255, 255, .14);
}
.phone img { border-radius: 11% / 5.1%; width: 100%; aspect-ratio: 1320 / 2868; object-fit: cover; }

/* ---------- Abschnitte ---------- */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(32px, 5.5vw, 48px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

/* ---------- Funktionen im Apple-Stil ---------- */
.verlauf { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.statement { text-align: center; padding: 110px 0 40px; }
.statement h2 { font-size: clamp(38px, 7.5vw, 80px); font-weight: 800; letter-spacing: -.035em; max-width: 13em; margin: 0 auto .4em; }
.statement p { font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); max-width: 36em; margin: 0 auto; }

.story { padding: 70px 0; }
.story-inner { display: grid; gap: 44px; align-items: center; }
.story-text { text-align: center; max-width: 34em; margin: 0 auto; }
.story-text h2 { font-size: clamp(36px, 6.4vw, 68px); font-weight: 800; letter-spacing: -.035em; margin-bottom: .35em; }
.story-text p { font-size: clamp(18px, 2vw, 21px); color: var(--muted); margin: 0; }
.story-bild { position: relative; display: flex; justify-content: center; }
.story-bild::before {
  content: ""; position: absolute; inset: 8% 0; margin: auto; width: min(90vw, 560px);
  background: radial-gradient(closest-side, rgba(97, 94, 245, .55), rgba(170, 90, 210, .28) 55%, transparent 75%);
  filter: blur(30px); z-index: 0;
}
.story-bild .phone { position: relative; z-index: 1; width: min(78vw, 400px); }

@media (min-width: 900px) {
  .story { padding: 110px 0; }
  .story-inner { grid-template-columns: 1fr 1fr; gap: 80px; }
  .story-text { text-align: left; margin: 0; }
  .story-rechts .story-text { order: 2; }
  .story-bild .phone { width: 420px; }
}

.story-breit .story-text.zentriert { text-align: center; margin: 0 auto 50px; }
.story-breit .chips { justify-content: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--card-border); }
.doc-stack { position: relative; max-width: 980px; margin: 0 auto; padding-bottom: 14%; }
.doc-stack img { border-radius: 12px; box-shadow: 0 30px 70px rgba(10, 10, 50, .35); background: #fff; }
.doc-stack img:first-child { width: 86%; transform: rotate(-2.5deg); }
.doc-stack img:last-child { width: 80%; position: absolute; right: 0; bottom: 0; transform: rotate(2deg); }

.bento-bereich { padding: 90px 0 60px; }
.bento-bereich .section-head h2 { font-size: clamp(36px, 6.4vw, 68px); letter-spacing: -.035em; }
.bento { display: grid; gap: 20px; }
@media (min-width: 900px) { .bento { grid-template-columns: repeat(3, 1fr); } }
.kachel {
  background: var(--card); border: 1px solid var(--card-border); border-radius: 30px;
  padding: 34px 28px 0; overflow: hidden; text-align: center; box-shadow: var(--shadow);
  display: flex; flex-direction: column; min-height: 560px;
}
.kachel h3 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.02em; margin-bottom: .3em; }
.kachel p { color: var(--muted); margin: 0 0 28px; font-size: 16px; }
.kachel .phone { width: 78%; max-width: 300px; margin: auto auto -42%; }
.demo-hinweis { text-align: center; color: var(--muted); font-size: 14px; margin: 26px 0 0; }

/* sanftes Einblenden beim Scrollen – nur wo der Browser es kann, ohne JavaScript */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .story-bild .phone, .story-text, .kachel, .doc-stack, .statement h2 {
      animation: auftauchen linear both; animation-timeline: view(); animation-range: entry 0% cover 30%;
    }
  }
}
@keyframes auftauchen { from { opacity: 0; transform: translateY(70px) scale(.96); } to { opacity: 1; transform: none; } }

/* Datenschutz-Band */
.privacy-band { background: var(--grad); color: #fff; border-radius: 28px; padding: 44px 28px; text-align: center; }
.privacy-band h2 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; }
.privacy-band p { max-width: 40em; margin: 0 auto 26px; opacity: .92; font-size: 18px; }
.pills { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pills li { background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .28); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.privacy-band a { color: #fff; font-weight: 600; }

/* Geräte */
.devices { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); max-width: 720px; margin: 0 auto; text-align: center; }
.devices .card { padding: 22px 12px; }
.devices svg { width: 40px; height: 40px; stroke: var(--accent); fill: none; stroke-width: 1.6; margin: 0 auto 8px; display: block; }
.devices strong { display: block; font-size: 18px; }
.devices span { color: var(--muted); font-size: 14px; }

.cta { text-align: center; }
.cta h2 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; }
.cta p { color: var(--muted); }

/* ---------- Textseiten (Datenschutz, Impressum, Support) ---------- */
.page-hero { background: var(--grad); color: #fff; padding: 56px 0 48px; }
.page-hero h1 { font-size: clamp(29px, 7.6vw, 54px); font-weight: 800; margin: 0; overflow-wrap: anywhere; hyphens: auto; }
.page-hero p { margin: 8px 0 0; opacity: .9; }

.prose { max-width: 760px; padding-top: 44px; padding-bottom: 80px; }
.prose h2 { font-size: 26px; font-weight: 750; margin-top: 2em; }
.prose h3 { font-size: 19px; font-weight: 700; margin-top: 1.6em; margin-bottom: .4em; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .3em 0; }
.prose .muted { color: var(--muted); }
.prose address { font-style: normal; }
.toc { margin-top: 0; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 1; }
@media (min-width: 640px) { .toc ol { columns: 2; column-gap: 32px; } }
.toc a { text-decoration: none; }

.placeholder {
  background: #ffe9a8; color: #5a3d00;
  padding: 0 .35em; border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; font-weight: 600;
}
.note {
  border-left: 4px solid #f0b400; background: color-mix(in srgb, #f0b400 12%, var(--card));
  padding: 16px 18px; border-radius: 0 14px 14px 0; margin: 24px 0;
}

details.card { padding: 0; margin: 12px 0; }
details.card summary { cursor: pointer; padding: 18px 22px; font-weight: 650; list-style: none; position: relative; padding-right: 48px; }
details.card summary::-webkit-details-marker { display: none; }
details.card summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--accent); }
details.card[open] summary::after { content: "–"; }
details.card > div { padding: 0 22px 18px; color: var(--muted); }
details.card > div p { color: var(--muted); margin: 0 0 .6em; }

/* ---------- Fußzeile ---------- */
.site-footer { border-top: 1px solid var(--card-border); padding: 30px 0 40px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 20px; }
.notfound .big { font-size: clamp(80px, 20vw, 160px); font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .nav a { padding: 6px 7px; font-size: 14px; }
  .nav .hide-sm { display: none; }
  section { padding: 60px 0; }
  .devices { gap: 10px; } .devices .card { padding: 16px 6px; } .devices strong { font-size: 16px; } .devices span { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
