:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --surface-soft: #f1f0ec;
  --surface-warm: #fbfaf7;
  --text: #171717;
  --muted: #5b5b5b;
  --border: #e6e1d8;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.05);
  --radius: 24px;
  --max-width: 1200px;

  --de-black: #161616;
  --de-red: #9d1f2d;
  --de-gold: #c8a24b;
  --hu-red: #b92a3a;
  --hu-green: #1f7b57;

  --primary: #151515;
  --primary-dark: #0e0e0f;
  --accent: #9d1f2d;
  --accent-soft: #fbf4e6;
  --green-accent: #1f7b57;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(200, 162, 75, 0.10), transparent 24%),
    radial-gradient(circle at left 10%, rgba(157, 31, 45, 0.05), transparent 22%),
    linear-gradient(180deg, #fbfbfa 0%, var(--bg) 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.74;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--green-accent);
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--primary-dark);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  margin-bottom: 1.15rem;
  font-size: clamp(2.5rem, 5.8vw, 5rem);
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.28rem, 2.1vw, 1.72rem);
}

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

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

.narrow { max-width: 860px; }

.skip-link {
  position: fixed;
  z-index: 200;
  top: 0.9rem;
  left: 0.9rem;
  padding: 0.8rem 1rem;
  transform: translateY(-180%);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--primary-dark);
  box-shadow: var(--shadow);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid rgba(21, 21, 21, 0.08);
}

.site-header::before {
  display: block;
  height: 6px;
  background: linear-gradient(90deg,
    var(--de-black) 0 28%,
    var(--de-red) 28% 56%,
    var(--de-gold) 56% 80%,
    #ffffff 80% 90%,
    var(--hu-green) 90% 100%);
  content: "";
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 90px;
  padding-block: 0.95rem;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  min-width: 250px;
  color: var(--primary-dark);
  text-decoration: none;
}

.brand-kicker {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.38rem;
  font-weight: 700;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.55rem 0.92rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--primary-dark);
  font-size: 0.93rem;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  border-color: rgba(157, 31, 45, 0.16);
  background: rgba(157, 31, 45, 0.06);
  color: var(--accent);
}

.main-nav a[aria-current="page"] {
  border-color: rgba(200, 162, 75, 0.34);
  background: linear-gradient(180deg, rgba(157, 31, 45, 0.06), rgba(200, 162, 75, 0.12));
  color: var(--accent);
}

.breadcrumb-wrap {
  padding-top: 1rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent);
}

.hero {
  position: relative;
  padding: clamp(4rem, 7vw, 7.4rem) 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 10%, rgba(200, 162, 75, 0.14), transparent 22%),
    radial-gradient(circle at 94% 8%, rgba(157, 31, 45, 0.10), transparent 18%),
    linear-gradient(180deg, #ffffff 0%, #f8f7f4 100%);
}

.hero::after {
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(21, 21, 21, 0.10), transparent);
  content: "";
}

.regional-hero {
  padding-top: clamp(2.8rem, 6vw, 5.4rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: clamp(2.4rem, 6vw, 5.4rem);
}

.eyebrow,
.section-label,
.card-kicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-label::before,
.card-kicker::before {
  display: inline-block;
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--de-black), var(--de-red), var(--de-gold));
  content: "";
}

.section-label.light {
  color: #f4dacd;
}

.section-label.light::before {
  background: linear-gradient(90deg, #f4dacd, #ffffff, #8ed2b6);
}

.lead {
  max-width: 760px;
  color: #343434;
  font-size: clamp(1.1rem, 1.95vw, 1.3rem);
  line-height: 1.68;
}

.microcopy {
  margin-top: 1rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.82rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 760;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(180deg, #1f2023 0%, #121317 100%);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(18, 19, 23, 0.16);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: linear-gradient(180deg, #15161a 0%, #0c0d10 100%);
  color: #ffffff;
}

.button-secondary {
  border-color: rgba(21, 21, 21, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-dark);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(157, 31, 45, 0.22);
  background: #ffffff;
  color: var(--accent);
}

.hero-image {
  position: relative;
  margin: 0;
}

.hero-image::before {
  position: absolute;
  inset: -18px 22px 22px -18px;
  z-index: 0;
  border: 1px solid rgba(200, 162, 75, 0.28);
  border-radius: calc(var(--radius) + 8px);
  background:
    linear-gradient(135deg, rgba(157, 31, 45, 0.08), transparent 35%),
    linear-gradient(315deg, rgba(31, 123, 87, 0.06), transparent 28%);
  content: "";
}

.hero-image::after {
  position: absolute;
  inset: auto -10px -14px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 162, 75, 0.18) 0%, rgba(200, 162, 75, 0) 70%);
  content: "";
}

.hero-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(21, 21, 21, 0.06);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.section {
  position: relative;
  padding: clamp(4rem, 7vw, 6.8rem) 0;
}

.section + .section::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(140px, 40%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(200, 162, 75, 0.28), transparent);
  content: "";
}

.section-soft {
  background: var(--surface-soft);
}

.section-dark {
  background:
    linear-gradient(135deg, #18191c 0%, #101113 68%, #1a4737 100%);
  color: #f4f4f2;
}

.section-dark h2,
.section-dark h3,
.section-dark .footer-title { color: #ffffff; }
.section-dark p,
.section-dark li { color: #e2e2de; }

.section-accent { background: linear-gradient(180deg, #fffaf0 0%, #f8f2e4 100%); }
.intro p { font-size: 1.05rem; }

.answer-box,
.info-card,
.topic-card,
.state-card,
.service-card,
.process-grid article,
.error-panel,
.faq details { border-radius: var(--radius); }

.answer-box {
  margin-top: 2.2rem;
  padding: 1.55rem;
  border: 1px solid rgba(200, 162, 75, 0.30);
  border-left: 5px solid var(--de-gold);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.answer-box h3 { margin-bottom: 0.5rem; }
.answer-box p { margin-bottom: 0; }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  align-items: end;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.section-heading > p { color: var(--muted); }

.state-grid,
.process-grid,
.topic-grid,
.card-grid,
.four-columns,
.five-columns,
.compact-grid,
.three,
.four,
.card-grid-4,
.steps-grid {
  display: grid;
  gap: 1.15rem;
}

.state-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.process-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.topic-card.featured { grid-column: span 2; }

.state-card,
.topic-card,
.info-card,
.process-grid article {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.6rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.state-card.featured,
.topic-card.featured {
  border-color: rgba(200, 162, 75, 0.42);
  background: linear-gradient(180deg, #ffffff 0%, #fbf7ec 100%);
}

.state-card h3 a,
.topic-card h3 a {
  color: var(--primary-dark);
  text-decoration: none;
}

.state-card p,
.topic-card p,
.process-grid p,
.faq details p { color: var(--muted); }

/* Helle Karten behalten auch in dunklen Abschnitten dunkle, gut lesbare Schrift. */
.section-dark .state-card,
.section-dark .topic-card,
.section-dark .info-card,
.section-dark .answer-box,
.section-dark .process-grid article,
.section-dark .faq details,
.section-dark .error-panel {
  color: var(--text);
}

.section-dark .state-card h2,
.section-dark .state-card h3,
.section-dark .topic-card h2,
.section-dark .topic-card h3,
.section-dark .info-card h2,
.section-dark .info-card h3,
.section-dark .answer-box h2,
.section-dark .answer-box h3,
.section-dark .process-grid article h2,
.section-dark .process-grid article h3,
.section-dark .faq details summary,
.section-dark .error-panel h2,
.section-dark .error-panel h3 {
  color: var(--primary-dark);
}

.section-dark .state-card p,
.section-dark .state-card li,
.section-dark .topic-card p,
.section-dark .topic-card li,
.section-dark .info-card p,
.section-dark .info-card li,
.section-dark .answer-box p,
.section-dark .answer-box li,
.section-dark .process-grid article p,
.section-dark .process-grid article li,
.section-dark .faq details p,
.section-dark .faq details li,
.section-dark .error-panel p,
.section-dark .error-panel li {
  color: var(--muted);
}
.state-card .text-link,
.topic-card .text-link { margin-top: auto; }
.text-link { font-weight: 760; }

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(2rem, 6vw, 5rem);
}

.offer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.external-cta { margin-top: 0.75rem; }

.service-card {
  padding: clamp(1.55rem, 4vw, 2.35rem);
  border: 1px solid rgba(200, 162, 75, 0.34);
  background: linear-gradient(145deg, #17181b 0%, #111215 66%, #193b30 100%);
  color: #f7f7f3;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.service-card h3 {
  color: #ffffff;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 0.72rem 0 0.72rem 1.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: #f4f4f0;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--de-gold);
  font-weight: 900;
  content: "✓";
}

.check-list li:last-child {
  border-bottom: 0;
}

.step {
  display: inline-block;
  margin-bottom: 0.9rem;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.author-teaser { background: var(--surface); }

.author-grid {
  display: grid;
  grid-template-columns: 140px minmax(0, 760px);
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.author-initial {
  display: grid;
  width: 140px;
  height: 140px;
  place-items: center;
  border: 1px solid rgba(200, 162, 75, 0.45);
  border-radius: 50%;
  background: linear-gradient(135deg, #fff7ea 0%, #ffffff 54%, #eef7f2 100%);
  color: var(--primary-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.faq details {
  margin-bottom: 0.9rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
}

.faq summary {
  padding: 1.12rem 1.3rem;
  cursor: pointer;
  color: var(--primary-dark);
  font-weight: 760;
}

.faq details p {
  padding: 0 1.3rem 1.25rem;
  margin-bottom: 0;
}

.source-note {
  padding: 1.15rem 0 2.4rem;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.84rem;
}

.source-note p { margin: 0; }

.site-footer {
  position: relative;
  padding-top: 3.5rem;
  background: linear-gradient(180deg, #18191c 0%, #101114 100%);
  color: #dfdfdc;
}

.site-footer::before {
  display: block;
  height: 4px;
  background: linear-gradient(90deg,
    var(--de-black) 0 27%,
    var(--de-red) 27% 54%,
    var(--de-gold) 54% 79%,
    #ffffff 79% 89.5%,
    var(--hu-green) 89.5% 100%);
  content: "";
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.7fr;
  gap: 2.6rem;
  padding-top: 2.35rem;
  padding-bottom: 2.45rem;
}

.site-footer a { color: #ffffff; }
.footer-title {
  margin-bottom: 0.6rem;
  color: #ffffff;
  font-weight: 800;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: #b9b9b2;
  font-size: 0.83rem;
}

.footer-bottom p { margin: 0; }

.error-hero { padding-top: 4rem; }

.error-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 2rem;
  align-items: start;
}

.error-code {
  margin-bottom: 0.8rem;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.error-panel {
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.95);
  box-shadow: var(--shadow-soft);
}

.error-links {
  display: grid;
  gap: 0.7rem;
}

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

@media (max-width: 1080px) {
  .state-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .header-inner,
  .hero-grid,
  .section-heading,
  .split,
  .offer-grid,
  .error-grid {
    grid-template-columns: 1fr;
  }

  .header-inner { align-items: flex-start; }

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

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

@media (max-width: 700px) {
  body { font-size: 17px; }

  .header-inner { display: block; }

  .main-nav {
    justify-content: flex-start;
    margin-top: 1rem;
  }

  .main-nav a {
    min-height: 36px;
    padding: 0.5rem 0.78rem;
    font-size: 0.9rem;
  }

  .topic-grid,
  .process-grid,
  .footer-grid,
  .author-grid,
  .state-grid {
    grid-template-columns: 1fr;
  }

  .topic-card.featured { grid-column: auto; }

  .author-initial {
    width: 112px;
    height: 112px;
  }

  .footer-bottom { display: block; }

  .footer-bottom p + p { margin-top: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .main-nav a { transition: none; }
}

/* Verfeinerte, seitenbezogene Gestaltung */
.site-header::before {
  background: linear-gradient(90deg,
    var(--de-black) 0 33.33%,
    var(--de-red) 33.33% 66.66%,
    var(--de-gold) 66.66% 100%);
}

.page-seller .site-header::before {
  background: linear-gradient(90deg,
    var(--de-black) 0 24%,
    var(--de-red) 24% 48%,
    var(--de-gold) 48% 70%,
    var(--hu-red) 70% 80%,
    #ffffff 80% 90%,
    var(--hu-green) 90% 100%);
}

.main-nav .nav-cta {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(14, 14, 15, 0.13);
}

.main-nav .nav-cta:hover,
.main-nav .nav-cta:focus-visible {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.page-seller .main-nav .nav-cta:hover,
.page-seller .main-nav .nav-cta:focus-visible {
  border-color: var(--hu-green);
  background: var(--hu-green);
}

.page-home .hero {
  min-height: 680px;
}

.page-pillar .hero,
.page-region .hero,
.page-seller .hero {
  background:
    radial-gradient(circle at 10% 10%, rgba(200, 162, 75, 0.12), transparent 23%),
    radial-gradient(circle at 94% 9%, rgba(157, 31, 45, 0.08), transparent 18%),
    linear-gradient(180deg, #ffffff 0%, #f8f7f4 100%);
}

.page-region .hero {
  background:
    radial-gradient(circle at 10% 10%, rgba(200, 162, 75, 0.13), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f6f5f1 100%);
}

.page-seller .hero {
  background:
    radial-gradient(circle at 9% 11%, rgba(185, 42, 58, 0.09), transparent 22%),
    radial-gradient(circle at 94% 9%, rgba(31, 123, 87, 0.09), transparent 18%),
    linear-gradient(180deg, #ffffff 0%, #f8f7f4 100%);
}

.page-seller .eyebrow,
.page-seller .section-label,
.page-seller .card-kicker {
  color: var(--hu-green);
}

.page-seller .eyebrow::before,
.page-seller .section-label::before,
.page-seller .card-kicker::before {
  background: linear-gradient(90deg, var(--hu-red), #d4d4d4, var(--hu-green));
}

.page-seller .section-label.light {
  color: #bfe8d6;
}

.page-seller .button-secondary {
  border-color: rgba(31, 123, 87, 0.28);
  color: var(--hu-green);
}

.page-seller .button-secondary:hover,
.page-seller .button-secondary:focus-visible {
  border-color: var(--hu-green);
  color: var(--hu-green);
}

.page-seller .section-dark {
  background: linear-gradient(135deg, #18191c 0%, #111214 56%, #154332 100%);
}

.page-region .topic-card,
.page-region .state-card,
.page-region .info-card {
  border-top: 3px solid rgba(200, 162, 75, 0.75);
}

.page-pillar .topic-card,
.page-pillar .state-card,
.page-pillar .info-card {
  border-top: 3px solid rgba(157, 31, 45, 0.68);
}

.page-seller .topic-card,
.page-seller .state-card,
.page-seller .info-card {
  border-top: 3px solid rgba(31, 123, 87, 0.68);
}

.page-info .hero {
  background: linear-gradient(180deg, #ffffff 0%, #f8f7f4 100%);
}

.hero-copy > p:not(.eyebrow):not(.lead):not(.microcopy) {
  max-width: 760px;
}

.narrow > p:last-child {
  margin-bottom: 0;
}

.section:nth-of-type(even):not(.section-dark):not(.section-soft):not(.section-accent):not(.author-teaser) {
  background: rgba(255, 255, 255, 0.58);
}

@media (max-width: 1120px) {
  .main-nav {
    gap: 0.35rem;
  }
  .main-nav a {
    padding-inline: 0.72rem;
    font-size: 0.89rem;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: relative;
  }

  .main-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scrollbar-width: thin;
  }

  .main-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .page-home .hero {
    min-height: auto;
  }
}
