/* ============================================================
   PlanB Bildungs GmbH – Stylesheet
   ============================================================ */

:root {
  --navy: #143852;
  --navy-dark: #0d2739;
  --navy-deep: #0a1f2e;
  --red: #e10117;
  --red-dark: #b80113;
  --amber: #ffb545;
  --ink: #1c2b36;
  --muted: #5b6d7a;
  --line: #e3e9ee;
  --bg: #f5f8fa;
  --card: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 6px rgba(13, 39, 57, .06), 0 12px 32px rgba(13, 39, 57, .08);
  --shadow-lift: 0 6px 16px rgba(13, 39, 57, .10), 0 24px 48px rgba(13, 39, 57, .14);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

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

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

.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

.kicker {
  display: inline-block;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .75rem;
}

.section { padding: 88px 0; }
.section.alt { background: #fff; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 1.06rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn svg { flex: none; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(225, 1, 23, .28); }
.btn-primary:hover { background: var(--red-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.btn-light:hover { color: var(--red); transform: translateY(-2px); }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn-sm { padding: 10px 20px; font-size: .9rem; }

/* ---------- Header ---------- */
.topbar {
  background: var(--navy-dark);
  color: #cfe0ec;
  font-size: .84rem;
  padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar a { color: #fff; font-weight: 700; }
.topbar a:hover { color: var(--amber); }
.topbar-links { display: flex; gap: 22px; align-items: center; }
.topbar-note { display: flex; align-items: center; gap: 8px; }
.topbar-note .dot { width: 8px; height: 8px; border-radius: 50%; background: #35d07f; box-shadow: 0 0 0 3px rgba(53, 208, 127, .25); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(13, 39, 57, .10); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; }
.brand img { height: 48px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > a, .nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  color: var(--navy);
}
.main-nav > a:hover, .nav-item > a:hover { background: #eef3f7; color: var(--navy); }
.main-nav > a.active, .nav-item > a.active { background: var(--navy); color: #fff; }

.nav-item .caret { transition: transform .2s; }

/* ---------- Mega-Menü (volle Headerbreite) ---------- */
.mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 32px 64px rgba(13, 39, 57, .18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
/* Öffnen per Hover/Fokus nur auf Desktop – auf Mobile steuert JS (.submenu-open) */
@media (min-width: 761px) {
  .nav-item:hover .mega, .nav-item:focus-within .mega { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-item:hover .caret { transform: rotate(180deg); }
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 30px 0 22px;
}
.mega-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 14px;
  transition: background .18s, transform .18s;
}
.mega-card:hover { background: #eef3f7; transform: translateY(-2px); }
.mega-thumb {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}
.mega-thumb img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.mega-card:hover .mega-thumb img { transform: scale(1.06); }
.mini-new {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--amber);
  color: var(--navy-deep);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .22);
}
.mega-card strong { color: var(--navy); font-size: .98rem; font-weight: 800; }
.mega-card small { color: var(--muted); font-weight: 500; line-height: 1.45; }
.mega-card .mega-more {
  margin-top: auto;
  padding-top: 8px;
  color: var(--red);
  font-size: .84rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mega-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 16px 12px;
}
.mega-foot .all-link { color: var(--red); font-weight: 800; display: inline-flex; align-items: center; gap: 8px; }
.mega-foot .all-link:hover { color: var(--red-dark); }
.mega-contact { color: var(--muted); font-size: .92rem; display: inline-flex; align-items: center; gap: 7px; }
.mega-contact a { font-weight: 800; color: var(--navy); }
.mega-mobile-head { display: none; }
.nav-mobile-head { display: none; }
.nav-mobile-cta { display: none; }
.mini-new.inline { display: none; }
.nav-close { display: none; }

/* ---------- Floating Button (nur Icon, rund, führt zu /termin/) ---------- */
.float-cta {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(225, 1, 23, .40);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.float-cta:hover { background: var(--red-dark); color: #fff; transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 34px rgba(225, 1, 23, .5); }
/* Nie über dem geöffneten Mobilmenü schweben */
body.nav-open .float-cta, body.submenu-open .float-cta { display: none; }

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

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
}
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); border-radius: 3px; margin: 5px 0; transition: all .25s; }
.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); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, #1d4d6e 100%);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 380px at 88% -10%, rgba(225, 1, 23, .28), transparent 65%),
    radial-gradient(560px 360px at -8% 110%, rgba(255, 181, 69, .16), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
  padding: 96px 24px 110px;
}
.hero h1 { color: #fff; margin: 18px 0 20px; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero p.lead { font-size: 1.15rem; color: #d8e5ef; max-width: 560px; }
.hero .kicker { color: var(--amber); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 38px; }
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: .86rem;
  font-weight: 700;
  color: #eaf2f8;
}
.badge-pill svg { color: var(--amber); }

.hero-visual { position: relative; }
.hero-visual .photo {
  border-radius: 22px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
  overflow: hidden;
  transform: rotate(1.5deg);
}
.hero-visual .photo img { width: 100%; height: 440px; object-fit: cover; }
.hero-card {
  position: absolute;
  left: -34px;
  bottom: -26px;
  background: #fff;
  color: var(--navy);
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: var(--shadow-lift);
  display: flex;
  gap: 14px;
  align-items: center;
  transform: rotate(-1deg);
}
.hero-card .num { font-size: 1.7rem; font-weight: 800; color: var(--red); line-height: 1; }
.hero-card .lbl { font-size: .85rem; color: var(--muted); font-weight: 600; }

/* ---------- USP strip ---------- */
.usp-strip { margin-top: -54px; position: relative; z-index: 5; }
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.usp {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform .2s ease, box-shadow .2s ease;
}
.usp:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.usp .icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy), #1d4d6e);
  color: #fff;
}
.usp h3 { font-size: 1.02rem; margin-bottom: 4px; }
.usp p { font-size: .89rem; color: var(--muted); }

/* ---------- Area cards ---------- */
/* 6-Spalten-Raster: breite Kachel (Schweißtechnik) oben, darunter 3 Bereiche */
.area-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px; }
.area-grid .area-card { grid-column: span 2; }
.area-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.area-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .5s ease;
}
.area-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(10, 31, 46, .92) 8%, rgba(10, 31, 46, .30) 55%, rgba(10, 31, 46, .12));
  transition: background .3s;
}
.area-card:hover img { transform: scale(1.06); }
.area-body { padding: 34px; width: 100%; }
.area-body .count {
  display: inline-block;
  background: var(--red);
  color: #fff; /* explizit: der a:hover-Farbwechsel der Kachel darf nicht durchschlagen */
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 800;
  padding: 4px 12px;
  margin-bottom: 10px;
}
.area-card:hover { color: #fff; }
.area-body h3 { color: #fff; font-size: 1.7rem; margin-bottom: 8px; }
.area-body p { font-size: 1rem; color: #d5e2ec; margin-bottom: 14px; max-width: 480px; }
.area-body .arrow-link { color: var(--amber); font-weight: 800; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- „Jetzt NEU“ / BSM-Fusion ---------- */
.new-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  background: var(--amber);
  color: var(--navy-deep);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
  transform: rotate(3deg);
}
.new-badge.static {
  position: static;
  display: inline-block;
  transform: rotate(-2deg);
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(255, 181, 69, .45);
}
.area-grid .area-card-wide, .area-card-wide { grid-column: 1 / -1; min-height: 380px; }
.area-card-wide .area-body p { max-width: 640px; }

.merger {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 56px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 56px;
}
.merger h2 em { font-style: normal; color: #1c1c8f; }
.merger p { color: #33454f; margin-top: 14px; }
.merger-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.merger-circle {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 34px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(13, 39, 57, .18);
  border: 1px solid var(--line);
}
.merger-circle img { max-width: 100%; max-height: 100%; object-fit: contain; }
.circle-planb { z-index: 1; }
.circle-bsm { margin-left: -34px; background: #eef1fb; }

/* ---------- Kontakt: zwei Standorte ---------- */
.map-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.map-grid .map-embed { margin-top: 0; }
.map-grid .map-embed iframe { height: 360px; }

/* ---------- Course cards ---------- */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.course-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: #c8d6e0; }
.course-card .tag {
  align-self: flex-start;
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--red);
  background: #fdeaec;
  padding: 4px 12px;
  border-radius: 999px;
}
.course-card h3 { font-size: 1.12rem; }
.course-card h3 a { color: var(--navy); }
.course-card h3 a:hover { color: var(--red); }
.course-card p { color: var(--muted); font-size: .92rem; flex: 1; }
.course-card .meta { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--navy);
  background: #eef3f7;
  border-radius: 999px;
  padding: 5px 12px;
}
.course-card .card-link { font-weight: 800; color: var(--red); font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Split / Förderung ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split .visual { position: relative; }
.split .visual img.main { border-radius: var(--radius); box-shadow: var(--shadow-lift); }
.float-logo {
  position: absolute;
  right: -18px;
  bottom: -22px;
  background: #fff;
  border-radius: 14px;
  padding: 14px 20px;
  box-shadow: var(--shadow-lift);
}
.float-logo img { height: 46px; }
.check-list { list-style: none; margin-top: 22px; display: grid; gap: 13px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.check-list li svg { flex: none; margin-top: 3px; color: #21a463; }
.check-list li small { display: block; font-weight: 500; color: var(--muted); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 30px 26px;
  position: relative;
  box-shadow: var(--shadow);
}
.step .num {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  margin-bottom: 16px;
  font-size: 1.05rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { font-size: .9rem; color: var(--muted); }
.steps-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Testimonials ---------- */
.testi-wrap { position: relative; }
.testi-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 400px);
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 6px 26px;
  scrollbar-width: thin;
}
.testi {
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.testi .stars { color: var(--amber); letter-spacing: 2px; font-size: 1rem; }
.testi p { color: var(--ink); font-size: .93rem; flex: 1; }
.testi .who { display: flex; align-items: center; gap: 12px; }
.testi .avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), #2a5d80);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800;
}
.testi .who strong { color: var(--navy); font-size: .95rem; }
.testi .who small { color: var(--muted); display: block; }
.testi-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
.testi-nav button {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  display: grid; place-items: center;
  transition: all .2s;
}
.testi-nav button:hover { background: var(--navy); color: #fff; }

/* ---------- Blog cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.post-card .post-img { width: 100%; height: 200px; object-fit: cover; }
.post-card .post-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-hero-img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  margin-bottom: 36px;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.post-card time { font-size: .8rem; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .06em; }
.post-card h3 { font-size: 1.1rem; }
.post-card h3 a { color: var(--navy); }
.post-card h3 a:hover { color: var(--red); }
.post-card p { color: var(--muted); font-size: .92rem; flex: 1; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy) 60%, #1d4d6e);
  border-radius: 24px;
  color: #fff;
  padding: 60px;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(480px 280px at 92% 0%, rgba(225, 1, 23, .35), transparent 65%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: #d8e5ef; }
.cta-contacts { display: grid; gap: 14px; }
.cta-contacts a {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .18);
  padding: 15px 20px;
  border-radius: 14px;
  color: #fff;
  font-weight: 800;
  transition: background .2s;
}
.cta-contacts a:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.cta-contacts a small { display: block; font-weight: 500; color: #b9cddc; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  background: linear-gradient(130deg, var(--navy-dark), var(--navy) 65%, #1d4d6e);
  color: #fff;
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(560px 300px at 90% -20%, rgba(225, 1, 23, .30), transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-top: 14px; max-width: 820px; }
.page-hero p.sub { color: #d8e5ef; margin-top: 14px; max-width: 700px; font-size: 1.08rem; }
.breadcrumb { font-size: .85rem; color: #a7bdcd; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb a { color: #d8e5ef; font-weight: 600; }
.breadcrumb a:hover { color: var(--amber); }
.page-hero .chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.page-hero .chip { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .2); }

/* ---------- Course detail layout ---------- */
.course-layout { display: grid; grid-template-columns: 1fr 360px; gap: 44px; align-items: start; }
.prose { max-width: none; }
.prose p { margin-bottom: 1.1em; color: #33454f; }
.prose h2 { margin: 1.6em 0 .6em; font-size: 1.5rem; }
.prose h3 { margin: 1.4em 0 .5em; }
.prose ul, .prose ol { margin: 0 0 1.2em 1.3em; color: #33454f; }
.prose li { margin-bottom: .4em; }
.prose a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.sidebar { position: sticky; top: 100px; display: grid; gap: 20px; }
.fact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.fact-card .head { background: var(--navy); color: #fff; padding: 18px 24px; font-weight: 800; font-size: 1.05rem; }
.fact-card .body { padding: 22px 24px; display: grid; gap: 16px; }
.fact { display: flex; gap: 12px; align-items: flex-start; }
.fact svg { flex: none; color: var(--red); margin-top: 3px; }
.fact strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.fact span { font-weight: 600; color: var(--ink); font-size: .93rem; }
.fact-card .actions { padding: 0 24px 24px; display: grid; gap: 10px; }
.fact-card .actions .btn { justify-content: center; }

.help-card {
  background: linear-gradient(135deg, var(--navy), #1d4d6e);
  color: #fff;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.help-card h3 { color: #fff; margin-bottom: 8px; }
.help-card p { color: #cfe0ec; font-size: .9rem; margin-bottom: 14px; }
.help-card a.tel { font-size: 1.25rem; font-weight: 800; color: var(--amber); }

/* ---------- Accordion ---------- */
.accordion { display: grid; gap: 12px; }
.accordion details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.accordion summary {
  cursor: pointer;
  list-style: none;
  padding: 19px 24px;
  font-weight: 800;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background .15s;
}
.accordion summary:hover { background: #f2f6f9; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--red);
  transition: transform .2s;
  flex: none;
  line-height: 1;
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .acc-body { padding: 0 24px 22px; color: #33454f; }
.accordion .acc-body ul { margin: 0 0 0 1.2em; display: grid; gap: 6px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.info-tile {
  display: flex;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  align-items: flex-start;
}
.info-tile .icon {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: #fdeaec;
  color: var(--red);
}
.info-tile h3 { font-size: 1rem; margin-bottom: 3px; }
.info-tile p, .info-tile a { color: var(--muted); font-size: .93rem; }
.info-tile a.big { font-weight: 800; font-size: 1.05rem; color: var(--navy); }
.info-tile a.big:hover { color: var(--red); }

.contact-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}
.contact-form label { font-weight: 700; font-size: .88rem; color: var(--navy); display: grid; gap: 6px; }
.contact-form input, .contact-form textarea, .contact-form select {
  font: inherit;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid #cfdae2;
  background: #fbfdfe;
  color: var(--ink);
  width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(20, 56, 82, .12);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); margin-top: 44px; }
.map-embed iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- Booking (meetergo) ---------- */
.booking-embed {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
}
.booking-embed .meetergo-iframe,
.booking-embed iframe {
  display: block;
  width: 100%;
  min-height: 720px;
  border: 0;
  border-radius: var(--radius-sm);
}
.booking-fallback .fact-card .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Team strip ---------- */
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.photo-strip img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #b9cddc; margin-top: 96px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 44px;
  padding: 68px 0 48px;
}
.footer-grid h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a { color: #b9cddc; font-size: .93rem; }
.footer-grid a:hover { color: var(--amber); }
.footer-brand img { height: 52px; background: #fff; padding: 8px 12px; border-radius: 10px; margin-bottom: 18px; }
.footer-brand p { font-size: .92rem; max-width: 300px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; }
.footer-contact svg { flex: none; color: var(--amber); margin-top: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .85rem;
}
.footer-bottom a { color: #b9cddc; margin-left: 18px; }
.footer-bottom a:hover { color: var(--amber); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .area-grid .area-card { grid-column: span 1; }
  .area-grid .area-card-wide { grid-column: 1 / -1; }
  .steps-3 { grid-template-columns: repeat(2, 1fr); }
  .mega-grid { grid-template-columns: repeat(2, 1fr); }
  .merger { grid-template-columns: 1fr; padding: 40px 32px; gap: 36px; }
  .merger-circle { width: 160px; height: 160px; padding: 26px; }
  .map-grid { grid-template-columns: 1fr; }
  .mega-grid { grid-template-columns: repeat(3, 1fr); }
  .mega-thumb img { height: 90px; }
  .course-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; padding: 72px 24px 96px; }
  .hero-visual { max-width: 560px; }
  .course-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 44px 32px; }
}

@media (max-width: 760px) {
  .topbar { display: none; }
  .nav-toggle { display: block; }
  /* backdrop-filter would create a containing block and clip the fixed nav panel */
  .site-header { backdrop-filter: none; background: #fff; }
  /* Hintergrund nicht scrollbar, solange das Menü offen ist */
  body.nav-open { overflow: hidden; height: 100vh; }

  .main-nav {
    position: fixed;
    inset: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px 22px calc(36px + env(safe-area-inset-bottom));
    padding-top: calc(14px + env(safe-area-inset-top));
    transform: translateX(105%);
    transition: transform .3s ease;
    z-index: 105; /* über dem Header: eigener Kopf mit Logo + X */
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav-open .main-nav { transform: none; }

  /* Menü-Kopf: Logo links, X rechts – ganz oben im Panel */
  .nav-mobile-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0 18px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 14px;
  }
  .nav-mobile-head img { height: 44px; width: auto; }
  .nav-close {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 0;
    background: #eef3f7;
    color: var(--navy);
    cursor: pointer;
    flex: none;
  }
  .nav-close:hover { background: #e2eaf0; }
  .main-nav > a, .nav-item > a {
    padding: 16px 18px;
    border-radius: 14px;
    font-size: 1.18rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .nav-item { display: contents; }
  .nav-item > a .caret { transform: rotate(-90deg); }

  /* Ebene 2: Weiterbildung als eigenes Fullscreen-Panel */
  .mega {
    position: fixed;
    inset: 0;
    z-index: 106; /* über Ebene 1 */
    background: #fff;
    opacity: 1;
    visibility: visible;
    transform: translateX(105%);
    transition: transform .3s ease;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    box-shadow: none;
    padding: 14px 2px calc(36px + env(safe-area-inset-bottom));
    padding-top: calc(14px + env(safe-area-inset-top));
  }
  body.submenu-open .mega { transform: none; }
  .mega-mobile-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 16px;
  }
  .mega-mobile-head .mega-mobile-title { flex: 1; }
  .mega-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: #eef3f7;
    color: var(--navy);
    font: inherit;
    font-weight: 800;
    font-size: .95rem;
    padding: 11px 20px;
    border-radius: 999px;
    cursor: pointer;
  }
  .mega-mobile-title { font-weight: 800; font-size: 1.25rem; color: var(--navy); }
  /* Kompakte Liste ohne Bilder: alle Bereiche auf einen Blick */
  .mega-grid { grid-template-columns: 1fr; gap: 10px; padding: 0 0 8px; }
  .mega-card { padding: 14px 16px; border: 1px solid var(--line); box-shadow: var(--shadow); }
  .mega-thumb { display: none; }
  .mega-card .mega-more { display: none; }
  .mega-card strong { font-size: 1.08rem; }
  .mega-card small { font-size: .84rem; }
  .mini-new.inline {
    display: inline-block;
    position: static;
    background: var(--amber);
    color: var(--navy-deep);
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 2px 9px;
    border-radius: 999px;
    margin-left: 8px;
    vertical-align: 2px;
    box-shadow: none;
  }
  .mega-foot { padding: 18px 4px 0; }

  /* CTA-Block unten im Mobilmenü */
  .nav-mobile-cta {
    display: grid;
    gap: 14px;
    margin-top: auto;
    padding-top: 28px;
    border-top: 1px solid var(--line);
  }
  .nav-mobile-cta .btn { justify-content: center; }
  .nav-mobile-tel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
    color: var(--navy);
    font-size: 1.05rem;
  }
  .nav-toggle { position: relative; z-index: 100; }
  .header-cta .btn { display: none; }
  .usp-grid, .area-grid, .course-grid, .post-grid, .steps, .photo-strip { grid-template-columns: 1fr; }
  .area-grid .area-card, .area-grid .area-card-wide { grid-column: 1 / -1; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 64px 0; }
  .hero-card { left: 12px; }
  .hero-visual .photo img { height: 320px; }
}

/* ---------- Sprachumschalter ---------- */
.lang-switch { display: inline-flex; gap: 2px; margin-left: 14px; }
.lang-switch a {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: #cfe0ec;
}
.lang-switch a:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.lang-switch a.active { background: rgba(255, 255, 255, .16); color: #fff; }
.nav-mobile-tools { display: flex; align-items: center; gap: 12px; }
.nav-mobile-tools .lang-switch { margin-left: 0; }
.nav-mobile-tools .lang-switch a { color: var(--navy); background: #eef3f7; }
.nav-mobile-tools .lang-switch a.active { background: var(--navy); color: #fff; }

/* ---------- RTL (Arabisch) ---------- */
[dir="rtl"] { text-align: right; }
[dir="rtl"] .breadcrumb, [dir="rtl"] .hero-actions, [dir="rtl"] .hero-badges,
[dir="rtl"] .chips, [dir="rtl"] .meta { justify-content: flex-start; }
[dir="rtl"] .mega-card .mega-more { flex-direction: row; }
[dir="rtl"] .float-cta { right: auto; left: 22px; }
/* Mobile Slide-Panels kommen in RTL von links – nur unterhalb 760px! */
@media (max-width: 760px) {
  [dir="rtl"] .main-nav, [dir="rtl"] .mega { transform: translateX(-105%); }
  [dir="rtl"] .nav-open .main-nav { transform: none; }
  [dir="rtl"] body.submenu-open .mega { transform: none; }
}
[dir="rtl"] .arrow-link svg, [dir="rtl"] .card-link svg, [dir="rtl"] .btn svg,
[dir="rtl"] .all-link svg { transform: scaleX(-1); }
[dir="rtl"] body { font-family: var(--font), "Segoe UI", "Tahoma", "Arial", sans-serif; }

/* ---------- Sprachmenü im Header (Globus-Dropdown) ---------- */
.lang-menu { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: .88rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.lang-btn:hover { background: #eef3f7; border-color: #c8d6e0; }
.lang-drop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lift);
  padding: 8px;
  display: none;
  z-index: 120;
}
.lang-menu.open .lang-drop { display: block; }
.lang-drop a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--navy);
  font-weight: 600;
}
.lang-drop a:hover { background: #eef3f7; color: var(--navy); }
.lang-drop a.active { background: var(--navy); color: #fff; }
.lang-drop a strong {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  background: #eef3f7;
  color: var(--navy);
  border-radius: 6px;
  padding: 2px 7px;
  min-width: 30px;
  text-align: center;
}
.lang-drop a.active strong { background: rgba(255, 255, 255, .18); color: #fff; }
[dir="rtl"] .lang-drop { right: auto; left: 0; }

@media (max-width: 760px) {
  /* Auf Mobile bleibt der Sprachwähler im Header sichtbar */
  .lang-btn { padding: 8px 11px; font-size: .82rem; }
  .lang-drop { right: -54px; }
  [dir="rtl"] .lang-drop { right: auto; left: -54px; }
}
