/*
Theme Name: Felder Royal
Theme URI: https://felder-transporte.de/
Author: Felder Transporte
Description: Maßgeschneidertes One-Page-Theme für Felder Transporte – royalblau, elegant, mit Studio-Fahrzeugbildern, animierter Deutschlandkarte und Contact-Form-7-Unterstützung.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: felder-royal
*/

/* =====================================================================
   Felder Transporte – Royalblau, elegant, viel Weißraum
   ===================================================================== */

:root {
  --ink:      #0A1226;
  --navy:     #0B1E4B;
  --royal:    #1D4ED8;
  --royal-dk: #1E40AF;
  --sky:      #4F80F0;
  --gold:     #C6A15B;
  --mist:     #F4F6FB;
  --slate:    #5B6472;
  --white:    #FFFFFF;

  /* Bühnen-Töne, abgestimmt auf die Studio-Hintergründe der Fotos */
  --stage-base: #081231;
  --stage-glow: rgba(30, 68, 184, 0.55);
  --text-on-dark: #B9C7E8;
  --hairline-on-dark: rgba(255, 255, 255, 0.12);

  --font-display: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-card: 24px;
  --radius-media: 20px;
  --shadow-sm: 0 1px 2px rgba(10, 18, 38, 0.05), 0 4px 14px rgba(10, 18, 38, 0.06);
  --shadow-md: 0 2px 4px rgba(10, 18, 38, 0.06), 0 16px 40px rgba(10, 18, 38, 0.12);
  --shadow-lg: 0 4px 8px rgba(10, 18, 38, 0.08), 0 28px 64px rgba(10, 18, 38, 0.18);

  --section-pad: clamp(4.5rem, 10vw, 8rem);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--royal); text-decoration: none; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: rgba(29, 78, 216, 0.18); }

:focus-visible {
  outline: 3px solid rgba(29, 78, 216, 0.5);
  outline-offset: 3px;
  border-radius: 4px;
}

section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 200;
  background: var(--white);
  color: var(--navy);
  padding: 0.75em 1.25em;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout-Grundlagen ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4.5vw, 2.5rem);
}

.section { padding-block: var(--section-pad); }
.section-white { background: var(--white); }
.section-mist  { background: var(--mist); }

/* ---------- Typografie ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; }
h3 { font-size: 1.3125rem; font-weight: 700; letter-spacing: -0.01em; }

.kicker {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--royal);
  margin-bottom: 1rem;
}

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-lead {
  margin-top: 1.25rem;
  font-size: clamp(1.0625rem, 1.8vw, 1.1875rem);
  line-height: 1.65;
}

.section-head.on-dark h2 { color: var(--white); }
.section-head.on-dark .kicker { color: #8FAAF3; }
.gold-rule {
  display: block;
  width: 56px; height: 2px;
  background: var(--gold);
  margin: 1.75rem auto 0;
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.78em 1.6em;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.9875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease,
              color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.btn:active { transform: scale(0.98); }
.btn-lg { padding: 0.95em 2em; font-size: 1.0625rem; }

.btn-primary {
  background: var(--royal);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.32);
}
.btn-primary:hover {
  background: var(--royal-dk);
  box-shadow: 0 14px 30px rgba(29, 78, 216, 0.4);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--white);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-2px);
}

/* =====================================================================
   Header
   ===================================================================== */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
/* Die weiße Glasfläche liegt auf einer eigenen Ebene (::before).
   Wichtig: backdrop-filter direkt auf dem Header würde das fixierte
   Mobilmenü im Header „einsperren" (iOS/Containing-Block-Regel). */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0);
  transition: background-color 0.35s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 130;
  background: var(--white);
  border-radius: 14px;
  padding: 7px 12px;
  box-shadow: 0 4px 16px rgba(5, 10, 30, 0.28);
  transition: box-shadow 0.35s ease;
  flex-shrink: 0;
}
.brand img { width: clamp(108px, 12vw, 132px); height: auto; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2.25rem); }
.main-nav a:not(.btn) {
  font-family: var(--font-display);
  font-size: 0.9875rem;
  font-weight: 600;
  color: var(--white);
  transition: color 0.25s ease, opacity 0.25s ease;
  opacity: 0.92;
}
.main-nav a:not(.btn):hover { opacity: 1; color: var(--white); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav-cta-item { display: none; }
.header-cta { flex-shrink: 0; }

/* Header nach dem Scrollen bzw. auf Unterseiten: weiße Glasfläche */
.site-header.is-scrolled,
.site-header.is-solid {
  border-bottom-color: rgba(10, 18, 38, 0.08);
  box-shadow: 0 2px 20px rgba(10, 18, 38, 0.06);
}
.site-header.is-scrolled::before,
.site-header.is-solid::before {
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
}
.site-header.is-scrolled .brand,
.site-header.is-solid .brand { box-shadow: none; }
.site-header.is-scrolled .main-nav a:not(.btn),
.site-header.is-solid .main-nav a:not(.btn) { color: var(--ink); }
.site-header.is-scrolled .main-nav a:not(.btn):hover,
.site-header.is-solid .main-nav a:not(.btn):hover { color: var(--royal); }

/* Burger */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 130;
  width: 46px; height: 46px;
  margin-left: auto;
  border: none;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 4px 16px rgba(5, 10, 30, 0.24);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  body.nav-open .main-nav { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
  .main-nav ul { flex-direction: column; gap: 2.25rem; text-align: center; }
  .main-nav a:not(.btn),
  .site-header.is-scrolled .main-nav a:not(.btn),
  .site-header.is-solid .main-nav a:not(.btn) {
    color: var(--ink);
    font-size: 1.5rem;
    font-weight: 700;
  }
  .nav-cta-item { display: block; margin-top: 0.75rem; }
}

/* =====================================================================
   Hero – dunkle Bühne, auf die das Studio-Bild andockt
   ===================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(115% 75% at 50% 44%, var(--stage-glow) 0%, rgba(30, 68, 184, 0) 62%),
    linear-gradient(180deg, #060d24 0%, var(--stage-base) 38%, #0a1740 100%);
  color: var(--white);
  padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem));
}

.hero-copy {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5em 1.2em;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #C9D6F5;
  backdrop-filter: blur(8px);
}

.hero h1 {
  margin-top: 1.5rem;
  font-size: clamp(2.75rem, 7.6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1; /* genug Raum für Unterlängen (g, p) */
  letter-spacing: -0.03em;
  color: var(--white);
}
.hero h1 .line { display: block; }
.hero h1 .grad {
  background: linear-gradient(97deg, #D4E0FF 0%, #7FA4F8 48%, #4F80F0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* background-clip:text schneidet sonst die Unterlänge des „g" ab */
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.hero-lead {
  margin-top: 1.75rem;
  max-width: 640px;
  font-size: clamp(1.0625rem, 2vw, 1.3125rem);
  line-height: 1.6;
  color: #C2CFF0;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.hero-stage {
  position: relative;
  max-width: 1500px;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
}
.hero-stage img { width: 100%; }

/* Weiche Vignette, damit die Bildränder mit der Bühne verschmelzen */
.stage-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 92% 88% at 50% 50%, rgba(6, 13, 36, 0) 52%, rgba(6, 13, 36, 0.62) 84%, #060f2c 99%);
}
.hero-stage .stage-vignette {
  background:
    linear-gradient(180deg, rgba(6, 13, 36, 0.5) 0%, rgba(6, 13, 36, 0) 18%),
    radial-gradient(ellipse 94% 100% at 50% 42%, rgba(6, 13, 36, 0) 55%, rgba(6, 13, 36, 0.55) 86%, #060f2c 100%);
}

/* Sanftes Erscheinen beim Laden */
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
@keyframes stage-in {
  from { opacity: 0; transform: scale(0.975) translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.hero-badge { animation: rise 0.9s cubic-bezier(0.2, 0.65, 0.25, 1) 0.05s both; }
.hero h1    { animation: rise 0.9s cubic-bezier(0.2, 0.65, 0.25, 1) 0.15s both; }
.hero-lead  { animation: rise 0.9s cubic-bezier(0.2, 0.65, 0.25, 1) 0.28s both; }
.btn-row    { animation: rise 0.9s cubic-bezier(0.2, 0.65, 0.25, 1) 0.4s both; }
.hero-stage { animation: stage-in 1.1s cubic-bezier(0.2, 0.65, 0.25, 1) 0.5s both; }

/* =====================================================================
   Leistungen – 4 Karten
   ===================================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.service-card {
  background: var(--mist);
  border: 1px solid rgba(11, 30, 75, 0.06);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.65, 0.25, 1), box-shadow 0.35s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card-media { overflow: hidden; aspect-ratio: 16 / 10; }
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.65, 0.25, 1);
}
.service-card:hover .card-media img { transform: scale(1.045); }

.card-body { padding: clamp(1.5rem, 3vw, 2rem); }
.card-body h3 { margin-bottom: 0.6rem; }
.card-body p { max-width: 46ch; }

/* Mobil: kompakte Karten – quadratisch beschnittenes Bild links, Text rechts */
@media (max-width: 700px) {
  .cards-grid { grid-template-columns: 1fr; gap: 0.9rem; }
  .service-card {
    display: grid;
    grid-template-columns: 122px 1fr;
    align-items: stretch;
  }
  .card-media { aspect-ratio: auto; height: 100%; min-height: 122px; }
  .card-body { padding: 1rem 1.15rem; }
  .card-body h3 { font-size: 1.0625rem; margin-bottom: 0.35rem; }
  .card-body p { font-size: 0.875rem; line-height: 1.55; }
}

/* =====================================================================
   Warum Felder – tiefblauer Banner
   ===================================================================== */
.section-dark {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 60% at 20% 0%, rgba(79, 128, 240, 0.16) 0%, rgba(79, 128, 240, 0) 55%),
    radial-gradient(90% 70% at 85% 90%, rgba(30, 64, 175, 0.5) 0%, rgba(30, 64, 175, 0) 60%),
    linear-gradient(175deg, var(--navy) 0%, #0c1c4e 55%, var(--stage-base) 100%);
  color: var(--text-on-dark);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(2rem, 6vw, 5rem);
  margin-bottom: clamp(2.75rem, 5vw, 4rem);
  text-align: center;
}
.stat::before {
  content: "";
  display: block;
  width: 26px; height: 2px;
  margin: 0 auto 0.9rem;
  background: var(--gold);
  border-radius: 2px;
}
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--gold);
  line-height: 1.15;
}
.stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.95rem;
  color: var(--text-on-dark);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.trust-card {
  grid-column: span 2;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--hairline-on-dark);
  border-radius: var(--radius-media);
  padding: clamp(1.5rem, 2.5vw, 1.9rem);
  backdrop-filter: blur(6px);
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.trust-card:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-4px); }
.trust-card:nth-child(4) { grid-column: 2 / 4; }
.trust-card:nth-child(5) { grid-column: 4 / 6; }

.trust-icon { width: 30px; height: 30px; color: #8FAAF3; margin-bottom: 1.1rem; }
.trust-card h3 { color: var(--white); font-size: 1.125rem; margin-bottom: 0.5rem; }
.trust-card p { font-size: 0.975rem; line-height: 1.6; }

@media (max-width: 900px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-card, .trust-card:nth-child(4), .trust-card:nth-child(5) { grid-column: auto; }
  .trust-card:nth-child(5) { grid-column: 1 / -1; }
}
/* Mobil: Vertrauens-Karten zweispaltig, letzte Karte über volle Breite */
@media (max-width: 560px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-card { padding: 1.1rem; }
  .trust-icon { width: 24px; height: 24px; margin-bottom: 0.8rem; }
  .trust-card h3 { font-size: 1rem; }
  .trust-card p { font-size: 0.875rem; }
  .trust-card:nth-child(5) { grid-column: 1 / -1; }
}

.banner-figure { margin-top: clamp(3rem, 6vw, 5rem); }
.banner-media {
  position: relative;
  max-width: 1080px;
  margin-inline: auto;
  will-change: transform;
}
.banner-media img { width: 100%; }

/* =====================================================================
   Fuhrpark – Galerie
   ===================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.gallery-item {
  border-radius: var(--radius-media);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.65, 0.25, 1);
}
.gallery-item:hover img { transform: scale(1.05); }

@media (max-width: 1000px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
/* Mobil: Galerie bleibt zweispaltig – sechs kompakte Kacheln statt langer Bildstrecke */
@media (max-width: 600px) {
  .gallery-grid { gap: 0.75rem; }
  .gallery-item { border-radius: 14px; }
}

/* =====================================================================
   Über uns
   ===================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.about-copy h2 { margin-bottom: 1.5rem; }
.about-copy p + p { margin-top: 1.1rem; }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}
.chip-row li {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--white);
  border: 1px solid rgba(29, 78, 216, 0.18);
  border-radius: 999px;
  padding: 0.45em 1.1em;
  box-shadow: var(--shadow-sm);
}

.small-note {
  margin-top: 1.75rem;
  font-size: 0.9rem;
  color: #7C8494;
}

.about-media {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-media img { width: 100%; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { order: 2; max-width: 560px; }
}

/* =====================================================================
   Kontakt
   ===================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: stretch;
}

.contact-info {
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(79, 128, 240, 0.28) 0%, rgba(79, 128, 240, 0) 55%),
    linear-gradient(165deg, var(--navy) 0%, var(--stage-base) 100%);
  color: var(--text-on-dark);
  border-radius: var(--radius-card);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  display: flex;
  flex-direction: column;
}
.contact-info h3 { color: var(--white); margin-bottom: 1.25rem; }
.contact-info address { line-height: 1.7; margin-bottom: 1.5rem; }
.contact-info address strong { color: var(--white); font-family: var(--font-display); }

.contact-list { display: grid; gap: 0.9rem; }
.contact-list li { display: flex; align-items: flex-start; gap: 0.75rem; }
.contact-list svg { width: 21px; height: 21px; flex-shrink: 0; margin-top: 0.2em; color: #8FAAF3; }
.contact-list a {
  color: var(--white);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.25s ease;
}
.contact-list a:hover { text-decoration-color: var(--sky); }

.contact-note {
  margin-top: auto;
  padding-top: 1.75rem;
  font-size: 0.95rem;
}

.contact-form {
  background: var(--mist);
  border: 1px solid rgba(11, 30, 75, 0.06);
  border-radius: var(--radius-card);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.form-field { margin-bottom: 1.1rem; }
.form-field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.45rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid #DDE4F2;
  border-radius: 12px;
  padding: 0.8em 1em;
  color: var(--ink);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--royal);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.14);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0.25rem 0 1.5rem;
}
.form-consent input {
  width: 19px; height: 19px;
  margin-top: 0.25em;
  flex-shrink: 0;
  accent-color: var(--royal);
}
.form-consent label { font-size: 0.9rem; line-height: 1.6; }
.form-consent a { text-decoration: underline; text-underline-offset: 3px; }

.form-status {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #7C8494;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-note { margin-top: 1.5rem; padding-top: 0; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer {
  background: #060d24;
  color: var(--text-on-dark);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.logo-pill {
  display: inline-flex;
  background: var(--white);
  border-radius: 14px;
  padding: 9px 14px;
  margin-bottom: 1.25rem;
}
.logo-pill img { width: 128px; height: auto; }

.footer-brand p { max-width: 34ch; font-size: 0.975rem; }

.site-footer h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-nav ul { display: grid; gap: 0.7rem; }
.site-footer a { color: var(--text-on-dark); transition: color 0.25s ease; }
.site-footer a:hover { color: var(--white); }
.footer-contact address { margin-bottom: 0.9rem; font-size: 0.975rem; }
.footer-contact p { font-size: 0.975rem; line-height: 1.9; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.9rem;
}
.legal-links { display: flex; gap: 1.75rem; }

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2.25rem; }
}

/* =====================================================================
   Unterseiten (Impressum / Datenschutz)
   ===================================================================== */
body.legal-page { background: var(--white); }
.legal-main {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem));
  padding-bottom: var(--section-pad);
}
.legal-article { max-width: 760px; }
.legal-article h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.legal-article .legal-stand {
  color: #7C8494;
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}
.legal-article h2 {
  font-size: 1.4375rem;
  margin: 2.5rem 0 0.9rem;
}
.legal-article h3 { font-size: 1.125rem; margin: 1.75rem 0 0.6rem; }
.legal-article p + p { margin-top: 0.9rem; }
.legal-article ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin-top: 0.75rem;
}
.legal-article ul li { margin-bottom: 0.4rem; }
.legal-article a { text-decoration: underline; text-underline-offset: 3px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-bottom: 2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

/* =====================================================================
   Scroll-Reveal
   ===================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.2, 0.65, 0.25, 1),
              transform 0.75s cubic-bezier(0.2, 0.65, 0.25, 1);
}
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal.is-visible { opacity: 1; transform: none; }

/* =====================================================================
   So läuft's – 4 Schritte mit Icons
   ===================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  position: relative;
  padding: 0;
  list-style: none;
}
/* gestrichelte Route zwischen den Schritten (nur Desktop) */
.steps-grid::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 12.5%;
  right: 12.5%;
  border-top: 2px dashed rgba(29, 78, 216, 0.28);
}
.step { position: relative; text-align: center; padding-inline: 0.5rem; }
.step-plate {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px; height: 76px;
  background: var(--white);
  border: 1px solid rgba(11, 30, 75, 0.07);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}
.step-plate img { width: 46px; height: 46px; object-fit: contain; }
.step-num {
  display: block;
  margin: 1rem 0 0.3rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--royal);
}
.step h3 { font-size: 1.1875rem; margin-bottom: 0.45rem; }
.step p { font-size: 0.975rem; line-height: 1.6; max-width: 30ch; margin-inline: auto; }

@media (max-width: 900px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); row-gap: 2.25rem; }
  .steps-grid::before { display: none; }
}
/* Mobil: Schritte als 2×2-Raster statt langer Einzelspalte */
@media (max-width: 560px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); column-gap: 1rem; row-gap: 1.9rem; }
  .step { padding-inline: 0.25rem; }
  .step-plate { width: 64px; height: 64px; border-radius: 18px; }
  .step-plate img { width: 38px; height: 38px; }
  .step h3 { font-size: 1.0625rem; }
  .step p { font-size: 0.875rem; }
}

.flow-figure {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 21 / 8;
}
.flow-figure img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) {
  .flow-figure { aspect-ratio: 2 / 1; }
}

/* =====================================================================
   Cinematic-Banner (Autobahn, blaue Stunde)
   ===================================================================== */
.quote-banner {
  position: relative;
  overflow: hidden;
  min-height: clamp(320px, 44vw, 540px);
  display: grid;
  place-items: center;
  background: var(--stage-base);
}
.quote-bg {
  position: absolute;
  left: 0;
  top: -60px;
  width: 100%;
  height: calc(100% + 120px);
  object-fit: cover;
  will-change: transform;
}
.quote-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 90% at 50% 50%, rgba(6, 13, 36, 0.36) 0%, rgba(6, 13, 36, 0.68) 100%);
}
.quote-content {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: clamp(3rem, 8vw, 5rem) clamp(1.25rem, 5vw, 2.5rem);
  text-align: center;
}
.quote-content p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(4, 9, 26, 0.5);
}
.quote-content cite {
  display: block;
  margin-top: 1.2rem;
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #C9D6F5;
}
.quote-content cite::before {
  content: "";
  display: block;
  width: 34px; height: 2px;
  background: var(--gold);
  margin: 0 auto 0.85rem;
  border-radius: 2px;
}

/* =====================================================================
   Deutschlandweit im Einsatz – animierte Karte
   ===================================================================== */
.map-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.map-copy .section-head { margin-bottom: 0; }
.map-photo {
  margin-top: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius-media);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.map-photo img { width: 100%; }
.map-visual { display: grid; place-items: center; }

.de-map { width: 100%; max-width: 520px; height: auto; display: block; }
.de-outline {
  fill: rgba(79, 128, 240, 0.08);
  stroke: rgba(143, 170, 243, 0.55);
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.route {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  opacity: 0.92;
}
.city { fill: var(--gold); }
.city-label, .home-label {
  font-family: var(--font-body);
  font-size: 13.5px;
  fill: #B9C7E8;
  letter-spacing: 0.02em;
}
.home-label { fill: var(--white); font-weight: 600; }
.home-dot { fill: var(--white); }
.home-pulse {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: mapPulse 2.8s ease-out infinite;
}
@keyframes mapPulse {
  0%   { transform: scale(0.5); opacity: 0.9; }
  70%  { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* Startzustand vor der Animation (setzt JS – nur ohne reduzierte Bewegung) */
.de-map.map-armed .route { stroke-dashoffset: 1; }
.de-map.map-armed .city,
.de-map.map-armed .city-label { opacity: 0; }
.de-map.map-armed .city { transform: scale(0.4); transform-box: fill-box; transform-origin: center; }

/* Abspielen: Routen zeichnen sich gestaffelt, Städte blenden nach */
.de-map.map-play .route {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.85s cubic-bezier(0.35, 0, 0.25, 1) calc(0.1s + var(--i) * 0.3s);
}
.de-map.map-play .city {
  opacity: 1;
  transform: none;
  transition: opacity 0.35s ease calc(0.8s + var(--i) * 0.3s),
              transform 0.35s ease calc(0.8s + var(--i) * 0.3s);
}
.de-map.map-play .city-label {
  opacity: 1;
  transition: opacity 0.45s ease calc(0.9s + var(--i) * 0.3s);
}

@media (max-width: 900px) {
  .map-grid { grid-template-columns: 1fr; }
  .map-visual { order: 2; }
  .map-photo { max-width: 560px; }
  .de-map { max-width: 440px; }
}
/* Mobil: Begleitfoto weglassen – die animierte Karte trägt die Sektion allein */
@media (max-width: 700px) {
  .map-photo { display: none; }
}
@media (max-width: 600px) {
  /* SVG skaliert mit – größere Schrift gleicht die Verkleinerung aus */
  .city-label, .home-label { font-size: 17px; }
}

/* =====================================================================
   Ladungssicherung (im Fuhrpark-Abschnitt)
   ===================================================================== */
.cargo-block {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  margin-top: clamp(3rem, 6vw, 5rem);
}
.cargo-copy h3 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); margin-bottom: 0.9rem; }
.cargo-copy p { max-width: 44ch; }
.cargo-media {
  border-radius: var(--radius-media);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
}
.cargo-media img { width: 100%; height: 100%; object-fit: cover; }

/* Mobil & Tablet: Text oben, Bild darunter */
@media (max-width: 900px) {
  .cargo-block { grid-template-columns: 1fr; }
  .cargo-media { max-width: 560px; }
}
@media (max-width: 560px) {
  .cargo-block { gap: 0.9rem; }
  .cargo-media { border-radius: 14px; }
}

/* Dezente 3D-Tiefe für das Hero-Bild (Maus-Tilt, nur Desktop) */
.hero-stage { perspective: 1100px; }
.hero-stage img { will-change: transform; }

/* =====================================================================
   Reduzierte Bewegung
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-badge, .hero h1, .hero-lead, .btn-row, .hero-stage { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .banner-media, .quote-bg, .hero-stage img { transform: none !important; }
  .home-pulse { animation: none; opacity: 0.35; }
  /* Karte fertig gezeichnet anzeigen, keine Routen-Animation */
  .de-map.map-armed .route { stroke-dashoffset: 0; }
  .de-map.map-armed .city,
  .de-map.map-armed .city-label { opacity: 1; transform: none; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}


/* =====================================================================
   WordPress-Anpassungen
   ===================================================================== */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

/* Menüpunkte aus WordPress-Menüs erben die Link-Optik automatisch */
.main-nav li { margin: 0; }

/* =====================================================================
   Contact Form 7 – im Design des Vorschau-Formulars
   ===================================================================== */
.contact-form .wpcf7 .form-field { margin-bottom: 1.1rem; }
.contact-form .wpcf7 label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.45rem;
}
.contact-form .wpcf7 input:not([type="checkbox"]):not([type="submit"]),
.contact-form .wpcf7 textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid #DDE4F2;
  border-radius: 12px;
  padding: 0.8em 1em;
  color: var(--ink);
  font: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.contact-form .wpcf7 textarea { resize: vertical; min-height: 140px; }
.contact-form .wpcf7 input:focus,
.contact-form .wpcf7 textarea:focus {
  outline: none;
  border-color: var(--royal);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.14);
}
.contact-form .wpcf7 input[type="checkbox"] {
  width: 19px;
  height: 19px;
  margin-top: 0.25em;
  flex-shrink: 0;
  accent-color: var(--royal);
}
.contact-form .wpcf7 .form-consent label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--slate);
}
.contact-form .wpcf7 .wpcf7-list-item { display: block; margin: 0; }
.contact-form .wpcf7 input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95em 2em;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  background: var(--royal);
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.32);
  transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.contact-form .wpcf7 input[type="submit"]:hover {
  background: var(--royal-dk);
  box-shadow: 0 14px 30px rgba(29, 78, 216, 0.4);
  transform: translateY(-2px);
}
.wpcf7-spinner { display: inline-block; margin: 0.5rem; }
.wpcf7-not-valid-tip {
  display: block;
  color: #B42318;
  font-size: 0.85rem;
  margin-top: 0.35rem;
}
.wpcf7 form .wpcf7-response-output {
  margin: 1.25rem 0 0;
  padding: 0.8em 1.1em;
  border: 1px solid #DDE4F2;
  border-radius: 12px;
  font-size: 0.925rem;
}
.wpcf7 form.sent .wpcf7-response-output { border-color: #12B76A; color: #067647; }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output { border-color: #B42318; color: #B42318; }
