/* =========================================================
   SEBA AUTOMOBILE – style.css
   Mobile first. Keine Frameworks, keine externen Fonts.
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --ink:        #0E1113;   /* Sehr dunkles Anthrazit */
  --ink-soft:   #171B1F;   /* Flächen auf Dunkel */
  --ink-line:   rgba(255,255,255,.14);
  --paper:      #FFFFFF;
  --mist:       #F5F6F7;   /* Helle Sektionsfläche */
  --line:       #E3E6E8;
  --slate:      #565E63;   /* Sekundärtext auf Hell */
  --fog:        #A9B2B8;   /* Sekundärtext auf Dunkel */

  --signal:     #C8102E;   /* Einzige Akzentfarbe */
  --signal-lt:  #FF4D63;   /* Akzent auf dunklem Grund */

  --wa:         #0B8043;   /* WhatsApp-Aktion (kontraststark) */
  --wa-dark:    #096B38;
  --wa-bright:  #25D366;   /* nur für Icons */

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
          Helvetica, Arial, "Noto Sans", sans-serif;

  --wrap: 1180px;
  --radius: 4px;
  --header-h: 64px;

  --ease: cubic-bezier(.2,.7,.3,1);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.08;
}

h1 { font-size: clamp(2.4rem, 9vw, 4.5rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 5.5vw, 3rem); }
h3 { font-size: 1.0625rem; letter-spacing: -.01em; line-height: 1.35; }

p { margin: 0 0 1rem; }

ul, ol { margin: 0; padding: 0; list-style: none; }

/* Anker unter der Sticky-Navigation */
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

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

/* ---------- Fokus & Skip-Link ---------- */
:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}
.section-dark :focus-visible,
.site-header :focus-visible,
.hero :focus-visible,
.site-footer :focus-visible,
.actionbar :focus-visible { outline-color: var(--signal-lt); }

.skip-link {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 200;
  background: var(--paper);
  color: var(--ink);
  padding: 12px 18px;
  font-weight: 600;
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Typo-Hilfsklassen ---------- */
.eyebrow {
  margin: 0 0 18px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fog);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--signal-lt);
  flex: none;
}
.eyebrow-dark { color: var(--slate); }
.eyebrow-dark::before { background: var(--signal); }

.lead {
  font-size: 1.0625rem;
  color: var(--fog);
  max-width: 54ch;
}
.lead-dark { color: var(--slate); }

.hl { color: var(--fog); }

.fineprint {
  margin: 16px 0 0;
  font-size: .875rem;
  color: var(--slate);
  max-width: 52ch;
}
.fineprint-light { color: var(--fog); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: #2A3238; }

.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--mist); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }

.btn-ghost { background: transparent; color: var(--paper); border-color: var(--ink-line); }
.btn-ghost:hover { border-color: var(--paper); background: rgba(255,255,255,.06); }

.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }

.btn-sm { min-height: 42px; padding: 10px 18px; font-size: .9375rem; }
.btn-lg { min-height: 60px; padding: 18px 32px; font-size: 1.0625rem; width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 8px;
}
.btn-row .btn { flex: 1 1 220px; }

.ico {
  width: 20px; height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico-wa { fill: currentColor; stroke: none; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14,17,19,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--ink-line);
  color: var(--paper);
  transition: background-color .25s var(--ease);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .12em;
  font-size: .9375rem;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border: 1px solid var(--ink-line);
  border-radius: 3px;
  font-size: .6875rem;
  letter-spacing: .04em;
  color: var(--paper);
}
.brand-thin { font-weight: 400; color: var(--fog); }

.nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  display: grid;
  gap: 4px;
  padding: 12px 20px 24px;
  background: var(--ink);
  border-bottom: 1px solid var(--ink-line);
  transform: translateY(-120%);
  visibility: hidden;
  transition: transform .3s var(--ease), visibility .3s;
}
.nav.is-open { transform: translateY(0); visibility: visible; }

.nav-list { display: grid; }
.nav-list a {
  display: block;
  padding: 14px 4px;
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 500;
  border-bottom: 1px solid var(--ink-line);
}
.nav-list a:hover { color: var(--fog); }
.nav-list a.is-active { color: var(--signal-lt); }

.nav-cta { margin-top: 16px; background: var(--paper); color: var(--ink); }
.nav-cta:hover { background: var(--mist); }

.nav-toggle {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-right: -8px;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
}
.nav-toggle-bars { display: grid; gap: 6px; width: 22px; }
.nav-toggle-bars span {
  height: 2px;
  background: currentColor;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 0 64px;
  overflow: hidden;
}
.hero-grid { display: grid; gap: 40px; }
.hero-text h1 { margin-bottom: 22px; }
.hero-text .btn-row { margin-top: 32px; }

/* Signature: Kennzeichen-Chip */
.plate {
  display: inline-flex;
  align-items: stretch;
  margin: 36px 0 0;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 5px;
  overflow: hidden;
  font-size: .875rem;
}
.plate-canton {
  display: grid;
  place-items: center;
  padding: 8px 10px;
  background: rgba(255,255,255,.1);
  border-right: 1px solid rgba(255,255,255,.28);
  font-weight: 700;
  letter-spacing: .06em;
}
.plate-text {
  padding: 8px 14px;
  color: var(--fog);
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}

.hero-media {
  position: relative;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-soft);
}
.hero-media img { width: 100%; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-light { background: var(--paper); color: var(--ink); }
.section-light + .section-light { border-top: 1px solid var(--line); }
.section-dark { background: var(--ink); color: var(--paper); }

.section-head { max-width: 58ch; }
.section-head h2 { margin-bottom: 18px; }
.section-head .btn-lg { margin-top: 28px; }

/* ---------- USP (Auto kaufen) ---------- */
.usp {
  display: grid;
  gap: 28px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.usp h3 { margin-bottom: 8px; }
.usp p { margin: 0; color: var(--slate); font-size: .9375rem; }

/* ---------- Ankauf-Schritte ---------- */
.steps {
  display: grid;
  gap: 0;
  margin-top: 48px;
}
.steps li {
  padding: 24px 0;
  border-top: 1px solid var(--ink-line);
}
.steps li:last-child { border-bottom: 1px solid var(--ink-line); }
.step-no {
  display: block;
  margin-bottom: 10px;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--signal-lt);
  font-variant-numeric: tabular-nums;
}
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--fog); font-size: .9375rem; }

.sell-cta { margin-top: 40px; max-width: 560px; }

/* ---------- Checkliste ---------- */
.checklist {
  margin-top: 48px;
  padding: 28px 24px;
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
}
.checklist h3 { margin-bottom: 18px; }
.check {
  display: grid;
  gap: 10px 24px;
  font-size: .9375rem;
  color: var(--fog);
}
.check li { position: relative; padding-left: 26px; }
.check li::before {
  content: "";
  position: absolute;
  left: 2px; top: .55em;
  width: 11px; height: 6px;
  border-left: 2px solid var(--signal-lt);
  border-bottom: 2px solid var(--signal-lt);
  transform: rotate(-45deg);
}
.checklist-opt {
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--ink-line);
  font-size: .875rem;
  color: var(--fog);
}

/* ---------- Standort ---------- */
.location { display: grid; gap: 28px; margin-top: 48px; }

.location-card {
  padding: 28px 24px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.address {
  margin: 0 0 24px;
  font-size: 1.0625rem;
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
}
.location-card .btn-row { margin-bottom: 0; }

.map {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--mist);
}
.map iframe {
  display: block;
  width: 100%;
  height: 340px;
  border: 0;
}

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: 12px; margin-top: 48px; }

.contact-card {
  display: grid;
  gap: 4px;
  padding: 24px;
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.contact-card:hover { border-color: rgba(255,255,255,.4); background: #1E2429; }
.contact-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fog);
}
.contact-value {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -.015em;
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}
.contact-action {
  margin-top: 8px;
  font-size: .875rem;
  color: var(--fog);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.contact-card-wa { border-color: rgba(37,211,102,.45); }
.contact-card-wa .contact-label { color: var(--wa-bright); }
.contact-card-wa:hover { border-color: var(--wa-bright); }

.contact-foot {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--ink-line);
}
.contact-address {
  margin-bottom: 20px;
  font-size: .9375rem;
  color: var(--fog);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--fog);
  border-top: 1px solid var(--ink-line);
  padding: 48px 0 40px;
  font-size: .9375rem;
}
.footer-inner { display: grid; gap: 28px; }
.footer-name {
  margin: 0 0 8px;
  color: var(--paper);
  font-weight: 700;
  letter-spacing: .12em;
}
.footer-address { margin: 0; line-height: 1.7; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
.footer-copy { margin: 0; font-size: .875rem; }

/* ---------- Mobile Kontaktleiste ---------- */
.actionbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-line);
  border-top: 1px solid var(--ink-line);
  padding-bottom: env(safe-area-inset-bottom);
}
.actionbar-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  background: var(--ink);
  color: var(--paper);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
}
.actionbar-item:hover { background: #20272C; }
.actionbar-wa { background: var(--wa); }
.actionbar-wa:hover { background: var(--wa-dark); }

/* Platz für die Leiste, damit nichts überdeckt wird */
body { padding-bottom: 72px; }
body.page-legal { padding-bottom: 0; } /* Rechtsseiten ohne Aktionsleiste */

/* ---------- Scroll-Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Rechtstexte (datenschutz.html / impressum.html) ---------- */
.legal { padding: 56px 0 72px; }
.legal-inner { max-width: 72ch; }
.legal h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 12px; }
.legal h2 { font-size: 1.375rem; margin: 40px 0 12px; }
.legal h3 { margin: 24px 0 8px; }
.legal p, .legal li { color: var(--slate); }
.legal ul { list-style: disc; padding-left: 22px; margin: 0 0 16px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--ink); text-underline-offset: 3px; }
.legal-updated { font-size: .875rem; }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.legal-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.placeholder-note {
  padding: 16px 18px;
  margin: 0 0 20px;
  background: #FFF6F7;
  border-left: 3px solid var(--signal);
  font-size: .9375rem;
  color: var(--ink);
}

/* =========================================================
   Breakpoints
   ========================================================= */

/* --- ab 600px --- */
@media (min-width: 600px) {
  .usp { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .check { grid-template-columns: repeat(2, 1fr); }
  .btn-lg { width: auto; }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- ab 900px: Desktop-Navigation, Aktionsleiste aus --- */
@media (min-width: 900px) {
  :root { --header-h: 76px; }

  body { font-size: 18px; padding-bottom: 0; }

  .section { padding: 112px 0; }
  .hero { padding: 88px 0 96px; }

  .brand { font-size: 1rem; }

  .nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 0;
    background: transparent;
    border: 0;
    transform: none;
    visibility: visible;
  }
  .nav-list { display: flex; gap: 28px; }
  .nav-list a {
    padding: 6px 0;
    font-size: .9375rem;
    font-weight: 500;
    border: 0;
    border-bottom: 2px solid transparent;
  }
  .nav-list a:hover { color: var(--paper); border-bottom-color: var(--signal-lt); }
  .nav-list a.is-active { color: var(--paper); border-bottom-color: var(--signal-lt); }
  .nav-cta { margin-top: 0; }
  .nav-toggle { display: none; }

  .hero-grid {
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 64px;
  }

  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .steps li { border-bottom: 0; padding: 28px 0 0; }
  .steps li:last-child { border-bottom: 0; }

  .checklist { padding: 40px; }
  .check { grid-template-columns: repeat(4, 1fr); }

  .location { grid-template-columns: 1fr 1.15fr; align-items: start; gap: 40px; }
  .location-card { padding: 40px; }
  .map iframe { height: 440px; }

  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 32px;
  }
  .footer-nav { grid-column: 2; grid-row: 1; }
  .footer-copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--ink-line); }

  .actionbar { display: none; }
}

/* --- ab 1200px --- */
@media (min-width: 1200px) {
  .hero { padding: 112px 0 120px; }
  .section { padding: 128px 0; }
}

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Druck ---------- */
@media print {
  .site-header, .actionbar, .map, .skip-link { display: none !important; }
  body { color: #000; background: #fff; padding: 0; }
  .hero, .section-dark, .site-footer { background: #fff !important; color: #000 !important; }
}
