/* Gemeinsames Stylesheet fuer Startseite, Impressum und Datenschutz.
 *
 * Vorher lag das CSS dreimal kopiert in den einzelnen Dateien — eine
 * Farbaenderung musste an drei Stellen nachgezogen werden, und beim Wechsel
 * von Indigo auf Gruen faellt genau so etwas hinten runter.
 *
 * Der Akzent ist exakt das Vermietano-Gruen der App (--brand-600 = #0d9488),
 * damit Seite und Produkt dieselbe Farbe haben. Der Grundton ist ein kuehles
 * Papierweiss mit leichtem Gruenstich — bewusst kein neutrales Grau.
 *
 * Hell und dunkel folgen der Einstellung des Besuchers (Soenke 30.07.:
 * „mitwandern"). */

:root {
  --paper: #f4f8f7;
  --sheet: #ffffff;
  --ink: #121a18;
  --ink-soft: #435049;
  --ink-muted: #77857f;
  --rule: #dde7e4;
  --rule-soft: #e9f0ee;
  --accent: #0d9488;
  --accent-ink: #0b7c72;
  --accent-wash: #e6f2f0;
  --on-accent: #ffffff;
  --fehler: #b3261e;
  --shadow: 0 1px 2px rgba(16, 40, 36, 0.05), 0 12px 40px -18px rgba(16, 40, 36, 0.22);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1211;
    --sheet: #101917;
    --ink: #e9efed;
    --ink-soft: #b3c1bc;
    --ink-muted: #7f8f89;
    --rule: #223029;
    --rule-soft: #1a2522;
    --accent: #39a79d;
    --accent-ink: #6ec4ba;
    --accent-wash: #132724;
    --on-accent: #04211e;
    --fehler: #f2b8b5;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 50px -22px rgba(0, 0, 0, 0.8);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(78% 46% at 50% -8%, var(--accent-wash), transparent 72%),
    var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(28px, 6vw, 68px) 18px clamp(40px, 8vw, 84px);
}

/* ---- Wortmarke: Geometrie 1:1 aus Brand.jsx (Variante A2, Kamin rechts) ---- */
.logo {
  position: relative;
  display: inline-block;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1;
  padding-top: 0.62em; /* Platz fuer den Dachueberstand */
  color: var(--ink);
  text-decoration: none;
}
/* Nullbreiter Halter: „Vermietano" bleibt EIN zusammenhaengendes Wort im Text.
   Google prueft bei der OAuth-Verifizierung den Anwendungsnamen auf der
   Startseite — ein durch Markup zerschnittener Name fiel dort schon einmal
   durch. Das Dach liegt deshalb absolut darueber, nicht im Textfluss. */
.logo .dach {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
}
.logo .dach svg {
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 1.93em;
  height: 0.61em;
  overflow: visible;
  color: var(--accent);
}
.logo:hover {
  opacity: 0.82;
  transition: opacity 0.15s;
}

h1 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.022em;
  line-height: 1.24;
  text-wrap: balance;
}

a {
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---- Knoepfe ---- */
.btn {
  display: inline-block;
  padding: 11px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease;
}
.btn:hover {
  background: var(--accent-ink);
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn[disabled] {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

footer {
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-soft);
  text-align: center;
  color: var(--ink-muted);
  font-size: 12.5px;
}
footer a {
  color: var(--ink-muted);
  font-weight: 500;
  margin: 0 7px;
}
footer a:hover {
  color: var(--ink-soft);
}

/* ---- Rechtstexte (Impressum, Datenschutz, Bestaetigungsseiten) ---- */
.karte {
  width: 100%;
  max-width: 660px;
  margin-top: 26px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 34px clamp(20px, 5vw, 42px) 38px;
}
.karte h1 {
  font-size: 24px;
  margin-bottom: 4px;
}
.karte .sub {
  margin: 0 0 26px;
  color: var(--ink-muted);
  font-size: 14px;
}
.karte h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent-ink);
  margin: 26px 0 6px;
}
.karte p {
  margin: 0 0 4px;
  color: var(--ink-soft);
  font-size: 15px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
