:root {
  --ink: #241b16;
  --paper: #f7f3ed;
  --bone: #fffaf2;
  --signal: #dc4a28;
  --red: #a92820;
  --gold: #d99b38;
  --muted: #6e645e;
  --dark: #2b211b;
  --dark-soft: #352920;
  --line: rgba(36, 27, 22, .16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

a { color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(247, 243, 237, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-logo {
  display: block;
  width: clamp(124px, 14vw, 168px);
  height: auto;
  border-radius: 6px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--bone);
  background: var(--signal);
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  font-weight: 750;
  color: #4d4039;
}

.nav a { text-decoration: none; }

.nav .button {
  min-height: 44px;
  padding: 0 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.button.primary {
  color: var(--bone);
  background: var(--signal);
  box-shadow: 0 10px 30px rgba(226, 68, 31, .22);
}

.button.login {
  color: var(--ink);
  background: rgba(255, 250, 242, .72);
  border-color: rgba(36, 27, 22, .28);
  box-shadow: 0 8px 22px rgba(36, 27, 22, .08);
}

.button.login:hover,
.button.login:focus-visible {
  color: var(--bone);
  background: var(--dark-soft);
  border-color: var(--dark-soft);
}

.button.secondary {
  color: var(--ink);
  border-color: var(--ink);
  background: transparent;
}

.hero .button.secondary {
  color: var(--bone);
  border-color: rgba(255, 250, 242, .45);
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  min-height: 86vh;
  padding: clamp(44px, 8vw, 92px) clamp(20px, 5vw, 64px) 34px;
  background:
    linear-gradient(90deg, rgba(43, 33, 27, .82), rgba(43, 33, 27, .58) 42%, rgba(43, 33, 27, .06)),
    linear-gradient(0deg, rgba(43, 33, 27, .24), rgba(43, 33, 27, .02)),
    url("hero-digitaler-nachlass.png");
  background-position: center;
  background-size: cover;
  color: var(--bone);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 26vh;
  background: linear-gradient(0deg, rgba(43,33,27,.32), transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  max-width: 920px;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 28px;
  padding: 10px 14px;
  color: #ffe1d8;
  background: rgba(226, 68, 31, .18);
  border: 1px solid rgba(255, 218, 207, .25);
  border-radius: 4px;
  font-size: 16px;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-eyebrow {
  margin-bottom: 28px;
}

h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(54px, 9vw, 120px);
  line-height: .88;
  font-weight: 950;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.hero .hero-inner > p:not(.eyebrow) {
  max-width: 720px;
  margin: 28px 0 0;
  font-size: clamp(19px, 2.2vw, 28px);
  line-height: 1.22;
  color: rgba(255, 250, 242, .88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.proof-strip {
  position: relative;
  z-index: 1;
  align-self: end;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 980px;
  margin-top: 54px;
  background: rgba(255, 250, 242, .18);
  border: 1px solid rgba(255, 250, 242, .18);
}

.proof-strip div {
  padding: 18px;
  background: rgba(43, 33, 27, .28);
  font-weight: 800;
}

section {
  padding: clamp(54px, 8vw, 96px) clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}

.section-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 6vw, 86px);
  align-items: start;
}

h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: 0;
}

.lead {
  margin: 0;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.25;
  color: #453b35;
  font-weight: 720;
}

h2 + .lead,
.deliverable h2 + .lead,
.price-band h2 + p,
.final h2 + p {
  margin-top: clamp(18px, 2.4vw, 30px);
}

.stack { display: grid; gap: 14px; }

.risk {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.risk strong { font-size: 22px; }

.risk p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--bone);
  background: var(--dark);
  border-radius: 50%;
  font-weight: 900;
}

.dark {
  color: var(--bone);
  background: var(--dark);
}

.dark .lead { color: rgba(255, 250, 242, .74); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 36px;
  background: rgba(255, 250, 242, .2);
  border: 1px solid rgba(255, 250, 242, .2);
}

.step {
  min-height: 230px;
  padding: 24px;
  background: #352920;
}

.step span {
  color: var(--gold);
  font-weight: 950;
  text-transform: uppercase;
}

.step h3 {
  margin: 42px 0 12px;
  font-size: 25px;
  line-height: 1.05;
}

.step p {
  margin: 0;
  color: rgba(255, 250, 242, .72);
  line-height: 1.42;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 38px;
  background: var(--line);
  border: 1px solid var(--line);
}

.value-card {
  min-height: 230px;
  padding: 24px;
  background: var(--bone);
}

.value-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  margin-bottom: 28px;
  color: var(--bone);
  background: var(--signal);
  border-radius: 50%;
  font-weight: 950;
}

.value-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.08;
}

.value-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.security-grid article {
  padding: 22px;
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.security-grid span {
  color: var(--signal);
  font-size: 14px;
  font-weight: 950;
}

.security-grid h3 {
  margin: 18px 0 10px;
  font-size: 22px;
  line-height: 1.05;
}

.security-grid p {
  margin: 0;
  color: var(--muted);
  font-weight: 720;
  line-height: 1.45;
}

.deliverable {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 5vw, 54px);
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.deliverable h2 {
  max-width: 760px;
}

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

.checklist li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: #352d28;
  font-weight: 760;
  line-height: 1.35;
}

.checklist li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--bone);
  background: var(--dark);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 950;
}

.ad-section {
  background: #eee7df;
}

.ad-intro {
  grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
  gap: clamp(48px, 8vw, 118px);
}

.ad-intro h2 {
  max-width: 560px;
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1.04;
}

.ad-intro .lead {
  max-width: 640px;
  padding-top: .18em;
}

.ad-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.ad-card {
  min-height: 280px;
  padding: clamp(24px, 4vw, 38px);
  background: var(--bone);
  border: 1px dashed rgba(226, 68, 31, .46);
  border-radius: 8px;
}

.ad-card span {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 6px 9px;
  color: var(--bone);
  background: var(--signal);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.ad-card h3 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
}

.ad-card p {
  max-width: 620px;
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 720;
  line-height: 1.42;
}

.ad-card a {
  color: var(--signal);
  font-weight: 900;
  text-decoration: none;
}

.dark-ad {
  color: var(--bone);
  background: var(--dark);
  border-color: rgba(255, 250, 242, .22);
}

.dark-ad p {
  color: rgba(255, 250, 242, .76);
}

.dark-ad a {
  color: #ffb39f;
}

.price-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
  padding: clamp(30px, 5vw, 60px);
  color: var(--bone);
  background: var(--red);
  border-radius: 8px;
}

.price-band .eyebrow {
  margin-bottom: 28px;
  color: #ffd8cf;
  background: rgba(255, 250, 242, .1);
  border-color: rgba(255, 250, 242, .2);
}

.price-band p {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 250, 242, .82);
  font-size: 21px;
  line-height: 1.35;
}

.price-action {
  display: grid;
  gap: 12px;
  justify-items: stretch;
  width: 100%;
  min-width: 0;
  padding: clamp(18px, 2.6vw, 24px);
  background: rgba(255, 250, 242, .1);
  border: 1px solid rgba(255, 250, 242, .18);
  border-radius: 8px;
}

.price {
  font-size: clamp(52px, 5.8vw, 82px);
  line-height: .9;
  font-weight: 950;
  white-space: nowrap;
}

.price-action span {
  color: rgba(255, 250, 242, .78);
  font-weight: 820;
}

.price-action .button {
  width: 100%;
}

.faq {
  display: grid;
  gap: 1px;
  margin-top: 34px;
  background: var(--line);
  border: 1px solid var(--line);
}

details {
  padding: 22px 24px;
  background: var(--bone);
}

summary {
  cursor: pointer;
  font-size: 20px;
  font-weight: 850;
}

details p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.final {
  text-align: center;
  background: var(--bone);
}

.final h2 {
  max-width: 920px;
  margin: 0 auto;
}

.final p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.35;
}

.final .hero-actions { justify-content: center; }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 26px 20px;
  color: var(--muted);
  background: #eee7df;
  font-weight: 700;
}

.footer a { text-decoration: none; }

.legal-page {
  background: var(--paper);
}

.legal-hero {
  padding-top: clamp(52px, 8vw, 90px);
}

.legal-hero .eyebrow {
  color: var(--bone);
  background: var(--signal);
  border-color: var(--signal);
}

.legal-hero h1 {
  max-width: 1040px;
  color: var(--ink);
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: .96;
  overflow-wrap: break-word;
  hyphens: auto;
}

.legal-hero .lead {
  max-width: 860px;
  margin-top: 22px;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 1160px;
  margin: 0 auto;
}

.legal-grid.legal-wide {
  grid-template-columns: 1fr;
}

.legal-grid .cookie-declaration {
  grid-column: 1 / -1;
}

.cookie-declaration h2 {
  margin-bottom: 10px;
}

.cookie-details {
  margin-top: 12px;
  padding: 0;
  background: transparent;
  border: 0;
}

.cookie-details summary {
  width: fit-content;
  padding: 10px 12px;
  color: var(--bone);
  background: var(--signal);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 800;
  list-style: none;
}

.cookie-details summary::-webkit-details-marker {
  display: none;
}

.cookiebot-frame {
  margin-top: 16px;
  padding: 18px;
  overflow-x: auto;
  background: rgba(255, 255, 255, .68);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.42;
}

.cookiebot-frame * {
  font-size: 14px !important;
  font-weight: 560 !important;
  line-height: 1.42 !important;
}

.cookiebot-frame h1,
.cookiebot-frame h2,
.cookiebot-frame h3,
.cookiebot-frame strong,
.cookiebot-frame th {
  color: var(--ink) !important;
  font-weight: 720 !important;
}

.cookiebot-frame table {
  width: 100% !important;
}

.legal-grid article {
  padding: clamp(22px, 3vw, 34px);
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.legal-grid h2 {
  margin-bottom: 14px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.05;
}

.legal-grid p {
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 720;
  line-height: 1.55;
}

.contact-dialog {
  width: min(620px, calc(100vw - 32px));
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
}

.contact-dialog::backdrop {
  background: rgba(43, 33, 27, .56);
  backdrop-filter: blur(6px);
}

.contact-card {
  padding: clamp(24px, 4vw, 36px);
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .32);
}

.contact-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-head h2 {
  font-size: clamp(36px, 5vw, 56px);
}

.contact-head button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  font: inherit;
  font-weight: 850;
}

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

.contact-grid div {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-grid strong,
.contact-grid span,
.contact-grid a {
  display: block;
}

.contact-grid strong {
  margin-bottom: 8px;
}

.contact-grid span,
.contact-grid a {
  color: var(--muted);
  font-weight: 740;
  line-height: 1.4;
}

@media (max-width: 860px) {
  .nav a:not(.button) { display: none; }
  .nav { gap: 10px; }
  .hero { min-height: auto; }
  .split,
  .steps,
  .value-grid,
  .deliverable,
  .proof-strip,
  .price-band,
  .ad-grid,
  .security-grid,
  .legal-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .price { white-space: normal; }
  .topbar { padding-inline: 18px; }
}

@media (max-width: 520px) {
  .topbar {
    gap: 8px;
    padding-inline: 14px;
  }
  .brand { font-size: 14px; }
  .brand-logo { width: 98px; }
  .nav {
    gap: 6px;
    margin-left: auto;
  }
  .nav .button {
    min-height: 40px;
    padding: 0 10px;
    font-size: 13px;
    border-radius: 5px;
  }
  .hero { padding-inline: 20px; }
  h1 {
    font-size: clamp(42px, 12vw, 52px);
    line-height: .94;
  }
  .hero .hero-inner > p:not(.eyebrow) { font-size: 20px; }
  .hero-actions .button {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
}
