:root {
  color-scheme: dark;
  --bg: #09111f;
  --bg-soft: #0d1728;
  --surface: #101d31;
  --surface-2: #13243d;
  --surface-3: #172c49;
  --line: #233856;
  --line-strong: #355684;
  --text: #e8eef8;
  --text-soft: #b1c0d8;
  --text-muted: #89a0c0;
  --brand: #5d93e6;
  --brand-strong: #79a9ef;
  --brand-deep: #2f5fa7;
  --brand-glow: rgba(93, 147, 230, 0.18);
  --success: #82c29a;
  --shadow: 0 18px 40px rgba(2, 8, 18, 0.35);
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --content-width: 1120px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  line-height: 1.65;
  font-weight: 400;
  background:
    radial-gradient(circle at top right, rgba(93, 147, 230, 0.18), transparent 24%),
    radial-gradient(circle at left 20%, rgba(53, 86, 132, 0.18), transparent 30%),
    linear-gradient(180deg, #07101d 0%, #0b1525 35%, #09111f 100%);
}

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

p,
ul,
ol {
  margin-top: 0;
}

p {
  margin-bottom: 0.95rem;
  color: var(--text-soft);
  font-weight: 400;
}

ul,
ol {
  margin: 0.35rem 0 1.1rem 1.35rem;
  padding: 0;
}

li {
  margin: 0.28rem 0;
  color: var(--text-soft);
  font-weight: 400;
}

h1,h2,h3,h4,h5,h6 {
  margin-top: 0;
  margin-bottom: 0.6em;
  color: var(--text);
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.2;
  font-weight: 700;
}

h3 {
  font-size: 1.08rem;
  line-height: 1.3;
  font-weight: 700;
}

strong {
  color: var(--text);
  font-weight: 700;
}

a {
  color: var(--brand-strong);
  text-decoration: none;
  text-underline-offset: 0.18em;
  font-weight: 400;
}

a:hover,
a:focus-visible {
  color: #a8c6f6;
  text-decoration: underline;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid rgba(121, 169, 239, 0.22);
  background:
    linear-gradient(135deg, rgba(9, 17, 31, 0.96), rgba(13, 23, 40, 0.96)),
    linear-gradient(180deg, #0c1730, #0a1323);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 30%, rgba(121, 169, 239, 0.16), transparent 18%),
    linear-gradient(90deg, transparent 0, transparent 62%, rgba(93, 147, 230, 0.06) 100%);
  pointer-events: none;
}

.header-inner,
.tab-nav ul,
.content,
.footer-inner {
  width: min(100% - 32px, var(--content-width));
  margin-inline: auto;
}

.header-inner {
  position: relative;
  z-index: 1;
  padding: 18px 0 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
}

.site-kicker {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-strong);
  font-weight: 400;
}

.site-header h1 {
  margin: 0;
  max-width: min(78%, 24ch);
}

.header-copy {
  max-width: 84%;
}

.site-title-main {
  display: block;
}

.site-title-sub {
  display: block;
  margin-top: 0.72rem;
  font-size: 2.18rem;
  line-height: 1.24;
  font-weight: 700;
  color: var(--text);
}

.header-logo {
  justify-self: end;
  align-self: start;
  width: min(23.1vw, 273px);
  margin-top: 0;
}

.header-logo img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 22px rgba(2, 8, 18, 0.16));
}

.tab-nav {
  position: relative;
  z-index: 1;
  border-top: 2px solid rgba(121, 169, 239, 0.2);
  background: rgba(7, 15, 28, 0.72);
  backdrop-filter: blur(8px);
}

.tab-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tab-nav li {
  margin: 0;
}

.tab-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  margin: 10px 0;
  border-radius: 999px;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tab-nav a:hover,
.tab-nav a:focus-visible {
  background: rgba(93, 147, 230, 0.12);
  border-color: rgba(121, 169, 239, 0.2);
  color: var(--text);
  text-decoration: none;
}

.tab-nav a.is-active {
  color: #fff;
  background: linear-gradient(180deg, rgba(93, 147, 230, 0.24), rgba(47, 95, 167, 0.28));
  border-color: rgba(121, 169, 239, 0.3);
  box-shadow: inset 0 0 0 1px rgba(121, 169, 239, 0.1), 0 8px 24px rgba(8, 17, 31, 0.2);
}

.content {
  padding: 28px 0 0;
}

.content-panel {
  display: none;
}

.content-panel.is-active {
  display: block;
}

.content-card {
  background: linear-gradient(180deg, rgba(16, 29, 49, 0.96), rgba(12, 23, 40, 0.98));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.content-card::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-strong));
}

.content-card__body {
  padding: 34px 38px 38px;
}

.content-card__body > p,
.content-card__body > ul,
.content-card__body > ol {
  max-width: 74ch;
}

.content-card__body h2 {
  margin-bottom: 1.25rem;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid rgba(121, 169, 239, 0.22);
}

.content-card__body h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: 1.02rem;
}

.offer-list {
  display: grid;
  gap: 16px;
  margin-top: 1.35rem;
}

.offer-item {
  padding: 18px 20px 18px;
  border: 2px solid rgba(121, 169, 239, 0.24);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(19, 36, 61, 0.72), rgba(14, 26, 44, 0.82));
  box-shadow: 0 10px 24px rgba(2, 8, 18, 0.12);
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.offer-item:hover {
  border-color: rgba(121, 169, 239, 0.28);
  background: linear-gradient(180deg, rgba(22, 40, 67, 0.82), rgba(14, 26, 44, 0.94));
  transform: translateY(-1px);
}

.offer-item h3 {
  padding-left: 0;
  border-left: 0;
  color: var(--text);
}

.offer-item p:last-child,
.offer-item ul:last-child {
  margin-bottom: 0;
}

.content-card__body p:last-child,
.content-card__body ul:last-child,
.content-card__body ol:last-child {
  margin-bottom: 0;
}

.link-list {
  list-style: none;
  margin: 1.15rem 0 0;
  display: grid;
  gap: 10px;
}

.link-list li {
  margin: 0;
}

.link-list a {
  display: block;
  padding: 13px 16px;
  border-radius: 12px;
  border: 2px solid rgba(121, 169, 239, 0.22);
  background: linear-gradient(180deg, rgba(23, 44, 73, 0.6), rgba(16, 29, 49, 0.8));
  color: var(--text);
  transition: border-color 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}

.link-list a:hover,
.link-list a:focus-visible {
  text-decoration: none;
  transform: translateY(-1px);
  border-color: rgba(121, 169, 239, 0.34);
  background: linear-gradient(180deg, rgba(30, 54, 88, 0.82), rgba(17, 31, 52, 0.96));
}



.site-footer--slim {
  width: 100%;
  margin-top: 26px;
  border-top: 2px solid rgba(121, 169, 239, 0.2);
  background: linear-gradient(180deg, rgba(7, 15, 28, 0.82), rgba(8, 17, 31, 0.98));
}

.footer-inner--slim {
  width: 100%;
  max-width: none;
  padding: 12px 16px 16px;
  display: flex;
  justify-content: center;
}

.footer-legal-nav--rebuilt {
  width: 100%;
  display: flex;
  justify-content: center;
}

.footer-legal-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
}

.footer-legal-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  margin: 0;
  border-radius: 999px;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-legal-link:hover,
.footer-legal-link:focus-visible {
  background: rgba(93, 147, 230, 0.12);
  border-color: rgba(121, 169, 239, 0.2);
  color: var(--text);
  text-decoration: none;
}

@media (max-width: 980px) {
  .footer-legal-row {
    flex-wrap: wrap;
  }

  .footer-legal-link {
    min-width: 220px;
  }
}
@media (max-width: 980px) {
  .header-copy {
    max-width: 100%;
  }

  .site-header h1 {
    max-width: 78%;
  }

  .header-logo {
    width: min(23.8vw, 224px);
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-inner,
  .tab-nav ul,
  .content,
  .footer-inner {
    width: min(100% - 20px, var(--content-width));
  }

  .header-inner {
    padding: 20px 0 14px;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .header-copy,
  .site-header h1 {
    max-width: none;
  }

  .header-logo {
    width: min(50.4vw, 252px);
    justify-self: end;
    margin-top: 2px;
  }

  .site-header h1 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .site-title-sub {
    font-size: 1.26rem;
  }

  .tab-nav ul {
    gap: 8px;
    padding: 10px 0;
  }

  .tab-nav a {
    width: 100%;
    justify-content: center;
    margin: 0;
  }

  .content {
    padding-top: 18px;
  }

  .content-card__body {
    padding: 22px 18px 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 0 24px;
  }

  .footer-inner--slim {
    padding: 12px 0 16px;
  }

  .footer-legal-nav ul {
    justify-content: flex-start;
    gap: 8px;
    padding-bottom: 2px;
  }

  .footer-legal-nav a {
    min-height: 44px;
    margin: 0;
    padding: 0 16px;
  }

  .footer-block {
    padding: 14px 14px 16px;
  }

}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #eff4fb;
    --bg-soft: #f7faff;
    --surface: #ffffff;
    --surface-2: #f8fbff;
    --surface-3: #edf4fd;
    --line: #d7e2f1;
    --line-strong: #b3cae9;
    --text: #162130;
    --text-soft: #40546f;
    --text-muted: #5d7496;
    --brand: #3f7bd9;
    --brand-strong: #2f5fa7;
    --brand-deep: #21497f;
    --brand-glow: rgba(63, 123, 217, 0.16);
    --shadow: 0 18px 40px rgba(36, 59, 92, 0.1);
  }

  body {
    background:
      radial-gradient(circle at top right, rgba(93, 147, 230, 0.12), transparent 24%),
      linear-gradient(180deg, #f7faff 0%, #eff4fb 100%);
  }

  .site-header {
    background: linear-gradient(135deg, rgba(245, 249, 255, 0.98), rgba(232, 240, 250, 0.98));
    border-bottom-color: rgba(47, 95, 167, 0.12);
  }

  .site-header::before {
    background:
      radial-gradient(circle at 82% 30%, rgba(63, 123, 217, 0.14), transparent 18%),
      linear-gradient(90deg, transparent 0, transparent 62%, rgba(63, 123, 217, 0.05) 100%);
  }

  .header-inner::after {
    background: linear-gradient(180deg, rgba(237, 244, 253, 0.95), rgba(248, 251, 255, 0.95));
    border-color: rgba(47, 95, 167, 0.22);
  }

  .tab-nav {
    background: rgba(255, 255, 255, 0.66);
    border-top-color: rgba(47, 95, 167, 0.08);
  }

  .tab-nav a:hover,
  .tab-nav a:focus-visible {
    background: rgba(63, 123, 217, 0.08);
  }

  .tab-nav a.is-active {
    color: #17345c;
    background: linear-gradient(180deg, rgba(63, 123, 217, 0.13), rgba(47, 95, 167, 0.12));
    border-color: rgba(47, 95, 167, 0.2);
  }

  .content-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98));
  }

  .link-list a {
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(237, 244, 253, 0.98));
  }

  .link-list a:hover,
  .link-list a:focus-visible {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(232, 240, 250, 0.98));
  }

  .offer-item {
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(237, 244, 253, 0.98));
    border-color: rgba(47, 95, 167, 0.12);
    box-shadow: 0 10px 24px rgba(36, 59, 92, 0.08);
  }

  .offer-item:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(232, 240, 250, 0.98));
    border-color: rgba(47, 95, 167, 0.22);
  }

  .site-footer,
  .site-footer--slim {
    background: linear-gradient(180deg, rgba(236, 243, 252, 0.9), rgba(225, 235, 247, 0.98));
    border-top-color: rgba(47, 95, 167, 0.1);
  }

  .footer-block {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(47, 95, 167, 0.08);
  }
}




/* v6 – Feinschliff Header, Angebot und Footer */
.header-inner {
  padding: 52px 0 26px;
  grid-template-columns: minmax(0, 72%) minmax(180px, 1fr);
  align-items: start;
  gap: 18px;
}

.header-copy {
  min-width: 0;
}

.site-header h1 {
  margin: 0;
  max-width: none;
}

.site-title-main {
  display: block;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
  font-weight: 700;
}

.site-title-sub {
  display: block;
  margin-top: 0.48rem;
  max-width: 62ch;
  font-size: 1.14rem;
  line-height: 1.38;
  font-weight: 700;
  color: var(--text);
}

.header-inner::after {
  display: none;
}

.header-logo {
  justify-self: end;
  align-self: start;
  width: min(100%, 210px);
  margin-top: 2px;
}

.header-logo img {
  width: 100%;
  max-width: 210px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.18));
}

.offer-list {
  display: grid;
  gap: 14px;
}

.offer-item {
  padding: 16px 18px 18px;
  border: 2px solid rgba(121, 169, 239, 0.24);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(21, 38, 63, 0.72), rgba(14, 26, 45, 0.88));
}

.offer-item h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  padding-left: 0;
  border-left: none;
}

.offer-item:last-child p:last-child,
.offer-item:last-child ul:last-child {
  margin-bottom: 0;
}

.footer-inner {
  align-items: stretch;
}

.footer-block {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
}

.footer-block h3 {
  font-size: 0.74rem;
  margin-bottom: 0.65rem;
}

.footer-block p,
.footer-block li,
.address-block span {
  font-size: 0.74rem;
  line-height: 1.42;
}

.address-block {
  display: grid;
  gap: 0.08rem;
  margin: 0;
  text-align: left;
  justify-items: start;
}

.address-block span {
  display: block;
  width: 100%;
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) 230px;
    align-items: start;
    padding-top: 42px;
  }

  .header-logo {
    width: 161px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-inner {
    grid-template-columns: 1fr;
    padding: 28px 0 18px;
    gap: 14px;
  }

  .site-title-main {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
  }

  .site-title-sub {
    font-size: 1.02rem;
    max-width: none;
  }

  .header-logo {
    justify-self: end;
    width: min(100%, 154px);
  }

  .offer-item {
    padding: 14px 14px 15px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (prefers-color-scheme: light) {
  .offer-item {
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(237, 244, 253, 0.98));
    border-color: rgba(47, 95, 167, 0.10);
  }
}

.address-block {
  text-align: left;
}

.address-block span {
  display: block;
  line-height: 1.45;
}

.address-block span + span {
  margin-top: 0.12rem;
}


/* v8 – größere Unterzeile im Kopfbereich */
.site-title-sub {
  text-wrap: balance;
}


@media (max-width: 900px) {
  .site-header h1 {
    max-width: 100%;
  }
  .header-copy {
    max-width: 100%;
  }
  .header-logo {
    width: min(42vw, 320px);
  }
  .site-title-sub {
    font-size: 1.46rem;
  }
}

@media (max-width: 700px) {
  .header-inner {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .header-logo {
    width: min(72vw, 320px);
    justify-self: end;
  }
  .site-title-sub {
    font-size: 1.22rem;
    line-height: 1.28;
  }
}


/* v16 – nur größere Unterzeile im Kopfbereich */
.site-title-sub {
  font-size: 1.58rem !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
}

@media (max-width: 900px) {
  .site-title-sub {
    font-size: 1.42rem !important;
  }
}

@media (max-width: 700px) {
  .site-title-sub {
    font-size: 1.24rem !important;
  }
}


/* v17 – dezenter Feinschliff */
@media (min-width: 761px) {
  .content {
    max-width: 900px;
    margin-inline: auto;
  }
}

.site-header {
  margin-bottom: 18px;
}

.content-panel + .content-panel,
.content-card {
  scroll-margin-top: 24px;
}

.content-card {
  position: relative;
}

.content-card + .content-card,
.content-panel + .content-panel {
  margin-top: 18px;
}

.content-card__body a {
  transition: color 0.2s ease;
}

.offer-item {
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.offer-item:hover {
  box-shadow: 0 12px 28px rgba(2, 8, 18, 0.16);
}


/* v18 – Design-Fundament für späteres Design-Tool */
:root {
  --ui-radius-panel: 22px;
  --ui-radius-card: 16px;
  --ui-radius-button: 999px;
  --ui-border-width: 2px;
  --ui-border-color: rgba(121, 169, 239, 0.24);
  --ui-border-color-strong: rgba(121, 169, 239, 0.34);
  --ui-surface-panel: linear-gradient(180deg, rgba(16, 29, 49, 0.96), rgba(12, 23, 40, 0.98));
  --ui-surface-card: linear-gradient(180deg, rgba(21, 38, 63, 0.74), rgba(14, 26, 45, 0.9));
  --ui-surface-button: linear-gradient(180deg, rgba(24, 42, 69, 0.7), rgba(14, 26, 44, 0.9));
  --ui-surface-button-hover: linear-gradient(180deg, rgba(33, 56, 90, 0.86), rgba(18, 32, 54, 0.98));
  --ui-shadow-panel: 0 18px 40px rgba(2, 8, 18, 0.32);
  --ui-shadow-card: 0 10px 24px rgba(2, 8, 18, 0.14);
  --ui-shadow-button: 0 8px 20px rgba(2, 8, 18, 0.12);
  --ui-space-panel-x: 38px;
  --ui-space-panel-y: 34px;
  --ui-space-card: 18px;
}

.ui-panel {
  scroll-margin-top: 24px;
}

.ui-card,
.content-card,
.offer-item {
  border-radius: var(--ui-radius-panel);
  border: var(--ui-border-width) solid var(--ui-border-color);
  box-shadow: var(--ui-shadow-panel);
}

.ui-card,
.content-card {
  background: var(--ui-surface-panel);
  overflow: hidden;
  position: relative;
}

.ui-card::before,
.content-card::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-strong));
}

.content-card__body {
  padding: var(--ui-space-panel-y) var(--ui-space-panel-x) calc(var(--ui-space-panel-y) + 4px);
}

.ui-card--soft,
.offer-item {
  border-radius: var(--ui-radius-card);
  background: var(--ui-surface-card);
  box-shadow: var(--ui-shadow-card);
}

.ui-card--soft::before,
.offer-item::before {
  display: none;
}

.tab-nav a,
.footer-legal-nav a,
.link-list a,
.legal-back-link a {
  border-radius: var(--ui-radius-button);
  border: var(--ui-border-width) solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.link-list a {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  background: var(--ui-surface-button);
  color: var(--text);
  border-color: var(--ui-border-color);
  box-shadow: var(--ui-shadow-button);
}

.link-list a:hover,
.link-list a:focus-visible {
  background: var(--ui-surface-button-hover);
  border-color: var(--ui-border-color-strong);
  box-shadow: 0 10px 24px rgba(2, 8, 18, 0.16);
}

.tab-nav a,
.footer-legal-nav a {
  box-shadow: none;
}

.tab-nav a:hover,
.tab-nav a:focus-visible,
.footer-legal-nav a:hover,
.footer-legal-nav a:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--ui-shadow-button);
}

.tab-nav a.is-active {
  box-shadow: 0 10px 24px rgba(8, 17, 31, 0.22);
}

.legal-back-link a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  background: rgba(93, 147, 230, 0.08);
  border-color: rgba(121, 169, 239, 0.18);
}

.legal-back-link a:hover,
.legal-back-link a:focus-visible {
  text-decoration: none;
  background: rgba(93, 147, 230, 0.14);
  border-color: rgba(121, 169, 239, 0.28);
  transform: translateY(-1px);
}

.site-footer--slim {
  background: linear-gradient(180deg, rgba(7, 15, 28, 0.7), rgba(8, 17, 31, 0.94));
}

@media (max-width: 760px) {
  .content-card__body {
    padding: 24px 18px 26px;
  }

  .link-list a,
  .tab-nav a,
  .footer-legal-nav a {
    min-height: 46px;
  }
}

@media (prefers-color-scheme: light) {
  :root {
    --ui-border-color: rgba(47, 95, 167, 0.12);
    --ui-border-color-strong: rgba(47, 95, 167, 0.22);
    --ui-surface-panel: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98));
    --ui-surface-card: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(237, 244, 253, 0.98));
    --ui-surface-button: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(237, 244, 253, 0.98));
    --ui-surface-button-hover: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(232, 240, 250, 0.98));
    --ui-shadow-panel: 0 18px 40px rgba(36, 59, 92, 0.1);
    --ui-shadow-card: 0 10px 24px rgba(36, 59, 92, 0.08);
    --ui-shadow-button: 0 8px 20px rgba(36, 59, 92, 0.08);
  }

  .site-footer--slim {
    background: linear-gradient(180deg, rgba(236, 243, 252, 0.92), rgba(225, 235, 247, 0.98));
  }

  .legal-back-link a {
    background: rgba(63, 123, 217, 0.08);
    border-color: rgba(47, 95, 167, 0.14);
  }

  .legal-back-link a:hover,
  .legal-back-link a:focus-visible {
    background: rgba(63, 123, 217, 0.12);
    border-color: rgba(47, 95, 167, 0.2);
  }
}

/* =====================================================
   Design-Konsole / variables mapped from KAVM
   ===================================================== */
:root {
  --accent: #5d93e6;
  --link: #79a9ef;
  --link-external: #a8c6f6;
  --level-1-bg: #101d31;
  --level-2-bg: #13243d;
  --level-2-hover: #172c49;
  --font-text: Georgia, "Times New Roman", serif;
  --font-ui: Georgia, "Times New Roman", serif;
  --muted: #b1c0d8;
  --flow-text: #b1c0d8;
}

body,
input,
button,
select,
textarea {
  font-family: var(--font-text);
}

body {
  background: var(--bg) !important;
  color: var(--text) !important;
}

a,
a:visited {
  color: var(--link);
}

a[href^="external_link.php"],
a[href^="https://"],
a[href^="http://"] {
  color: var(--link-external);
}

body p,
body li,
.site-kicker,
.legal-back-link,
.footer-block p {
  color: var(--muted);
}

.content-card__body p,
.content-card__body li,
.content-card__body ul,
.content-card__body ol,
.legal-content-html p,
.legal-content-html li,
.legal-content-html ul,
.legal-content-html ol,
.offer-item p,
.offer-item li,
.offer-item ul,
.offer-item ol,
.footer-block p,
.footer-block li,
.address-block span {
  color: var(--flow-text) !important;
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body strong,
.site-title-sub,
.site-title-main,
.offer-item h3,
.tab-nav a.is-active {
  color: var(--text);
}

.site-header,
.tab-nav,
.site-footer--slim,
.site-footer,
.content-card,
.legal-card,
.ui-card,
.ui-card--soft,
.offer-item {
  background: var(--level-1-bg) !important;
  border-color: var(--line) !important;
  box-shadow: none !important;
}

.site-header {
  border-bottom-color: var(--line) !important;
}

.site-header::before,
.content-card::before {
  background: none !important;
}

.tab-nav,
.site-footer--slim,
.site-footer {
  background: var(--level-1-bg) !important;
  backdrop-filter: none !important;
}

.tab-nav a,
.footer-legal-nav a,
.link-list a,
.offer-item,
.legal-back-link a {
  background: var(--level-1-bg) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
  font-family: var(--font-ui);
}

.tab-nav a:hover,
.tab-nav a:focus-visible,
.footer-legal-nav a:hover,
.footer-legal-nav a:focus-visible,
.link-list a:hover,
.link-list a:focus-visible,
.offer-item:hover,
.legal-back-link a:hover,
.legal-back-link a:focus-visible {
  background: var(--level-2-hover) !important;
  border-color: var(--accent) !important;
  color: var(--text) !important;
}

.tab-nav a.is-active {
  background: var(--level-2-hover) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 20%, transparent) !important;
}

.site-kicker,
.design-lab__status strong {
  color: var(--accent) !important;
}

.content-card__body p,
.content-card__body li,
.content-card__body ul,
.content-card__body ol,
.legal-content-html p,
.legal-content-html li,
.legal-content-html ul,
.legal-content-html ol,
.offer-item p,
.offer-item li,
.offer-item ul,
.offer-item ol,
.footer-block p,
.footer-block li,
.address-block span {
  color: var(--flow-text) !important;
}

.tab-nav a,
.footer-legal-nav a,
.link-list a,
.legal-back-link a {
  text-decoration: none !important;
}

.design-lab-toggle {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 1100;
  border: none;
  border-radius: 999px;
  padding: 12px 16px;
  background: var(--level-2-bg);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: 0 16px 32px rgba(0,0,0,.18);
  cursor: pointer;
  font: 600 14px/1.2 var(--font-ui);
}

.design-lab-toggle:hover { transform: translateY(-1px); }

.design-lab {
  position: fixed;
  left: 18px;
  bottom: 74px;
  z-index: 1100;
  width: min(360px, calc(100vw - 24px));
  max-height: min(78vh, 720px);
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--level-1-bg);
  color: var(--text);
  box-shadow: 0 24px 48px rgba(0,0,0,.18);
}

.design-lab[hidden] { display: none; }
.design-lab__head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:14px; }
.design-lab__title { margin:0; font:700 1.05rem/1.2 var(--font-ui); }
.design-lab__hint { margin:6px 0 0; color:var(--muted); font:400 .92rem/1.45 var(--font-text); }
.design-lab__close { border:none; background:transparent; color:inherit; font:700 1.2rem/1 var(--font-ui); cursor:pointer; }
.design-lab__tabs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; margin:0 0 12px; }
.design-lab__tab {
  appearance:none; border:1px solid var(--line); border-radius:999px; background:var(--level-2-bg); color:var(--text);
  padding:7px 8px; cursor:pointer; font:600 .72rem/1.15 var(--font-ui); text-align:center;
}
.design-lab__tab.is-active, .design-lab__tab[aria-selected="true"] { background:var(--level-2-hover); border-color:var(--accent); }
.design-lab__panels { min-height:0; }
.design-lab__section { margin-top:14px; padding-top:14px; border-top:1px solid color-mix(in srgb, var(--line) 80%, transparent); }
.design-lab__panel { margin-top:0; padding-top:0; border-top:none; }
.design-lab__panel[hidden] { display:none !important; }
.design-lab__section-title { margin:0 0 8px; font:700 .88rem/1.2 var(--font-ui); text-transform:uppercase; letter-spacing:.08em; }
.design-lab__mini-hint { margin:6px 0 10px; color:var(--muted); font:400 .9rem/1.45 var(--font-text); }
.design-lab__grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 10px; }
.design-lab label { display:grid; gap:4px; font:600 .8rem/1.25 var(--font-ui); }
.design-lab input[type="color"], .design-lab select, .design-lab__export {
  width:100%; min-height:36px; border-radius:10px; border:1px solid var(--line); background:var(--level-2-bg); color:var(--text);
  font:500 .85rem/1.2 var(--font-ui);
}
.design-lab input[type="color"] { padding:4px; }
.design-lab input[type="color"]:focus, .design-lab select:focus {
  border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); outline:none;
}
.design-lab__version-grid { display:grid; gap:8px; }
.design-lab__version-card { border:1px solid var(--line); border-radius:12px; background:var(--level-2-bg); padding:8px; }
.design-lab__version-card strong { display:block; margin-bottom:6px; font:700 .8rem/1.2 var(--font-ui); }
.design-lab__version-actions, .design-lab__actions { display:flex; gap:8px; flex-wrap:wrap; }
.design-lab__actions { margin-top:8px; }
.design-lab__btn {
  appearance:none; border:1px solid var(--line); border-radius:999px; background:var(--level-2-bg); color:var(--text);
  padding:8px 10px; cursor:pointer; font:600 .8rem/1.2 var(--font-ui);
}
.design-lab__btn:hover { background:var(--level-2-hover); border-color:var(--accent); }
.design-lab__status { margin-top:10px; color:var(--muted); font:400 .78rem/1.35 var(--font-text); }
.design-lab__export { margin-top:8px; padding:8px; resize:vertical; font:400 .78rem/1.35 var(--font-ui); }
.design-lab__grid--colors .design-lab__label-wide { grid-column:1 / -1; }
.design-lab__label-accent { border:2px solid var(--accent); border-radius:20px; padding:14px 16px 12px; background:var(--level-2-bg); }
.design-lab__label-accent small { display:block; margin-top:6px; color:var(--muted); font:400 .85rem/1.35 var(--font-ui); }
.design-lab-open .design-lab-toggle { background: var(--level-2-hover); border-color: var(--accent); }

@media (max-width:640px) {
  .design-lab-toggle { left:10px; bottom:10px; padding:10px 14px; }
  .design-lab { left:10px; bottom:58px; width:min(360px, calc(100vw - 20px)); padding:14px; }
  .design-lab__tabs { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .design-lab__grid { grid-template-columns:1fr; }
}


.site-title,
.site-header__title,
.header-title {
  margin-bottom: 24px !important;
}


body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

p,
li,
h1,
h2,
h3,
.site-kicker,
.site-title-sub {
  text-wrap: pretty;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 1000;
  padding: 10px 14px;
  border: 2px solid var(--brand-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.skip-link:focus {
  top: 16px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--brand-strong);
  outline-offset: 3px;
}

.legal-content-html a,
.content-card__body a,
.link-list a {
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


.content-panel h2:focus,
.content-panel h2:focus-visible {
  outline: none !important;
}


/* Online-Fix: Überschriften und Einleitungsabsätze in Inhaltskarten
   sollen dieselbe UI-Schrift wie die Angebotsboxen verwenden. */
.content-card__body > h2,
.content-card__body > p {
  font-family: var(--font-ui) !important;
}


/* Globaler Online-Fix für Schriftzuordnung:
   Kopfbereiche, Serviceseiten und Inhaltsbereiche sollen dieselbe
   UI-/Leseschrift verwenden wie die korrekt dargestellten Boxeninhalte. */
.site-header,
.site-header *,
.page-index .site-header,
.page-index .site-header *,
.page-legal .site-header,
.page-legal .site-header *,
.page-service .site-header,
.page-service .site-header *,
.content,
.content *,
.content--single-page,
.content--single-page *,
.ui-main,
.ui-main *,
.legal-content-html,
.legal-content-html *,
.content-panel,
.content-panel *,
.service-content,
.service-content *,
.service-panel,
.service-panel *,
.offer-item,
.offer-item *,
.footer-block,
.footer-block *,
.address-block,
.address-block * {
  font-family: var(--font-ui) !important;
}


/* Fläche 2 für alle Buttons */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.design-lab__tab,
.design-lab__action,
.design-lab__palette button,
.legal-back-link a,
a.ui-button,
.ui-button,
.nav-link,
.panel-link {
  background: var(--level-2-bg) !important;
}


/* Fläche 2 auch für Schaltflächen auf der Indexseite */
.page-index .site-nav a,
.page-index .section-nav a,
.page-index .content-nav a,
.page-index .panel-nav a,
.page-index .tab-nav a,
.page-index .quick-links a,
.page-index .offer-item a,
.page-index .link-list a,
.page-index a.button,
.page-index a.btn,
.page-index .btn,
.page-index .button,
.page-index .nav-button,
.page-index .content-card a,
.page-index .content-card__actions a {
  background: var(--level-2-bg) !important;
}


/* Fläche 2 auch für die Footer-Buttons auf der Indexseite */
.page-index .footer-block a,
.page-index .footer-links a,
.page-index .footer-nav a,
.page-index .site-footer a,
.page-index .footer-legal a,
.page-index .footer-actions a {
  background: var(--level-2-bg) !important;
}
