/* Theme: PARDUS Colors + Arial */
:root {
  --color-primary: #e4231f;   /* Rot (hell) */
  --color-primary-dark: #cc0000; /* Rot (dunkler) */
  --color-bg-dark: #19272a;   /* sehr dunkel */
  --color-bg: #223035;        /* dunkelgrau/blau */
  --color-muted: #656565;     /* grau */
  --color-surface: #ffffff;   /* weiß */
  --color-surface-muted: #efefef; /* hellgrau */
  --color-black: #000000;

  --hero-overlay: 0.45;
  --comp-overlay: 0.45;
}

html, body {
  font-family: Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, sans-serif;
  background: var(--color-surface-muted) !important;
  color: var(--color-bg) !important;
  scroll-behavior: smooth;
}

/* Buttons */
.btn-primary {
  background: var(--color-primary);
  color: var(--color-surface);
  border-radius: 0.375rem; /* ~rounded */
  padding: 0.5rem 1rem; /* ~py-2 px-4 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary:hover { background: var(--color-primary-dark); }

/* Sticky Navbar mit Scroll-Effekt */
.navbar-sticky {
  position: sticky;
  top: 0;
  z-index: 1100;
  transition: padding 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.navbar-sticky.scrolled {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.navbar-sticky #navbar-logo {
  transition: height 0.3s ease;
}
.navbar-sticky.scrolled #navbar-logo {
  height: 32px;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  z-index: 1200;
  transition: width 0.1s ease-out;
  box-shadow: 0 2px 4px rgba(228, 35, 31, 0.3);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: var(--color-surface);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1050;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.back-to-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@media (max-width: 768px) {
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }
}

.btn-secondary {
  background: var(--color-bg);
  color: var(--color-surface);
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-secondary:hover { background: var(--color-bg-dark); }
.btn-danger {
  background: var(--color-primary-dark);
  color: var(--color-surface);
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-danger:hover { filter: brightness(0.9); }

/* Links */
.link { color: var(--color-primary); text-decoration: underline; }
.link:hover { color: var(--color-primary-dark); }

/* Cards / Panels */
.card { background: var(--color-surface); border-radius: 0.5rem; box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.1); }
.card-border { border: 1px solid #e5e7eb; border-radius: 0.5rem; background: var(--color-surface); }
.card-accent { border-top: 3px solid var(--color-primary); }

/* Kartenüberschrift mit Icon */
.card-title { display: flex; flex-direction: row; align-items: flex-start; gap: 0.5rem; }
.card-title img { display: inline-block; justify-content: center}
.card-title h1, .card-title h2, .card-title h3 { margin: 0; line-height: 1.2; }
.icon-h1 { width: 28px; height: 28px; }
.icon-h2 { width: 24px; height: 24px; }
.icon-h3 { width: 20px; height: 20px; }
.card-title + * { margin-top: 1rem; }

/* Feintuning Abstände bei Titeln mit Untertitel */
.card-title + h2 { margin-top: 0.25rem; }
.card-title + h2 + * { margin-top: 1rem; }

/* Forms */
.input, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], textarea, select {
  border: 1px solid #d1d5db; /* gray-300 */
  border-radius: 0.375rem;
  padding: 0.5rem;
}

/* Lead-Sektion: Inputs auf dunklem Hintergrund invertieren */
.lead-section .lead-input {
  background: rgba(255,255,255,0.06);
  color: #ffffff;
  border-color: rgba(255,255,255,0.3);
}
.lead-section .lead-input::placeholder { color: rgba(255,255,255,0.85); }

/* Admin Sidebar */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--color-bg-dark); color: var(--color-surface); position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-sidebar a { color: #f7fafc; display: block; padding: 0.5rem 0.75rem; border-radius: 0.375rem; }
.admin-sidebar a:hover { background: rgba(255,255,255,0.08); }
/* Aktiver Link wie Hover hervorheben */
.admin-sidebar a.active { background: rgba(255,255,255,0.08); }
.admin-sidebar .sub { color: #e5e7eb; }
.admin-header { background: var(--color-surface); border-bottom: 1px solid #e5e7eb; }

/* Sidebar groups (details/summary) */
.admin-sidebar details.nav-group { color: #e5e7eb; }
.admin-sidebar summary.group-title {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.375rem 0.5rem; /* ähnlich wie Links, etwas dezenter */
  border-radius: 0.375rem;
  color: rgba(163, 162, 162, 0.73); /* dezenter als Links */
}
.admin-sidebar summary.group-title:hover { background: rgba(255,255,255,0.08); }
.admin-sidebar summary::-webkit-details-marker { display: none; }
.admin-sidebar .caret { transition: transform 0.15s ease; opacity: 0.9; }
.admin-sidebar details[open] .caret { transform: rotate(90deg); }

/* Unterpunkte: verwenden die bestehenden Link-Styles der Sidebar */
.admin-sidebar details .pl-2 a { color: #f7fafc; }
.admin-sidebar details .pl-2 a:hover { background: rgba(255,255,255,0.08); }

/* Utility overrides for Tailwind defaults in our theme */
.text-muted { color: var(--color-muted); }
.bg-surface { background: var(--color-surface); }
.bg-surface-muted { background: var(--color-surface-muted); }
.text-on-dark { color: var(--color-surface); }

/* Minimal tweaks if Tailwind not loaded */
button { cursor: pointer; }

/* Corporate Akzente */
.heading-primary { color: var(--color-primary); }

/* Custom container für öffentliche Seiten & Previews (max 1200px) */
.lp-container { max-width: 1200px; margin-left: auto; margin-right: auto; width: 100%; }

/* Override: Hero / Kompetenz / allgemein auf 1200px statt 72rem */
.hero-cover .hero-content, .hero-full .hero-content, .comp-cover .comp-content { max-width: 1200px; }

/* Breakpoint-Anpassung: vorher 1080px => jetzt 900px */
/* Split Layout */
.split-1080 { display: block; }
.split-1080 .text-block, .split-1080 .img-block { width: 100%; }
@media (min-width: 900px) { /* angepasster Breakpoint */
  .split-1080 { display: flex; align-items: stretch; gap: 1rem; }
  .split-1080 .text-block, .split-1080 .img-block { width: 50%; }
  .split-1080 .img-block { display: flex; }
  .split-1080 .img-block > .overflow-hidden { height: 100%; flex: 1; }
  .split-1080-text-left .text-block { order: 1; }
  .split-1080-text-left .img-block { order: 2; }
  .split-1080-image-left .img-block { order: 1; }
  .split-1080-image-left .text-block { order: 2; }
}
.only-1080 { display: none; }
@media (min-width: 900px) { .only-1080 { display: block; } }

/* Media Cover Card (Funding / Specials) */
.media-cover-card { position: relative; overflow: hidden; }
.media-cover-card .inner { position: relative; min-height: 0; height: auto; }
.media-cover-card .media { position: static; overflow: visible; }
.media-cover-card .media img { width: 100%; height: auto; object-fit: contain; object-position: center center; display: block; }
@media (min-width: 900px) { /* vorher 1080 */
  .media-cover-card .inner { min-height: 320px; height: 100%; }
  .media-cover-card .media { position: absolute; inset: 0; overflow: hidden; }
  .media-cover-card .media img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
}

/* Kompetenz Cover Anpassung */
.comp-cover .comp-inner { position: relative; display: flex; align-items: center; min-height: 360px; padding: 2rem 1rem; }
@media (min-width: 768px) { .comp-cover .comp-inner { min-height: 420px; padding: 2.5rem 1.25rem; } }
@media (min-width: 900px) { /* vorher 1080 */
  .comp-cover .comp-inner { display: grid; grid-template-columns: 3fr 2fr; align-items: center; gap: 1.25rem; }
  .comp-cover .comp-content { grid-column: 1 / 2; }
}
/* Specials Pair Anpassung */
.special-pair .special-media-wrapper { position: relative; width:100%; height:auto; }
.special-pair .special-media-wrapper img { width:100%; height:auto; object-fit:cover; object-position:left center; display:block; }
@media (min-width:900px){ /* vorher 1080 */
  .special-pair .special-media-wrapper { height:100%; }
  .special-pair .special-media-wrapper img { height:100%; }
}

/* Funding Steps Card Anpassung */
@media (min-width: 900px) { /* vorher 1080 */
  .funding-steps-card .cover-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 1.25rem; }
  .funding-steps-card .steps-col { grid-column: 1 / 2; }
}

/* Paired Cards (Funding/Specials/About) */
.paired-cards-1080 { display: grid; gap: 1rem; align-items: stretch; }
@media (min-width: 900px) { /* vorher 1080 */
  .paired-cards-1080 { grid-template-columns: 1fr 1fr; }
}

/* Bereits vorhandener Code folgt unverändert */
/* Wiederhergestellte ursprüngliche Styles (angepasst) */

/* Admin: Kartenübersicht grid mit Mindestbreite pro Karte */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 1rem; }

.actions-row { display: flex; gap: 0.5rem; justify-content: flex-end; flex-wrap: nowrap; }
.actions-row > a, .actions-row > form { flex: 1 1 0; min-width: 0; }
.actions-row > a { width: 100%; }
.actions-row > form > button { width: 100%; }

.actions-grid { display: grid; gap: 0.5rem; }
.actions-grid .row-1 { display: grid; grid-template-columns: 1fr 2fr; gap: 0.5rem; }
.actions-grid .row-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 0.5rem; }
@media (max-width: 480px) { .actions-grid .row-1, .actions-grid .row-2 { grid-template-columns: 1fr 1fr; } }

/* Kursinhalte Tiles */
.content-tiles { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 0.75rem; }
@media (min-width: 640px) { .content-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .content-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.content-tile { display: flex; align-items: center; gap: 0.75rem; background: var(--color-surface); border: 1px solid #e5e7eb; border-radius: 0.5rem; padding: 0.75rem 0.9rem; box-shadow: 0 1px 2px rgba(0,0,0,0.04); transition: box-shadow .15s ease, transform .15s ease; }
.content-tile:hover { box-shadow: 0 4px 10px rgba(0,0,0,0.08); transform: translateY(-1px); }
.num-badge { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 9999px; background: var(--color-primary); color: var(--color-surface); display: inline-flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; }
.num-badge-dark { background: var(--color-black); color: var(--color-surface); }
.content-text { min-width: 0; }

.grid-certs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding-left: 2.25rem; min-height: 2rem; display: flex; align-items: center; border-radius: 0.5rem; }
.check-list li::before { content: '✔'; position: absolute; left: 0.5rem; top: 50%; transform: translateY(-50%); color: #16a34a; font-weight: 800; font-size: 1.6rem; line-height: 1.1; }

.card-head { padding: 0.5rem 0.75rem; font-weight: 600; border-bottom: 1px solid #e5e7eb; border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; }
.status-closed { border: 2px solid var(--color-primary-dark); }
.status-closed .card-head { background: var(--color-primary-dark); color: var(--color-surface); border-bottom: 0; }
.status-success { border: 2px solid #16a34a; }
.status-success .card-head { background: #16a34a; color: var(--color-surface); border-bottom: 0; }

.badge { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.1rem 0.5rem; border-radius: 9999px; font-size: 0.78rem; font-weight: 600; }
.badge-gray { background: #e5e7eb; color: #111827; }
.badge-blue { background: #dbeafe; color: #1e3a8a; }
.badge-green { background: #dcfce7; color: #14532d; }
.badge-red { background: #fee2e2; color: #7f1d1d; }

.thumb-frame { width: 100%; overflow: hidden; border: 1px solid #e5e7eb; border-radius: 0.5rem; background: #fff; position: relative; }
.thumb-frame iframe { position: absolute; inset: 0; border: 0; pointer-events: none; }
.thumb-frame img { display: block; width: 100%; height: auto; }

.chart-container { position: relative; width: 100%; height: 260px; max-width: 100%; overflow: hidden; }
@media (min-width: 768px) { .chart-container { height: 300px; } }
@media (min-width: 1024px) { .chart-container { height: 360px; } }
.chart-container > canvas { display: block; width: 100% !important; height: 100% !important; }

.table-fixed { table-layout: fixed; width: 100%; }
.break-anywhere { overflow-wrap: anywhere; word-break: break-word; }

.arrow-badge { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 9999px; background: var(--color-bg-dark); color: var(--color-surface); display: inline-flex; align-items: center; justify-content: center; font-size: 0.95rem; font-weight: 700; }

.detail-grid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 0.75rem; }
@media (min-width: 640px) { .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .detail-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.detail-card { display: flex; align-items: stretch; gap: 0; background: var(--color-surface); border: 1px solid #e5e7eb; border-radius: 0.5rem; overflow: hidden; min-height: 64px; box-shadow: 0 1px 2px rgba(0,0,0,0.04); transition: box-shadow .15s ease, transform .15s ease; }
.detail-card:hover { box-shadow: 0 4px 10px rgba(0,0,0,0.08); transform: translateY(-1px); }
.detail-icon { flex: 0 0 64px; background: var(--color-primary); display: flex; align-items: center; justify-content: center; }
.detail-icon img { width:48px; height: 48px; display: block; }
.detail-body { flex: 1 1 auto; padding: 0.85rem; display: flex; flex-direction: column; justify-content: center; }
.detail-body .label { font-size: 0.75rem; color: var(--color-muted); margin-bottom: 0.1rem; }
.detail-body .value { font-size: 1rem; color: var(--color-bg); font-weight: 600; }

.grid-cards-320 { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.grid-cards-280 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.75rem; }

.selectable { border: 1px solid #e5e7eb; border-radius: 0.5rem; background: var(--color-surface); box-shadow: 0 1px 2px rgba(0,0,0,0.05); transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease, background-color .15s ease; }
.selectable:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); transform: translateY(-1px); }
.selectable:has(input:checked) { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(228,35,31,0.15); }
.selectable input:focus-visible { outline: none; }
.selectable input:focus-visible + * { outline: none; }
.opt-card { border: 1px dashed #e5e7eb; border-radius: 0.5rem; background: #fafafa; }
.opt-card:hover { border-color: #d1d5db; background: #f9fafb; }
.opt-card:has(input:checked) { border-color: var(--color-primary); background: #fff; box-shadow: 0 0 0 3px rgba(228,35,31,0.1); }
.card .selectable { background: #fcfcfc; }
.card .selectable:hover { background: #ffffff; }

.carousel { overflow: hidden; }
.carousel-track { display: flex; overflow: hidden; scroll-behavior: smooth; scroll-snap-type: x mandatory; }
.carousel-slide { flex: 0 0 100%; scroll-snap-align: start; padding-right: 0.25rem; box-sizing: border-box; }
.carousel-dots { display: flex; justify-content: center; align-items: center; gap: 6px; }
.carousel-dots .dot { height: 8px; width: 8px; border-radius: 9999px; background: #cbd5e1; border: none; padding: 0; cursor: pointer; }
.carousel-dots .dot.active { background: var(--color-primary); }

.avatar-circle { width: 56px; height: 56px; aspect-ratio: 1 / 1; border-radius: 9999px; object-fit: cover; display: inline-block; }

.about-img-block { align-items: flex-start; }
.about-media { border-radius: 0.5rem; overflow: hidden; }
.about-media img, .about-media video { display: block; width: 100%; height: auto; }

.inner-card { background: var(--color-surface); border: 1px solid #e5e7eb; border-radius: 0.5rem; padding: 0.75rem 0.9rem; }

/* Hero Cover & Full (re-konstruierte, angepasste Version) */
.hero-cover { position: relative; background: var(--color-black); color: var(--color-surface); }
.hero-cover .hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-cover .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-object-position, center center); display: block; }
.hero-cover .hero-media .overlay { position: absolute; inset: 0; background: rgba(0,0,0,var(--hero-overlay, 0.45)); }
.hero-cover .hero-inner { position: relative; display: flex; align-items: center; min-height: 100dvh; padding: 3rem 1rem; }
@media (min-width: 768px) { .hero-cover .hero-inner { padding: 4rem 1.25rem; } }
.hero-cover .hero-content { width: 100%; max-width: 1200px; margin: 0 auto; text-align: left; }

/* Scroll-Indikator für Hero-Bereiche */
.hero-cover::after, .hero-full::after {
  content: '';
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 50%;
  animation: bounce 2s infinite;
  z-index: 10;
}
.hero-cover::before, .hero-full::before {
  content: '↓';
  position: absolute;
  bottom: 4.4rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 1.2rem;
  font-weight: bold;
  z-index: 11;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

.hero-title { font-weight: 800; line-height: 1.1; font-size: clamp(2rem, 4vw + 1rem, 3.5rem); text-wrap: balance; }
.hero-subtitle { margin-top: 0.5rem; font-size: clamp(1rem, 1vw + 0.9rem, 1.25rem); color: rgba(255,255,255,0.9); max-width: 60ch; }
@media (max-width: 767px) { .hero-subtitle { max-width: 66%; } }

.hero-full { position: relative; background: var(--color-black); color: var(--color-surface); }
.hero-full .hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-full .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-object-position, center center); display: block; }
.hero-full .hero-media .overlay { position: absolute; inset: 0; background: rgba(0,0,0,var(--hero-overlay, 0.35)); }
.hero-full .hero-inner { position: relative; display: flex; align-items: center; min-height: 100dvh; padding: 3rem 1rem; }
@media (min-width: 768px) { .hero-full .hero-inner { padding: 4rem 1.25rem; } }
.hero-full .hero-content { width: 100%; max-width: 1200px; margin: 0 auto; text-align: left; }
.hero-full .hero-box { background: rgba(255,255,255,0.82); color: var(--color-bg); display: inline-block; padding: 0.75rem 1rem; border-radius: 0.5rem; box-shadow: 0 6px 22px rgba(0,0,0,0.16); max-width: 44rem; overflow-wrap: anywhere; word-break: break-word; width: 50vw; }
@media (min-width: 1024px) { .hero-full .hero-box { width: 37.5vw; } }
.hero-full .hero-box .hero-title { font-weight: 800; line-height: 1.08; font-size: clamp(1.4rem, 2.8vw + 0.6rem, 2.4rem); max-width: fit-content; }
.hero-full .hero-box .hero-subtitle { font-size: clamp(0.9rem, 1.2vw + 0.6rem, 1.05rem); color: var(--color-bg); opacity: 0.75; max-width: fit-content; }

/* Kompetenz: fehlende Sub-Styles (ohne bereits ersetzte grid-breakpoints) */
.comp-cover { position: relative; background: var(--color-black); color: var(--color-surface); overflow: hidden; }
.comp-cover .comp-media { position: absolute; inset: 0; overflow: hidden; }
.comp-cover .comp-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.comp-cover .comp-media .overlay { position: absolute; inset: 0; background: none; }
.comp-cover .comp-textbox { background: rgba(255,255,255,0.96); color: var(--color-bg); border-radius: 0.5rem; padding: 1rem 1.125rem; box-shadow: 0 8px 26px rgba(0,0,0,0.22); display: inline-block; max-width: 48rem; }
.comp-cover .comp-textbox .card-title { align-items: flex-start; gap: 0.45rem; }
.comp-cover .comp-textbox .card-title h3 { line-height: 1.25; font-size: clamp(1.1rem, 1.3vw + 0.7rem, 1.6rem); font-weight: 700; }
.comp-cover .comp-textbox .card-title + * { margin-top: 0.5rem; }
@media (max-width: 767px) { .comp-cover .comp-inner { padding-top: 11rem; align-items: flex-start; } .comp-cover .comp-textbox { max-width: 92%; box-shadow: 0 6px 20px rgba(0,0,0,0.2); } }

/* Specials Pair ergänzende Styles */
.special-pair .special-text-card { position: relative; }
.special-pair .special-media-card { position: relative; }
.special-text-card .md_allow_html p { margin:0.5rem 0; }
.special-text-card .md_allow_html h1, .special-text-card .md_allow_html h2, .special-text-card .md_allow_html h3 { margin-top:1rem; font-weight:600; }

/* Funding Steps: zusätzliche Styles (ohne Breakpoint-Grid, bereits oben angepasst) */
.funding-steps-card { position: relative; overflow: hidden; color: var(--color-surface); }
.funding-steps-card .cover-media { position: absolute; inset: 0; overflow: hidden; }
.funding-steps-card .cover-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.funding-steps-card .cover-media .overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.35); }
.funding-steps-card .cover-inner { position: relative; padding: 1rem; min-height: 320px; }
@media (min-width: 768px) { .funding-steps-card .cover-inner { padding: 1.25rem; } }
@media (min-width: 900px) { .funding-steps-card .cover-inner { padding: 1.5rem; } }
.funding-steps-card .inner-card { background: rgba(255,255,255,0.92); border-color: rgba(255,255,255,0.9); color: var(--color-bg); box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.funding-steps-card .card-title { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.95); padding: 0.25rem 0.5rem; border-radius: 0.4rem; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.funding-steps-card .card-title h3 { background: transparent; padding:0; box-shadow:none; }

/* Ende wiederhergestellter Styles */

/* Disclaimer Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1rem;
  overflow-y: auto;
}

.modal-overlay.modal-active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--color-surface);
  border-radius: 0.75rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.modal-active .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
  margin: 0;
  color: var(--color-bg);
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--color-muted);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
  background: var(--color-surface-muted);
  color: var(--color-bg);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  color: var(--color-bg);
  line-height: 1.6;
}

.modal-body p {
  margin: 0.75rem 0;
}

.modal-body h1, .modal-body h2, .modal-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.modal-body h1:first-child, .modal-body h2:first-child, .modal-body h3:first-child {
  margin-top: 0;
}

.modal-body ul, .modal-body ol {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
}

.modal-body li {
  margin: 0.5rem 0;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 1.5rem;
  border-top: 1px solid #e5e7eb;
}

@media (max-width: 640px) {
  .modal-content {
    max-height: 95vh;
    margin: 0.5rem;
  }

  .modal-header, .modal-body, .modal-footer {
    padding: 1rem;
  }

  .modal-header h2 {
    font-size: 1.25rem;
  }
}

