/* Prettier: printWidth 80 */
/* Brandfarben */
:root {
  --brand-primary: #00305e; /* HKS 41K / Pantone 648C */
  --brand-accent: #fabb00; /* HKS 5K / Pantone 7408C */
  --contrast-1: #9e1981;
  --contrast-2: #009a93;
  --grey: #9d9d9d;
  --success: #1fa138;
  --warning: #ee7203;
  --info: #009ad1;

  --text: #111;
  --muted: #4a5568;
  --bg: #f5f8fb;
  --card: #ffffff;
  --border: #e2e8f0;

  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;

  --shadow-sm: 0 4px 12px rgba(0, 48, 94, 0.08);
  --shadow-md: 0 8px 18px rgba(0, 48, 94, 0.1);

  /* Typografie (mobil-first) */
  --fs-base: 16px;
  --fs-meta: 14px;
  --fs-h1: 24px;
  --fs-h2: 20px;
}

@media (min-width: 400px) {
  :root {
    --fs-base: 17px;
    --fs-h1: 26px;
    --fs-h2: 22px;
  }
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Arial,
    sans-serif;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  letter-spacing: 0.1px;
  font-size: var(--fs-base);

  opacity: 0;
  transition: opacity 200ms ease;
}

body.ready {
  opacity: 1;
}

/* Seiten-Container */
.page {
  width: calc(100% - 24px);
  max-width: 820px;
  margin: 12px auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 14px 22px;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 640px) {
  .page {
    width: calc(100% - 40px);
    margin: 20px auto;
    padding: 24px 20px 28px;
    box-shadow: var(--shadow-md);
  }
}

/* Typografie */
h1,
h2 {
  margin: 0 0 8px 0;
  color: var(--brand-primary);
  line-height: 1.25;
  letter-spacing: 0.2px;
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

p.meta {
  color: var(--muted);
  font-size: var(--fs-meta);
  margin: 6px 0 12px;
}

.lead,
.hero-sub {
  color: #2d3748;
  margin: 8px 0 16px;
  font-size: 15.5px;
}

/* Buttons */
button,
a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 16px;
  font-size: 16px;
  background: var(--brand-primary);
  color: #fff;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 100ms ease, box-shadow 120ms ease,
    background-color 120ms ease, opacity 100ms ease;
  will-change: transform;
}

a.button.accent,
button.accent {
  background: var(--brand-accent);
  color: #1a1a1a;
}

button:disabled,
a.button.disabled {
  background: #8aa4bd;
  cursor: default;
  pointer-events: none;
  opacity: 0.9;
}

a.button.muted {
  background: var(--grey);
  color: #fff;
}

a.button.ghost,
button.ghost {
  background: transparent;
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary);
}

a.button:hover:not(.disabled),
button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 48, 94, 0.16);
}

a.button:active,
button:active {
  transform: translateY(0);
  box-shadow: none;
  filter: brightness(0.98);
}

.button.small {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 15px;
  border-radius: 10px;
}

.button.success {
  background: #0aa04f;
}

.button.warn {
  background: var(--warning);
}

.button.done {
  background: #e6ffed;
  color: #1a7f37;
}

/* Fokussichtbarkeit */
a.button:focus-visible,
button:focus-visible,
.showcard:focus-visible {
  outline: 3px solid rgba(250, 187, 0, 0.6);
  outline-offset: 2px;
  border-radius: 14px;
}

/* Hero (generisch) */
.hero {
  background: linear-gradient(135deg, #f7fafc, #eef5fb);
  background-image: radial-gradient(
      900px 450px at 80% -10%,
      rgba(0, 48, 94, 0.08),
      transparent 60%
    ),
    radial-gradient(
      700px 350px at -10% 20%,
      rgba(0, 154, 209, 0.08),
      transparent 60%
    );
}

/* Landing/Hero – dezent lebendig */
.hero-landing {
  position: relative;
  padding: 18px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(
      1000px 500px at 90% -10%,
      rgba(0, 48, 94, 0.08),
      transparent 60%
    ),
    radial-gradient(
      800px 400px at -10% 20%,
      rgba(0, 154, 209, 0.08),
      transparent 60%
    ),
    linear-gradient(135deg, #f7fafc, #eef5fb);
}

.hero-lean {
  padding-bottom: 10px;
}

.hero-landing h1 {
  font-size: 26px;
  line-height: 1.2;
  margin: 6px 0 6px;
  color: var(--brand-primary);
}

@media (max-width: 360px) {
  .hero-landing h1 {
    font-size: 26px;
    line-height: 1.18;
  }
}

.hero-sub {
  margin-bottom: 12px;
}

.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 6px;
}

/* Showcase mini-cards (nicht tappable) */
.hero-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 820px;
  margin: 12px auto 2px;
}

.showcard {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 8px;
  text-align: center;
  transition: transform 100ms ease, box-shadow 120ms ease;
  box-shadow: 0 2px 8px rgba(0, 48, 94, 0.06);
}

.showcard:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.showcard .icon {
  font-size: 22px;
}
.showcard .title {
  font-weight: 700;
  color: var(--brand-primary);
  margin-top: 4px;
  font-size: 13.5px;
}

/* Wellen-Deko */
.hero-waves {
  position: absolute;
  inset: auto 0 0 0;
  height: 80px;
  pointer-events: none;
}

.wave {
  position: absolute;
  width: 140%;
  left: -20%;
  height: 48px;
  background: radial-gradient(
    120% 120% at 50% 0%,
    rgba(0, 48, 94, 0.05),
    transparent 60%
  );
  filter: blur(7px);
  border-radius: 50%;
}

.wave1 {
  bottom: 20px;
  animation: waveMove 8s ease-in-out infinite;
}
.wave2 {
  display: none;
}

@keyframes waveMove {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* Steps (optional genutzt) */
.steps {
  list-style: none;
  padding: 0;
  margin: 10px 0 18px;
  color: var(--muted);
}

.steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(0, 48, 94, 0.08);
  color: var(--brand-primary);
  border: 1px solid rgba(0, 48, 94, 0.2);
  font-weight: 600;
}

.badge.num {
  min-width: 22px;
  text-align: center;
}

/* Scale (Stress-Auswahl) */
.scale {
  display: grid;
  gap: 10px;
  margin: 16px 0 8px;
  grid-template-columns: repeat(3, 1fr);
}

@media (min-width: 430px) {
  .scale {
    grid-template-columns: repeat(5, 1fr);
  }
}

.scale button,
.scale .scale-btn {
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 18px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 16px;
  transition: transform 90ms ease, box-shadow 120ms ease,
    border-color 120ms ease, background-color 120ms ease;
}

.scale button .face,
.scale .scale-btn .face {
  font-size: 30px;
  line-height: 1;
}

.scale button .lbl,
.scale .scale-btn .lbl {
  font-size: 13px;
  color: var(--muted);
}

.scale button:hover,
.scale .scale-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
}

.scale button.active,
.scale .scale-btn.active,
.scale button[aria-checked="true"],
.scale .scale-btn[aria-checked="true"] {
  border-color: var(--brand-accent);
  background: linear-gradient(
      0deg,
      rgba(250, 187, 0, 0.14),
      rgba(250, 187, 0, 0.14)
    ),
    #fff;
}

/* Offers (Karten) */
.offers {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}

.offer {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff;
  transition: border-color 120ms, box-shadow 120ms, transform 90ms;
}

.offer:hover {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.offer .icon {
  font-size: 22px;
}

.offer .title {
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 2px;
  font-size: 16.5px;
}

.offer .desc {
  font-size: 14px;
  color: var(--muted);
}

.offer .content {
  flex: 1;
}

/* Footer CTA: sticky, mit Safe-Area */
.footer-cta {
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 48%);
  padding-top: 10px;
  margin-top: 10px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}

/* Sektionen und Trennlinien */
.section {
  background: #fff;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.hr {
  height: 1px;
  background: var(--border);
  margin: 14px 0;
}

/* Hinweise / Alerts */
.error {
  color: #b00020;
  margin-top: 10px;
  font-size: 14px;
}

.success {
  color: #0a7f4f;
  margin-top: 10px;
  font-size: 14px;
}

/* Utilities */
.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}