/* Instaprost — shared styles for index.html and privacy.html. No external dependencies. */
:root {
  --amber: #F5A623;
  --amber-deep: #E8951A;
  --amber-text: #9A5F03;     /* amber that passes 4.5:1 on the light paper */
  --ink: #1C1207;
  --paper: #FFF8EC;
  --surface: #FFFDF7;
  --surface-2: #FBF1DC;
  --border: rgba(28, 18, 7, 0.14);
  --muted: #6B5A3E;
  --foam: #FFF4DC;
  --focus: #C97F0A;
  --shadow: 0 12px 32px rgba(245, 166, 35, 0.28);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #FFF3DD;
    --paper: #1C1207;
    --surface: #2A1B0C;
    --surface-2: #35230F;
    --border: rgba(255, 243, 221, 0.14);
    --muted: #C9B18A;
    --amber-text: #F5A623;
    --focus: #F5A623;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  }
}
:root[data-theme="dark"] {
  --ink: #FFF3DD;
  --paper: #1C1207;
  --surface: #2A1B0C;
  --surface-2: #35230F;
  --border: rgba(255, 243, 221, 0.14);
  --muted: #C9B18A;
  --amber-text: #F5A623;
  --focus: #F5A623;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

/* Language toggle: only elements that carry BOTH a lang attribute and .i18n are switched. */
[data-lang="de"] .i18n[lang="en"],
[data-lang="en"] .i18n[lang="de"] { display: none !important; }

* { box-sizing: border-box; }
.sprite { position: absolute; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
a { color: var(--amber-text); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 16px; }

/* Top bar */
.top { padding: 12px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand .tile { width: 32px; height: 32px; border-radius: 9px; box-shadow: none; }
.brand span span { color: var(--amber-text); }

.lang { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; background: var(--surface); }
.lang button {
  appearance: none; border: 0; background: transparent; color: var(--muted);
  font: inherit; font-weight: 700; font-size: 13px; letter-spacing: 0.04em;
  padding: 6px 12px; border-radius: 999px; cursor: pointer; min-width: 44px; min-height: 30px;
}
.lang button[aria-pressed="true"] { background: var(--amber); color: #1C1207; }
.lang button:focus-visible { outline-offset: 1px; }

/* App-icon tile with the beer mug */
.tile {
  display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.28), transparent 42%),
              linear-gradient(160deg, #F7B03A, var(--amber-deep));
  box-shadow: var(--shadow);
}
.tile svg { width: 78%; height: 78%; display: block; }

/* Hero */
.hero { text-align: center; padding: 40px 0 32px; background: radial-gradient(ellipse at top, rgba(245,166,35,0.30), transparent 62%); }
.hero .tile { width: 112px; height: 112px; border-radius: 28px; margin: 0 auto; }
.hero h1 { margin: 22px 0 4px; font-size: clamp(38px, 9vw, 60px); line-height: 1.05; letter-spacing: -0.02em; font-weight: 800; }
.hero h1 span { color: var(--amber-text); }
.tagline { margin: 0 0 12px; font-size: clamp(22px, 5.5vw, 30px); font-weight: 700; color: var(--amber-text); }
.lead { max-width: 560px; margin: 0 auto; color: var(--muted); font-size: 17px; }

/* Cards */
.get { padding: 8px 0 40px; }
.get h2 { text-align: center; font-size: 22px; margin: 0 0 20px; }
.cards { display: grid; gap: 16px; }
@media (min-width: 720px) { .cards { grid-template-columns: 1fr 1fr; align-items: start; } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 22px 20px 20px; box-shadow: 0 1px 2px rgba(28,18,7,0.06);
}
.card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 22px; }
.card h3 svg { width: 26px; height: 26px; flex: none; }
.card .sub { margin: 0 0 16px; color: var(--muted); }
.card ol { margin: 18px 0 0; padding-left: 0; list-style: none; counter-reset: step; }
.card ol li { position: relative; padding-left: 40px; margin: 0 0 12px; counter-increment: step; }
.card ol li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); color: var(--ink); font-weight: 800; font-size: 14px; border: 1px solid var(--border);
}
.card li b, .card p b { font-weight: 700; }
.note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
kbd, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }

/* Buttons */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  min-height: 52px; padding: 12px 18px; border-radius: 14px;
  background: var(--amber); color: #1C1207; font-weight: 800; font-size: 17px; text-decoration: none;
  box-shadow: 0 6px 18px rgba(245,166,35,0.35);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover { color: #1C1207; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(245,166,35,0.45); }
.btn:active { transform: translateY(0); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn[aria-disabled="true"] {
  background: transparent; color: var(--muted); border: 2px dashed var(--border);
  box-shadow: none; cursor: not-allowed; transform: none;
}
.btn .pill { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }

/* QR block */
.qr { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 14px; }
.qr summary { cursor: pointer; font-weight: 700; color: var(--amber-text); list-style: none; display: flex; align-items: center; gap: 8px; }
.qr summary::-webkit-details-marker { display: none; }
.qr summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform 0.15s; margin-left: 2px; }
.qr[open] summary::before { transform: rotate(45deg); }
.qr-box { margin: 14px auto 0; width: min(100%, 240px); background: #fff; border-radius: 16px; padding: 12px; border: 1px solid var(--border); }
.qr-box svg { display: block; width: 100%; height: auto; }
.qr .hint { text-align: center; font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.qr .hint a { word-break: break-all; }

/* Footer */
footer { margin-top: auto; padding: 24px 0 36px; text-align: center; color: var(--muted); font-size: 14px; border-top: 1px solid var(--border); }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; margin-bottom: 8px; }
footer a { color: inherit; }
footer a:hover { color: var(--amber-text); }

/* Privacy article */
.article { max-width: 680px; margin: 0 auto; padding: 24px 16px 48px; }
.article h1 { font-size: clamp(28px, 6vw, 36px); margin: 8px 0 4px; letter-spacing: -0.01em; }
.article h1 span { color: var(--amber-text); }
.article h2 { font-size: 20px; margin-top: 32px; }
.article .meta { color: var(--muted); margin-top: 0; }
.article .back { display: inline-block; margin-bottom: 8px; }
.callout, .todo { background: rgba(245,166,35,0.16); border-left: 3px solid var(--amber); padding: 8px 12px; border-radius: 0 8px 8px 0; }
.callout { margin: 0 0 20px; }

@media (prefers-reduced-motion: reduce) { .btn, .qr summary::before { transition: none; } }
