/* =========================================================
   dls-pages.css — Komponenten der Unterseiten (Stile, Gestalten,
   Galerie, Konto, Rechtliches). Nutzt ausschliesslich die Tokens
   aus dls-base.css. Optik = Domaene Design; Funktion bleibt in /js/.
   ========================================================= */

/* ---- Seitenkopf (kompakter Hero fuer Unterseiten) ---- */
.page-hero {
  position: relative;
  padding: 30px 0 32px;
  text-align: center;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--hero-glow);
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .section-eyebrow { justify-content: center; }
.page-hero h1 {
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 10px 0 0;
  color: var(--text-bright);
}
.page-hero p.lead {
  max-width: 620px;
  margin: 14px auto 0;
  color: var(--text-secondary);
  font-size: clamp(15px, 2.2vw, 18px);
  line-height: 1.6;
}
.page-hero .hero-cta-row { justify-content: center; margin-top: 22px; }

/* Breadcrumb */
.crumbs {
  display: flex; gap: 6px; align-items: center;
  font-size: 13px; color: var(--text-muted);
  margin-bottom: 4px; justify-content: center;
}
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--text-secondary); }

/* ============================================================
   GESTALTEN — Bestell-Wizard
   ============================================================ */
.test-banner {
  display: flex; align-items: center; gap: 10px;
  max-width: var(--layout-max); margin: 0 auto 0;
  padding: 10px 16px;
  background: color-mix(in srgb, var(--brand-accent) 12%, var(--bg-card));
  border: 1px solid color-mix(in srgb, var(--brand-accent) 35%, var(--border-default));
  border-radius: var(--brand-radius-card);
  color: var(--text-secondary); font-size: 13.5px;
}
.test-banner strong { color: var(--text-primary); }
.test-banner svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--brand-accent); }

.wiz {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 880px) { .wiz { grid-template-columns: 1fr; } }

/* Fortschritts-Stepper */
.wiz-progress {
  list-style: none; margin: 0 0 26px; padding: 0;
  display: flex; gap: 8px;
}
.wiz-progress li {
  flex: 1; display: flex; flex-direction: column; gap: 7px;
  font-size: 12.5px; color: var(--text-muted);
}
.wiz-progress li .bar {
  height: 4px; border-radius: 3px; background: var(--border-default);
  transition: background .3s;
}
.wiz-progress li.is-done .bar,
.wiz-progress li.is-current .bar { background: var(--brand-accent); }
.wiz-progress li.is-current { color: var(--text-primary); font-weight: 600; }
.wiz-progress li.is-done { color: var(--text-secondary); }

/* Panels */
.wiz-panel { display: none; }
.wiz-panel.is-active { display: block; animation: dls-fade .35s ease both; }
@keyframes dls-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wiz-panel h2 { font-size: 22px; margin: 0 0 4px; color: var(--text-bright); }
.wiz-panel .panel-sub { color: var(--text-secondary); margin: 0 0 20px; font-size: 14.5px; }

/* Upload-Zone */
.upload-zone {
  display: block;
  border: 2px dashed var(--border-hover);
  border-radius: var(--brand-radius-card);
  background: var(--bg-subtle);
  padding: 40px 20px; text-align: center;
  cursor: pointer; transition: border-color .2s, background .2s;
}
.upload-zone svg { display: block; margin: 0 auto 12px; }
.upload-zone:hover, .upload-zone.is-drag {
  border-color: var(--brand-accent);
  background: color-mix(in srgb, var(--brand-accent) 7%, var(--bg-subtle));
}
.upload-zone svg { width: 40px; height: 40px; color: var(--text-muted); margin-bottom: 12px; }

/* 🔴 10.09.2026 (Mark: "warum ist das fotofeld so gross"): Auf dem Handy nahm
   es 207 px = 26 % des Bildschirms fuer ein leeres Feld. Zusammen mit dem
   Band darueber ging fast ein Drittel der ersten Seite fuer nichts drauf.
   🔴 NUR unter 700 px - Marks Zusatz: "aber auch immer aufpassen, das wir
   nichts am pc versauen". Am Bildschirm ist der Platz nicht knapp, dort
   bleibt alles wie es war. */
@media (max-width: 700px) {
  .upload-zone { padding: 22px 16px; }
  .upload-zone svg { width: 32px; height: 32px; margin-bottom: 8px; }
}
.upload-zone .uz-title { font-size: 16px; color: var(--text-primary); font-weight: 600; }
.upload-zone .uz-hint { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.upload-zone input[type="file"] { display: none; }

.upload-preview { display: none; margin-top: 16px; }
.upload-preview.is-active { display: block; }
.upload-preview img {
  max-width: 100%; max-height: 280px; border-radius: var(--brand-radius-card);
  border: 1px solid var(--border-default); display: block; margin: 0 auto;
}
.upload-preview .uz-change {
  display: inline-flex; gap: 6px; align-items: center;
  margin-top: 12px; font-size: 13.5px; color: var(--brand-accent);
  background: none; border: none; cursor: pointer;
}

/* Auswahl-Grid (Stile) */
.choice-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.choice-tile {
  position: relative; cursor: pointer;
  border: 2px solid var(--border-default); border-radius: var(--brand-radius-card);
  overflow: hidden; background: var(--bg-card); transition: border-color .18s, transform .18s;
}
.choice-tile:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.choice-tile.is-selected { border-color: var(--brand-accent); }
.choice-tile .ct-media { aspect-ratio: 1; }
.choice-tile .ct-media svg { width: 100%; height: 100%; display: block; }
.choice-tile .ct-name { padding: 9px 10px; font-size: 13.5px; font-weight: 600; color: var(--text-primary); }
.choice-tile .ct-check {
  position: absolute; top: 8px; right: 8px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand-accent); color: #fff;
  display: none; align-items: center; justify-content: center;
}
.choice-tile .ct-check svg { width: 15px; height: 15px; }
.choice-tile.is-selected .ct-check { display: flex; }

/* Paket-Auswahl */
.pkg-grid { display: grid; gap: 12px; }
.pkg-card {
  display: flex; align-items: center; gap: 14px;
  border: 2px solid var(--border-default); border-radius: var(--brand-radius-card);
  background: var(--bg-card); padding: 16px 18px; cursor: pointer; transition: border-color .18s;
}
.pkg-card:hover { border-color: var(--border-hover); }
.pkg-card.is-selected { border-color: var(--brand-accent); }
.pkg-radio {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--border-hover); position: relative;
}
.pkg-card.is-selected .pkg-radio { border-color: var(--brand-accent); }
.pkg-card.is-selected .pkg-radio::after {
  content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--brand-accent);
}
.pkg-card .pkg-main { flex: 1; }
.pkg-card .pkg-title { font-weight: 700; color: var(--text-primary); }
.pkg-card .pkg-meta { font-size: 13px; color: var(--text-secondary); }
.pkg-card .pkg-price { font-size: 19px; font-weight: 800; color: var(--text-bright); display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.pkg-card .pkg-price-old { font-size: 12px; font-weight: 600; color: var(--text-secondary); text-decoration: line-through; }
.pkg-card .pkg-badge {
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--brand-accent); margin-left: 6px;
}

/* Zusammenfassung (Sidebar) */
.summary {
  border: 1px solid var(--border-default); border-radius: var(--brand-radius-card);
  background: var(--bg-card); padding: 22px; position: sticky; top: 76px;
  box-shadow: var(--shadow-card);
}
.summary h3 { margin: 0 0 14px; font-size: 16px; color: var(--text-bright); }
.summary-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 14px; color: var(--text-secondary); }
.summary-row .v { color: var(--text-primary); font-weight: 600; text-align: right; }
.summary-row.muted .v { color: var(--text-muted); font-weight: 400; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--border-default); }
.summary-total .t-label { color: var(--text-secondary); }
.summary-total .t-amount { font-size: 26px; font-weight: 800; color: var(--text-bright); }
.summary .btn-cta { width: 100%; justify-content: center; margin-top: 16px; }
.summary .summary-note { font-size: 11.5px; color: var(--text-muted); margin-top: 10px; text-align: center; line-height: 1.5; }

.wiz-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.wiz-actions .btn-ghost[disabled] { opacity: .4; pointer-events: none; }

/* Generier-/Bestaetigungs-Status */
.gen-state { display: none; text-align: center; padding: 40px 0; }
.gen-state.is-active { display: block; animation: dls-fade .4s ease both; }
.gen-spinner {
  width: 54px; height: 54px; margin: 0 auto 20px;
  border: 4px solid var(--border-default); border-top-color: var(--brand-accent);
  border-radius: 50%; animation: dls-spin 1s linear infinite;
}
@keyframes dls-spin { to { transform: rotate(360deg); } }
.gen-state h2 { color: var(--text-bright); margin: 0 0 8px; }
.gen-state p { color: var(--text-secondary); max-width: 460px; margin: 0 auto; }
.gen-check {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  background: color-mix(in srgb, var(--brand-accent) 15%, var(--bg-card));
  display: flex; align-items: center; justify-content: center;
}
.gen-check svg { width: 34px; height: 34px; color: var(--brand-accent); }

/* ============================================================
   GALERIE
   ============================================================ */
.gallery-grid {
  columns: 4 220px; column-gap: 14px;
}
.gallery-card {
  break-inside: avoid; margin-bottom: 14px; border-radius: var(--brand-radius-card);
  overflow: hidden; border: 1px solid var(--border-default); background: var(--bg-card);
  position: relative; display: block;
}
.gallery-card svg { width: 100%; display: block; }
.gallery-card .gc-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 12px 10px; font-size: 12.5px; font-weight: 600; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
}

/* ============================================================
   KONTO — Auth-Formulare + Dashboard
   ============================================================ */
.auth-shell { max-width: 420px; margin: 0 auto; }
.auth-card {
  border: 1px solid var(--border-default); border-radius: var(--brand-radius-card);
  background: var(--bg-card); padding: 30px 28px; box-shadow: var(--shadow-card);
}
.auth-card h1 { font-size: 24px; margin: 0 0 4px; color: var(--text-bright); }
.auth-card .auth-sub { color: var(--text-secondary); font-size: 15px; margin: 0 0 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.field input {
  width: 100%; box-sizing: border-box; padding: 11px 13px;
  background: var(--bg-input); border: 1px solid var(--border-default);
  border-radius: var(--brand-radius-input); color: var(--text-primary); font-size: 15px;
  font-family: inherit; transition: border-color .15s;
}
.field input:focus { outline: none; border-color: var(--brand-accent); }
.btn-block { width: 100%; justify-content: center; }
.auth-divider {
  display: flex; align-items: center; gap: 12px; margin: 20px 0;
  color: var(--text-muted); font-size: 12.5px;
}
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border-default); }
.auth-alt { text-align: center; font-size: 13.5px; color: var(--text-muted); margin-top: 20px; }
.auth-alt a { color: var(--brand-accent); text-decoration: none; }
.auth-alt a:hover { text-decoration: underline; }
/* 03.09.2026 (Mark): "geht das nicht nur mit mail, sondern auch mit
   whatsapp, nur die registrierung". Zweiter Weg in die Registrierung -
   der Bot legt bei einer neuen Nummer selbst ein Konto an, es wird also
   nichts Neues gebaut, sondern ein vorhandener Weg sichtbar gemacht. */
.oder-trenner { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px;
  color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.oder-trenner::before, .oder-trenner::after { content: ""; flex: 1; height: 1px;
  background: var(--border-default); }
.wa-knopf { display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; padding: 12px 16px; border-radius: var(--brand-radius-input);
  border: 1px solid #1f7a3f; background: rgba(31,122,63,.12); color: #e8f5ec;
  font-size: 14.5px; font-weight: 600; text-decoration: none; }
.wa-knopf:hover { background: rgba(31,122,63,.2); border-color: #2a9e54; }

/* 03.09.2026 (Mark): "es gibt den magiclink, es gibt whatsapp und es gibt
   konto einrichten". Drei benannte Wege statt eines Formulars mit
   Anhaengseln - jeder mit Nummer, Titel und einem Satz, was er bedeutet. */
.weg { padding: 16px 0; border-bottom: 1px solid var(--border-default); }
.weg:last-of-type { border-bottom: none; padding-bottom: 4px; }
.weg:first-of-type { padding-top: 4px; }
.weg-kopf { display: flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 600; color: var(--text-bright); margin-bottom: 4px; }
.weg-nr { display: inline-flex; align-items: center; justify-content: center;
  width: 21px; height: 21px; border-radius: 50%; background: var(--bg-subtle);
  border: 1px solid var(--border-default); color: var(--text-secondary);
  font-size: 12px; font-weight: 700; flex: 0 0 auto; }
.weg-sub { color: var(--text-secondary); font-size: 13.5px; line-height: 1.5;
  margin: 0 0 12px; }

/* 03.09.2026 (Mark, dreimal gemeldet): "erst mal muss der kunde wissen, das
   er die nachricht abschicken muss". Der Satz stand vorher im Fliesstext
   ueber dem Knopf - dort wird er ueberlesen. Jetzt direkt darunter, mit
   Zeichen und Farbe. Marks eigenes Erlebnis: er klickte, wartete auf eine
   Antwort und wusste nicht, dass die Nachricht noch offen war. */
.absende-hinweis { display: flex; align-items: flex-start; gap: 8px;
  margin: 10px 0 0; padding: 9px 11px; border-radius: var(--brand-radius-input);
  background: rgba(226,163,60,.09); border: 1px solid rgba(226,163,60,.32);
  color: #e6d3b0; font-size: 13px; line-height: 1.5; }
.absende-hinweis strong { color: #f0dcb8; }
.ah-nr { display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%; background: #e2a33c;
  color: #1a1a1e; font-size: 12px; font-weight: 800; flex: 0 0 auto; margin-top: 1px; }

.auth-hint {
  font-size: 13.5px; color: var(--text-secondary); background: var(--bg-subtle);
  border: 1px solid var(--border-default); border-radius: var(--brand-radius-input);
  padding: 10px 12px; margin-top: 14px; line-height: 1.5;
}

/* Dashboard */
.acct-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 24px; }
/* 08.09.2026 (Mark: "mach die schrift oben etwas kleiner"): Auf dem Handy
   gemessen 22px, 239px hoch - 29 % des Bildschirms, und bis zum ersten Bild
   1070px Scrollweg. Die Begruessung ist KI-generiert und mal 80, mal 180
   Zeichen lang; eine feste Groesse trifft es nie fuer alle. Deshalb kleiner,
   und auf schmalen Schirmen noch einmal kleiner.
   .acct-greet steht NUR auf /konto/ (geprueft: 1 von 24 Seiten, die diese
   Datei laden) - die uebrigen 23 sind unberuehrt. */
.acct-head .acct-greet { font-size: 19px; line-height: 1.35; font-weight: 700; color: var(--text-bright); }
@media (max-width: 700px) {
  .acct-head .acct-greet { font-size: 16.5px; line-height: 1.32; }
}
.acct-head .acct-sub { font-size: 13.5px; color: var(--text-muted); }
.empty-state {
  text-align: center; padding: 56px 20px; border: 1px dashed var(--border-hover);
  border-radius: var(--brand-radius-card); background: var(--bg-subtle);
}
.empty-state svg { width: 44px; height: 44px; color: var(--text-muted); margin-bottom: 14px; }
.empty-state h3 { margin: 0 0 6px; color: var(--text-primary); }
.empty-state p { color: var(--text-secondary); margin: 0 0 18px; }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.img-grid .img-card { border-radius: var(--brand-radius-card); overflow: hidden; border: 1px solid var(--border-default); }
.img-grid .img-card svg { width: 100%; display: block; }

/* ============================================================
   RECHTLICHES — Prosa-Spalte
   ============================================================ */
.prose { max-width: 720px; margin: 0 auto; color: var(--text-secondary); line-height: 1.7; font-size: 15.5px; }
.prose h1 { font-size: 30px; color: var(--text-bright); margin: 0 0 8px; }
.prose h2 { font-size: 20px; color: var(--text-primary); margin: 30px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose a { color: var(--brand-accent); }
.prose .wip {
  border: 1px solid color-mix(in srgb, var(--brand-accent) 30%, var(--border-default));
  background: color-mix(in srgb, var(--brand-accent) 8%, var(--bg-card));
  border-radius: var(--brand-radius-card); padding: 14px 16px; color: var(--text-secondary);
  font-size: 14px;
}

/* Stil-Katalog: echte Produkt-Thumbnails (von dls-stile.js) füllen die Kachel */
.style-tile-media { aspect-ratio: 1; overflow: hidden; }
.style-tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Paket angekuendigt, aber noch nicht kaufbar (products.coming_soon) */
.pkg-card.is-soon { opacity: .6; cursor: default; }
.pkg-card.is-soon:hover { border-color: inherit; }
.pkg-card .pkg-soon { font-weight: 700; color: var(--text-secondary); }
