/* Vier Bure – shared styles for all pages. Tokens follow the app's design guide. */

:root {
  --bg: #f2f2f7;
  --surface: #ffffff;
  --text: #1c1c1e;
  --text-secondary: #636366;
  --hairline: rgb(0 0 0 / 0.08);
  --accent: #0066cc;
  --icon-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 8px 24px rgb(0 0 0 / 0.10), 0 24px 56px rgb(0 0 0 / 0.08);
  --glow-opacity: 0.35;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --text: #f2f2f7;
    --text-secondary: #98989d;
    --hairline: rgb(255 255 255 / 0.12);
    --accent: #0a84ff;
    --icon-shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 12px 40px rgb(0 0 0 / 0.6);
    --glow-opacity: 0.45;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* App icon: iOS-style corner, hairline, soft shadow and a blurred glow of the icon itself. */

.app-icon {
  --size: clamp(120px, 34vw, 168px);
  position: relative;
  width: var(--size);
  height: var(--size);
}

/* Glow in the icon's own colours: red vest, blue hat, gold trim. */
.app-icon::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: -1;
  background:
    radial-gradient(circle at 30% 35%, rgb(213 43 30 / 0.55), transparent 55%),
    radial-gradient(circle at 72% 45%, rgb(47 79 143 / 0.55), transparent 55%),
    radial-gradient(circle at 50% 78%, rgb(242 178 51 / 0.45), transparent 55%);
  filter: blur(32px);
  opacity: var(--glow-opacity);
}

.app-icon img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 22.5%;
  box-shadow: 0 0 0 0.5px var(--hairline), var(--icon-shadow);
}

/* Start page: one screen, everything centred. */

.home {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: env(safe-area-inset-top) 16px env(safe-area-inset-bottom);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 48px 24px;
  isolation: isolate;
}

.hero h1 {
  margin: 36px 0 0;
  font-size: clamp(2.25rem, 8vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 12px 0 0;
  font-size: clamp(1.0625rem, 4.4vw, 1.25rem);
  color: var(--text-secondary);
}

.store-badge {
  display: inline-block;
  margin-top: 36px;
  border-radius: 10px;
  transition: transform 160ms ease;
}

.store-badge:hover {
  transform: translateY(-1px);
}

.store-badge img {
  display: block;
  width: auto;
  height: 54px;
}

.site-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0 28px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Legal pages: one calm reading column. */

.legal {
  max-width: calc(640px + 2 * 16px);
  margin: 0 auto;
  padding: env(safe-area-inset-top) 16px env(safe-area-inset-bottom);
  line-height: 1.6;
}

.legal-header {
  padding-top: 40px;
}

.app-icon--small {
  --size: 48px;
  display: block;
}

.app-icon--small::before {
  content: none;
}

.app-icon--small img {
  box-shadow: 0 0 0 0.5px var(--hairline), 0 2px 8px rgb(0 0 0 / 0.12);
}

.legal h1 {
  margin: 20px 0 0;
  font-size: clamp(2rem, 7vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 6px 0 0;
  color: var(--text-secondary);
}

.legal main {
  padding-top: 28px;
}

.legal section + section {
  margin-top: 32px;
}

.legal h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 650;
  line-height: 1.3;
}

.legal p,
.legal ul {
  margin: 0 0 12px;
}

.legal ul {
  padding-left: 1.25em;
}

.lead {
  font-size: 1.1875rem;
  line-height: 1.5;
}

.legal .lead {
  margin-bottom: 20px;
}

.stand {
  margin-top: 32px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* «Kurz gesagt»: the answer most readers came for, as a card with one icon per point. */

.summary {
  padding: 20px 22px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 0 0 0.5px var(--hairline);
}

.summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.summary li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.summary li + li {
  margin-top: 14px;
}

.summary svg {
  flex: none;
  width: 34px;
  height: 34px;
  padding: 6px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.summary li span {
  padding-top: 3px;
}

/* Entrance: icon, title, tagline and badge rise in one after the other. */

@media (prefers-reduced-motion: no-preference) {
  .hero > * {
    animation: rise 600ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .hero > :nth-child(2) { animation-delay: 80ms; }
  .hero > :nth-child(3) { animation-delay: 160ms; }
  .hero > :nth-child(4) { animation-delay: 240ms; }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
