/* ==========================================================================
   MVR Service GmbH – style.css
   Aufbau/Abstände/Typo nach quelle/design-notiz.md (Vorbild profirlogistik.de),
   Farben ausschließlich aus FAKTEN.md (plus Weiß und Seitengrund #FAF9FC
   laut Farb-Mapping in der Design-Notiz).
   Schriftgrößen in rem (Basis 16 px), damit die Browser-Schriftgröße greift.
   ========================================================================== */

/* ---------- Schrift: Instrument Sans (lokal, OFL, siehe fonts/OFL.txt) ---- */
/* latin-ext */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/instrument-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/instrument-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/instrument-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/instrument-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/instrument-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/instrument-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Variablen: nur Farben aus FAKTEN.md ------------------------- */
:root {
  --violett: #8B45F0;
  --dunkelviolett: #2E0E5C;
  --fast-schwarz: #231A38;
  --grauviolett: #6B6480;
  --orange: #FB6514;
  --orange-hell: #FFB152;
  --weiss: #FFFFFF;
  --seitengrund: #FAF9FC;

  --radius-karte: 16px;
  --radius-button: 64px;
  --container: 1200px;
  --header-hoehe: 80px;
  --schrift: 'Instrument Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--fast-schwarz);
  background: var(--seitengrund);
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

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

a { color: var(--violett); text-decoration: none; }

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.2; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 200;
  padding: 10px 20px;
  border-radius: var(--radius-button);
  background: var(--fast-schwarz);
  color: var(--weiss);
  font-size: .875rem;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ---------- Fokus-Markierung (Tastatur) ------------------------------------ */
/* hell auf hellem Grund, orange-hell auf dunklen Flächen, weiß auf Violett */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--violett);
  outline-offset: 3px;
}
.hero :is(a, button):focus-visible,
.page-hero :is(a, button):focus-visible,
.section--dunkel :is(a, button):focus-visible,
.footer :is(a, button):focus-visible { outline-color: var(--orange-hell); }
.karte--violett :is(a, button):focus-visible { outline-color: var(--weiss); }

/* ---------- Labels (kleiner Zeile über Titeln) ---------------------------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--grauviolett);
  margin-bottom: 16px;
}
.label::before {
  content: "";
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: var(--orange);
}
/* entfärbt: Orange-hell ist den interaktiven Links auf dunklem Grund vorbehalten */
.label--hell { color: rgb(255 255 255 / .65); }

/* ---------- Buttons (Pillen, Radius 64 px) -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius-button);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--violett); color: var(--weiss); }
.btn--primary:hover { background: var(--dunkelviolett); color: var(--weiss); }

.btn--outline { border-color: rgb(255 255 255 / .4); color: var(--weiss); }
.btn--outline:hover { border-color: var(--weiss); background: rgb(255 255 255 / .08); }

.btn--orange { background: var(--orange); color: var(--fast-schwarz); }
.btn--orange:hover { background: var(--orange-hell); color: var(--fast-schwarz); }

/* ---------- Header -------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--weiss);
  padding: 20px 0;
  transition: box-shadow .3s;
}
.header--scrolled { box-shadow: 0 2px 10px rgb(35 26 56 / .1); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header__logo img { height: 40px; width: auto; }

.nav__liste { display: flex; gap: 32px; }
.nav__link {
  position: relative;
  display: block;
  padding: 8px 0;
  font-size: .875rem;
  font-weight: 500;
  color: var(--grauviolett);
}
.nav__link:hover { color: var(--violett); }
.nav__link.is-active { color: var(--violett); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}

/* Optik bleibt 28×22 px, die Zielfläche wird per Padding 44×44 px;
   der negative Ausgleichs-Margin hält die Header-Höhe unverändert. */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 44px;
  height: 44px;
  padding: 11px 8px;
  margin: -11px -8px -11px 0;
  border: 0;
  background: none;
  cursor: pointer;
  z-index: 110;
}
.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--fast-schwarz);
  transition: transform .3s, opacity .3s;
}
.burger.is-active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgb(35 26 56 / .45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.overlay.is-visible { opacity: 1; visibility: visible; }

/* ---------- Hero (Startseite) --------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-hoehe) + 48px) 0 96px;
  background: linear-gradient(135deg, var(--dunkelviolett) 0%, var(--fast-schwarz) 100%);
  color: var(--weiss);
}
.hero__symbol {
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 560px;
  opacity: .05;
  pointer-events: none;
}
.hero h1 {
  font-size: 6rem;
  font-weight: 600;
  line-height: 1.05;
  margin: 8px 0 24px;
  max-width: 14ch;
}
.hero__untertitel {
  font-size: 1.25rem;
  max-width: 52ch;
  color: rgb(255 255 255 / .8);
}
.hero__aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}
.hero__karten {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 64px;
  border-radius: var(--radius-karte);
  overflow: hidden;
  background: rgb(255 255 255 / .15);
}
.hero__karte {
  padding: 24px;
  background: rgb(35 26 56 / .6);
}
.hero__karte h2 { font-size: .9375rem; font-weight: 600; margin-bottom: 8px; }
.hero__karte p { font-size: .9375rem; color: rgb(255 255 255 / .75); }

/* ---------- Sektionen ------------------------------------------------------ */
.section { padding: 96px 0; }
.section--mit-header { padding-top: calc(var(--header-hoehe) + 96px); }
.section--weiss { background: var(--weiss); }
.section--dunkel { background: var(--fast-schwarz); color: var(--weiss); }

.section__kopf {
  max-width: 640px;
  margin: 0 auto 64px;
  text-align: center;
}
.section__kopf .label { justify-content: center; }
.section__titel { font-size: 2rem; line-height: 1.4375; font-weight: 500; }
.section__text {
  margin-top: 16px;
  font-size: 1rem;
  color: var(--grauviolett);
}
.section--dunkel .section__text { color: rgb(255 255 255 / .75); }

/* ---------- Karten-Grid (1-px-Fugen) --------------------------------------- */
.karten-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border-radius: var(--radius-karte);
  overflow: hidden;
  background: var(--seitengrund);
  border: 1px solid var(--seitengrund);
}
.karte {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: var(--weiss);
}
.karte__balken {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--orange);
}
.karte__titel { font-size: 1.25rem; font-weight: 600; }
.karte p { font-size: .9375rem; color: var(--grauviolett); }

.karte--violett { background: var(--violett); color: var(--weiss); }
.karte--violett p { color: var(--weiss); }
.karte--violett .karte__balken { background: var(--orange-hell); }
.karte--dunkel { background: var(--dunkelviolett); color: var(--weiss); }
.karte--dunkel p { color: rgb(255 255 255 / .8); }

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

/* ---------- Dunkler Bereich mit MVR-Wasserzeichen -------------------------- */
.schritte-bereich { position: relative; overflow: hidden; }
.schritte-bereich__symbol {
  position: absolute;
  left: -160px;
  top: 50%;
  transform: translateY(-50%);
  width: 640px;
  opacity: .05;
  pointer-events: none;
}

/* ---------- Seitenkopf (Unterseiten) --------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-hoehe) + 64px) 0 64px;
  background: linear-gradient(135deg, var(--dunkelviolett) 0%, var(--fast-schwarz) 100%);
  color: var(--weiss);
}
.page-hero__symbol {
  position: absolute;
  right: -80px;
  bottom: -140px;
  width: 380px;
  opacity: .05;
  pointer-events: none;
}
.breadcrumb { font-size: .875rem; color: rgb(255 255 255 / .7); margin-bottom: 16px; }
.breadcrumb a { color: var(--orange-hell); }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 { font-size: 3.75rem; font-weight: 600; line-height: 1.1; }
.page-hero__text { margin-top: 16px; font-size: 1.25rem; max-width: 52ch; color: rgb(255 255 255 / .8); }

/* ---------- Inhalt (schmale Text-Seiten) ----------------------------------- */
.inhalt { max-width: 800px; margin: 0 auto; }
.inhalt h2 { font-size: 1.5625rem; font-weight: 600; margin: 48px 0 16px; }
.inhalt h2:first-child { margin-top: 0; }
.inhalt p { margin-bottom: 16px; }

/* Aufzählung im Inhaltsfluss (Aufzählungszeichen, global ist list-style: none) */
.inhalt ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; }
.inhalt li { margin-bottom: 8px; }

/* ---------- Leistungsabschnitte und Links in Inhaltsflächen ----------------- */
/* Ankerziele nicht unter den fixierten Header schieben */
.section[id] { scroll-margin-top: calc(var(--header-hoehe) + 16px); }

.leistung__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  color: var(--violett);
}
.section--dunkel .leistung__icon { color: var(--orange-hell); }

.inhalt .label + h2 { margin-top: 0; }
.section--dunkel .inhalt a:not(.btn) { color: var(--orange-hell); }

.inhalt__link { font-weight: 600; }
.inhalt__link::after { content: "→"; margin-left: 6px; }
.inhalt__link:hover { text-decoration: underline; text-underline-offset: 4px; }

.karte__link {
  margin-top: auto;
  font-size: .875rem;
  font-weight: 600;
  color: var(--violett);
}
.karte__link::after { content: "→"; margin-left: 6px; }
.karte__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.karte--violett .karte__link { color: var(--weiss); }

.hero__karte a { color: var(--orange-hell); font-weight: 500; }
.hero__karte a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 404 ------------------------------------------------------------ */
.fehlerseite { text-align: center; }
.fehlerseite__code {
  font-size: 8rem;
  line-height: 1;
  font-weight: 600;
  color: var(--violett);
}
.fehlerseite p { margin: 16px auto 32px; max-width: 44ch; color: var(--grauviolett); }

/* ---------- Footer ---------------------------------------------------------- */
.footer {
  background: var(--dunkelviolett);
  color: var(--weiss);
  padding: 96px 0 48px;
}
.footer__cta {
  max-width: 560px;
  margin: 0 auto 64px;
  text-align: center;
}
.footer__cta h2 { font-size: 2rem; line-height: 1.4375; font-weight: 500; }
.footer__cta-text {
  margin: 16px 0 32px;
  font-size: 1rem;
  color: rgb(255 255 255 / .75);
}
.footer__cta-direkt {
  margin-top: 20px;
  font-size: .9375rem;
  color: rgb(255 255 255 / .75);
}
.footer__cta-direkt a { color: var(--orange-hell); font-weight: 500; }
.footer__cta-direkt a:hover { text-decoration: underline; text-underline-offset: 3px; }

.footer__panel {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding: 50px;
  border-radius: var(--radius-karte);
  background: var(--fast-schwarz);
}
.footer__brand { display: flex; align-items: flex-start; gap: 16px; }
.footer__brand img { width: 48px; height: auto; }
.footer__firma { font-size: 1rem; font-weight: 600; }
.footer__anschrift { margin-top: 8px; font-size: .875rem; color: rgb(255 255 255 / .75); }
.footer__kontakt { font-size: .875rem; }
.footer__kontakt p { margin-bottom: 8px; }
.footer__kontakt a { color: var(--weiss); font-weight: 500; }
.footer__kontakt a:hover { color: var(--orange-hell); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / .15);
  font-size: .8125rem;
  line-height: 1.8;
  color: rgb(255 255 255 / .7);
}
.footer__bottom a { color: rgb(255 255 255 / .7); }
.footer__bottom a:hover { color: var(--orange-hell); }
.footer__rechtslinks { display: flex; gap: 24px; }

/* ---------- Responsive ------------------------------------------------------- */
@media (max-width: 1399px) {
  .hero h1 { font-size: 3.75rem; }
  .section__titel { font-size: 1.75rem; line-height: 1.393; }
  .footer__cta h2 { font-size: 1.75rem; line-height: 1.393; }
}

@media (max-width: 1200px) {
  .karten-grid { grid-template-columns: repeat(2, 1fr); }
  .karten-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .karten-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .hero h1 { font-size: 2.25rem; }
  .hero__untertitel { font-size: 1.125rem; }
  .section__titel { font-size: 1.5625rem; line-height: 1.4; }
  .footer__cta h2 { font-size: 1.5625rem; line-height: 1.4; }
  .page-hero h1 { font-size: 2.25rem; }
  .page-hero__text { font-size: 1.125rem; }

  .hero__karten { grid-template-columns: 1fr; }

  /* Off-Canvas-Menü von rechts */
  .burger { display: flex; }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 105;
    width: min(60%, 320px);
    height: 100dvh;
    background: var(--weiss);
    box-shadow: -24px 0 60px rgb(35 26 56 / .12);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s, visibility 0s linear .3s;
  }
  .nav.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform .3s, visibility 0s;
  }
  .nav__liste {
    flex-direction: column;
    gap: 8px;
    padding: 96px 32px 32px;
  }
  .nav__liste li {
    opacity: 0;
    transform: translateX(16px);
    transition: opacity .3s, transform .3s;
  }
  .nav.is-open .nav__liste li { opacity: 1; transform: none; }
  .nav.is-open .nav__liste li:nth-child(1) { transition-delay: .06s; }
  .nav.is-open .nav__liste li:nth-child(2) { transition-delay: .12s; }
  .nav.is-open .nav__liste li:nth-child(3) { transition-delay: .18s; }
  .nav__link { font-size: 1.125rem; padding: 12px 0; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section__kopf { margin-bottom: 40px; }
  .footer { padding: 64px 0 32px; }
  .footer__panel { padding: 30px; }
}

@media (max-width: 576px) {
  .karten-grid,
  .karten-grid--2,
  .karten-grid--3 { grid-template-columns: 1fr; }
  .hero__symbol { width: 360px; right: -140px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

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