/* ==========================================================================
   Postwechsel — design system
   Original stylesheet. Palette chosen deliberately away from postal-incumbent
   trade dress (no yellow/black). Rename the brand in one place: --brand-name
   is only used in markup, colours live here.
   ========================================================================== */

:root {
  /* Brand palette — deep teal + warm sand */
  --c-brand-900: #06312f;
  --c-brand-800: #0a4744;
  --c-brand-700: #0f5f5b;
  --c-brand-600: #14807a;
  --c-brand-500: #1a9d95;
  --c-brand-100: #d7efed;
  --c-brand-050: #eef8f7;

  --c-accent-600: #b4560f;
  --c-accent-500: #d96c1c;
  --c-accent-100: #fbe8d8;

  --c-ink: #10201f;
  --c-ink-soft: #47605e;
  --c-ink-faint: #7b918f;
  --c-line: #dbe5e4;
  --c-line-soft: #eaf1f0;
  --c-bg: #f7faf9;
  --c-surface: #ffffff;

  --c-ok-600: #1e7a4d;
  --c-ok-100: #dcf2e6;
  --c-warn-600: #9a6a05;
  --c-warn-100: #fdf1d6;
  --c-err-600: #b3261e;
  --c-err-100: #fbe3e1;

  /* Type */
  --f-sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --f-display: "Inter", "Segoe UI", system-ui, sans-serif;

  --t-xs: 0.78rem;
  --t-sm: 0.875rem;
  --t-base: 1rem;
  --t-md: 1.09rem;
  --t-lg: 1.32rem;
  --t-xl: 1.72rem;
  --t-2xl: 2.25rem;
  --t-3xl: 3rem;

  /* Space & shape */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 24px; --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(6, 49, 47, .06), 0 1px 3px rgba(6, 49, 47, .07);
  --shadow-md: 0 4px 10px rgba(6, 49, 47, .07), 0 12px 24px -12px rgba(6, 49, 47, .16);
  --shadow-lg: 0 10px 20px rgba(6, 49, 47, .08), 0 30px 60px -30px rgba(6, 49, 47, .28);

  --wrap: 1140px;
  --wrap-narrow: 760px;
}

/* --------------------------------------------------------- reset & base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: var(--t-base);
  line-height: 1.62;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.18; margin: 0 0 var(--s-4); letter-spacing: -0.015em; }
h1 { font-size: var(--t-3xl); font-weight: 780; }
h2 { font-size: var(--t-2xl); font-weight: 720; }
h3 { font-size: var(--t-lg); font-weight: 660; }
p  { margin: 0 0 var(--s-4); }
a  { color: var(--c-brand-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--c-brand-500); }
small { font-size: var(--t-sm); }
hr { border: 0; border-top: 1px solid var(--c-line); margin: var(--s-6) 0; }

:focus-visible {
  outline: 3px solid var(--c-brand-500);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--c-brand-800); color: #fff; padding: var(--s-3) var(--s-4);
  z-index: 100; border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* --------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s-5); }
.wrap--narrow { max-width: var(--wrap-narrow); }
.section { padding-block: var(--s-9); }
.section--tight { padding-block: var(--s-7); }
.section--alt { background: var(--c-surface); border-block: 1px solid var(--c-line-soft); }
.stack > * + * { margin-top: var(--s-4); }
.center { text-align: center; }
.lede { font-size: var(--t-md); color: var(--c-ink-soft); max-width: 62ch; }
.center .lede { margin-inline: auto; }

.grid { display: grid; gap: var(--s-5); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.eyebrow {
  display: inline-block;
  font-size: var(--t-xs); font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--c-brand-600); margin-bottom: var(--s-3);
}

/* ------------------------------------------------------------ topbar/nav */
.topbar {
  background: var(--c-brand-900); color: var(--c-brand-100);
  font-size: var(--t-xs); padding-block: var(--s-2);
}
.topbar strong { color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: var(--s-5);
  min-height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: var(--s-3); font-weight: 760; font-size: var(--t-md); color: var(--c-brand-900); text-decoration: none; letter-spacing: -.02em; }
.brand:hover { color: var(--c-brand-700); }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(140deg, var(--c-brand-600), var(--c-brand-800));
  display: grid; place-items: center; color: #fff; flex: none;
}
.brand__mark svg { width: 19px; height: 19px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: var(--s-5); }
.nav a { color: var(--c-ink-soft); text-decoration: none; font-size: var(--t-sm); font-weight: 560; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--c-brand-700); }
/* Der CTA im Menü ist ein Button – Link-Farben dürfen ihn nicht überschreiben */
.nav a.btn--primary, .nav a.btn--primary:hover, .nav a.btn--primary[aria-current="page"] { color: #fff; }
.nav-toggle { display: none; }

/* ---------------------------------------------------------------- button */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  font: inherit; font-weight: 640; line-height: 1.2;
  padding: 14px 24px; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--c-brand-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--c-brand-600); color: #fff; box-shadow: var(--shadow-md); }
.btn--accent { background: var(--c-accent-500); color: #fff; }
.btn--accent:hover { background: var(--c-accent-600); color: #fff; }
.btn--ghost { background: var(--c-surface); color: var(--c-brand-800); border-color: var(--c-line); }
.btn--ghost:hover { border-color: var(--c-brand-500); color: var(--c-brand-700); }
.btn--sm { padding: 9px 16px; font-size: var(--t-sm); }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ------------------------------------------------------------------ hero */
.hero {
  background:
    radial-gradient(1000px 460px at 88% -10%, rgba(26,157,149,.16), transparent 60%),
    linear-gradient(180deg, var(--c-brand-050), var(--c-bg) 70%);
  padding-block: var(--s-9) var(--s-8);
  border-bottom: 1px solid var(--c-line-soft);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s-8); align-items: center; }
.hero h1 { max-width: 15ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.hero__points { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: var(--s-2); }
.hero__points li { display: flex; gap: var(--s-3); align-items: flex-start; color: var(--c-ink-soft); font-size: var(--t-sm); }
.hero__points li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: var(--c-ok-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e7a4d' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* ------------------------------------------------------------------ card */
.card {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: var(--s-5);
  box-shadow: var(--shadow-sm);
}
.card--raised { box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: var(--s-2); }
.card p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- notices */
.notice {
  display: flex; gap: var(--s-4); align-items: flex-start;
  border-radius: var(--r-md); padding: var(--s-4) var(--s-5);
  font-size: var(--t-sm); line-height: 1.55;
  border: 1px solid;
}
.notice p:last-child { margin-bottom: 0; }
.notice--info  { background: var(--c-brand-050); border-color: var(--c-brand-100); color: var(--c-brand-900); }
.notice--warn  { background: var(--c-warn-100); border-color: #f0dca8; color: #5b4102; }
.notice--ok    { background: var(--c-ok-100); border-color: #b9e2cc; color: #10462c; }
.notice--err   { background: var(--c-err-100); border-color: #f2c4c0; color: #7a1a15; }
.notice__icon { flex: none; font-size: 1.15rem; line-height: 1.3; }

/* -------------------------------------------------------------- steps 1-3 */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.step { position: relative; padding-top: var(--s-6); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--c-brand-800); color: #fff;
  display: grid; place-items: center; font-weight: 720; font-size: var(--t-sm);
}
.step h3 { margin-top: var(--s-2); }
.step p { color: var(--c-ink-soft); margin-bottom: 0; }

/* --------------------------------------------------------------- pricing */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); align-items: stretch; }
.price {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: var(--s-6); display: flex; flex-direction: column;
}
.price--featured { border-color: var(--c-brand-500); box-shadow: var(--shadow-md); position: relative; }
.price--featured::after {
  content: "Meistgewählt"; position: absolute; top: -12px; right: var(--s-5);
  background: var(--c-brand-700); color: #fff; font-size: var(--t-xs); font-weight: 680;
  padding: 4px 12px; border-radius: var(--r-pill);
}
.price__name { font-weight: 700; color: var(--c-brand-800); margin-bottom: var(--s-2); }
.price__amount { font-size: var(--t-2xl); font-weight: 780; letter-spacing: -.03em; }
.price__amount span { font-size: var(--t-sm); font-weight: 500; color: var(--c-ink-faint); }
.price__list { list-style: none; padding: 0; margin: var(--s-5) 0; display: grid; gap: var(--s-2); font-size: var(--t-sm); }
.price__list li { display: flex; gap: var(--s-3); color: var(--c-ink-soft); }
.price__list li::before { content: "–"; color: var(--c-brand-500); font-weight: 700; }
.price .btn { margin-top: auto; }

.breakdown { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.breakdown th, .breakdown td { text-align: left; padding: var(--s-3) var(--s-2); border-bottom: 1px solid var(--c-line-soft); }
.breakdown td:last-child, .breakdown th:last-child { text-align: right; white-space: nowrap; }
.breakdown tfoot td { font-weight: 720; border-bottom: 0; border-top: 2px solid var(--c-line); font-size: var(--t-base); }
.breakdown caption { text-align: left; color: var(--c-ink-faint); font-size: var(--t-xs); padding-bottom: var(--s-3); }

/* ------------------------------------------------------------------ FAQ */
.faq { display: grid; gap: var(--s-3); }
.faq details {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-md); padding: var(--s-4) var(--s-5);
}
.faq details[open] { border-color: var(--c-brand-100); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; font-weight: 640; list-style: none;
  display: flex; justify-content: space-between; gap: var(--s-4); align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--c-brand-600); font-size: 1.4rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details > *:not(summary) { margin-top: var(--s-3); color: var(--c-ink-soft); font-size: var(--t-sm); }

/* ----------------------------------------------------------------- forms */
.form-field { margin-bottom: var(--s-4); }
.form-field > label, .fieldset-legend {
  display: block; font-weight: 620; font-size: var(--t-sm); margin-bottom: var(--s-2);
}
.form-hint { display: block; font-size: var(--t-xs); color: var(--c-ink-faint); margin-top: var(--s-1); }
.req { color: var(--c-err-600); }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="number"], select, textarea {
  width: 100%; font: inherit; color: var(--c-ink);
  padding: 11px 14px; background: var(--c-surface);
  border: 1px solid var(--c-line); border-radius: var(--r-md);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:hover, select:hover, textarea:hover { border-color: var(--c-brand-100); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--c-brand-500);
  box-shadow: 0 0 0 4px rgba(26,157,149,.16);
}
textarea { min-height: 140px; resize: vertical; }
input[aria-invalid="true"], select[aria-invalid="true"] {
  border-color: var(--c-err-600); box-shadow: 0 0 0 4px rgba(179,38,30,.12);
}
.field-error { display: none; color: var(--c-err-600); font-size: var(--t-xs); margin-top: var(--s-1); font-weight: 600; }
.field-error.is-shown { display: block; }

fieldset { border: 0; padding: 0; margin: 0 0 var(--s-4); }

.row { display: grid; gap: var(--s-4); }
.row--2 { grid-template-columns: 1fr 1fr; }
.row--plz { grid-template-columns: 140px 1fr; }

/* selectable option cards (radio) */
.choice-grid { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.choice span {
  display: block; height: 100%;
  padding: var(--s-4); border: 1.5px solid var(--c-line); border-radius: var(--r-md);
  background: var(--c-surface); font-size: var(--t-sm); font-weight: 560;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.choice span em { display: block; font-style: normal; font-weight: 460; color: var(--c-ink-faint); font-size: var(--t-xs); margin-top: 2px; }
.choice input:hover + span { border-color: var(--c-brand-500); }
.choice input:focus-visible + span { outline: 3px solid var(--c-brand-500); outline-offset: 2px; }
.choice input:checked + span {
  border-color: var(--c-brand-600); background: var(--c-brand-050);
  box-shadow: inset 0 0 0 1px var(--c-brand-600);
}

/* checkbox rows */
.check { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--t-sm); margin-bottom: var(--s-3); }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--c-brand-700); }

/* progress */
.progress { margin-bottom: var(--s-6); }
.progress__bar { height: 6px; border-radius: var(--r-pill); background: var(--c-line-soft); overflow: hidden; }
.progress__fill { height: 100%; background: var(--c-brand-600); border-radius: inherit; transition: width .3s ease; }
.progress__labels { display: flex; justify-content: space-between; margin-top: var(--s-3); gap: var(--s-2); }
.progress__labels span { font-size: var(--t-xs); color: var(--c-ink-faint); font-weight: 600; }
.progress__labels span.is-active { color: var(--c-brand-700); }
.progress__labels span.is-done { color: var(--c-ok-600); }

.form-step { display: none; }
.form-step.is-active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.form-nav { display: flex; gap: var(--s-3); justify-content: space-between; margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--c-line-soft); }
.form-nav .btn--ghost { margin-right: auto; }

/* summary / review */
.review { display: grid; gap: var(--s-3); font-size: var(--t-sm); }
.review__row { display: grid; grid-template-columns: 200px 1fr; gap: var(--s-4); padding-bottom: var(--s-3); border-bottom: 1px solid var(--c-line-soft); }
.review__row dt { color: var(--c-ink-faint); }
.review__row dd { margin: 0; font-weight: 560; }

.summary-panel { position: sticky; top: 96px; }

/* --------------------------------------------------------------- footer */
.site-footer { background: var(--c-brand-900); color: #b7d4d1; padding-block: var(--s-8) var(--s-6); margin-top: var(--s-9); }
.site-footer a { color: #d7efed; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-6); }
.footer-grid h4 { color: #fff; font-size: var(--t-sm); text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--s-3); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); font-size: var(--t-sm); }
.footer-legal { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,.13); font-size: var(--t-xs); color: #8fb5b2; }
.footer-legal p { margin-bottom: var(--s-2); }

/* -------------------------------------------------------------- utility */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--t-xl); margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-5); }
.prose ul, .prose ol { padding-left: 1.25em; color: var(--c-ink-soft); }
.prose li { margin-bottom: var(--s-2); }
.placeholder { background: var(--c-warn-100); border-left: 3px solid #e0b64d; padding: 2px 6px; border-radius: 3px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; }
.muted { color: var(--c-ink-faint); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------- responsive */
@media (max-width: 900px) {
  :root { --t-3xl: 2.25rem; --t-2xl: 1.75rem; }
  .hero .wrap, .grid--3, .grid--2, .steps, .price-grid, .row--2, .footer-grid { grid-template-columns: 1fr; }
  .section { padding-block: var(--s-7); }
  .summary-panel { position: static; }

  .nav-toggle {
    display: inline-flex; margin-left: auto; align-items: center; gap: var(--s-2);
    background: none; border: 1px solid var(--c-line); border-radius: var(--r-md);
    padding: 8px 12px; font: inherit; font-size: var(--t-sm); cursor: pointer;
  }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--c-surface); border-bottom: 1px solid var(--c-line);
    flex-direction: column; align-items: stretch; gap: 0; padding: var(--s-3) var(--s-5) var(--s-5);
    box-shadow: var(--shadow-md);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: var(--s-3) 0; border-bottom: 1px solid var(--c-line-soft); }
  .nav .btn { margin-top: var(--s-3); }
  .review__row { grid-template-columns: 1fr; gap: var(--s-1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .topbar, .form-nav, .btn { display: none !important; }
  body { background: #fff; }
}
