/* DAIG – öffentliches Layout
   Schrift: Source Sans 3 bitte lokal ablegen (assets/fonts/), NICHT von Google laden (DSGVO). */

@font-face { font-family: "Source Sans 3"; src: url("fonts/SourceSans3-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/SourceSans3-Semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/SourceSans3-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --lila: #4b1f7a;
  --blau: #2b5fd0;
  --rot:  #e2333d;
  --pink: #c0398f;
  --text: #1d1d2b;
  --grau: #5d6070;
  --linie: #e4e4ec;
  --hell: #f6f6fa;
  --radius: 14px;
  --breite: 1180px;
  font-family: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.55;
}

* { box-sizing: border-box; }
body { margin: 0; font-size: 1.0625rem; background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blau); }
a:hover { color: var(--lila); }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 2px; }

.wrap { max-width: var(--breite); margin: 0 auto; padding: 0 1.5rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 10; }

/* ---------- Kopf ---------- */
.kopf {
  color: #fff;
  background:
    radial-gradient(60% 90% at 85% 30%, rgba(80,150,255,.85), transparent 70%),
    radial-gradient(55% 80% at 10% 100%, rgba(226,51,61,.95), transparent 70%),
    radial-gradient(50% 60% at 45% 90%, rgba(192,57,143,.8), transparent 70%),
    linear-gradient(135deg, #3a1766 0%, #4b1f7a 40%, #2b5fd0 100%);
}
.kopf a { color: #fff; }
.kopf__leiste { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }

.logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.logo__mark { font-weight: 700; font-size: 1.6rem; letter-spacing: .04em; }
.logo__text { font-size: .8rem; line-height: 1.15; opacity: .9; }

.nav ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; padding: .25rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: #fff; }
.nav__toggle, .nav__burger { display: none; }

.hero { padding: 5rem 1.5rem 6rem; }
.hero__claim { font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1.05; font-weight: 400; margin: 0 0 1.25rem; }
.hero__sub { font-size: 1.2rem; max-width: 34rem; opacity: .92; margin: 0; }

.seitenkopf { padding: 2.5rem 1.5rem 3rem; }
.seitenkopf h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 600; }

/* ---------- Schnelleinstiege (überlappen den Hero) ---------- */
.einstiege { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: -3rem; position: relative; }
.einstieg {
  background: #fff; border-radius: var(--radius); padding: 1.5rem 1.5rem 1.75rem;
  box-shadow: 0 10px 30px rgba(40, 20, 80, .12); text-decoration: none; color: var(--text);
  border-top: 4px solid var(--rot); transition: transform .15s ease;
}
.einstieg:nth-child(2) { border-top-color: var(--blau); }
.einstieg:nth-child(3) { border-top-color: var(--lila); }
.einstieg:hover { transform: translateY(-3px); color: var(--text); }
.einstieg__titel { display: block; font-weight: 700; font-size: 1.3rem; margin-bottom: .35rem; }
.einstieg__text { color: var(--grau); }

/* ---------- Blöcke ---------- */
.block { margin: 4rem 0; }
.block h2 { font-size: 1.75rem; font-weight: 600; margin: 0 0 1.25rem; }
.block__kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.mehr { font-weight: 600; text-decoration: none; white-space: nowrap; }
.mehr::after { content: " →"; }
.leer { color: var(--grau); background: var(--hell); padding: 1.25rem 1.5rem; border-radius: var(--radius); }

/* ---------- Karten ---------- */
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.karte { border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.karte__bild { aspect-ratio: 16/9; object-fit: contain; width: 100%; background: #fff; }
.karte__inhalt { padding: 1.25rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.karte__meta { margin: 0; font-size: .9rem; color: var(--grau); display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.karte__titel { margin: .2rem 0 0; font-size: 1.25rem; line-height: 1.25; }
.karte__titel a { color: var(--text); text-decoration: none; }
.karte__titel a::after { content: ""; position: absolute; inset: 0; } /* ganze Karte klickbar */
.karte { position: relative; }
.karte:hover .karte__titel a { color: var(--blau); }
.karte__teaser { margin: 0; color: var(--grau); }
.karte__ort { margin: auto 0 0; padding-top: .5rem; font-size: .9rem; font-weight: 600; }

.etikett { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: .15rem .55rem; border-radius: 99px; background: var(--hell); color: var(--lila); }
.etikett--daiginar { background: #efe8fb; color: var(--lila); }
.etikett--kongress { background: #fde8ea; color: #b4202a; }
.etikett--webinar  { background: #e6eefc; color: var(--blau); }
.etikett--frist    { background: #fff1d6; color: #8a5a00; }
.etikett--klein    { font-size: .65rem; margin-left: .4rem; }

/* ---------- Archiv ---------- */
.archiv { list-style: none; padding: 0; margin: 0 0 2rem; }
.archiv li { padding: .6rem 0; border-bottom: 1px solid var(--linie); }
.archiv time { display: inline-block; min-width: 11rem; color: var(--grau); }
.archiv__jahr { font-size: 1.1rem; margin: 2rem 0 .5rem; color: var(--grau); }

/* ---------- Detail ---------- */
.detail { max-width: 46rem; margin: 3rem 0; }
.detail__meta { color: var(--grau); display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.detail__teaser { font-size: 1.3rem; line-height: 1.45; }
.detail__bild { border-radius: var(--radius); margin: 1.5rem 0; }
.hinweis { background: #fff1d6; padding: .75rem 1rem; border-radius: 8px; }
.knopf { display: inline-block; background: var(--rot); color: #fff; font-weight: 700; padding: .75rem 1.5rem; border-radius: 99px; text-decoration: none; }
.knopf:hover { background: var(--lila); color: #fff; }

/* ---------- Projekte ---------- */
.bereiche__raster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.bereiche__raster a { background: var(--hell); border-radius: var(--radius); padding: 1.25rem; font-weight: 600; text-decoration: none; color: var(--text); min-height: 6rem; }
.bereiche__raster a:hover { background: #ece8f6; }

/* ---------- Fuß ---------- */
.fuss { background: #1d1530; color: #d8d4e6; margin-top: 5rem; padding: 2.5rem 0; font-size: .95rem; }
.fuss a { color: #fff; }
.fuss__raster { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.fuss__links { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
.fuss__copy { margin: 0; opacity: .7; }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .nav__burger { display: block; width: 2.25rem; height: 2.25rem; cursor: pointer; position: relative; }
  .nav__burger span, .nav__burger span::before, .nav__burger span::after {
    content: ""; position: absolute; left: .3rem; right: .3rem; height: 2px; background: #fff; }
  .nav__burger span { top: 50%; }
  .nav__burger span::before { top: -8px; left: 0; right: 0; }
  .nav__burger span::after  { top: 8px; left: 0; right: 0; }
  .nav ul { display: none; position: absolute; left: 0; right: 0; top: 4.5rem; flex-direction: column; gap: 0;
    background: #2a1450; padding: .5rem 1.5rem 1rem; z-index: 5; }
  .nav ul a { display: block; padding: .75rem 0; }
  .nav__toggle:checked ~ ul { display: flex; }
  .kopf { position: relative; }
  .einstiege { grid-template-columns: 1fr; }
  .bereiche__raster { grid-template-columns: 1fr 1fr; }
  .hero { padding: 3rem 1.5rem 5rem; }
}

/* ---------- Übergangsseite & Textseiten ---------- */
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; margin-top: -3rem; position: relative; }
.kachel { background: #fff; border-radius: var(--radius); padding: 1.5rem 1.6rem 1.7rem; box-shadow: 0 10px 30px rgba(40,20,80,.12); border-top: 4px solid var(--blau); }
.kachel--rot { border-top-color: var(--rot); }
.kachel--lila { border-top-color: var(--lila); }
.kachel h2 { margin: 0 0 .5rem; font-size: 1.35rem; }
.kachel p { margin: .4rem 0; color: var(--grau); }
.frist { display: inline-block; background: #fff1d6; color: #8a5a00; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; padding: .15rem .6rem; border-radius: 99px; }
.liste { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--linie); }
.liste li { padding: .8rem 0; border-bottom: 1px solid var(--linie); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.liste li a { flex: 1 1 28rem; }
.liste .stand { color: var(--grau); font-size: .95rem; white-space: nowrap; }
.kachel .knopf { margin-top: .6rem; }
.text { max-width: 46rem; margin: 3rem 0; }
.text h2 { font-size: 1.3rem; margin: 2rem 0 .5rem; }
.text dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.5rem; }
.text dt { font-weight: 600; }
.text dd { margin: 0; }
.text .stand { color: var(--grau); }
@media (max-width: 700px) { .text dl { grid-template-columns: 1fr; } .text dd { margin-bottom: .6rem; } }

/* ---------- Hinweisleiste, Seiten ---------- */
.hinweis-leiste { margin: 0; padding: .5rem 1.5rem; text-align: center; font-size: .92rem; background: #fff1d6; color: #5c3d00; }
.hinweis-leiste--vorschau { background: #e6eefc; color: #1d3f8f; }
.hinweis-leiste a { color: inherit; font-weight: 700; }
.liste__titel { flex: 1 1 28rem; }
.liste__titel small { color: var(--grau); }
.detail__text h2 { font-size: 1.35rem; margin: 2rem 0 .5rem; }
.einstiege { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---------- Logo ---------- */
.logo__bild { display: grid; place-items: center; width: 52px; height: 52px; background: #fff; border-radius: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.18); flex: none; }
.logo__bild img { width: 40px; height: 40px; }

/* ---------- Kompakte Kopfzeile beim Scrollen ---------- */
.mini {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  color: #fff;
  background: linear-gradient(90deg, #3a1766 0%, #4b1f7a 45%, #2b5fd0 100%);
  box-shadow: 0 4px 16px rgba(20, 10, 50, .25);
  transform: translateY(-110%); transition: transform .2s ease;
}
.mini--an { transform: none; }
.mini__leiste { display: flex; align-items: center; gap: 1rem; height: 56px; }
.mini__logo { flex: none; display: grid; place-items: center; }
.mini__logo img { width: 30px; height: 30px; background: #fff; border-radius: 8px; padding: 3px; box-sizing: content-box; }
.mini__titel { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini__nav ul { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; }
.mini__nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; padding: .2rem 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.mini__nav a:hover, .mini__nav a[aria-current="page"] { border-bottom-color: #fff; }
.mini__hoch { color: #fff; text-decoration: none; font-size: 1.2rem; line-height: 1; padding: .35rem .55rem; border: 1px solid rgba(255,255,255,.5); border-radius: 8px; }
.mini__hoch:hover { background: rgba(255,255,255,.15); color: #fff; }
[id] { scroll-margin-top: 72px; }
@media (prefers-reduced-motion: reduce) { .mini { transition: none; } }
@media (max-width: 1100px) { .mini__nav a { font-size: .85rem; } .mini__nav ul { gap: .9rem; } }
@media (max-width: 900px) {
  .mini__nav { position: static; }
  .mini__nav ul { display: none; position: absolute; left: 0; right: 0; top: 56px; flex-direction: column; gap: 0;
    background: #2a1450; padding: .5rem 1.5rem 1rem; }
  .mini__nav ul a { display: block; padding: .75rem 0; font-size: 1rem; }
  .mini__nav .nav__toggle:checked ~ ul { display: flex; }
}

/* ---------- Personen (Vorstand) ---------- */
.personen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.25rem; }
.person { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.75rem 1.25rem 1.5rem; text-align: center; display: flex; flex-direction: column; align-items: center; }
.person__bild {
  width: 136px; height: 136px; border-radius: 50%; padding: 4px; margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--lila), var(--blau) 60%, var(--rot));
}
.person__bild img, .person__initialen { width: 100%; height: 100%; border-radius: 50%; border: 3px solid #fff; }
.person__bild img { object-fit: cover; object-position: 50% 25%; }
.person__initialen { display: grid; place-items: center; background: var(--hell); color: var(--lila); font-size: 2.3rem; font-weight: 700; letter-spacing: .02em; }
.person__funktion { margin: 0; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--rot); }
.person__name { margin: .35rem 0 0; font-size: 1.15rem; line-height: 1.3; }
.person__institution { margin: .35rem 0 0; color: var(--grau); font-size: .95rem; }
.person__bio { margin: .75rem 0 0; color: var(--grau); font-size: .95rem; line-height: 1.5; }
