/* ==========================================================================
   Synervit – statische Website
   Ein einziges Stylesheet, keine externen Abhängigkeiten, keine Cookies.
   ========================================================================== */

:root {
  --ink:          #16232e;
  --ink-soft:     #48606f;
  --ink-faint:    #6b8090;
  --line:         #dde6ea;
  --line-soft:    #eef3f5;
  --bg:           #ffffff;
  --bg-tint:      #f5f9fa;
  --brand:        #0f6b78;
  --brand-dark:   #0a4f59;
  --brand-light:  #e3f1f3;
  --accent:       #b4632a;
  --radius:       10px;
  --shadow:       0 1px 2px rgba(22, 35, 46, .05), 0 6px 20px rgba(22, 35, 46, .06);
  --wrap:         62rem;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
}

/* --- Reset ---------------------------------------------------------------- */

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand); text-underline-offset: .15em; }
a:hover { color: var(--brand-dark); }
a:focus-visible,
button:focus-visible,
summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 0; top: -100%;
  background: var(--brand); color: #fff; padding: .7rem 1.1rem;
  z-index: 100; text-decoration: none; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { top: 0; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }

/* --- Kopfbereich ---------------------------------------------------------- */

.masthead { border-bottom: 1px solid var(--line); background: var(--bg); }

/* Kopfgrafik mit Titel darauf.
   Die Datei assets/img/header-formel.jpg liegt als Hintergrund darunter; der
   dunkle Verlauf davor sorgt dafür, dass die weiße Schrift ausreichend
   Kontrast hat (gemessen 5,1:1, gefordert 4,5:1). Fehlt die Bilddatei,
   bleibt der Farbverlauf stehen – es erscheint kein kaputtes Bildsymbol.
   Bild austauschen: assets/img/header-formel.jpg ersetzen. */
.masthead__banner {
  display: flex; align-items: center;
  min-height: clamp(104px, 13vw, 158px);
  background-color: var(--brand);
  background-image:
    linear-gradient(rgba(10, 79, 89, .38), rgba(10, 79, 89, .52)),
    url("../img/header-formel.jpg");
  background-repeat: no-repeat;
  background-size: cover, cover;
  background-position: center, center;
}

.masthead__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 1.35rem; width: 100%;
}

.brand { text-decoration: none; color: inherit; display: block; }
.brand__name {
  display: block; font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.125rem);
  font-weight: 700; letter-spacing: -.02em; line-height: 1.1;
  color: #fff; text-shadow: 0 1px 3px rgba(4, 40, 46, .35);
}
.brand__tagline {
  display: block; font-size: clamp(.9375rem, .88rem + .2vw, 1.0625rem);
  color: rgba(255, 255, 255, .94); margin-top: .25rem;
  text-shadow: 0 1px 3px rgba(4, 40, 46, .35);
}
.brand:hover .brand__name,
.brand:hover .brand__tagline { color: #fff; text-decoration: underline; }
.brand:focus-visible { outline-color: #fff; }

.masthead__nav { background: var(--bg); }

/* --- Navigation (ohne JavaScript) ----------------------------------------- */

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }

/* Menü-Knopf steht auf der Kopfgrafik, daher weiß auf halbtransparent. */
.nav-button {
  display: none; align-items: center; gap: .5rem; cursor: pointer; flex: none;
  padding: .55rem .85rem; border: 1px solid rgba(255, 255, 255, .55);
  border-radius: var(--radius); font-size: .9375rem; font-weight: 600;
  color: #fff; background: rgba(255, 255, 255, .12); user-select: none;
}
.nav-button:hover { border-color: #fff; background: rgba(255, 255, 255, .22); }
.nav-button:focus-visible { outline-color: #fff; }
.nav-button__bars { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-button__bars::before,
.nav-button__bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor;
}
.nav-button__bars::before { top: -6px; }
.nav-button__bars::after  { top: 6px; }

.nav__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap;
}
.nav__link {
  display: block; padding: .8rem .6rem; text-decoration: none;
  color: var(--ink-soft); font-weight: 600; font-size: .9375rem;
  border-bottom: 3px solid transparent; white-space: nowrap;
}
.nav__link:hover { color: var(--brand); background: var(--bg-tint); }
.nav__link[aria-current="page"] { color: var(--brand-dark); border-bottom-color: var(--brand); }
.nav__item--sub .nav__link { font-weight: 500; }
.nav__item--sub .nav__link::before {
  content: "›"; margin-right: .35rem; color: var(--ink-faint);
}

@media (max-width: 60rem) {
  .nav-button { display: inline-flex; }
  .nav {
    display: grid; grid-template-rows: 0fr;
    transition: grid-template-rows .2s ease;
  }
  .nav > .nav__inner { overflow: hidden; }
  .nav-toggle:checked ~ .masthead__nav .nav { grid-template-rows: 1fr; }
  .nav__list { flex-direction: column; gap: 0; padding-block: .4rem; }
  .nav__link { padding: .7rem .25rem; border-bottom: 1px solid var(--line-soft); }
  .nav__link[aria-current="page"] { border-bottom-color: var(--line-soft); color: var(--brand); }
  .nav__item--sub .nav__link { padding-left: 1.25rem; }
  .nav__item:last-child .nav__link { border-bottom: 0; }
}

/* --- Inhalt --------------------------------------------------------------- */

.main { padding-block: 2.75rem 4rem; }

h1 {
  font-size: clamp(1.875rem, 1.35rem + 1.9vw, 2.5rem);
  line-height: 1.18; letter-spacing: -.022em; font-weight: 700;
  margin: 0 0 1.4rem; color: var(--brand-dark);
}
h1::after {
  content: ""; display: block; width: 3rem; height: 3px;
  background: var(--accent); border-radius: 2px; margin-top: 1rem;
}

h2 {
  font-size: 1.375rem; line-height: 1.3; letter-spacing: -.012em;
  font-weight: 700; margin: 2.5rem 0 .9rem; color: var(--brand-dark);
}
h3 {
  font-size: 1.0938rem; line-height: 1.4; font-weight: 700;
  margin: 2rem 0 .6rem; color: var(--ink);
}

p { margin: 0 0 1.15rem; }
p.lead { font-size: 1.25rem; color: var(--ink-soft); }
p.section-intro { margin-top: 2rem; font-weight: 600; color: var(--ink-soft); }
p.footnote, .footnote { font-size: .9062rem; color: var(--ink-faint); line-height: 1.6; }

ul, ol { margin: 0 0 1.15rem; padding-left: 1.35rem; }
li { margin-bottom: .45rem; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

strong { font-weight: 700; }

/* Bild rechts im Fließtext */
.figure { margin: 0 0 1.25rem; }
.figure--right img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (min-width: 42rem) {
  .figure--right { float: right; margin: .35rem 0 1.25rem 1.75rem; max-width: 300px; }
}

/* --- Tabelle -------------------------------------------------------------- */

.table-wrap { overflow-x: auto; margin: 1.75rem 0 1.25rem; }

table {
  border-collapse: collapse; width: 100%; min-width: 32rem;
  font-size: .9688rem;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
thead th {
  background: var(--brand-light); color: var(--brand-dark);
  text-align: left; font-weight: 700; font-size: .9062rem;
  letter-spacing: .01em; padding: .8rem 1rem; border-bottom: 1px solid var(--line);
}
thead th:not(:first-child), tbody td { text-align: right; }
tbody th {
  text-align: left; font-weight: 600; color: var(--ink);
}
tbody th, tbody td {
  padding: .65rem 1rem; border-bottom: 1px solid var(--line-soft);
  font-variant-numeric: tabular-nums;
}
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--bg-tint); }
tbody th.indent { padding-left: 2rem; font-weight: 400; color: var(--ink-soft); }

/* --- Kartenraster auf der Startseite -------------------------------------- */

.cards {
  display: grid; gap: 1rem; margin-top: 3rem; clear: both;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.card {
  display: block; padding: 1.25rem 1.35rem; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.card__title {
  display: block; font-weight: 700; color: var(--brand-dark); margin-bottom: .3rem;
}
.card__text { display: block; font-size: .9375rem; color: var(--ink-soft); line-height: 1.55; }

/* --- PZN ------------------------------------------------------------------ */

.pzn-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.pzn-list li {
  padding: 1rem 1.25rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg-tint); margin-bottom: .75rem;
}
.pzn {
  font-variant-numeric: tabular-nums; font-weight: 700; color: var(--brand-dark);
  letter-spacing: .02em;
}

/* --- Adressen / Kontakt --------------------------------------------------- */

.address-grid {
  display: grid; gap: 1rem; margin: 1.5rem 0 2rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}
.address-card {
  font-style: normal; padding: 1.15rem 1.3rem; line-height: 1.65;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-tint);
  font-size: .9688rem;
}
.address-card strong { color: var(--brand-dark); }

.contact-grid {
  display: grid; gap: 1.25rem; margin-top: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}
.contact-card {
  padding: 1.5rem 1.6rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg-tint);
}
.contact-card h2 { margin-top: 0; font-size: 1.125rem; }
.contact-card address { font-style: normal; line-height: 1.7; margin-bottom: 1rem; }

.contact-dl {
  display: grid; grid-template-columns: auto 1fr; gap: .3rem .9rem;
  margin: 0; font-size: .9688rem;
}
.contact-dl dt { font-weight: 600; color: var(--ink-faint); }
.contact-dl dd { margin: 0; }

.pdf-list { list-style: none; padding: 0; margin: 0; }
.pdf-list li { margin-bottom: .65rem; }
.pdf-list a { font-weight: 600; }
.pdf-list a::before { content: "PDF";
  display: inline-block; font-size: .6875rem; font-weight: 700; letter-spacing: .04em;
  background: var(--accent); color: #fff; padding: .1rem .35rem;
  border-radius: 3px; margin-right: .5rem; vertical-align: .1em;
}

address.impressum { font-style: normal; line-height: 1.8; font-size: 1.0938rem; }

/* --- Studien -------------------------------------------------------------- */

.study {
  padding-top: 2rem; margin-top: 2rem; border-top: 1px solid var(--line);
}
.study h2 { margin-top: 0; font-size: 1.1875rem; line-height: 1.4; }
.study__source {
  font-size: .9062rem; color: var(--ink-faint); margin-bottom: 1.1rem;
  padding-left: .9rem; border-left: 3px solid var(--brand-light);
}
.study__link { font-size: .9375rem; word-break: break-word; }
.refs { font-size: .9375rem; color: var(--ink-soft); }
.refs li { margin-bottom: .5rem; }

/* --- Fußbereich ----------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line); background: var(--bg-tint);
  padding-block: 2.25rem; margin-top: auto;
  font-size: .9375rem; color: var(--ink-soft);
}
.footer__inner {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between;
}
.footer__nav { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.35rem; margin: 0; padding: 0; }
.footer__nav li { margin: 0; }
.footer__nav a { text-decoration: none; font-weight: 600; }
.footer__nav a:hover { text-decoration: underline; }
.footer__meta { margin: 0; color: var(--ink-faint); }

body { min-height: 100vh; display: flex; flex-direction: column; }
.main { flex: 1 0 auto; }

/* --- Druck ---------------------------------------------------------------- */

@media print {
  .masthead__banner, .nav, .nav-button, .skip-link, .cards { display: none; }
  body { font-size: 11pt; color: #000; }
  a { color: #000; text-decoration: underline; }
  .study { break-inside: avoid; }
}
