/* vph Logistik – Layout wie die bisherige Seite, modernisiert.
   Farben aus der alten Seite: Hausgruen #007858, Kachelgrau #e1e1e1, Fusszeile #2c353d. */

:root {
  --gruen: #007858;
  --gruen-dunkel: #005c43;
  --gruen-hell: #e6f2ee;
  --grau: #e1e1e1;
  --grau-hell: #f5f6f5;
  --text: #1f2a30;
  --text-leise: #5a666d;
  --fuss: #2c353d;
  --breite: 1180px;
  --rand: clamp(1rem, 4vw, 2rem);
  --kopfhoehe: 76px;
  --schrift: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--kopfhoehe); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gruen); }
a:hover { color: var(--gruen-dunkel); }
:focus-visible { outline: 3px solid var(--gruen); outline-offset: 3px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1em; }

.unsichtbar {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.sprung {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--gruen); color: #fff; padding: .5rem 1rem; border-radius: 4px;
}
.sprung:focus { top: .5rem; }

/* ---------- Kopfzeile ---------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s, border-color .2s;
}
.kopf.geblaettert { box-shadow: 0 2px 14px rgba(0, 0, 0, .08); border-color: #eee; }
.kopf-innen {
  max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand);
  height: var(--kopfhoehe);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo img { width: 200px; height: auto; }

.menue ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.menue a {
  display: block; padding: .5rem .85rem;
  color: var(--text); text-decoration: none; font-weight: 500;
  border-bottom: 2px solid transparent;
}
.menue a:hover { color: var(--gruen); }
.menue a[aria-current="page"] { color: var(--gruen); border-bottom-color: var(--gruen); }
.menue li:last-child a {
  margin-left: .5rem; border: 2px solid var(--gruen); border-radius: 4px; color: var(--gruen);
}
.menue li:last-child a:hover,
.menue li:last-child a[aria-current="page"] { background: var(--gruen); color: #fff; }

.menue-knopf { display: none; }

@media (max-width: 860px) {
  :root { --kopfhoehe: 64px; }
  .logo img { width: 160px; }
  .menue-knopf {
    display: block; width: 44px; height: 44px; padding: 0;
    background: none; border: 0; cursor: pointer; position: relative;
  }
  .menue-strich, .menue-strich::before, .menue-strich::after {
    position: absolute; left: 10px; width: 24px; height: 2px; background: var(--text);
    transition: transform .2s, opacity .2s; content: "";
  }
  .menue-strich { top: 21px; }
  .menue-strich::before { top: -7px; left: 0; }
  .menue-strich::after { top: 7px; left: 0; }
  .menue-knopf[aria-expanded="true"] .menue-strich { background: transparent; }
  .menue-knopf[aria-expanded="true"] .menue-strich::before { transform: translateY(7px) rotate(45deg); }
  .menue-knopf[aria-expanded="true"] .menue-strich::after { transform: translateY(-7px) rotate(-45deg); }

  .menue {
    display: none;
    position: absolute; top: var(--kopfhoehe); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid #e5e5e5; box-shadow: 0 12px 20px rgba(0, 0, 0, .08);
  }
  .menue.offen { display: block; }
  .menue ul { flex-direction: column; padding: .5rem var(--rand) 1rem; }
  .menue a { padding: .75rem 0; border-bottom: 1px solid #eee; }
  .menue a[aria-current="page"] { border-bottom-color: #eee; }
  .menue li:last-child a { margin: .75rem 0 0; text-align: center; padding: .7rem; }
}

/* ---------- Titelbild und Leitsatz ---------- */
.titelbild img { width: 100%; height: clamp(220px, 42vw, 560px); object-fit: cover; object-position: center 40%; }

.leitsatz {
  background: var(--gruen); color: #fff; text-align: center;
  padding: clamp(1.75rem, 4vw, 3rem) var(--rand);
}
.leitsatz h1 { margin: 0 auto; max-width: 900px; font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 600; letter-spacing: .01em; }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: clamp(3rem, 7vw, 5.5rem) var(--rand); }
.abschnitt > * { max-width: var(--breite); margin-left: auto; margin-right: auto; }
.abschnitt-hell { background: var(--grau-hell); }
.abschnitt-gruen { background: var(--gruen); color: #fff; }
.abschnitt-zahlen { background: url("/bilder/hintergrund.webp") center top / cover no-repeat, var(--grau-hell); }
.breit { padding: 0 var(--rand); margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.breit > * { max-width: var(--breite); margin-left: auto; margin-right: auto; }
.mittig { text-align: center; }
.seite-schmal > * { max-width: 760px; }

.ueberschrift { font-size: clamp(1.8rem, 3.2vw, 2.4rem); color: var(--gruen); font-weight: 500; }
.abschnitt-gruen .ueberschrift { color: #fff; }
.ueberschrift.mittig::after {
  content: ""; display: block; width: 56px; height: 3px; background: currentColor; margin: .6em auto 0;
}
.unterzeile { color: var(--text-leise); font-size: 1.05rem; margin-bottom: 1.5rem; }
.abschnitt-gruen .unterzeile { color: rgba(255, 255, 255, .85); text-transform: uppercase; letter-spacing: .12em; font-size: .9rem; }
.einleitung { max-width: 860px; text-align: center; margin-bottom: 2.5rem; }

.knopf {
  display: inline-block; background: var(--gruen); color: #fff; text-decoration: none;
  padding: .85rem 1.6rem; border-radius: 4px; font-weight: 600; letter-spacing: .02em;
  transition: background .15s;
}
.knopf:hover { background: var(--gruen-dunkel); color: #fff; }

/* ---------- Film ---------- */
.film-bereich { padding: clamp(1.5rem, 4vw, 2.5rem) var(--rand) 0; }
.film { position: relative; max-width: var(--breite); margin: 0 auto; aspect-ratio: 1920 / 900; background: #000; overflow: hidden; border-radius: 6px; }
.film video { width: 100%; height: 100%; display: block; object-fit: contain; }
.js .film::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .25); pointer-events: none; }
.js .film.laeuft::after { display: none; }
.film-start {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: none; flex-direction: column; align-items: center; gap: .6rem;
  background: none; border: 0; color: #fff; font: inherit; font-weight: 600; cursor: pointer;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}
.film-dreieck {
  width: 84px; height: 84px; border-radius: 50%; background: rgba(255, 255, 255, .92);
  position: relative; transition: transform .15s, background .15s;
}
.film-dreieck::after {
  content: ""; position: absolute; left: 34px; top: 26px;
  border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent var(--gruen);
}
.js .film-start { display: flex; }
.film-start:hover .film-dreieck { transform: scale(1.06); background: #fff; }
@media (max-width: 480px) {
  /* Film ist auf dem Handy nur gut 160 px hoch – Startknopf kleiner */
  .film-start { gap: .2rem; font-size: .85rem; }
  .film-dreieck, .film-start:hover .film-dreieck { transform: scale(.65); margin: -15px 0; }
}

/* ---------- Balken "Zur IGEPA-Logistik" ---------- */
.balken {
  display: block; background: var(--gruen); color: #fff; text-align: center; text-decoration: none;
  padding: 1.6rem 1rem; font-size: 1.15rem; font-weight: 600; letter-spacing: .03em; border-radius: 4px;
  transition: background .15s;
}
.balken::after { content: " →"; }
.balken:hover { background: var(--gruen-dunkel); color: #fff; }

/* ---------- Kachelraster ---------- */
.kacheln { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.kachel {
  aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 1.5rem; font-size: clamp(1rem, 1.6vw, 1.25rem); font-weight: 600; letter-spacing: .02em;
}
.kachel span { max-width: 18em; }
.kachel-gruen { background: var(--gruen); color: #fff; }
.kachel-grau { background: var(--grau); color: var(--text); }
.kachel-bild { background: url("/bilder/hintergrund.webp") center / cover no-repeat, #f2f4f3; color: var(--text); }

@media (max-width: 860px) {
  .kacheln { grid-template-columns: repeat(2, 1fr); }
  /* Schachbrett bleibt erhalten: im 2er-Raster Reihenfolge der Farben neu ordnen */
  .kachel:nth-child(3) { order: 4; }
  .kachel:nth-child(4) { order: 3; }
}
@media (max-width: 520px) {
  .kacheln { grid-template-columns: 1fr; }
  .kachel { aspect-ratio: auto; min-height: 7.5rem; }
  .kachel:nth-child(3), .kachel:nth-child(4) { order: 0; }
}

/* ---------- Ueber uns ---------- */
.zweispaltig { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.karte { width: 100%; max-width: 380px; justify-self: center; }
@media (max-width: 760px) {
  .zweispaltig { grid-template-columns: 1fr; }
  .karte { max-width: 260px; }
}

/* ---------- Standorte ---------- */
.standorte { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 860px; }
.standorte li {
  background: #fff; border-radius: 6px; padding: 1.75rem; display: grid;
  grid-template-columns: auto 1fr; column-gap: 1.1rem; box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}
.standorte h3 { margin: 0 0 .25rem; color: var(--gruen); font-size: 1.3rem; }
.standorte p { margin: 0; grid-column: 2; }
.standort-zeichen {
  grid-row: span 2; width: 48px; height: 48px; border-radius: 50%; background: var(--gruen); position: relative;
}
/* Ortsmarke aus CSS: Kreis mit Punkt */
.standort-zeichen::after {
  content: ""; position: absolute; left: 15px; top: 12px; width: 18px; height: 18px;
  border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
}
@media (max-width: 620px) { .standorte { grid-template-columns: 1fr; } }

/* ---------- Vielfalt ---------- */
.drei-punkte { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; text-align: center; }
.drei-punkte li { font-size: 1.3rem; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.punkt-zeichen { width: 56px; height: 56px; border: 2px solid rgba(255, 255, 255, .8); border-radius: 50%; position: relative; }
.punkt-zeichen::after {
  content: ""; position: absolute; left: 18px; top: 13px; width: 16px; height: 24px;
  border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) scale(.7);
}
@media (max-width: 680px) { .drei-punkte { grid-template-columns: 1fr; } }

/* ---------- Zahlen ---------- */
.zahlen { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.25rem 1.5rem; text-align: center; margin-top: 2.5rem; }
.zahlen li { display: flex; flex-direction: column; align-items: center; }
.zahl { font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 700; color: var(--gruen); line-height: 1.1; font-variant-numeric: tabular-nums; }
.zahl-text { color: var(--text-leise); max-width: 16em; }
@media (max-width: 680px) { .zahlen { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Schwebender Knopf ---------- */
.schwebeknopf {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40;
  background: var(--text); color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: .7rem 1.1rem; border-radius: 4px; box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
}
.schwebeknopf:hover { background: var(--gruen); color: #fff; }
@media (max-width: 860px) { .schwebeknopf { display: none; } }

/* ---------- Fusszeile ---------- */
.fuss { background: var(--fuss); color: #d5dadd; font-size: .98rem; }
.fuss-innen {
  max-width: var(--breite); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) var(--rand) 2rem;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem;
}
.fuss h2 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: .35rem; }
.fuss a { color: #d5dadd; text-decoration: none; }
.fuss a:hover { color: #fff; text-decoration: underline; }
.fuss-zeile {
  margin: 0; padding: 1.1rem var(--rand); text-align: center; font-size: .88rem;
  color: #9aa4aa; border-top: 1px solid rgba(255, 255, 255, .08);
}
@media (max-width: 760px) { .fuss-innen { grid-template-columns: 1fr; } }

/* ======================================================================
   Unterseiten
   ====================================================================== */
.leitsatz p { margin: .6rem auto 0; max-width: 760px; color: rgba(255, 255, 255, .88); font-size: 1.1rem; }

/* Gruener Trenner (ersetzt das Bauplan-Bild der alten Seite) */
.trenner {
  height: clamp(60px, 9vw, 110px);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 28px),
    var(--gruen);
}

/* Service: drei Karten */
.karten { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.karten li { background: var(--grau-hell); border-top: 4px solid var(--gruen); border-radius: 4px; padding: 1.5rem 1.5rem 1rem; }
.karten h3 { color: var(--gruen); font-size: 1.25rem; }
@media (max-width: 860px) { .karten { grid-template-columns: 1fr; } }

/* Service: Kennzahlen mit Strichzeichnung */
.fakten { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; text-align: center; }
.fakten li { display: flex; flex-direction: column; align-items: center; gap: 1rem; color: var(--gruen); font-weight: 600; font-size: 1.1rem; }
.fakten img { height: 90px; width: auto; }
@media (max-width: 680px) { .fakten { grid-template-columns: 1fr; } }

/* Service: Mehrwert als nummerierte Liste */
.mehrwert { list-style: none; padding: 0; counter-reset: mw; max-width: 900px; margin-top: 2rem; }
.mehrwert li { counter-increment: mw; position: relative; padding-left: 4rem; margin-bottom: 1.75rem; }
.mehrwert li::before {
  content: counter(mw); position: absolute; left: 0; top: -.15rem;
  width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--gruen); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.15rem;
}
.mehrwert h3 { color: var(--gruen); font-size: 1.25rem; margin-bottom: .3rem; }
.mehrwert p { margin: 0; }

/* Service: Beispiele aus der Praxis */
.praxis { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 1.5rem; margin-top: 2.5rem; }
.praxis li { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.praxis img { height: 110px; width: auto; max-width: 100%; object-fit: contain; }
.praxis h3 { font-size: .95rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gruen); margin: 0; line-height: 1.35; }
.praxis a { font-size: .95rem; }
@media (max-width: 960px) { .praxis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .praxis { grid-template-columns: 1fr; } }

/* Fuhrpark */
.rund { border-radius: 6px; }
.fahrzeuge { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.fahrzeuge li { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 10px rgba(0, 0, 0, .06); display: flex; flex-direction: column; }
.fahrzeuge img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.fahrzeug-text { padding: 1.25rem 1.5rem 1.5rem; }
.fahrzeug-text h3 { color: var(--gruen); font-size: 1.4rem; margin-bottom: .75rem; }
.fahrzeug-text dl { margin: 0; display: grid; gap: .35rem; }
.fahrzeug-text dl div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #eee; padding-bottom: .35rem; }
.fahrzeug-text dt { color: var(--text-leise); }
.fahrzeug-text dd { margin: 0; font-weight: 600; }
.fahrzeug-zusatz { margin: .9rem 0 0; font-size: .95rem; color: var(--text-leise); }
@media (max-width: 400px) { .fahrzeuge { grid-template-columns: 1fr; } }

/* Logistik: Bild und Text nebeneinander, abwechselnd */
.bildtext { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.bildtext:last-child { margin-bottom: 0; }
.bildtext img { border-radius: 6px; width: 100%; }
.bildtext-rechts img { order: 2; }
@media (max-width: 760px) {
  .bildtext { grid-template-columns: 1fr; }
  .bildtext-rechts img { order: 0; }
}

/* Kontakt */
.kontakt { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.kontakt-seite { display: grid; gap: 1.5rem; }
/* Foto klein und unbeschnitten neben Name und Telefon (Kopf immer ganz sichtbar) */
.person { background: var(--grau-hell); border-radius: 6px; display: grid; grid-template-columns: 120px 1fr; gap: 1.25rem; align-items: start; padding: 1.25rem; }
.person img { width: 120px; height: auto; border-radius: 4px; }
.person > div { padding: 0; }
.adresse { padding: 1.25rem 1.5rem; }
.adresse { background: var(--grau-hell); border-radius: 6px; }
.kontakt-seite h2 { font-size: 1.15rem; color: var(--gruen); }
.kontakt-seite p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .kontakt { grid-template-columns: 1fr; } }
.person a[href^="tel:"] { white-space: nowrap; }   /* Nummer nie mitten drin umbrechen */
@media (max-width: 480px) { .person { grid-template-columns: 88px 1fr; gap: 1rem; } .person img { width: 88px; } }

/* Formular */
.formular { margin-top: 1.5rem; display: grid; gap: 1rem; }
.feld { display: grid; gap: .3rem; }
.feld-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .feld-paar { grid-template-columns: 1fr; } }
.feld label { font-weight: 600; font-size: .95rem; }
.feld input, .feld select, .feld textarea {
  font: inherit; color: inherit; width: 100%;
  padding: .65rem .75rem; border: 1px solid #c9cfcc; border-radius: 4px; background: #fff;
}
.feld textarea { resize: vertical; min-height: 9rem; }
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: 2px solid var(--gruen); outline-offset: 0; border-color: var(--gruen); }
.feld-fehler input, .feld-fehler select, .feld-fehler textarea { border-color: #b3261e; background: #fff8f7; }
.feld-hinweis { margin: 0; color: #b3261e; font-size: .9rem; }
.pflicht { color: #b3261e; }
.klein { font-size: .9rem; color: var(--text-leise); margin: 0; }
.formular .knopf { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
/* Falle fuer Programme: fuer Menschen unsichtbar */
.honig { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.hinweis { border-radius: 4px; padding: 1rem 1.25rem; margin-top: 1.5rem; }
.hinweis p:last-child { margin-bottom: 0; }
.hinweis-gut { background: var(--gruen-hell); border-left: 4px solid var(--gruen); }
.hinweis-fehler { background: #fdecea; border-left: 4px solid #b3261e; }

/* Datenschutz und andere Fliesstexte */
.text { max-width: 820px; }
.text h2 { font-size: 1.3rem; color: var(--gruen); margin-top: 2.25rem; }
.text h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.text ul { padding-left: 1.25rem; }
.text li { margin-bottom: .5rem; }

/* Sechs Menuepunkte: zwischen Handy und breitem Bildschirm etwas enger */
@media (min-width: 861px) and (max-width: 1060px) {
  .menue a { padding: .5rem .55rem; font-size: .95rem; }
  .logo img { width: 170px; }
}
