/* sackerl-app.de – Design „Graphit und Messing“ wie die App (docs/05-DESIGN.md §2, D76/D79).
   Schrift wie in der App: System-Schrift (SF Pro), Titel in der System-Serifenschrift (New York),
   so wie „Sackerl“ auf dem Startbildschirm. SF darf nicht hochgeladen werden. Einzige Schriftdatei:
   Space Grotesk (SIL OFL) nur für die Wortmarke „hmn.“ von HAMAN Studio, wie auf hmnstudio.de.
   Nichts von fremden Servern, keine Cookies. */

@font-face { font-family: "Space Grotesk"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }

:root {
  --bordeaux: #4A1D26;       /* nur für die Wortmarke hmn. */
  --rose: #D9A38E;
  --income: #24804B;         /* nur für Einnahmen und „verbunden“, wie in der App */
  --graphite: #24211F;
  --brass: #D9B261;          /* nur auf Graphit */
  --brass-ink: #8F6614;      /* Messing auf Hell: Links, Akzente */
  --bg: #F6F5F2;             /* Kalkweiß */
  --surface: #FFFFFF;
  --tint: #F7EDD6;
  --text: #1F1D1B;
  --text-soft: #625C55;
  --cream: #F2EDE1;
  --cream-soft: #B7B2A8;
  --line: rgba(31, 29, 27, 0.10);
  --line-strong: rgba(31, 29, 27, 0.22);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --gutter: clamp(16px, 4.5vw, 56px);
  --max: 1160px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #121110; --surface: #1F1E1C; --tint: #302A22; --text: #F2EDE1; --text-soft: #AAA398;
    --brass-ink: #DDB867; --income: #6FCB92; --line: rgba(242, 237, 225, 0.09); --line-strong: rgba(242, 237, 225, 0.2); }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans);
  font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--brass-ink); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--brass-ink); outline-offset: 3px; }
::selection { background: var(--graphite); color: var(--cream); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.serif { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
.num { font-variant-numeric: tabular-nums; }

/* Kopf: bleibt oben, bekommt beim Scrollen eine ruhige Fläche */
.site-head { position: sticky; top: 0; z-index: 10; transition: background-color .3s ease, box-shadow .3s ease; }
.site-head.scrolled { background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); box-shadow: 0 1px 0 var(--line); }
.site-head.scrolled .wrap { height: 64px; }
.site-head .wrap { transition: height .3s ease; }
.section, .doc h2 { scroll-margin-top: 72px; }
.site-head .wrap { display: flex; justify-content: space-between; align-items: center; height: 76px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none;
  font-family: var(--serif); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-head nav { display: flex; gap: clamp(16px, 2.6vw, 32px); font-size: 15px; }
.site-head nav a { color: var(--text); text-decoration: none; }
.site-head nav a:hover { text-decoration: underline; }
@media (max-width: 640px) { .nav-wide { display: none; } }

/* Einstieg */
.hero { padding: clamp(32px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero .phone { width: 100%; max-width: 330px; justify-self: center; }
.kicker { font-size: 15px; font-weight: 600; color: var(--brass-ink); margin: 0 0 18px; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(42px, 6.2vw, 76px); line-height: 1.02;
  letter-spacing: -0.02em; margin: 0 0 24px; max-width: 12ch; }
.lead { font-size: clamp(18px, 1.9vw, 21px); color: var(--text-soft); margin: 0 0 32px; max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.button { display: inline-block; background: var(--graphite); color: var(--cream); text-decoration: none;
  font-weight: 600; font-size: 16px; padding: 15px 24px; border-radius: 14px; }
.button { transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.button:hover { background: #3A3531; transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(36, 33, 31, 0.6); }
.button:active { transform: none; box-shadow: none; }
@media (prefers-color-scheme: dark) { .button { background: var(--brass); color: var(--graphite); } .button:hover { background: #E6C47C; } }
.note { font-size: 15px; color: var(--text-soft); margin: 0; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .phone { max-width: 300px; margin: 8px auto 0; }
}

/* iPhone-Rahmen für echte Bildschirmfotos aus dem Simulator */
.phone { position: relative; border-radius: 52px; padding: 11px; background: #1A1817;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.25), 0 30px 60px -20px rgba(36, 33, 31, 0.35), 0 12px 24px -12px rgba(36, 33, 31, 0.25); }
.phone img { border-radius: 42px; width: 100%; height: auto; aspect-ratio: 1206 / 2622; background: var(--surface); }
@media (prefers-color-scheme: dark) { .phone { box-shadow: 0 0 0 1px rgba(242,237,225,0.12), 0 30px 60px -24px rgba(0,0,0,0.7); } }

/* Abschnitte */
.section { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.section h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 4.2vw, 50px); line-height: 1.06;
  letter-spacing: -0.015em; margin: 0 0 18px; max-width: 18ch; }
.section .intro { font-size: 19px; color: var(--text-soft); margin: 0 0 clamp(40px, 6vw, 64px); max-width: 44ch; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(24px, 3.5vw, 48px);
  list-style: none; margin: 0; padding: 0; }
.features li { padding-top: 18px; border-top: 1px solid var(--line-strong); }
.features h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 6px; }
.features p { margin: 0; color: var(--text-soft); }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; gap: 28px; } }

/* Bildschirme */
.screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 56px);
  margin: 0; padding: 0; list-style: none; }
.screens figure { margin: 0; }
.screens figcaption { margin-top: 18px; font-size: 15px; color: var(--text-soft); max-width: 30ch; }
.screens figcaption strong { display: block; color: var(--text); font-weight: 600; font-size: 16px; }
@media (max-width: 760px) {
  .screens { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 68%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .screens li { scroll-snap-align: start; }
}

/* Datenschutz: die eine Graphit-Fläche der Seite, wie die Hero-Karte der App */
.vault { background: var(--graphite); color: var(--cream); border-radius: 32px;
  padding: clamp(36px, 6vw, 80px) clamp(24px, 6vw, 80px); }
.vault h2 { color: var(--cream); }
.vault .intro { color: var(--cream-soft); }
.vault .rule { height: 1px; background: var(--brass); opacity: 0.55; margin: 0 0 32px; }
.vault dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 56px); margin: 0; }
.vault dt { color: var(--brass); font-weight: 600; margin-bottom: 6px; }
.vault dd { margin: 0; color: var(--cream-soft); }
@media (max-width: 820px) { .vault dl { grid-template-columns: 1fr; gap: 24px; } }
@media (prefers-color-scheme: dark) { .vault { background: #1C1A18; box-shadow: inset 0 0 0 1px rgba(242,237,225,0.08); } }

/* Preis */
.price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.price-card { background: var(--surface); border-radius: 24px; padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 0 0 1px var(--line); }
.price-card .amount { font-size: clamp(44px, 5vw, 60px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin: 0; }
.price-card .per { color: var(--text-soft); margin: 8px 0 24px; }
.price-card ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.price-card li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.price-card .small { font-size: 14px; color: var(--text-soft); margin: 18px 0 0; }
@media (max-width: 820px) { .price { grid-template-columns: 1fr; } }

/* Bank: Text und ein Bildschirm nebeneinander */
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split .stage { position: relative; width: 100%; max-width: 330px; justify-self: center; }
.steps { list-style: none; margin: 0 0 28px; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 8px;
  padding: 18px 0; border-top: 1px solid var(--line-strong); }
.steps li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; font-size: 15px; font-weight: 600;
  color: var(--brass-ink); font-variant-numeric: tabular-nums; padding-top: 2px; }
.steps h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 4px; }
.steps p { margin: 0; color: var(--text-soft); max-width: 46ch; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split .stage { max-width: 300px; }
}

/* „Verbunden“-Hinweis und die Karte „Automatisch zugeordnet“ neben dem Bank-Bildschirm */
.live { display: inline-flex; align-items: center; gap: 10px; color: var(--income); }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; opacity: 0; }
.match { position: absolute; left: -72px; bottom: 21%; width: 300px; display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto; column-gap: 12px; row-gap: 6px; align-items: center;
  padding: 14px 16px; border-radius: 18px; background: var(--surface); font-size: 14px; line-height: 1.3;
  box-shadow: 0 0 0 1px var(--line), 0 24px 48px -18px rgba(36, 33, 31, 0.35), 0 8px 16px -10px rgba(36, 33, 31, 0.2); }
.match-check { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: var(--income); }
.match-text { color: var(--text-soft); white-space: nowrap; }
.match-text strong { display: block; color: var(--text); font-weight: 600; font-size: 15px; }
.match-amount { font-weight: 600; color: var(--income); font-size: 15px; }
.match-note { grid-column: 2 / -1; font-size: 13px; font-weight: 600; color: var(--income); }
@media (prefers-color-scheme: dark) { .match-check { color: #121110; }
  .match { box-shadow: 0 0 0 1px var(--line-strong), 0 24px 48px -18px rgba(0, 0, 0, 0.8); } }
@media (max-width: 1000px) { .match { left: -28px; } }
@media (max-width: 860px) { .match { left: 50%; margin-left: -150px; bottom: -28px; } .split .stage { margin-bottom: 28px; } }

/* Über mich: Zitat mit Unterschrift */
.quote { margin: 0; max-width: 900px; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-family: var(--serif); font-weight: 500; font-size: clamp(25px, 3vw, 36px); line-height: 1.3;
  letter-spacing: -0.012em; margin: 0; text-indent: -0.42em; }
.quote blockquote p::before { content: "„"; }
.quote blockquote p::after { content: "“"; }
.quote figcaption { display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line-strong); }
.quote .who { color: var(--text-soft); font-size: 15px; max-width: 46ch; }
.quote .who strong { display: block; color: var(--text); font-size: 17px; font-weight: 600; }
.quote .studio { font-size: 40px; flex: none; }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px clamp(32px, 6vw, 88px);
  max-width: 900px; margin-top: clamp(40px, 6vw, 64px); }
.contact p { margin: 0; color: var(--text-soft); }
.contact a { white-space: nowrap; }
@media (max-width: 700px) { .contact { grid-template-columns: 1fr; } }

/* Wortmarke HAMAN Studio, wie auf hmnstudio.de */
.studio { font-family: "Space Grotesk", var(--sans); font-weight: 500; letter-spacing: -0.045em; line-height: 1;
  display: inline-flex; align-items: baseline; color: var(--bordeaux); text-decoration: none; }
.studio .dot { display: inline-block; width: 0.19em; height: 0.19em; border-radius: 50%; background: var(--rose); margin-left: 0.05em; }
@media (prefers-color-scheme: dark) { .studio { color: var(--cream); } }

/* Textseiten: Hilfe, Datenschutz, Nutzungsbedingungen, Impressum */
.doc { padding: clamp(36px, 7vw, 88px) 0 clamp(64px, 9vw, 112px); }
.doc .wrap > * { max-width: 720px; }
.doc h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 5vw, 54px); letter-spacing: -0.02em;
  line-height: 1.05; margin: 0 0 12px; }
.doc .meta { color: var(--text-soft); font-size: 15px; margin: 0 0 12px; }
.doc .rule { width: 36px; height: 2px; background: var(--brass-ink); margin: 20px 0 36px; }
.doc h2 { font-size: 20px; font-weight: 600; margin: 40px 0 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.doc h3 { font-size: 17px; font-weight: 600; margin: 24px 0 6px; }
.doc p, .doc li { hyphens: auto; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc address { font-style: normal; }
.doc .toc { list-style: none; padding: 0; margin: 0 0 8px; columns: 2; column-gap: 32px; }
.toc li { break-inside: avoid; margin: 0 0 6px; }
@media (max-width: 600px) { .doc .toc { columns: 1; } }

/* Fuß */
.site-foot { padding: 40px 0 48px; color: var(--text-soft); font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; padding-top: 24px;
  background: linear-gradient(var(--line), var(--line)) no-repeat var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px; }
.site-foot nav { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.site-foot a { color: inherit; }
.made-by { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; }
.made-by .studio { font-size: 22px; }

/* Bewegung: nur mit JavaScript und nur, wenn „Bewegung reduzieren“ aus ist. Ruhig und kurz, nichts hüpft. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px);
    transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--d, 0ms); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .hero .phone.reveal { --d: 240ms; transform: translateY(32px); transition-duration: 1.1s; }
  .js .hero .phone.reveal.in { transform: none; }

  /* Die Messing-Linie im Datenschutz-Block zieht sich auf */
  .js .vault .rule { transform: scaleX(0); transform-origin: left; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1) .35s; }
  .js .vault.in .rule { transform: scaleX(1); }

  /* Die Bank-Karte kommt kurz nach dem Bildschirm, wie ein eben zugeordneter Umsatz */
  .js .stage .match { opacity: 0; transform: translateY(14px) scale(.97);
    transition: opacity .6s ease .75s, transform .7s cubic-bezier(.2, .8, .2, 1.1) .75s; }
  .js .stage.in .match { opacity: 1; transform: none; }
  .js .stage .match-check { transform: scale(.4); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1) 1.15s; }
  .js .stage.in .match-check { transform: none; }

  .pulse::after { animation: pulse 2.4s ease-out infinite; }
  @keyframes pulse { 0% { transform: scale(1); opacity: .5; } 70%, 100% { transform: scale(3.2); opacity: 0; } }

  @media (hover: hover) {
    .screens .phone { transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s ease; }
    .screens figure:hover .phone { transform: translateY(-8px);
      box-shadow: 0 0 0 1px rgba(0,0,0,0.25), 0 44px 70px -24px rgba(36, 33, 31, 0.45), 0 14px 28px -14px rgba(36, 33, 31, 0.3); }
  }
}
