/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */
:root {
  /* Farben */
  --color-black: #000000;
  --color-navy: #01003A;        /* Dunkles Blau – Hauptüberschriften */
  --color-white: #FFFFFF;
  --color-primary: #7C000A;     /* Primary – Dunkelrot (Buttons, Links) */
  --color-secondary: #004F80;   /* Secondary – Blau (Hover-Zustand) */
  --color-text: #181818;        /* Fließtext */
  --color-accent: #E6320F;      /* Akzent – Orange-Rot */
  --color-bg-blue: #EFF4F7;     /* Heller Bereich (Module) */
  --color-bg-peach: #F9F4F1;    /* Heller Bereich (Infos / Footer) */

  /* Layout */
  --container-max: 1440px;
  --container-padding: 80px;

  /* Typografie */
  --font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  /* Sonstiges */
  --radius-card: 15px;
  --radius-btn: 5px;
  --shadow-card: 0 8px 12px rgba(0, 0, 0, 0.20);
  --transition: 0.2s ease;
}

/* ==========================================================================
   RESET / BASE
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 18px;
  line-height: 1.4;
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

a:hover,
a:focus-visible {
  color: var(--color-secondary);
}

ul {
  list-style: none;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* ==========================================================================
   PAGE-BREADCRUMB (Inline „Startseite → Modul X")
   ========================================================================== */
.page-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
  font-size: clamp(1.05rem, 1.4vw, 1.45rem);
  color: var(--color-text);
}

.page-breadcrumb a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-breadcrumb a:hover,
.page-breadcrumb a:focus-visible {
  color: var(--color-secondary);
}

.page-breadcrumb [aria-current="page"] {
  font-weight: 600;
}

.page-breadcrumb--bottom {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   VISUALLY HIDDEN (für Screenreader, optisch unsichtbar)
   ========================================================================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   HERO
   ========================================================================== */
  .hero__content {
  max-width: 600px;
  background-color: var(--color-white);
  border-radius: 0 15px 15px 0;
  padding: 50px 60px;
  box-shadow: -100vw 0 0 0 var(--color-white);                    
  }

  .hero__content::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 100%;                 
  width: 100vw;              
  background-color: inherit;    
}

.hero__container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero__content {
  max-width: 600px;
  background-color: var(--color-white);
  border-radius: 0 15px 15px 0;
  padding: 50px 60px 50px var(--container-padding);
  margin-left: calc(-1 * var(--container-padding));
}

.hero {
  position: relative;
  background-color: var(--color-white);
  min-height: 500px;
  padding: 60px 0;
  overflow: hidden;      
  display: flex;
  align-items: center;
}

.hero__image {
  position: absolute;     
  bottom: 0;
  right: 0;
  height: 100%;
  max-height: 500px;        
  width: auto;
  object-fit: contain;
  object-position: bottom right;
  pointer-events: none;
}

.hero__content h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  color: var(--color-navy);
  line-height: 1.1;
  letter-spacing: 0.004em;
  margin-bottom: 36px;
}

.hero__content p {
  font-size: clamp(1.05rem, 1.4vw, 1.45rem);
  line-height: 1.45;
  color: var(--color-text);
  margin-bottom: 18px;
}

.hero__content p:last-of-type {
  margin-bottom: 0;
}

/* HERO – schlanke Variante für Rechtstexte (kein Bild, weniger Höhe) */
.hero--minimal {
  display: block;
  min-height: auto;
  padding: 80px 0 40px;
}

.hero--minimal .container > h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--color-navy);
  line-height: 1.2;
  margin-bottom: 0;
}

/* ==========================================================================
   VIDEO SECTION
   ========================================================================== */
.video-section {
  background-color: var(--color-bg-blue);
  padding: 90px 0;
}

.video-section__container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.video-section__video video {
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  display: block;
  background-color: var(--color-black);
}

.video-section__content .section-text + .section-text {
  margin-top: 18px;
}

.video-section__video {
  width: 100%;
}

.video-section__video iframe,
.video-section__video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: var(--radius-card);
  border: 0;
  display: block;
  background-color: var(--color-black);
}

/* ==========================================================================
   SECTION STYLES
   ========================================================================== */
.section-title {
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 18px;
}

.section-text {
  font-size: clamp(1.05rem, 1.4vw, 1.45rem);
  line-height: 1.5;
  color: var(--color-text);
}

/* ==========================================================================
   LEGAL CONTENT (Impressum, Barrierefreiheitserklärung)
   ========================================================================== */
.legal-content {
  padding: 40px 0 100px;
  background-color: var(--color-white);
}

.legal-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-navy);
  margin: 40px 0 14px;
  line-height: 1.3;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content address {
  font-style: normal;
  max-width: 720px;
  line-height: 1.6;
  margin-bottom: 14px;
  color: var(--color-text);
}

.legal-content .legal-list {
  max-width: 720px;
  margin: 0 0 14px 1.2rem;
  list-style: disc;
  padding-left: 0;
}

.legal-content .legal-list li {
  margin-bottom: 6px;
  line-height: 1.6;
}

/* ==========================================================================
   MODULES
   ========================================================================== */
.modules {
  background-color: var(--color-bg-blue);
  padding: 90px 0 110px;
}

.modules__index {
  background-color: var(--color-white);
  padding: 90px 0 110px;
}

.modules__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.module-card {
  background-color: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.module-card__index {
  background-color: var(--color-bg-blue);
}

.module-card__image {
  width: 100%;
  aspect-ratio: 790 / 278;
  object-fit: cover;
}

.module-card__content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.module-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 18px;
  line-height: 1.3;
}

.module-card__text {
  font-size: clamp(1.05rem, 1.4vw, 1.45rem);
  line-height: 1.5;
  color: var(--color-text);
  margin-bottom: 28px;
}

.module-card .btn {
  margin-top: auto;
  align-self: flex-end;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 162px;
  padding: 18px 32px;
  font-family: inherit;
  font-size: clamp(1.05rem, 1.4vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-align: center;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: var(--color-secondary);
  color: var(--color-white);
  outline: none;
}

.btn--primary:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 3px;
}

/* ==========================================================================
   INFO SECTION
   ========================================================================== */
.info {
  background-color: var(--color-bg-peach);
  padding: 90px 0 70px;
}

.info__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  margin-top: 80px;
}

.info-column__icon {
  width: 60px;
  height: 60px;
  margin-bottom: 36px;
}

.info-column__title {
  font-size: clamp(1.05rem, 1.4vw, 1.45rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
}

.info-column__list li {
  margin-bottom: 8px;
}

.info-column__list a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.info-column__list a:hover,
.info-column__list a:focus-visible {
  color: var(--color-secondary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--color-white);
  padding: 30px 0 50px;
}

.footer__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
}

.footer__links a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.95rem;
}

.footer__links a:hover,
.footer__links a:focus-visible {
  color: var(--color-secondary);
}

.footer__links a[aria-current="page"] {
  font-weight: 700;
}

.footer__sponsor {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--color-text);
}

.footer__sponsor img {
  height: auto;
  max-height: 22px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --container-padding: 48px;
  }

  .hero {
    padding: 70px 0 100px;
  }

  .modules,
  .info {
    padding: 70px 0;
  }

  .info__grid {
    gap: 40px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --container-padding: 24px;
  }

  body {
    font-size: 16px;
  }

  /* HERO – Bild unter den Text rücken */
  .hero {
    display: block;
    min-height: auto;
    padding: 0;
  }

  .hero__content {
 max-width: 600px;
  background-color: var(--color-white);   
  border-radius: 0 15px 15px 0;
  padding: 50px 60px;                        
  position: relative;                        
  }

  .hero__content::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 100%;                 
  width: 100vw;              
  background-color: inherit;    
}

  .hero__image {
    position: static;
    max-width: 100%;
    height: auto;
    margin-top: 32px;
    opacity: 1;
  }

  .hero__content h1 {
    margin-bottom: 24px;
  }

  .hero--minimal {
    padding: 40px 0 24px;
  }

  .video-section {
    padding: 56px 0;
  }

  .video-section__container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .modules {
    padding: 56px 0 64px;
  }

  .modules__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
  }

  .module-card__content {
    padding: 24px;
  }

  .module-card__title {
    font-size: 1.3rem;
  }

  .info {
    padding: 56px 0 40px;
  }

  .info__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 48px;
  }

  .info-column__icon {
    margin-bottom: 20px;
  }

  .legal-content {
    padding: 24px 0 64px;
  }

  /* FOOTER */
  .footer {
    padding: 24px 0 40px;
  }

  .footer__links {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 14px 32px;
    justify-content: start;
  }

  .footer__sponsor img {
    max-height: 16px;
    max-width: 200px;
  }
}

/* Sehr kleine Geräte */
@media (max-width: 380px) {
  .btn {
    min-width: 100%;
    align-self: stretch !important;
  }
}

/* ==========================================================================
   LEGAL PAGES (Impressum, Barrierefreiheitserklärung)
   ========================================================================== */
.legal-content {
  background-color: var(--color-white);
  padding: 70px 0 90px;
}

.legal-content > .container > section {
  margin-bottom: 48px;
}

.legal-content h2 {
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 16px;
  line-height: 1.3;
}

.legal-content p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 14px;
  max-width: 75ch;
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-content address {
  font-style: normal;             /* überschreibt Browser-Default kursiv */
  line-height: 1.6;
  font-size: 1rem;
}

.legal-list {
  list-style: disc;               /* überschreibt globales list-style: none */
  padding-left: 24px;
  margin: 0 0 14px 0;
  max-width: 75ch;
}

.legal-list li {
  margin-bottom: 6px;
  line-height: 1.5;
}

/* Info-Box: graue, abgerundete Hinweisbox */
.info-box {
  background-color: var(--color-bg-blue);
  border-radius: var(--radius-card);
  padding: 28px 36px;
  margin: 0 0 48px 0;
  max-width: 75ch;
}


.info-box p {
  margin-bottom: 0;
  max-width: none;
  line-height: 1.6;
}

.legal-content address {
  font-style: normal;
  line-height: 1.6;
  font-size: 1rem;
  margin-bottom: 24px;        /* ← falls noch nicht drin, ergänzen */
}

.legal-content address .legal-list {
  margin-top: 8px;            /* ← optional, falls Abstand zwischen Adresse und Liste fehlt */
}

/* Mobile */
@media (max-width: 768px) {
  .legal-content {
    padding: 48px 0 64px;
  }

  .info-box {
    padding: 22px 24px;
    margin-bottom: 36px;
  }
}