/* -----------------------------------------
   Staatliche Förderung — Themenseite
   Präfix .foerd_
   Variante: Ideencenter-Template 2017 (z.B. ic-caniels.de)

   Hinweis: Alle Größen/Abstände in px statt rem,
   da Host-Seiten das Root-Element auf font-size:10px
   setzen — rem würde sich darauf beziehen und alles
   verkleinern.
-------------------------------------------- */

.foerd_page {
  overflow-x: hidden;
  --foerd-color-text: #333;
  --foerd-color-heading: #313131;
  --foerd-color-brand: #EFA92C;
  --foerd-color-accent: #DC5B1C;
  --foerd-color-accordion-closed: #C5A767;
  --foerd-color-bg-light: #f6f6f6;
  --foerd-color-border: #e0e0e0;

  font-family: CamingoDos, Arial, sans-serif;
  font-size: 16px;
  color: var(--foerd-color-text);
  line-height: 1.6;
}

.foerd_page * {
  box-sizing: border-box;
}

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

/* Hero */

.foerd_hero {
  position: relative;
  width: auto;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.foerd_hero__image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

/* Abdunkelung, damit die Headline auf hellen Motiven lesbar bleibt */
.foerd_hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
  pointer-events: none;
}

.foerd_hero__headline {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: clamp(16px, 5vw, 64px);
  padding: 0 clamp(16px, 5vw, 64px);
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.foerd_hero__kicker {
  display: block;
  font-size: clamp(14px, 2.5vw, 20px);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--foerd-color-brand);
}

.foerd_hero__title {
  display: block;
  margin-top: 8px;
  font-size: clamp(20px, 3.5vw, 40px);
  line-height: 1.2;
  font-weight: 700;
}

/* Titel */

.foerd_titel {
  margin: 48px auto 0;
  padding: 0 24px;
  max-width: 960px;
  text-align: center;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.25;
  font-weight: 700;
  color: var(--foerd-color-heading);
}

/* Content-Wrapper */

.foerd_content {
  max-width: 1152px;
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* Textblöcke */

.foerd_block__headline {
  margin: 0 0 16px;
  text-align: center;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.25;
  font-weight: 700;
  color: var(--foerd-color-heading);
}

.foerd_block__headline--klein {
  font-size: clamp(20px, 2.6vw, 27px);
}

.foerd_block__subtitle {
  display: block;
  margin-top: 12px;
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--foerd-color-text);
}

.foerd_block__text {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.foerd_block__text p {
  margin: 0 0 16px;
}

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

/* Farbig hinterlegter Vollbreiten-Block */

.foerd_farbblock {
  width: auto;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 16px clamp(24px, 5vw, 64px);
  background: var(--foerd-color-bg-light);
}

.foerd_farbblock .foerd_content {
  padding-left: 0;
  padding-right: 0;
}

/* Trenner */

.foerd_trenner {
  border: 0;
  border-top: 1px solid var(--foerd-color-border);
  position: relative;
  margin: 0;
}

.foerd_trenner::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--foerd-color-brand);
  transform: translateX(-50%);
}

/* Die zwei Förderwege */

.foerd_wege {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.foerd_karte {
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  background: var(--foerd-color-bg-light);
}

.foerd_karte__headline {
  margin: 0 0 24px;
  text-align: center;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.3;
  font-weight: 700;
  color: var(--foerd-color-heading);
}

/* Akkordeon */

.foerd_akkordeon {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.foerd_akkordeon__item {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.foerd_akkordeon__toggle {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: var(--foerd-color-accordion-closed);
  font-size: clamp(15px, 1.8vw, 19px);
  font-weight: 500;
  color: #fff;
  transition: background-color 0.15s ease;
}

.foerd_akkordeon__item[open] > .foerd_akkordeon__toggle {
  background: var(--foerd-color-accent);
}

.foerd_akkordeon__toggle::-webkit-details-marker {
  display: none;
}

.foerd_akkordeon__toggle::after {
  content: "+";
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1;
}

.foerd_akkordeon__item[open] > .foerd_akkordeon__toggle::after {
  content: "–";
}

.foerd_akkordeon__panel {
  padding: 20px;
  background: #fff;
  font-size: 16px;
}

.foerd_akkordeon__panel p {
  margin: 0 0 12px;
}

.foerd_akkordeon__panel ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.foerd_akkordeon__panel ul ul {
  margin-top: 8px;
  margin-bottom: 0;
}

.foerd_akkordeon__panel li {
  margin-bottom: 8px;
}

.foerd_akkordeon__panel > *:last-child {
  margin-bottom: 0;
}

.foerd_achtung {
  font-weight: 700;
  color: var(--foerd-color-accent);
}

.foerd_oder {
  display: inline-block;
  margin-left: 8px;
  font-style: italic;
  font-weight: 700;
}

/* Gut-zu-wissen-Hinweis */

.foerd_hinweis {
  margin: 24px 0 0;
  padding: 16px 20px;
  background: var(--foerd-color-brand);
  color: #313131;
}

/* Vergleichstabelle */

.foerd_tabelle {
  overflow-x: auto;
}

.foerd_tabelle__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.foerd_tabelle__table th,
.foerd_tabelle__table td {
  padding: 14px 16px;
  border: 1px solid var(--foerd-color-border);
  text-align: left;
  vertical-align: top;
}

.foerd_tabelle__table thead th {
  background: var(--foerd-color-accordion-closed);
  color: #fff;
  font-weight: 700;
}

.foerd_tabelle__table tbody th {
  width: 22%;
  background: var(--foerd-color-bg-light);
  font-weight: 700;
}

.foerd_tabelle__table ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.foerd_disclaimer {
  max-width: 720px;
  margin: 24px auto 0;
  text-align: center;
  font-size: 14px;
}

/* CTA */

.foerd_farbblock--cta {
  padding-top: 48px;
  padding-bottom: 48px;
  text-align: center;
}

.foerd_cta__text {
  margin: 0 0 24px;
  font-size: clamp(18px, 2.2vw, 22px);
}

.foerd_cta__button {
  display: inline-block;
  padding: 16px 40px;
  border-radius: 40px;
  background: var(--foerd-color-brand);
  color: #313131;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.foerd_cta__button:hover {
  transform: scale(1.03);
  color: #313131;
  text-decoration: none;
}

.foerd_cta__fehler {
  margin: 0;
  color: #b00020;
  font-weight: 700;
}

/* Mobil */

@media (max-width: 767px) {
  .foerd_wege {
    grid-template-columns: 1fr;
  }

  .foerd_hero::after {
    display: none;
  }

  .foerd_hero__headline {
    position: static;
    padding: 20px 24px;
    background: var(--foerd-color-bg-light);
    color: var(--foerd-color-heading);
    text-shadow: none;
  }

  .foerd_hero__kicker {
    color: var(--foerd-color-accent);
  }

  /* Tabelle wird zu gestapelten Karten */
  .foerd_tabelle__table,
  .foerd_tabelle__table tbody,
  .foerd_tabelle__table tr,
  .foerd_tabelle__table td,
  .foerd_tabelle__table th {
    display: block;
  }

  .foerd_tabelle__table thead {
    display: none;
  }

  .foerd_tabelle__table tr {
    margin-bottom: 24px;
  }

  .foerd_tabelle__table tbody th {
    width: auto;
  }

  .foerd_tabelle__table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    font-weight: 700;
    color: var(--foerd-color-accent);
  }
}
