/* ==========================================================================
   Vermisstensuche und Sanitätsdienst e.V. (i.G.) — Vereins-Webseite
   ========================================================================== */

:root {
  --vssd-navy: #0f2a44;
  --vssd-navy-strong: #081a2c;
  --vssd-red: #a32a2f;
  --vssd-red-strong: #7f1f24;
  --vssd-ink: #14202c;
  --vssd-muted: #5a6b7a;
  --vssd-bg: #f6f7f9;
  --vssd-card-border: rgba(15, 42, 68, 0.1);
  --max-width: 1140px;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--vssd-ink);
  background: var(--vssd-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

/* ---------- Info-Popup ---------- */

.site-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 26, 44, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.site-modal-overlay[hidden] {
  display: none;
}

.site-modal {
  background: #fff;
  border-radius: var(--radius);
  max-width: 440px;
  width: 100%;
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 30px 60px -20px rgba(5, 32, 58, 0.5);
}

.site-modal-logo {
  height: 64px;
  width: auto;
  margin: 0 auto 18px;
}

.site-modal h2 {
  font-size: 1.25rem;
  color: var(--vssd-red);
  margin-bottom: 0.5em;
}

.site-modal p {
  color: var(--vssd-muted);
  font-size: 0.96rem;
  margin-bottom: 1.6em;
}

.bereitschaft-banner {
  position: sticky;
  top: 76px;
  z-index: 40;
  background: var(--vssd-red);
  color: #fff;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 16px;
}

.bereitschaft-banner[hidden] {
  display: none;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-weight: 700;
  color: var(--vssd-navy);
  line-height: 1.2;
}

p {
  margin: 0 0 1em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--vssd-red);
  margin: 0 0 0.6em;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--vssd-red);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(163, 42, 47, 0.5);
}

.btn-primary:hover {
  background: var(--vssd-red-strong);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(15, 42, 68, 0.25);
  color: var(--vssd-navy);
}

.btn-ghost:hover {
  border-color: var(--vssd-navy);
  background: rgba(15, 42, 68, 0.05);
}

.hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.hero .btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.btn-light {
  background: #fff;
  color: var(--vssd-navy);
}

.btn-light:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.35);
}

/* ---------- Card ---------- */

.card {
  background: #fff;
  border: 1px solid var(--vssd-card-border);
  border-radius: var(--radius);
  box-shadow: 0 20px 45px -30px rgba(15, 42, 68, 0.4);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 249, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 42, 68, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 46px;
  width: auto;
}

.brand-name {
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--vssd-navy);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.brand-name small {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--vssd-muted);
  text-transform: none;
  letter-spacing: 0;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.primary-nav a {
  font-weight: 500;
  color: var(--vssd-navy);
  font-size: 0.95rem;
  opacity: 0.85;
  text-decoration: none;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.primary-nav a:hover {
  opacity: 1;
}

.primary-nav a.is-active {
  opacity: 1;
  text-decoration: underline;
  text-decoration-color: var(--vssd-red);
}

.nav-cta.is-active {
  text-decoration: none;
}

.nav-cta {
  padding: 0.55em 1.3em;
  border-radius: 999px;
  background: var(--vssd-red);
  color: #fff !important;
  opacity: 1 !important;
}

.nav-cta:hover {
  background: var(--vssd-red-strong);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--vssd-navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 88px;
  background: var(--vssd-navy);
  color: #fff;
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 480px;
  background: radial-gradient(55% 55% at 25% 15%, rgba(163, 42, 47, 0.35), transparent 70%),
    radial-gradient(45% 45% at 85% 5%, rgba(255, 255, 255, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.hero-logo-wrap {
  display: flex;
  justify-content: center;
}

.hero-logo {
  width: 100%;
  max-width: 280px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35));
}

.hero-text .eyebrow {
  color: #f0a4a8;
}

.hero-text h1 {
  color: #fff;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  letter-spacing: -0.01em;
}

.hero-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.4em 0.9em;
  border-radius: 999px;
  margin-bottom: 1em;
}

.hero-lede {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ---------- Facts strip ---------- */

.facts-strip {
  border-bottom: 1px solid rgba(15, 42, 68, 0.08);
  background: #fff;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px 0;
}

.fact {
  text-align: center;
}

.fact-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--vssd-red);
}

.fact-label {
  font-size: 0.88rem;
  color: var(--vssd-muted);
  font-weight: 500;
}

/* ---------- Sections ---------- */

.section {
  padding: 88px 0;
}

.section-alt {
  background: #eef1f4;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.section-lede {
  color: var(--vssd-muted);
  font-size: 1.03rem;
}

/* ---------- About grid ---------- */

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-card {
  padding: 28px 26px;
}

.about-icon {
  font-size: 1.7rem;
  margin-bottom: 0.5em;
}

.about-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4em;
}

.about-card p {
  color: var(--vssd-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- News / Aktuelles ---------- */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-tag {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--vssd-red);
}

.news-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.2em;
}

.news-card p {
  color: var(--vssd-muted);
  font-size: 0.93rem;
  margin: 0;
}

/* ---------- Einsätze list ---------- */

.einsatz-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.einsatz-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 20px 24px;
}

.einsatz-id {
  font-weight: 700;
  color: var(--vssd-navy);
  font-size: 0.95rem;
}

.einsatz-item p {
  margin: 0;
  color: var(--vssd-muted);
  font-size: 0.94rem;
}

/* ---------- Info / Hinweis panels ---------- */

.info-panel {
  padding: 36px 36px;
  border-left: 4px solid var(--vssd-red);
}

.info-panel h3 {
  font-size: 1.15rem;
}

.info-panel p:last-child {
  margin-bottom: 0;
}

.info-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ---------- Equipment slider ---------- */

.equipment-slider {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 640px;
  margin: 0 auto;
}

.slider-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius);
}

.slider-track {
  display: flex;
  transition: transform 0.4s ease;
}

.slide {
  flex: 0 0 100%;
  min-width: 0;
}

.equipment-slide-card {
  padding: 40px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  min-height: 320px;
  justify-content: center;
}

.equipment-visual {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--vssd-navy), #1c4066);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.equipment-slide-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.3em;
}

.equipment-slide-body p {
  color: var(--vssd-muted);
  font-size: 0.97rem;
  margin: 0;
}

.equipment-slide-body .equipment-list {
  text-align: left;
  margin-top: 14px;
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
}

.equipment-slide-body .equipment-list li {
  position: relative;
  padding-left: 20px;
  color: var(--vssd-ink);
  font-size: 0.95rem;
}

.equipment-slide-body .equipment-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--vssd-red);
}

.slider-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--vssd-card-border);
  background: #fff;
  color: var(--vssd-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.slider-arrow:hover {
  background: var(--vssd-navy);
  color: #fff;
  transform: translateY(-1px);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(15, 42, 68, 0.2);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.slider-dot.is-active {
  background: var(--vssd-red);
  transform: scale(1.2);
}

.equipment-footnote {
  text-align: center;
  color: var(--vssd-muted);
  font-size: 0.95rem;
  margin: 28px 0 0;
}

/* ---------- Partner ---------- */

.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.partner-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.partner-poster-link {
  display: block;
}

.partner-poster {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.25s ease;
}

.partner-poster-portrait {
  object-position: top;
}

.partner-poster-link:hover .partner-poster {
  transform: scale(1.03);
}

.partner-body {
  padding: 26px 26px 30px;
}

.partner-body h3 {
  font-size: 1.1rem;
  margin: 0.2em 0 0.5em;
}

.partner-body p {
  color: var(--vssd-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.contact-card {
  padding: 36px 32px;
}

.contact-person {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--vssd-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-person h3 {
  margin: 0 0 0.15em;
  font-size: 1.05rem;
}

.contact-person span {
  font-size: 0.88rem;
  color: var(--vssd-muted);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--vssd-navy);
  font-size: 0.97rem;
}

.contact-card-dark {
  background: var(--vssd-navy);
  color: rgba(255, 255, 255, 0.9);
}

.contact-card-dark h3 {
  color: #fff;
}

.contact-card-dark p {
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--vssd-navy-strong);
  color: rgba(255, 255, 255, 0.7);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand .brand-logo {
  height: 32px;
}

.footer-brand span {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.footer-inner p {
  margin: 0;
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-credit {
  margin: 20px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-credit a:hover {
  color: #fff;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

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

  .info-panel-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-logo {
    max-width: 190px;
    margin: 0 auto;
  }

  .hero-lede {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .equipment-slider {
    gap: 8px;
  }

  .slider-arrow {
    width: 36px;
    height: 36px;
  }

  .equipment-slide-card {
    padding: 32px 20px;
    min-height: 280px;
  }
}

@media (max-width: 920px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid rgba(15, 42, 68, 0.08);
    box-shadow: 0 16px 30px -20px rgba(15, 42, 68, 0.4);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .primary-nav a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(15, 42, 68, 0.06);
  }

  .nav-cta {
    margin-top: 8px;
    text-align: center;
  }

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

  .einsatz-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 600px) {
  .about-grid,
  .news-grid,
  .facts-grid,
  .partner-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 48px 0 56px;
  }

  .section {
    padding: 56px 0;
  }
}
