/* FleetDossier Landing – automotive steel palette, light/dark */

:root,
[data-theme="light"] {
  --ink: #14171c;
  --ink-soft: #3a424c;
  --muted: #5c6570;
  --bg: #e6e8ec;
  --bg-deep: #d5d9e0;
  --surface: #f3f4f6;
  --line: rgba(20, 23, 28, 0.12);
  --accent: #1e3a5f;
  --accent-hover: #152a45;
  --accent-soft: rgba(30, 58, 95, 0.1);
  --cta: #8f2d2d;
  --cta-hover: #752424;
  --metal: #6b7380;
  --metal-hi: #9aa3b0;
  --metal-lo: #3d4450;
  --glass-hi: rgba(180, 200, 220, 0.55);
  --glass-lo: rgba(90, 110, 130, 0.35);
  --road: #2a3038;
  --header-bg: rgba(243, 244, 246, 0.82);
  --shadow-soft: 0 12px 40px rgba(20, 23, 28, 0.08);
  --dossier-sheet: #f7f8fa;
  --dossier-line: #c5cad3;
  --dossier-title: #1e3a5f;
  --dossier-qr: #e8eaee;
  --dossier-qr-mark: #1e3a5f;
  color-scheme: light;
}

[data-theme="dark"] {
  --ink: #e8eaed;
  --ink-soft: #c2c7d0;
  --muted: #8b939e;
  --bg: #0e1013;
  --bg-deep: #08090b;
  --surface: #171a1f;
  --line: rgba(232, 234, 237, 0.12);
  --accent: #8aa4c4;
  --accent-hover: #a8c0dc;
  --accent-soft: rgba(138, 164, 196, 0.12);
  --cta: #c45a5a;
  --cta-hover: #d47878;
  --metal: #4a5160;
  --metal-hi: #7a8494;
  --metal-lo: #232830;
  --glass-hi: rgba(120, 150, 180, 0.35);
  --glass-lo: rgba(40, 55, 75, 0.55);
  --road: #1a1e24;
  --header-bg: rgba(14, 16, 19, 0.88);
  --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.35);
  --dossier-sheet: #1c2128;
  --dossier-line: #3a4452;
  --dossier-title: #8aa4c4;
  --dossier-qr: #12151a;
  --dossier-qr-mark: #8aa4c4;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand-mark {
  text-decoration: none;
  color: var(--ink);
}

.brand-mark__name {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav {
  display: none;
  gap: 1.25rem;
  margin-left: 0.5rem;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--ink-soft);
}

.theme-toggle__icon {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset -0.28rem 0 0 0 var(--bg);
}

[data-theme="dark"] .theme-toggle__icon {
  box-shadow: none;
  background: radial-gradient(circle at 30% 30%, var(--bg) 35%, var(--ink) 36%);
}

.theme-toggle__label {
  display: none;
}

/* Legal / Impressum */
.page-legal .section--legal {
  border-top: none;
  padding-top: 3.5rem;
  padding-bottom: 5rem;
  min-height: calc(100vh - 12rem);
}

.legal-shell {
  max-width: 44rem;
}

.legal-title {
  margin: 0 0 1.5rem;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.legal-lead {
  margin: 0 0 1.75rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-content {
  display: grid;
  gap: 1.75rem;
}

.legal-block h2 {
  margin: 0 0 0.75rem;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.legal-block__body {
  display: grid;
  gap: 0.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.legal-block__body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
}

.legal-loading,
.legal-error {
  margin: 0;
  color: var(--muted);
}

.legal-error {
  color: var(--cta);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--cta);
  color: #fff;
}

.btn--primary:hover {
  background: var(--cta-hover);
  color: #fff;
  text-decoration: none;
}

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

.btn--secondary:hover {
  border-color: var(--ink-soft);
  color: var(--ink);
  text-decoration: none;
}

.btn--ghost {
  padding: 0.45rem 0.85rem;
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  font-size: 0.9rem;
}

.btn--ghost:hover {
  text-decoration: none;
  border-color: var(--ink-soft);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(100vh, 52rem);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  isolation: isolate;
}

.hero__atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, var(--accent-soft), transparent 55%),
    linear-gradient(165deg, var(--bg) 0%, var(--bg-deep) 48%, var(--surface) 100%);
  animation: atmosphere-shift 18s ease-in-out infinite alternate;
}

@keyframes atmosphere-shift {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.04);
  }
}

.hero__grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.5rem;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero__brand {
  margin: 0 0 0.75rem;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(2.75rem, 8vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
  animation: hero-rise 0.9s ease-out both;
}

.hero__headline {
  margin: 0 0 1rem;
  max-width: 22ch;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: clamp(1.75rem, 4.5vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  animation: hero-rise 0.9s ease-out 0.08s both;
}

.hero__lead {
  margin: 0 0 1.75rem;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.05rem;
  animation: hero-rise 0.9s ease-out 0.16s both;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: hero-rise 0.9s ease-out 0.24s both;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(1.1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__visual {
  animation: hero-rise 1s ease-out 0.2s both;
}

.hero__svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(var(--shadow-soft));
}

.hero-road {
  fill: var(--road);
  opacity: 0.55;
}

.hero-wheel {
  fill: var(--bg-deep);
  stroke: var(--metal-lo);
  stroke-width: 3;
}

.hero-wheel-inner {
  fill: var(--metal);
}

.dossier-sheet {
  fill: var(--dossier-sheet);
  stroke: var(--line);
  stroke-width: 1.5;
}

.dossier-line {
  fill: var(--dossier-line);
}

.dossier-line--title {
  fill: var(--dossier-title);
}

.dossier-qr {
  fill: var(--dossier-qr);
  stroke: var(--line);
}

.dossier-qr-mark {
  fill: var(--dossier-qr-mark);
}

.hero-dossier {
  animation: dossier-float 6s ease-in-out infinite;
  transform-origin: center;
}

@keyframes dossier-float {
  0%,
  100% {
    transform: translate(300px, 150px);
  }
  50% {
    transform: translate(300px, 138px);
  }
}

/* Sections */
.section {
  padding: 5rem 1.5rem;
  border-top: 1px solid var(--line);
}

.section--band {
  background:
    linear-gradient(180deg, var(--surface), var(--bg));
}

.section--close {
  text-align: center;
  padding-bottom: 6rem;
}

.section__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section__inner--split {
  display: grid;
  gap: 2.5rem;
}

.section__eyebrow {
  margin: 0 0 0.5rem;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section h2 {
  margin: 0 0 1rem;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.section__text + .section__text {
  margin-top: 1rem;
}

.section__text--narrow {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
}

.section--close .hero__cta {
  justify-content: center;
  margin-top: 1.75rem;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.feature-list li {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.25rem;
}

.feature-list strong {
  font-weight: 600;
  color: var(--ink);
}

.feature-list span {
  color: var(--muted);
  font-size: 0.98rem;
}

.footnote {
  position: relative;
  display: inline;
  cursor: help;
  color: var(--accent);
  font-weight: 600;
}

.footnote__tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.45rem);
  transform: translateX(-50%) translateY(0.25rem);
  width: min(18rem, 70vw);
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.45;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 5;
}

.footnote:hover .footnote__tip,
.footnote:focus .footnote__tip,
.footnote:focus-within .footnote__tip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

.steps__item {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.steps__num {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.steps__item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.steps__item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.secure-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.25rem 1.25rem;
}

.secure-panel__line {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  margin: 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.98rem;
}

.secure-panel__line:last-child {
  border-bottom: none;
}

.secure-panel__line span {
  flex: 0 0 5.5rem;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  padding: 2rem 1.5rem;
}

.site-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 0.35rem;
}

.site-footer__brand {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer__meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer__nav {
  margin-top: 0.75rem;
  display: flex;
  gap: 1.25rem;
}

.site-footer__nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
}

.site-footer__nav a:hover {
  color: var(--ink);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 720px) {
  .site-nav {
    display: flex;
  }

  .theme-toggle__label {
    display: inline;
  }

  .hero__grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 2.5rem;
    padding-top: 4.5rem;
  }

  .section__inner--split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 4rem;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .steps__item {
    border-top: none;
    padding-top: 0;
    border-left: 1px solid var(--line);
    padding-left: 1.25rem;
  }

  .steps__item:first-child {
    border-left: none;
    padding-left: 0;
  }
}

/* About page */
.page-about .hero {
  min-height: auto;
}

.page-about .hero__grid {
  align-items: end;
  padding-bottom: 3.5rem;
}

.page-about .hero__headline {
  max-width: 14ch;
  color: var(--ink);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.96;
}

.page-about .hero__lead {
  max-width: 48ch;
}

.hero__note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.about-panel {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
}

.about-panel__title {
  margin: 0 0 1rem;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  line-height: 1.15;
}

.about-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.about-facts li {
  display: grid;
  gap: 0.2rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.about-facts strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.about-facts span {
  color: var(--muted);
  font-size: 0.98rem;
}

.about-quote {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.75rem;
  border: 1px solid var(--line);
  background: var(--surface);
}

.about-quote__text {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.about-quote__source {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.team-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.team-list li {
  display: grid;
  gap: 0.2rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.team-list strong {
  font-weight: 600;
  color: var(--ink);
}

.team-list span {
  color: var(--muted);
  font-size: 0.98rem;
}

.section__text--flush {
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
}

.about-timeline {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.about-timeline__item {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.about-timeline__item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.about-timeline__item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.contact-panel {
  max-width: 36rem;
  margin: 0 auto 1.75rem;
  text-align: left;
}

.principle-grid {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.principle-grid li {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.principle-grid h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.principle-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

@media (min-width: 720px) {
  .page-about .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .principle-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }

  .principle-grid li {
    border-top: none;
    padding-top: 0;
    border-left: 1px solid var(--line);
    padding-left: 1.25rem;
  }

  .principle-grid li:first-child {
    border-left: none;
    padding-left: 0;
  }
}

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

  .hero__atmosphere,
  .hero-dossier,
  .hero__brand,
  .hero__headline,
  .hero__lead,
  .hero__cta,
  .hero__visual,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
