/* ==========================================================================
   ICMC Tauchsportverband – Editorial Design System (v23 Multipage)
   Farbwelt: Naturweiß #FAF9F6 | Weiß #FFFFFF | Steingrau #F4F3EE
             Anthrazit #1F2429 | Schiefer #525A62 | Haarlinie #D6D3CB
             ICMC-Rot #B52328 (sparsam als Akzent)
   Typografie: Georgia (Headings) + System-Sans (Fließtext & Tabellen)
   ========================================================================== */

:root {
  --bg: #FAF9F6;
  --surface: #FFFFFF;
  --stone: #F4F3EE;
  --stone-deep: #EAE7DF;
  --ink: #1F2429;
  --slate: #525A62;
  --muted: #6E767E;
  --rule: #D6D3CB;
  --rule-light: #E6E3DC;
  --red: #B52328;
  --red-dark: #8F1B1F;
  --red-tint: #FBF2F2;
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1180px;
  --header-h: 78px;
  --radius: 4px;
  --shadow-sm: 0 1px 3px rgba(31, 36, 41, 0.05);
  --shadow-md: 0 8px 24px rgba(31, 36, 41, 0.08);
  --shadow-lg: 0 18px 44px rgba(31, 36, 41, 0.14);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--red);
  text-decoration: none;
  transition: color 0.18s ease;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.25;
  margin-top: 0;
}

h1 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.55rem, 2.4vw, 2.1rem); margin-bottom: 1rem; }
h3 { font-size: 1.28rem; margin-bottom: 0.6rem; }
h4 { font-size: 1.05rem; margin-bottom: 0.45rem; }

p {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--slate);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout & Containers ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section-tight {
  padding: 3rem 0;
}

.section-stone {
  background-color: var(--stone);
  border-top: 1px solid var(--rule-light);
  border-bottom: 1px solid var(--rule-light);
}

.section-white {
  background-color: var(--surface);
  border-top: 1px solid var(--rule-light);
  border-bottom: 1px solid var(--rule-light);
}

.kicker {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.65rem;
}

.section-header {
  max-width: 760px;
  margin-bottom: 2.5rem;
}

.section-header p {
  font-size: 1.04rem;
  color: var(--slate);
}

.divider {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.35rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  line-height: 1.2;
}

.btn-primary {
  background-color: var(--red);
  color: #FFFFFF;
  border-color: var(--red);
}

.btn-primary:hover {
  background-color: var(--red-dark);
  border-color: var(--red-dark);
  color: #FFFFFF;
}

.btn-dark {
  background-color: var(--ink);
  color: #FFFFFF;
  border-color: var(--ink);
}

.btn-dark:hover {
  background-color: #323940;
  color: #FFFFFF;
}

.btn-outline {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--rule);
}

.btn-outline:hover {
  border-color: var(--ink);
  background-color: var(--stone);
  color: var(--ink);
}

.btn-outline-light {
  background-color: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.btn-sm {
  padding: 0.48rem 0.95rem;
  font-size: 0.84rem;
}

/* ---------- Fixed Editorial Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background-color: var(--surface);
  border-bottom: 1px solid var(--rule);
  z-index: 1000;
}

.header-inner {
  max-width: 1320px;
  height: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-link:hover {
  color: var(--ink);
}

.brand-logo-img {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.brand-fallback {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-wordmark strong {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  font-weight: 700;
}

.brand-wordmark span {
  font-family: var(--font-sans);
  font-size: 0.67rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--slate);
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.55rem 0.68rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  border-radius: var(--radius);
  cursor: pointer;
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  transition: color 0.16s ease, background-color 0.16s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--red);
  background-color: var(--stone);
}

.nav-caret {
  width: 11px;
  height: 11px;
  transition: transform 0.18s ease;
  opacity: 0.7;
}

.nav-item:hover > .nav-link .nav-caret,
.nav-item.open > .nav-link .nav-caret {
  transform: rotate(180deg);
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.45rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 1100;
}

.nav-item:hover > .dropdown-panel,
.nav-item:focus-within > .dropdown-panel,
.nav-item.open > .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.dropdown-link {
  display: block;
  padding: 0.58rem 1.1rem;
  font-size: 0.87rem;
  color: var(--ink);
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-link:hover,
.dropdown-link.active {
  background-color: var(--stone);
  color: var(--red);
}

.dropdown-divider {
  height: 1px;
  background-color: var(--rule-light);
  margin: 0.35rem 0;
}

/* Header Actions (Crossover CTA + Language Dropdown) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.9rem;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.nav-cta:hover,
.nav-cta.active {
  background-color: var(--red);
  color: #FFFFFF;
}

/* Language Dropdown */
.lang-dropdown {
  position: relative;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.46rem 0.72rem;
  font-family: var(--font-sans);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ink);
  background-color: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.lang-trigger:hover {
  border-color: var(--ink);
  background-color: var(--stone);
}

.lang-trigger svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.lang-trigger .lang-caret {
  width: 11px;
  height: 11px;
  transition: transform 0.18s ease;
}

.lang-dropdown.open .lang-trigger .lang-caret {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 168px;
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.35rem 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  z-index: 1200;
}

.lang-dropdown.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.95rem;
  background: transparent;
  border: 0;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.lang-option:hover {
  background-color: var(--stone);
  color: var(--red);
}

.lang-option.active {
  background-color: var(--red-tint);
  color: var(--red);
  font-weight: 600;
}

.lang-option .lang-code {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
}

.lang-option.active .lang-code {
  color: var(--red);
}

/* Mobile Menu Toggle & Drawer */
.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.48rem 0.78rem;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--surface);
  overflow-y: auto;
  padding: 1.25rem 1.5rem 2.5rem;
  border-top: 1px solid var(--rule);
  z-index: 990;
}

.mobile-drawer.open {
  display: block;
}

.mobile-lang-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--rule-light);
}

.mobile-lang-row label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
}

.mobile-lang-select {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-list > li {
  border-bottom: 1px solid var(--rule-light);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.85rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 0;
  text-align: left;
  font-family: var(--font-sans);
  cursor: pointer;
}

.mobile-sublist {
  display: none;
  list-style: none;
  margin: 0 0 0.75rem 0;
  padding: 0 0 0 1rem;
  border-left: 2px solid var(--rule);
}

.mobile-sublist.open {
  display: block;
}

.mobile-sublist a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.92rem;
  color: var(--slate);
}

.mobile-sublist a:hover,
.mobile-sublist a.active {
  color: var(--red);
}

/* ---------- Hero Banners ---------- */
.hero-home {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  color: #FFFFFF;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 26, 30, 0.58) 0%, rgba(22, 26, 30, 0.72) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 4.5rem 0;
}

.hero-home .kicker {
  color: #E7E3DA;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 0.35rem;
  margin-bottom: 1rem;
}

.hero-home h1 {
  color: #FFFFFF;
  margin-bottom: 1.1rem;
}

.hero-home p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.12rem;
  max-width: 680px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Subpage Editorial Hero */
.page-hero {
  background-color: var(--stone);
  border-bottom: 1px solid var(--rule);
  padding: 3.4rem 0 3rem;
}

.page-hero-inner {
  max-width: 820px;
}

.page-hero p {
  font-size: 1.08rem;
  color: var(--slate);
  margin-bottom: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--slate);
}

.breadcrumb a:hover {
  color: var(--red);
}

/* ---------- Editorial Trust / Facts Strip ---------- */
.facts-bar {
  background-color: var(--surface);
  border-bottom: 1px solid var(--rule);
}

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

.fact-cell {
  padding: 1.35rem 1.25rem;
  border-right: 1px solid var(--rule-light);
}

.fact-cell:last-child {
  border-right: none;
}

.fact-cell strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 0.2rem;
}

.fact-cell span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- Grids & Editorial Cards ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.card {
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  border-color: #B8B3A7;
  box-shadow: var(--shadow-sm);
}

.card-accent {
  border-left: 3px solid var(--red);
}

.card-meta {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.89rem;
  font-weight: 600;
  color: var(--red);
}

.card-link:hover {
  color: var(--red-dark);
}

/* Course Cards */
.course-card {
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.course-card:hover {
  border-color: #B2ADA0;
  box-shadow: var(--shadow-md);
}

.course-thumb {
  position: relative;
  height: 190px;
  background-color: var(--ink);
  overflow: hidden;
  border-bottom: 1px solid var(--rule-light);
}

.course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1.25rem;
  background: linear-gradient(145deg, #232930 0%, #323A42 100%);
  color: #FAF9F6;
}

.course-thumb-fallback .fallback-code {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #D6D3CB;
  margin-bottom: 0.35rem;
}

.course-thumb-fallback .fallback-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.25;
  color: #FFFFFF;
}

.course-body {
  padding: 1.45rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 3px;
  background-color: var(--stone);
  color: var(--ink);
  border: 1px solid var(--rule);
  margin-bottom: 0.65rem;
}

.badge-red {
  background-color: var(--red-tint);
  color: var(--red);
  border-color: #E7C3C4;
}

.course-specs {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--rule-light);
  font-size: 0.84rem;
  color: var(--slate);
}

.course-specs li {
  margin-bottom: 0.3rem;
}

.course-footer {
  margin-top: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Filter & Search Bar */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-btn {
  padding: 0.45rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 500;
  background-color: var(--surface);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.16s ease;
}

.filter-btn:hover {
  border-color: var(--ink);
}

.filter-btn.active {
  background-color: var(--ink);
  color: #FFFFFF;
  border-color: var(--ink);
}

.search-input {
  padding: 0.52rem 0.9rem;
  min-width: 260px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--ink);
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

/* ---------- Editorial Callout ---------- */
.editorial-callout {
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
}

.callout-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* ---------- Team / Board Rows ---------- */
.team-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}

.team-row {
  display: grid;
  grid-template-columns: 112px 260px 1fr;
  gap: 1.75rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
}

.team-portrait {
  width: 112px;
  height: 132px;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  background-color: var(--stone);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--ink);
  flex-shrink: 0;
}

.team-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-role {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 0.35rem;
}

/* ---------- Timeline (Historie) ---------- */
.timeline {
  border-left: 2px solid var(--rule);
  padding-left: 2rem;
  margin-left: 0.5rem;
}

.timeline-item {
  position: relative;
  padding-bottom: 2.25rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.42rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--red);
  border: 2px solid var(--bg);
}

.timeline-year {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.3rem;
}

/* ---------- Steps (Crossover 4-Step Process) ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.step-card {
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.65rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--red);
  color: var(--red);
  font-family: var(--font-serif);
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* ---------- Editorial Lists & Tables ---------- */
.editorial-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.editorial-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.65rem;
  color: var(--slate);
}

.editorial-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 6px;
  height: 6px;
  background-color: var(--red);
  border-radius: 50%;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table th {
  text-align: left;
  padding: 0.95rem 1.15rem;
  background-color: var(--stone);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--rule);
}

.data-table td {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--rule-light);
  color: var(--slate);
  vertical-align: top;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table td strong {
  color: var(--ink);
}

/* ---------- 2-Click YouTube (DSGVO) ---------- */
.yt-consent-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #1D2227;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yt-consent-inner {
  max-width: 560px;
  padding: 2rem;
  text-align: center;
  color: #FAF9F6;
}

.yt-consent-inner h3 {
  color: #FFFFFF;
  margin-bottom: 0.6rem;
}

.yt-consent-inner p {
  color: #D6D3CB;
  font-size: 0.92rem;
  margin-bottom: 1.4rem;
}

.yt-consent-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Forms & Login ---------- */
.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.68rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.93rem;
  color: var(--ink);
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: border-color 0.16s ease;
}

.form-control:focus {
  border-color: var(--ink);
  outline: none;
}

textarea.form-control {
  min-height: 118px;
  resize: vertical;
}

.status-msg {
  display: none;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.status-msg.success {
  display: block;
  background-color: #EEF6F0;
  border: 1px solid #B7D8C0;
  color: #1F4E2E;
}

.status-msg.info {
  display: block;
  background-color: var(--stone);
  border: 1px solid var(--rule);
  color: var(--ink);
}

/* ---------- Accordion FAQ ---------- */
.faq-list {
  border-top: 1px solid var(--rule);
}

.faq-item {
  border-bottom: 1px solid var(--rule);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  background: transparent;
  border: 0;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.faq-question svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding-bottom: 1.25rem;
  color: var(--slate);
  font-size: 0.96rem;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ---------- Modal (Course / News Detail) ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(20, 24, 28, 0.62);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 2000;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.45rem 1.75rem;
  border-bottom: 1px solid var(--rule-light);
}

.modal-close {
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  flex-shrink: 0;
}

.modal-close:hover {
  background-color: var(--stone);
}

.modal-body {
  padding: 1.65rem 1.75rem;
}

.modal-media {
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--rule-light);
  background-color: var(--ink);
}

.modal-media img,
.modal-media video {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  display: block;
}

.modal-footer {
  padding: 1.15rem 1.75rem 1.5rem;
  border-top: 1px solid var(--rule-light);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--ink);
  color: #D6D3CB;
  padding: 4rem 0 2rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: #FFFFFF;
  font-weight: 400;
  margin-bottom: 0.65rem;
}

.footer-brand p {
  color: #B7BCC2;
  font-size: 0.89rem;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: #C7C4BC;
  font-size: 0.89rem;
}

.footer-col a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: #9AA0A6;
}

.footer-legal {
  display: flex;
  gap: 1.25rem;
}

.footer-legal a {
  color: #B7BCC2;
}

.footer-legal a:hover {
  color: #FFFFFF;
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .main-nav,
  .header-actions .nav-cta {
    display: none;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fact-cell:nth-child(2) {
    border-right: none;
  }
  .fact-cell:nth-child(1),
  .fact-cell:nth-child(2) {
    border-bottom: 1px solid var(--rule-light);
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .grid-2, .grid-3, .grid-4, .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .team-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .facts-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .fact-cell {
    border-right: none;
    border-bottom: 1px solid var(--rule-light);
  }
  .fact-cell:last-child {
    border-bottom: none;
  }
  .section {
    padding: 3.2rem 0;
  }
  .header-actions .lang-dropdown {
    display: none;
  }
}


/* ---------- CMS Rich-Content Bausteine (Editor & Live-Seite 1:1) ---------- */
.cms-rich-section {
  padding: 2.75rem 0;
}

.cms-rich-content {
  font-family: var(--font-sans);
  color: var(--slate);
  line-height: 1.7;
}

.cms-rich-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  color: var(--ink);
  margin: 1.6rem 0 0.85rem;
}

.cms-rich-content h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--ink);
  margin: 1.35rem 0 0.65rem;
}

.cms-rich-content h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--ink);
  margin: 1.1rem 0 0.5rem;
}

.cms-rich-content > :first-child {
  margin-top: 0;
}

.cms-rich-content p {
  margin: 0 0 1rem;
  color: var(--slate);
}

.cms-rich-content ul,
.cms-rich-content ol {
  margin: 0 0 1.15rem;
  padding-left: 1.4rem;
  color: var(--slate);
}

.cms-rich-content li {
  margin-bottom: 0.4rem;
}

.cms-rich-content hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 1.8rem 0;
}

.icmc-cms-callout {
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 1.35rem 1.55rem;
  margin: 1.4rem 0;
}

.icmc-cms-callout-stone {
  background-color: var(--stone);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.35rem 1.55rem;
  margin: 1.4rem 0;
}

.icmc-cms-callout strong,
.icmc-cms-callout-stone strong {
  color: var(--ink);
}

.icmc-cms-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem;
  margin: 1.4rem 0;
}

.icmc-cms-card {
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
}

.icmc-cms-figure {
  margin: 1.5rem 0;
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.85rem;
}

.icmc-cms-figure img {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 2px;
}

.icmc-cms-figure figcaption {
  margin-top: 0.65rem;
  font-size: 0.84rem;
  color: var(--muted);
  text-align: center;
}

.icmc-cms-video {
  margin: 1.5rem 0;
  background-color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}

.icmc-cms-video video,
.icmc-cms-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

.icmc-cms-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1.4rem 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background-color: var(--surface);
}

.icmc-cms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.icmc-cms-table th {
  text-align: left;
  padding: 0.8rem 1rem;
  background-color: var(--stone);
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--rule);
}

.icmc-cms-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--rule-light);
  color: var(--slate);
}

.icmc-cms-table tr:last-child td {
  border-bottom: 0;
}

.icmc-cms-download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  margin: 1.4rem 0;
  background-color: var(--stone);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

/* Entwurfsmodus-Leiste auf den oeffentlichen Seiten */
.cms-preview-bar {
  background-color: var(--ink);
  color: #FAF9F6;
  font-size: 0.84rem;
  padding: 0.6rem 1.25rem;
  border-bottom: 2px solid var(--red);
}

.cms-preview-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.cms-preview-bar a,
.cms-preview-bar button {
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #FFFFFF;
  cursor: pointer;
  font-family: var(--font-sans);
  text-decoration: none;
}

.cms-preview-bar a:hover,
.cms-preview-bar button:hover {
  background-color: var(--red);
  border-color: var(--red);
}

@media (max-width: 760px) {
  .icmc-cms-grid-2 {
    grid-template-columns: 1fr;
  }
}
