/* Firmenseite der Ginvest GmbH.
   Farben und Wortmarke nach Brand-Guide, Maßstäbe und Rhythmus an Tailwind angelehnt.

   Schrift: bewusst keine eingebettete Webfont-Datei. Die Hausschrift Questa Grande ist
   lizenzpflichtig und eine Desktop-Lizenz deckt die Webeinbindung nicht ab. Stattdessen
   greift --font-brand auf mitgelieferte Systemschriften derselben Didone-Klasse zurück:
   Didot auf Apple-Geräten, Bodoni 72 als Zweitwahl, Georgia bzw. Times New Roman auf
   Windows und Android. Kein Ladevorgang, kein Lizenzrisiko, kein externer Aufruf. */

:root {
  /* Brand-Guide */
  --lavendar-dark: #615e80;   /* Primary Dark Lavendar */
  --lavendar-soft: #c7bce5;   /* Soft Lavendar         */
  --grey: #a6a6a6;            /* Secondary Grey        */
  --silver: #e6e6e6;          /* Muted Silver          */
  --navy: #1c2e4a;            /* Rich Navy             */
  --taupe: #a69888;           /* Warm Taupe            */

  /* Abgeleitete Rollen */
  --bg: #ffffff;
  --bg-subtle: #f7f6fa;
  --fg: var(--navy);
  --fg-muted: var(--lavendar-dark);
  --fg-faint: var(--grey);
  --border: var(--silver);
  --accent: var(--lavendar-dark);

  --font-brand: Didot, "Bodoni 72", Georgia, "Times New Roman", serif;
  --font-ui: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
             "Helvetica Neue", Arial, sans-serif;

  color-scheme: light;   /* Firmenseite bleibt bewusst hell */
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: 42rem; margin: 0 auto; padding: 0 1.5rem; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--fg-faint); }

/* ---------- Wortmarke ---------- */
.wordmark {
  font-family: var(--font-brand);
  font-size: 1.375rem;
  letter-spacing: .02em;
  line-height: 1;
  color: var(--grey);
  white-space: nowrap;
}
.wordmark .g { color: var(--lavendar-dark); }
.wordmark .gmbh { font-size: .72em; letter-spacing: .01em; }

/* ---------- Startseite: hell wie die übrigen Seiten ---------- */
body.start { min-height: 100dvh; display: flex; flex-direction: column; }
body.start .brandbar { padding: 2.25rem 1.5rem 0; text-align: center; }
body.start .wordmark { font-size: 1.5rem; }

body.start main {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1rem;
  padding: 3rem 1.5rem;
}
a.applink {
  display: block;
  width: 112px; height: 112px;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05),
              0 12px 28px -8px rgba(28, 46, 74, .22),
              0 0 0 1px rgba(28, 46, 74, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}
a.applink img { width: 100%; height: 100%; display: block; }
a.applink:hover, a.applink:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05),
              0 20px 40px -10px rgba(28, 46, 74, .3),
              0 0 0 1px rgba(28, 46, 74, .1);
}
a.applink:focus-visible { outline: 2px solid var(--lavendar-dark); outline-offset: 6px; }
@media (prefers-reduced-motion: reduce) { a.applink { transition: none; } }

body.start .name {
  font-size: .9375rem; font-weight: 600; letter-spacing: -.01em;
  color: var(--fg); text-decoration: none;
}
body.start .name:hover { text-decoration: underline; }
body.start .tag { font-size: .8125rem; color: var(--fg-faint); }
body.start .stores {
  display: flex; flex-wrap: wrap; gap: .85rem;
  align-items: center; justify-content: center; margin-top: .25rem;
}
/* Siehe tischduell.css: Googles Badge bringt seinen Schutzraum mit, Apples nicht. */
body.start a.badge { display: inline-flex; border-radius: .4rem; }
body.start a.badge img { display: block; width: auto; }
body.start a.badge.apple img { height: 3rem; }
body.start a.badge.play img { height: 3.9rem; }
body.start a.badge:focus-visible { outline: 2px solid var(--lavendar-dark); outline-offset: 2px; }
body.start footer { margin-top: 0; }

/* ---------- Rechtstexte ---------- */
.page header { padding: 3rem 0 0; }
.page h1 {
  font-family: var(--font-brand);
  font-size: 2rem; line-height: 1.2; font-weight: 500; letter-spacing: .005em;
}
.page .subtitle { margin-top: .5rem; font-size: .9375rem; color: var(--fg-muted); }

.page section { padding: 2.5rem 0 0; }
.page h2 {
  font-family: var(--font-brand);
  font-size: 1.375rem; font-weight: 500; letter-spacing: .005em;
  padding-top: 2rem; margin-top: 1.5rem; border-top: 1px solid var(--border);
}
.page section:first-of-type h2 { border-top: none; padding-top: 0; margin-top: 0; }
.page h3 {
  font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  color: var(--fg-faint); margin-top: 1.75rem;
}
.page p, .page address {
  margin-top: .875rem; font-size: .9375rem; color: var(--fg-muted); font-style: normal;
}
.page strong { color: var(--fg); font-weight: 600; }

.page dl {
  margin-top: 1.25rem; display: grid; gap: .75rem 1.25rem;
  grid-template-columns: minmax(9rem, auto) 1fr; font-size: .9375rem;
}
.page dt { color: var(--fg-faint); }
.page dd { color: var(--fg-muted); }
@media (max-width: 30rem) {
  .page dl { grid-template-columns: 1fr; gap: .25rem; }
  .page dd { margin-bottom: .5rem; }
}

.page address.card {
  background: var(--bg-subtle); border: 1px solid var(--border);
  border-radius: .75rem; padding: 1rem 1.125rem; color: var(--fg);
}

.updated { margin-top: 2rem; font-size: .8125rem; color: var(--fg-faint); }

/* ---------- Kopfzeile der Unterseiten ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: 1.5rem;
}
.topbar .wordmark { font-size: 1.125rem; text-decoration: none; }
.topbar a.langswitch {
  font-size: .8125rem; font-weight: 500; color: var(--fg-muted); text-decoration: none;
  border: 1px solid var(--border); border-radius: .5rem; padding: .3rem .6rem;
  white-space: nowrap;
}
.topbar a.langswitch:hover { color: var(--fg); border-color: var(--fg-faint); }

footer {
  margin-top: 4rem; padding: 1.75rem 0 3rem;
  border-top: 1px solid var(--border);
  font-size: .8125rem; color: var(--fg-faint); text-align: center;
}
footer nav { margin-bottom: .5rem; display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center; }
footer nav a { color: var(--fg-faint); text-decoration: none; font-weight: 500; }
footer nav a:hover { color: var(--fg); text-decoration: underline; }
footer nav a.start { color: var(--lavendar-dark); }
footer nav a.start:hover { color: var(--lavendar-dark); text-decoration: underline; }

/* ---------- Rechtstexte: Listen und Widerspruchsblock ---------- */
.page ul {
  margin: .875rem 0 0 1.25rem; font-size: .9375rem; color: var(--fg-muted);
}
.page li { margin-top: .3rem; }
.page p.shout {
  margin-top: 1.5rem; padding: 1rem 1.125rem;
  background: var(--bg-subtle); border: 1px solid var(--border); border-radius: .75rem;
  font-size: .8125rem; line-height: 1.55; letter-spacing: .01em; color: var(--fg);
}
