/* =========================================================
   BBGN e.V. – statische Website
   Farben, Schriften und Maße sind aus dem bisherigen
   Joomla/Gantry-Template (g5_helium, Outline 28) übernommen.
   ========================================================= */

/* Lato lokal eingebunden (keine Verbindung zu Google Fonts) */
@font-face {
  font-family: "Lato";
  src: url("../fonts/lato-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("../fonts/lato-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bbgn-lila: #6e7088;        /* Navigation, Footer, Links */
  --bbgn-lila-rand: #6e6f87;   /* Rahmen der Header-Box */
  --bbgn-gold: #f7da64;        /* Zwischenüberschriften */
  --bbgn-gold-box: #dcc568;    /* Schrift in der Header-Box */
  --bbgn-gold-link: #e1c456;
  --bbgn-gold-hover: #fedd75;
  --text: #000000;
  --text-grau: #333333;
  --titel: #424753;
  --linie: #e0e0e5;
  --link-blau: #1b57b1;

  --font-text: Tahoma, Geneva, Verdana, sans-serif;
  --font-titel: "Lato", Helvetica, Tahoma, Geneva, Arial, sans-serif;
  --font-box: "Times New Roman", Times, serif;

  --container: 1200px;
  --innen: 25px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 2;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--bbgn-lila); transition: color .2s; }
a:hover { color: #4a4c63; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--innen);
}

/* ---------- Kopfzeile (Logo + Schriftzug) ---------- */
.kopf {
  background: #fff;
}
.kopf .container {
  display: flex;
  align-items: flex-start;
  height: 138px;
}
.kopf-logo {
  display: block;
  margin-top: 25px;
  flex: 0 0 auto;
}
.kopf-logo img {
  display: block;
  height: 77px;
  width: auto;
}
.kopf-schriftzug {
  display: block;
  margin-left: 50px;
  margin-top: 86px;
}
.kopf-schriftzug img {
  display: block;
  height: 15px;
  width: auto;
}

/* ---------- Bildbereich (Hörsaal-Foto) ---------- */
.hero {
  background-color: #312f38;
  background-image: url("../img/header-petct.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 401px;
  display: flex;
  align-items: center;
}
.hero .container {
  display: flex;
  justify-content: flex-end;
  padding-right: 7px;
}
.hero-box {
  display: flex;
  align-items: center;
  width: 238px;
  min-height: 118px;
  padding: 8px 9px;
  background: rgba(109, 111, 135, .57);
  border: 1px solid var(--bbgn-lila-rand);
  color: var(--bbgn-gold-box);
  font-family: var(--font-box);
  font-weight: 700;
  font-size: 16px;
  line-height: 2;
  text-decoration: none;
}
.hero-box:hover,
.hero-box:focus-visible {
  color: var(--bbgn-gold-hover);
  background: rgba(109, 111, 135, .72);
}

/* ---------- Hauptnavigation ---------- */
.nav {
  background: var(--bbgn-lila);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav ul {
  list-style: none;
  margin: 0 0 0 -9px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 63px;
  column-gap: 55px;
}
.nav a {
  display: block;
  color: #fff;
  font-family: var(--font-titel);
  font-weight: 700;
  font-size: 19.2px;
  line-height: 22px;
  padding: 4px 0;
  text-decoration: none;
}
.nav a span { display: inline-block; transition: box-shadow .2s; }
.nav a:hover span,
.nav a[aria-current="page"] span {
  box-shadow: 0 3px 0 #fff;
}

/* ---------- Inhalt ---------- */
main {
  padding: 73px 0 72px;
}
.seitentitel {
  font-family: var(--font-titel);
  font-weight: 400;
  font-size: 30.4px;
  line-height: 60.8px;
  color: var(--titel);
  margin: 12px 0 30px;
}
.seitentitel--start { color: var(--bbgn-lila); margin-bottom: 72px; }

.inhalt p {
  margin: 0 0 16px;
}
.blocksatz { text-align: justify; }
.zentriert { text-align: center; }

.zwischentitel {
  color: var(--bbgn-gold);
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 18.67px;
  line-height: 1.6;
  text-align: center;
  margin: 24px 0 18px;
}
.zwischentitel--gross {
  font-size: 28px;
  margin: 58px 0 64px;
}
.unterueberschrift {
  color: #dcc568;
  font-family: var(--font-titel);
  font-weight: 400;
  font-size: 16px;
  margin: 28px 0 8px;
}

hr {
  border: 0;
  border-top: 1px solid var(--linie);
  margin: 24px 0;
}

.portrait img { display: block; width: 121px; height: auto; }
.portrait figcaption {
  font-size: 12px;
  line-height: 2;
  margin-top: 12px;
}

.bild-mitte {
  display: block;
  margin: 16px auto 24px;
}
.bildunterschrift {
  text-align: center;
  font-size: 13.33px;
  font-weight: 700;
  margin-top: -22px;
}

.link-gold { color: var(--bbgn-gold-link); }
.link-blau { color: var(--link-blau); text-decoration: none; }
.link-blau:hover { text-decoration: underline; color: var(--link-blau); }

/* Förderpreis-Liste */
.preis { margin-bottom: 8px; }
.preis-jahr { margin: 0 0 8px; }
.preis-name {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 16px;
  margin: 0 0 16px;
}

/* Impressum */
.impressum h2 {
  font-family: var(--font-titel);
  font-weight: 400;
  font-size: 16px;
  margin: 0 0 16px;
}
.impressum p { margin: 0 0 8px; }
.impressum h3 {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 16px;
  margin: 16px 0 8px;
}

/* ---------- Termine ---------- */
.termine-liste { list-style: none; margin: 0 0 40px; padding: 0; }
.termin {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--linie);
}
.termin:first-child { border-top: 1px solid var(--linie); }
.termin-datum {
  font-size: 14px;
  color: var(--text-grau);
  padding-top: 2px;
}
.termin-inhalt {
  border-left: 4px solid var(--bbgn-lila);
  padding-left: 16px;
}
.termin-titel {
  font-family: var(--font-titel);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
  color: var(--bbgn-lila);
  margin: 0 0 4px;
}
.inhalt .termin-zeit, .inhalt .termin-ort { font-size: 14px; line-height: 1.7; color: var(--text-grau); margin: 0; }
.inhalt .termin-text { margin: 8px 0 0; font-size: 15px; line-height: 1.8; }
.termin-links { margin: 6px 0 0; padding: 0; list-style: none; font-size: 15px; }
.termin--vergangen .termin-inhalt { border-left-color: #c9cad6; }
.termin--vergangen .termin-titel { color: #8a8ca1; }
.termine-leer { color: var(--text-grau); }

/* ---------- Kontaktformular ---------- */
.formular { max-width: 640px; }
.feld { margin-bottom: 18px; }
.feld label {
  display: block;
  font-family: var(--font-titel);
  font-weight: 700;
  font-size: 15px;
  color: var(--titel);
  line-height: 1.6;
  margin-bottom: 4px;
}
.feld input[type="text"],
.feld input[type="email"],
.feld textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  padding: 10px 12px;
  border: 1px solid #c9cad6;
  border-radius: 4px;
  background: #fff;
  color: var(--text);
}
.feld textarea { min-height: 180px; resize: vertical; }
.feld input:focus, .feld textarea:focus {
  outline: 2px solid var(--bbgn-lila);
  outline-offset: 1px;
  border-color: var(--bbgn-lila);
}
.feld--checkbox label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 14px;
  color: var(--text);
}
.feld--checkbox input { margin-top: 6px; flex: 0 0 auto; }
.pflicht { color: #b00020; }
.hinweis { font-size: 13px; color: var(--text-grau); }

/* Honeypot: für Menschen unsichtbar */
.hp-feld {
  position: absolute !important;
  left: -10000px !important;
  width: 1px; height: 1px; overflow: hidden;
}

altcha-widget {
  display: block;
  margin: 8px 0 22px;
  --altcha-max-width: 320px;
  --altcha-border-radius: 4px;
  --altcha-color-border: #c9cad6;
  --altcha-color-active: var(--bbgn-lila);
  font-family: var(--font-text);
  font-size: 15px;
}

.button {
  display: inline-block;
  font-family: var(--font-titel);
  font-weight: 700;
  font-size: 12.8px;
  line-height: 1.15;
  letter-spacing: .1rem;
  text-transform: uppercase;
  background: var(--bbgn-lila);
  color: #fff;
  border: 1px solid transparent;
  border-radius: 2.5rem;
  padding: 18px 44px;
  cursor: pointer;
  transition: all .2s;
}
.button:hover, .button:focus-visible {
  background: var(--bbgn-gold-hover);
  box-shadow: 0 0 15px silver;
  color: #fff;
}

.meldung {
  border-radius: 4px;
  padding: 14px 18px;
  margin: 0 0 24px;
  line-height: 1.6;
}
.meldung--ok { background: #eef6ee; border: 1px solid #9cc79c; color: #1e4d1e; }
.meldung--fehler { background: #fbeeee; border: 1px solid #e0a5a5; color: #6b1515; }
.meldung ul { margin: 6px 0 0; padding-left: 20px; }

/* ---------- Fußzeile ---------- */
.fuss {
  background: var(--bbgn-lila);
  color: #fff;
  padding: 48px 0;
}
.fuss .container {
  display: grid;
  grid-template-columns: 8% 13% 36% 43%;
  align-items: start;
  min-height: 137px;
  padding-top: 25px;
}
.fuss-logo img { display: block; width: 66px; height: auto; margin-left: -10px; }
.fuss-copy {
  grid-column: 3;
  font-family: var(--font-box);
  font-weight: 700;
  font-size: 13.33px;
  line-height: 32px;
  padding-top: 16px;
  margin: 0;
  white-space: nowrap;
}
.fuss-menu {
  grid-column: 4;
  list-style: none;
  margin: 0;
  padding: 8px 0 0;
  display: flex;
  justify-content: flex-end;
  gap: 28px;
}
.fuss-menu a {
  color: #fff;
  font-family: var(--font-titel);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}
.fuss-menu a:hover { text-decoration: underline; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .nav ul { column-gap: 36px; }
  .nav a { font-size: 17px; }
  .fuss .container { grid-template-columns: auto 1fr; gap: 16px 32px; }
  .fuss-copy { grid-column: 2; white-space: normal; }
  .fuss-menu { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 700px) {
  :root { --innen: 16px; }
  body { font-size: 16px; line-height: 1.75; }

  .kopf .container {
    height: auto;
    align-items: center;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 14px;
  }
  .kopf-logo { margin-top: 0; }
  .kopf-logo img { height: 56px; }
  .kopf-schriftzug { margin: 0; min-width: 0; }
  .kopf-schriftzug img { height: auto; width: 100%; max-width: 100%; }

  .hero { min-height: 200px; }
  .hero .container { justify-content: center; padding-right: var(--innen); }
  .hero-box { width: auto; min-height: 0; font-size: 15px; line-height: 1.6; padding: 12px 16px; }

  .nav ul {
    min-height: 0;
    padding: 6px 0;
    column-gap: 20px;
    row-gap: 0;
    justify-content: center;
  }
  .nav a { font-size: 15px; padding: 8px 0; }

  main { padding: 32px 0 48px; }
  .seitentitel { font-size: 26px; line-height: 1.4; margin: 0 0 20px; }
  .zwischentitel { font-size: 17px; }
  .zwischentitel--gross { font-size: 22px; margin: 16px 0 28px; }
  .blocksatz { text-align: left; }

  .termin { grid-template-columns: 1fr; gap: 6px; }

  .fuss { padding: 32px 0; }
  .fuss .container { padding-top: 0; min-height: 0; }
  .fuss-logo img { margin-left: 0; width: 54px; }
  .fuss-copy { padding-top: 0; line-height: 1.5; }
  .fuss-menu { gap: 22px; flex-wrap: wrap; }
}
