/* ═══════════════════════════════════════════════════════════════════
   Produktseite

   Bewusst eine gewoehnliche, scrollbare Seite - anders als die
   Startseite mit dem Kreis. Wer hier landet, will lesen und Bilder
   sehen, nicht erkunden.

   Farben kommen aus themes.css, damit heller und dunkler Modus
   zusammenpassen.
   ═══════════════════════════════════════════════════════════════════ */

.product-page {
  background: var(--bg-0);
  color: var(--text);
  overflow-y: auto;
  height: auto;
  min-height: 100dvh;
}

/* ── Kopf ─────────────────────────────────────────────────────── */

.p-header {
  position: sticky;
  top: 0;
  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;

  padding: 0.9rem clamp(1rem, 5vw, 4rem);

  background: color-mix(in srgb, var(--bg-0) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--text-box);
}

.p-back {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.p-back:hover { color: var(--text); }

/* ── Knoepfe ──────────────────────────────────────────────────── */

.p-cta {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;

  background: var(--accent-0);
  color: #fff;
  text-decoration: none;
  font-weight: 600;

  transition: filter 0.15s ease, transform 0.15s ease;
}

.p-cta:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.p-cta-big {
  padding: 0.85rem 1.8rem;
  font-size: 1.05rem;
}

.p-secondary {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ── Aufbau ───────────────────────────────────────────────────── */

.p-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 5vw, 2rem) 4rem;
}

.p-hero h1 {
  font-size: clamp(2.4rem, 7vw, 4rem);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.p-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  line-height: 1.65;
  max-width: 60ch;
  color: var(--muted);
  margin: 0 0 2rem;
}

.p-hero-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.p-hint {
  font-size: 0.9rem;
  opacity: 0.7;
}

.p-section {
  margin-top: clamp(3rem, 8vw, 5rem);
}

.p-section h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  margin: 0 0 1.2rem;
}

.p-text {
  line-height: 1.7;
  max-width: 65ch;
  color: var(--muted);
  margin: 0 0 1rem;
}

.p-muted {
  opacity: 0.7;
  font-size: 0.95rem;
}

/* ── Karten ───────────────────────────────────────────────────── */

.p-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 1.6rem;
}

.p-card {
  padding: 1.4rem;
  border-radius: 12px;

  background: var(--text-box);
  border: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}

.p-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
  color: var(--accent-0);
}

.p-card p {
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ── Bildschirmfotos ──────────────────────────────────────────── */

.p-shot {
  margin: 0;
}

.p-shot img {
  width: 100%;
  height: auto;
  display: block;

  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);

  /* Die Aufnahmen sind dunkel; ein Schatten hebt sie vom
     Seitenhintergrund ab, ohne dass ein Rahmen noetig ist. */
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.p-shot figcaption {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
  opacity: 0.85;
}

.p-shot-wide {
  margin-top: 2rem;
}

.p-shots {
  display: grid;
  gap: 2.5rem;
  margin-top: 1.6rem;
}

/* Ab zwei Spalten nebeneinander, aber nicht zu schmal - sonst
   erkennt man in den Aufnahmen nichts mehr. */
@media (min-width: 900px) {
  .p-shots {
    grid-template-columns: 1fr 1fr;
  }

  .p-shots figure:last-child {
    grid-column: 1 / -1;
    max-width: 70%;
    margin-inline: auto;
  }
}

/* ── Abschluss und Fuss ───────────────────────────────────────── */

.p-final {
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: 16px;
  background: var(--text-box);
  text-align: center;
}

.p-final .p-text {
  margin-inline: auto;
}

.p-final .p-hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

.p-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;

  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 5vw, 2rem);

  border-top: 1px solid var(--text-box);
  font-size: 0.9rem;
  color: var(--muted);
  opacity: 0.75;
}

.p-footer a {
  color: inherit;
  text-decoration: none;
}

.p-footer a:hover { text-decoration: underline; }
