/* =========================================================
   FRT First Response Team - Haupt-Stylesheet
   1. Schriften          6. Header und Navigation
   2. Variablen          7. Sektionstitel
   3. Basis              8. Startseite
   4. Layout             9. Footer
   5. Buttons           10. Mobile Anruf-Leiste
                        11. Responsive
   ========================================================= */

/* ---------- 1. Schriften (lokal, keine Google-Server) ---------- */
@font-face {
  font-family: "Saira Condensed";
  src: url("../fonts/saira-condensed-v12-latin_latin-ext-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Saira Condensed";
  src: url("../fonts/saira-condensed-v12-latin_latin-ext-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-v13-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-v13-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- 2. Variablen ---------- */
:root {
  /* Farben aus dem Logo */
  --navy: #0b2a78;
  --navy-dark: #0a2263;
  --navy-deep: #06163d;
  --red: #cc0a1e;
  --red-dark: #a50818;
  --white: #ffffff;
  --grey-50: #f4f6fa;
  --grey-100: #e3e8f1;
  --grey-500: #56607a;
  --text: #1b2236;

  /* Schriften */
  --font-display: "Saira Condensed", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --font-body: "Barlow", "Segoe UI", Roboto, Arial, sans-serif;

  /* Neigung wie die Buchstaben FRT im Logo */
  --slant: -10deg;

  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2.5rem;
  --space-xl: 5rem;

  --container: 1240px;
  --radius: 4px;
  --header-h: 88px;
  --shadow: 0 10px 30px rgba(6, 22, 61, 0.10);
}

/* ---------- 3. Basis ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

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

a {
  color: var(--navy);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 var(--space-s);
}

p {
  margin: 0 0 var(--space-s);
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--red);
  color: var(--white);
  padding: 0.6rem 1rem;
  font-weight: 600;
}
.skip-link:focus {
  top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- 4. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-m);
}

.section {
  padding: var(--space-xl) 0;
}

.section--grey {
  background: var(--grey-50);
}

/* Bild-Platzhalter: wird durch <img> ersetzt, sobald Fotos da sind */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.035) 0 14px, transparent 14px 28px),
    linear-gradient(140deg, var(--navy) 0%, var(--navy-deep) 100%);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}
.ph svg {
  width: 30%;
  max-width: 140px;
  height: auto;
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  left: 1rem;
  bottom: 0.8rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}

/* Echte Bilder fuellen den Rahmen */
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn svg {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

.btn--red {
  background: var(--red);
  color: var(--white);
}
.btn--red:hover {
  background: var(--red-dark);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}
.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--red);
  text-decoration: none;
}
.link-more svg {
  width: 1em;
  height: 1em;
  transition: transform 0.2s;
}
.link-more:hover svg {
  transform: translateX(4px);
}

/* ---------- 6. Header und Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(6, 22, 61, 0.06);
}

.header-inner {
  max-width: 1440px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  min-height: var(--header-h);
}

.logo {
  display: block;
  flex-shrink: 0;
}
.logo img {
  width: 180px;
  height: auto;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-list > li {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.8rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.25rem;
  height: 3px;
  background: var(--red);
  transform: scaleX(0) skewX(var(--slant));
  transition: transform 0.2s;
}

.nav-link:hover,
.nav-link[aria-current="page"],
.nav-link.is-active {
  color: var(--red);
}
.nav-link:hover::after,
.nav-link[aria-current="page"]::after,
.nav-link.is-active::after {
  transform: scaleX(1) skewX(var(--slant));
}

.nav-link .chevron {
  width: 0.8em;
  height: 0.8em;
  transition: transform 0.2s;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--white);
  border-top: 3px solid var(--red);
  box-shadow: var(--shadow);
  padding: 0.4rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.has-dropdown.is-open .chevron {
  transform: rotate(180deg);
}

.dropdown a {
  display: block;
  padding: 0.6rem 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
}
.dropdown a:hover,
.dropdown a[aria-current="page"] {
  color: var(--red);
  background: var(--grey-50);
}

.header-cta {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 3px;
  background: var(--navy);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle span:nth-child(3) { top: 31px; }

.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 7. Sektionstitel ---------- */
.section-head {
  margin-bottom: var(--space-l);
}

.section-title {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  margin-bottom: var(--space-s);
}

.section-title h2 {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  margin: 0;
}

.pulse-line {
  flex: 0 1 220px;
  height: 28px;
  color: var(--red);
}

.section-head p {
  max-width: 640px;
  color: var(--grey-500);
  font-size: 1.1rem;
  margin: 0;
}

/* ---------- 8. Startseite ---------- */

/* Hero */
.hero {
  position: relative;
  background: var(--navy-deep);
  color: var(--white);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4vw), 0 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: min(78vh, 700px);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xl) var(--space-m) calc(var(--space-xl) + 4vw) max(var(--space-m), calc((100vw - var(--container)) / 2 + var(--space-m)));
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.8rem, 6.2vw, 5.6rem);
  line-height: 0.95;
  transform: skewX(var(--slant));
  transform-origin: left bottom;
  margin-bottom: var(--space-m);
}

.hero-pulse {
  width: min(420px, 90%);
  height: 40px;
  color: var(--red);
  margin-bottom: var(--space-m);
}
.hero-pulse path {
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: pulse-draw 1.8s 0.3s ease-out forwards;
}
@keyframes pulse-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-pulse path {
    stroke-dashoffset: 0;
  }
}

.hero-lead {
  font-size: 1.2rem;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-l);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
}

/* Foto rechts, linke Kante im Logo-Winkel geschnitten */
.hero-media {
  position: relative;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-media .ph,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 22, 61, 0.55) 0%, rgba(6, 22, 61, 0) 45%);
  pointer-events: none;
}

/* Leistungen */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-m);
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-card .media {
  aspect-ratio: 4 / 3;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}
.service-card .media.ph {
  display: grid;
}

.service-body {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-m) var(--space-m) var(--space-l);
}

.service-icon {
  position: absolute;
  top: -2.6rem;
  right: var(--space-m);
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(204, 10, 30, 0.35);
}
.service-icon svg {
  width: 32px;
  height: 32px;
}

.service-card h3 {
  font-size: clamp(1.6rem, 2.2vw, 1.9rem);
  hyphens: auto;
  overflow-wrap: break-word;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--grey-500);
  flex: 1;
}

.services-secondary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-m);
  margin-top: var(--space-m);
}

.mini-card {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  padding: var(--space-m);
  background: var(--white);
  border-left: 5px solid var(--navy);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s;
}
.mini-card:hover {
  border-left-color: var(--red);
}
.mini-card > svg {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  color: var(--navy);
}
.mini-card h3 {
  font-size: 1.5rem;
  margin: 0 0 0.2rem;
}
.mini-card p {
  margin: 0;
  color: var(--grey-500);
  font-size: 0.98rem;
}
.mini-card .arrow {
  width: 22px;
  height: 22px;
  margin-left: auto;
  color: var(--red);
  flex-shrink: 0;
}

/* Kennzahlen-Band */
.facts {
  background: var(--navy);
  color: var(--white);
  clip-path: polygon(0 3vw, 100% 0, 100% calc(100% - 3vw), 0 100%);
  padding: calc(var(--space-l) + 3vw) 0;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-l);
}

.fact {
  border-left: 3px solid var(--red);
  padding-left: var(--space-m);
}
.fact strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.fact span {
  color: rgba(255, 255, 255, 0.8);
}

/* Event-Block */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.split .media {
  aspect-ratio: 16 / 11;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
}

.split h2 {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
}

.split-text p {
  color: var(--grey-500);
  font-size: 1.1rem;
  margin-bottom: var(--space-m);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-l);
}
.tag-list li {
  padding: 0.3rem 0.8rem;
  background: var(--grey-50);
  border: 1px solid var(--grey-100);
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 600;
}

/* Warum FRT */
.reasons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-l);
}

.reason svg {
  width: 44px;
  height: 44px;
  color: var(--navy);
  margin-bottom: var(--space-s);
}
.reason h3 {
  font-size: 1.45rem;
  margin-bottom: 0.4rem;
}
.reason p {
  color: var(--grey-500);
  margin: 0;
}

/* Kontaktband */
.contact-band {
  background: var(--navy-deep);
  color: var(--white);
  padding: var(--space-xl) 0;
  clip-path: polygon(0 3vw, 100% 0, 100% 100%, 0 100%);
  padding-top: calc(var(--space-xl) + 3vw);
}

.contact-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-l);
  flex-wrap: wrap;
}

.contact-band h2 {
  color: var(--white);
  font-size: clamp(2rem, 3.6vw, 3rem);
  margin-bottom: 0.4rem;
}
.contact-band p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.contact-band-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-m);
}

.phone-big {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}
.phone-big svg {
  width: 34px;
  height: 34px;
  color: var(--red);
}
.phone-big:hover {
  color: var(--grey-100);
}

/* ---------- 9. Footer ---------- */
.site-footer {
  background: var(--white);
  padding: var(--space-l) 0 var(--space-m);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 220px 1fr 1.4fr 1fr auto;
  gap: var(--space-l);
  align-items: start;
}

.footer-logo img {
  width: 200px;
  height: auto;
}

.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}
.footer-contact svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--navy);
  margin-top: 0.15rem;
}
.footer-contact a {
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.footer-contact a:hover {
  color: var(--red);
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links--2col {
  columns: 2;
  column-gap: var(--space-m);
}
.footer-links li {
  margin-bottom: 0.35rem;
  break-inside: avoid;
}
.footer-links a {
  color: var(--grey-500);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--red);
}

.social {
  display: flex;
  gap: 0.7rem;
}
.social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  transition: background-color 0.2s;
}
.social a:hover {
  background: var(--red);
}
.social svg {
  width: 22px;
  height: 22px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-xs) var(--space-m);
  margin-top: var(--space-l);
  padding-top: var(--space-s);
  border-top: 1px solid var(--grey-100);
  font-size: 0.85rem;
  color: var(--grey-500);
}

/* ---------- 10. Mobile Anruf-Leiste ---------- */
.call-bar {
  display: none;
}

/* ---------- 11. Responsive ---------- */
@media (max-width: 1400px) {
  .nav-link {
    padding: 0.6rem 0.5rem;
    font-size: 1.08rem;
  }
  .nav-link::after {
    left: 0.5rem;
    right: 0.5rem;
  }
  .logo img {
    width: 160px;
  }
}

@media (max-width: 1200px) {
  :root {
    --header-h: 72px;
  }

  .nav-toggle {
    display: block;
    order: 3;
  }

  .header-cta {
    order: 2;
    margin-left: auto;
  }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--white);
    overflow-y: auto;
    padding: var(--space-s) var(--space-m) var(--space-l);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.25s, visibility 0.25s;
  }
  .nav-open .main-nav {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-list > li {
    border-bottom: 1px solid var(--grey-100);
  }
  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 0.9rem 0;
    font-size: 1.4rem;
  }
  .nav-link::after {
    display: none;
  }

  .dropdown {
    position: static;
    box-shadow: none;
    border-top: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    padding: 0 0 0.6rem 1rem;
  }
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown {
    transform: none;
  }
  .has-dropdown.is-open .dropdown {
    display: block;
  }

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

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

@media (max-width: 960px) {
  :root {
    --space-xl: 3.5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-media {
    order: -1;
    height: 240px;
    clip-path: none;
  }
  .hero-media::after {
    background: linear-gradient(0deg, rgba(6, 22, 61, 1) 0%, rgba(6, 22, 61, 0) 60%);
  }
  .hero-content {
    padding: var(--space-l) var(--space-m) calc(var(--space-l) + 6vw);
  }

  .services {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
  .services-secondary {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .facts-grid {
    grid-template-columns: 1fr;
    gap: var(--space-m);
  }

  .split {
    grid-template-columns: 1fr;
    gap: var(--space-l);
  }
}

@media (max-width: 640px) {
  .header-cta {
    display: none;
  }
  .logo img {
    width: 140px;
  }

  .pulse-line {
    display: none;
  }

  .reasons {
    grid-template-columns: 1fr;
    gap: var(--space-m);
  }

  .contact-band-actions {
    width: 100%;
  }
  .contact-band-actions .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-m);
  }

  /* Fixe Anruf-Leiste unten */
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
  .call-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    box-shadow: 0 -4px 16px rgba(6, 22, 61, 0.15);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--navy-deep);
  }
  .call-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 64px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--white);
  }
  .call-bar svg {
    width: 20px;
    height: 20px;
  }
  .call-bar .call {
    background: var(--red);
  }
  .call-bar .request {
    background: var(--navy);
  }
}

/* =========================================================
   12. Dienst-Seiten (Sanitaetsdienst, Brandwache, Sicherheit)
   ========================================================= */
.hero--page .hero-grid {
  min-height: min(60vh, 540px);
}
.hero--page h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.8rem);
  margin-bottom: var(--space-s);
}
.page-sub {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--white);
  max-width: 560px;
  margin-bottom: var(--space-s);
}

/* Vorteilsleiste unter dem Hero */
.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-l);
  padding: var(--space-l) 0 0;
}
.benefit {
  display: flex;
  gap: var(--space-s);
  align-items: flex-start;
}
.benefit svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--navy);
}
.benefit h3 {
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}
.benefit p {
  margin: 0;
  color: var(--grey-500);
  font-size: 0.98rem;
  line-height: 1.45;
}

/* Checkliste */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--grey-100);
}
.check-list li:last-child {
  border-bottom: 0;
}
.check-list svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--red);
}

.split--top {
  align-items: start;
}
.split .media--tall {
  aspect-ratio: 4 / 5;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
}

/* Einsatzbereiche */
.areas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-s);
  list-style: none;
  margin: 0;
  padding: 0;
}
.areas li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1.2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--navy);
  hyphens: auto;
  overflow-wrap: break-word;
  min-width: 0;
}
.areas svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  color: var(--red);
}

/* Team */
.team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}
.team-text p {
  color: var(--grey-500);
  font-size: 1.1rem;
}

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

@media (max-width: 960px) {
  .team {
    grid-template-columns: 1fr;
    gap: var(--space-m);
  }
  .split .media--tall {
    aspect-ratio: 16 / 10;
    clip-path: none;
  }
}

@media (max-width: 640px) {
  .benefits {
    grid-template-columns: 1fr;
    gap: var(--space-m);
  }
}

.section-intro {
  color: var(--grey-500);
  font-size: 1.1rem;
  margin-bottom: var(--space-m);
  max-width: 560px;
}

/* =========================================================
   13. Kurse und Verkauf
   ========================================================= */
.courses {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-m);
}

.course {
  display: flex;
  flex-direction: column;
  padding: var(--space-m) var(--space-m) var(--space-l);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--navy);
}

.course-head {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  margin-bottom: var(--space-s);
}

.course-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grey-50);
  border: 2px solid var(--grey-100);
  color: var(--navy);
}
.course-icon svg {
  width: 30px;
  height: 30px;
}

.course h3 {
  font-size: 1.7rem;
  margin: 0;
}
.course .course-sub {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 0.15rem;
}

.course > p {
  color: var(--grey-500);
}

.course .check-list {
  margin-bottom: var(--space-m);
  flex: 1;
}
.course .check-list li {
  padding: 0.35rem 0;
}

.course .btn {
  align-self: flex-start;
}

.btn--outline {
  border-color: var(--navy);
  color: var(--navy);
}
.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* Produktkategorien */
.categories {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-m);
}
.categories > * {
  grid-column: span 2;
}
.categories > :nth-child(n+4) {
  grid-column: span 3;
}

.category {
  display: flex;
  flex-direction: column;
  padding: var(--space-m);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.category > svg {
  width: 48px;
  height: 48px;
  color: var(--red);
  margin-bottom: var(--space-s);
}
.category h3 {
  font-size: 1.6rem;
  hyphens: auto;
  overflow-wrap: break-word;
  margin-bottom: 0.4rem;
}
.category p {
  color: var(--grey-500);
}
.category .tag-list {
  margin-bottom: var(--space-m);
  flex: 1;
  align-content: flex-start;
}
.category .link-more {
  margin-top: auto;
}

/* Serviceleistungen */
.service-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-l);
}
.service-item svg {
  width: 44px;
  height: 44px;
  color: var(--navy);
  margin-bottom: var(--space-s);
}
.service-item h3 {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}
.service-item p {
  margin: 0;
  color: var(--grey-500);
}

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

@media (max-width: 860px) {
  .courses {
    grid-template-columns: 1fr;
  }
  .categories {
    grid-template-columns: 1fr;
  }
  .categories > *,
  .categories > :nth-child(n+4) {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .service-row {
    grid-template-columns: 1fr;
    gap: var(--space-m);
  }
  .course .btn {
    align-self: stretch;
  }
}

/* =========================================================
   14. Kontakt und Danke
   ========================================================= */
.hero--compact .hero-content {
  padding-top: var(--space-l);
  padding-bottom: calc(var(--space-l) + 4vw);
}
.hero--compact .hero-grid {
  grid-template-columns: 1fr;
  min-height: 0;
}
.hero--compact h1 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  margin-bottom: var(--space-s);
}
.hero--compact .hero-lead {
  margin-bottom: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: start;
}

/* Formular */
.form {
  display: grid;
  gap: var(--space-m);
}
.form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-m);
  min-width: 0;
}
.form fieldset[hidden] {
  display: none;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-m);
}
.form-row--3 {
  grid-template-columns: 1.2fr 1.5fr 1fr;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.field label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}
.field label .req {
  color: var(--red);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea {
  min-height: 150px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11, 42, 120, 0.15);
}
.field input:user-invalid,
.field textarea:user-invalid,
.field select:user-invalid {
  border-color: var(--red);
}

.form-group-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
  color: var(--navy);
  padding-top: var(--space-s);
  border-top: 1px solid var(--grey-100);
  margin: 0;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: var(--grey-500);
}
.consent input {
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--navy);
}

.botcheck {
  position: absolute;
  left: -9999px;
}

.form-note {
  font-size: 0.9rem;
  color: var(--grey-500);
  margin: 0;
}

.form .btn {
  justify-self: start;
  border: 0;
}
.form .btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* Kontaktkarten */
.contact-cards {
  display: grid;
  gap: var(--space-s);
  position: sticky;
  top: calc(var(--header-h) + var(--space-m));
}
.contact-card {
  display: flex;
  gap: var(--space-s);
  align-items: flex-start;
  padding: var(--space-m);
  background: var(--grey-50);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
}
.contact-card > svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--red);
}
.contact-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
}
.contact-card p {
  margin: 0;
}
.contact-card a {
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-card a:hover {
  color: var(--red);
}
.contact-card small {
  display: block;
  color: var(--grey-500);
  margin-top: 0.2rem;
}

/* Danke-Seite */
.thanks {
  max-width: 640px;
}
.thanks p {
  font-size: 1.15rem;
  color: var(--grey-500);
}
.thanks .hero-actions {
  margin-top: var(--space-l);
}

@media (max-width: 960px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--space-l);
  }
  .contact-cards {
    position: static;
  }
}

@media (max-width: 640px) {
  .form-row,
  .form-row--3 {
    grid-template-columns: 1fr;
  }
  .form .btn {
    justify-self: stretch;
  }
}

/* =========================================================
   15. Rechtliche Seiten (Impressum, Datenschutz, AGB)
   ========================================================= */
.legal > * {
  max-width: 780px;
}
.legal h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  margin: var(--space-l) 0 var(--space-s);
}
.legal h2:first-child {
  margin-top: 0;
}
.legal h3 {
  font-size: 1.25rem;
  margin: var(--space-m) 0 0.4rem;
}
.legal p,
.legal li {
  color: var(--text);
}
.legal ul {
  padding-left: 1.2rem;
  margin: 0 0 var(--space-s);
}
.legal li {
  margin-bottom: 0.3rem;
}
.legal address {
  font-style: normal;
  margin-bottom: var(--space-s);
}
.legal .stand {
  margin-top: var(--space-l);
  color: var(--grey-500);
  font-size: 0.95rem;
}

/* Platzhalter: vor dem Livegang ersetzen */
.todo {
  background: #fff3cd;
  color: #7a4b00;
  outline: 1px dashed #d99a00;
  padding: 0 0.25rem;
  border-radius: 2px;
}

/* Webdesign-Vermerk im Footer */
.footer-bottom .credit a { color: inherit; text-decoration: none; }
.footer-bottom .credit a:hover { text-decoration: underline; }

/* Querverweis unter Kartenrastern (Verkauf, Service) */
.service-more { margin-top: var(--space-m); text-align: center; }
.service-more .link-more { margin-left: 0.4rem; }

/* Galerie-Slider (Über mich) */
.gallery { position: relative; }
.gallery-track {
  display: flex;
  gap: var(--space-s);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  list-style: none;
  margin: 0;
  padding: 0 0 var(--space-xs);
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-item {
  flex: 0 0 calc((100% - 2 * var(--space-s)) / 3);
  scroll-snap-align: start;
}
.gallery-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.gallery-open img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-open:hover img { transform: scale(1.03); }
.gallery-item { overflow: hidden; }
.gallery-nav {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-xs);
  margin-top: var(--space-s);
}
.gallery-btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
}
.gallery-btn:hover { background: var(--red); }
.gallery-btn svg { width: 20px; height: 20px; }
.gallery-btn[data-dir="-1"] svg { transform: scaleX(-1); }
.gallery-btn:disabled { opacity: 0.35; cursor: default; background: var(--navy); }
@media (max-width: 900px) { .gallery-item { flex-basis: 70%; } }
@media (max-width: 560px) { .gallery-item { flex-basis: 85%; } }

.lightbox {
  max-width: min(92vw, 1400px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(6, 22, 61, 0.9); }
.lightbox img {
  display: block;
  max-width: min(92vw, 1400px);
  max-height: 88vh;
  width: auto;
  height: auto;
}
.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--red);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

/* Hero-Bilder fuellen den Rahmen */
.hero-media img {
  object-fit: cover;
}

/* 404-Seite */
.error-code {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 var(--space-xs);
}
.error-links {
  list-style: none;
  margin: var(--space-m) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-xs) var(--space-m);
}
@media (max-width: 560px) {
  .error-links {
    grid-template-columns: 1fr;
  }
}

/* Zeitleiste Werdegang (Über mich) */
.timeline {
  list-style: none;
  margin: var(--space-m) 0 0;
  padding: 0 0 0 1.6rem;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--grey-100);
}
.timeline-item {
  position: relative;
  padding: 0 0 var(--space-m);
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.6rem;
  top: 0.35rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--red);
}
.timeline-year {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--red);
}
.timeline-item h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin: 0.25rem 0 0.15rem;
}
.timeline-item--noyear h3 {
  margin-top: 0;
}
.timeline-item p {
  margin: 0;
  color: var(--grey-500);
}

/* Leitsatz (Über mich) */
.quote-band {
  background: var(--navy-deep);
  color: var(--white);
  padding: var(--space-xl) 0;
}
.quote {
  margin: 0 auto;
  max-width: 820px;
  border-left: 4px solid var(--red);
  padding-left: var(--space-m);
}
.quote p {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 var(--space-s);
}
.quote footer {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

/* Foto im Format des Teamfotos (Ueber mich) */
.split .media--photo {
  aspect-ratio: 8 / 7;
  clip-path: polygon(6% 0, 100% 0, 100% 100%, 0 100%);
}

/* Hero mit Hochformat-Plakat: ganz zeigen statt beschneiden */
.hero-media--poster {
  clip-path: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-m) var(--space-m) calc(var(--space-m) + 4vw);
}
.hero-media--poster::after {
  display: none;
}
.hero-media--poster img.hero-poster {
  position: static;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(64vh, 560px);
  object-fit: contain;
  box-shadow: 14px 14px 0 var(--red), 0 18px 40px rgba(0, 0, 0, 0.35);
}
@media (max-width: 960px) {
  .hero-media--poster {
    order: 1;
    height: auto;
    min-width: 0;
    padding: 0 var(--space-m) calc(var(--space-l) + 6vw);
  }
  .hero--page .hero-content:has(+ .hero-media--poster) {
    padding-bottom: var(--space-m);
  }
  .hero-media--poster img.hero-poster {
    max-height: none;
    width: 100%;
    max-width: 420px;
    box-shadow: 8px 8px 0 var(--red);
  }
}

/* Kundenbewertungen */
.reviews {
  columns: 3;
  column-gap: var(--space-m);
}
.review {
  break-inside: avoid;
  margin: 0 0 var(--space-m);
  padding: var(--space-m);
  background: var(--white);
  border-left: 4px solid var(--red);
  box-shadow: 0 6px 24px rgba(6, 22, 61, 0.08);
}
.section:not(.section--grey) .review {
  background: var(--grey-50, #f4f6fa);
  box-shadow: none;
}
.review-stars {
  display: flex;
  gap: 2px;
  color: var(--red);
  margin-bottom: var(--space-xs);
}
.review-stars svg {
  width: 18px;
  height: 18px;
}
.review blockquote {
  margin: 0;
}
.review blockquote p {
  margin: 0 0 var(--space-s);
}
.review figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.2;
}
.review figcaption span {
  font-size: 0.9rem;
  opacity: 0.7;
}
.reviews--row {
  columns: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-m);
}
.reviews--row .review {
  margin: 0;
}
.reviews-more {
  margin: var(--space-m) 0 0;
}
@media (max-width: 1000px) {
  .reviews { columns: 2; }
  .reviews--row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .reviews { columns: 1; }
}

/* Sichere Bereiche (iPhone mit Home-Balken und Notch) */
body {
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

/* Kurskarten: lange Woerter duerfen die Karte nicht verbreitern */
.course {
  min-width: 0;
}
.course h3,
.course p {
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* Service: Leistung mit Fotos ueber die ganze Breite, restliche Karten dreispaltig */
.course-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.courses--service {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 1001px) {
  .course--feature:has(.course-photos--mix) {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}
.course--feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-l);
  align-items: center;
}
.course-photos {
  display: flex;
  gap: var(--space-s);
}
/* Jedes Foto behaelt sein Seitenverhaeltnis (--r), beide sind gleich hoch */
.course-photos .media {
  flex: calc(var(--r, 4 / 5)) 1 0;
  min-width: 0;
  aspect-ratio: var(--r, 4 / 5);
  overflow: hidden;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
}
@media (max-width: 1000px) {
  .courses--service {
    grid-template-columns: 1fr;
  }
  .course--feature {
    grid-template-columns: 1fr;
    gap: var(--space-m);
  }
  .course-photos {
    max-width: 520px;
  }
  .course-photos--mix {
    flex-direction: column;
  }
  .course-photos--mix .media {
    flex: none;
  }
}


/* =========================================================
   Online-Buchung SumUp (29.10.2026)
   ========================================================= */
.booking-callout {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  padding: var(--space-m) var(--space-l);
  margin-bottom: var(--space-l);
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  border-left: 6px solid var(--red);
  box-shadow: var(--shadow);
}
.booking-callout-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  color: var(--white);
}
.booking-callout-text {
  flex: 1;
  min-width: 0;
}
.booking-callout h3 {
  color: var(--white);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin: 0 0 0.2rem;
}
.booking-callout p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}
.booking-callout .btn {
  flex-shrink: 0;
}
.section--booking {
  padding-bottom: 0;
}
.section--booking .booking-callout {
  margin-bottom: 0;
}
.course-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
}
.course .course-actions .btn {
  align-self: auto;
}
@media (max-width: 760px) {
  .booking-callout {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-m);
  }
  .booking-callout .btn {
    width: 100%;
  }
}
@media (max-width: 640px) {
  .course-actions .btn {
    flex: 1 1 100%;
  }
}
