/* ====== Fonts ====== */
@font-face {
  font-family: "SPD_TheSans";
  src: url("assets/SPD_TheSans/SPD_TheSans_TT5_.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "SPD_TheSans";
  src: url("assets/SPD_TheSans/SPD_TheSans_TT5i.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
}

@font-face {
  font-family: "SPD_TheSans";
  src: url("assets/SPD_TheSans/SPD_TheSans_TT7_.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "SPD_TheSans";
  src: url("assets/SPD_TheSans/SPD_TheSans_TT8_.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: "SPD_TheSansVersal";
  src: url("assets/SPD_TheSansVersal/SPD_TheSans_V_TT7_.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

/* ====== Design Tokens ====== */
:root {
  /* --- Colors --- */
  --spd-red: #e3000f;
  --text: #1f2937;
  --text-strong: #111111;
  --text-light: #6b7280;
  --muted: #6b7280;

  --bg: #ffffff;
  --bg-alt: #f3f4f6;

  --border: #e5e7eb;
  --focus: #0ea5e9;
  --success: #047857;
  --error: #b91c1c;

  /* --- Typography (Responsive) --- */
  --fs-h1: clamp(28px, 3.2vw, 40px);
  --fs-h2: clamp(24px, 2.6vw, 32px);
  --fs-h3: 1.25rem;
  --fs-body: 1rem;

  /* --- Layout & Spacing --- */
  --maxw: 1120px;
  --radius: 16px;

  /* --- Shadows --- */
  --shadow-xs: 0 1px 0 rgba(0, 0, 0, 0.02);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --text-gradient: linear-gradient(
    135deg,
    #c02016,
    #c02016,
    #e3000f,
    #ed6a22,
    #ed9d33
  );
  --custom-gradient: linear-gradient(
    135deg,
    #c02016,
    #c02016,
    #e3000f,
    #ed6a22,
    #ed9d33
  );
}

/* ====== Button Designs ====== */
.btn-base {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  font-family: "SPD_TheSans", sans-serif;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Design 6: Instagram Gradient + Icon Animation */
.btn-design-6 {
  background: var(--custom-gradient);
  color: white;
  padding: 8px 12px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(192, 32, 22, 0.3); /* Roter Schatten */
  border: none;
  gap: 12px;
}

/* Icon Styling */
.btn-design-6 svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: white;
  stroke-width: 2;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy Effekt */
}

/* Hover Effekte */
.btn-design-6:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(237, 106, 34, 0.4); /* Schatten wird orange-stichig */
}

.btn-design-6:hover svg {
  transform: rotate(15deg) scale(1.2); /* Icon wackelt und wächst */
}

/* ====== Base ====== */
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg-alt);
  color: var(--text);
  font-family: "SPD_TheSans", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
    sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll {
  overflow: hidden;
}
* {
  box-sizing: border-box;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--spd-red);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}
a:hover {
  text-decoration: none;
}
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  /* Dynamischer Abstand: Mobile weniger (2rem), Desktop mehr (3.5rem) */
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  color: var(--text-strong);
  letter-spacing: -0.025em;
}

section[id],
h2[id] {
  scroll-margin-top: 100px;
}

::selection {
  background: var(--spd-red);
  color: #fff;
}

/* ====== Accessibility ====== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  background: var(--text-strong);
  color: #fff;
  z-index: 9999;
  border-radius: 8px;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* ====== Header ====== */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: 64px;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}
.brand .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: var(--spd-red);
  border-radius: 4px;
  padding: 2px 6px;
  letter-spacing: 0.02em;
}
.brand .name {
  font-size: 18px;
  letter-spacing: 0.2px;
}
nav.primary-nav {
  display: none;
  gap: 20px;
}
nav.primary-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 8px;
  border-radius: 10px;
}
nav.primary-nav a:hover,
nav.primary-nav a:focus-visible {
  background: var(--bg-alt);
}
nav.primary-nav a.active {
  color: var(--spd-red);
  background: var(--bg-alt);
}

.nav-cta {
  display: none;
}
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  border-radius: 12px;
  padding: 7px 7px;
  transition: filter 0.2s ease-in-out, transform 0.2s ease-in-out;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--text-gradient);
  color: #fff;
  text-decoration: none;
}
.btn-primary:hover {
  filter: brightness(0.92);
}
.btn-secondary {
  background: var(--text-strong);
  color: #fff;
}
.btn-link {
  background: transparent;
  color: var(--spd-red);
  padding: 0;
}
.btn:active,
.interactive-card:active {
  transform: scale(0.96) translateY(0);
}
a.btn:active {
  color: #fff;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.menu-toggle[aria-expanded="true"] {
  background: var(--bg-alt);
}

/* ====== Mobile Menu ====== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-menu a {
  display: block;
  padding: 14px 20px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 24px;
  text-align: center;
}
.mobile-menu a:hover {
  background: var(--bg-alt);
}
.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 40px;
  cursor: pointer;
}

/* ====== Sections ====== */
section {
  /* Dynamisches Padding: Mobile 1.5rem (24px) -> Desktop 3rem (48px) */
  padding: clamp(1.5rem, 4vw, 3rem) 0;
}
section.hero {
  padding: 24px 0 24px;
  background: linear-gradient(180deg, #fff 0%, #fff 60%, var(--bg-alt) 100%);
}
.grid {
  display: grid;
  gap: 24px;
}

/* ====== Hero ====== */
#hero-title {
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}
.hero .hgroup h1 {
  font-size: var(--fs-h1);
  line-height: 1.15;
  margin: 8px 0 12px;
}
.hero .hgroup p.subline {
  font-size: clamp(18px, 2.2vw, 20px);
  color: var(--text);
  margin: 0 0 20px;
}
.hero .proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 16px;
}
.hero .actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero .hint {
  font-size: 14px;
  color: var(--muted);
}
.hero .media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
  aspect-ratio: 1 / 1;
  position: relative;
}
.hero .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero .media .portrait-image {
  opacity: 0;
}

/* ====== Cards (General) ====== */
.cards {
  display: grid;
  gap: 16px;
}
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 18px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card h3 {
  margin-top: 0;
  font-size: var(--fs-h3);
}
.card p {
  margin: 8px 0 0;
}

/* ====== Alternative Cards ====== */
.program-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
  gap: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.program-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(227, 0, 15, 0.2);
}

@media (min-width: 768px) {
  .program-card {
    flex-direction: row;
    align-items: start;
  }
}

.program-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: #fff0f0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--spd-red);
}

.program-icon svg {
  width: 32px;
  height: 32px;
}

.program-content {
  flex: 1;
}

.program-content h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-strong);
}

.program-content p {
  margin: 0 0 20px;
  color: var(--text-light);
  line-height: 1.6;
}

.program-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.program-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card-alt {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 30px;
  border-left: 3px solid var(--spd-red);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.card-alt:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card-alt h3 {
  margin-top: 0;
  font-size: 18px;
  font-family: "SPD_TheSansVersal", sans-serif;
  font-weight: 700;
  color: var(--spd-red);
}
.card-alt p {
  margin: 12px 0 0;
  color: var(--text);
  line-height: 1.6;
}

/* ====== About ====== */
.about {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about .profile {
  display: grid;
  gap: 20px;
}
.about .portrait {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 520px;
}
.about ul {
  margin-left: 18px;
}
.inline-quote {
  border-left: 3px solid var(--spd-red);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text);
}
.inline-quote p {
  margin-bottom: 0.5rem;
}
.inline-quote small {
  font-style: normal;
}

/* ====== Social Proof ====== */
.quotes {
  display: grid;
  gap: 16px;
}
.quote {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 20px;
}
.quote p {
  margin: 0;
}
.quote .meta {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 600;
}
.transparency {
  font-size: 14px;
  color: var(--muted);
}

/* ====== Accordion ====== */
.accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}
.accordion + .accordion {
  margin-top: 12px;
}
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 18px;
  background: var(--bg);
  text-align: left;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  list-style: none;
}
.accordion-header::-webkit-details-marker {
  display: none;
}
.accordion-header:hover {
  background: var(--bg-alt);
}
.accordion-header .chev {
  transition: transform 0.2s ease;
}
.accordion[open] > .accordion-header .chev {
  transform: rotate(180deg);
}
.accordion-panel {
  padding: 0 18px 16px;
}
.accordion-panel p {
  margin: 8px 0;
}
details[open] .accordion-panel {
  animation: accordionSlideDown 0.3s ease-out;
}
@keyframes accordionSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====== Interactive Cards Grid ====== */
.interactive-cards-grid {
  display: grid;
  gap: 32px;
  padding-bottom: 2rem;
  align-items: start;
}
@media (min-width: 768px) {
  .interactive-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .interactive-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ====== Card Base (Interactive) ====== */
.interactive-card {
  position: relative;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
  transform-style: preserve-3d;
}
.interactive-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--spd-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 20;
}
.interactive-card:hover,
.interactive-card.active {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(227, 0, 15, 0.1);
}
.interactive-card:hover::before,
.interactive-card.active::before {
  transform: scaleX(1);
}
.interactive-card-content {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  z-index: 10;
}
.card-icon-wrapper {
  width: 64px;
  height: 64px;
  background: #fff0f0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--spd-red);
  transition: var(--transition);
}
.interactive-card:hover .card-icon-wrapper,
.interactive-card.active .card-icon-wrapper {
  background: var(--text-gradient);
  color: white;
  transform: scale(1.1) rotate(-3deg);
}
.card-icon-wrapper svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
  transition: transform 0.3s ease;
}
.interactive-card h3 {
  font-size: 1.5rem;
  margin: 0 0 12px 0;
  color: var(--text-strong);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.card-intro {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0;
}
.card-intro strong {
  color: var(--text);
  font-weight: 700;
}
.tap-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--spd-red);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 1;
  max-height: 40px;
  transition: all 0.4s ease;
}
.tap-hint svg {
  width: 18px;
  height: 18px;
  animation: bounce-x 1.5s infinite;
}
@keyframes bounce-x {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(4px);
  }
}
.interactive-card:hover .tap-hint,
.interactive-card.active .tap-hint {
  opacity: 0;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
}
.card-hidden-details {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.5s ease, margin-top 0.5s ease, padding-top 0.5s ease;
  opacity: 0;
  border-top: 1px solid transparent;
}
.card-hidden-details > div {
  overflow: hidden;
}
/* Reveal Logic */
.interactive-card.active .card-hidden-details {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 24px;
  padding-top: 24px;
  border-top-color: var(--border);
}
@media (hover: hover) {
  .interactive-card:hover .card-hidden-details {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 24px;
    padding-top: 24px;
    border-top-color: var(--border);
  }
}
.card-hidden-details ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text);
  font-size: 0.95rem;
}
.card-hidden-details li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
}
.card-hidden-details li::before {
  content: "•";
  color: var(--spd-red);
  font-weight: bold;
  font-size: 1.5em;
  position: absolute;
  left: 0;
  top: -6px;
}
.card-hidden-details li:last-child {
  margin-bottom: 0;
}
.card-hidden-details .result {
  margin-top: 20px;
  background: linear-gradient(to right, #fef2f2, #fff);
  border-left: 4px solid var(--spd-red);
  padding: 16px;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  color: var(--text-strong);
}
.card-hidden-details .result strong {
  display: block;
  color: var(--spd-red);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

/* ====== CTA Container ====== */
.cta-container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 700px) {
  .cta-container {
    display: flex;
    gap: 16px;
    align-items: stretch;
  }
  .cta-container > section {
    flex: 1 1 0%;
    display: flex;
    flex-direction: column;
    padding-top: 28px;
    padding-bottom: 28px;
  }
  .cta-container > section > .container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 0;
  }
  .cta-container .cta {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}
.cta {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.form-note {
  font-size: 14px;
  color: var(--muted);
}
.form-msg {
  font-size: 14px;
  font-weight: 700;
  display: none;
}
.form-msg.ok {
  color: var(--success);
}
.form-msg.err {
  color: var(--error);
}

/* ====== Footer ====== */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  font-size: 0.95rem;
  color: var(--text-light);
  text-align: left;
}
.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  margin-bottom: 32px;
  align-items: start;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr max-content max-content;
    gap: 80px;
  }
}
.footer-brand .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-brand .name {
  font-weight: 800;
  color: var(--text-strong);
  font-size: 1.2rem;
  margin: 0;
}
.footer-brand svg {
  fill: var(--text-strong);
  width: 32px;
  height: auto;
}
.footer-slogan {
  margin: 0;
  max-width: 320px;
  line-height: 1.5;
}
.site-footer h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text-strong);
  margin: 0 0 16px 0;
}
.social-links {
  display: flex;
  gap: 12px;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-alt);
  border-radius: 50%;
  color: var(--text-strong);
  transition: all 0.2s;
  text-decoration: none;
}
.social-links a:hover {
  background: var(--spd-red);
  color: #fff;
  transform: translateY(-3px);
}
.footer-legal ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0;
}
.footer-legal li {
  margin-bottom: 8px;
  padding-left: 0;
}
.footer-legal a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal a:hover {
  color: var(--spd-red);
  text-decoration: underline;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ====== Sticky Mobile CTA ====== */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--border);
  backdrop-filter: saturate(1.2) blur(6px);
  display: none;
  z-index: 40;
}
.sticky-cta .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.sticky-cta .btn {
  flex: 1;
}
@media (max-width: 699.98px) {
  .sticky-cta {
    display: block;
  }
}

/* ====== Video & Themen ====== */
.themen-cards {
  margin-top: 32px;
}
.themen-cards .card img {
  width: 100%;
  object-fit: contain;
  border-radius: var(--radius);
  margin-bottom: 16px;
}
@media (min-width: 1200px) {
  .themen-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}
.themen-cards .card {
  cursor: pointer;
}
.video-modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
}
.video-modal.show {
  display: flex;
}
.video-modal-content {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-modal video {
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  object-fit: contain;
}
.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 101;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.video-thumbnail-wrapper {
  position: relative;
  display: block;
  cursor: pointer;
  overflow: hidden;
}
.video-thumbnail-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}
.video-thumbnail-wrapper:hover img {
  transform: scale(1.05);
}
.play-button-overlay {
  position: absolute;
  top: 77%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  border: solid 1px white;
  animation: pulse-white 2s infinite;
}
.video-thumbnail-wrapper:hover .play-button-overlay {
  animation: none;
  transform: translate(-50%, -50%) scale(1.1);
  background-color: rgba(227, 0, 15, 0.95);
}
.play-icon {
  fill: white;
  width: 30px;
  height: 30px;
}
@keyframes pulse-white {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--spd-red);
  width: 0%;
  z-index: 1000;
  transition: width 0.1s;
}

/* ====== Mobile Helpers ====== */
@media (max-width: 699.98px) {
  .interactive-cards-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 2rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .interactive-cards-grid .interactive-card {
    flex: 0 0 85%;
    scroll-snap-align: start;
  }
  .themen-cards {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 1.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .themen-cards .card {
    flex: 0 0 85%;
    scroll-snap-align: start;
  }
  .interactive-cards-grid::-webkit-scrollbar,
  .themen-cards::-webkit-scrollbar {
    display: none;
  }
  .interactive-cards-grid,
  .themen-cards {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
}

/* ====== Main Layout Breakpoints ====== */
@media (min-width: 700px) {
  /* Cards Grid 2-spaltig */
  .cards,
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Hero 2-spaltig schon ab Tablet */
  .hero .grid {
    grid-template-columns: 1.1fr 0.9fr; /* Verhältnis Text zu Bild */
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .cards,
  .pillars {
    grid-template-columns: repeat(4, 1fr);
  }
  /* Hero behält die Einstellungen von 700px+ bei */
  .about .profile {
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
  }
}

@media (min-width: 800px) {
  nav.primary-nav {
    display: flex;
    align-items: center;
  }
  .nav-cta {
    display: flex;
    align-items: center;
  }
  .menu-toggle {
    display: none;
  }
}

/* ====== Accessibility: Reduzierte Bewegung ====== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto; /* Kein weiches Scrollen */
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ====== Print Styles ====== */
@media print {
  /* 1. Unnötiges ausblenden (Nav, Videos, Buttons) */
  header.site-header, 
  .hero .media, 
  .video-modal, 
  .sticky-cta, 
  #scroll-progress,
  .menu-toggle,
  .footer-social,
  .tap-hint,           /* Hinweis "Lösung anzeigen" weg */
  .btn,                /* Buttons weg */
  .skip-link {
    display: none !important;
  }

  /* 2. Grundlegende Lesbarkeit */
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 12pt;
  }

  .container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* 3. WICHTIG: Überschrift wieder sichtbar machen */
  #hero-title,
  h1,
  h2,
  h3 {
    background: none !important;
    -webkit-text-fill-color: #000 !important; /* Transparenz entfernen */
    text-fill-color: #000 !important;
    color: #000 !important; /* Schwarz erzwingen */
    text-shadow: none !important;
  }

  /* 4. Akkordeons (Positionen) immer öffnen */
  .card-hidden-details,
  .accordion-panel {
    display: block !important;
    opacity: 1 !important;
    max-height: none !important;
    margin-top: 10px;
    grid-template-rows: 1fr !important;
    border: none !important;
  }

  details[open] .accordion-panel {
    animation: none !important;
  }

  /* Details & Summaries sauber darstellen */
  details {
    break-inside: avoid;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    padding-bottom: 20px;
  }
  details > summary {
    list-style: none;
    font-weight: 800;
    font-size: 14pt;
    margin-bottom: 10px;
  }
  /* Pfeile ausblenden */
  details > summary svg.chev,
  .accordion-header::after {
    display: none !important;
  }

  /* 5. Links lesbar machen (optional URL dahinter) */
  a {
    text-decoration: none !important;
    color: #000 !important;
  }
  /* Nur bei externen Links die URL anzeigen */
  a[href^="http"]:not([href*="paul-frank-ravensburg"])::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #555;
  }
}
