/* ==================================================================
   Gemeinsames Stylesheet fuer alle Seiten (home, apps, impressum,
   datenschutzerklaerung). Ein Design, eine Navigation.
   ================================================================== */

:root {
  --ink: #f3efeb;
  --muted: #a89d97;
  --line: #352f2d;
  --bg: #121010;
  --bg-alt: #1b1817;
  --accent: #caa46a;
  --accent-dark: #e0bb83;
  --accent-contrast: #16130f;
  --radius: 12px;
  --wrap: 1120px;
  --prose: 680px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: none; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
}

img { max-width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

h1, h2, h3 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px;
}
h1 { font-size: 34px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; margin-top: 28px; }

p { margin: 0 0 16px; }
.muted { color: var(--muted); }

.wrap { margin: 0 auto; max-width: var(--wrap); padding: 0 24px; }

/* Sprachsteuerung: es wird immer nur eine Sprache angezeigt */
body.lang-de .lang-en { display: none; }
body.lang-en .lang-de { display: none; }

/* ------------------------------------------------------------------
   Kopfbereich / Navigation
   ------------------------------------------------------------------ */
.site-header {
  background: rgba(18, 16, 16, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  min-height: 64px;
  position: relative;
}
.wordmark {
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}
.wordmark:hover { color: var(--accent); text-decoration: none; }

.hamburger {
  background: none;
  border: 0;
  cursor: pointer;
  display: none;
  height: 40px;
  padding: 8px;
  width: 40px;
}
.hamburger span {
  background: var(--ink);
  border-radius: 2px;
  display: block;
  height: 2px;
  margin: 7px 0;
  transition: transform .2s ease, opacity .2s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.nav-panel {
  align-items: center;
  display: flex;
  gap: 24px;
}
.nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 2px;
  text-decoration: none;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }

.langswitch { display: flex; gap: 4px; }
.langswitch button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1;
  padding: 6px 11px;
}
.langswitch button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}

@media (max-width: 760px) {
  .hamburger { display: block; }
  .nav-panel {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    left: 0;
    padding: 16px 24px 20px;
    position: absolute;
    right: 0;
    top: 100%;
  }
  .nav-panel.open { display: flex; }
  .nav { flex-direction: column; gap: 10px; }
  .langswitch { justify-content: flex-start; }
}

/* ------------------------------------------------------------------
   Hero (nur Startseite)
   ------------------------------------------------------------------ */
.hero { position: relative; }
.hero-media {
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
  max-height: 520px;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.hero-media img {
  display: block; height: 100%; object-fit: cover; width: 100%;
}
.hero-media::after {
  background: linear-gradient(180deg, rgba(20, 16, 15, 0.05) 0%, rgba(20, 16, 15, 0.55) 100%);
  bottom: 0; content: ""; left: 0; position: absolute; right: 0; top: 0;
}
.hero .wrap {
  bottom: 36px; left: 50%; position: absolute; transform: translateX(-50%); width: 100%;
}
.hero .eyebrow { color: rgba(255, 255, 255, 0.8); }
.hero h1 { color: #fff; font-size: clamp(26px, 4.5vw, 42px); max-width: 720px; }
.hero p:not(.eyebrow) { color: rgba(255, 255, 255, 0.92); max-width: 560px; }
.hero-credit {
  bottom: 10px; color: rgba(255, 255, 255, 0.7); font-size: 11px; position: absolute; right: 16px;
}
.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  margin: 0 0 8px;
  text-transform: uppercase;
}
.btnrow { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.btn {
  border-radius: 999px;
  cursor: pointer;
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  text-decoration: none;
}
.btn-primary { background: var(--accent); border: 1px solid var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--accent-contrast); text-decoration: none; }
.btn-ghost { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.75); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.2); color: #fff; text-decoration: none; }
/* Ghost-Button ausserhalb des Hero (dunkler Seitenhintergrund) */
.section .btn-ghost, .site-footer .btn-ghost {
  background: transparent; border-color: var(--accent); color: var(--accent);
}
.section .btn-ghost:hover { background: var(--accent); color: var(--accent-contrast); }

/* ------------------------------------------------------------------
   Inhaltsabschnitte
   ------------------------------------------------------------------ */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin: 0 0 32px; max-width: var(--prose); }
.section-head p:last-child { margin-bottom: 0; }

.prose { margin: 0 auto; max-width: var(--prose); }
.prose h2, .prose h3 { margin-top: 36px; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul { margin: 0 0 16px; padding-left: 20px; }
.prose li { margin-bottom: 6px; }

.page-head { padding: 44px 0 8px; }
.page-head h1 { margin-bottom: 8px; }

/* ------------------------------------------------------------------
   Kachel-Raster (App-Uebersicht auf der Startseite)
   ------------------------------------------------------------------ */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.tile {
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  display: flex;
  gap: 14px;
  padding: 16px;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.tile:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  color: var(--ink);
  text-decoration: none;
  transform: translateY(-1px);
}
.tile img {
  border-radius: 11px;
  flex: none;
  height: 52px;
  width: 52px;
}
.t-name { display: block; font-weight: 700; }
.t-sub { color: var(--muted); font-size: 13px; line-height: 1.4; }

/* ------------------------------------------------------------------
   Apps-Seite: Inhaltsverzeichnis, App-Bloecke, Fakten-Tabelle
   ------------------------------------------------------------------ */
#index {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  margin: 0 0 32px; padding: 20px 24px 8px;
}
#index h3 { margin-top: 0; }
#index ul { margin: 0 0 12px; padding-left: 20px; }
#index li { margin-bottom: 6px; }
#index .kategorie { border: 0; font-size: 14px; margin: 14px 0 4px; padding: 0; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
#index .kategorie:first-of-type { margin-top: 0; }

.kategorie {
  border-top: 2px solid var(--accent);
  font-size: 22px; font-weight: 700; margin: 48px 0 0; padding-top: 22px;
}
.kategorie + .app { border-top: 0; margin-top: 8px; padding-top: 8px; }

.app { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 24px; scroll-margin-top: 88px; }
.app h2 { align-items: center; display: flex; gap: 12px; }
.app ul { margin: 0 0 16px; padding-left: 20px; }
.app li { margin-bottom: 6px; }

.icon { border-radius: 11px; height: 44px; width: 44px; }
.badge { border: 0; height: 40px; vertical-align: middle; }

.meta { color: var(--muted); font-size: 13px; margin: -8px 0 16px; }

table.fakten { border-collapse: collapse; margin: 0 0 16px; width: 100%; }
table.fakten th, table.fakten td {
  border-bottom: 1px solid var(--line); font-size: 15px; padding: 7px 8px 7px 0; text-align: left; vertical-align: top;
}
table.fakten th { color: var(--muted); font-weight: 400; white-space: nowrap; width: 38%; }

.links { font-size: 15px; line-height: 2; margin: 0 0 8px; }
.links a { margin-right: 18px; }

.hinweis { color: var(--muted); font-size: 14px; }

.seitenfuss { color: var(--muted); font-size: 13px; margin-top: 8px; }

/* ------------------------------------------------------------------
   Fusszeile
   ------------------------------------------------------------------ */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 32px 0;
}
.site-footer .wrap {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
}
.fname { font-weight: 700; }
.site-footer > .wrap > div:first-child { color: var(--muted); font-size: 14px; }
.fnav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.fnav a { color: var(--muted); font-size: 14px; }
.fnav a:hover { color: var(--ink); }

/* Plattform-Trennung iOS / Android */
.plattform { align-items: center; color: var(--ink); display: flex; font-size: 13px; font-weight: 700; gap: 10px;
  letter-spacing: .06em; margin: 44px 0 0; text-transform: uppercase; }
.plattform .pi { height: 20px; width: 20px; }
.plattform small { color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; }
#index .plattform { font-size: 12px; margin: 30px 0 8px; }
#index .plattform:first-of-type { margin-top: 20px; }
.plattformwahl { margin: 0 0 16px; }
.plattformwahl { display: flex; flex-wrap: wrap; gap: 20px; }
.plattformwahl a { align-items: center; border: 1px solid var(--line); border-radius: 999px; display: inline-flex; font-size: 14px; gap: 9px; padding: 6px 18px 6px 14px; }
.pi { fill: var(--accent); height: 18px; margin-right: 0; width: 18px; }
.pi path { fill: var(--accent); }
.soon { background: var(--paper-2); border: 1px dashed var(--muted); border-radius: 12px; margin-top: 16px; padding: 18px 22px; }
.soon h3 { margin-top: 0; }
.soon p:last-child { margin-bottom: 0; }
.tile-soon { border-style: dashed; opacity: .85; }
.tile-soon .ico { align-items: center; background: var(--paper-3); border-radius: 12px; color: var(--muted); display: flex; flex: 0 0 auto; font-size: 20px; font-weight: 700; height: 46px; justify-content: center; width: 46px; }

#android.plattform { margin-top: 72px; }
