:root {
  --text: #0a0a0a;
  --muted: #2f2f2f;
  --bg: #ffffff;
  --border: #9aa3ab;
  --accent: #004a7c;        
  --accent-weak: #e6f2f9;  
  --focus: #000000;
  --link: #004a7c;
  --grad-1: #285a44;
  --grad-2: #2f6b4f;    
  --surface-tint: #eaf4ef; 
  --border-neutral: #cfd6d1;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.5;
}

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

.skip-link{
  --focus:#ffffff; /* [A11Y-1] */
  position: fixed;
  top: .5rem;
  left: .5rem;
  transform: translateY(-150%);
  background: var(--accent);
  color: #fff;
  padding: .5rem .75rem;
  border-radius: .5rem;
  z-index: 10000;
}
.skip-link:focus{
  transform: translateY(0);
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}


.container {
  max-width: 76rem; /* ~1216px */
  margin: 0 auto;
  padding: 1rem;
}

.site-header, .site-footer {
  border-block: 1px solid var(--border);
}
.site-header { border-bottom: 1px solid var(--border); }
.site-footer { border-top: 1px solid var(--border); }

.site-header {
  --header-grad-1:#285a44;
  --header-grad-2:#2f6b4f;
  --header-fg:#ffffff;
  --header-divider:rgba(255,255,255,.25);
  --focus:#ffffff; /* [A11Y-1] Fokusring im Header weiß (>= 3:1 auf Grün) */
}

.site-header--gradient{
  background: linear-gradient(180deg, var(--header-grad-1) 0%, var(--header-grad-2) 100%);
  color: var(--header-fg);
  border-bottom: 1px solid var(--header-divider);
  box-shadow:0 1px 0 rgba(0,0,0,.08);
}

.site-header--gradient .brand,
.site-header--gradient a{
  color: var(--header-fg);
}

.site-header--gradient a:hover,
.site-header--gradient a:focus-visible {
  opacity: .9;
  text-decoration: underline;
}

.site-header--gradient a:focus {
  text-decoration: none;
}

.brand { font-weight: 700; }

h1 {
  font-size: 1.6rem;
  margin: 0 0 .5rem 0;
}
.intro {
  margin: 0 0 1.25rem 0;
  font-size: 1rem;
  color: var(--muted);
}

/* Grid: mobil 1 Spalte, ab 768px 2 Spalten */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  display: flex;
  flex-direction: column;
  border-radius: .75rem;
  border: 2px solid var(--border);
  background: #fff;
  padding: 1rem 1rem 1.25rem 1rem;
  min-height: 100%;
}
.card:focus {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.card--empfohlen {
  border-color: var(--accent);
  background: var(--accent-weak);
}

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .25rem;
}
.card__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}
.chip {
  display: inline-block;
  font-size: .85rem;
  line-height: 1;
  padding: .35rem .5rem;
  border-radius: 1rem;
  border: 2px solid var(--accent);
  color: var(--accent);
  background: #fff;
  white-space: nowrap;
}

.card__body {
  margin-top: .5rem;
  margin-bottom: .75rem;
}
.benefits {
  list-style: disc;
  padding-left: 1.25rem;
  margin: .5rem 0 0 0;
}

.actions { margin-top: auto; }

.btn {
  display: inline-block;
  width: 100%;
  padding: .9rem 1rem;
  border-radius: .5rem;
  border: 2px solid transparent;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  min-height: 44px; /* Zielgröße: WCAG 2.2 AA (2.5.8) verlangt min. 24px - erfüllt */
}
.btn:focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.btn--outlined {
  background: #fff;
  color: var(--accent);
  border-color: var(--accent);
}

.note {
  margin-top: 1rem;
  font-size: .95rem;
}
.footer-link { color: var(--link); }

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

.card--primary{
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(180deg, var(--grad-1), var(--grad-2)) border-box;
  border: 2px solid transparent;
  background-color: var(--surface-tint);
}

.card--neutral{
  border: 2px solid var(--border-neutral);
  background: #fff;
}

.chip--grad{
  color: #fff;
  border: 0;
  background: linear-gradient(180deg, var(--grad-1), var(--grad-2));
  padding: .35rem .6rem;
  border-radius: 999px;
  font-weight: 600;
}

.btn--primary{
  background: linear-gradient(180deg, var(--grad-1), var(--grad-2));
  color: #fff;
  border-color: transparent;
}
.btn--primary:hover,
.btn--primary:focus{ opacity: .95; }

.btn--secondary{
  background: #fff;
  color: var(--grad-2);
  border: 2px solid var(--grad-2);
}
.btn--secondary:hover,
.btn--secondary:focus{ background: #f7faf8; }

.card:focus-within {
  box-shadow: 0 0 0 3px rgba(0,0,0,.25);
}

.contact-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: .5rem;
}

@media (min-width: 768px){
  .contact-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px){
  .site-header { padding-block: 2px; }
  .site-header .brand,
  .site-header .header-link{
    font-size: 0.96rem;
    padding: .38rem .55rem;
    min-height: 40px;
  }
}

.contact-card{
  border: 1px solid var(--border, #9aa3ab);
  border-radius: .75rem;
  padding: 1rem;
  background: #fff;
}

.contact-card h3{ 
  margin-top: 0; 
  font-size: 1.05rem; 
}

details{
  border: 1px solid var(--border, #cfd3d7);
  border-radius: .5rem;
  padding: .5rem .75rem;
  background: #fff;
  margin-top: .75rem;
}

summary{
  cursor:pointer;
  font-weight:600;
  padding:.5rem;
  min-height:40px;
  border-radius:.5rem;
}
summary:focus-visible{
  outline:3px solid var(--focus);
  outline-offset:2px;
}

details[open]{ 
  background: #fbfdfc; 
}

.micro-help{ 
  margin-top:.5rem; 
  font-size:.95rem; 
}

.header-links{
  display: flex;
  flex-wrap: wrap;  /* [A11Y-5] Reflow bei mehreren Header-Links */
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header { 
  padding-block: 4px; 
}

.header-row{
  display:flex; 
  align-items:center; 
  justify-content:space-between; 
  gap:12px;
  padding-block:0;      /* [A11Y-2] Höhe wie bisher: 72px Inhalt */
  min-height:72px;
  flex-wrap:wrap;       /* Umbruch statt Überlauf bei Zoom */
  row-gap:4px;
}

.site-header .brand,
.site-header .header-link{
  font-weight: 600;
  font-size: 0.98rem;
  padding: .4rem .6rem;
  border-radius: .45rem;
  min-height: 40px;
  display: inline-flex; 
  align-items: center;
  color: #fff; 
  text-decoration: none;
}

.site-header .brand:focus-visible,
.site-header .header-link:focus-visible{
  outline:3px solid var(--focus); 
  outline-offset:2px; 
}

.site-header .header-link[aria-current="page"]{
  background: rgba(255,255,255,.14);
  box-shadow: 0 1px 0 rgba(0,0,0,.08) inset;
  border-radius:.45rem;
}

@media (prefers-reduced-motion: reduce){
  * { animation: none !important; transition: none !important; }
}

.site-footer .footer-link,
.contact-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 24px;
  padding: .25rem .375rem;
  border-radius: .25rem;
  overflow-wrap: anywhere; /* [A11Y-5] lange Links/E-Mails brechen um */
}

.page-nav {
  margin: .5rem 0 1rem;
  font-size: .95rem;
}
.page-nav a {
  text-decoration: none;
  padding: .25rem .375rem;
  border-radius: .25rem;
}
.page-nav a:hover,
.page-nav a:focus-visible {
  text-decoration: underline;
}

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

.site-header .brand{
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding-inline: .25rem;
}

/* [A11Y-2] Logo in echter Größe statt transform: Fokusrahmen umschließt das Logo */
.brand-logo{
  display: block;
  height: 50px;
  width: auto;
  pointer-events: none;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.25)) drop-shadow(0 0 1px rgba(0,0,0,.25));
}
@media (max-width: 1024px){ .brand-logo{ height: 45px; } }
@media (max-width: 768px){ .brand-logo{ height: 39px; } }
@media (max-width: 480px){ .brand-logo{ height: 35px; } }

/* [A11Y-7] Footer-Links als Liste, Trenner nur per CSS */
.footer-links{ display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.footer-links li + li::before{ content: "|"; content: "|" / ""; padding-inline: .25rem; }

/* [A11Y-8] Skip-Link-Ziel ohne Rahmen */
main:focus{ outline: none; }

/* USP-Bereich: eigene Kachel unter den zwei Hauptoptionen */
.card--usp{ margin-top: 1.5rem; gap: 1rem; background: var(--surface-tint); }
.card--usp p{ margin: .5rem 0 0; }
@media (min-width: 768px){
  .card--usp{ flex-direction: row; align-items: flex-end; gap: 1.5rem; }
  .card--usp .card__text{ flex: 1; }
  .card--usp .actions{ flex: 0 0 calc(50% - 1.5rem - 2px); } /* Breite/Kante wie der Button der Kachel darüber */
}
