/* ============================================================
   Sudgy – Website
   Farben, Radien und Schrift stammen aus dem Markenpaket (Vorgaben/Branding).
   ============================================================ */

@font-face { font-family: 'Roboto'; src: url('../assets/fonts/Roboto-Regular.woff2') format('woff2'), url('../assets/fonts/Roboto-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Roboto'; src: url('../assets/fonts/Roboto-Medium.woff2') format('woff2'), url('../assets/fonts/Roboto-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Roboto'; src: url('../assets/fonts/Roboto-Bold.woff2') format('woff2'), url('../assets/fonts/Roboto-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --green: #2c5443;
  --green-dark: #1f3d30;
  --green-light: #366451;
  --green-soft: #6fbf93;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --icon-bg: #f1f5f9;
  --border: #e2e8f0;
  --border-soft: #eff2f5;
  --text: #1a202c;
  --text-med: #475569;
  --text-dim: #64748b;
  --income: #15803d;
  --expense: #dc2626;
  --amber: #8a5a00;
  --amber-bg: #fef3c7;
  --purple: #6d28d9;
  --purple-bg: #f5f3ff;
  --on-green: #eaf3ee;
  --on-green-dim: #b9d3c5;
  --line-on-green: rgba(255, 255, 255, .16);

  --font: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(15, 30, 24, .06);
  --shadow-md: 0 10px 30px -12px rgba(15, 30, 24, .22);
  --shadow-lg: 0 34px 70px -28px rgba(8, 24, 17, .55);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(18px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; scrollbar-color: #cbd5e1 var(--bg); }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--green); color: #fff; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.pro :focus-visible, .stage :focus-visible { outline-color: #fff; }
em { font-style: normal; font-weight: 700; color: var(--green); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--green); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); transition: top .2s var(--ease); }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mark { width: 1.3em; height: 1.3em; flex: none; color: var(--green); }

/* ---------- Typografie ---------- */
h1 { font-size: clamp(2.5rem, 6.4vw, 5rem); line-height: 1.02; font-weight: 700; letter-spacing: -.028em; text-wrap: balance; max-width: 22ch; }
h2 { font-size: clamp(1.85rem, 3.7vw, 3rem); line-height: 1.1; font-weight: 700; letter-spacing: -.022em; text-wrap: balance; }
h2 .dim, h3 .dim { color: var(--text-dim); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--text-med); max-width: 54ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.35em; border-radius: 10px; border: 1px solid transparent;
  font-weight: 500; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--sm { padding: .65em 1.05em; font-size: .9375rem; }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); }
.btn--ghost { border-color: #cbd5e1; color: var(--text); }
.btn--ghost:hover { border-color: var(--green); color: var(--green); }
.btn--light { background: #fff; color: var(--green-dark); }
.btn--light:hover { background: var(--on-green); }

/* ---------- Kopfzeile ---------- */
.site-header { position: sticky; top: 12px; z-index: 50; padding-inline: var(--gutter); margin-top: 12px; }
.site-header__in {
  width: min(100%, 1200px); margin-inline: auto;
  display: flex; align-items: center; gap: 24px;
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px);
  border-radius: var(--r-lg); padding: 10px 12px 10px 20px;
  box-shadow: var(--shadow-sm), 0 12px 28px -20px rgba(15, 30, 24, .35);
}
.brand img { height: 26px; width: auto; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a { padding: 8px 12px; border-radius: var(--r-sm); font-size: .9375rem; font-weight: 500; color: var(--text-med); text-decoration: none; transition: color .2s, background-color .2s; }
.site-nav a:hover { color: var(--green); background: var(--icon-bg); }
@media (max-width: 860px) {
  .site-nav { display: none; }
  .site-header__in { justify-content: space-between; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(48px, 8vw, 104px); }
.hero__top { padding-bottom: clamp(40px, 6vw, 72px); padding-left: clamp(0px, 9vw - 40px, 112px); }
.hero .lead { margin-top: clamp(20px, 2.6vw, 30px); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__note { margin-top: 16px; font-size: .9375rem; color: var(--text-dim); }

/* ---------- Bühne mit Demo ---------- */
.stage {
  position: relative; isolation: isolate;
  background: var(--green); color: var(--on-green);
  border-radius: var(--r-xl);
  padding: clamp(18px, 3vw, 36px) clamp(14px, 3vw, 40px) 0;
  display: grid; grid-template-columns: minmax(0, 1fr) 296px; column-gap: clamp(20px, 3vw, 40px); align-items: end;
  margin-bottom: 72px;
}
/* Die Ringe der Bildmarke als Grund der Bühne */
.stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, transparent 0 219px, rgba(255,255,255,.07) 220px 222px, transparent 223px 359px, rgba(255,255,255,.05) 360px 362px, transparent 363px 519px, rgba(255,255,255,.035) 520px 522px, transparent 523px),
    radial-gradient(circle at 100% 0%, var(--green-light) 0, var(--green) 55%);
}
.stage__bar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 4px clamp(16px, 2.4vw, 28px); }
.stage__hint { font-size: 1rem; color: var(--on-green-dim); max-width: 62ch; }
.stage__hint strong { color: #fff; font-weight: 700; }
.stage__hint span { white-space: nowrap; }
.seg { display: none; background: rgba(0, 0, 0, .22); border-radius: 10px; padding: 3px; flex: none; }
.seg__btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 8px 12px; border-radius: 8px; font-size: .875rem; font-weight: 500; color: var(--on-green-dim); cursor: pointer; }
.seg__btn[aria-pressed="true"] { background: #fff; color: var(--green-dark); }

/* Browserfenster */
.win { background: var(--bg); color: var(--text); border-radius: 14px 14px 0 0; box-shadow: var(--shadow-lg); overflow: hidden; font-size: 13px; line-height: 1.4; min-width: 0; }
.win__chrome { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #e9edf2; }
.win__chrome span { width: 10px; height: 10px; border-radius: 50%; background: #c5cdd8; }
.win__chrome b { margin-left: 10px; font-weight: 500; font-size: 12px; color: var(--text-dim); }
.app-head { display: flex; align-items: center; gap: 14px; padding: 11px 18px; background: #fff; border-bottom: 1px solid var(--border); }
.app-head__brand { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 15px; letter-spacing: .3px; }
.app-head__plan { display: inline-flex; align-items: center; gap: 4px; color: var(--text-med); padding-left: 14px; border-left: 1px solid var(--border); }
.app-head__month { display: inline-flex; align-items: center; gap: 10px; margin-inline: auto; color: var(--text-dim); }
.app-head__month b { color: var(--text); font-size: 14px; font-weight: 700; }
.app-head__new { display: inline-flex; align-items: center; gap: 6px; background: var(--green); color: #fff; font-weight: 500; padding: 7px 12px; border-radius: 6px; }
.avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--green); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .3px; }
.avatar--alt { background: #8a5a00; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr) 1.35fr; gap: 10px; padding: 14px 18px; }
.stats > div { background: #fff; border-radius: var(--r-md); padding: 12px 14px; box-shadow: var(--shadow-sm); min-width: 0; }
.stats dt { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .5px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats dd { font-size: 19px; font-weight: 700; margin-top: 3px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stats .pos { color: var(--income); }
.stats .stats__end { background: var(--green); }
.stats .stats__end dt { color: var(--on-green-dim); }
.stats .stats__end dd { color: #fff; }

.ledger { width: calc(100% - 36px); margin: 0 18px; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--r-md) var(--r-md) 0 0; box-shadow: var(--shadow-sm); }
.ledger th { text-align: left; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .5px; color: var(--text-dim); padding: 10px 14px; border-bottom: 1px solid var(--border); }
.ledger td { padding: 7px 14px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.ledger .num { text-align: right; }
.ledger td.num { font-weight: 700; }
.ledger .c-day { width: 64px; color: var(--text-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger .c-cat { color: var(--text-med); }
.ledger .c-sw { width: 92px; text-align: right; white-space: nowrap; }
.ledger tbody tr { cursor: pointer; transition: background-color .15s; }
.ledger tbody tr:hover { background: var(--surface-2); }
.entry { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.ticon { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 8px; background: var(--icon-bg); color: var(--green); font-size: 14px; }
.tag { font-style: normal; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--purple); background: var(--purple-bg); padding: 2px 5px; border-radius: 4px; vertical-align: 1px; }
.is-in { color: var(--income); }

/* Schalter */
.sw { position: relative; width: 36px; height: 21px; border: 0; padding: 0; border-radius: 999px; background: #cbd5e1; cursor: pointer; transition: background-color .25s var(--ease); vertical-align: middle; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .25s var(--ease); }
.sw[aria-pressed="true"] { background: var(--green); }
.sw[aria-pressed="true"]::after { transform: translateX(15px); }
.is-off .entry, .is-off .c-cat, .is-off td.num, .is-off .c-day { opacity: .45; }
.is-off .entry > span:last-child, .is-off td.num { text-decoration: line-through; }

/* Handy */
.phone { position: relative; width: 296px; height: 600px; margin-bottom: -56px; background: var(--bg); color: var(--text); border: 9px solid #0b0f14; border-radius: 42px; box-shadow: var(--shadow-lg); overflow: hidden; font-size: 13px; line-height: 1.35; }
.phone__status { display: flex; align-items: center; justify-content: space-between; padding: 12px 22px 4px; font-size: 12px; }
.phone__status i { width: 22px; height: 10px; border: 1.5px solid var(--text); border-radius: 3px; background: linear-gradient(var(--text), var(--text)) 1.5px 50% / 70% 5px no-repeat; }
.phone__body { padding: 6px 14px 0; }
.phone__title { display: flex; align-items: center; justify-content: space-between; }
.phone__title span:first-child { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; color: var(--text-dim); }
.phone__title .mark { width: 14px; height: 14px; }
.phone__title strong { display: block; font-size: 22px; letter-spacing: -.02em; }
.phone__month { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.phone__month b { flex: 1; text-align: center; background: #fff; border-radius: 9px; padding: 7px; font-weight: 500; box-shadow: var(--shadow-sm); }
.phone__month i { display: grid; place-items: center; width: 30px; height: 30px; background: #fff; border-radius: 9px; box-shadow: var(--shadow-sm); color: var(--text-med); }
.balance { margin-top: 12px; padding: 16px 16px 14px; border-radius: 18px; background: var(--green); color: #fff; box-shadow: 0 12px 24px -10px rgba(44, 84, 67, .6); }
.balance__label { display: block; font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .6px; color: var(--on-green-dim); }
.balance__value { display: block; font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.balance__value small { font-size: 17px; font-weight: 500; color: var(--on-green-dim); }
.balance__split { display: flex; gap: 18px; margin-top: 10px; }
.balance__split > div + div { padding-left: 18px; border-left: 1px solid var(--line-on-green); }
.balance__split span, .balance__end span { display: block; font-size: 10.5px; color: var(--on-green-dim); }
.balance__split b { font-size: 13.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.balance__end { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-on-green); }
.balance__end b { font-size: 13.5px; font-variant-numeric: tabular-nums; }
.phone__list-head { display: flex; align-items: baseline; justify-content: space-between; margin: 16px 2px 8px; }
.phone__list-head b { font-size: 14px; }
.phone__list-head span { font-size: 11px; color: var(--text-dim); }
.phone__list { background: #fff; border-radius: 14px 14px 0 0; box-shadow: var(--shadow-sm); overflow: hidden; }
.prow { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--border-soft); background: #fff; cursor: pointer; transition: background-color .15s; }
.prow:hover { background: var(--surface-2); }
.prow:focus-visible { outline-offset: -3px; outline-color: var(--green); }
.prow__txt { flex: 1; min-width: 0; }
.prow__txt b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow__txt small { display: block; font-size: 11px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow__amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.prow__dot { display: grid; place-items: center; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--green); color: #fff; font-size: 11px; transition: background-color .25s var(--ease); }
.prow[aria-pressed="false"] .prow__dot { background: #cbd5e1; }
.prow[aria-pressed="false"] .prow__dot .ico { opacity: 0; }
.prow[aria-pressed="false"] .prow__txt, .prow[aria-pressed="false"] .prow__amt, .prow[aria-pressed="false"] .ticon { opacity: .45; }
.prow[aria-pressed="false"] .prow__amt, .prow[aria-pressed="false"] .prow__txt b { text-decoration: line-through; }

@media (max-width: 1020px) {
  .stage { grid-template-columns: minmax(0, 1fr); justify-items: center; margin-bottom: 0; padding-bottom: 0; }
  .stage__bar { flex-direction: column; align-items: flex-start; width: 100%; }
  .seg { display: inline-flex; }
  .stage[data-view="web"] .phone, .stage[data-view="app"] .win { display: none; }
  .win { width: 100%; }
  .phone { margin-bottom: 0; border-bottom: 0; border-radius: 42px 42px 0 0; height: 560px; }
}
@media (max-width: 700px) {
  .ledger .c-cat, .ledger .c-day, .app-head__plan, .app-head__new, .win__chrome { display: none; }
  .app-head { padding: 10px 12px; gap: 10px; }
  .stats { grid-template-columns: 1fr 1fr; padding: 10px; gap: 8px; }
  .stats dd { font-size: 16px; }
  .stats dt { white-space: normal; font-size: 10px; line-height: 1.25; }
  .ledger { width: calc(100% - 20px); margin: 0 10px; }
  .ledger th, .ledger td { padding-inline: 10px; }
  .ledger .c-sw { width: 56px; white-space: normal; }
  .phone { width: min(100%, 296px); }
}

/* ---------- Abschnitte ---------- */
.section { padding-block: clamp(72px, 10vw, 136px); }
.section__head { max-width: 780px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head p { margin-top: 16px; font-size: 1.125rem; color: var(--text-med); max-width: 56ch; }

/* Web & App */
.duo { padding-top: clamp(96px, 12vw, 168px); }
.duo__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.duo__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 40px); }
.duo h3 { display: flex; align-items: center; gap: 10px; font-size: 1.125rem; font-weight: 700; color: var(--green); padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
.duo p { color: var(--text-med); }
@media (max-width: 900px) { .duo__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .duo__cols { grid-template-columns: 1fr; } }

/* Funktionen */
.features { padding-top: 0; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.tile { background: var(--surface); border-radius: var(--r-lg); padding: clamp(22px, 2.6vw, 32px); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; min-width: 0; }
.tile h3 { font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.25; font-weight: 500; letter-spacing: -.012em; color: var(--text-dim); text-wrap: balance; max-width: 30ch; }
.tile h3 b { color: var(--text); font-weight: 700; }
.tile > p { margin-top: 12px; color: var(--text-med); font-size: 1rem; max-width: 52ch; }
.tile .vis { margin-top: auto; padding-top: 28px; }
.tile figcaption { margin-top: 12px; font-size: .8125rem; color: var(--text-dim); }
.tile--forecast { grid-column: span 7; }
.tile--budgets { grid-column: span 5; }
.tile--contracts, .tile--recurring, .tile--share { grid-column: span 4; }
@media (max-width: 1020px) {
  .tile--forecast, .tile--budgets { grid-column: span 12; }
  .tile--contracts, .tile--recurring { grid-column: span 6; }
  .tile--share { grid-column: span 12; }
}
@media (max-width: 680px) { .tile--contracts, .tile--recurring { grid-column: span 12; } }

/* Prognose-Diagramm */
.chart { position: relative; height: clamp(190px, 22vw, 250px); margin: 30px 6px 0; }
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart__area { fill: var(--green-soft); opacity: .2; }
.chart__line { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart__plot { position: absolute; inset: 0; }
.chart.is-armed .chart__plot { clip-path: inset(-40px 100% -40px -10px); }
.chart.is-armed.is-drawn .chart__plot { clip-path: inset(-40px -80px -40px -10px); transition: clip-path 1.6s var(--ease); }
.chart__pt { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #fff; border: 2.5px solid var(--green); }
.chart__pt--dip { border-color: var(--amber); }
.chart__lbl { position: absolute; transform: translate(-50%, -100%); margin-top: -12px; font-size: .8125rem; line-height: 1.2; font-weight: 700; white-space: nowrap; text-align: center; font-variant-numeric: tabular-nums; }
.chart__lbl small { display: block; font-weight: 400; color: var(--text-dim); font-size: .75rem; }
.chart__lbl--below { transform: translate(-50%, 0); margin-top: 12px; }
.chart__lbl--start { transform: none; text-align: left; margin-top: 10px; margin-left: -4px; }
.chart__lbl--end { transform: translate(-100%, -100%); text-align: right; margin-left: 4px; }
.chart__axis { position: absolute; left: 0; right: 0; top: 100%; display: flex; justify-content: space-between; padding-top: 30px; font-size: .75rem; color: var(--text-dim); }
.chart__axis span { width: 0; display: flex; justify-content: center; }
.tile--forecast figcaption { margin-top: 64px; }
@media (max-width: 560px) { .chart__axis span:nth-child(even) { visibility: hidden; } }

/* Budgets */
.budgets { display: grid; gap: 16px; }
.budgets li > div:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .9375rem; }
.budgets b { font-weight: 500; }
.budgets .num { color: var(--text-dim); font-size: .875rem; }
.bar { height: 10px; margin-top: 7px; border-radius: 999px; background: var(--icon-bg); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--green); }
.budgets .over .bar i { background: var(--expense); }
.budgets .over .num { color: #b91c1c; font-weight: 500; }

/* Verträge */
.contracts li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border-soft); font-size: .9375rem; }
.contracts li b { flex: 1; font-weight: 500; min-width: 0; }
.contracts .num { font-weight: 500; }
.contracts__sum { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; font-size: .9375rem; color: var(--text-dim); }
.contracts__sum b { font-size: 1.25rem; color: var(--text); }

/* Fälligkeiten */
.sched { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.sched thead th { font-weight: 500; color: var(--text-dim); padding-bottom: 8px; text-align: center; }
.sched tbody th { text-align: left; font-weight: 500; font-size: .9375rem; padding: 10px 8px 10px 0; line-height: 1.2; border-top: 1px solid var(--border-soft); }
.sched tbody th small { display: block; font-weight: 400; font-size: .75rem; color: var(--text-dim); margin-top: 2px; }
.sched tbody td { border-top: 1px solid var(--border-soft); text-align: center; width: 11%; }
.sched tbody td::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--icon-bg); vertical-align: middle; }
.sched tbody td.on::before { background: var(--green); }

/* Gemeinsam */
.share__log li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border-soft); font-size: .9375rem; }
.share__log li:last-child, .contracts li:last-child { border-bottom: 0; }
.share__log li > span:nth-child(2) { flex: 1; min-width: 0; line-height: 1.3; }
.share__log .num { font-weight: 500; }

/* ---------- Pro ---------- */
.pro-wrap { padding-top: 0; }
.pro { background: var(--green-dark); color: var(--on-green); border-radius: var(--r-xl); padding: clamp(28px, 5vw, 72px); display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 88px); }
.pro h2 { color: #fff; }
.pro__intro > p { margin-top: 18px; color: var(--on-green-dim); font-size: 1.125rem; max-width: 40ch; }
.pro__intro .pro__price { display: flex; align-items: center; gap: 14px; margin-top: 30px; font-size: .9375rem; line-height: 1.4; }
.pro__price b { font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pro .btn { margin-top: 30px; }
.roadmap { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(20px, 3vw, 40px); align-content: start; }
.roadmap li { padding: 18px 0; border-top: 1px solid var(--line-on-green); }
.roadmap h3 { font-size: 1.0625rem; font-weight: 700; color: #fff; line-height: 1.3; }
.roadmap p { margin-top: 4px; font-size: .9375rem; line-height: 1.45; color: var(--on-green-dim); }
@media (max-width: 900px) { .pro { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .roadmap { grid-template-columns: 1fr; } }

/* ---------- Preise ---------- */
.pricing { padding-top: 0; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); table-layout: fixed; }
.compare th, .compare td { padding: 15px clamp(12px, 2.4vw, 28px); text-align: left; vertical-align: middle; }
.compare thead td { width: 44%; }
.compare tbody th { font-weight: 400; color: var(--text); }
.compare tbody td { font-size: .9375rem; color: var(--text-med); }
.compare tbody tr > * { border-top: 1px solid var(--border-soft); }
.compare tbody tr:hover > * { background: var(--surface-2); }
.plan { vertical-align: top !important; padding-top: 28px !important; padding-bottom: 24px !important; }
.plan span { display: block; font-weight: 400; }
.plan .plan__name { font-size: 1rem; font-weight: 700; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.plan .plan__price { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin-top: 6px; font-variant-numeric: tabular-nums; }
.plan__price small { font-size: .9375rem; font-weight: 400; color: var(--text-dim); letter-spacing: 0; white-space: nowrap; }
.plan .plan__meta { font-size: .875rem; color: var(--text-dim); }
.soon { font-style: normal; font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; background: var(--amber-bg); color: var(--amber); padding: 3px 8px; border-radius: 999px; }
.compare .yes { color: var(--green); font-size: 1.2rem; stroke-width: 2.5; }
.compare .no { color: #94a3b8; font-size: 1.2rem; }
.compare tfoot td { padding-block: 22px 26px; border-top: 1px solid var(--border-soft); }
.compare__later { font-size: .9375rem; color: var(--text-dim); }
@media (max-width: 620px) {
  .compare thead td { width: 38%; }
  .compare th, .compare td { font-size: .875rem; padding-block: 12px; }
  .compare tbody td { font-size: .8125rem; }
  .plan .plan__price { white-space: nowrap; }
  .plan__price small { display: block; font-size: .8125rem; }
  .compare tfoot .btn { white-space: normal; text-align: center; }
}

/* ---------- Fragen ---------- */
.faq { padding-top: 0; }
.faq__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 6vw, 96px); align-items: start; }
.faq details { border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 1.125rem; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; flex: none; margin-right: 4px; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(45deg) translate(-2px, -2px); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq summary:hover { color: var(--green); }
.faq details p { padding: 0 32px 22px 0; color: var(--text-med); max-width: 62ch; }
@media (max-width: 800px) { .faq__grid { grid-template-columns: 1fr; } }

/* ---------- Abschluss & Fuß ---------- */
.closer { padding-bottom: clamp(72px, 10vw, 136px); }
.closer__in { display: grid; justify-items: start; gap: 16px; padding-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--border); }
.closer h2 { font-size: clamp(2.2rem, 5.4vw, 4.25rem); letter-spacing: -.026em; line-height: 1.04; }
.closer p { font-size: 1.125rem; color: var(--text-med); }
.closer .btn { margin-top: 10px; }

.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding-block: 28px; font-size: .9375rem; color: var(--text-dim); }
.site-footer__in { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 32px; }
.powered { display: inline-flex; align-items: center; gap: 6px; color: var(--text-dim); text-decoration: none; font-size: .75rem; }
.powered img { width: 15px; height: 15px; }
.site-footer a.powered:hover { color: var(--green); text-decoration: none; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-left: auto; }
.site-footer__btn { background: none; border: 0; padding: 0; font: inherit; color: var(--text-med); cursor: pointer; }
.site-footer__btn:hover { color: var(--green); text-decoration: underline; }
.site-footer a { text-decoration: none; color: var(--text-med); }
.site-footer a:hover { color: var(--green); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Rechtstexte ---------- */
.legal { max-width: 780px; padding-block: clamp(40px, 7vw, 88px) clamp(64px, 9vw, 120px); }
.legal__lang { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 28px; font-size: .9375rem; color: var(--text-dim); }
.legal__lang a { color: var(--green); font-weight: 500; }
.legal__lang [aria-current] { color: var(--text); font-weight: 700; text-decoration: none; }
.legal h1 { font-size: clamp(2rem, 4.4vw, 3rem); max-width: none; letter-spacing: -.022em; line-height: 1.08; }
.legal h2 { font-size: 1.3rem; line-height: 1.3; letter-spacing: -.01em; margin-top: 2.4em; }
.legal h3 { font-size: 1.0625rem; margin-top: 1.5em; }
.legal p, .legal li { color: var(--text-med); }
.legal p { margin-top: .9em; }
.legal ul, .legal ol { margin-top: .7em; padding-left: 1.35em; display: grid; gap: .5em; }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal ol.alpha { list-style: lower-alpha; }
.legal li::marker { color: var(--green); }
.legal strong { color: var(--text); font-weight: 700; }
.legal a { color: var(--green); }
.legal address { font-style: normal; margin-top: .9em; color: var(--text-med); }
.legal__meta { margin-top: 2.6em; padding-top: 1.2em; border-top: 1px solid var(--border); font-size: .9375rem; color: var(--text-dim); }
.site-header__back { margin-left: auto; font-size: .9375rem; font-weight: 500; color: var(--text-med); text-decoration: none; padding: 8px 12px; border-radius: var(--r-sm); }
.site-header__back:hover { color: var(--green); background: var(--icon-bg); }

/* ---------- Sprachumschalter ---------- */
.lang { display: flex; gap: 2px; font-size: .8125rem; font-weight: 500; letter-spacing: .3px; }
.lang a { padding: 6px 7px; border-radius: 6px; color: var(--text-dim); text-decoration: none; }
.lang a:hover { color: var(--green); background: var(--icon-bg); }
.lang a[aria-current] { color: var(--text); font-weight: 700; }
@media (max-width: 860px) { .site-header__in { gap: 10px; } .lang { margin-left: auto; } }
@media (max-width: 400px) { .site-header__in { padding-left: 14px; } .site-header .btn--sm { padding-inline: .8em; } }

/* ---------- Store-Links (Platzhalter, bis die Einträge existieren) ---------- */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.store { display: block; height: 44px; border-radius: 7px; overflow: hidden; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.store img { height: 44px; width: auto; }
.store--play img { height: 65.5px; margin: -10.75px -10.75px; max-width: none; }
.store:hover { transform: translateY(-1px); }
.store[aria-disabled="true"] { opacity: .5; cursor: default; }
.store[aria-disabled="true"]:hover { transform: none; }

/* ---------- Cookie-Einwilligung ---------- */
.consent { position: fixed; right: 20px; bottom: 20px; z-index: 70; width: min(430px, calc(100% - 40px)); background: var(--surface); border-radius: var(--r-lg); padding: 22px; box-shadow: 0 24px 60px -18px rgba(8, 24, 17, .45), 0 2px 8px rgba(8, 24, 17, .12); animation: consent-in .5s var(--ease) both; }
.consent__title { font-size: 1.0625rem; line-height: 1.3; letter-spacing: 0; }
.consent__body { margin-top: 8px; font-size: .9375rem; line-height: 1.5; color: var(--text-med); }
.consent__body a { color: var(--green); font-weight: 500; white-space: nowrap; }
.consent__actions { display: flex; gap: 10px; margin-top: 16px; }
.consent__actions .btn { flex: 1; }
@keyframes consent-in { from { opacity: 0; transform: translateY(16px); } }
@media (max-width: 560px) { .consent { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 18px; } }

/* ---------- Menü-Knopf und mobile CTA-Leiste (ab hier nur kleine Bildschirme sichtbar) ---------- */
.menu-btn { display: none; position: relative; width: 40px; height: 40px; flex: none; border: 0; border-radius: 10px; background: var(--icon-bg); cursor: pointer; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn span:first-child { top: 15px; }
.menu-btn span:last-child { top: 23px; }
.nav-open .menu-btn span:first-child { top: 19px; transform: rotate(45deg); }
.nav-open .menu-btn span:last-child { top: 19px; transform: rotate(-45deg); }
.mbar { display: none; }
.dots { display: none; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .site-header__in { position: relative; padding: 8px 8px 8px 16px; }
  .site-nav { display: flex; flex-direction: column; gap: 2px; position: absolute; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 10px; background: var(--surface); border-radius: var(--r-lg); box-shadow: 0 24px 60px -18px rgba(8, 24, 17, .45), 0 2px 8px rgba(8, 24, 17, .1); opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: top; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s; }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
  .site-nav a { padding: 14px 14px; font-size: 1.125rem; color: var(--text); border-radius: 10px; }
  .site-nav a + a { border-top: 1px solid var(--border-soft); border-radius: 0 0 10px 10px; }

  .mbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 -10px 30px -18px rgba(8, 24, 17, .4); transform: translateY(110%); transition: transform .45s var(--ease); }
  .mbar.is-on { transform: none; }
  .mbar .btn { width: 100%; padding-block: .95em; font-size: 1.0625rem; }
  .has-consent-banner .mbar { transform: translateY(110%); }
  .site-footer { padding-bottom: 96px; }
}

@media (max-width: 700px) {
  .site-header .btn--primary { display: none; }
  h1 { font-size: clamp(2.7rem, 12.4vw, 3.6rem); letter-spacing: -.032em; }
  .hero { padding-top: 36px; }
  .hero__cta .btn { flex: 1 1 100%; padding-block: 1em; font-size: 1.0625rem; }
  .hero__cta .btn--ghost { flex-basis: auto; }
  /* Bühne randlos, wie ein App-Blatt */
  .hero > .wrap:last-child { width: 100%; }
  .stage { border-radius: 30px 30px 0 0; padding: 22px 16px 0; }
  .stage__bar { padding-bottom: 18px; }
  .seg { width: 100%; }
  .seg__btn { flex: 1; justify-content: center; padding-block: 10px; }
  .phone { width: min(100%, 330px); height: 590px; }
  .duo { padding-top: 72px; }
  .section { padding-block: 72px; }
  .features, .pro-wrap, .pricing, .faq { padding-top: 0; }
  .stores { margin-top: 18px; }
  .closer h2 { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  .closer .btn { width: 100%; padding-block: 1em; }
  .pro { border-radius: 26px; margin-inline: calc(var(--gutter) * -.45); }
}

/* Funktionen als wischbare Karten */
@media (max-width: 680px) {
  .bento { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 10px; scroll-padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .bento::-webkit-scrollbar { display: none; }
  .bento .tile { flex: 0 0 86%; scroll-snap-align: start; scroll-snap-stop: always; }
  .dots { display: flex; justify-content: center; gap: 4px; margin-top: 8px; }
  .dots button { width: 28px; height: 28px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; }
  .dots button::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: #cbd5e1; transition: width .3s var(--ease), background-color .3s var(--ease); }
  .dots button[aria-current="true"]::before { width: 22px; background: var(--green); }
}

/* Unsichtbare Hilfstexte (.vh) sind absolut positioniert: im Wischbereich an die Karte binden, sonst weiten sie die Seite. */
.tile { position: relative; }

/* ---------- Einloggen (bestehende Konten) ---------- */
.login { padding: 8px 10px; border-radius: var(--r-sm); font-size: .9375rem; font-weight: 500; color: var(--text); text-decoration: none; white-space: nowrap; transition: color .2s, background-color .2s; }
.login:hover { color: var(--green); background: var(--icon-bg); }
.site-header__in > .lang + .login { margin-left: -8px; }
.site-nav .site-nav__login { display: none; }
@media (max-width: 860px) {
  .login { display: none; }
  .site-nav .site-nav__login { display: block; color: var(--green); font-weight: 700; }
}
/* Wischkarten: Inhalt oben halten statt Leerraum in kurzen Karten */
@media (max-width: 680px) {
  .bento { align-items: flex-start; }
  .bento .tile .vis { margin-top: 0; }
}

/* ---------- „Demnächst“-Schild kleiner ---------- */
.soon { font-size: .5625rem; padding: 2px 6px; letter-spacing: .4px; }
.stage { scroll-margin-top: 84px; }

/* ---------- Mobil: abgestimmte Schriftgrößen, zentrierte Texte ---------- */
@media (max-width: 700px) {
  body { font-size: 1rem; }
  h1 { font-size: 2.375rem; line-height: 1.08; letter-spacing: -.026em; margin-inline: auto; }
  h2 { font-size: 1.75rem; line-height: 1.14; letter-spacing: -.02em; }
  .lead { font-size: 1.0625rem; line-height: 1.55; margin-inline: auto; }
  .section__head p, .pro__intro > p, .closer p { font-size: 1rem; }
  .tile h3 { font-size: 1.1875rem; }
  .tile > p { font-size: .9375rem; }
  .duo h3 { font-size: 1.0625rem; }
  .roadmap h3 { font-size: 1rem; }
  .roadmap p { font-size: .9375rem; }
  .faq summary { font-size: 1.0625rem; padding-block: 18px; }
  .closer h2 { font-size: 2rem; letter-spacing: -.022em; }
  .hero__note { font-size: .875rem; }
  .stage__hint { font-size: .9375rem; }

  .hero__top { text-align: center; padding-inline: 6px; }
  .hero__cta { justify-content: center; }
  .stage__bar { align-items: center; text-align: center; }
  .section__head { text-align: center; margin-inline: auto; }
  .section__head p { margin-inline: auto; }
  .duo__grid > h2 { text-align: center; }
  .duo__cols { text-align: center; }
  .duo h3 { justify-content: center; }
  .stores { justify-content: center; }
  .pro__intro { text-align: center; }
  .pro__intro > p { margin-inline: auto; }
  .faq__grid > h2 { text-align: center; }
  .closer__in { justify-items: center; text-align: center; }
  .site-footer__in { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  .site-footer nav { margin-left: 0; justify-content: center; }
}

/* Kopfzeile: nichts umbrechen oder stauchen, wenn der Platz knapp wird */
.site-nav a, .lang a { white-space: nowrap; }
.site-header__in > * { flex-shrink: 0; }
.site-header .btn { white-space: nowrap; }

/* Buttons in Rechtstexten behalten ihre eigene Textfarbe */
.legal a.btn { text-decoration: none; }
.legal a.btn--primary { color: #fff; }
.legal a.btn--ghost { color: var(--text); }
.legal .mail-hint { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--icon-bg); color: var(--text); font-size: .9375rem; }

/* Google-Play-Badge: die offiziellen PNGs haben je Sprache unterschiedlich viel Rand (en: 41 px rundum, de/it: 29 px nur oben und unten). */
:lang(de) .store--play img, :lang(it) .store--play img { height: 57.3px; margin: -6.65px 0 0; }
.store { border-radius: 8px; }

/* ---------- Web & App als eigene, abgesetzte Fläche ---------- */
.duo { padding-bottom: clamp(56px, 7vw, 96px); }
.duo__grid { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-sm); padding: clamp(28px, 5vw, 64px); align-items: center; }
.duo__cols .stores { grid-column: 1 / -1; margin-top: 4px; padding-top: 24px; border-top: 1px solid var(--border); }
.features { padding-top: clamp(24px, 4vw, 56px); }
@media (max-width: 700px) {
  .duo { padding-bottom: 40px; }
  .duo__grid { padding: 32px 22px; border-radius: 24px; }
  .features { padding-top: 32px; }
}
.duo__cols .stores { justify-content: center; }

/* Vergleichstabelle mobil: der Button in der Fußzeile bekommt die volle Tabellenbreite */
/* (Der Button in der Fußzeile der Tabelle wurde entfernt.) */
.compare tbody tr:last-child > * { padding-bottom: 20px; }

/* ---------- Rechtstexte: ruhigere Zeilenumbrüche, mobil abgestimmt ---------- */
.legal p, .legal li, .legal address { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.legal h1 + p { margin-top: 1.2em; }
@media (max-width: 700px) {
  .legal { padding-top: 32px; }
  .legal__lang { justify-content: center; margin-bottom: 22px; }
  .legal h1 { font-size: 1.875rem; text-align: center; hyphens: auto; -webkit-hyphens: auto; }
  .legal h2 { font-size: 1.1875rem; margin-top: 2em; }
  .legal p, .legal li, .legal address { font-size: .9375rem; line-height: 1.62; }
  .legal ul, .legal ol { padding-left: 1.15em; }
  .legal__meta { text-align: center; }
}
