/*
 * Design „Klar“ – Firmen-Website (www.drbruening.de). Grundlage ist dieselbe Datei der Produktseite
 * (/website/assistent/public/assets/klar.css); Änderungen am gemeinsamen Teil bitte in beiden nachziehen.
 * Vorlage: Designvorschläge Folienmaster.pptx, Vorschlag A.
 * Kontraste geprüft (WCAG AA): Hellblau #16A5FE nur für Icons und Flächen, als Schrift die dunklere Stufe --akzent-text.
 */

@font-face {
  font-family: "Carlito";
  src: url("/assets/fonts/carlito-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Carlito";
  src: url("/assets/fonts/carlito-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Carlito";
  src: url("/assets/fonts/carlito-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Carlito";
  src: url("/assets/fonts/carlito-latin-700-italic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --primary: #183884;
  --akzent: #16a5fe;
  --akzent-text: #0a6eb4;
  --text: #262626;
  --text-neben: #5f6368;
  --karte: #f3f5f8;
  --akzent-hell: #eaf6ff;
  --linie: #d0d5db;
  --grund: #ffffff;
  --offen-grund: #fff3c4;
  --offen-text: #5c4400;
  --fehler: #b3261e;

  --schrift: "Carlito", "Calibri", "Segoe UI", Arial, sans-serif;
  --breite: 72rem;
  --rand: clamp(1rem, 4vw, 2rem);
  --radius: 0.75rem;
}

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

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

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--grund);
}

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

a {
  color: var(--primary);
  text-underline-offset: 0.15em;
}
a:hover {
  color: var(--akzent-text);
}

:focus-visible {
  outline: 3px solid var(--akzent-text);
  outline-offset: 2px;
  border-radius: 2px;
}

h1,
h2,
h3,
h4 {
  color: var(--primary);
  line-height: 1.2;
  margin: 0 0 0.6em;
}
h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 1.6em;
}
h3 {
  font-size: 1.25rem;
}
p,
ul,
ol,
table {
  margin: 0 0 1em;
}

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

.springen {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  z-index: 10;
}
.springen:focus {
  top: 1rem;
  color: #fff;
}

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

/* ---------- Kopf ---------- */

.kopf {
  border-bottom: 1px solid var(--linie);
  background: var(--grund);
}
.kopf .inhalt-breite {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5.5rem;
}

.logo {
  display: block;
  flex-shrink: 0;
}
.logo img {
  display: block;
  height: 3.25rem;
  width: auto;
}
@media (max-width: 30rem) {
  .logo img {
    height: 2.5rem;
  }
}

.navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.navigation a {
  text-decoration: none;
  font-weight: 700;
  color: var(--primary);
}
.navigation a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--akzent);
}

.menue {
  display: none;
}

@media (max-width: 52rem) {
  .navigation--breit {
    display: none;
  }
  .menue {
    display: block;
    position: relative;
  }
  .menue summary {
    list-style: none;
    cursor: pointer;
    font-weight: 700;
    color: var(--primary);
    border: 1px solid var(--linie);
    border-radius: var(--radius);
    padding: 0.4rem 0.9rem;
  }
  .menue summary::-webkit-details-marker {
    display: none;
  }
  .menue[open] summary {
    background: var(--akzent-hell);
  }
  .menue .navigation {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    background: var(--grund);
    border: 1px solid var(--linie);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    min-width: 15rem;
    z-index: 5;
    box-shadow: 0 8px 24px rgb(24 56 132 / 12%);
  }
  .menue .navigation ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.9rem;
  }
}

/* ---------- Knöpfe ---------- */

.knopf {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 2px solid var(--primary);
  font-size: 1.05rem;
  font-family: inherit;
  cursor: pointer;
  line-height: 1.3;
}
.knopf:hover {
  background: #102a66;
  color: #fff;
}
.knopf--hell {
  background: transparent;
  color: var(--primary);
}
.knopf--hell:hover {
  background: var(--akzent-hell);
  color: var(--primary);
}
.navigation .knopf {
  color: #fff;
  padding: 0.5rem 1.1rem;
}

/* ---------- Abschnitte ---------- */

main {
  display: block;
}

.abschnitt {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.abschnitt--karte {
  background: var(--karte);
}
.abschnitt > .inhalt-breite > h2:first-child,
.abschnitt > .inhalt-breite > .kopfzeile + h2 {
  margin-top: 0;
}

.kopfzeile {
  display: block;
  color: var(--akzent-text);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.einleitung {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--text);
  max-width: 44rem;
}

.held {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.held__aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.held__hinweis {
  font-size: 0.95rem;
  color: var(--text-neben);
  margin-top: 1rem;
}
@media (max-width: 52rem) {
  .held {
    grid-template-columns: 1fr;
  }
}

.text-spalte {
  max-width: 46rem;
}
/* Schmale Textspalte linksbündig im normalen Seitenraster (nicht mittig) */
.inhalt-breite.text-spalte {
  max-width: var(--breite);
}
.inhalt-breite.text-spalte > * {
  max-width: 46rem;
}
/* ---------- Karten ---------- */

.karten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}
.karte {
  background: var(--grund);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.abschnitt--karte .karte {
  border-color: transparent;
}
.karte h3 {
  margin-top: 0.9rem;
  margin-bottom: 0.4rem;
}
.karte p:last-child {
  margin-bottom: 0;
}
.karte__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--akzent-hell);
  color: var(--akzent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.karte__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.kennzahlen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.kennzahl__wert {
  display: block;
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}
.kennzahl__text {
  color: var(--text-neben);
}

/* ---------- Listen, Tabellen, Fließtext ---------- */

.fliesstext {
  max-width: 48rem;
}
.fliesstext table {
  border-collapse: collapse;
  width: 100%;
  font-size: 1rem;
  display: block;
  overflow-x: auto;
}
.fliesstext th,
.fliesstext td {
  border: 1px solid var(--linie);
  padding: 0.5rem 0.7rem;
  text-align: left;
  vertical-align: top;
}
.fliesstext th {
  background: var(--karte);
  color: var(--primary);
}
.fliesstext blockquote {
  margin: 0 0 1em;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--akzent);
  background: var(--akzent-hell);
}

.haken {
  list-style: none;
  padding: 0;
}
.haken li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.5rem;
}
.haken li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.45em;
  width: 0.9rem;
  height: 0.5rem;
  border-left: 3px solid var(--akzent-text);
  border-bottom: 3px solid var(--akzent-text);
  transform: rotate(-45deg);
}
.grenzen li::before {
  content: "–";
  border: 0;
  transform: none;
  top: 0;
  color: var(--akzent-text);
  font-weight: 700;
}

/* ---------- Platzhalter ---------- */

mark.offen,
.offen {
  background: var(--offen-grund);
  color: var(--offen-text);
  padding: 0 0.25em;
  border-radius: 3px;
  font-weight: 700;
}
mark.feld {
  background: var(--akzent-hell);
  color: var(--primary);
  padding: 0 0.25em;
  border-radius: 3px;
}

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

.fuss {
  border-top: 1px solid var(--linie);
  background: var(--karte);
  color: var(--text-neben);
  font-size: 0.95rem;
  padding: 2.5rem 0 2rem;
  margin-top: 0;
}
.fuss a {
  color: var(--text-neben);
}
.fuss a:hover {
  color: var(--primary);
}
.fuss__links {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.fuss__spalten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.5rem 2rem;
  margin-bottom: 2rem;
}
.fuss__spalten h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin: 0 0 0.6rem;
}
.fuss__spalten ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.fuss__spalten li {
  margin-bottom: 0.35rem;
}
.fuss__spalten address {
  font-style: normal;
}
.fuss__unten {
  border-top: 1px solid var(--linie);
  padding-top: 1.25rem;
  margin: 0;
}
.fuss__hinweise p {
  margin: 0 0 0.5rem;
  max-width: 60rem;
}

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

@media print {
  body {
    font-size: 10.5pt;
    line-height: 1.45;
  }
  .kopf .navigation,
  .menue,
  .fuss,
  .springen,
  .nur-bildschirm {
    display: none !important;
  }
  .kopf {
    border-bottom: 1px solid var(--linie);
  }
  .abschnitt {
    padding: 0;
  }
  h1 {
    font-size: 20pt;
  }
  h2 {
    font-size: 13.5pt;
    break-after: avoid;
  }
  h3 {
    font-size: 11.5pt;
    break-after: avoid;
  }
  .fliesstext {
    max-width: none;
  }
  .fliesstext table {
    display: table;
    font-size: 9.5pt;
  }
  tr,
  li {
    break-inside: avoid;
  }
  a {
    color: inherit;
    text-decoration: none;
  }
}

/* ---------- Firmen-Website: Bilder, Zeitleiste, Kontakt ---------- */

.held__bild img,
.bild img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.held__bild img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: 0 12px 32px rgb(24 56 132 / 14%);
}

.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.galerie img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.galerie--breit {
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.zweispaltig > div > h2:first-child,
.zweispaltig > div > .kopfzeile + h2,
.zweispaltig > div > .kopfzeile + h1 {
  margin-top: 0;
}
.zweispaltig {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.kasten {
  background: var(--grund);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.abschnitt--karte .kasten {
  border-color: transparent;
}
.kasten h3:first-child,
.kasten h2:first-child {
  margin-top: 0;
}
.kasten ul:last-child,
.kasten p:last-child {
  margin-bottom: 0;
}

.schlagworte {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.schlagworte li {
  background: var(--akzent-hell);
  color: var(--primary);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.35rem 1rem;
}

.zeitleiste {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0 0.45rem;
  border-left: 3px solid var(--akzent-hell);
}
.zeitleiste li {
  position: relative;
  padding: 0 0 1.25rem 1.6rem;
}
.zeitleiste li:last-child {
  padding-bottom: 0;
}
.zeitleiste li::before {
  content: "";
  position: absolute;
  left: -0.62rem;
  top: 0.35em;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: var(--akzent);
  border: 3px solid var(--grund);
}
.abschnitt--karte .zeitleiste li::before {
  border-color: var(--karte);
}
.zeitleiste strong {
  color: var(--primary);
}

.gruss {
  margin-top: 1.5rem;
}
.gruss__name {
  font-weight: 700;
  color: var(--primary);
}

.band {
  background: var(--primary);
  color: #fff;
}
.band h2 {
  color: #fff;
  margin-top: 0;
}
.band p {
  max-width: 44rem;
}
.band a {
  color: #fff;
}
.band .knopf--weiss,
.knopf--weiss {
  background: #fff;
  border-color: #fff;
  color: var(--primary);
}
.band .knopf--weiss:hover,
.knopf--weiss:hover {
  background: var(--akzent-hell);
  border-color: var(--akzent-hell);
  color: var(--primary);
}
.band .held__aktionen {
  align-items: center;
}

.kontaktliste {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1.25rem;
}
.kontaktliste li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  align-items: start;
}
.kontaktliste h2 {
  font-size: 1.2rem;
  margin: 0.15rem 0 0.2rem;
}
.kontaktliste p,
.kontaktliste address {
  margin: 0;
  font-style: normal;
}

.publikationen h2 {
  margin-top: 2em;
}
.publikationen h3 {
  color: var(--akzent-text);
  font-size: 1.1rem;
  margin: 1.4em 0 0.5em;
}
.publikationen p {
  padding-left: 1rem;
  border-left: 3px solid var(--karte);
}

.fliesstext h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
}

.karte--link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.karte--link:hover {
  color: inherit;
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgb(24 56 132 / 10%);
}
.karte--link h3 {
  color: var(--primary);
}
.karte__mehr {
  display: inline-block;
  margin-top: 0.6rem;
  font-weight: 700;
  color: var(--akzent-text);
}
.karten > li {
  list-style: none;
}

.zeitleiste + p {
  margin-top: 1.5rem;
}
