/* Farben und Schrift – hier zentral anpassbar */
:root {
  --primär: #1f3a5f;      /* Dunkelblau */
  --akzent: #2a7f86;      /* Petrol */
  --text: #1d2430;
  --text-2: #5a6475;
  --hintergrund: #f6f7f9;
  --fläche: #ffffff;
  --linie: #e1e5eb;
  --radius: 12px;
  --schrift: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--schrift); color: var(--text);
  background: var(--hintergrund); line-height: 1.6; font-size: 17px;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
a { color: var(--akzent); }
img { max-width: 100%; display: block; }
.innen { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Kopfzeile */
.kopf { background: var(--primär); color: #fff; position: sticky; top: 0; z-index: 10; }
.kopf .innen { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: .2px; }
.logo span { font-weight: 400; opacity: .75; }
.menu { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.menu a { color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 8px; opacity: .9; }
.menu a:hover, .menu a[aria-current="page"] { background: rgba(255,255,255,.14); opacity: 1; }
#menu-knopf { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; padding: 6px 10px; }

/* Startseite */
.held { background: linear-gradient(135deg, var(--primär), var(--akzent)); color: #fff; padding: 64px 0 72px; }
.held h1 { margin: 0 0 12px; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.2; }
.held p { margin: 0; max-width: 640px; font-size: 1.1rem; opacity: .92; }
.knopf { display: inline-block; background: var(--akzent); color: #fff; text-decoration: none; padding: 11px 22px; border-radius: 999px; font-weight: 600; border: 0; font-size: 1rem; cursor: pointer; font-family: inherit; }
.knopf:hover { filter: brightness(1.08); }
.held .knopf { background: #fff; color: var(--primär); margin-top: 24px; }
.abschnitt { padding: 48px 0; }
.abschnitt > .innen > h2 { margin: 0 0 24px; font-size: 1.6rem; color: var(--primär); }

#profil-raster { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
#profil-raster .karte { flex: 0 1 300px; }
.karte { background: var(--fläche); border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.karte:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(20,40,70,.10); }
.karte img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; background: #dfe5ec; }
.karte-text { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.karte h3 { margin: 0; font-size: 1.08rem; color: var(--primär); }
.karte p { margin: 6px 0 0; font-size: .95rem; color: var(--text-2); }
.karte .funktion { color: var(--akzent); font-weight: 600; margin-top: 2px; }
.karte .mehr { margin-top: auto; padding-top: 12px; font-weight: 600; color: var(--akzent); font-size: .95rem; }

/* Profilseite */
.profil-kopf { background: var(--fläche); border-bottom: 1px solid var(--linie); padding: 40px 0; }
.profil-kopf .innen { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: center; }
.profil-kopf img { width: 220px; height: 220px; object-fit: cover; border-radius: 50%; background: #dfe5ec; border: 4px solid #fff; box-shadow: 0 6px 20px rgba(20,40,70,.12); }
.profil-kopf h1 { margin: 0; color: var(--primär); font-size: clamp(1.5rem, 3.5vw, 2.1rem); line-height: 1.25; }
.profil-kopf .funktion { margin: 6px 0 12px; color: var(--akzent); font-weight: 600; font-size: 1.08rem; }
.profil-kopf .kurz { margin: 0 0 18px; color: var(--text-2); max-width: 640px; }
.profil-inhalt { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 36px; padding-bottom: 56px; }
.box { background: var(--fläche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 24px; }
.box h2 { margin: 0 0 14px; font-size: 1.2rem; color: var(--primär); }
.box.breit { grid-column: 1 / -1; }

.schwerpunkte { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.schwerpunkte li { background: #e8f3f4; color: #1c5d63; padding: 6px 14px; border-radius: 999px; font-size: .95rem; }

.lebenslauf { list-style: none; padding: 0; margin: 0; }
.lebenslauf li { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--linie); }
.lebenslauf li:last-child { border-bottom: 0; }
.lebenslauf .zeit { color: var(--text-2); font-variant-numeric: tabular-nums; font-size: .95rem; }

.liste { list-style: none; padding: 0; margin: 0; }
.liste li { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--linie); }
.liste li:last-child { border-bottom: 0; }
.liste li > a:first-child { flex: 1; display: flex; align-items: center; gap: 12px; padding: 11px 4px; text-decoration: none; color: var(--text); min-width: 0; }
.liste li > a:first-child:hover .titel { color: var(--akzent); text-decoration: underline; }
.liste .titel { overflow-wrap: anywhere; }
.liste .host { margin-left: auto; color: var(--text-2); font-size: .88rem; white-space: nowrap; }
.typ { flex: none; font-size: .72rem; font-weight: 700; letter-spacing: .3px; padding: 3px 8px; border-radius: 6px; background: #eef1f5; color: var(--text-2); min-width: 84px; text-align: center; }
.typ-pdf { background: #fdecec; color: #b42318; }
.typ-doc, .typ-docx { background: #e8effc; color: #1d4ed8; }
.typ-ppt, .typ-pptx { background: #fdf0e6; color: #b54708; }
.typ-xls, .typ-xlsx { background: #e7f6ec; color: #067647; }
.laden { text-decoration: none; color: var(--text-2); padding: 6px 10px; border-radius: 8px; font-weight: 700; }
.laden:hover { background: #eef1f5; color: var(--primär); }

/* Kontakt */
.formular { background: var(--fläche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 28px; max-width: 680px; }
.feld { margin-bottom: 18px; }
.feld label, .feld .label { display: block; font-weight: 600; margin-bottom: 6px; }
.feld input, .feld textarea { width: 100%; padding: 11px 13px; font: inherit; border: 1px solid #c9d0da; border-radius: 8px; background: #fff; color: var(--text); }
.feld input:focus, .feld textarea:focus { outline: 2px solid var(--akzent); outline-offset: 1px; border-color: var(--akzent); }
.feld textarea { min-height: 170px; resize: vertical; }
.feld input.nur-lesen { background: #f1f4f7; color: var(--primär); font-weight: 600; letter-spacing: .5px; font-variant-numeric: tabular-nums; cursor: default; }
.feld input.nur-lesen:focus { outline: none; border-color: #c9d0da; }
.feld-hilfe { margin: 6px 0 0; font-size: .86rem; color: var(--text-2); }
.bemerkung { background: #fff8e6; border: 1px solid #f5d98a; color: #7a5a00; padding: 11px 13px; border-radius: 8px; }
.meldung .ref { display: block; margin-top: 6px; font-size: 1.15rem; font-weight: 700; letter-spacing: .5px; }
.einwilligung { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--text-2); margin-bottom: 20px; }
.einwilligung input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.meldung { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; max-width: 680px; }
.meldung.ok { background: #e7f6ec; color: #067647; border: 1px solid #abefc6; }
.meldung.fehler { background: #fdecec; color: #b42318; border: 1px solid #fecdca; }
.pflicht { color: #b42318; }
.hinweis-lokal { background: #fff8e6; border: 1px solid #f5d98a; color: #7a5a00; padding: 12px 16px; border-radius: 10px; max-width: 680px; margin-bottom: 18px; font-size: .93rem; }

/* Hinweis gutachterliche Stellungnahme */
.gutachten { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--linie); }
.gutachten summary { list-style: none; display: inline-flex; align-items: center; gap: 10px; }
.gutachten summary::-webkit-details-marker { display: none; }
.gutachten summary::after { content: "▾"; font-size: .9em; transition: transform .2s; }
.gutachten[open] summary::after { transform: rotate(180deg); }
.knopf-rand { background: #fff; color: var(--primär); border: 2px solid var(--primär); }
.knopf-rand:hover { background: var(--primär); color: #fff; filter: none; }
.gutachten-text { margin-top: 16px; background: #f1f6fa; border: 1px solid #d3e1ec; border-radius: 10px; padding: 16px 20px; }
.gutachten-text p { margin: 0 0 10px; }
.gutachten-text p:last-child { margin-bottom: 0; }
.gutachten-text ul { list-style: none; padding: 0; margin: 0 0 12px; }
.gutachten-text li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid #d3e1ec; }
.gutachten-text li:last-child { border-bottom: 0; }
.gutachten-text .preis { font-weight: 700; color: var(--primär); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gutachten-text .ust-hinweis { font-size: .9rem; color: var(--text-2); }

/* Textseiten */
.text { max-width: 760px; }
.text h1 { color: var(--primär); }
.text h2 { color: var(--primär); font-size: 1.2rem; margin-top: 28px; }

/* Fußzeile */
.fuss { background: #16263d; color: #c8d1dd; padding: 32px 0; font-size: .93rem; }
.fuss .innen { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.fuss a { color: #c8d1dd; text-decoration: none; }
.fuss a:hover { color: #fff; text-decoration: underline; }
.fuss ul { list-style: none; margin: 6px 0 0; padding: 0; }
.fuss li { margin: 3px 0; }
.fuss strong { color: #fff; }

/* Handy */
@media (max-width: 760px) {
  body { font-size: 16px; }
  #menu-knopf { display: block; }
  .menu { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--primär); flex-direction: column; padding: 8px 12px 14px; }
  .menu-offen .menu { display: flex; }
  .held { padding: 44px 0 52px; }
  .profil-kopf .innen { grid-template-columns: 1fr; text-align: center; gap: 18px; }
  .profil-kopf img { width: 160px; height: 160px; margin: 0 auto; }
  .profil-kopf .kurz { margin-left: auto; margin-right: auto; }
  .profil-inhalt { grid-template-columns: 1fr; }
  .lebenslauf li { grid-template-columns: 1fr; gap: 0; }
  .liste .host { display: none; }
  .typ { min-width: 0; }
  .formular { padding: 20px; }
  .gutachten summary { white-space: normal; text-align: left; }
}
