/* The marketing page on the base domain (design: Claude Design project „Homepage“, audience Betriebe, blue accent).
   The app's own fonts, served from here: no request to a font CDN (DSGVO). */
@font-face { font-family: 'Hanken Grotesk'; font-weight: 400; font-display: swap; src: url(fonts/hanken-grotesk-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 500; font-display: swap; src: url(fonts/hanken-grotesk-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 600; font-display: swap; src: url(fonts/hanken-grotesk-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Newsreader'; font-weight: 400; font-display: swap; src: url(fonts/newsreader-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url(fonts/jetbrains-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: swap; src: url(fonts/jetbrains-mono-latin-500-normal.woff2) format('woff2'); }

:root {
  --accent: #1f4e79;
  --accent-hover: #163a5c;
  --bg: #f5f4ef;
  --surface: #fff;
  --surface-sunk: #faf9f5;
  --ink: #1d1d1a;
  --ink-2: #3d3c36;
  --ink-3: #55534b;
  --ink-4: #77756c;
  --ink-5: #a9a79c;
  --line: #e4e2da;
  --line-soft: #eceae3;
  --line-strong: #d8d6cc;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --pad-x: clamp(20px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); font-family: var(--sans); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
section[id] { scroll-margin-top: 72px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.section { padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(64px, 8vw, 104px); }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--ink-4); text-transform: uppercase; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 400; text-wrap: balance; }
h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.08; letter-spacing: -.01em; }
h3 { margin: 0; font-size: 20px; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: 16px; line-height: 1.55; color: var(--ink-3); }

.btn { height: 40px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font: 500 15px var(--sans); white-space: nowrap; cursor: pointer; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; border: 0; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.btn-secondary:hover { color: var(--ink); border-color: var(--ink-5); }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; }

/* navigation */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(245, 244, 239, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { padding-top: 16px; padding-bottom: 16px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 200px; color: var(--ink); }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); }
.brand-name { font-family: var(--serif); font-size: 21px; }
.brand-name span { color: var(--accent); }
.nav-links { display: flex; gap: 24px; font-size: 15px; flex-wrap: wrap; }
.nav-links a { position: relative; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
/* the section being read */
.nav-links a.is-current { color: var(--accent); }
.nav-links a.is-current::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 1px; background: var(--accent); }
.nav-actions { display: flex; gap: 10px; }
@media (max-width: 760px) {
  .nav .wrap { gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .nav-links { display: none; }
  .brand { min-width: 0; }
  .nav-actions .btn-secondary { display: none; }
}

/* hero */
.hero { padding-top: clamp(56px, 9vw, 112px); padding-bottom: 64px; display: flex; flex-direction: column; gap: 56px; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; max-width: 860px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -.02em; }
.hero-sub { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 660px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero-note { font-size: 14px; color: var(--ink-4); }

/* the app in the hero: a screenshot in a window frame */
.mock { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 60px -30px rgba(40, 40, 20, .25); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: var(--surface-sunk); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #dcdad1; }
.mock-bar span { margin-left: 12px; font-family: var(--mono); font-size: 12px; color: var(--ink-4); }
.mock img { display: block; width: 100%; height: auto; }

/* Funktionen */
.funktionen { border-top: 1px solid var(--line); background: var(--surface); }
.funktionen .wrap, .ablauf .wrap { display: flex; flex-direction: column; gap: 48px; }
.section-head { display: flex; flex-wrap: wrap; gap: 16px 48px; align-items: flex-end; justify-content: space-between; }
.section-head h2 { max-width: 620px; }
.section-head p { max-width: 420px; }
.modules-row { display: flex; flex-wrap: wrap; gap: 32px; }
.modules { flex: 1 1 300px; max-width: 440px; margin: 0; padding: 0; list-style: none; }
.module { border-top: 1px solid var(--line-soft); }
.module:last-child { border-bottom: 1px solid var(--line-soft); }
.module button { width: 100%; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: baseline; text-align: left; padding: 18px 0; border: 0; background: none; cursor: pointer; font: inherit; color: var(--ink-3); }
.num { font-family: var(--mono); font-size: 12px; color: var(--ink-4); }
.module .num { font-size: 13px; color: var(--ink-5); }
.module-title { font-size: 20px; }
.module-text { padding: 0 0 18px 48px; font-size: 15px; line-height: 1.55; color: var(--ink-3); }
.module.is-active button { color: var(--ink); }
.module.is-active .module-title { font-weight: 600; }
.module.is-active .num { color: var(--accent); }
.shot { flex: 1 1 420px; min-width: 0; margin: 0; align-self: flex-start; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(40, 40, 20, .2); }
.shot img { display: block; width: 100%; height: auto; transition: opacity .15s; }
.shot img.is-loading { opacity: .4; }
.extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding-top: 8px; }
.extras div { display: flex; flex-direction: column; gap: 6px; }
.extras strong { font-size: 16px; font-weight: 600; }
.extras span { font-size: 15px; line-height: 1.5; color: var(--ink-3); }

/* Ablauf */
.ablauf { border-top: 1px solid var(--line); }
.ablauf h2 { max-width: 700px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.step { display: flex; flex-direction: column; gap: 14px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.step-num { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--accent); }
.step p { font-size: 15px; line-height: 1.55; color: var(--ink-3); }

/* Für Dienstleister */
.dienstleister { background: var(--ink); color: var(--bg); }
.dienstleister .wrap { display: flex; flex-wrap: wrap; gap: 48px; }
.dienstleister .intro { flex: 1 1 380px; display: flex; flex-direction: column; gap: 20px; }
.dienstleister .eyebrow { color: var(--ink-5); }
.dienstleister .intro p { font-size: 17px; line-height: 1.55; color: #cfcdc4; max-width: 480px; }
.dienstleister .intro a { color: #9cc3e6; font-weight: 500; }
.points { flex: 1 1 380px; margin: 0; padding: 0; list-style: none; }
.points li { display: flex; flex-direction: column; gap: 6px; padding: 20px 0; border-top: 1px solid #3a3a35; }
.points li:last-child { border-bottom: 1px solid #3a3a35; }
.points strong { font-size: 18px; font-weight: 600; }
.points span { font-size: 15px; line-height: 1.5; color: #cfcdc4; }

/* Konto */
.konto { border-top: 1px solid var(--line); }
.konto .wrap { padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(64px, 8vw, 112px); display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; justify-content: space-between; }
.konto .intro { flex: 1 1 420px; display: flex; flex-direction: column; gap: 18px; }
.konto h2 { font-size: clamp(36px, 4.4vw, 58px); line-height: 1.05; }
.konto .intro p { font-size: 17px; line-height: 1.55; color: var(--ink-3); max-width: 480px; }
.card { flex: 1 1 380px; max-width: 480px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(24px, 3vw, 36px); box-shadow: 0 30px 60px -30px rgba(40, 40, 20, .2); display: flex; flex-direction: column; gap: 22px; }
.checklist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.checklist li { position: relative; padding-left: 32px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.checklist li::before { content: ''; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.card .btn-lg { width: 100%; }
.anmelden { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.anmelden label { font-size: 14px; font-weight: 500; }
.address { display: flex; gap: 8px; }
.address-field { flex: 1; min-width: 0; display: flex; align-items: center; height: 44px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-sunk); padding: 0 12px; }
.address-field:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.address-field input { flex: 1; min-width: 0; border: 0; background: none; font: 16px var(--sans); color: var(--ink); outline: none; text-align: right; }
.address-field span { font-size: 15px; color: var(--ink-4); white-space: nowrap; }
.address .btn { height: 44px; }
.anmelden-hint { font-size: 13px; color: var(--ink-4); }
.anmelden-hint[data-error] { color: #b3261e; }

/* footer */
.footer { border-top: 1px solid var(--line); }
.footer .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; font-size: 14px; color: var(--ink-4); }
.footer .brand-name { font-size: 18px; color: var(--ink); flex: 1; min-width: 200px; }
.footer a { color: var(--ink-3); }

/* Preise: the purchasable plans, loaded from the sign-up host */
.preise { border-top: 1px solid var(--line); }
.preise .wrap { display: flex; flex-direction: column; gap: 40px; }
.preise-head { display: flex; flex-direction: column; gap: 14px; max-width: 620px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: stretch; margin: 0; padding: 12px 0 0; list-style: none; }
.plans[hidden] { display: none; }
/* more than four plans: one row that scrolls, four cards wide (two on tablets, one and a bit on phones) */
.plans.is-carousel { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-top: 16px; }
.plans.is-carousel::-webkit-scrollbar { display: none; }
.plans.is-carousel .plan { scroll-snap-align: start; }
@media (max-width: 1000px) { .plans.is-carousel { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (max-width: 640px) { .plans.is-carousel { grid-auto-columns: 85%; } }
.plans-nav { display: flex; gap: 8px; }
.plans-nav[hidden] { display: none; }
.plans-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 500 18px var(--sans); cursor: pointer; }
.plans-nav button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.plans-nav button:disabled { opacity: .35; cursor: default; }
.plan { position: relative; display: flex; flex-direction: column; gap: 24px; padding: 32px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.plan.is-start { border: 2px solid var(--accent); }
.plan-badge { position: absolute; top: -12px; left: 28px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; }
.plan-name { font-size: 20px; font-weight: 600; }
.plan-price { display: flex; flex-direction: column; gap: 4px; }
.plan-price div { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan-amount { font-family: var(--serif); font-size: 52px; line-height: 1; }
.plan-unit { font-size: 15px; color: var(--ink-3); }
.plan-note { font-size: 13px; color: var(--ink-4); }
.plan .btn { height: 48px; width: 100%; }
.plan-features { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 20px 0 0; list-style: none; border-top: 1px solid var(--line-soft); }
.plan-features li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.plan-features li::before { content: '✓'; color: var(--accent); font-weight: 600; }
.plans-contact { font-size: 16px; line-height: 1.55; color: var(--ink-3); text-align: center; }
.plans-contact strong { color: var(--ink); font-weight: 600; }
.plans-contact a { font-weight: 500; }
.plans-contact[hidden] { display: none; }
.plans-fallback { font-size: 16px; color: var(--ink-3); }
.plans-fallback[hidden] { display: none; }

/* Musterkatalog: what a new portal starts with, counted from the sign-up host */
.muster { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: center; justify-content: space-between; padding: clamp(28px, 4vw, 44px); border-radius: 16px; background: #eef3f8; border: 1px solid #d9e4ee; }
.muster-copy { flex: 1 1 360px; display: flex; flex-direction: column; gap: 12px; max-width: 520px; }
.muster-copy h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 36px); line-height: 1.1; }
.muster-copy p { font-size: 16px; line-height: 1.55; color: var(--ink-3); }
.muster-figures { flex: 1 1 380px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; margin: 0; }
.muster-figures[hidden] { display: none; }
.muster-figures div { display: flex; flex-direction: column; gap: 4px; }
.muster-figures dt { order: 2; font-size: 17px; font-weight: 600; }
.muster-figures dd { order: 1; margin: 0; font-variant-numeric: tabular-nums; font-family: var(--serif); font-size: clamp(48px, 5vw, 64px); line-height: 1; color: var(--accent); }
.muster-figures span { order: 3; font-size: 14px; line-height: 1.45; color: var(--ink-3); }
