:root {
  --karton: #b98a5b;
  --karton-hell: #f6efe3;
  --karton-tint: #ead9bf;
  --braun: #2a1b0f;
  --neon: #39ff14;
  --text: #2a1b0f;
  --muted: #5e4a38;
  --gutter: 20px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--karton-hell);
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.5rem, 10vw, 4.75rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 7vw, 3rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 800; }
p { margin: 0 0 1em; }
a { color: inherit; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 720px; }
.section { padding: 72px 0; }
.section--dark { background: var(--braun); color: var(--karton-hell); }
.section--tint { background: var(--karton-tint); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 18px 28px;
  font: inherit;
  font-weight: 800;
  font-size: 1.2rem;
  text-align: center;
  text-decoration: none;
  color: var(--braun);
  background: var(--neon);
  border: 3px solid var(--braun);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--braun);
  cursor: pointer;
  transition: transform .1s, box-shadow .1s;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--braun); }
.btn:focus-visible, summary:focus-visible, input:focus-visible, a:focus-visible { outline: 4px solid var(--braun); outline-offset: 3px; }
.btn--small { padding: 10px 14px; font-size: .95rem; border-width: 2px; border-radius: 10px; box-shadow: 3px 3px 0 var(--braun); }
.btn--ghost { background: var(--karton-hell); }

/* Header */
.topbar { position: sticky; top: 0; z-index: 10; background: var(--karton-hell); border-bottom: 3px solid var(--braun); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.brand { font-weight: 900; font-size: 1.3rem; text-decoration: none; }

/* Hero */
.hero { padding: 40px 0 64px; background: var(--karton); }
.hero__in { display: grid; gap: 40px; }
.badge {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 12px;
  font-size: .9rem;
  font-weight: 700;
  background: var(--braun);
  color: var(--neon);
  border-radius: 999px;
}
.lead { font-size: 1.4rem; font-weight: 500; max-width: 30ch; margin-bottom: 1.4em; }
.note { margin: 1.4em 0 0; font-size: .95rem; max-width: 46ch; }
.hero .note { color: var(--braun); }

.hero__media { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: min(100%, 270px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--karton-tint);
  border: 4px solid var(--braun);
  border-radius: 28px;
  box-shadow: 8px 8px 0 var(--braun);
}
.phone svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Steps */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 24px; }
.steps li { padding: 24px; background: #fff; border: 3px solid var(--braun); border-radius: 18px; }
.steps svg { width: 64px; height: 64px; color: var(--braun); margin-bottom: 12px; }
.steps h3 span {
  display: inline-grid; place-items: center;
  width: 1.7em; height: 1.7em; margin-right: .3em;
  font-size: .9rem; background: var(--neon); border: 2px solid var(--braun); border-radius: 50%;
}
.steps p { margin: 0; color: var(--muted); }

/* Benefits */
.benefits { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 20px; font-size: 1.25rem; }
.benefits li { padding-left: 20px; border-left: 6px solid var(--neon); }
.benefits strong { display: block; font-size: 1.5rem; color: var(--neon); }

/* Preisblock */
.price__intro { max-width: 52ch; }
.packs { display: grid; gap: 24px; margin: 32px 0 24px; }
.pack { min-width: 0; overflow-wrap: anywhere; position: relative; display: flex; flex-direction: column; padding: 24px; background: #fff; border: 3px solid var(--braun); border-radius: 18px; }
.pack h3 { margin-bottom: .1em; }
.pack__who { margin: 0 0 12px; color: var(--muted); }
.pack__amount { margin: 0; font-size: clamp(2rem, 9vw, 3.4rem); font-weight: 900; line-height: 1.05; overflow-wrap: normal; }
.pack__count { margin: 8px 0 24px; color: var(--muted); }
.pack .btn { margin-top: auto; white-space: normal; max-width: 100%; padding-left: 14px; padding-right: 14px; }
.pack--featured { border-color: var(--neon); box-shadow: 0 0 0 3px var(--braun), 6px 6px 0 3px var(--braun); }
.pack--featured .btn { padding: 22px 28px; font-size: 1.35rem; }
.pack__label {
  position: absolute; top: -16px; left: 20px; margin: 0; padding: 4px 14px;
  font-size: .9rem; font-weight: 800; color: var(--neon); background: var(--braun); border-radius: 999px;
}

/* FAQ */
details { background: #fff; border: 3px solid var(--braun); border-radius: 14px; margin-bottom: 14px; }
summary { padding: 18px 20px; font-weight: 800; font-size: 1.2rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.6rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* Formular */
.notify { margin-top: 24px; display: grid; gap: 14px; }
.notify label { font-weight: 700; }
.notify input[type="email"], .notify input[type="text"]:not(.hp) { width: 100%; padding: 16px; font: inherit; background: #fff; border: 3px solid var(--braun); border-radius: 12px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400 !important; font-size: .95rem; }
.check input { flex: none; width: 24px; height: 24px; margin-top: 2px; accent-color: var(--braun); }
/* Fokus auf dunklem Grund: helle Outline */
.footer :focus-visible, .section--dark :focus-visible, .badge:focus-visible { outline-color: var(--neon); }

[hidden] { display: none !important; }

@media (max-width: 420px) {  }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { margin: 0; font-weight: 700; }

/* Footer */
.footer { padding: 28px 0; background: var(--braun); color: var(--karton-hell); font-size: .95rem; }
.footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Rechtliche Seiten */
.btn--large { padding: 22px 28px; font-size: 1.35rem; }
.legal h3 { margin-top: 1.4em; }
.legal { padding: 48px 0 72px; }
.legal h1 { font-size: clamp(2rem, 7vw, 3rem); }
.legal h2 { font-size: 1.4rem; margin-top: 1.8em; }
.todo { background: var(--neon); padding: 0 4px; font-weight: 700; }

@media (min-width: 760px) {
  :root { --gutter: 32px; }
  .hero { padding: 72px 0 96px; }
  .hero__in { grid-template-columns: 1.3fr 1fr; align-items: center; }
  .steps, .benefits { grid-template-columns: repeat(3, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .section { padding: 104px 0; }
  .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .pack { padding: 28px 22px; }
  .pack--featured { padding-top: 40px; padding-bottom: 40px; }
}

@media (min-width: 1024px) {
  .packs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Fehlerseiten */
.errcode { color: var(--muted); }
.errcode code { padding: 1px 6px; font-weight: 800; background: #fff; border: 2px solid var(--braun); border-radius: 6px; user-select: all; }

/* Installations-Button (Landing) und Anleitung */
.install { margin-top: 16px; }
.install[hidden] { display: none; }
.btn--install { min-height: 48px; font-size: 1.05rem; }
.install--footer { display: flex; align-items: center; gap: 12px; margin: 0; }
.install__label { font-weight: 800; }
.footer .btn--install { color: var(--braun); background: var(--karton-hell); border-color: var(--karton-hell); box-shadow: none; }
.install-dialog { width: min(480px, calc(100% - 32px)); padding: 0; color: var(--braun); background: #fff; border: 3px solid var(--braun); border-radius: 18px; box-shadow: 8px 8px 0 var(--braun); }
.install-dialog::backdrop { background: rgba(42, 27, 15, .6); }
.install__body { padding: 24px; }
.install-dialog h2 { margin: 0 0 12px; font-size: 1.3rem; }
.install__steps { padding-left: 1.3em; }
.install__steps li { margin-bottom: 8px; }
.install__icon { vertical-align: -5px; }
.install__note { color: var(--muted); font-size: .95rem; }
.install-dialog .btn { margin-top: 8px; font-size: 1rem; padding: 12px 20px; min-height: 48px; }
