/* =========================================================
   Basis / Reset
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

iframe {
  max-width: 100%;
}

figure {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--gptlogofarbe, #5b3b87);
  outline-offset: 2px;
}

html {
  scroll-behavior: smooth;
}


/* =========================================================
   Grundlayout
   ========================================================= */
header,
main,
footer,
nav {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 8px;
  line-height: 1.5;
  color: #4a4058;
}

header,
nav,
footer {
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.06);
}

header {
  background: #ffffff;
  font-size: 16px;
}

main {
  background: #f7f3fa;
  font-size: 16px;
}

footer {
  background: #efe6f5;
  color: #3f3157;
  font-size: 16px;
}

main h2,
header h2 {
  background-color: var(--gptbasis);
  color: #fff;
  padding: 8px;
  line-height: 1;
  margin: 3px auto;
  margin-top: 1.3em;
}

main h3 {
  margin-top: 28px;
  margin-bottom: 10px;
  line-height: 1.15;
}

footer h2 {
  text-transform: uppercase;
  font-size: 16px;
}

footer h2 a,
footer h3 a {
  color: var(--gptbasis);
  text-decoration: none;
}


/* =========================================================
   Navigation
   ========================================================= */
nav {
  color: var(--gptlogofarbe);
  font-weight: bold;
}

nav#menu {
  width: auto;
  height: 100%;
}

nav a {
  color: var(--gptlogofarbe);
}


/* =========================================================
   Container / Grid
   ========================================================= */
.container {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}

.iframe {
  width: 100%;
  height: 310px;
  border: none;
}

@media all and (min-width: 70em) {
  .container {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* =========================================================
   Newsletter-Block
   ========================================================= */
.nl-block {
  display: block;
  max-width: 760px;
  margin: 0 auto;
}

.nl-block > * {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
}

.nl-block h1 {
  margin-top: 0;
}

.nl-block .success,
.nl-block .errors {
  width: 100%;
  margin: 1rem 0;
}


/* =========================================================
   News-Button allgemein
   ========================================================= */
.news-button,
a.news-button {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--gptbasis);
  color: #fff;
  border: 1px solid var(--gptbasis);
  transition:
    background 0.2s ease,
    transform 0.1s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.news-button:hover,
.news-button:focus {
  background: #4a2f70;
  border-color: #4a2f70;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
  filter: none;
  text-decoration: none;
}


/* =========================================================
   Projekte-Boxen
   ========================================================= */
.textbox-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 14px 0 10px;
}

.textbox_rose,
.textbox_gruen {
  border-radius: 16px;
  padding: 16px 16px 14px;
  line-height: 1.45;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

.textbox_rose {
  background: #f4dbe6;
}

.textbox_gruen {
  background: #d7f3d5;
}

.textbox_rose h3,
.textbox_gruen h3 {
  margin: 0 0 10px;
  line-height: 1.1;
}

.textbox_rose .news-button,
.textbox_gruen .news-button {
  margin-top: auto;
  align-self: flex-start;
}


/* =========================================================
   Hinweistext unter den Boxen
   ========================================================= */
#foto {
  margin-top: 10px;
  font-size: 0.95em;
  opacity: 0.85;
}


/* =========================================================
   Teaser mit Bild rechts
   ========================================================= */
.teaser-figure-right,
figure.teaser-figure-right {
  float: right;
  width: 260px;
  max-width: 42%;
  margin: 0 0 12px 16px;
}

.teaser-figure-right img,
figure.teaser-figure-right img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.teaser-figure-right figcaption,
figure.teaser-figure-right figcaption {
  margin-top: 6px;
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.3;
  text-align: center;
}

.teaser-clear {
  clear: both;
  margin-bottom: 18px;
}

main h3 + .teaser-figure-right,
main h3 + figure.teaser-figure-right {
  margin-top: 0;
}


/* =========================================================
   STARTSEITE
   ========================================================= */
.startseite-home {
  display: block;
  margin: 0;
  padding: 0;
}

.startseite-home > section {
  margin: 0 0 34px;
}

/* ---------------------------------------------------------
   Gemeinsame Elemente
   --------------------------------------------------------- */
.startseite-home .section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.startseite-home .section-head h2,
.startseite-home h2 {
  background: none;
  color: var(--gptbasis);
  padding: 0;
  margin: 0;
  line-height: 1.15;
}

.startseite-home .section-link {
  color: var(--gptlogofarbe, #5b3b87);
  font-weight: 700;
  text-decoration: none;
}

.startseite-home .section-link:hover,
.startseite-home .section-link:focus {
  text-decoration: underline;
}

.startseite-home .news-button,
.startseite-home a.news-button {
  margin-top: 0;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.startseite-home .news-button--secondary,
.startseite-home a.news-button--secondary {
  background: #fff;
  color: var(--gptbasis);
  border-color: rgba(91, 59, 135, 0.28);
}

.startseite-home .news-button--secondary:hover,
.startseite-home .news-button--secondary:focus {
  background: #f7f1fb;
  filter: none;
}


/* ---------------------------------------------------------
   Bildregeln auf der Startseite
   --------------------------------------------------------- */
.startseite-home .home-hero__text figure,
.startseite-home .home-foerderung__content figure,
.startseite-home .home-stammtisch__content figure,
.startseite-home .home-service__intro figure {
  margin: 0 0 14px;
  text-align: center;
}

.startseite-home .home-hero__text img,
.startseite-home .home-foerderung__content img,
.startseite-home .home-stammtisch__content img,
.startseite-home .home-service__intro img {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
}

.startseite-home .home-hero__text figcaption,
.startseite-home .home-foerderung__content figcaption,
.startseite-home .home-stammtisch__content figcaption,
.startseite-home .home-service__intro figcaption {
  margin-top: 6px;
  font-size: 0.9rem;
  line-height: 1.3;
  color: #666;
  text-align: center;
}


/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.startseite-home .home-hero {
  background: linear-gradient(180deg, #fbf6fc 0%, #f6eef8 100%);
  border: 1px solid rgba(91, 59, 135, 0.16);
  border-radius: 18px;
  padding: 26px 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.startseite-home .home-hero__content {
  max-width: 920px;
}

.startseite-home .home-hero__eyebrow {
  margin: 0 0 8px;
  color: var(--gptlogofarbe, #5b3b87);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.startseite-home .home-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  color: var(--gptbasis);
}

.startseite-home .home-hero__text {
  font-size: 1.08rem;
  line-height: 1.7;
  color: #4a4058;
}

.startseite-home .home-hero__text > *:first-child {
  margin-top: 0;
}

.startseite-home .home-hero__text > *:last-child {
  margin-bottom: 0;
}

.startseite-home .home-hero__text p {
  margin: 0 0 14px;
}

.startseite-home .home-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}


/* ---------------------------------------------------------
   Nutzenkarten
   --------------------------------------------------------- */
.startseite-home .home-benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.startseite-home .benefit-card {
  background: #ffffff;
  border: 1px solid rgba(91, 59, 135, 0.12);
  border-top: 4px solid var(--gptrose);
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.startseite-home .benefit-card h3 {
  margin: 0 0 8px;
  color: var(--gptbasis);
  font-size: 1.15rem;
  line-height: 1.2;
}

.startseite-home .benefit-card p {
  margin: 0;
  line-height: 1.6;
}


/* ---------------------------------------------------------
   Termine
   --------------------------------------------------------- */
.startseite-home .home-termine__content {
  background: #ffffff;
  border: 1px solid rgba(91, 59, 135, 0.12);
  border-left: 6px solid var(--gptblue);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.startseite-home .home-termine__content iframe.termineFrame,
.startseite-home .home-termine__content iframe.iframe {
  width: 100%;
  display: block;
  border: 0;
  min-height: 220px;
  border-radius: 12px;
  background: transparent;
}


/* ---------------------------------------------------------
   Aktuelles – vollständig und untereinander
   --------------------------------------------------------- */
.startseite-home .home-aktuelles__list {
  display: grid;
  gap: 20px;
}

.startseite-home .news-entry {
  background: #ffffff;
  border: 1px solid rgba(91, 59, 135, 0.14);
  border-left: 6px solid var(--gptlogofarbe);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.startseite-home .news-entry h3 {
  margin: 0 0 14px;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--gptbasis);
}

.startseite-home .news-entry__body {
  line-height: 1.65;
  color: #444;
}

.startseite-home .news-entry__body > *:first-child {
  margin-top: 0;
}

.startseite-home .news-entry__body > *:last-child {
  margin-bottom: 0;
}

.startseite-home .news-entry__body p {
  margin: 0 0 12px;
}

.startseite-home .news-entry__body ul,
.startseite-home .news-entry__body ol {
  margin: 0 0 12px 1.25em;
}

.startseite-home .news-entry__body .news-button {
  margin-top: 6px;
}

.startseite-home .news-entry__body .teaser-figure-right,
.startseite-home .news-entry__body figure.teaser-figure-right {
  float: right;
  width: 260px;
  max-width: 38%;
  margin: 0 0 12px 18px;
}

.startseite-home .news-entry__body .teaser-clear {
  clear: both;
  margin-bottom: 0;
}


/* ---------------------------------------------------------
   Förderung / Stammtisch / Service-Intro
   --------------------------------------------------------- */
.startseite-home .home-foerderung__content {
  background: #f7f1fb;
  border: 1px solid rgba(91, 59, 135, 0.12);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.startseite-home .home-stammtisch__content {
  background: #fbf1f3;
  border: 1px solid rgba(91, 59, 135, 0.12);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.startseite-home .home-service__intro {
  background: #edf6fa;
  border: 1px solid rgba(91, 59, 135, 0.12);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.startseite-home .home-foerderung__content > *:first-child,
.startseite-home .home-stammtisch__content > *:first-child,
.startseite-home .home-service__intro > *:first-child {
  margin-top: 0;
}

.startseite-home .home-foerderung__content > *:last-child,
.startseite-home .home-stammtisch__content > *:last-child,
.startseite-home .home-service__intro > *:last-child {
  margin-bottom: 0;
}


/* ---------------------------------------------------------
   Schnell gefunden
   --------------------------------------------------------- */
.startseite-home .home-service__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.startseite-home .service-card {
  display: block;
  background: #ffffff;
  border: 1px solid rgba(91, 59, 135, 0.14);
  border-top: 4px solid var(--gptbasis);
  border-radius: 16px;
  padding: 18px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.startseite-home .service-card:hover,
.startseite-home .service-card:focus {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  border-color: rgba(91, 59, 135, 0.32);
  background: #faf6fd;
  text-decoration: none;
}

.startseite-home .service-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--gptbasis);
  font-size: 1.05rem;
}

.startseite-home .service-card span {
  display: block;
  line-height: 1.5;
  color: #4f4f4f;
}


/* ---------------------------------------------------------
   Inhalte aus der Datenbank allgemein auf Startseite
   --------------------------------------------------------- */
.startseite-home table {
  width: 100%;
  border-collapse: collapse;
}

.startseite-home blockquote {
  margin: 16px 0;
  padding: 10px 14px;
  border-left: 4px solid rgba(91, 59, 135, 0.35);
  background: rgba(91, 59, 135, 0.05);
  border-radius: 0 10px 10px 0;
}


/* =========================================================
   Mobile Anpassungen allgemein
   ========================================================= */
@media (max-width: 680px) {
  .teaser-figure-right,
  figure.teaser-figure-right {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 14px 0;
  }

  .teaser-clear {
    margin-bottom: 14px;
  }

  main h3 {
    margin-top: 22px;
  }
}


/* =========================================================
   Startseite Responsive
   ========================================================= */
@media (max-width: 980px) {
  .startseite-home .home-benefits__grid,
  .startseite-home .home-service__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .startseite-home > section {
    margin-bottom: 26px;
  }

  .startseite-home .home-hero {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .startseite-home .home-hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.4rem);
  }

  .startseite-home .home-benefits__grid,
  .startseite-home .home-service__grid {
    grid-template-columns: 1fr;
  }

  .startseite-home .news-entry,
  .startseite-home .benefit-card,
  .startseite-home .home-foerderung__content,
  .startseite-home .home-stammtisch__content,
  .startseite-home .home-service__intro,
  .startseite-home .service-card,
  .startseite-home .home-termine__content {
    border-radius: 14px;
  }

  .startseite-home .home-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .startseite-home .news-button,
  .startseite-home a.news-button {
    text-align: center;
    justify-content: center;
  }

  .startseite-home .news-entry__body .teaser-figure-right,
  .startseite-home .news-entry__body figure.teaser-figure-right {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 14px 0;
  }
}