/* =============================================================================
   pixelwerk.media — Medienagentur in Friedrichshafen am Bodensee
   Konzept, Gestaltung, Text und Umsetzung dieser Website: pixelwerk.media
   https://www.pixelwerk.media · info@pixelwerk.media
   Alle Rechte an Gestaltung und Quelltext liegen bei pixelwerk.media.
   ============================================================================= */

.mitte--text {
  width: min(100% - 2*var(--rand), 780px);
  margin-inline: auto;
}

.rechtskopf {
  padding-block: 16px;
  border-bottom: 1px solid var(--linie-tief);
}
.rechtskopf__reihe {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
}

.rechtskopf__logo {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  min-height: 26px;
  flex: 0 0 auto;
}
.rechtskopf__logo img { height: 21px; width: auto; display: block; flex: 0 0 auto; }

.rechtskopf__menue {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.rechtskopf__menue a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.8125rem;
  color: var(--auf-tief-muted);
  text-decoration: none;
  transition: color .28s var(--ease, ease);
}
.rechtskopf__menue a:hover,
.rechtskopf__menue a[aria-current="page"] { color: #FFF; }

.rechtskopf .knopf {
  min-height: 42px;
  padding: 10px 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-radius: 999px;
}

@media (max-width: 719px) {
  .rechtskopf__menue { display: none; }
}

@media (max-width: 419px) {

  .rechtskopf .knopf { min-height: 38px; padding: 9px 13px; font-size: 0.75rem; }
}

.rechtsband .label { font-size: 0.75rem; }

.rechtsband { padding-block: clamp(38px, 5vw, 68px) clamp(30px, 4vw, 52px); }
.rechtsband h1 {
  font-size: clamp(1.9rem, 1.3rem + 2.8vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 10px 0 0;
  color: var(--auf-tief);
}
.rechtsband__vor {
  margin-top: 16px;
  max-width: 58ch;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--auf-tief-muted);
}
.rechtsband__stand {
  margin-top: 20px;
  font-size: 0.75rem;
  letter-spacing: .04em;
  color: var(--auf-tief-leise);
}

.rechtsleib { padding-block: clamp(34px, 4vw, 60px) clamp(44px, 5vw, 76px); }

.rechtsleib h2 {
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--text);
}
.rechtsleib h3 {
  font-size: 1.0625rem;
  line-height: 1.35;
  margin: 26px 0 8px;
  color: var(--text);
}
.rechtsleib h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 20px 0 6px;
  color: var(--text);
}
.rechtsleib p,
.rechtsleib li {
  font-size: 0.9375rem;
  line-height: 1.72;
  color: var(--text-muted);
}
.rechtsleib p { margin: 0 0 12px; }
.rechtsleib p:last-child { margin-bottom: 0; }

.rechtsleib ul,
.rechtsleib ol { margin: 0 0 12px; padding-left: 20px; }
.rechtsleib li { margin-bottom: 5px; }
.rechtsleib li:last-child { margin-bottom: 0; }
.rechtsleib li > ul,
.rechtsleib li > ol { margin-top: 5px; }

.rechtsleib strong,
.rechtsleib b { color: var(--text); font-weight: 700; }

.rechtsleib a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--linie-stark);
  transition: text-decoration-color .28s var(--ease, ease);
}
.rechtsleib a:hover { text-decoration-color: var(--text); }

.rechtsleib a[href^="mailto:"],
.rechtsleib a[href^="http"] { overflow-wrap: anywhere; }

.rechtsteil {
  padding-top: 26px;
  margin-top: 26px;
  border-top: 1px solid var(--linie);
  scroll-margin-top: 24px;
}
.rechtsteil:first-of-type { padding-top: 0; margin-top: 0; border-top: 0; }

.rechtsteil__nr {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.rechtsindex {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 34px;
}
.rechtsindex h2 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.rechtsindex ol {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 26px;
}
@media (max-width: 599px) { .rechtsindex ol { columns: 1; } }
.rechtsindex li {
  break-inside: avoid;
  margin: 0;
  counter-increment: rix;
}
.rechtsindex a {
  display: flex;
  gap: 9px;
  align-items: baseline;
  min-height: 30px;
  padding-block: 4px;
  font-size: 0.875rem;
  line-height: 1.4;
  text-decoration: none;
  color: var(--text-muted);
}
.rechtsindex a::before {
  content: counter(rix, decimal-leading-zero);
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  opacity: .5;
}
.rechtsindex ol { counter-reset: rix; }
.rechtsindex a:hover { color: var(--text); }
.rechtsindex a:hover::before { opacity: 1; }

.angaben { margin: 0 0 14px; }
.angaben > div {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 4px 22px;
  padding: 11px 0;
  border-bottom: 1px solid var(--linie);
}
.angaben > div:first-child { border-top: 1px solid var(--linie); }
.angaben dt {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
}
.angaben dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.angaben dd > span { display: block; }
@media (max-width: 559px) {
  .angaben > div { grid-template-columns: 1fr; gap: 3px; }
}

.angaben dd a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
}

.angaben dd.entfaellt { color: var(--text-muted); }
.angaben dd.entfaellt em {
  font-style: normal;
  display: block;
  font-size: 0.8125rem;
  margin-top: 2px;
  opacity: .8;
}

.offen {
  display: inline-block;
  padding: 2px 8px;
  border: 1px dashed #B3261E;
  border-radius: var(--radius);
  background: rgba(179, 38, 30, 0.05);
  color: #B3261E;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.5;
}
.offen::before {
  content: "offen · ";
  font-weight: 400;
  opacity: .75;
}

.offen--pruefen {
  border-style: solid;
  border-color: var(--linie-stark);
  background: var(--hell-2);
  color: var(--text);
}
.offen--pruefen::before { content: "zu bestätigen · "; }

.offenzaehler {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  border: 1px solid #B3261E;
  border-left-width: 3px;
  border-radius: var(--radius);
  background: rgba(179, 38, 30, 0.05);
  padding: 14px 16px;
  margin-bottom: 30px;
}
.offenzaehler b {
  font-size: 0.875rem;
  color: #B3261E;
}
.offenzaehler span {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.merke {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-left: 3px solid var(--text);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 0 0 14px;
}
.merke p:last-child { margin-bottom: 0; }
.merke__titel {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 7px;
}

.rechte {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1px;
  background: var(--linie);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 14px;
  list-style: none;
  padding: 0;
}
.rechte li {
  background: var(--weiss);
  padding: 15px 16px;
  margin: 0;
}
.rechte b {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 4px;
  color: var(--text);
}
.rechte span {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.fuss__unten [aria-current="page"] {
  color: #FFF;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media print {
  .rechtskopf, .fuss, .rechtsindex, .schnellwahl, .hoch, .skip-link { display: none !important; }
  .tief, .rechtsband { background: #FFF !important; color: #000 !important; }
  .rechtsband h1, .rechtsband__vor, .rechtsband__stand { color: #000 !important; }
  .deko { display: none !important; }
  .mitte--text { width: 100%; }
  .rechtsleib p, .rechtsleib li { color: #1A1A1A; font-size: 10.5pt; }
  .rechtsteil { break-inside: avoid-page; }
  .rechtsleib a { text-decoration: none; color: #000; }

  .rechtsleib a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  .offen { border-color: #000; color: #000; }
}

@media (pointer: coarse) {
  .rechtsteil p a,
  .rechtsteil dd a { padding-block: 6px; }
}
