/* Hamsterliste — Website-Stile
   Minimalistisch, im Geiste von Reeder, Anybox, Hookmark.
   Eine Datei, eingebettet via <link>. */

:root {
  --bg: #ffffff;
  --bg-alt: #f8f8f5;
  --fg: #1a1a1a;
  --fg-muted: #5a5a5a;
  --accent: #D67E2C;            /* Karamell — passt zum App-Hamster-Theme */
  --accent-soft: rgba(214, 126, 44, 0.12);
  --border: rgba(0, 0, 0, 0.08);
  --radius: 14px;
  --maxw: 980px;
  --shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f10;
    --bg-alt: #18181a;
    --fg: #f0f0ef;
    --fg-muted: #9a9a96;
    --accent: #E8A05C;
    --accent-soft: rgba(232, 160, 92, 0.18);
    --border: rgba(255, 255, 255, 0.10);
    --shadow: 0 1px 2px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.3);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Helvetica Neue", "Inter", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
a:hover { border-bottom-color: var(--accent); }

/* ─── Topbar ─────────────────────────────────────────────── */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 600;
  font-size: 18px;
  border: none;
}
.brand img {
  border-radius: 9px;
  box-shadow: var(--shadow);
}

.topbar nav {
  display: flex;
  gap: 24px;
  font-size: 15px;
}
.topbar nav a {
  color: var(--fg-muted);
  border-bottom: none;
}
.topbar nav a:hover,
.topbar nav a.active {
  color: var(--fg);
}

/* ─── Hero ──────────────────────────────────────────────── */

.hero {
  max-width: var(--maxw);
  margin: 60px auto 80px;
  padding: 0 24px;
  text-align: center;
}

.hero img.appicon {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.hero p.tagline {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--fg-muted);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.45;
}

/* App Store Badge — verwendet das offizielle SVG von Apple,
   das du unter https://tools.applemediaservices.com/app-store/ herunterlädst.
   Klare Zonenabstände entsprechend Apple Marketing Guidelines:
   mindestens 1/10 der Badge-Höhe rundum. */
.app-store-badge {
  display: inline-block;
  margin: 0 auto;
  border: none;
}
.app-store-badge img {
  display: block;
  height: 56px;        /* mind. 40px laut Apple — wir nutzen 56px für mehr Tap-Area */
  width: auto;
}

/* ─── TestFlight-Button (Pre-Launch Beta-CTA) ─────────────
   Wird solange verwendet, wie die App noch nicht im App Store live ist.
   Sobald sie's ist, kann diese Klasse aus den HTMLs raus und der
   Original-`.app-store-badge img` wieder rein.
   Farbe: Apples iOS-Blau, das TestFlight-Nutzer visuell wiedererkennen. */
.testflight-btn {
  display: inline-block;
  padding: 16px 30px;
  background: #007AFF;
  color: #fff !important;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  border: none !important;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 122, 255, 0.28);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  line-height: 1.2;
  min-height: 56px;      /* gleiche Höhe wie das originale Apple-Badge */
  box-sizing: border-box;
}
.testflight-btn:hover {
  background: #0060DF;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 122, 255, 0.36);
  color: #fff;
  border: none !important;
}
.testflight-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.28);
}
@media (prefers-color-scheme: dark) {
  .testflight-btn {
    box-shadow: 0 4px 14px rgba(0, 122, 255, 0.45);
  }
}

/* ─── Sections ──────────────────────────────────────────── */

section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px 24px;
}

section.alt {
  background: var(--bg-alt);
  max-width: none;
  padding-left: 24px;
  padding-right: 24px;
}
section.alt > .inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.section-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  font-weight: 600;
  margin: 0 0 12px;
}

.section-heading {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 0 0 24px;
  max-width: 700px;
}

/* ─── Feature-Grid ──────────────────────────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.feature {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
}
section.alt .feature {
  background: var(--bg);
}

.feature .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 20px;
  margin-bottom: 14px;
}

.feature h3 {
  font-size: 18px;
  margin: 0 0 8px;
  font-weight: 600;
}

.feature p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.5;
}

/* ─── Screenshots Showcase ──────────────────────────────── */

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  align-items: end;
  margin-top: 56px;
}
.shots img {
  width: 100%;
  max-width: 280px;
  border-radius: 28px;
  box-shadow: var(--shadow);
  margin: 0 auto;
  display: block;
}

/* ─── Privacy-Statement-Box ─────────────────────────────── */

.privacy-card {
  margin-top: 48px;
  padding: 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.privacy-card .big {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 8px;
}
.privacy-card .sub {
  color: var(--fg-muted);
  margin: 0;
  font-size: 16px;
}

/* ─── Footer ────────────────────────────────────────────── */

.footer {
  max-width: var(--maxw);
  margin: 60px auto 40px;
  padding: 24px;
  text-align: center;
  color: var(--fg-muted);
  font-size: 14px;
  border-top: 1px solid var(--border);
}
.footer a {
  color: var(--fg-muted);
  margin: 0 8px;
}
.footer a:hover { color: var(--fg); }

/* ─── Prose-Seiten (Datenschutz, Support) ──────────────── */

.prose {
  max-width: 720px;
  margin: 40px auto 80px;
  padding: 0 24px;
}
.prose h1 {
  font-size: clamp(32px, 5vw, 44px);
  letter-spacing: -0.015em;
  margin: 0 0 20px;
}
.prose h2 {
  font-size: 22px;
  margin: 40px 0 12px;
  font-weight: 600;
}
.prose p, .prose ul, .prose ol {
  color: var(--fg);
  line-height: 1.6;
  font-size: 16px;
}
.prose .lede {
  font-size: 19px;
  color: var(--fg-muted);
  line-height: 1.5;
  margin-bottom: 32px;
}
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose code {
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 14px;
}

/* ─── Bilinguale Datenschutz-Seite — Sprachumschalter ──── */

.lang-switch {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.lang-switch a {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  border: 1px solid transparent;
}
.lang-switch a:hover {
  color: var(--fg);
  background: var(--bg-alt);
}
.lang-switch a.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.lang-jump {
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 14px;
  color: var(--fg-muted);
}

/* Trennlinie zwischen DE- und EN-Artikel */
article#english {
  border-top: 8px solid var(--accent-soft);
  padding-top: 60px;
  margin-top: 0;
}

/* ─── Sprach-Dropdown im Header ─────────────────────────── */
/* Nutzt das native <details>-Element. Kein JavaScript nötig.
   Schließt automatisch beim Klick außerhalb (browser-native). */

.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-dropdown summary {
  list-style: none;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-alt);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lang-dropdown summary::-webkit-details-marker { display: none; }
.lang-dropdown summary::after {
  content: "▾";
  font-size: 10px;
  opacity: 0.6;
}
.lang-dropdown summary:hover {
  color: var(--fg);
}
.lang-dropdown[open] summary {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-soft);
}

.lang-dropdown ul {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  margin: 0;
  padding: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  list-style: none;
  min-width: 200px;
  z-index: 100;
}
.lang-dropdown li { margin: 0; }
.lang-dropdown ul a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--fg);
  border: none;
}
.lang-dropdown ul a:hover {
  background: var(--bg-alt);
}
.lang-dropdown ul a.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

/* ─── FAQ (Support-Seite) ───────────────────────────────── */

.faq details {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 12px;
  background: var(--bg);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  font-size: 22px;
  line-height: 1;
  color: var(--fg-muted);
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin: 12px 0 0;
  color: var(--fg-muted);
}
