/* Fonts werden via wp_enqueue_style in functions.php geladen (kein render-blockendes @import) */

:root {
  --goetz-transition: 0.3s ease;
  --goetz-shadow-card: var(--wp--custom--shadow--card);
  --goetz-shadow-elevated: var(--wp--custom--shadow--elevated);
  --goetz-radius-sm: var(--wp--custom--radius--sm);
  --goetz-radius-md: var(--wp--custom--radius--md);
  --goetz-radius-lg: var(--wp--custom--radius--lg);
  --goetz-radius-pill: var(--wp--custom--radius--pill);
  --goetz-filter-primary: brightness(0) saturate(100%) invert(34%) sepia(89%) saturate(1652%) hue-rotate(196deg) brightness(92%) contrast(87%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--wp--preset--font-family--body);
  background: var(--wp--preset--color--background);
  color: var(--wp--preset--color--foreground);
  line-height: 1.75;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--wp--preset--color--primary);
}

:where(.wp-site-blocks) {
  overflow-x: clip;
}

/* Layout */
.section {
  padding-block: clamp(4rem, 7vw, 8rem);
  position: relative;
}

/* Sektionen direkt aneinander ohne Lücke */
.section + .section {
  border-top: none;
}

.section--alt {
  background: var(--wp--preset--color--secondary);
}

.section--muted {
  background: var(--wp--preset--color--muted);
}

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 5rem);
}

.section--dark {
  background: var(--wp--preset--color--foreground);
  color: #ffffff;
}

.section--gradient {
  background: linear-gradient(180deg, rgba(27, 111, 217, 0.05) 0%, rgba(27, 111, 217, 0.12) 100%);
}

.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

.stack {
  display: grid;
  gap: 1.25rem;
}

/* Eyebrow → Heading Abstand im Stack */
.stack > .wp-block-paragraph.eyebrow + .wp-block-heading {
  margin-top: 0.25rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--wp--preset--font-family--heading);
  -webkit-font-smoothing: antialiased;
}

h1 { letter-spacing: -0.03em; }
h2 { letter-spacing: -0.02em; }
h3 { letter-spacing: -0.01em; }

.eyebrow,
.wp-block-paragraph.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--goetz-radius-pill);
  border: 1px solid rgba(27, 111, 217, 0.2);
  background: rgba(27, 111, 217, 0.07);
  color: var(--wp--preset--color--primary);
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow--accent,
.wp-block-paragraph.eyebrow--accent {
  border-color: rgba(249, 115, 22, 0.25);
  background: rgba(249, 115, 22, 0.08);
  color: var(--wp--preset--color--accent);
}

/* Eyebrow zentrieren — funktioniert in Flex-, Grid- und Block-Kontexten */
.center .wp-block-paragraph.eyebrow,
.center .eyebrow {
  margin-inline: auto;      /* Block- und Flex-Kontext */
  justify-self: center;     /* Grid-Kontext (z. B. .center.stack mit display:grid) */
}

/* Hero: eyebrow liegt direkt im grid-Container .hero__inner ohne .center-Klasse */
.hero__inner > .wp-block-paragraph.eyebrow,
.hero__inner > .eyebrow {
  justify-self: center;
  margin-inline: auto;
}

/* Lead-Text (Untertitel unter Headlines) */
.lead {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: #4b5563;
  line-height: 1.7;
  max-width: 68ch;
}

.center .lead {
  margin-inline: auto;
}

.section--dark .lead {
  color: rgba(255, 255, 255, 0.72);
}

/* Standardmäßige Paragraph-Größe — konsequent und einheitlich */
.section p,
.section .wp-block-paragraph,
.site-footer p,
.site-footer .wp-block-paragraph,
.legal-page p {
  font-size: 0.9375rem;  /* 15px — Standard Web-Fließtext */
  line-height: 1.75;
  color: #374151;
}

/* Lead-Text bleibt größer */
.wp-block-paragraph.lead,
p.lead {
  font-size: clamp(1rem, 1.5vw, 1.125rem) !important;
  color: #4b5563;
  line-height: 1.7;
}

/* icon-row behält eigene Größe */
p.icon-row,
.wp-block-paragraph.icon-row {
  font-size: 0.9375rem;
  color: #374151;
}

/* stat-number & hero-Texte nicht überschreiben */
.hero p,
.hero .wp-block-paragraph {
  font-size: inherit;
  color: inherit;
}

.accent {
  color: var(--wp--preset--color--accent);
}

.section h1 span,
.section h2 span {
  color: var(--wp--preset--color--primary);
}

.section h1 span.accent,
.section h2 span.accent {
  color: var(--wp--preset--color--accent);
}

.center {
  text-align: center;
}

/* Buttons — Gap zwischen mehreren Buttons */
.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: center;
}

.wp-block-buttons.center,
.center .wp-block-buttons {
  justify-content: center;
}

/* Buttons in Sektionen: mehr Abstand nach oben */
.container > .wp-block-buttons {
  margin-top: 2.75rem;
}

.stack > .wp-block-buttons {
  margin-top: 0.75rem;
}

/* Sektion-Innenabstand: Abstand zwischen Überschriftsbereich (.center) und nachfolgendem Content */
.section .container > .center + *,
.section .container > .wp-block-group.center + * {
  margin-top: clamp(2rem, 3.5vw, 3.25rem);
}

/* Header — sticky auf dem äußeren Template-Part-Wrapper */
header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 1200;
  margin-bottom: 0;
}

.site-header {
  /* backdrop-filter NICHT direkt hier — würde einen Stacking Context schaffen
     der position:fixed Kinder (Drawer) an den Header klammert.
     Stattdessen: via ::before pseudo-element. */
  background: transparent;
  border-bottom: 1px solid var(--wp--preset--color--border);
  transition: box-shadow var(--goetz-transition), border-color var(--goetz-transition);
  overflow: visible;
  position: relative;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: -1;
  pointer-events: none;
}

.site-header.is-scrolled {
  border-color: transparent;
  box-shadow: 0 4px 24px -8px rgba(15, 23, 42, 0.14);
}

/* Keine automatischen Block-Gaps zwischen Header / Main / Footer */
.site-main {
  margin-top: 0;
  padding-top: 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.site-header .site-brand {
  color: var(--wp--preset--color--primary);
}

.site-logo-image {
  margin: 0;
}

.site-logo-image img {
  /* max-width begrenzt egal was WP als inline width setzt */
  max-width: min(220px, 100%) !important;
  width: auto !important;
  height: auto !important;
}

.footer-logo-image {
  margin: 0;
}

.footer-logo-image img,
.footer-logo-image .wp-block-site-logo img {
  width: min(200px, 100%);
  height: auto;
}

/* wp:site-logo im Footer korrekt rendern */
.site-footer .wp-block-site-logo {
  display: block;
  margin: 0;
}

.site-footer .wp-block-site-logo img {
  width: min(200px, 100%);
  height: auto;
  display: block;
}

/* ============================================================
   DESKTOP NAVIGATION
   overlayMenu:"never" → WP rendert einfache <ul> ohne Overlay.
   Kein !important-Krieg mit WordPress-Overlay-System nötig.
   ============================================================ */
.site-nav {
  display: flex;
  align-items: center;
}

.site-nav .wp-block-navigation__container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wp-block-navigation-item__content {
  position: relative;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--wp--preset--color--foreground);
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color var(--goetz-transition);
  padding-bottom: 2px;
  text-decoration: none;
}

/* Animierter Unterstrich */
.wp-block-navigation-item:not(.nav-cta) > .wp-block-navigation-item__content::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--wp--preset--color--primary);
  border-radius: 2px;
  transition: width 0.25s ease;
}
.wp-block-navigation-item:not(.nav-cta) > .wp-block-navigation-item__content:hover::after,
.wp-block-navigation-item:not(.nav-cta) > .wp-block-navigation-item__content:focus-visible::after {
  width: 100%;
}
.wp-block-navigation-item__content:hover,
.wp-block-navigation-item__content:focus-visible {
  color: var(--wp--preset--color--primary);
}
.wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content,
.wp-block-navigation-item.current_page_item > .wp-block-navigation-item__content {
  color: var(--wp--preset--color--primary);
}
.wp-block-navigation-item.current-menu-item:not(.nav-cta) > .wp-block-navigation-item__content::after,
.wp-block-navigation-item.current_page_item:not(.nav-cta) > .wp-block-navigation-item__content::after {
  width: 100%;
}

/* CTA-Button */
.wp-block-navigation-item.nav-cta > .wp-block-navigation-item__content {
  padding: 0.6rem 1.3rem;
  border-radius: var(--goetz-radius-pill);
  background: var(--wp--preset--color--primary);
  color: #ffffff;
  border: 2px solid transparent;
}
.wp-block-navigation-item.nav-cta > .wp-block-navigation-item__content:hover {
  background: #1559b1;
  color: #ffffff;
}
.wp-block-navigation-item.nav-cta > .wp-block-navigation-item__content:focus-visible {
  outline: 3px solid rgba(27, 111, 217, 0.25);
  outline-offset: 2px;
}

/* ============================================================
   EIGENER BURGER-BUTTON (nur auf Mobile sichtbar)
   ============================================================ */
.goetz-burger {
  display: none; /* Desktop: versteckt */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--goetz-radius-sm);
  transition: background var(--goetz-transition);
  flex-shrink: 0;
}
.goetz-burger:hover {
  background: rgba(0, 0, 0, 0.06);
}
.goetz-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--wp--preset--color--foreground);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}
/* X-Animation wenn offen */
.goetz-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.goetz-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.goetz-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   EIGENER MOBILE DRAWER (via JS ins DOM eingefügt)
   ============================================================ */
.goetz-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 88vw);
  height: 100dvh;
  background: #ffffff;
  box-shadow: -8px 0 40px rgba(15, 23, 42, 0.2);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
}
.goetz-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

.goetz-drawer__header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--wp--preset--color--border);
  flex-shrink: 0;
}

.goetz-drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--goetz-radius-sm);
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--wp--preset--color--foreground);
  transition: background var(--goetz-transition);
}
.goetz-drawer__close:hover {
  background: rgba(0, 0, 0, 0.06);
}

.goetz-drawer__nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem 2rem;
}

.goetz-drawer__nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--wp--preset--color--foreground);
  text-decoration: none;
  border-bottom: 1px solid var(--wp--preset--color--border);
  transition: color var(--goetz-transition);
}
.goetz-drawer__nav a:hover {
  color: var(--wp--preset--color--primary);
}
.goetz-drawer__nav a.is-cta {
  margin-top: 1.5rem;
  justify-content: center;
  border-bottom: none;
  border-radius: var(--goetz-radius-pill);
  padding: 0.875rem 1.5rem;
  background: var(--wp--preset--color--primary);
  color: #ffffff;
}
.goetz-drawer__nav a.is-cta:hover {
  background: #1559b1;
  color: #ffffff;
}

/* Backdrop */
.goetz-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.goetz-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================================
   MOBILE BREAKPOINT
   ============================================================ */
@media (max-width: 900px) {
  /* Desktop-Nav verstecken */
  .site-nav {
    display: none !important;
  }

  /* Burger anzeigen */
  .goetz-burger {
    display: flex !important;
  }

  .site-header__inner {
    padding: 0.75rem 0;
  }

  .site-logo-image img {
    width: clamp(160px, 48vw, 260px);
  }

  .site-header::before {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Buttons */
.wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--goetz-radius-pill);
  border: 2px solid transparent;
  background: var(--wp--preset--color--primary);
  color: #ffffff;
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--goetz-transition), box-shadow var(--goetz-transition), background var(--goetz-transition);
  text-align: center;
}

.wp-element-button:visited {
  color: #ffffff;
}

.wp-element-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -12px rgba(27, 111, 217, 0.6);
  background: #1559b1;
  color: #ffffff;
}

.wp-element-button:focus-visible {
  outline: 3px solid rgba(27, 111, 217, 0.25);
  outline-offset: 2px;
}

.wp-element-button:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px -10px rgba(27, 111, 217, 0.55);
}

.wp-block-button .wp-element-button {
  background: var(--wp--preset--color--primary);
}

.wp-block-button .wp-element-button:hover {
  background: #1559b1;
}

.wp-block-button.is-style-outline .wp-element-button {
  background: transparent;
  color: var(--wp--preset--color--primary);
  border-color: var(--wp--preset--color--primary);
}

.wp-block-button.is-style-outline .wp-element-button:hover {
  background: rgba(27, 111, 217, 0.1);
  box-shadow: none;
}

.wp-block-button.is-style-ghost .wp-element-button {
  background: transparent;
  color: var(--wp--preset--color--foreground);
  border-color: transparent;
}

.wp-element-button.is-style-ghost {
  background: transparent;
  color: var(--wp--preset--color--foreground);
  border-color: transparent;
  box-shadow: none;
}

.section--dark .wp-block-button .wp-element-button {
  background: var(--wp--preset--color--accent);
  color: #ffffff;
}

.section--dark .wp-block-button.is-style-outline .wp-element-button {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.section--dark .wp-block-button.is-style-outline .wp-element-button:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Hero */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--wp--preset--color--secondary);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/hero-truck.webp") center/cover no-repeat;
  opacity: 0.08;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(27, 111, 217, 0.12), transparent 60%);
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: grid;
  gap: 2rem;
}

.hero__title {
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
  margin: 0;
  letter-spacing: -0.03em;
  font-weight: 700;
  line-height: 1.05;
}

.hero__title span {
  color: var(--wp--preset--color--primary);
}

.hero__title .accent {
  color: var(--wp--preset--color--accent);
}

.hero__lead {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: #4b5563;
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Cards & Grids */
.card {
  background: #ffffff;
  border-radius: var(--goetz-radius-lg);
  border: 1px solid var(--wp--preset--color--border);
  box-shadow: var(--goetz-shadow-card);
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--goetz-transition), box-shadow var(--goetz-transition), border-color var(--goetz-transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px -12px rgba(15, 23, 42, 0.18);
  border-color: rgba(27, 111, 217, 0.15);
}

.card--soft {
  background: var(--wp--preset--color--secondary);
  box-shadow: none;
  border-color: transparent;
}

/* Paragraph in Card bekommt flex: 1 → füllt Restplatz */
.card > .wp-block-paragraph {
  flex: 1;
  margin-top: 0.5rem;
}

.card-grid {
  display: grid;
  gap: 1.75rem;
}

.card-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .card-grid--2,
  .card-grid--3,
  .card-grid--4 {
    grid-template-columns: 1fr;
  }
}

.icon-badge {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wp--preset--color--accent);
  margin: 0 0 1rem;
  padding: 0;
}

.icon-badge--primary {
  background: var(--wp--preset--color--primary);
}

.icon-badge--muted {
  background: rgba(27, 111, 217, 0.12);
}

.icon-image,
.icon-image--xl {
  margin: 0;
}

.icon-image img {
  width: 1.35rem;
  height: 1.35rem;
}

.icon-badge .icon-image img {
  filter: brightness(0) invert(1);
}

.icon-image--xl img {
  width: 8rem;
  height: 8rem;
  opacity: 0.16;
  filter: var(--goetz-filter-primary);
}

.icon-row {
  margin: 0 !important;
  display: grid;
  grid-template-columns: 1rem 1fr;
  gap: 0.7rem;
  align-items: start;
}

.icon-row::before {
  content: "";
  width: 1rem;
  height: 1rem;
  margin-top: 0.25rem;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: var(--goetz-filter-primary);
}

.icon-row + .icon-row {
  margin-top: 0.4rem !important;
}

.icon-row--map::before {
  background-image: url("../images/icons/icon-map.svg");
}

.icon-row--phone::before {
  background-image: url("../images/icons/icon-phone.svg");
}

.icon-row--mail::before {
  background-image: url("../images/icons/icon-mail.svg");
}

.icon-row--check::before {
  background-image: none;
  content: "✓";
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--wp--preset--color--primary);
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  align-items: start;
}

/* Kontakt-Split: linke Spalte breiter (Infos), rechte Spalte Formular */
.split--contact {
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
}

.split__media {
  border-radius: var(--goetz-radius-lg);
  overflow: hidden;
  min-height: 320px;
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split.is-reversed .split__media {
  order: 1;
}

.split.is-reversed .split__content {
  order: 2;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* Stats */
.stats-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-number {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--wp--preset--color--primary);
}

.stat-number--accent {
  color: var(--wp--preset--color--accent);
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Services rows */
.service-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  align-items: center;
}

.service-row + .service-row {
  margin-top: 4rem;
}

.service-row.is-reversed .service-row__content {
  order: 2;
}

.service-row.is-reversed .service-row__media {
  order: 1;
}

.service-row__media {
  background: var(--wp--preset--color--secondary);
  border-radius: var(--goetz-radius-lg);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.feature-list li {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.75rem;
  align-items: start;
}

.feature-list li::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--wp--preset--color--accent);
  margin-top: 0.45rem;
}

@media (max-width: 900px) {
  .service-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   VERTICAL TIMELINE
   ============================================ */
.timeline-v {
  position: relative;
  padding-block: 0.5rem;
  padding-inline: 0; /* kein WP-Group-Padding → ::before 50% deckt sich mit Grid-Mitte */
}

/* Center vertical line — bei 3-Spalten-Grid (1fr | 56px | 1fr) liegt der
   Dot-Mittelpunkt immer exakt bei 50% der Containerbreite. */
.timeline-v::before {
  content: '';
  position: absolute;
  left: calc(50% - 1px);
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--wp--preset--color--primary) 8%,
    rgba(27, 111, 217, 0.25) 92%,
    transparent 100%
  );
  pointer-events: none;
}

/* CSS-Grid-Layout: mittlere Spalte = 56px (Dot-Breite) → Dot immer geometrisch zentriert.
   Grid-template-areas tauschen zwischen odd/even — kein flex-order-Drift mehr. */
.timeline-v__item {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  column-gap: 1.5rem;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 1.75rem;
  margin-inline: 0;
  box-sizing: border-box;
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Ungerade: Card links | Dot Mitte | Spacer rechts */
.timeline-v__item:nth-child(odd) {
  grid-template-areas: "card dot spacer";
}

/* Gerade: Spacer links | Dot Mitte | Card rechts */
.timeline-v__item:nth-child(even) {
  grid-template-areas: "spacer dot card";
  transform: translateX(28px);
}

.timeline-v__item > .timeline-v__card   { grid-area: card;   min-width: 0; }
.timeline-v__item > .timeline-v__dot    { grid-area: dot; }
.timeline-v__item > .timeline-v__spacer { grid-area: spacer; }

.timeline-v__item.is-visible {
  opacity: 1;
  transform: translateX(0) !important;
}

.timeline-v__dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wp--preset--color--primary);
  color: #fff;
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.2;
  box-shadow: 0 0 0 5px rgba(27, 111, 217, 0.12), 0 4px 14px rgba(27, 111, 217, 0.35);
  position: relative;
  z-index: 2;
}

.timeline-v__dot--accent {
  background: var(--wp--preset--color--accent);
  box-shadow: 0 0 0 5px rgba(249, 115, 22, 0.12), 0 4px 14px rgba(249, 115, 22, 0.35);
}

.timeline-v__dot .wp-block-paragraph,
.timeline-v__dot p {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.2;
}

/* Spacer ist Grid-Platzhalter — kein sichtbarer Inhalt */
.timeline-v__spacer {
  display: block;
  padding: 0;
  margin: 0;
}

.timeline-v__card {
  background: #fff;
  border-radius: var(--goetz-radius-lg);
  border: 1px solid var(--wp--preset--color--border);
  box-shadow: var(--goetz-shadow-card);
  padding: 1.75rem;
  transition: transform var(--goetz-transition), box-shadow var(--goetz-transition);
}

.timeline-v__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px -12px rgba(15, 23, 42, 0.18);
  border-color: rgba(27, 111, 217, 0.15);
}

@media (max-width: 768px) {
  .timeline-v::before {
    left: 27px;
    top: 28px;
    bottom: 28px;
  }

  /* Mobile: 2-Spalten-Grid — Dot links (44px), Card rechts */
  .timeline-v__item,
  .timeline-v__item:nth-child(odd),
  .timeline-v__item:nth-child(even) {
    grid-template-columns: 44px 1fr;
    grid-template-areas: "dot card";
    column-gap: 1.25rem;
    transform: translateX(-16px);
    margin-bottom: 1.5rem;
  }

  .timeline-v__item > .timeline-v__spacer,
  .timeline-v__item:nth-child(even) > .timeline-v__spacer { display: none !important; }

  .timeline-v__item > .timeline-v__dot,
  .timeline-v__item:nth-child(even) > .timeline-v__dot { width: 44px; height: 44px; font-size: 0.6rem; }
}

.editor-styles-wrapper .timeline-v__item {
  opacity: 1 !important;
  transform: none !important;
}

/* ============================================
   PHOTO GALLERY
   ============================================ */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: clamp(2rem, 3.5vw, 3rem);
}

.photo-gallery__item {
  border-radius: var(--goetz-radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--wp--preset--color--secondary);
}

.photo-gallery__item--wide { grid-column: span 2; }
.photo-gallery__item--full { grid-column: span 3; }

/* Kunden-Karten: h3 auf kompakte Kartengröße begrenzen */
.card-grid--3 .card h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  margin: 0;
}

.photo-gallery__item .wp-block-image,
.photo-gallery__item figure {
  margin: 0;
  width: 100%;
  height: 100%;
}

.photo-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}

.photo-gallery__item:hover img { transform: scale(1.06); }

@media (max-width: 768px) {
  .photo-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .photo-gallery { grid-template-columns: 1fr; }
  .photo-gallery__item--wide { grid-column: span 1; }
}

/* ============================================
   HERO — UNTERSEITEN-VARIANTE
   ============================================ */
.hero--page {
  min-height: 60vh;
  background: linear-gradient(135deg, #1b6fd9 0%, #1559b1 55%, #0f3f86 100%);
}

.hero--page::before {
  background: url("../images/hero-truck.webp") center/cover no-repeat;
  opacity: 0.06;
}

.hero--page::after {
  background: radial-gradient(circle at top left, rgba(255,255,255,0.06), transparent 55%);
}

.hero__inner--page {
  text-align: left;
  max-width: 780px;
}

.hero__inner--left {
  text-align: left;
}

.hero__inner--left .eyebrow {
  justify-self: start;
}

.hero__inner--left .hero__actions {
  justify-content: flex-start;
}

.hero__inner--left .hero__actions .wp-block-button,
.hero__inner--left .hero__actions .wp-element-button {
  text-align: left;
}

.hero--page .hero__title       { color: #fff; }
.hero--page .hero__title span  { color: rgba(255,255,255,0.85); }
.hero--page .hero__lead        { color: rgba(255,255,255,0.8); }

.hero--page .eyebrow {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}

.hero--page .wp-element-button {
  background: #fff;
  color: var(--wp--preset--color--primary);
}

.hero--page .wp-element-button:hover {
  background: #f0f6ff;
  color: var(--wp--preset--color--primary);
  box-shadow: 0 10px 20px -12px rgba(0,0,0,0.3);
}

.hero--page .is-style-outline .wp-element-button {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

.hero--page .is-style-outline .wp-element-button:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  box-shadow: none;
}

/* Footer */
.site-footer {
  background: #f8fafc;
  border-top: 2px solid var(--wp--preset--color--border);
  padding-block: clamp(3rem, 5vw, 5rem);
  margin-top: 0;
}

.site-footer .footer-grid {
  margin-block: 0;
  gap: clamp(2rem, 3vw, 4rem);
  padding-bottom: clamp(2rem, 3vw, 3.5rem);
}

.site-footer .footer-grid .wp-block-column {
  min-width: 0;
}

/* Footer-Überschriften — stärker als WordPress has-*-font-size Klassen */
.site-footer .wp-block-heading,
.site-footer h3.wp-block-heading,
.site-footer .has-md-font-size,
.site-footer .has-lg-font-size {
  font-size: 0.6875rem !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0;
}

/* Footer-Listen */
.site-footer .wp-block-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer .wp-block-list li {
  list-style: none;
}

.site-footer .wp-block-list li + li {
  margin-top: 0.6rem;
}

.site-footer .wp-block-list a {
  font-size: 0.9375rem;
  color: #4b5563;
  font-weight: 400;
  transition: color var(--goetz-transition);
}

.site-footer .wp-block-list a:hover {
  color: var(--wp--preset--color--primary);
}

/* Footer Kontakt / Lead */
.site-footer .lead {
  font-size: 0.9375rem;
  color: #4b5563;
  line-height: 1.65;
  margin-top: 0.75rem;
}

/* Footer Logo */
.footer-logo-image {
  margin-bottom: 0.5rem;
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--wp--preset--color--border);
  padding-top: 1.75rem;
  margin-top: 0;
}

.footer-bottom p,
.footer-bottom .wp-block-paragraph {
  font-size: 0.8125rem;
  color: #9ca3af;
  margin: 0;
}

/* Impressum / Datenschutz Link-Gruppe */
.footer-bottom > .wp-block-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-bottom > .wp-block-group p,
.footer-bottom > .wp-block-group .wp-block-paragraph {
  margin: 0;
  font-size: 0.8125rem;
}

.footer-bottom a {
  font-size: 0.8125rem;
  color: #6b7280;
  font-weight: 500;
  transition: color var(--goetz-transition);
}

.footer-bottom a:hover {
  color: var(--wp--preset--color--primary);
}

/* Footer icon-rows */
.site-footer .icon-row {
  font-size: 0.9375rem;
  color: #4b5563;
}

@media (max-width: 900px) {
  .site-footer .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Forms */
.form {
  display: grid;
  gap: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field label {
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--goetz-radius-sm);
  border: 1px solid var(--wp--preset--color--border);
  background: #ffffff;
  font-family: inherit;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--wp--preset--color--primary);
  box-shadow: 0 0 0 3px rgba(27, 111, 217, 0.15);
}

.form-dropzone {
  border: 2px dashed var(--wp--preset--color--border);
  border-radius: var(--goetz-radius-md);
  padding: 2rem;
  text-align: center;
  transition: border-color var(--goetz-transition);
}

.form-dropzone:hover {
  border-color: var(--wp--preset--color--primary);
}

.form-note {
  font-size: 0.8rem;
  color: #6b7280;
  text-align: center;
}

.form-message {
  padding: 0.8rem 1rem;
  border-radius: var(--goetz-radius-sm);
  background: rgba(27, 111, 217, 0.1);
  color: var(--wp--preset--color--primary);
  font-weight: 600;
  display: none;
}

.form-message.is-visible {
  display: block;
}

.form-message.is-success {
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
}

.form-message.is-error {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

/* Map */
.map-embed-wrap {
  width: 100%;
  max-width: none;
  border-radius: var(--goetz-radius-md);
  overflow: hidden;
  border: 1px solid var(--wp--preset--color--border);
  background: #e7edf5;
}

.map-embed-wrap .wp-block-html {
  line-height: 0;
  margin: 0;
}

.map-embed-wrap iframe {
  width: 100%;
  min-height: 380px;
  border: 0;
  display: block;
}

/* Legal */
.legal-page {
  min-height: 100vh;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(27, 111, 217, 0.08) 50%, rgba(255, 255, 255, 1) 100%);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.glass {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 25px 50px -25px rgba(15, 23, 42, 0.3);
  padding: clamp(2rem, 4vw, 3rem);
}

/* Impressum / Datenschutz — schlichte Leseseite ohne Hover-Effekte */
.legal-content {
  max-width: 780px;
  margin-inline: auto;
}

.legal-content h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin-bottom: 0.25rem;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--wp--preset--color--primary);
  color: var(--goetz-text-dark);
}

.legal-content h3 {
  font-size: 1rem;
  margin-top: 1.25rem;
  margin-bottom: 0.25rem;
  color: var(--goetz-text-dark);
}

.legal-content p,
.legal-content li {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: #374151;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ============================================
   EDITOR-ONLY STYLES
   Gilt im WordPress Block-Editor & Site-Editor
   ============================================ */

/* reveal-Elemente im Block-Editor sichtbar halten */
.editor-styles-wrapper .reveal,
.block-editor-block-list__layout .reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ============================================================
   BLOCK EDITOR — Nav als Desktop-Leiste zeigen
   (overlayMenu:"never" braucht fast keine Fixes mehr)
   ============================================================ */
/* Burger im Editor ausblenden */
.editor-styles-wrapper .goetz-burger {
  display: none !important;
}

/* Site-Nav im Editor immer sichtbar */
.editor-styles-wrapper .site-nav {
  display: flex !important;
}

.editor-styles-wrapper .wp-block-navigation__container {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 1.5rem !important;
  align-items: center !important;
}

.editor-styles-wrapper .wp-block-navigation-item__content {
  display: inline-flex !important;
  white-space: nowrap !important;
}

/* Logo im Editor: max-width wie auf Frontend (220px) */
.editor-styles-wrapper .site-logo-image {
  margin: 0;
}

.editor-styles-wrapper .site-logo-image img {
  max-width: min(220px, 100%) !important;
  width: auto !important;
  height: auto !important;
  display: block;
}

/* Paragraphen & Texte im Editor standardisiert */
.editor-styles-wrapper p,
.editor-styles-wrapper .wp-block-paragraph {
  font-size: 0.9375rem;
  line-height: 1.75;
}

/* Footer h3 im Editor ohne WordPress fontSize-Override */
.editor-styles-wrapper .site-footer .wp-block-heading {
  font-size: 0.6875rem !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ca3af;
}

/* Sticky-Header im Editor deaktivieren (Layout-Preview) */
.editor-styles-wrapper .site-header,
.editor-styles-wrapper header.wp-block-template-part {
  position: static !important;
  top: auto !important;
}

/* Eyebrow im Editor zentriert */
.editor-styles-wrapper .center .eyebrow,
.editor-styles-wrapper .center .wp-block-paragraph.eyebrow {
  margin-inline: auto;
}

/* ============================================
   TIMELINE BILDER
   ============================================ */
.timeline-v__img,
.timeline-v__img figure,
.timeline-v__card .timeline-v__img {
  margin: 0 0 1rem 0;
  border-radius: var(--goetz-radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 7;
  max-height: 160px;
}

.timeline-v__card .timeline-v__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================
   EYEBROW — robustere Größenkontrolle
   Stellt sicher dass Eyebrows nie groß erscheinen
   ============================================ */
.eyebrow,
.wp-block-paragraph.eyebrow,
p.eyebrow {
  font-size: 0.72rem !important;
  line-height: 1.3 !important;
}

/* ============================================
   MOBILE — Umfassende Fixes
   ============================================ */
@media (max-width: 640px) {

  /* Schriften */
  .hero__title { font-size: clamp(1.9rem, 8vw, 2.8rem); }
  h1 { font-size: clamp(1.75rem, 7.5vw, 2.5rem); }
  h2 { font-size: clamp(1.4rem, 6vw, 2rem); }
  h3 { font-size: clamp(1.1rem, 5vw, 1.35rem); }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }

  /* Abschnitte */
  .section { padding-block: clamp(2.5rem, 6vw, 4rem); }

  /* Hero */
  .hero { min-height: 75vh; }
  .hero--page { min-height: 50vh; }
  .hero__inner--page,
  .hero__inner--left { text-align: left; }
  .hero__inner--left .hero__actions { justify-content: flex-start; }

  /* Split — untereinander */
  .split,
  .split.is-reversed,
  .split--contact {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .split.is-reversed .split__media { order: 0; }
  .split.is-reversed .split__content { order: 1; }

  /* Cards */
  .card-grid--2,
  .card-grid--3,
  .card-grid--4 { grid-template-columns: 1fr; }

  /* Stats */
  .stats-grid { grid-template-columns: 1fr; }

  /* Buttons */
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .wp-block-button,
  .hero__actions .wp-element-button { width: 100%; text-align: center; }

  .hero__inner--left .hero__actions { align-items: flex-start; }
  .hero__inner--left .hero__actions .wp-block-button,
  .hero__inner--left .hero__actions .wp-element-button {
    width: auto;
    text-align: left;
  }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr !important; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.75rem; }

  /* Drawer-Styles greifen global (nicht im Media Query) — hier keine Duplikate */

  /* Photo gallery */
  .photo-gallery { grid-template-columns: 1fr; gap: 0.75rem; }
  .photo-gallery__item--wide { grid-column: span 1; }

  /* Service rows */
  .service-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .service-row.is-reversed .service-row__content { order: 1; }
  .service-row.is-reversed .service-row__media   { order: 2; }
}

/* Tablet */
@media (min-width: 641px) and (max-width: 900px) {

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

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

  .hero__title { font-size: clamp(2.2rem, 5vw, 3.2rem); }
}
