:root {
  --bg: #f4f1ea;
  --paper: #fffcf7;
  --ink: #1c2430;
  --muted: #5c6570;
  --line: #ddd6c8;
  --navy: #173a56;
  --teal: #0f6b66;
  --teal-hover: #0c5854;
  --ok: #1f7a4d;
  --ok-bg: #e7f6ee;
  --warn: #9a6700;
  --warn-bg: #fff6e0;
  --bad: #b42318;
  --bad-bg: #fdecea;
  --shadow: 0 10px 40px rgba(28, 36, 48, 0.08);
  --radius: 18px;
  --safe: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Source Serif 4", Georgia, serif;
  font-size: 19px;
  line-height: 1.45;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.skip {
  position: absolute; left: -999px;
}
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px; }
.top {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
}
.top-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: auto;
}
.lang-wrap select {
  font-size: 0.85rem;
  padding: 6px 8px;
  border-radius: 8px;
  max-width: 11rem;
}
.place-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #eef8f6;
  border: 1px solid var(--teal);
  border-radius: 999px;
  padding: 4px 6px 4px 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.place-wrap.is-empty {
  background: var(--warn-bg);
  border-color: var(--warn);
}
.place-lab {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
  white-space: nowrap;
}
.place-wrap.is-empty .place-lab { color: var(--warn); }
.place-wrap select {
  font-size: 0.92rem;
  font-weight: 650;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: var(--navy);
  max-width: min(16rem, 46vw);
  cursor: pointer;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}
.brand {
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
}
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.nav a:hover { color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 650; }
.nav a.nav-account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  flex-shrink: 0;
}
.public-main .card ul { margin: 0 0 18px; padding-left: 1.2em; }
.public-main .card li { margin: 8px 0; }

/* Dekorative Illustrationen */
.illu { display: block; }
.hero { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.hero[hidden] { display: none; }
.illu-hero { width: 100%; max-width: 340px; height: auto; margin: 0 0 8px; }
.hero .hero-claim { margin-top: 4px; }
@media (min-width: 720px) {
  .hero { flex-direction: row-reverse; align-items: center; gap: 24px; }
  .illu-hero { width: 300px; flex: none; margin: 0; }
}
.wiz { display: flex; flex-direction: column; gap: 14px; margin: 0 0 28px; }
.wiz-step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
}
.wiz-step h3 {
  margin: 0 0 14px;
  font-size: 1.12rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.wiz-step h3 .illu-step { width: 42px; height: 42px; flex: none; }
.wiz-step h3 .illu-mail { width: 42px; height: 36px; flex: none; }
.wiz-step.is-off { opacity: 0.48; box-shadow: none; pointer-events: none; }
.wiz-step.is-on { border-color: var(--teal); box-shadow: 0 10px 32px rgba(15, 107, 102, 0.12); }
.wiz-step.is-done { border-color: #cfe8dc; }
.file-chip {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  background: #eef8f6; border-radius: 12px; padding: 12px 16px; margin-bottom: 14px;
}
.file-chip strong { display: block; word-break: break-all; }
.file-chip .muted { font-size: 0.92rem; margin-top: 2px; }
.file-chip .spinner { width: 22px; height: 22px; border-width: 2px; }
.wait { display: flex; gap: 16px; align-items: center; margin: 8px 0; }
.wait p { margin: 0 0 4px; }
.spinner {
  width: 28px; height: 28px; flex: none;
  border: 3px solid #d7efed; border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.drop-sm {
  padding: 14px 16px;
  border-style: dashed;
}
.drop-sm p { margin: 0; font-size: 0.98rem; color: var(--muted); }
.step-heading { font-size: 1.15rem; margin: 8px 0 10px; }
.step-strip {
  list-style: none; margin: 8px 0 28px; padding: 0;
  display: grid; gap: 14px; grid-template-columns: 1fr;
}
@media (min-width: 560px) { .step-strip { grid-template-columns: repeat(3, 1fr); } }
.step-strip li {
  display: flex; align-items: center; gap: 12px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.98rem; color: var(--navy); counter-increment: step;
}
.step-strip .illu-step { width: 44px; height: 44px; flex: none; }
.illu-mail { width: 30px; height: 26px; vertical-align: -6px; margin-right: 8px; }
.mail-banner {
  display: flex; gap: 24px; align-items: center;
  background: #eef8f6; border: 1px solid #bfe0dc; border-radius: 16px;
  padding: 20px 24px; margin: 24px 0;
}
.mail-banner .illu-mailflow { width: 190px; max-width: 40vw; height: auto; flex: none; }
.mail-banner h2 { margin: 0 0 6px; }
.mail-banner p { margin: 0 0 10px; }
.mail-banner .actions { margin: 0; }
@media (max-width: 600px) {
  .mail-banner { flex-direction: column; align-items: flex-start; }
  .mail-banner .illu-mailflow { max-width: 220px; }
}
.inbox-kicker { display: flex; align-items: center; }
.done-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.done-head .illu-success { width: 64px; height: 64px; flex: none; }
.done-head .banner { margin-bottom: 6px; }
.done-head h1 { margin: 0; }
.result-illu { width: 88px; height: 88px; margin: 0 0 12px; }
main {
  flex: 1;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 22px 80px;
}
.foot {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 22px calc(28px + var(--safe));
  color: var(--muted);
  font-size: 0.85rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.muted { color: var(--muted); }
.mt12 { margin-top: 12px; }
.mt16 { margin-top: 16px; }
.mt18 { margin-top: 18px; }
.ta-right { text-align: right; }
h1, h2 { font-weight: 650; letter-spacing: -0.03em; color: var(--navy); }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; margin: 0 0 12px; }
h2 { font-size: 1.4rem; margin: 0 0 10px; }
.lede { font-size: 1.15rem; color: var(--muted); margin: 0 0 28px; }
.hero-claim { font-size: clamp(1.55rem, 4.2vw, 2.6rem); }
.hero-claim > span { display: block; white-space: nowrap; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.card + .card { margin-top: 16px; }
.inbox-box { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.inbox-kicker { font-weight: 650; margin: 0 0 6px; }
.inbox-addr {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 1.05rem;
  word-break: break-all;
  margin: 12px 0;
}
.inbox-addr code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #f4f1ea;
  padding: 8px 12px;
  border-radius: 8px;
}
.inbox-copy {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.95rem;
}
.card > .inbox-box:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.drop {
  border: 2px dashed #c9c0ae;
  border-radius: 16px;
  padding: 42px 24px;
  text-align: center;
  background: #fbf8f1;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.drop.drag { border-color: var(--teal); background: #eef8f6; }
.drop p { margin: 0 0 8px; }
.drop .hint { font-size: 0.92rem; color: var(--muted); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

.btn, button.btn {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  border: 0;
  border-radius: 12px;
  padding: 14px 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  text-decoration: none;
}
.btn.primary { background: var(--teal); color: #fff; }
.btn.primary:hover { background: var(--teal-hover); }
.btn.ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--navy); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.choice {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}
@media (min-width: 640px) {
  .choice { grid-template-columns: 1fr 1fr; }
  .actions { flex-direction: row; }
  .actions .btn { flex: 1; }
}

.steps { list-style: none; padding: 0; margin: 18px 0 0; }
.steps li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.dot {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--line); flex: none; margin-top: 2px;
}
.dot.done { background: var(--ok); border-color: var(--ok); }
.dot.run { border-color: var(--teal); box-shadow: 0 0 0 4px #d7efed; }
.trust {
  margin-top: 28px;
  font-size: 0.92rem;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.trust li { margin: 4px 0; }

.banner {
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.banner.ok { background: var(--ok-bg); color: var(--ok); }
.banner.warn { background: var(--warn-bg); color: var(--warn); }
.banner.bad { background: var(--bad-bg); color: var(--bad); }

.field { display: flex; flex-direction: column; gap: 6px; margin: 16px 0; }
.field span, .field .lab {
  font-size: 0.95rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--navy);
  font-weight: 600;
}
.field .help { font-size: 0.88rem; color: var(--muted); font-weight: 400; }
input, textarea, select {
  font: inherit;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #cfc6b6;
  background: #fff;
  color: var(--ink);
}
input:focus, textarea:focus { outline: 3px solid #cdeae7; border-color: var(--teal); }
.summary {
  background: #fbf8f1;
  border-radius: 14px;
  padding: 16px 18px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.summary .row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.summary .row:last-child { border-bottom: 0; font-weight: 700; }
.list { display: flex; flex-direction: column; gap: 10px; }
.item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.item .meta { color: var(--muted); font-size: 0.88rem; }
.status-pill {
  font-size: 0.8rem; font-weight: 700; padding: 4px 10px;
  border-radius: 99px; align-self: start;
}
.status-pill.ok { background: var(--ok-bg); color: var(--ok); }
.status-pill.warn { background: var(--warn-bg); color: var(--warn); }
.status-pill.bad { background: var(--bad-bg); color: var(--bad); }
.status-pill.neutral { background: #eee; color: var(--muted); }
.details { margin-top: 16px; font-size: 0.92rem; color: var(--muted); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.details summary { cursor: pointer; color: var(--navy); }
.err { color: var(--bad); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.viewer-lines { margin: 18px 0; }
.viewer-lines .ln {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--line);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.hidden-file { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.grid2 { display: grid; gap: 12px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }

/* Tarifseite */
.pricing { margin-top: 8px; }
.bill-radio { position: absolute; opacity: 0; pointer-events: none; }
.bill-toggle {
  display: flex; gap: 4px; padding: 4px; width: max-content;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); margin: 4px auto 26px;
}
.bill-toggle label,
.bill-toggle button {
  padding: 8px 18px; border-radius: 999px; cursor: pointer;
  font-weight: 600; color: var(--muted);
}
.bill-toggle button {
  border: 0; background: transparent; font: inherit; font-weight: 600;
  min-height: 0;
}
.bill-toggle button.is-on { background: var(--teal); color: #fff; }
.bill-pill {
  display: inline-block; margin-left: 6px; padding: 2px 8px;
  border-radius: 999px; background: var(--ok-bg); color: var(--ok);
  font-size: 12px; font-weight: 700;
}
.bill-radio-m:checked ~ .bill-toggle label[for="bill-m"],
.bill-radio-y:checked ~ .bill-toggle label[for="bill-y"] { background: var(--teal); color: #fff; }
.bill-radio-y:checked ~ .bill-toggle label[for="bill-y"] .bill-pill { background: rgba(255, 255, 255, 0.22); color: #fff; }
.bill-radio-m:checked ~ .plans .price-y { display: none; }
.bill-radio-y:checked ~ .plans .price-m { display: none; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 20px 20px;
}
.plan.featured { border: 2px solid var(--teal); box-shadow: var(--shadow); }
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: #fff; font-size: 12px; font-weight: 700;
  padding: 3px 12px; border-radius: 999px; white-space: nowrap;
}
.plan h2 { margin: 0 0 10px; font-size: 20px; }
.plan-price strong { font-size: 34px; letter-spacing: -0.5px; }
.plan-price span { color: var(--muted); }
.plan-subnote { font-size: 13px; color: var(--ok); font-weight: 600; margin-top: 2px; }
.plan-features { list-style: none; margin: 16px 0 10px; padding: 0; flex: 1; }
.plan-features li { position: relative; padding: 6px 0 6px 24px; }
.plan-features li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.plan .actions { margin-top: auto; }
.pricing-free { margin-top: 30px; text-align: center; }
.pricing-footnote { text-align: center; font-size: 13px; margin-top: 12px; }
.mail-progress { list-style: none; margin: 4px 0 0; padding: 0; }
.mail-progress li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  color: var(--muted);
}
.mail-progress li.is-on { color: var(--navy); font-weight: 650; }
.mail-progress li.is-done { color: var(--ok); }
.mail-progress .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--line); flex: none;
}
.mail-progress li.is-on .dot { background: var(--teal); }
.mail-progress li.is-done .dot { background: var(--ok); }
.mail-progress .spinner { width: 22px; height: 22px; border-width: 2px; }
.mail-reuse { margin: 0 0 22px; }
@media (max-width: 760px) {
  .plans { grid-template-columns: 1fr; }
  .plan.featured { order: -1; }
}

/* Tarif-Block im Konto */
.plan-yearly { display: block; margin: 10px 0 6px; }
.plan-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.plan-pick-price { font-weight: 400; opacity: 0.8; margin-left: 4px; }
