/*
 * Dransein Website, Stil Fjord (Plan 10). Farben und Maße kommen aus den App-Tokens:
 * warmes Hellgrau als Grund, weiße Flächen mit feinen Linien, Fjordblau als einziger Akzent,
 * Rost nur für „überfällig“. Schrift Manrope (OFL), vom eigenen Server.
 */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --bg: #f5f3ef;
  --surface: #ffffff;
  --surface-2: #ece8e1;
  --line: #e3ded5;
  --line-2: #d3cdc2;
  --text: #23272a;
  --muted: #6b7075;
  --accent: #3f6b7c;
  --on-accent: #ffffff;
  --accent-light: #e2ebee;
  --overdue: #b4553b;
  --ochre: #c08457;
  --moss: #5e7f67;
  --fjord: #3f6b7c;
  --on-member: #ffffff;
  --shadow: 0 1px 2px rgba(35, 39, 42, 0.06), 0 24px 48px -28px rgba(35, 39, 42, 0.32);
  --radius: 16px;
  --font: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141716;
    --surface: #1d2120;
    --surface-2: #272c2a;
    --line: #2e3431;
    --line-2: #3b423f;
    --text: #eceae5;
    --muted: #9aa09c;
    --accent: #8db5c4;
    --on-accent: #0f1b20;
    --accent-light: #22343b;
    --overdue: #e5937a;
    --ochre: #d9a27a;
    --moss: #8fb399;
    --fjord: #8db5c4;
    --on-member: #141716;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 24px 48px -28px rgba(0, 0, 0, 0.8);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.wrap-text {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

.wrap-narrow {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 720px) {
  .wrap,
  .wrap-text {
    padding: 0 32px;
  }
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

/* Kopfzeile */

.lang-hint {
  background: var(--accent-light);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 0;
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.mark-icon {
  width: 28px;
  height: 28px;
  flex: none;
}

.lang {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

/* Startseite: Einstieg */

.hero {
  display: grid;
  gap: 40px;
  padding-top: 24px;
  padding-bottom: 56px;
}

.eyebrow,
.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker {
  color: var(--accent);
}

.hero h1 {
  margin-top: 14px;
  font-size: clamp(40px, 9vw, 62px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  max-width: 13ch;
}

.lead {
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 34em;
}

.hero .stores {
  margin-top: 28px;
}

.price-note {
  margin-top: 18px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  font-size: 15px;
  font-weight: 600;
  max-width: 30em;
}

.platforms {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

@media (min-width: 880px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 56px;
    padding-top: 48px;
    padding-bottom: 88px;
  }
}

/* Store-Knöpfe */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px 0 14px;
  border-radius: 14px;
  background: var(--text);
  color: var(--bg);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  text-decoration: none;
}

.store svg {
  width: 24px;
  height: 24px;
  flex: none;
}

.store small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.8;
}

.store-soon {
  background: var(--surface-2);
  color: var(--muted);
}

/* Telefon mit Screen */

.phone {
  margin: 0 auto;
  width: min(300px, 76vw);
  border-radius: 40px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.phone img {
  width: 100%;
}

/* Funktionen */

.feature {
  display: grid;
  gap: 32px;
  padding-top: 56px;
  padding-bottom: 56px;
  border-top: 1px solid var(--line);
}

.feature h2 {
  margin-top: 12px;
  font-size: clamp(27px, 4.4vw, 38px);
  line-height: 1.12;
}

.feature-text p:not(.kicker) {
  margin-top: 16px;
  font-size: 17px;
  color: var(--muted);
  max-width: 32em;
}

.feature-visual {
  display: flex;
  justify-content: center;
}

@media (min-width: 880px) {
  .feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 64px;
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .feature-flip .feature-text {
    order: 2;
  }
}

/* Haushaltskarte */

.mock-household {
  width: min(360px, 100%);
  padding: 22px 20px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mock-hh {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.mock-avatars {
  display: flex;
  margin-top: 14px;
  padding-left: 8px;
}

.av {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.mock-avatars .av {
  width: 44px;
  height: 44px;
  margin-left: -8px;
  border: 3px solid var(--surface);
  font-size: 15px;
  color: var(--on-member);
}

.av-a {
  background: var(--ochre);
}

.av-b {
  background: var(--moss);
}

.av-c {
  background: var(--fjord);
}

.mock-code {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface-2);
}

.mock-code small {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.mock-code b {
  display: block;
  margin-top: 2px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

.mock-sync {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

.check {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
}

.check::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 4px;
  width: 5px;
  height: 10px;
  border: solid var(--on-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Mitteilungen */

.mock-notifs {
  margin: 0;
  width: min(380px, 100%);
}

.notif-stack {
  position: relative;
  padding: 72px 14px 34px;
  border-radius: 28px;
  background: var(--accent-light);
}

.notif-stack::before {
  content: '18:00';
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 44px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.notif {
  position: relative;
  z-index: 1;
  padding: 12px 14px 14px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.notif-old {
  z-index: 0;
  margin: -6px 12px 0;
  padding-top: 18px;
  opacity: 0.75;
  box-shadow: none;
  border: 1px solid var(--line);
}

.notif-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-transform: uppercase;
}

.notif-head .mark-icon {
  width: 20px;
  height: 20px;
}

.notif-head time {
  margin-left: auto;
  text-transform: none;
  font-weight: 500;
}

.notif-title {
  margin-top: 8px;
  font-size: 15.5px;
  font-weight: 700;
}

.notif-body {
  font-size: 15px;
  color: var(--text);
}

.notif-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.notif-actions span {
  padding: 8px 4px;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.notif-actions span:first-child {
  background: var(--accent);
  color: var(--on-accent);
}

.mock-notifs figcaption {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* Preis */

.price {
  padding-top: 64px;
  padding-bottom: 64px;
  border-top: 1px solid var(--line);
}

.price-head h2,
.faq h2 {
  font-size: clamp(27px, 4.4vw, 38px);
  line-height: 1.12;
}

.price-head p {
  margin-top: 14px;
  font-size: 17px;
  color: var(--muted);
  max-width: 36em;
}

.price-table {
  margin-top: 32px;
  margin-bottom: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.price-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.price-table th,
.price-table td {
  padding: 14px 12px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}

.price-table thead th,
.price-table thead td {
  border-top: none;
  font-size: 14px;
  font-weight: 700;
  vertical-align: top;
}

.price-table tbody th {
  width: 30%;
  font-weight: 600;
  color: var(--muted);
}

.price-table .amount {
  display: block;
  margin-top: 4px;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.price-table .once {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.price-table td:last-child,
.price-table th.col-unlocked {
  background: var(--accent-light);
}

.price-table th.col-unlocked {
  color: var(--accent);
}

.price-table th.col-unlocked .amount {
  color: var(--text);
}

@media (min-width: 720px) {
  .price-table th,
  .price-table td {
    padding: 16px 22px;
  }
}

/* Fragen */

.faq {
  padding-top: 64px;
  padding-bottom: 80px;
  border-top: 1px solid var(--line);
}

.faq-list {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-list details + details {
  border-top: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 14px 52px 14px 18px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '';
  position: absolute;
  right: 22px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border: solid var(--muted);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.faq-list details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -1px;
}

.faq-list details p {
  padding: 0 18px 18px;
  color: var(--muted);
  max-width: 44em;
}

/* Fußzeile */

.foot {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.brand-small {
  font-size: 15px;
}

.brand-small .mark-icon {
  width: 22px;
  height: 22px;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.foot-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.foot-nav a:hover {
  color: var(--text);
}

.foot-copy {
  width: 100%;
  font-size: 13px;
  color: var(--muted);
}

@media (min-width: 880px) {
  .foot-copy {
    width: auto;
    margin-left: auto;
  }
}

/* Textseiten */

.prose {
  padding-top: 24px;
  padding-bottom: 72px;
}

.prose h1 {
  font-size: clamp(30px, 6vw, 40px);
  line-height: 1.1;
  margin-bottom: 18px;
}

.prose h2 {
  margin-top: 36px;
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.prose h3 {
  margin-top: 24px;
  font-size: 17px;
  font-weight: 700;
}

.prose p,
.prose ul,
.prose ol {
  margin: 10px 0 0;
  line-height: 1.65;
}

.prose .lead {
  margin-top: 0;
  color: var(--text);
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose li + li {
  margin-top: 6px;
}

.prose a {
  overflow-wrap: anywhere;
}

.table {
  margin-top: 14px;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.45;
}

.table th,
.table td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}

.table thead th {
  border-top: none;
  font-weight: 700;
  color: var(--muted);
}

/* Einladung und Fehlerseiten */

.page-invite main {
  padding: 8px 0 64px;
}

.invite-card {
  padding: 26px 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.invite-card h1 {
  margin-top: 10px;
  font-size: clamp(26px, 7vw, 32px);
  line-height: 1.15;
}

.invite-card .eyebrow {
  color: var(--accent);
}

.hh {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.invite-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

.invite-meta .sep {
  opacity: 0.6;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 22px;
  padding: 0 20px;
  border-radius: 16px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.btn-quiet {
  background: var(--surface-2);
  color: var(--text);
}

.code-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface-2);
}

.code-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.code-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.code {
  font-size: clamp(26px, 8vw, 34px);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
  user-select: all;
  -webkit-user-select: all;
  white-space: nowrap;
}

.copy {
  flex: none;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.copy[data-state='done'] {
  border-color: var(--accent);
  color: var(--accent);
}

.steps {
  display: grid;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  font-size: 14px;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.invite-noapp {
  margin-top: 20px;
  font-size: 15px;
  color: var(--muted);
}

.invite-card .stores {
  margin-top: 14px;
}

.invite-card .store {
  flex: 1 1 150px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
