/* =========================================================
   Bortels Erste-Hilfe-Ausbildung — Modern Stylesheet
   ========================================================= */

:root {
  --red: #c8102e;
  --red-dark: #8a0a1f;
  --red-soft: #fde8eb;
  --ink: #1a1d21;
  --ink-soft: #4a5058;
  --muted: #7a8088;
  --line: #e6e8ec;
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --shadow: 0 8px 28px rgba(20, 22, 26, 0.08);
  --shadow-lg: 0 18px 48px rgba(20, 22, 26, 0.14);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand .mark {
  width: 52px; height: 38px;
  background: var(--red);
  border-radius: 9px;
  display: grid; place-items: center;
  flex: none;
}
.brand .mark svg { width: 56px; height: 26px; }
.brand .name { font-weight: 700; font-size: 1.02rem; line-height: 1.1; }
.brand .name span { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink-soft);
  font-size: .94rem;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--bg-alt); color: var(--ink); }
.nav a.cta {
  background: var(--red);
  color: #fff;
  margin-left: 6px;
}
.nav a.cta:hover { background: var(--red-dark); color: #fff; }

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 10px;
  cursor: pointer;
}
.menu-btn span {
  display: block; width: 20px; height: 2px; background: var(--ink);
  margin: 4px 0; transition: .2s;
}

@media (max-width: 880px) {
  .nav {
    position: fixed;
    inset: 70px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    padding: 14px 22px 22px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: .2s;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 13px 8px; border-radius: 8px; }
  .nav a.cta { margin: 6px 0 0; text-align: center; }
  .menu-btn { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: #16181c;
}
.hero video,
.hero .poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero .poster { background-size: cover; background-position: center; }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(15,17,20,.55) 0%, rgba(15,17,20,.72) 100%);
}
.hero .inner { position: relative; z-index: 2; padding: 90px 0; max-width: 720px; }
.hero .eyebrow {
  display: inline-block;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  padding: 7px 14px; border-radius: 999px;
  margin-bottom: 22px;
  backdrop-filter: blur(6px);
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero p {
  font-size: clamp(1.02rem, 2.4vw, 1.22rem);
  color: rgba(255,255,255,.9);
  margin: 0 0 30px;
  max-width: 580px;
}
.hero .btns { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600; font-size: .98rem;
  transition: transform .12s, background .15s, box-shadow .15s;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 26px rgba(200,16,46,.4); }
.btn-primary:hover { background: var(--red-dark); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.32); }
.btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .hero video { display: none; }
}

/* ---------- Sections ---------- */
section { padding: 78px 0; }
section.alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head .kicker { color: var(--red); font-weight: 600; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 10px 0 14px; letter-spacing: -0.02em; }
.section-head p { color: var(--ink-soft); margin: 0; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .grid.three, .grid.two { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 52px; height: 52px;
  background: var(--red-soft);
  color: var(--red);
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
}
.card h3 { margin: 0 0 10px; font-size: 1.18rem; }
.card p { margin: 0 0 18px; color: var(--ink-soft); }
.card .more { font-weight: 600; color: var(--red); }

/* ---------- Stats strip ---------- */
.strip {
  background: var(--ink);
  color: #fff;
  padding: 46px 0;
}
.strip .grid { grid-template-columns: repeat(4, 1fr); text-align: center; }
.strip .num { font-size: 2rem; font-weight: 800; color: #fff; }
.strip .lbl { color: rgba(255,255,255,.72); font-size: .9rem; margin-top: 4px; }
@media (max-width: 720px) { .strip .grid { grid-template-columns: repeat(2, 1fr); gap: 28px; } }

/* ---------- Reference logos ---------- */
.refs { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.refs span {
  font-weight: 600; color: var(--ink-soft);
  background: #fff; border: 1px solid var(--line);
  padding: 10px 16px; border-radius: 10px;
  font-size: .92rem;
}

/* ---------- Termine iframe ---------- */
.termine-frame {
  width: 100%;
  min-height: 720px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

/* ---------- Contact band ---------- */
.contact-band {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  text-align: center;
}
.contact-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin: 0 0 12px; }
.contact-band p { color: rgba(255,255,255,.9); margin: 0 auto 28px; max-width: 560px; }
.contact-band .quick { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 26px; }
.contact-band .quick a {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  padding: 11px 18px; border-radius: 999px;
  font-weight: 600;
}
.contact-band .quick a:hover { background: rgba(255,255,255,.26); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: #111316; color: rgba(255,255,255,.78); padding: 56px 0 28px; }
.site-footer .grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
@media (max-width: 760px) { .site-footer .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer .grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 16px; }
.site-footer a { color: rgba(255,255,255,.78); display: block; padding: 5px 0; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.site-footer .fbrand { color: #fff; font-weight: 700; font-size: 1.05rem; margin-bottom: 12px; }
.site-footer .fmark { width: 46px; height: 34px; background: var(--red); border-radius: 8px; display: grid; place-items: center; margin-bottom: 14px; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 22px; font-size: .82rem; color: rgba(255,255,255,.55); display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- Content / legal pages ---------- */
.legal-page { padding: 60px 0 80px; }
.legal-page .wrap { max-width: 820px; }
.legal-page h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 6px; letter-spacing: -0.02em; }
.legal-page .lead { color: var(--muted); margin: 0 0 36px; font-size: .98rem; }
.legal-page h2 { font-size: 1.28rem; margin: 38px 0 14px; }
.legal-page h3 { font-size: 1.05rem; margin: 26px 0 10px; }
.legal-page p, .legal-page li { color: var(--ink-soft); }
.legal-page ul { padding-left: 20px; }
.legal-page .meta {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 8px 0 14px;
}
.legal-page .meta p { margin: 4px 0; }
.legal-page .meta strong { color: var(--ink); }

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, #16181c 0%, #23262c 100%);
  color: #fff;
  padding: 70px 0 60px;
}
.page-hero .kicker { color: rgba(255,255,255,.7); letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; font-weight: 600; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 10px 0 14px; letter-spacing: -0.02em; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 620px; margin: 0; }

/* ---------- Misc ---------- */
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-s { margin-top: 8px; }
.mt-m { margin-top: 18px; }
.mt-l { margin-top: 34px; }
.divider { height: 1px; background: var(--line); margin: 40px 0; border: 0; }

/* ---------- Hero (hell, freundlich) ---------- */
.hero-light {
  background: linear-gradient(180deg, #fafbfc 0%, #eef2f6 100%);
  color: var(--ink);
  min-height: auto;
  padding: 0;
  border-bottom: 1px solid var(--line);
  display: block;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  gap: 0;
  min-height: 540px;
}
.hero-text {
  padding: 80px 60px 80px 22px;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-light .eyebrow {
  display: inline-block;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red);
  background: var(--red-soft);
  padding: 7px 14px; border-radius: 999px;
  margin-bottom: 22px;
  border: 0;
  font-weight: 600;
  align-self: flex-start;
}
.hero-light h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.1;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero-light p {
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  color: var(--ink-soft);
  margin: 0 0 30px;
  max-width: 560px;
}
.hero-light .btns { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-ghost-dark {
  background: #fff; color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.btn-ghost-dark:hover {
  background: var(--bg-alt); color: var(--ink);
  transform: translateY(-2px);
}
.btn-block { display: flex; justify-content: center; width: 100%; }

.hero-image {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #c8102e22 0%, #8a0a1f22 100%);
}
.hero-image img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-image.no-img::before {
  content: "Hier Bild einfügen — assets/hero.jpg";
  text-align: center;
  font-weight: 600; color: #fff;
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #c8102e 0%, #8a0a1f 100%);
  font-size: 1rem;
  padding: 22px;
}

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-text { padding: 56px 22px 40px; }
  .hero-image { min-height: 280px; order: -1; }
}

/* ---------- Referenz-Karten ---------- */
.refs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .refs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .refs-grid { grid-template-columns: 1fr; } }
.ref-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
  display: flex; flex-direction: column; gap: 8px;
}
.ref-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ref-logo {
  width: 48px; height: 48px;
  background: var(--red-soft);
  color: var(--red);
  border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.4rem;
  margin-bottom: 4px;
  overflow: hidden;
}
.ref-logo img { width: 100%; height: 100%; object-fit: cover; }
.ref-name { font-weight: 700; font-size: 1.02rem; }
.ref-text { color: var(--ink-soft); font-size: .9rem; }

/* ---------- Kontaktformular ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 36px;
  align-items: start;
}
@media (max-width: 820px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-form-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 32px;
  box-shadow: var(--shadow);
}
.contact-form .hp { position: absolute; left: -9999px; opacity: 0; }
.contact-form .form-row { margin-bottom: 18px; }
.contact-form .form-row label {
  display: block;
  font-size: .85rem; font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.contact-form .form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 540px) { .contact-form .form-row-2 { grid-template-columns: 1fr; } }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d0d4da;
  border-radius: 10px;
  font-size: .96rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  box-sizing: border-box;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200,16,46,.12);
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form .form-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .9rem; color: var(--ink-soft);
}
.contact-form .form-check input { width: auto; margin-top: 3px; flex: none; }
.contact-form .form-check label { margin: 0; font-weight: 400; }
.contact-form .form-check a { color: var(--red); }

.form-status {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: .92rem;
  display: none;
}
.form-status.sending,
.form-status.success,
.form-status.error { display: block; }
.form-status.sending { background: var(--bg-alt); color: var(--ink-soft); }
.form-status.success { background: #e7f6ec; color: #1c7a3a; border: 1px solid #b8e3c4; }
.form-status.error { background: var(--red-soft); color: var(--red-dark); border: 1px solid #f3c7cd; }

.contact-aside {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.contact-aside h3 { margin: 0 0 8px; font-size: 1.15rem; }
.contact-list { list-style: none; padding: 0; margin: 16px 0 0; }
.contact-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: .95rem; color: var(--ink-soft);
}
.contact-list li:first-child { border-top: 0; }
.contact-list .ic {
  width: 36px; height: 36px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 10px;
  display: grid; place-items: center;
  flex: none; font-size: 1rem;
}
.contact-list strong { color: var(--ink); display: block; margin-bottom: 2px; }

/* ---------- Contact band buttons ---------- */
.contact-band .btn-band {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff;
  color: var(--red);
  padding: 11px 18px; border-radius: 999px;
  font-weight: 600;
}
.contact-band .btn-band:hover { background: #fff; color: var(--red-dark); }
