/* ==========================================================================
   Wollenberg Digital — Design-System (Apple-Style Hybrid)
   Spec: docs/superpowers/specs/2026-07-18-webseite-apple-redesign-design.md
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --text: #1d2b36;
  --text-2: #6e6e73;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --dark: #1d2b36;
  --dark-card: #2b3d4c;
  --grad: linear-gradient(90deg, #2997ff, #30d5c8);
  --radius: 18px;
  --nav-h: 52px;
  --maxw: 1080px;
  --maxw-text: 720px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  overflow-x: clip;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.nav.is-scrolled { box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06); }

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.nav-brand:hover { text-decoration: none; }
.nav-brand img { height: 30px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav-links a.is-active { color: var(--accent); opacity: 1; }
.nav-links .btn { color: #fff; opacity: 1; }
.nav-cta { padding: 8px 18px; font-size: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Dark-Theme-Variante (RoutenBuddy-Seite) */
.theme-dark { background: var(--dark); color: #f5f5f7; }
.theme-dark .nav {
  background: rgba(29, 43, 54, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
.theme-dark .nav-brand,
.theme-dark .nav-links a { color: #f5f5f7; }
.theme-dark .nav-toggle span { background: #f5f5f7; }

/* --------------------------------------------------------------------------
   Typografie
   -------------------------------------------------------------------------- */

.headline-xl {
  font-size: clamp(32px, 7vw, 80px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.headline-lg {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.headline-md {
  font-size: clamp(21px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.45;
  color: var(--text-2);
  font-weight: 400;
}
.section--dark .lead, .theme-dark .lead { color: #a1a1a6; }

.eyebrow {
  display: block;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}
.section--dark .eyebrow { color: #2997ff; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 980px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }

.btn--ghost { color: var(--accent); padding: 12px 8px; }
.btn--ghost:hover { text-decoration: underline; }

.btn--lg { padding: 16px 32px; font-size: 18px; }

.btn-row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Sektionen & Layout
   -------------------------------------------------------------------------- */

.section { padding: clamp(64px, 10vw, 120px) 24px; }
.section--gray { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: #f5f5f7; }
.section--tight { padding: clamp(40px, 6vw, 72px) 24px; }

.container { max-width: var(--maxw); margin: 0 auto; }
.container--text { max-width: var(--maxw-text); margin: 0 auto; }

.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto clamp(40px, 6vw, 64px);
}
.section-head .lead { margin-top: 16px; }

/* --------------------------------------------------------------------------
   Hero (Startseite, hell)
   -------------------------------------------------------------------------- */

.hero { padding: clamp(64px, 9vw, 110px) 24px 0; text-align: center; }

.hero-inner { max-width: 880px; margin: 0 auto; }

.hero .lead { margin: 24px auto 32px; max-width: 640px; }

.hero-media {
  max-width: var(--maxw);
  margin: clamp(40px, 6vw, 64px) auto 0;
}
.hero-media img {
  width: 100%;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.1);
}

/* Produkt-Hero (dunkel) */
.hero--dark { padding-bottom: 0; }
.hero--dark .headline-xl { color: #f5f5f7; }

/* --------------------------------------------------------------------------
   Karten & Grids
   -------------------------------------------------------------------------- */

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 15px; line-height: 1.55; }

.section--dark .card, .theme-dark .card {
  background: var(--dark-card);
  box-shadow: none;
}
.section--dark .card p, .theme-dark .card p { color: #a1a1a6; }
.section--dark .card h3, .theme-dark .card h3 { color: #f5f5f7; }

.card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: var(--maxw);
  margin: 0 auto;
}
.card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: rgba(0, 113, 227, 0.1);
  color: var(--accent);
}
.section--dark .card-icon, .theme-dark .card-icon {
  background: rgba(41, 151, 255, 0.15);
  color: #2997ff;
}
.card-icon svg { width: 24px; height: 24px; }

/* Bild-Karten (Leistungen) */
.card--media { padding: 0; overflow: hidden; }
.card--media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card--media .card-body { padding: 28px 32px 32px; }

/* Kachel-Link (RoutenBuddy-Querverweis, dunkel) */
.tile-dark {
  display: block;
  background: var(--dark);
  color: #f5f5f7;
  border-radius: var(--radius);
  padding: clamp(32px, 5vw, 56px);
  text-align: center;
  transition: transform 0.25s ease;
}
.tile-dark:hover { text-decoration: none; transform: scale(1.01); }

/* --------------------------------------------------------------------------
   Showcase (dunkle Produktblöcke)
   -------------------------------------------------------------------------- */

.showcase { text-align: center; overflow: hidden; }

.showcase-img {
  border-radius: var(--radius);
  box-shadow: 0 0 80px rgba(41, 151, 255, 0.25);
  margin: clamp(32px, 5vw, 56px) auto 0;
  max-width: 900px;
  width: 100%;
}

/* angeschnitten auslaufender Screenshot (Startseiten-Showcase) */
.showcase--bleed { padding-bottom: 0; }
.showcase--bleed .showcase-img {
  border-radius: var(--radius) var(--radius) 0 0;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Produktseite: Badges, Preise, Systeme
   -------------------------------------------------------------------------- */

.section--dark-alt { background: #16222b; color: #f5f5f7; }
.theme-dark .section--dark-alt .card { background: #1d1d1f; }

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 980px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge--live { background: rgba(48, 209, 88, 0.18); color: #30d158; }
.badge--plan { background: rgba(255, 214, 10, 0.15); color: #ffd60a; }

.price-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  max-width: var(--maxw);
  margin: 0 auto;
  align-items: stretch;
}

.price-card {
  background: var(--dark-card);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.price-card--featured { border-color: #2997ff; box-shadow: 0 0 40px rgba(41, 151, 255, 0.15); }

.price-name { font-size: 20px; font-weight: 700; color: #f5f5f7; }
.price-value {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f5f5f7;
  margin: 12px 0 2px;
}
.price-value small { font-size: 16px; font-weight: 500; color: #a1a1a6; }
.price-note { font-size: 13px; color: #a1a1a6; margin-bottom: 20px; }

.check-list { list-style: none; margin: 0 0 24px; flex: 1; }
.check-list li {
  position: relative;
  padding: 6px 0 6px 28px;
  font-size: 14px;
  color: #d2d2d7;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(48, 209, 88, 0.18) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2330d158" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"><path d="M5 13l4 4 10-11"/></svg>') center / 10px no-repeat;
}

.price-foot {
  text-align: center;
  color: #a1a1a6;
  font-size: 14px;
  margin-top: 32px;
}

.system-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: 860px;
  margin: 0 auto;
}
.system-card {
  background: var(--dark-card);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.system-card img { height: 56px; width: auto; margin: 0 auto 16px; }
.system-card h3 { color: #f5f5f7; margin-bottom: 6px; }
.system-card p { color: #a1a1a6; font-size: 14px; margin-bottom: 14px; }

/* --------------------------------------------------------------------------
   Split-Sektionen (Bild + Text)
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
}
.split img { border-radius: var(--radius); }
.split .lead { margin-top: 16px; font-size: 19px; }
.split--reverse > :first-child { order: 2; }

/* --------------------------------------------------------------------------
   Timeline (Über mich)
   -------------------------------------------------------------------------- */

.timeline {
  list-style: none;
  max-width: var(--maxw-text);
  margin: 0 auto;
  position: relative;
  padding-left: 36px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: rgba(0, 0, 0, 0.1);
}
.timeline li { position: relative; padding-bottom: 36px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}
.timeline-year {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.timeline h3 { margin-bottom: 6px; }
.timeline p { color: var(--text-2); }

/* --------------------------------------------------------------------------
   Formulare (Kontakt)
   -------------------------------------------------------------------------- */

.form-field { margin-bottom: 20px; }

.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field textarea { resize: vertical; min-height: 140px; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

/* Honeypot: für Menschen unsichtbar */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-status { margin-top: 16px; font-weight: 500; min-height: 1.5em; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--bg-alt);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 48px 24px 32px;
  font-size: 13px;
  color: var(--text-2);
}
.theme-dark .footer {
  background: #16222b;
  border-top-color: rgba(255, 255, 255, 0.1);
  color: #a1a1a6;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.footer h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}
.theme-dark .footer h4 { color: #f5f5f7; }

.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a { color: inherit; }
.footer a:hover { color: var(--accent); }

.footer-bottom {
  max-width: var(--maxw);
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.theme-dark .footer-bottom { border-top-color: rgba(255, 255, 255, 0.1); }

/* --------------------------------------------------------------------------
   Scroll-Reveal
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .tile-dark { transition: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: none;
    padding: 8px 0;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 24px; font-size: 16px; }
  .nav-links .btn { margin: 10px 24px 14px; display: inline-block; padding: 12px 24px; }
  .theme-dark .nav-links { background: rgba(29, 43, 54, 0.95); }
}

/* --------------------------------------------------------------------------
   CI-Chrome: dunkler Einstieg (Nav, Hero, Footer) in Corporate #1D2B36
   -------------------------------------------------------------------------- */

:root { --bg-alt: #eef1f5; }

.nav {
  background: #1d2b36;
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
.nav-brand, .nav-links a { color: #f5f5f7; }
.nav-links a.is-active { color: #2997ff; }
.nav-toggle span { background: #f5f5f7; }

@media (max-width: 768px) {
  .nav-links { background: #1d2b36; }
}

.hero {
  background: var(--dark);
  color: #f5f5f7;
  padding-bottom: clamp(48px, 6vw, 80px);
}
.hero .lead { color: #a1a1a6; }
.hero-media { margin-bottom: calc(-1 * clamp(48px, 6vw, 80px)); }

.footer {
  background: #16222b;
  border-top-color: rgba(255, 255, 255, 0.1);
  color: #a1a1a6;
}
.footer h4 { color: #f5f5f7; }
.footer a:hover { color: #2997ff; }
.footer-bottom { border-top-color: rgba(255, 255, 255, 0.1); }

/* System-Logos auf dunklen Karten: weisser Chip fuer Lesbarkeit */
.system-card img {
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  height: 40px;
}

/* Nav ueberall voll deckend in CI-Blau (kein Blur-Farbversatz), Logo ohne Chip */
.nav, .theme-dark .nav {
  background: #1d2b36;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
@media (max-width: 768px) {
  .nav-links, .theme-dark .nav-links {
    background: #1d2b36;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Keine Trennlinie unter der Nav — Balken geht nahtlos in den Hero ueber */
.nav, .theme-dark .nav { border-bottom: 0; }

/* --------------------------------------------------------------------------
   Schritte (So funktioniert's) + FAQ
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: var(--maxw);
  margin: 0 auto;
  counter-reset: step;
}
.step {
  background: var(--dark-card);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad);
  color: #0b1218;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 18px;
}
.step h3 { color: #f5f5f7; margin-bottom: 8px; }
.step p { color: #a1a1a6; font-size: 15px; line-height: 1.55; }

.faq {
  max-width: var(--maxw-text);
  margin: 0 auto;
}
.faq details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  color: #f5f5f7;
  padding: 18px 32px 18px 0;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: #2997ff;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: #a1a1a6; padding: 0 0 18px; font-size: 15px; line-height: 1.6; }
