/* receipttracker.app: Fünf Ansichten. Sora is served from this site (no third-party font requests). */
@font-face { font-family: "Sora"; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/sora-latin-400-normal.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; }
@font-face { font-family: "Sora"; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/sora-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Sora"; font-style: normal; font-display: swap; font-weight: 600; src: url(fonts/sora-latin-600-normal.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; }
@font-face { font-family: "Sora"; font-style: normal; font-display: swap; font-weight: 600; src: url(fonts/sora-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Sora"; font-style: normal; font-display: swap; font-weight: 700; src: url(fonts/sora-latin-700-normal.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; }
@font-face { font-family: "Sora"; font-style: normal; font-display: swap; font-weight: 700; src: url(fonts/sora-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Sora"; font-style: normal; font-display: swap; font-weight: 800; src: url(fonts/sora-latin-800-normal.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; }
@font-face { font-family: "Sora"; font-style: normal; font-display: swap; font-weight: 800; src: url(fonts/sora-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Nacht is the base; Hell comes from the switch or the device setting (set on <html> before paint). */
:root {
  --bg: #0e0d16; --fg: #eeedf7; --mut: #a19fb3; --line: rgba(238,237,247,.09); --soft: #1b1a27;
  --box: #15141f; --acc: #8b7cf4;
  --rate: #45d0bf; --inv: #ff8a5c; --ret: #7aa2ff; --war: #b892f2; --sub: #f07ab0;
  --glow: rgba(139,124,244,.34); --halo: rgba(139,124,244,.28); --shade: rgba(0,0,0,.8);
  --icon-edge: 0 0 0 1px rgba(238,237,247,.09), 0 6px 16px -6px rgba(0,0,0,.8);
  --font: "Sora", -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
:root[data-look="hell"] {
  --bg: #f2f1f8; --fg: #17162a; --mut: #5e5b72; --line: rgba(23,22,42,.11); --soft: #e7e5f2;
  --box: #ffffff; --acc: #6957d9;
  --rate: #0f8a7c; --inv: #d9480f; --ret: #3b6fd8; --war: #8a55cc; --sub: #c43d7a;
  --glow: rgba(105,87,217,.30); --halo: rgba(105,87,217,.20); --shade: rgba(23,22,42,.28);
  --icon-edge: 0 0 0 1px rgba(23,22,42,.10), 0 8px 18px -8px rgba(105,87,217,.55);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -.025em; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--box); padding: 10px 14px; border-radius: 10px; }

/* Theme-paired screenshots: only the one for the current look is shown (and loaded). */
:root[data-look="hell"] .shot-dark, :root:not([data-look="hell"]) .shot-light { display: none; }

/* ---------- Header ---------- */
.head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s; padding-top: env(safe-area-inset-top, 0px); }
.head.scrolled { border-bottom-color: var(--line); }
.head .wrap { display: flex; align-items: center; gap: 12px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: var(--icon-edge); }
.brand b { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.brand-text { display: flex; align-items: center; white-space: nowrap; }
.brand-text small { display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--mut); }
.brand-text small::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin: 0 .6em; }
@media (max-width: 520px) { .brand-text small { display: none; } }
.head .wrap > nav { display: flex; gap: 26px; font-size: 14px; color: var(--mut); margin-right: 18px; }
.head .wrap > nav a { text-decoration: none; }
.head .wrap > nav a:hover { color: var(--fg); }
.look { display: flex; gap: 3px; padding: 3px; border-radius: 12px; background: var(--soft); }
.look button { appearance: none; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--mut); padding: 6px 12px; border-radius: 9px; cursor: pointer; }
.look button[aria-pressed="true"] { background: var(--box); color: var(--fg); box-shadow: 0 1px 3px var(--line); }
/* the language links sit small under the Hell / Nacht switch */
.prefs { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.lang { display: flex; align-items: center; gap: 0; font-size: 11px; font-weight: 600; line-height: 1; }
.lang a { color: var(--mut); text-decoration: none; padding: 2px 5px; border-radius: 5px; }
.lang a:hover { color: var(--fg); }
.lang a[aria-current] { color: var(--fg); }
/* a thin upright line between the languages */
.lang a + a::before { content: ""; display: inline-block; width: 1px; height: 8px; margin: 0 5px 0 -5px; vertical-align: -0.5px; background: var(--mut); }

/* ---------- Pieces ---------- */
.store { display: inline-flex; align-items: center; gap: 11px; height: 56px; padding: 0 22px 0 18px; border-radius: 16px; background: var(--fg); color: var(--bg); font-weight: 600; font-size: 16px; }
.store svg { width: 22px; height: 22px; }
.store span { line-height: 1.1; }
.store small { display: block; font-size: 11px; font-weight: 500; opacity: .65; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 34px; }
.note { font-size: 13.5px; color: var(--mut); }
.device { position: relative; margin: 0; width: 100%; border-radius: 42px; padding: 7px; background: linear-gradient(160deg, #2a2838, #14131c 40%, #232131); box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 50px 100px -40px var(--glow), 0 30px 60px -30px var(--shade); }
.device img { width: 100%; height: auto; aspect-ratio: 800 / 1739; object-fit: cover; object-position: top; border-radius: 36px; background: var(--bg); }
.glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(closest-side, var(--halo), transparent); pointer-events: none; z-index: 0; }
.ring { width: 11px; height: 11px; border-radius: 50%; border: 2.5px solid currentColor; display: inline-block; flex: none; }
.c-rate { color: var(--rate); } .c-inv { color: var(--inv); } .c-ret { color: var(--ret); } .c-war { color: var(--war); } .c-sub { color: var(--sub); } .c-acc { color: var(--acc); }

/* ---------- Hero + filmstrip ---------- */
.hero { padding-block: 48px 0; }
.hero .row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 40px; align-items: end; }
.hero h1 { font-size: clamp(44px, 7.6vw, 104px); line-height: .95; font-weight: 800; letter-spacing: -.04em; max-width: 13ch; }
.hero .lead { font-size: 18px; color: var(--mut); max-width: 36ch; }
.film { position: relative; margin-top: 72px; padding-block: 20px 110px; overflow: hidden; }
.film .glow { left: 50%; top: 0; margin-left: -260px; }
.film-track { position: relative; z-index: 1; display: flex; gap: 26px; justify-content: center; align-items: flex-start; padding-inline: 20px; }
.film-item { flex: 0 0 auto; width: 260px; display: grid; gap: 18px; margin: 0; margin-top: 64px; }
.film-item:nth-child(2) { width: 310px; margin-top: 0; }
/* Two more screens, each with room for its own sentence. */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; margin-top: 56px; }
.duo-item { margin: 0; display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 32px; align-items: center; }
.duo-item h3 { font-size: 24px; font-weight: 700; }
.duo-item p { color: var(--mut); font-size: 16px; margin-top: 12px; max-width: 32ch; }
.cap { font-size: 14.5px; line-height: 1.55; color: var(--mut); padding-inline: 4px; }
.cap b { display: block; color: var(--fg); font-weight: 700; font-size: 18px; letter-spacing: -.015em; margin-bottom: 6px; }

/* ---------- Sections ---------- */
.sec { padding-block: 110px; border-top: 1px solid var(--line); position: relative; scroll-margin-top: 72px; }
.sec-title { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.06; font-weight: 700; max-width: 18ch; }
.sec-sub { color: var(--mut); font-size: 17px; margin-top: 18px; max-width: 50ch; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.card { background: var(--box); border-radius: 24px; box-shadow: 0 0 0 1px var(--line); padding: 28px; display: grid; gap: 14px; align-content: start; }
.card h3 { font-size: 21px; font-weight: 600; }
.card p { color: var(--mut); font-size: 15px; }
.grid2 .card { padding: 34px; }
.card ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.card li { display: flex; gap: 12px; align-items: baseline; font-size: 15.5px; }
.card li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--acc); flex: none; transform: translateY(-2px); }
.priv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; margin-top: 44px; }
.priv-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 52px; }
.priv-two .card { padding: 32px; gap: 12px; }
.priv-two h3 { font-size: 24px; font-weight: 700; }
.priv-two li { color: var(--mut); font-size: 15.5px; }
.tag { justify-self: start; font-size: 12.5px; font-weight: 600; color: var(--acc); background: color-mix(in srgb, var(--acc) 14%, transparent); border-radius: 8px; padding: 4px 10px; }
.sec-sub.small { font-size: 15px; margin-top: 36px; }
.priv div { border-top: 2px solid var(--acc); padding-top: 20px; }
.priv b { display: block; font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.priv p { color: var(--mut); font-size: 14.5px; }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 16.5px; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--acc); font-weight: 500; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { padding-bottom: 20px; color: var(--mut); max-width: 62ch; }
.mail { color: var(--fg); font-weight: 600; text-decoration-color: var(--acc); text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 30px calc(44px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; font-size: 13.5px; color: var(--mut); }
.foot .brand { margin-right: auto; color: var(--fg); font-weight: 600; font-size: 14px; gap: 10px; }
.foot .brand img { width: 28px; height: 28px; border-radius: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--fg); }

/* ---------- Narrow screens ---------- */
@media (max-width: 900px) {
  .hero .row, .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .priv { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .grid3, .grid2, .priv-two { grid-template-columns: minmax(0, 1fr); }
  .priv { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .film { margin-top: 48px; padding-bottom: 80px; }
  .film-track { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
  .film-track::-webkit-scrollbar { display: none; }
  .film-item, .film-item:nth-child(2) { scroll-snap-align: center; width: 230px; margin-top: 0; }
  .duo { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .head .wrap > nav { gap: 18px; margin-right: 12px; }
  .head .brand-text small { display: none; }
  .sec { padding-block: 80px; }
}
@media (max-width: 640px) { .head .wrap > nav { display: none; } }
@media (max-width: 560px) {
  .duo-item { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .duo-item .device { max-width: 260px; margin-inline: auto; }
  .duo-item p { max-width: none; }
  .foot { gap: 12px 24px; }
  .foot .brand { flex-basis: 100%; margin-bottom: 6px; }
  .foot a[href^="mailto:"] { flex-basis: 100%; }
  .duo-item h3 { font-size: 20px; }
  .duo-item p { font-size: 15px; }
  .priv { grid-template-columns: minmax(0, 1fr); }
  .head .wrap { height: 64px; }
  .brand b { font-size: 15px; }
}

/* ---------- Text pages: Datenschutz, Impressum, Support ---------- */
.doc { max-width: 760px; padding-block: 56px 96px; }
.doc h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; }
.doc .intro { color: var(--mut); font-size: 18px; margin-top: 18px; max-width: 56ch; }
.doc h2 { font-size: 22px; font-weight: 700; margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.doc h3 { font-size: 17px; font-weight: 600; margin-top: 28px; }
.doc p, .doc li { color: var(--mut); font-size: 16px; max-width: 66ch; }
.doc p { margin-top: 12px; }
.doc p strong, .doc li strong { color: var(--fg); font-weight: 600; }
.doc ul, .doc ol { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.doc a { color: var(--fg); text-decoration-color: var(--acc); text-underline-offset: 3px; }
.doc .stamp { margin-top: 56px; font-size: 13.5px; }
.doc address { font-style: normal; color: var(--fg); font-size: 17px; line-height: 1.6; margin-top: 14px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.toc a { text-decoration: none; height: 34px; display: inline-flex; align-items: center; padding: 0 13px; border-radius: 10px; background: var(--soft); color: var(--fg); font-size: 13.5px; }
/* Gaps the owner still has to fill in before the site goes public. */
.todo { background: color-mix(in srgb, var(--inv) 18%, transparent); color: var(--fg); border-radius: 6px; padding: 1px 6px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv) 55%, transparent); }
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 28px; padding: 22px 24px; border-radius: 20px; background: var(--box); box-shadow: 0 0 0 1px var(--line); }
.contact b { font-size: 18px; font-weight: 600; }
.contact span { color: var(--mut); font-size: 14px; }

.doc .note { font-size: 13.5px; color: var(--mut); opacity: .85; margin-top: 14px; }

/* Long German words (Verbraucherstreitbeilegung) break with a hyphen on small phones instead of pushing the page sideways. */
.doc h2 { overflow-wrap: break-word; }
@media (max-width: 380px) { .doc h2 { -webkit-hyphens: auto; hyphens: auto; } }
@media (max-width: 359px) { .head .brand-text { display: none; } }

/* iPad frame: landscape, thinner bezel than the phone. */
.device.tablet { max-width: 980px; margin: 48px auto 0; border-radius: 30px; padding: 12px; }
.device.tablet img { aspect-ratio: 1600 / 1118; border-radius: 19px; }
@media (max-width: 560px) { .device.tablet { margin-top: 32px; border-radius: 18px; padding: 6px; } .device.tablet img { border-radius: 13px; } }

/* Hell: the accent on its own tint is too light for small text; darken it for contrast (WCAG AA). */
:root[data-look="hell"] .tag { color: color-mix(in srgb, var(--acc) 72%, #000); }
