:root {
  --bordeaux: #450111;
  --bordeaux-deep: #36030a;
  --bordeaux-bright: #730533;
  --gold: #cc9649;
  --gold-soft: #dcb784;
  --cream: #fbf7f2;
  --cream-deep: #f4ebe4;
  --rose: #f7edef;
  --paper: #ffffff;
  --ink: #1c1b1c;
  --muted: #62595b;
  --line: #eadfd9;
  --yellow: #fff2a8;
  --yellow-border: #b98100;
  --shadow-sm: 0 12px 32px rgba(69, 1, 17, 0.07);
  --shadow: 0 24px 70px rgba(69, 1, 17, 0.12);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 122px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

p,
h1,
h2,
h3,
ul,
dl,
dd {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--bordeaux);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

h1 {
  margin-bottom: 28px;
  font-size: clamp(3rem, 4.4vw, 3.7rem);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.45rem, 4.2vw, 3.8rem);
}

h3 {
  margin-bottom: 9px;
  font-size: 1.35rem;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 11px 16px;
  border-radius: 8px;
  background: #fff;
  color: var(--bordeaux);
  font-weight: 800;
  transform: translateY(-170%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--bordeaux-bright);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.draft-legend {
  position: relative;
  z-index: 120;
  border-bottom: 1px solid var(--yellow-border);
  background: var(--yellow);
  color: #473400;
  font-size: 0.8rem;
  line-height: 1.35;
  text-align: center;
}

.draft-legend .container {
  padding-block: 7px;
}

.check-label {
  display: block;
  margin-bottom: 4px;
  color: #6a4c00;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Servicehinweis und Hauptnavigation */
.service-bar {
  position: relative;
  z-index: 110;
  background: var(--bordeaux-deep);
  color: #fff;
  font-size: 0.8rem;
  line-height: 1.3;
}

.service-bar__inner {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.service-bar p {
  margin: 0;
}

.service-bar #versorgungsstart-entfernen {
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-start-copy,
.service-bar mark {
  white-space: nowrap;
}

.service-bar mark {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--yellow);
  color: #3f2f00;
}

.service-bar .check-label {
  display: inline-block;
  margin: 0 8px 0 0;
  padding: 3px 6px;
  border: 1px solid var(--yellow-border);
  border-radius: 4px;
  background: var(--yellow);
  color: #513b00;
  vertical-align: middle;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(69, 1, 17, 0.1);
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  min-height: 110px;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.brand-lockup {
  width: 248px;
  flex: 0 0 248px;
}

.brand-lockup img {
  width: 100%;
  height: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(20px, 2.8vw, 42px);
}

.primary-nav a {
  padding: 12px 0;
  color: #3e3436;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.primary-nav a:not(.nav-contact) {
  border-bottom: 2px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.primary-nav a:not(.nav-contact):hover,
.primary-nav a:not(.nav-contact):focus-visible {
  border-bottom-color: var(--gold);
  color: var(--bordeaux);
}

.primary-nav .nav-contact {
  padding: 12px 22px;
  border: 2px solid var(--bordeaux-bright);
  border-radius: 999px;
  background: var(--bordeaux-bright);
  color: #fff;
  transition: background 180ms ease, color 180ms ease;
}

.primary-nav .nav-contact:hover,
.primary-nav .nav-contact:focus-visible {
  background: #fff;
  color: var(--bordeaux-bright);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(74px, 8vw, 118px) 0 clamp(84px, 9vw, 126px);
  background:
    radial-gradient(circle at 96% 16%, rgba(115, 5, 51, 0.1), transparent 28rem),
    radial-gradient(circle at 5% 96%, rgba(204, 150, 73, 0.1), transparent 24rem),
    linear-gradient(135deg, #fff 0%, #fcf8f8 100%);
}

.hero::before {
  position: absolute;
  right: -230px;
  bottom: -300px;
  width: 720px;
  height: 720px;
  border: 1px solid rgba(69, 1, 17, 0.08);
  border-radius: 50%;
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 620px;
  align-items: center;
  grid-template-columns: minmax(0, 1.36fr) minmax(350px, 0.72fr);
  gap: clamp(58px, 8vw, 104px);
}

.hero-copy {
  max-width: 760px;
}

.hero-copy .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-copy .eyebrow::before {
  width: 38px;
  height: 2px;
  flex: 0 0 38px;
  background: var(--gold);
  content: "";
}

.hero-copy h1 {
  max-width: 750px;
  margin-bottom: 30px;
  font-size: clamp(3.4rem, 6.2vw, 5.9rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 18px;
  color: #504749;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.55;
}

.hero-lead strong {
  color: var(--bordeaux);
}

.hero-values {
  margin: 0 0 24px;
  color: var(--bordeaux-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.025em;
}

.first-contact {
  max-width: 620px;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 4vw, 48px);
  border: 1px solid rgba(204, 150, 73, 0.72);
  border-radius: 28px 28px 28px 6px;
  background:
    radial-gradient(circle at 110% 110%, rgba(220, 183, 132, 0.2), transparent 18rem),
    linear-gradient(150deg, var(--bordeaux-bright), var(--bordeaux-deep));
  color: rgba(255, 255, 255, 0.84);
  box-shadow: 0 26px 68px rgba(54, 3, 10, 0.2);
}

.hero-card::after {
  position: absolute;
  right: -100px;
  bottom: -120px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.hero-card__label {
  margin-bottom: 12px;
  color: var(--gold-soft);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-card h2 {
  max-width: 330px;
  margin-bottom: 20px;
  color: #fff;
  font-size: clamp(2.25rem, 3.8vw, 3.15rem);
}

.hero-card > p:not(.hero-card__label) {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.97rem;
}

.quick-facts {
  margin: 28px 0 0;
}

.quick-facts div {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.quick-facts dt {
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.quick-facts dd {
  margin: 0;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.value-ribbon {
  border-top: 3px solid var(--gold);
  background: var(--bordeaux);
  color: #fff;
}

.value-ribbon__inner {
  display: grid;
  min-height: 82px;
  align-items: center;
  grid-template-columns: repeat(3, 1fr);
}

.value-ribbon span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 600;
}

.value-ribbon span + span {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.value-ribbon b {
  color: var(--gold-soft);
  font-size: 0.82rem;
}

/* Abschnitte */
.section {
  padding-block: clamp(88px, 10vw, 132px);
}

.section-heading {
  margin-bottom: 52px;
}

.section-heading--split {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 0.9fr) minmax(330px, 0.65fr);
  gap: clamp(44px, 8vw, 110px);
}

.section-heading--split h2,
.section-heading--split .eyebrow {
  margin-bottom: 0;
}

.section-heading--split .eyebrow {
  margin-bottom: 12px;
}

.section-heading--split > p {
  max-width: 540px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 1.06rem;
}

/* Leistungen */
.services {
  position: relative;
  background: #fff;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  display: grid;
  min-height: 290px;
  align-content: start;
  grid-column: span 4;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(251, 247, 242, 0.9));
  box-shadow: 0 14px 42px rgba(69, 1, 17, 0.055);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.service-card:hover {
  border-color: rgba(204, 150, 73, 0.65);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.service-card--wide {
  min-height: 190px;
  align-items: center;
  grid-column: 1 / -1;
  grid-template-columns: 78px 1fr;
  gap: 24px;
}

.service-card__icon {
  width: 78px;
  height: 78px;
  margin-bottom: 24px;
  border-radius: 50%;
  clip-path: circle(48% at 50% 50%);
  object-fit: cover;
}

.service-card--wide .service-card__icon {
  margin-bottom: 0;
}

.service-card h3 {
  margin-bottom: 11px;
  font-size: 1.36rem;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.source-note {
  max-width: 960px;
  margin: 32px auto 0;
  padding: 16px 20px;
  border-left: 3px solid var(--gold);
  background: var(--cream);
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

/* Pflegeverständnis */
.care-values {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 7% 12%, rgba(220, 183, 132, 0.16), transparent 24rem),
    linear-gradient(145deg, var(--bordeaux-bright), var(--bordeaux-deep) 68%);
  color: rgba(255, 255, 255, 0.8);
}

.care-values::before {
  position: absolute;
  top: -250px;
  right: -280px;
  width: 680px;
  height: 680px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.care-layout {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 0.78fr) minmax(500px, 1.22fr);
  gap: clamp(54px, 8vw, 104px);
}

.care-intro {
  position: sticky;
  top: 140px;
}

.care-intro .eyebrow {
  color: var(--gold-soft);
}

.care-intro h2 {
  color: #fff;
}

.leitbild-copy {
  margin: 32px 0 0;
  padding: 0 0 0 23px;
  border-left: 3px solid var(--gold);
  color: rgba(255, 255, 255, 0.8);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.12rem, 1.7vw, 1.35rem);
  line-height: 1.66;
}

.value-list {
  display: grid;
  gap: 15px;
}

.value-item {
  display: grid;
  min-height: 150px;
  align-items: center;
  grid-template-columns: 88px 1fr;
  gap: 24px;
  padding: 24px 28px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 14px 38px rgba(29, 0, 7, 0.13);
}

.value-item img {
  width: 82px;
  height: auto;
  object-fit: contain;
}

.value-item h3 {
  margin-bottom: 7px;
  font-size: 1.28rem;
}

.value-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.91rem;
}

.advice-box {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 1040px;
  align-items: center;
  margin: 54px auto 0;
  padding: 28px 34px;
  border: 1px solid rgba(204, 150, 73, 0.9);
  border-radius: 24px;
  background: linear-gradient(135deg, #fff, #f7eee7);
  color: var(--muted);
  box-shadow: 0 24px 60px rgba(29, 0, 7, 0.18);
  grid-template-columns: 112px 1fr;
  gap: 28px;
}

.advice-box img {
  width: 104px;
  height: 104px;
  object-fit: cover;
}

.advice-box__kicker {
  margin-bottom: 4px;
  color: var(--bordeaux-bright);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.advice-box h3 {
  margin-bottom: 7px;
  font-size: 1.9rem;
}

.advice-box p:last-child {
  margin-bottom: 0;
}

/* Versorgungsgebiet */
.coverage-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 100%, rgba(204, 150, 73, 0.13), transparent 24rem),
    #fff;
}

.coverage-section::after {
  position: absolute;
  top: -220px;
  right: -230px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(69, 1, 17, 0.08);
  border-radius: 50%;
  content: "";
}

.coverage-grid {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 0.84fr) minmax(480px, 1.16fr);
  gap: clamp(48px, 8vw, 104px);
}

.coverage-copy > img {
  width: 84px;
  height: 84px;
  margin-bottom: 24px;
  object-fit: contain;
}

.coverage-copy > p:last-child {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.district-list {
  display: grid;
  margin: 0;
  padding: 34px;
  border: 1px solid var(--gold);
  border-radius: 28px;
  background:
    radial-gradient(circle at 110% 110%, rgba(220, 183, 132, 0.2), transparent 18rem),
    var(--bordeaux);
  box-shadow: var(--shadow);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
}

.district-list li {
  position: relative;
  padding: 13px 14px 13px 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 750;
}

.district-list li::before {
  position: absolute;
  top: 50%;
  left: 15px;
  color: var(--gold-soft);
  content: "♥";
  font-size: 0.7rem;
  transform: translateY(-50%);
}

/* Kontakt */
.contact-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 100%, rgba(204, 150, 73, 0.14), transparent 26rem),
    var(--cream);
}

.contact-heading {
  margin-bottom: 48px;
}

.contact-layout {
  position: relative;
  display: grid;
  align-items: start;
  grid-template-columns: minmax(340px, 0.76fr) minmax(0, 1.24fr);
  gap: clamp(32px, 6vw, 72px);
}

.contact-primary {
  position: sticky;
  top: 140px;
  display: grid;
  min-height: 470px;
  align-content: center;
  justify-items: start;
  overflow: hidden;
  padding: clamp(32px, 4vw, 42px);
  border: 1px solid var(--gold);
  border-radius: 30px;
  background:
    radial-gradient(circle at 110% 110%, rgba(220, 183, 132, 0.22), transparent 17rem),
    var(--bordeaux);
  color: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.contact-primary::after {
  position: absolute;
  right: -90px;
  bottom: -100px;
  width: 290px;
  height: 290px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.contact-primary img {
  position: relative;
  z-index: 1;
  width: 78px;
  height: 78px;
  margin-bottom: 28px;
  clip-path: circle(42% at 50% 50%);
  object-fit: cover;
}

.contact-primary p,
.contact-primary strong,
.contact-primary span {
  position: relative;
  z-index: 1;
}

.contact-primary p {
  margin-bottom: 5px;
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  font-style: italic;
}

.contact-primary strong {
  display: block;
  margin-bottom: 26px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 2.4vw, 2.4rem);
  letter-spacing: -0.035em;
  line-height: 1.06;
  white-space: nowrap;
}

.contact-primary span {
  max-width: 390px;
  font-size: 0.89rem;
  line-height: 1.65;
}

.contact-information {
  display: grid;
  gap: 18px;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.contact-item {
  display: grid;
  min-height: 175px;
  align-content: start;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(69, 1, 17, 0.045);
}

.contact-item img {
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  clip-path: circle(42% at 50% 50%);
  object-fit: cover;
}

.contact-item h3 {
  margin-bottom: 4px;
  font-size: 1.08rem;
}

.contact-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.info-card {
  display: grid;
  align-items: start;
  padding: 27px 29px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(69, 1, 17, 0.045);
  grid-template-columns: 72px 1fr;
  gap: 22px;
}

.info-card img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.info-card h3 {
  margin-bottom: 9px;
  font-size: 1.3rem;
}

.info-card p,
.info-card ul {
  color: var(--muted);
  font-size: 0.9rem;
}

.info-card p:last-child,
.info-card ul:last-child {
  margin-bottom: 0;
}

.info-card ul {
  padding-left: 20px;
}

.info-card li + li {
  margin-top: 7px;
}

.clarification {
  margin: 14px 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem !important;
}

.privacy-note {
  max-width: 860px;
  margin: 27px auto 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

/* Footer */
.site-footer {
  padding: 46px 0 27px;
  border-top: 3px solid var(--gold);
  background: var(--bordeaux-deep);
  color: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding-bottom: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-brand img {
  width: 116px;
  height: auto;
  padding: 8px 11px;
  border-radius: 14px;
  background: #fff;
}

.footer-brand p {
  margin-bottom: 2px;
}

.footer-name {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  color: #fff;
  font-size: 0.88rem;
  text-underline-offset: 4px;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 0.75rem;
}

/* Rechtliche Seiten und gelbe Prüfmarkierungen */
.legal-body {
  background: var(--cream);
}

.legal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 52px;
}

.legal-logo,
.legal-logo img {
  width: 186px;
}

.legal-logo img {
  height: auto;
}

.legal-logo {
  display: block;
}

.back-link {
  color: var(--bordeaux);
  font-size: 0.92rem;
  font-weight: 800;
  text-underline-offset: 4px;
}

.legal-main {
  padding-block: 70px 100px;
}

.legal-intro {
  max-width: 850px;
  margin-bottom: 34px;
}

.legal-intro h1 {
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 6vw, 5rem);
}

.legal-intro > p:last-child {
  color: var(--muted);
}

.check-banner,
.needs-check,
mark.needs-check {
  border: 1px solid var(--yellow-border);
  border-radius: 10px;
  background: var(--yellow);
  color: #453300;
}

.check-banner {
  max-width: 900px;
  margin-bottom: 28px;
  padding: 16px 18px;
  font-size: 0.9rem;
}

.needs-check {
  margin-block: 16px;
  padding: 15px 17px;
}

mark.needs-check {
  display: inline;
  padding: 2px 5px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.legal-card {
  max-width: 900px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.legal-card section + section {
  margin-top: 42px;
  padding-top: 38px;
  border-top: 1px solid var(--line);
}

.legal-card h2 {
  margin-bottom: 18px;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.legal-card h3 {
  margin: 26px 0 10px;
  font-size: 1.18rem;
}

.legal-card p,
.legal-card li,
.legal-card dd {
  color: #51494b;
  font-size: 0.94rem;
}

.legal-card a {
  color: var(--bordeaux-bright);
  overflow-wrap: anywhere;
}

.legal-card address {
  font-style: normal;
}

.legal-card ul {
  padding-left: 22px;
}

.legal-card dt {
  margin-top: 18px;
  color: var(--bordeaux);
  font-weight: 800;
}

.legal-card dd {
  margin-left: 0;
}

.legal-version {
  margin-top: 34px;
  color: var(--muted);
  font-size: 0.8rem;
}

.error-main {
  display: grid;
  min-height: 70vh;
  place-items: center;
  padding: 70px 20px;
  background: var(--cream);
  text-align: center;
}

.error-card {
  max-width: 680px;
}

.error-logo,
.error-logo img {
  display: block;
  width: min(260px, 78vw);
  margin-inline: auto;
}

.error-logo img {
  height: auto;
}

.error-logo {
  margin-bottom: 28px;
}

.error-code {
  margin-bottom: 4px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 6rem;
  font-weight: 700;
  line-height: 1;
}

.error-card .button {
  display: inline-block;
  margin-top: 14px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--bordeaux);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
    gap: 50px;
  }

  .service-card {
    grid-column: span 6;
  }

  .service-card--wide {
    grid-column: 1 / -1;
  }

  .care-layout {
    grid-template-columns: 1fr;
  }

  .coverage-grid {
    grid-template-columns: 1fr;
  }

  .coverage-copy {
    max-width: 760px;
  }

  .district-list {
    width: 100%;
  }

  .care-intro,
  .contact-primary {
    position: static;
  }

  .care-intro {
    max-width: 800px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-primary {
    min-height: 380px;
  }
}

@media (max-width: 820px) {
  html {
    scroll-padding-top: 166px;
  }

  .container {
    width: min(1200px, calc(100% - 32px));
  }

  .header-inner {
    min-height: auto;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 28px;
    padding-block: 14px 12px;
  }

  .brand-lockup {
    width: 218px;
    flex-basis: 218px;
  }

  .primary-nav {
    width: 100%;
    justify-content: center;
    gap: clamp(17px, 5vw, 34px);
  }

  .primary-nav a {
    padding: 7px 0;
    font-size: 0.82rem;
  }

  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 760px;
    margin-inline: auto;
  }

  .first-contact {
    max-width: 680px;
  }

  .hero-card {
    width: min(620px, 100%);
  }

  .section-heading--split {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-heading--split > p {
    max-width: 700px;
    margin-bottom: 0;
  }

  .contact-details {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 18px;
  }

  body {
    font-size: 16px;
  }

  .draft-legend {
    text-align: left;
  }

  .service-bar__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding-block: 9px;
  }

  .service-bar .check-label {
    display: inline-block;
  }

  .service-bar #versorgungsstart-entfernen {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .site-header {
    position: relative;
  }

  .primary-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .primary-nav a {
    display: grid;
    min-height: 44px;
    place-items: center;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    font-size: 0.78rem;
    text-align: center;
  }

  .primary-nav .nav-contact {
    padding: 8px 10px;
    border-color: var(--bordeaux-bright);
    border-radius: 10px;
    background: var(--bordeaux-bright);
    color: #fff;
  }

  .hero {
    padding-block: 62px 74px;
  }

  .hero-grid {
    gap: 50px;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 14vw, 4.15rem);
  }

  .hero-lead {
    font-size: 1.12rem;
  }

  .value-ribbon__inner {
    padding-block: 15px;
    grid-template-columns: 1fr;
  }

  .value-ribbon span {
    min-height: 39px;
  }

  .value-ribbon span + span {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-left: 0;
  }

  .section {
    padding-block: 78px;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .service-card,
  .service-card--wide {
    min-height: auto;
    grid-column: 1 / -1;
    grid-template-columns: 68px 1fr;
    gap: 18px;
    padding: 23px 20px;
  }

  .service-card__icon,
  .service-card--wide .service-card__icon {
    width: 68px;
    height: 68px;
    margin-bottom: 0;
  }

  .service-card h3 {
    font-size: 1.18rem;
  }

  .service-card p {
    font-size: 0.88rem;
  }

  .source-note {
    text-align: left;
  }

  .value-item {
    min-height: auto;
    grid-template-columns: 68px 1fr;
    gap: 17px;
    padding: 21px 18px;
  }

  .value-item img {
    width: 64px;
  }

  .value-item h3 {
    font-size: 1.14rem;
  }

  .value-item p {
    font-size: 0.87rem;
  }

  .advice-box {
    grid-template-columns: 76px 1fr;
    gap: 17px;
    padding: 25px 20px;
  }

  .advice-box img {
    width: 72px;
    height: 72px;
  }

  .advice-box h3 {
    font-size: 1.55rem;
  }

  .district-list {
    padding: 22px;
    grid-template-columns: 1fr;
  }

  .contact-primary {
    min-height: 390px;
    align-content: center;
    justify-items: center;
    text-align: center;
  }

  .contact-primary strong {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }

  .contact-details {
    grid-template-columns: 1fr;
  }

  .contact-item {
    min-height: auto;
    align-items: center;
    grid-template-columns: 56px 1fr;
    gap: 16px;
  }

  .contact-item img {
    margin-bottom: 0;
  }

  .contact-item p {
    font-size: 0.9rem;
  }

  .info-card {
    grid-template-columns: 62px 1fr;
    gap: 16px;
    padding: 23px 19px;
  }

  .info-card img {
    width: 60px;
    height: 60px;
  }

  .footer-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-logo,
  .legal-logo img {
    width: 145px;
  }

  .legal-top {
    margin-bottom: 38px;
  }

  .legal-card {
    padding: 26px 20px;
    border-radius: 20px;
  }
}

@media (max-width: 430px) {
  .container {
    width: min(1200px, calc(100% - 26px));
  }

  .brand-lockup {
    width: 190px;
    flex-basis: 190px;
  }

  .primary-nav {
    align-items: stretch;
    gap: 5px;
  }

  .primary-nav a {
    display: grid;
    min-height: 42px;
    align-items: center;
    flex: 1 1 0;
    padding-inline: 4px;
    border-radius: 8px;
    background: rgba(69, 1, 17, 0.04);
    line-height: 1.2;
  }

  .service-card,
  .service-card--wide,
  .value-item {
    grid-template-columns: 1fr;
  }

  .advice-box,
  .info-card {
    grid-template-columns: 1fr;
  }

  .contact-primary strong {
    white-space: normal;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .draft-legend,
  .service-bar,
  .site-header,
  .start-date,
  .footer-links {
    display: none;
  }

  body {
    background: #fff;
  }

  .section {
    padding-block: 34px;
  }
}
