/*
 * Maklerbüro Elsner – Design System
 * Reines CSS mit CSS-Nesting und CSS-Variablen (kein Tailwind).
 * Hauptdekorationsfarbe: #006392. Hausschrift: Fira Sans.
 */

@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/fira-sans-400.woff2") format("woff2");
}

@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/fira-sans-500.woff2") format("woff2");
}

@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/fira-sans-600.woff2") format("woff2");
}

@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/fira-sans-700.woff2") format("woff2");
}

@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/fira-sans-800.woff2") format("woff2");
}

@font-face {
  font-family: "Fira Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/fira-sans-400-italic.woff2") format("woff2");
}

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

:root {
  color-scheme: light dark;
  /* Markenfarben – abgeleitet aus dem Logo */
  --blau-900: #013247;
  --blau-800: #01415d;
  --blau-700: #024f72;
  --blau-600: #006392; /* Hauptdekorationsfarbe */
  --blau-500: #1a7cad;
  --blau-300: #7fb4cf;
  --blau-100: #dceaf2;
  --blau-050: #f1f7fa;

  --sand-050: #faf9f6;
  --grau-100: #eceff1;
  --grau-300: #cdd6dc;
  --grau-600: #5b6b74;

  /* Semantische Tokens (Light Mode) */
  --hintergrund: #ffffff;
  --flaeche: var(--blau-050);
  --flaeche-stark: var(--blau-100);
  --karte: #ffffff;
  --text: #10222c;
  --text-leise: #4d626d;
  --linie: #dce5ea;
  --akzent: var(--blau-600);
  --akzent-kontrast: #ffffff;
  --akzent-leise: var(--blau-700);
  --fokus: var(--blau-500);

  /* Typografie */
  --font-titel: "Fira Sans", system-ui, sans-serif;
  --font-text: "Fira Sans", system-ui, sans-serif;
  --schrift-basis: 1.0625rem;
  --zeile: 1.7;

  /* Maße */
  --breite: 1180px;
  --breite-text: 68ch;
  --radius: 14px;
  --radius-gross: 22px;
  --abstand-sektion: clamp(2.25rem, 4.5vw, 4rem);
  --schatten: 0 1px 2px rgb(1 50 71 / 6%), 0 12px 30px -18px rgb(1 50 71 / 22%);
  --schatten-hoch: 0 2px 4px rgb(1 50 71 / 8%), 0 26px 50px -24px rgb(1 50 71 / 30%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --hintergrund: #0b1a22;
    --flaeche: #10242e;
    --flaeche-stark: #16303c;
    --karte: #12272f;
    --text: #eaf2f6;
    --text-leise: #a9bcc6;
    --linie: #22404d;
    --akzent: #4ea3ce;
    --akzent-kontrast: #05202c;
    --akzent-leise: #8ec6e2;
    --fokus: #6cb9e0;
  }
}

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

body {
  margin: 0;
  background: var(--hintergrund);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--schrift-basis);
  line-height: var(--zeile);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--akzent-leise);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;

  &:hover {
    color: var(--akzent);
  }
}

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--fokus);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-titel);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
}

h2 {
  font-size: clamp(1.65rem, 3.4vw, 2.35rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  font-weight: 600;
}

h4 {
  font-size: 1.05rem;
  font-weight: 600;
}

p {
  margin: 0 0 1.1em;
  max-width: var(--breite-text);
}

/* ---------- Layout-Bausteine ---------- */

.huelle {
  width: 100%;
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}

.sektion {
  padding-block: var(--abstand-sektion);

  &[data-flaeche="hell"] {
    background: var(--flaeche);
  }

  &[data-flaeche="blau"] {
    background: var(--blau-800);
    color: #eef6fa;

    & h2,
    & h3 {
      color: #ffffff;
    }

    & p {
      color: #cfe2ec;
    }
  }
}

.sektion-kopf {
  max-width: 62ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);

  & p {
    font-size: 1.1rem;
    color: var(--text-leise);
    margin-bottom: 0;
  }
}

.augenbraue {
  display: block;
  font-family: var(--font-titel);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--akzent);
  margin-bottom: 0.9rem;
}

.fliess {
  max-width: var(--breite-text);

  & > * + * {
    margin-top: 0.2rem;
  }

  & h2 {
    margin-top: 2.2rem;
  }

  & h3 {
    margin-top: 1.8rem;
  }
}

/* ---------- Buttons ---------- */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.1rem;
  padding: 0.65rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-titel);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;

  &:hover {
    transform: translateY(-1px);
  }

  &[data-stil="primaer"] {
    background: var(--akzent);
    color: var(--akzent-kontrast);

    &:hover {
      background: var(--blau-700);
      color: var(--akzent-kontrast);
    }
  }

  &[data-stil="sekundaer"] {
    background: transparent;
    border-color: var(--linie);
    color: var(--text);

    &:hover {
      border-color: var(--akzent);
      color: var(--akzent);
    }
  }

  &[data-stil="hell"] {
    background: #ffffff;
    color: var(--blau-800);

    &:hover {
      background: var(--blau-100);
      color: var(--blau-900);
    }
  }

  &[data-stil="rand-hell"] {
    background: transparent;
    border-color: rgb(255 255 255 / 45%);
    color: #ffffff;

    &:hover {
      border-color: #ffffff;
      color: #ffffff;
    }
  }
}

.knopf-reihe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-titel);
  font-weight: 600;
  text-decoration: none;
  color: var(--akzent);

  & span[aria-hidden] {
    transition: transform 0.2s ease;
  }

  &:hover span[aria-hidden] {
    transform: translateX(4px);
  }
}

/* ---------- Kopfbereich & Navigation ---------- */

.kopf {
  position: sticky;
  isolation: isolate;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--hintergrund) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linie);

  & > .huelle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.75rem;
  }
}

.marke {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);

  & img {
    width: 42px;
    height: 42px;
    border-radius: 9px;
  }

  & strong {
    display: block;
    font-family: var(--font-titel);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
  }

  & small {
    display: block;
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-leise);
  }
}

.hauptnav {
  & ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
  }

  & a {
    display: block;
    padding: 0.55rem 0.8rem;
    border-radius: 10px;
    font-family: var(--font-titel);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
    white-space: nowrap;

    &:hover {
      background: var(--flaeche);
      color: var(--akzent);
    }

    &[data-aktiv="true"] {
      color: var(--akzent);
    }
  }
}

.nav-gruppe {
  position: relative;

  & > .unternav {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    min-width: 17rem;
    padding: 0.5rem;
    background: var(--karte);
    border: 1px solid var(--linie);
    border-radius: var(--radius);
    box-shadow: var(--schatten-hoch);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition:
      opacity 0.18s ease,
      transform 0.18s ease,
      visibility 0.18s;
  }

  &:hover > .unternav,
  &:focus-within > .unternav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  & .unternav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
  }

  & .unternav a {
    font-weight: 500;
    white-space: normal;
  }
}

/* Mobiles Menü ohne JavaScript: details/summary */
.mobilmenue {
  display: none;

  & > summary {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--linie);
    border-radius: 999px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;

    &::-webkit-details-marker {
      display: none;
    }

    &::before {
      content: "";
      width: 1.25rem;
      height: 0.875rem;
      background:
        linear-gradient(currentColor, currentColor) top / 100% 2px no-repeat,
        linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
        linear-gradient(currentColor, currentColor) bottom / 100% 2px no-repeat;
    }
  }

  &[open] > summary::before {
    background:
      linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
  }
}

.kopf-kontakt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 1080px) {
  .hauptnav,
  .kopf-kontakt {
    display: none;
  }

  .mobilmenue {
    display: block;
  }
}

.mobilnav {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  max-block-size: calc(100dvh - 4.75rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid var(--linie);
  box-shadow: var(--schatten);
  background: var(--hintergrund);

  & ul {
    list-style: none;
    margin: 0;
    padding: 0.75rem 0 1.5rem;
  }

  & li + li {
    border-top: 1px solid var(--linie);
  }

  & a {
    display: block;
    padding: 0.95rem 0.25rem;
    font-family: var(--font-titel);
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
  }

  & .unterpunkt a {
    padding-left: 1.4rem;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--text-leise);
  }

  & .knopf-reihe {
    margin: 1rem 0 0.5rem;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--flaeche);
  border-bottom: 1px solid var(--linie);
  overflow: hidden;

  &::before {
    content: "";
    position: absolute;
    top: -6rem;
    right: -4rem;
    width: 22rem;
    height: 22rem;
    background: radial-gradient(circle, rgb(2 99 145 / 6%), transparent 70%);
    filter: blur(10px);
    pointer-events: none;
  }

  &::after {
    content: "";
    position: absolute;
    bottom: -8rem;
    right: 6rem;
    width: 18rem;
    height: 18rem;
    background: radial-gradient(circle, rgb(127 180 207 / 12%), transparent 70%);
    filter: blur(8px);
    pointer-events: none;
  }
}

.hero-raster {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: center;
  padding-block: clamp(2rem, 5vw, 4rem);
  padding-block-end: clamp(1.25rem, 2.5vw, 2rem);
}

.hero-text {
  & h1 {
    margin-bottom: 1.1rem;
  }

  & p {
    font-size: clamp(1.08rem, 1.7vw, 1.3rem);
    color: var(--text-leise);
    max-width: 46ch;
  }
}

.hero-augenbraue {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.augenbraue-linie {
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--akzent);
}

.hero-titel {
  font-family: var(--font-titel);
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.3rem;
}

.hero-akzent {
  position: relative;
  display: inline-block;
  color: var(--akzent);
}

.hero-unterstrich {
  position: absolute;
  left: 0;
  bottom: -0.18em;
  width: 100%;
  height: 0.42em;
  opacity: 0.22;
  color: var(--akzent);
}

.hero-bild {
  position: relative;
  border-radius: var(--radius-gross);

  & img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius-gross);
    box-shadow: var(--schatten-hoch);
  }
}

.hero-plakette {
  position: absolute;
  left: -1.25rem;
  bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  background: color-mix(in srgb, var(--karte) 92%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: var(--schatten-hoch);
}

.hero-plakette-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: var(--akzent);
  color: var(--akzent-kontrast);

  & svg {
    width: 1.4rem;
    height: 1.4rem;
  }
}

.hero-plakette-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;

  & strong {
    font-family: var(--font-titel);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
  }

  & small {
    font-family: var(--font-text);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-leise);
  }
}

@media (max-width: 900px) {
  .hero-raster {
    grid-template-columns: 1fr;
  }

  .hero-plakette {
    left: 0;
    bottom: 0.75rem;
  }
}

.seitenkopf {
  background: var(--flaeche);
  border-bottom: 1px solid var(--linie);
  padding-block: clamp(2rem, 4vw, 3rem);

  & p {
    font-size: 1.12rem;
    color: var(--text-leise);
    margin-bottom: 0;
  }
}

/* ---------- Karten & Raster ---------- */

.raster {
  display: grid;
  gap: clamp(1rem, 2vw, 1.6rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.raster[data-spalten="2"] {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

.karte {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: clamp(1.35rem, 2.4vw, 1.85rem);
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
  text-decoration: none;
  color: inherit;

  & h3 {
    margin-bottom: 0.35rem;
  }

  & p {
    color: var(--text-leise);
    margin-bottom: 0;
    max-width: none;
  }

  &[data-klickbar="true"]:hover {
    transform: translateY(-3px);
    border-color: var(--blau-300);
    box-shadow: var(--schatten-hoch);
  }

  & .karte-fuss {
    margin-top: auto;
    padding-top: 1.1rem;
    font-family: var(--font-titel);
    font-weight: 600;
    color: var(--akzent);
  }
}

.symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  margin-bottom: 0.9rem;
  border-radius: 12px;
  background: var(--flaeche-stark);
  color: var(--akzent);

  & svg {
    width: 1.4rem;
    height: 1.4rem;
  }
}

.merkmale {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;

  & li {
    position: relative;
    padding-left: 1.85rem;
    color: var(--text-leise);
  }

  & li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    border: 2px solid var(--akzent);
  }
}

.definitionen {
  margin: 0;

  & > div {
    padding: 1.4rem 0;
    border-top: 1px solid var(--linie);
  }

  & dt {
    font-family: var(--font-titel);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
  }

  & dd {
    margin: 0;
    color: var(--text-leise);
  }

  & dd p:last-child {
    margin-bottom: 0;
  }
}

.daten-tabelle {
  margin: 0;

  & > div {
    display: grid;
    grid-template-columns: 15rem 1fr;
    gap: 1rem;
    padding: 1.1rem 0;
    border-top: 1px solid var(--linie);
  }

  & dt {
    font-family: var(--font-titel);
    font-weight: 700;
  }

  & dd {
    margin: 0;
    color: var(--text-leise);
  }
}

@media (max-width: 700px) {
  .daten-tabelle > div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

/* ---------- Zwei-Spalten-Bereich ---------- */

.zweispaltig {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 3.5vw, 2.75rem);
  align-items: center;

  &[data-umgekehrt="true"] {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

@media (max-width: 900px) {
  .zweispaltig,
  .zweispaltig[data-umgekehrt="true"] {
    grid-template-columns: 1fr;
  }
}

.bildrahmen {
  position: relative;
  border-radius: var(--radius-gross);
  overflow: hidden;
  box-shadow: var(--schatten);

  & img {
    width: 100%;
    object-fit: cover;
  }
}

.platzhalter-marke {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 0.85rem 1.1rem;
  background: rgb(1 50 71 / 82%);
  color: #ffffff;
  font-family: var(--font-titel);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hinweis-platzhalter {
  padding: 1.1rem 1.25rem;
  border: 1px dashed var(--blau-300);
  border-radius: var(--radius);
  background: var(--flaeche);
  color: var(--text-leise);
  font-size: 0.98rem;

  & p:last-child {
    margin-bottom: 0;
  }
}

/* ---------- CTA-Band ---------- */

.cta-band {
  background: var(--blau-800);
  color: #ffffff;

  & .huelle {
    padding-block: clamp(2rem, 4vw, 3rem);
  }

  & h2 {
    color: #ffffff;
  }

  & p {
    color: #cfe2ec;
    font-size: 1.1rem;
    max-width: 58ch;
  }
}

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

.kontakt-kanaele {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

@media (max-width: 820px) {
  .kontakt-kanaele {
    grid-template-columns: 1fr;
  }
}

.kontakt-karte {
  position: relative;
  display: grid;
  grid-template-areas:
    "icon label"
    "icon wert"
    "icon pfeil";
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 1rem;
  row-gap: 0.15rem;
  padding: 1.4rem 1.5rem;
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--schatten);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;

  &:hover {
    transform: translateY(-3px);
    box-shadow: var(--schatten-hoch);
    border-color: var(--akzent);
  }
}

.kontakt-karte-icon {
  grid-area: icon;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: var(--flaeche-stark);
  color: var(--akzent);
}

.kontakt-karte-label {
  grid-area: label;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-leise);
  font-weight: 600;
}

.kontakt-karte-wert {
  grid-area: wert;
  font-family: var(--font-titel);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text);
  word-break: break-word;
}

.kontakt-karte-pfeil {
  grid-area: pfeil;
  justify-self: end;
  color: var(--akzent);
  font-weight: 700;
  font-size: 1.1rem;
}

.kontakt-anschrift {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.6rem 1.75rem;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius-gross);

  & h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
  }

  & address {
    font-style: normal;
    line-height: 1.75;
    color: var(--text);
  }

  & p {
    margin: 1rem 0 0;
    color: var(--text-leise);
    max-width: 60ch;
  }
}

.kontakt-anschrift-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: var(--flaeche-stark);
  color: var(--akzent);
}

@media (max-width: 600px) {
  .kontakt-anschrift {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

address {
  font-style: normal;
  line-height: 1.75;
}

/* ---------- Rechtliche Seiten ---------- */

.recht {
  & h2 {
    position: relative;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-left: 1.1rem;
    border-left: 4px solid var(--akzent);
  }

  & h3 {
    margin-top: 1.6rem;
    color: var(--akzent);
    font-size: 1.1rem;
  }

  & > p:first-of-type {
    margin-top: 0.5rem;
  }

  & address {
    display: block;
    padding: 1.25rem 1.5rem;
    background: var(--flaeche);
    border: 1px solid var(--linie);
    border-radius: var(--radius);
    margin: 1rem 0 1.5rem;
    line-height: 1.8;

    & a {
      font-weight: 600;
    }
  }

  & .daten {
    margin: 1.25rem 0 1.75rem;

    & > div {
      display: grid;
      grid-template-columns: 11rem 1fr;
      gap: 0.5rem 1.5rem;
      padding: 0.9rem 0;
      border-top: 1px solid var(--linie);

      &:first-child {
        border-top: none;
        padding-top: 0;
      }
    }

    & dt {
      font-family: var(--font-titel);
      font-weight: 700;
      font-size: 0.8rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--text-leise);
    }

    & dd {
      margin: 0;

      & a {
        font-weight: 600;
      }
    }
  }

  & ul {
    padding-left: 1.3rem;
    margin-bottom: 1.5rem;

    & li {
      margin-bottom: 0.55rem;
      color: var(--text-leise);
      max-width: var(--breite-text);
    }
  }

  & a {
    font-weight: 600;
  }
}

@media (max-width: 600px) {
  .recht .daten > div {
    grid-template-columns: 1fr;
    gap: 0.15rem;

    & dt {
      margin-bottom: 0.2rem;
    }
  }
}

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

.fuss {
  background: var(--blau-900);
  color: #c9dde8;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;

  & a {
    color: #e5f1f7;
    text-decoration: none;

    &:hover {
      color: #ffffff;
      text-decoration: underline;
    }
  }

  & h3 {
    color: #ffffff;
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
  }

  & ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
  }

  & .marke {
    color: #ffffff;

    & small {
      color: #9fc0d0;
    }
  }
}

.fuss-raster {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}

@media (max-width: 800px) {
  .fuss-raster {
    grid-template-columns: 1fr;
  }
}

.partner {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgb(255 255 255 / 14%);

  & h3 {
    color: #ffffff;
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
  }

  & ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem 2.5rem;
  }

  & a {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1rem;
    border-radius: 0.75rem;
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;

    &:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 18px rgb(0 0 0 / 25%);
      text-decoration: none;
    }
  }

  & img {
    height: 3rem;
    width: auto;
    max-width: 11rem;
    object-fit: contain;
  }
}

.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;
}

.fuss-unten {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 14%);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.9rem;
}

/* ---------- Zustandsseiten ---------- */

.zentrierte-seite {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1.25rem;
}

/* ---------- Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.einblenden {
  animation: einblenden 0.6s ease both;
}

@keyframes einblenden {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Wand mit Gesellschaftsnamen (Platzhalter für offizielle Logos) */
.logo-wand {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));

  & li {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 4.5rem;
    padding: 0.9rem 1rem;
    background: var(--karte);
    border: 1px solid var(--linie);
    border-radius: var(--radius-m, 12px);
    text-align: center;
    transition: border-color 0.2s ease, transform 0.2s ease;
  }

  & li:hover {
    border-color: var(--blau-600, #006392);
    transform: translateY(-2px);
  }

  & span {
    font-family: var(--font-titel);
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--text);
  }
}

.logo-wand-hinweis {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-leise, var(--text));
}

.ki-bild {
  margin: 0;

  & figcaption {
    position: absolute;
    inset-block-end: 0.65rem;
    inset-inline-end: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.62rem;
    border: 1px solid color-mix(in srgb, var(--linie) 70%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--hintergrund) 76%, transparent);
    backdrop-filter: blur(6px);
    font-size: 0.7rem;
    font-style: italic;
    color: var(--text-leise);
  }
}

/* Grafisches KI-Kennzeichen neben dem Hinweistext */
.ki-badge {
  flex: none;
  inline-size: 1.05rem;
  block-size: 1.05rem;
  color: var(--akzent);
  opacity: 0.8;

  & text {
    font-family: var(--font-text);
    fill: currentColor;
  }
}

.hero-bild {
  position: relative;

  & .ki-hinweis {
    position: absolute;
    inset-block-end: 0.75rem;
    inset-inline-end: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.62rem;
    border: 1px solid color-mix(in srgb, var(--linie) 70%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--hintergrund) 76%, transparent);
    backdrop-filter: blur(6px);
    font-size: 0.7rem;
    font-style: italic;
    color: var(--text-leise);
  }
}

/* Kennzeichnung auf kleinen Bildschirmen kompakter halten */
@media (max-width: 560px) {
  .ki-bild figcaption,
  .hero-bild .ki-hinweis {
    gap: 0.3rem;
    padding: 0.18rem 0.45rem;
    font-size: 0.62rem;
    inset-block-end: 0.45rem;
    inset-inline-end: 0.45rem;
  }

  .ki-badge {
    inline-size: 0.85rem;
    block-size: 0.85rem;
  }
}

/* Weniger Leerraum, wenn ein Foto eine Sektion abschließt */
.sektion:has(> .huelle .ki-bild:last-child) {
  padding-block-end: clamp(0.6rem, 1.2vw, 1rem);
}

.sektion:has(> .huelle .ki-bild:last-child) + .sektion {
  padding-block-start: clamp(1rem, 2vw, 1.6rem);
}

/* Foto für sich allein in einer Sektion */
.sektion:has(> .huelle > .ki-bild:only-child) {
  padding-block-start: clamp(0.6rem, 1.2vw, 1rem);
}

/* Responsive Feinschliff */
h1, h2, h3 {
  overflow-wrap: break-word;
  hyphens: auto;
}
img, svg, video { max-inline-size: 100%; block-size: auto; }
@media (max-width: 560px) {
  .knopf {
    white-space: normal;
    max-inline-size: 100%;
    text-align: center;
  }
  .knopf-reihe > .knopf { inline-size: 100%; justify-content: center; }
}

/* Zeitstrahl beruflicher Weg */
.zeitstrahl {
  --punkt: 0.9rem;
  position: relative;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  max-inline-size: var(--breite-text);

  &::before {
    content: "";
    position: absolute;
    inset-block: 0.4rem 0.4rem;
    inset-inline-start: calc(var(--punkt) / 2 - 1px);
    inline-size: 2px;
    background: var(--linie);
  }

  & > div {
    position: relative;
    padding: 1rem 1.25rem 1rem calc(var(--punkt) + 1.5rem);
    background: var(--flaeche);
    border-radius: var(--radius);
    margin-inline-start: 0;

    &::before {
      content: "";
      position: absolute;
      inset-inline-start: 0;
      inset-block-start: 1.35rem;
      inline-size: var(--punkt);
      block-size: var(--punkt);
      border-radius: 50%;
      background: var(--akzent);
      box-shadow: 0 0 0 4px var(--hintergrund);
    }
  }

  & dt {
    font-family: var(--font-titel);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--akzent);
    margin-block-end: 0.3rem;
  }

  & dd {
    margin: 0;
    line-height: 1.6;
  }
}
