:root {
  --ink: #1b1b1b;
  --muted: #5e5a57;
  --brand: #ed6c10;
  --brand-dark: #b8530d;
  --paper: #fff7f0;
  --card: #ffffff;
  --shadow: 0 18px 40px rgba(27, 27, 27, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
  line-height: 1.6;
}

body.page-landing,
body.page-impressum {
  background:
    radial-gradient(800px 400px at 10% -10%, rgba(237, 108, 16, 0.18), transparent 55%),
    radial-gradient(600px 280px at 90% 0%, rgba(27, 27, 27, 0.06), transparent 60%),
    var(--paper);
}

body.page-root {
  --shadow: 0 20px 42px rgba(27, 27, 27, 0.14);
  background:
    radial-gradient(800px 420px at 12% -12%, rgba(237, 108, 16, 0.2), transparent 55%),
    radial-gradient(520px 260px at 86% 0%, rgba(27, 27, 27, 0.08), transparent 60%),
    var(--paper);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

body.page-impressum {
  --shadow: 0 18px 36px rgba(27, 27, 27, 0.12);
  background:
    radial-gradient(800px 400px at 10% -10%, rgba(237, 108, 16, 0.16), transparent 55%),
    radial-gradient(600px 280px at 90% 0%, rgba(27, 27, 27, 0.06), transparent 60%),
    var(--paper);
}

h1,
h2,
h3 {
  font-family: "Bodoni MT", "Didot", "Palatino Linotype", serif;
  letter-spacing: 0.2px;
  margin: 0 0 12px;
}

p { margin: 0 0 12px; }

body.page-root h1 {
  margin: 0 0 10px;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

body.page-impressum .container {
  max-width: 900px;
}

.site-header {
  background: var(--card);
  box-shadow: 0 12px 24px rgba(27, 27, 27, 0.08);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.1rem;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
}

.nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

.lang-switch {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(237, 108, 16, 0.4);
  color: var(--brand-dark);
  background: rgba(237, 108, 16, 0.08);
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(27, 27, 27, 0.18);
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  margin: 4px 0;
}

.page-root .shell {
  width: min(960px, 100%);
}

.page-root .hero,
.page-landing .hero {
  background: var(--card);
  border-radius: 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  animation: rise 520ms ease-out;
}

.page-root .hero {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(27, 27, 27, 0.06);
}

.page-landing .hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  align-items: center;
  padding: 24px;
}

.page-root .hero::after,
.page-landing .hero::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -70px;
  background: radial-gradient(circle, rgba(237, 108, 16, 0.22), transparent 70%);
  border-radius: 999px;
}

.page-root .hero::after {
  top: -70px;
}

.page-landing .hero::after {
  bottom: -70px;
}

.page-root .hero-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(27, 27, 27, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-landing .hero-icon {
  margin-bottom: 12px;
}

.hero-icon img {
  width: 72px;
  height: 72px;
}

.page-landing .hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
}

.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.page-root .cta {
  margin: 18px 0 8px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid rgba(27, 27, 27, 0.1);
  box-shadow: 0 10px 20px rgba(27, 27, 27, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.store:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(27, 27, 27, 0.12);
}

.store img {
  height: 38px;
}

.store.disabled {
  pointer-events: none;
  opacity: 0.55;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(237, 108, 16, 0.12);
  color: var(--brand-dark);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.page-landing .section {
  margin-top: 36px;
  display: grid;
  gap: 20px;
}

.page-landing .cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.page-landing .card {
  background: var(--card);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(27, 27, 27, 0.08);
  border: 1px solid rgba(27, 27, 27, 0.05);
}

.page-landing .card h3 {
  margin-bottom: 6px;
}

.page-landing .heatmap {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 6px;
  padding: 16px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(27, 27, 27, 0.06);
}

.page-landing .heatmap span {
  padding-top: 100%;
  border-radius: 4px;
  background: rgba(237, 108, 16, 0.15);
}

.page-landing .heatmap span:nth-child(3n) { background: rgba(237, 108, 16, 0.35); }
.page-landing .heatmap span:nth-child(5n) { background: rgba(237, 108, 16, 0.55); }

.page-root .language {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.page-root .lang-button {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(237, 108, 16, 0.4);
  background: rgba(237, 108, 16, 0.1);
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.3px;
}

.page-root .lang-button.secondary {
  background: #fff;
  color: var(--ink);
  border-color: rgba(27, 27, 27, 0.12);
}

.page-root .redirect-note {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 8px;
}

.page-impressum .card {
  background: var(--card);
  padding: 24px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(27, 27, 27, 0.06);
}

.muted { color: var(--muted); }

.link {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.page-landing footer {
  margin-top: 40px;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-impressum footer {
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-landing .site-footer {
  background: var(--card);
  border-top: 1px solid rgba(27, 27, 27, 0.08);
  margin-top: 48px;
}

.page-landing .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.page-landing .footer-links {
  display: grid;
  gap: 8px;
}

.page-landing .footer-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

.page-landing .footer-column h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.page-landing .footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px 28px;
  border-top: 1px solid rgba(27, 27, 27, 0.08);
  color: var(--muted);
  font-size: 0.9rem;
}

@keyframes rise {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 640px) {
  .page-landing .hero { padding: 20px; }
  .page-landing .hero-icon,
  .page-root .hero-icon {
    width: 84px;
    height: 84px;
    border-radius: 20px;
  }

  .page-landing .hero-icon img,
  .page-root .hero-icon img {
    width: 60px;
    height: 60px;
  }

  .page-root .hero-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .nav {
    position: absolute;
    right: 20px;
    top: 64px;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid rgba(27, 27, 27, 0.08);
    box-shadow: var(--shadow);
    display: none;
    z-index: 10;
  }

  .site-header.open .nav {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-root .hero,
  .page-landing .hero {
    animation: none;
  }

  .store { transition: none; }
}
