/*
 * Oeffentliches Dashboard 7qj.net (SA-009).
 *
 * Eigenes, bewusst zurueckgenommenes Design: die Seite ist das Trust-Signal
 * fuer Kaeufer, kein Meme. Systemfonts, keine externen Ressourcen.
 * Mobile first – das Grundlayout ist die 360-px-Ansicht, Breakpoints erweitern.
 */

:root {
  --bg: #f7f7f6;
  --bg-card: #ffffff;
  --fg: #16181a;
  --muted: #5e6469;
  --line: #e2e3e1;
  --accent: #1f5fd0;
  --accent-fg: #ffffff;
  --alive: #176a3e;
  --alive-bg: #e6f2ea;
  --dead: #7a2e2e;
  --dead-bg: #f3e8e8;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 6px 18px -12px rgba(0, 0, 0, .18);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171a;
    --bg-card: #1e2125;
    --fg: #ecedee;
    --muted: #a0a6ac;
    --line: #2e3237;
    --accent: #7aa7f0;
    --accent-fg: #15171a;
    --alive: #7ed3a3;
    --alive-bg: #1b3327;
    --dead: #e8a9a9;
    --dead-bg: #33201f;
    --shadow: none;
  }
}

* { box-sizing: border-box; }

/*
 * Klassen wie .btn oder .offers setzen display und wuerden das hidden-Attribut
 * sonst ueberstimmen – die Leerzustaende haengen daran.
 */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  /* Lange Produkt- oder Logbuchtexte duerfen das Layout nicht sprengen. */
  overflow-wrap: break-word;
}

.wrap {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1rem;
}

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

/* --- Hero ---------------------------------------------------------------- */

.hero {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-card);
}

.hero__kicker {
  margin: 0 0 .5rem;
  font-size: .8rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__title {
  margin: 0 0 .85rem;
  font-size: 2.25rem;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.hero__lead {
  margin: 0;
  max-width: 34rem;
  font-size: 1.05rem;
  color: var(--fg);
}

/* --- Abschnitte ---------------------------------------------------------- */

.section { padding: 2.25rem 0 0; }
.section:last-of-type { padding-bottom: 2.5rem; }

.section__title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  line-height: 1.3;
  letter-spacing: .01em;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.empty {
  margin: 0;
  padding: 1.25rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

/* --- Status -------------------------------------------------------------- */

.status__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .75rem;
  margin-bottom: 1.25rem;
}

.badge {
  display: inline-block;
  padding: .15rem .6rem;
  border-radius: 999px;
  background: var(--alive-bg);
  color: var(--alive);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .03em;
}

.badge--dead {
  background: var(--dead-bg);
  color: var(--dead);
}

.status__born,
.status__label {
  font-size: .85rem;
  color: var(--muted);
}

.status__label {
  margin: 0 0 .5rem;
  letter-spacing: .02em;
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
}

.countdown__part {
  flex: 1 1 5.5rem;
  min-width: 5rem;
  padding: .6rem .5rem .5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
}

.countdown__num {
  display: block;
  font-size: 1.9rem;
  line-height: 1.1;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

.countdown__unit {
  display: block;
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.countdown--over .countdown__num { color: var(--dead); }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.facts__item { flex: 1 1 9rem; }

.facts dt {
  font-size: .8rem;
  letter-spacing: .03em;
  color: var(--muted);
}

.facts dd {
  margin: .1rem 0 0;
  font-size: 1.2rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* --- Dead-State ---------------------------------------------------------- */

.tomb__line {
  margin: 0 0 .5rem;
  font-size: 1.2rem;
  line-height: 1.45;
  font-weight: 600;
}

.tomb__note {
  margin: 0 0 .25rem;
  color: var(--muted);
  font-size: .9rem;
}

/* --- Angebote ------------------------------------------------------------ */

.offers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.offer {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.offer__name {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.offer__desc {
  margin: 0;
  color: var(--muted);
  white-space: pre-line;
}

.offer__price {
  font-size: 1.35rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .6rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-fg);
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover { opacity: .9; }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--fg);
}

.btn--block { width: 100%; }

.btn--more { margin-top: 1rem; }

.btn[aria-disabled="true"],
.btn:disabled {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
  cursor: default;
  pointer-events: none;
}

/* --- Logbuch ------------------------------------------------------------- */

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.entry__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem .75rem;
  margin-bottom: .85rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--line);
}

.entry__cycle {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.entry__date {
  font-size: .85rem;
  color: var(--muted);
}

.entry__fields {
  margin: 0;
  display: grid;
  gap: .75rem;
}

.entry__fields dt {
  font-size: .75rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}

.entry__fields dd {
  margin: .15rem 0 0;
  white-space: pre-line;
}

/* --- FAQ ----------------------------------------------------------------- */

.faq {
  display: grid;
  gap: .5rem;
}

.faq__item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .25rem 1rem;
}

.faq__item summary {
  padding: .75rem 0;
  font-weight: 600;
  cursor: pointer;
  /* Daumentauglich: der Treffer soll die ganze Zeile sein. */
  min-height: 44px;
  display: flex;
  align-items: center;
}

.faq__item p {
  margin: 0 0 .9rem;
  color: var(--muted);
}

/* --- Footer -------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.5rem;
  font-size: .9rem;
  color: var(--muted);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  margin-bottom: .75rem;
}

.footer__nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer__note { margin: 0; }

/* --- Breakpoints --------------------------------------------------------- */

@media (min-width: 30rem) {
  .hero { padding: 3.5rem 0 3rem; }
  .hero__title { font-size: 2.75rem; }
  .card { padding: 1.5rem; }
  .offer { gap: .65rem; }
  .btn--block { width: auto; align-self: flex-start; }
}

@media (min-width: 48rem) {
  .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding-top: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
