/* ==========================================================================
   Kustermann – Sanitätsdienste und medizinische Ausbildung
   Shared stylesheet
   ========================================================================== */

:root {
  /* Colors — Weiß, Dunkelblau, Dunkelgrau (per Briefing) */
  --white: #ffffff;
  --bg-soft: #f5f8fb;
  --bg-soft-2: #eef3f8;

  --navy-950: #081b33;
  --navy-900: #0d2b4e;
  --navy-800: #133f73;
  --navy-700: #1c5490;
  --navy-100: #e7edf5;
  --navy-50: #f2f6fa;

  --gray-900: #2b2e33;
  --gray-700: #4b4f58;
  --gray-500: #767b87;
  --gray-300: #c9cfd9;
  --gray-100: #e7e9ee;

  --shadow-sm: 0 2px 10px rgba(13, 43, 78, 0.06);
  --shadow-md: 0 12px 30px rgba(13, 43, 78, 0.10);
  --shadow-lg: 0 24px 60px rgba(13, 43, 78, 0.16);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-full: 999px;

  --container: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--navy-900);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Utility ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-700);
  background: var(--navy-100);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy-700);
  display: inline-block;
}
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 16px; }
.section-head p { color: var(--gray-700); font-size: 1.05rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--navy-900); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-800); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { border-color: var(--navy-900); color: var(--navy-900); }
.btn-outline:hover { background: var(--navy-900); color: var(--white); transform: translateY(-2px); }
.btn-outline.on-dark { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-outline.on-dark:hover { background: var(--white); color: var(--navy-900); border-color: var(--white); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  border-color: var(--gray-100);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 58px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--gray-700);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy-900); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
}
.nav-links a.btn { padding: 12px 24px; font-size: 0.9rem; }
.nav-links a.btn-primary { color: var(--white); }
.nav-links a.btn-primary:hover { color: var(--white); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-900);
  transition: all 0.25s ease;
}
.nav-toggle span { margin: 6px 0; }
.nav-toggle.open::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open::after { transform: translateY(-8px) rotate(-45deg); }
.nav-toggle.open span { opacity: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 0;
  background: linear-gradient(180deg, var(--navy-50) 0%, var(--white) 70%);
}
.hero-blob {
  position: absolute;
  top: -220px;
  right: -180px;
  width: 620px;
  height: 620px;
  border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  opacity: 0.08;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 72px;
}
.hero-copy h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  margin-bottom: 22px;
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--navy-700);
  background: linear-gradient(180deg, transparent 62%, var(--navy-100) 62%);
}
.hero-copy p {
  font-size: 1.12rem;
  color: var(--gray-700);
  max-width: 520px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.hero-stats div strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  color: var(--navy-900);
}
.hero-stats div span { font-size: 0.85rem; color: var(--gray-500); }

.hero-visual { position: relative; }
.hero-visual-shape {
  position: relative;
  border-radius: 45% 55% 60% 40% / 50% 45% 55% 50%;
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
  box-shadow: var(--shadow-lg);
  background: var(--navy-900);
}
.hero-badge-card {
  position: absolute;
  bottom: -28px;
  left: -28px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 250px;
}
.hero-badge-card .icon-circle { flex-shrink: 0; }
.hero-badge-card strong { display: block; font-size: 0.95rem; color: var(--navy-900); }
.hero-badge-card span { font-size: 0.78rem; color: var(--gray-500); }

.wave-divider { display: block; width: 100%; line-height: 0; }
.wave-divider svg { width: 100%; height: auto; display: block; }

/* ---------- Icon circle ---------- */
.icon-circle {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--navy-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-900);
}
.icon-circle svg { width: 24px; height: 24px; }
.icon-circle.dark { background: var(--navy-900); color: var(--white); }

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--navy-900);
  color: var(--white);
  padding: 28px 0;
}
.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.trust-bar p { font-size: 0.92rem; opacity: 0.85; display: flex; align-items: center; gap: 10px; }

/* ---------- Service cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card h3 { font-size: 1.2rem; margin: 18px 0 10px; }
.card p { color: var(--gray-700); font-size: 0.96rem; }
.card ul { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.card ul li { font-size: 0.9rem; color: var(--gray-700); display: flex; gap: 10px; align-items: flex-start; }
.card ul li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--navy-700);
  margin-top: 8px;
  flex-shrink: 0;
}

.card--soon {
  background: var(--bg-soft);
  border: 1.5px dashed var(--gray-300);
  box-shadow: none;
}
.card--soon:hover { transform: none; box-shadow: none; }
.ribbon {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--navy-900);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-full);
}
.ribbon.muted { background: var(--gray-300); color: var(--gray-700); }

/* ---------- Why us ---------- */
.feature-row {
  display: flex;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--gray-100);
}
.feature-row:last-child { border-bottom: none; }
.feature-row h4 { font-size: 1.05rem; margin-bottom: 6px; }
.feature-row p { color: var(--gray-700); font-size: 0.94rem; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}
.testimonial-card .quote-mark {
  font-family: 'Poppins', sans-serif;
  font-size: 2.6rem;
  color: var(--navy-100);
  line-height: 1;
  margin-bottom: 8px;
}
.testimonial-card p.quote { color: var(--gray-700); font-size: 0.98rem; margin-bottom: 22px; }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.avatar-placeholder {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy-100);
  color: var(--navy-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.testimonial-person strong { display: block; font-size: 0.9rem; color: var(--navy-900); }
.testimonial-person span { font-size: 0.8rem; color: var(--gray-500); }

/* ---------- Image placeholder ---------- */
.img-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--navy-50);
  border: 1.5px dashed var(--gray-300);
  color: var(--gray-500);
  text-align: center;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.img-placeholder svg { width: 34px; height: 34px; opacity: 0.55; }
.img-placeholder span { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; max-width: 200px; }
.img-placeholder.square { aspect-ratio: 1 / 1; }
.img-placeholder.wide { aspect-ratio: 16 / 9; }
.img-placeholder.portrait { aspect-ratio: 4 / 5; }
img.portrait { aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-800));
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -60px; top: -80px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.cta-band h2 { color: var(--white); font-size: 1.9rem; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.78); max-width: 460px; }
.cta-band-actions { display: flex; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 28px;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .brand img { height: 128px; }
.footer-brand p { margin-top: 22px; font-size: 0.9rem; color: rgba(255,255,255,0.6); max-width: 280px; }
.site-footer h5 {
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.site-footer ul { display: flex; flex-direction: column; gap: 12px; }
.site-footer a { font-size: 0.92rem; transition: color 0.2s ease; }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--navy-50);
  padding: 64px 0 88px;
  position: relative;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: 14px; }
.page-hero p { color: var(--gray-700); max-width: 560px; font-size: 1.05rem; }
.breadcrumb { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 18px; }
.breadcrumb a { color: var(--navy-700); font-weight: 600; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}
.contact-info-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 38px;
}
.contact-info-card h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 8px; }
.contact-info-card > p { color: rgba(255,255,255,0.7); font-size: 0.94rem; margin-bottom: 32px; }
.contact-row { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.contact-row:last-child { border-bottom: none; }
.contact-row .icon-circle { background: rgba(255,255,255,0.12); color: var(--white); }
.contact-row strong { display: block; font-size: 0.92rem; color: var(--white); margin-bottom: 3px; }
.contact-row span, .contact-row a { font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.contact-row a:hover { color: var(--white); }

.form-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 44px 38px;
  box-shadow: var(--shadow-sm);
}
.form-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--navy-50);
  border: 1px solid var(--navy-100);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 28px;
  font-size: 0.88rem;
  color: var(--navy-800);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--gray-900); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1.5px solid var(--gray-100);
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font: inherit;
  color: var(--gray-900);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy-700);
  background: var(--white);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ---------- About page ---------- */
.about-hero {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.value-card { padding: 28px; border-radius: var(--radius-md); background: var(--bg-soft); }
.value-card .icon-circle { margin-bottom: 16px; }
.value-card h4 { font-size: 1.02rem; margin-bottom: 8px; }
.value-card p { font-size: 0.9rem; color: var(--gray-700); }

.timeline { border-left: 2px solid var(--navy-100); padding-left: 30px; display: flex; flex-direction: column; gap: 30px; }
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -37px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--navy-900);
  border: 3px solid var(--navy-100);
}
.timeline-item strong { display: block; color: var(--navy-900); font-size: 0.98rem; margin-bottom: 4px; }
.timeline-item span { font-size: 0.85rem; color: var(--gray-500); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .about-hero, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin-inline: auto; width: 100%; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; flex-direction: column; }
  .grid-3, .grid-2, .value-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .cta-band { padding: 44px 28px; flex-direction: column; text-align: center; justify-content: center; }
  .cta-band-actions { justify-content: center; }

  .nav-links.mobile-open {
    display: flex;
    position: absolute;
    top: 84px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 18px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.mobile-open .btn { margin-top: 6px; }
}
