/* ============================================================
   feuerwehrsicherheit.css
   Page-specific styles for the Feuerwehrsicherheit landing page
   ============================================================ */

/* -- Local tokens --------------------------------------------- */
:root {
  --fw-hero-min-h: min(100svh, 800px);
  --fw-section-gap: var(--space-20);
  --fw-accent-red: #e03a3a;
  --fw-red-glow: rgba(224, 58, 58, .18);
}

/* --------------------------------------------------------------
   1. HERO
-------------------------------------------------------------- */
.fw-hero {
  position: relative;
  min-height: var(--fw-hero-min-h);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Background photo */
.fw-hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/img/Feuerwehrvorne.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

/* Dark gradient overlay */
.fw-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(13, 15, 20, .72) 0%,
      rgba(13, 15, 20, .45) 50%,
      rgba(13, 15, 20, .15) 100%
    ),
    linear-gradient(
      to bottom,
      transparent 60%,
      rgba(13, 15, 20, .85) 100%
    );
  z-index: 1;
}

/* 3D element (Feuerwehr Grundriss) */
.fw-hero__scene {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: min(4vw, 60px);
  pointer-events: none;
  animation: fw-hero-drift 7s ease-in-out infinite;
}

.fw-hero__stage {
  width: clamp(320px, 38vw, 560px);
  transform-style: preserve-3d;
  will-change: transform;
  filter: drop-shadow(0 22px 35px rgba(0, 0, 0, .45));
}

.fw-hero__groundplan {
  width: 100%;
  height: auto;
  opacity: .92;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, .16);
}

/* Hero outer: volle Breite, links-ausgerichtet */
.fw-hero__outer {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-left: max(var(--space-6), calc((100vw - 1200px) / 2 + var(--space-6)));
  padding-right: var(--space-6);
  padding-top: calc(var(--header-h) + var(--space-16));
  padding-bottom: var(--space-20);
}

/* Textblock: fest 460px, ganz links */
.fw-hero__content {
  width: 460px;
  max-width: 100%;
}

.fw-hero__content h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.1;
  margin-top: var(--space-4);
  margin-bottom: var(--space-6);
  text-shadow: 0 2px 20px rgba(0, 0, 0, .5);
}

.fw-hero__sub {
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-xl));
  color: rgba(232, 234, 240, .85);
  margin-bottom: var(--space-10);
  max-width: 46ch;
}

@keyframes fw-hero-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* --------------------------------------------------------------
   2. WARUM WICHTIG
-------------------------------------------------------------- */.fw-warum {
  padding-block: var(--fw-section-gap);
}

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

.fw-warum__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.fw-warum__media {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--clr-border);
}

.fw-warum__media img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.fw-warum__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(61, 133, 255, .1);
  border: 1px solid rgba(61, 133, 255, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fw-warum__icon svg {
  width: 26px;
  height: 26px;
  color: var(--accent-light);
}

.fw-warum__card h3 {
  font-size: var(--text-xl);
  line-height: 1.3;
}

.fw-warum__card p {
  color: var(--clr-text-muted);
  font-size: var(--text-base);
  line-height: 1.7;
  flex: 1;
}

.fw-warum__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-top: auto;
  transition: gap var(--duration);
}
.fw-warum__link:hover { gap: var(--space-2); }

/* ═══════════════════════════════════════════
   3. UNSERE LÖSUNG
══════════════════════════════════════════════ */
.fw-loesung {
  padding-block: var(--fw-section-gap);
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

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

.fw-loesung__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
  overflow: hidden;
  padding: 0;
}
.fw-loesung__card > .fw-loesung__icon,
.fw-loesung__card > h3,
.fw-loesung__card > p,
.fw-loesung__card > a {
  padding-inline: var(--space-6);
}
.fw-loesung__card > .fw-loesung__icon { margin-top: var(--space-5); }
.fw-loesung__card > a { padding-bottom: var(--space-5); }

.fw-loesung__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
}
.fw-loesung__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s ease;
}
.fw-loesung__card:hover .fw-loesung__img img {
  transform: scale(1.05);
}

/* Subtle accent line on top of card */
.fw-loesung__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0;
  transition: opacity var(--duration);
}

.fw-loesung__card:hover::before { opacity: 1; }

.fw-loesung__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(61, 133, 255, .1);
  border: 1px solid rgba(61, 133, 255, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--duration), border-color var(--duration);
}

.fw-loesung__card:hover .fw-loesung__icon {
  background: rgba(61, 133, 255, .18);
  border-color: rgba(61, 133, 255, .4);
}

.fw-loesung__icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent-light);
}

.fw-loesung__card h3 {
  font-size: var(--text-lg);
}

.fw-loesung__card p {
  color: var(--clr-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
  flex: 1;
}

.fw-loesung__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-light);
  transition: gap var(--duration), color var(--duration);
  margin-top: auto;
}

.fw-loesung__link:hover {
  gap: var(--space-3);
  color: var(--accent);
}

/* ═══════════════════════════════════════════
   4. VERTRAUENSBLOCK
══════════════════════════════════════════════ */
.fw-trust {
  padding-block: var(--fw-section-gap);
  background:
    radial-gradient(ellipse 80% 60% at 80% 50%, rgba(61, 133, 255, .06) 0%, transparent 70%),
    var(--clr-bg);
}

.fw-trust__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-16);
  align-items: start;
}

.fw-trust__text {
  max-width: 660px;
}

.fw-trust__text h2 {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-3xl));
  line-height: 1.25;
  margin-top: var(--space-4);
  margin-bottom: var(--space-6);
}

.fw-trust__text > p {
  color: var(--clr-text-muted);
  margin-bottom: var(--space-8);
  font-size: var(--text-lg);
  line-height: 1.7;
}

.fw-trust__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}

.fw-trust__list li {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  color: var(--clr-text);
  font-size: var(--text-base);
  line-height: 1.6;
}

.fw-trust__list li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 0.5em;
}

/* Visual column (image + stats) */
.fw-trust__visual {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  width: 680px;
  flex-shrink: 0;
}
.fw-trust__img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,.45);
}
.fw-trust__img img {
  width: 100%;
  height: auto;
  display: block;
}

/* Stats grid */
.fw-trust__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  width: 100%;
}

.fw-trust__stat {
  padding: var(--space-6);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.fw-trust__stat-num {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent-light);
  line-height: 1;
}

.fw-trust__stat-label {
  font-size: var(--text-xs);
  color: var(--clr-text-muted);
  line-height: 1.4;
}

/* ═══════════════════════════════════════════
   5. MUSTERANGEBOT
══════════════════════════════════════════════ */
.fw-muster {
  padding-block: var(--fw-section-gap);
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

.fw-muster .section-header p + p {
  color: var(--clr-text-muted);
}

.fw-muster__layout {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: var(--space-12);
  align-items: start;
}

/* Accordion */
.fw-muster__accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.fw-acc-item {
  border-bottom: 1px solid var(--clr-border);
}

.fw-acc-item:last-child { border-bottom: none; }

.fw-acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: var(--clr-surface-2);
  color: var(--clr-text);
  text-align: left;
  cursor: pointer;
  border: none;
  transition: background var(--duration);
  font-family: inherit;
}

.fw-acc-trigger:hover {
  background: rgba(61, 133, 255, .06);
}

.fw-acc-item.is-open .fw-acc-trigger {
  background: rgba(61, 133, 255, .08);
  color: var(--clr-text);
}

.fw-acc-num {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent-light);
  min-width: 28px;
}

.fw-acc-title {
  flex: 1;
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.35;
}

.fw-acc-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--clr-text-muted);
  transition: transform var(--duration) var(--ease-out);
}

.fw-acc-chevron svg {
  width: 20px;
  height: 20px;
}

.fw-acc-item.is-open .fw-acc-chevron {
  transform: rotate(180deg);
  color: var(--accent-light);
}

.fw-acc-body {
  padding: var(--space-5) var(--space-6) var(--space-6);
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
}

.fw-acc-body p {
  color: var(--clr-text-muted);
  font-size: var(--text-base);
  line-height: 1.75;
  max-width: 60ch;
}

/* Muster image */
.fw-muster__image {
  position: sticky;
  top: calc(var(--header-h) + var(--space-8));
}

.fw-muster__image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-lg);
}

/* ═══════════════════════════════════════════
   6. DESHALB WIR
══════════════════════════════════════════════ */
.fw-deshalb {
  padding-block: var(--fw-section-gap);
}

/* Oben: Text links, Bild rechts */
.fw-deshalb__top {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: var(--space-12);
  align-items: start;
  margin-bottom: var(--space-12);
}

.fw-deshalb__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.fw-deshalb__header h2 {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-3xl));
  margin: var(--space-2) 0 0;
}
.fw-deshalb__header p {
  color: var(--clr-text-muted);
  font-size: var(--text-base);
  line-height: 1.75;
}

.fw-deshalb__image {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-md);
}

.fw-deshalb__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Unten: Vorteile volle Breite */
.fw-deshalb__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.fw-deshalb__intro h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.fw-deshalb__intro p {
  font-size: var(--text-sm);
  line-height: 1.7;
}

.fw-deshalb__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4) var(--space-8);
}

.fw-deshalb__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--clr-text);
}

.fw-deshalb__list strong {
  color: var(--clr-text);
}

.fw-deshalb__check {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: rgba(61, 133, 255, .12);
  border: 1px solid rgba(61, 133, 255, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.fw-deshalb__check svg {
  width: 12px;
  height: 12px;
  color: var(--accent-light);
}

/* ═══════════════════════════════════════════
   7. ANFRAGE / FORM
══════════════════════════════════════════════ */
.fw-anfrage {
  padding-block: var(--fw-section-gap);
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
}

.fw-anfrage__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-5);
  max-width: 600px;
  margin: 0 auto;
}

.fw-anfrage__cta h2 {
  margin: 0;
}

.fw-anfrage__cta p {
  color: var(--clr-text-muted);
  font-size: var(--text-base);
  line-height: 1.75;
  margin: 0;
}

/* Form layout */
.fw-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.fw-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.fw-form__req {
  color: var(--accent-light);
  margin-left: 2px;
}

.fw-form__opt {
  font-weight: 400;
  font-size: var(--text-xs);
}

/* Checkbox privacy row */
.fw-form__privacy {
  flex-direction: row;
  align-items: flex-start;
}

.fw-form__check-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  line-height: 1.5;
}

.fw-form__check-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.fw-form__check-label a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fw-form__actions {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.fw-form__actions p {
  max-width: 38ch;
}

/* Success state */
.fw-form__success {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-6);
  background: rgba(34, 197, 94, .08);
  border: 1px solid rgba(34, 197, 94, .25);
  border-radius: var(--radius-md);
}

.fw-form__success-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(34, 197, 94, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fw-form__success-icon svg {
  width: 22px;
  height: 22px;
  color: var(--clr-success);
}

.fw-form__success strong {
  display: block;
  color: var(--clr-success);
  margin-bottom: var(--space-1);
}

.fw-form__success p {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  max-width: none;
}

/* ═══════════════════════════════════════════
   REDUCED MOTION — override animations
══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .fw-hero__bg {
    will-change: auto;
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — 1280px
══════════════════════════════════════════════ */
@media (max-width: 1280px) {
  .fw-muster__layout {
    grid-template-columns: 1fr 400px;
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — 1024px
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .fw-hero__scene { display: none; }
  .fw-hero__content { width: 100%; }

  .fw-trust__inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .fw-trust__visual { width: 100%; }

  .fw-trust__stats {
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
  }

  .fw-muster__layout {
    grid-template-columns: 1fr;
  }

  .fw-muster__image {
    position: static;
    max-width: 560px;
  }

  .fw-deshalb__top {
    grid-template-columns: 1fr;
  }

  .fw-anfrage__inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — 768px
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .fw-warum__grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .fw-loesung__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }

  .fw-trust__stats {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

  .fw-deshalb__list {
    grid-template-columns: 1fr;
  }

  .fw-form__row {
    grid-template-columns: 1fr;
  }

  .fw-form__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }

  .fw-hero__content h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — 480px
══════════════════════════════════════════════ */
@media (max-width: 480px) {
  .fw-loesung__grid {
    grid-template-columns: 1fr;
  }

  .fw-trust__stats {
    grid-template-columns: 1fr 1fr;
  }

  .fw-acc-trigger {
    padding: var(--space-4) var(--space-4);
  }

  .fw-acc-body {
    padding: var(--space-4) var(--space-4) var(--space-5);
  }

  .fw-hero__outer {
    padding-top: calc(var(--header-h) + var(--space-10));
    padding-bottom: var(--space-12);
  }
}


