:root {
  --blue: #05264f;
  --blue-2: #0b3d70;
  --blue-soft: #eef4fa;
  --gold: #c8943c;
  --gold-soft: #f7eadc;
  --green: #46685e;
  --green-soft: #edf4f1;
  --paper: #fbf8f2;
  --white: #ffffff;
  --ink: #172335;
  --muted: #647183;
  --line: #e3d9c9;
  --line-blue: rgba(255, 255, 255, 0.18);
  --shadow: 0 22px 52px rgba(5, 38, 79, 0.12);
  --shadow-soft: 0 14px 34px rgba(5, 38, 79, 0.08);
  --radius: 8px;
  --container: min(1180px, calc(100% - 48px));
}

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

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

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

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: anywhere;
}

.hero-copy,
.hero-panel,
.section-copy,
.info-card,
.question-card,
.step-card,
.article-panel,
.hero-list li,
.trust-grid article {
  min-width: 0;
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  color: var(--blue);
  letter-spacing: 0;
}

h1 {
  max-width: 870px;
  margin-bottom: 20px;
  color: var(--white);
  font-size: 58px;
  line-height: 1.04;
  word-break: break-word;
}

h2 {
  margin-bottom: 16px;
  font-size: 42px;
  line-height: 1.1;
}

h3 {
  margin-bottom: 10px;
  font-size: 23px;
  line-height: 1.18;
}

p {
  margin-bottom: 0;
}

:focus-visible {
  outline: 3px solid rgba(200, 148, 60, 0.7);
  outline-offset: 3px;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 400;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--blue);
  font-weight: 850;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
  padding: 0 clamp(18px, 4vw, 42px);
  border-bottom: 1px solid var(--line-blue);
  background: rgba(5, 38, 79, 0.98);
  color: var(--white);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.brand-name,
.brand-line {
  display: block;
}

.brand-name {
  font-size: 19px;
  line-height: 1.1;
}

.brand-line {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 650;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.6vw, 24px);
  font-size: 14px;
  font-weight: 750;
}

.primary-nav a {
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.84);
  white-space: nowrap;
}

.primary-nav a[aria-current="page"],
.primary-nav a:hover {
  color: var(--white);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
}

.header-cta {
  border-color: rgba(255, 255, 255, 0.28);
  background: var(--gold);
  color: var(--blue);
  white-space: nowrap;
}

.button-primary {
  background: var(--gold);
  color: var(--blue);
  box-shadow: 0 12px 24px rgba(200, 148, 60, 0.18);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.button-blue {
  background: var(--blue);
  color: var(--white);
}

.button-light {
  border-color: var(--line);
  background: var(--white);
  color: var(--blue);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: transparent;
  color: var(--white);
}

.nav-toggle span[aria-hidden="true"] {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  padding: clamp(64px, 8vw, 108px) 0 54px;
  background:
    linear-gradient(90deg, rgba(5, 38, 79, 0.95) 0%, rgba(5, 38, 79, 0.82) 43%, rgba(5, 38, 79, 0.34) 100%),
    url("../img/nachlass-immobilie.jpg") center / cover no-repeat;
  color: var(--white);
}

.hero .container {
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.56fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: end;
}

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

.eyebrow {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 21px;
  line-height: 1.48;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.hero-list li,
.mini-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  padding: 14px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

.hero-panel {
  align-self: stretch;
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(251, 248, 242, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  margin-bottom: 0;
  color: var(--blue);
  font-size: 27px;
}

.hero-panel p {
  color: var(--muted);
}

.panel-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.panel-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
}

.panel-list span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: var(--gold-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.trust-strip {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.trust-grid article {
  min-height: 96px;
  padding: 18px;
  background: var(--white);
}

.trust-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.trust-grid strong {
  color: var(--blue);
  line-height: 1.25;
}

.section {
  padding: clamp(62px, 8vw, 104px) 0;
}

.section-white {
  background: var(--white);
}

.section-blue {
  background: var(--blue);
  color: var(--white);
}

.section-blue h2,
.section-blue h3 {
  color: var(--white);
}

.section-blue .section-lead,
.section-blue p {
  color: rgba(255, 255, 255, 0.82);
}

.section-head {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-head.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-kicker {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-lead {
  max-width: 790px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.52;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
}

.split-layout.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.88fr);
}

.section-copy p + p {
  margin-top: 14px;
}

.photo-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.photo-frame img {
  min-height: 310px;
  object-fit: cover;
}

.photo-frame figcaption {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 16px 18px;
  color: var(--muted);
}

.photo-frame strong {
  color: var(--blue);
}

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

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

.info-card,
.question-card,
.step-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.section-blue .info-card,
.section-blue .question-card,
.section-blue .step-card {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.info-card .marker,
.step-card .marker {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 8px;
  background: var(--gold-soft);
  color: var(--blue);
  font-weight: 900;
}

.section-blue .marker {
  background: rgba(255, 255, 255, 0.14);
  color: var(--gold);
}

.info-card p,
.question-card p,
.step-card p {
  color: var(--muted);
}

.info-card .button {
  margin-top: 18px;
}

.section-blue .info-card p,
.section-blue .question-card p,
.section-blue .step-card p {
  color: rgba(255, 255, 255, 0.78);
}

.question-card {
  display: grid;
  gap: 14px;
}

.question-card label {
  display: grid;
  gap: 8px;
  font-weight: 800;
  color: var(--blue);
}

.question-card select,
.question-card input,
.question-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 12px 13px;
  color: var(--ink);
}

.question-card textarea {
  min-height: 122px;
  resize: vertical;
}

.check-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-weight: 650;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
}

.check-row a,
.form-note a,
.form-status {
  color: var(--blue);
  font-weight: 850;
}

.form-note {
  color: var(--muted);
  font-size: 14px;
}

.form-status {
  min-height: 24px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.summary-box {
  min-height: 130px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--blue-soft);
  padding: 16px;
  color: var(--blue);
}

.summary-box strong {
  display: block;
  margin-bottom: 8px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--blue);
  font-size: 14px;
  font-weight: 850;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: start;
}

.side-nav {
  position: sticky;
  top: 100px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.side-nav strong {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
}

.side-nav a {
  display: block;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 750;
}

.article-stack {
  display: grid;
  gap: 22px;
}

.article-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow-soft);
}

.article-panel h2 {
  font-size: 34px;
}

.article-panel ul,
.article-panel ol {
  margin: 16px 0 0;
  padding-left: 22px;
}

.article-panel li + li {
  margin-top: 8px;
}

.note {
  margin-top: 18px;
  border-left: 4px solid var(--gold);
  background: var(--gold-soft);
  padding: 14px 16px;
  color: var(--blue);
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.faq-question {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 0;
  background: transparent;
  padding: 18px 20px;
  color: var(--blue);
  font-weight: 900;
  text-align: left;
}

.faq-question::after {
  content: "+";
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 20px;
  line-height: 1;
}

.faq-question[aria-expanded="true"]::after {
  content: "-";
}

.faq-answer {
  display: none;
  padding: 0 20px 20px;
  color: var(--muted);
}

.faq-question[aria-expanded="true"] + .faq-answer {
  display: block;
}

.cta-band {
  padding: clamp(42px, 6vw, 72px) 0;
  background: var(--blue);
  color: var(--white);
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.cta-band h2 {
  color: var(--white);
}

.cta-band p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #f3efe6;
  padding: 36px 0;
  color: var(--muted);
}

.awz-contact-band {
  padding: clamp(42px, 6vw, 68px) 0;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.awz-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}

.awz-contact-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.awz-contact-card strong {
  color: var(--blue);
  font-size: 22px;
}

.awz-contact-card a {
  color: var(--blue);
  font-weight: 850;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 34px;
}

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

.footer-links a {
  color: var(--blue);
  font-weight: 750;
}

.source-links {
  margin-top: 18px;
  font-size: 14px;
}

.source-links a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1040px) {
  .primary-nav {
    gap: 12px;
    font-size: 13px;
  }

  .header-cta {
    display: none;
  }

  .hero-grid,
  .split-layout,
  .split-layout.reverse,
  .content-layout,
  .awz-contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .side-nav {
    position: static;
  }

  .hero-list,
  .trust-grid,
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  :root {
    --container: min(1180px, calc(100% - 32px));
  }

  .container {
    width: calc(100% - 32px);
    max-width: 1180px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

  .site-header {
    min-height: 68px;
  }

  .brand {
    min-width: 0;
  }

  .brand-line {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: fixed;
    inset: 68px 0 auto 0;
    display: none;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-bottom: 1px solid var(--line-blue);
    background: var(--blue);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    padding: 13px 14px;
  }

  .hero {
    min-height: auto;
    padding: 58px 0 42px;
    background:
      linear-gradient(90deg, rgba(5, 38, 79, 0.96), rgba(5, 38, 79, 0.72)),
      url("../img/nachlass-immobilie.jpg") center / cover no-repeat;
  }

  .hero-lead,
  .section-lead {
    font-size: 18px;
  }

  .hero-list,
  .trust-grid,
  .card-grid,
  .card-grid.two,
  .footer-grid,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .button,
  .hero-actions .button,
  .section-actions .button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 30px;
    line-height: 1.08;
  }

  .eyebrow {
    font-size: 12px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 21px;
  }

  .site-header {
    padding: 0 14px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero-panel,
  .info-card,
  .question-card,
  .step-card,
  .article-panel {
    padding: 18px;
  }

  .trust-grid article {
    min-height: auto;
  }
}
