/* Gestaltung nach DESIGN.md (Dr. Maximilian Ganslmeier)
   Schriften lokal eingebunden, keine externen Anfragen. */

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Poppins-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("fonts/Poppins-Bold.ttf") format("truetype");
}

:root {
  --aubergine: #3A1F5C;
  --gruen: #A2C516;
  --pink: #E6398B;
  --hell: #F4F7E8;
  --weiss: #FFFFFF;
  --text: #24123A;
  --rand: 24px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--weiss);
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.12;
  margin: 0;
  text-align: left;
}
h1 { font-size: clamp(38px, 7vw, 68px); }
h2 { font-size: clamp(30px, 5vw, 46px); }
h3 { font-size: 22px; line-height: 1.25; }

p { margin: 0 0 16px; max-width: 46em; }

a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--rand);
}

/* Kopfzeile */
.kopf {
  background: var(--aubergine);
  color: var(--weiss);
}
.kopf .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.kopf .name {
  font-weight: 800;
  text-decoration: none;
  font-size: 18px;
}
.kopf nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: 16px;
}
.kopf nav a { text-decoration: none; }
.kopf nav a:hover { text-decoration: underline; }

/* Marke und Balken */
.marke {
  display: inline-block;
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.3;
  margin-bottom: 24px;
}
.marke-pink { background: var(--pink); color: var(--weiss); }
.marke-gruen { background: var(--gruen); color: var(--text); }

.balken {
  display: block;
  /* Verhältnis wie in DESIGN.md (120 × 16 bei 1080 px), auf dem Handy kleiner */
  width: clamp(72px, 10vw, 120px);
  height: clamp(10px, 1.3vw, 16px);
  margin: 0 0 24px;
}
.balken-gruen { background: var(--gruen); }
.balken-pink { background: var(--pink); margin: 24px 0 24px; }

/* Abschnitte */
section { padding: 72px 0; }
.dunkel { background: var(--aubergine); color: var(--weiss); }
.hell { background: var(--hell); }

/* Einstieg */
.einstieg { padding: 48px 0 72px; }
.einstieg .raster {
  display: grid;
  gap: 40px;
  align-items: end;
}
.einstieg .rolle {
  font-size: 20px;
  margin-top: 24px;
}
@media (min-width: 860px) {
  .einstieg .raster { grid-template-columns: 1.1fr 0.9fr; }
}

/* Fotos und Platzhalter */
.foto {
  width: 100%;
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--hell);
  color: var(--text);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  font-weight: 800;
  font-size: 16px;
}
.foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dunkel .foto { background: var(--hell); }
.hell .foto { background: var(--weiss); }
.foto-quer { aspect-ratio: 3 / 2; }

/* Zitat */
.zitat {
  font-weight: 800;
  font-size: clamp(26px, 4.2vw, 40px);
  line-height: 1.2;
  margin: 0 0 16px;
  max-width: 22em;
}
.zitat-quelle { font-size: 17px; }

/* Über mich */
.zwei {
  display: grid;
  gap: 40px;
}
@media (min-width: 860px) {
  .zwei { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* Themen */
.themen {
  display: grid;
  gap: 24px;
  margin-top: 16px;
}
@media (min-width: 720px) {
  .themen { grid-template-columns: 1fr 1fr; }
}
.thema {
  background: var(--weiss);
  padding: 32px;
}
.thema h3 { margin-bottom: 16px; }
.thema p { font-size: 17px; margin: 0; }
.hinweis { font-size: 16px; margin-top: 32px; }

/* Ämter */
.liste {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 0;
}
.liste li {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 4px solid var(--aubergine);
}
.liste li:last-child { border-bottom: 4px solid var(--aubergine); }
.liste .jahr { font-weight: 800; }
@media (max-width: 520px) {
  .liste li { grid-template-columns: 1fr; gap: 0; }
}
.unterliste-titel { margin-top: 48px; margin-bottom: 0; }

/* Kontakt */
.kontakt-wege {
  display: grid;
  justify-items: start;
  gap: 16px;
  margin-top: 8px;
}
.knopf {
  display: inline-block;
  background: var(--gruen);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  padding: 16px 24px;
  font-size: 18px;
  word-break: break-word;
}
.knopf:hover { text-decoration: underline; }
.knopf-hell { background: var(--weiss); }

/* Fußzeile */
.fuss {
  background: var(--text);
  color: var(--weiss);
  padding: 32px 0;
  font-size: 16px;
}
.fuss .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}
.fuss nav { display: flex; gap: 24px; }

/* Rechtstexte */
.recht { padding: 48px 0 72px; }
.recht h1 { font-size: clamp(28px, 7vw, 52px); hyphens: auto; overflow-wrap: anywhere; }
.recht h2 { font-size: 24px; margin: 40px 0 12px; }
.recht h3 { font-size: 19px; margin: 24px 0 8px; }
.recht p, .recht li { font-size: 17px; }
.recht ul { padding-left: 1.2em; margin: 0 0 16px; }

.platzhalter {
  background: var(--pink);
  color: var(--weiss);
  font-weight: 800;
  padding: 0 6px;
}

:focus-visible { outline: 4px solid var(--pink); outline-offset: 2px; }

/* Banner nach Layout 1 */
.banner { position: relative; background: var(--aubergine); }
.banner-foto {
  display: block;
  width: 100%;
  height: clamp(340px, 62vh, 680px);
  object-fit: cover;
  object-position: 55% 30%;
}
.banner .marke-pos {
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
}
.banner-text { padding-top: 40px; padding-bottom: 64px; color: var(--weiss); }
.banner-text .rolle { font-size: 20px; margin-top: 24px; }

/* Fotos in Abschnitten */
.bild {
  width: 100%;
  display: block;
  border-radius: 32px;
  object-fit: cover;
}
.bild-quer { aspect-ratio: 3 / 2; }
.bild-hoch { aspect-ratio: 4 / 5; }
.bilderreihe {
  display: grid;
  gap: 16px;
  margin-top: 40px;
  grid-template-columns: 1fr 1fr;
}
.bilderreihe .bild { aspect-ratio: 4 / 5; height: auto; }
.bilderreihe .bild:first-child { grid-column: 1 / -1; aspect-ratio: 3 / 2; object-position: 55% 40%; }
@media (min-width: 860px) {
  .bilderreihe { grid-template-columns: 1fr 1fr 1fr; }
  .bilderreihe .bild:first-child { grid-column: auto; aspect-ratio: 4 / 5; }
}
.zitat-text { max-width: 46em; font-size: 18px; }

/* lange Links in Rechtstexten umbrechen */
.recht a, .recht p, .recht li { overflow-wrap: anywhere; }
