/* Lampendesigner — ein Stylesheet fuer alle Seiten.
   Nur ein Nacht-Thema: die Lampe wirkt erst im Dunkeln, und genau so soll
   die Seite sie zeigen. */

@font-face {
  font-family: "Fredoka";
  src: url("../fonts/fredoka-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("../fonts/fredoka-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* Die Namen stammen aus dem Lampendesigner (dort ein Nacht-Thema) und
     bleiben, damit beide Projekte vergleichbar sind: --nacht ist hier der
     helle Seitengrund, --glut das Muenzgold der Knoepfe. */
  --nacht: #f1f6f3;         /* Seitengrund, kuehles Minzweiss */
  --nacht-2: #e6eeea;       /* abgesetzte Baender, Tafel */
  --flaeche: #ffffff;       /* Karten */
  --flaeche-2: #f6faf8;
  --linie: #cbd9d2;
  --linie-fest: #94aca1;    /* Hover, betonte Raender */
  --text: #12372f;          /* Flaschengruen */
  --text-2: #3d5b53;
  --text-3: #5a756d;        /* 4,6:1 auf --nacht */
  --glut: #f2b01e;          /* Muenzgold */
  --glut-2: #8a5200;        /* Gold als Schriftfarbe: dunkel genug fuer 5:1 */
  --glut-schein: rgba(242, 176, 30, 0.28);
  --auf-glut: #2a1c00;      /* Schrift auf Gold */
  --violett: #5b4bd6;
  --fehler: #c0312b;
  --ok: #1b7a52;
  --schatten: 18, 55, 47;   /* fuer rgba(var(--schatten), a) */
  --radius: 14px;
  --radius-klein: 9px;
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --schrift-titel: "Fredoka", var(--schrift);
  --breite: 1160px;
  accent-color: #c98a00;
}

*, *::before, *::after { box-sizing: border-box; }
/* hidden gilt immer - sonst gewinnt z. B. .knopf { display: inline-flex }. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--linie) var(--nacht); }

body {
  margin: 0;
  background: var(--nacht);
  color: var(--text);
  font: 400 1rem/1.6 var(--schrift);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection { background: var(--glut); color: var(--auf-glut); }

/* Sprungziele (/#kontakt, /#beispiele ...) nicht unter dem stehenden Kopf. */
html { scroll-padding-top: 72px; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--glut-2); text-underline-offset: 3px; }
a:hover { color: var(--glut); }

h1, h2, h3 {
  font-family: var(--schrift-titel);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.005em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; text-wrap: pretty; }

.huelle { width: min(100% - 32px, var(--breite)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

:focus-visible { outline: 2px solid var(--glut); outline-offset: 3px; border-radius: 4px; }

/* --- Kopf ------------------------------------------------------------------ */

.kopf {
  position: sticky; top: 0; z-index: 20;
  background: rgba(241, 246, 243, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 172, 161, 0.5);
}
.kopf .huelle { display: flex; align-items: center; gap: 20px; height: 64px; }
.marke {
  display: flex; align-items: center; gap: 10px;
  font: 600 1.2rem var(--schrift-titel); color: var(--text); text-decoration: none; white-space: nowrap;
}
.marke svg { width: 28px; height: 28px; }
.marke:hover { color: var(--glut-2); }
.kopf nav { display: flex; gap: 22px; margin-left: auto; }
.kopf nav a { color: var(--text-2); text-decoration: none; font-weight: 500; }
.kopf nav a:hover, .kopf nav a[aria-current="page"] { color: var(--text); }
/* Konto rechts im Kopf: durch einen Strich von der Navigation getrennt,
   angemeldet als eigene Kapsel (Bild, Name, Guthaben) - so liest sich
   "Ingo 12 Credits" nicht als weiterer Menuepunkt. */
.konto {
  display: flex; align-items: center; gap: 8px;
  padding-left: 20px; border-left: 1px solid var(--linie);
}
.konto-link {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  padding: 3px 4px 3px 3px; border-radius: 999px;
  background: var(--flaeche); border: 1px solid var(--linie);
  color: var(--text); text-decoration: none; font-size: 0.92rem;
  transition: border-color 0.15s, background 0.15s;
}
.konto-link:hover { border-color: rgba(242, 176, 30, 0.88); background: var(--flaeche-2); color: var(--text); }
.konto-bild { width: 28px; height: 28px; border-radius: 50%; flex: none; object-fit: cover; }
.konto-initial {
  display: grid; place-items: center;
  background: linear-gradient(135deg, #7667e6, var(--violett)); color: #fff;
  font: 600 0.9rem/1 var(--schrift-titel);
}
.konto-name { font-weight: 600; max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.konto .guthaben {
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  background: rgba(242, 176, 30, 0.22); border: 1px solid rgba(242, 176, 30, 0.51);
  color: var(--glut-2); font-weight: 600; font-size: 0.85rem; font-variant-numeric: tabular-nums;
}
.konto .knopf-abmelden { background: transparent; border-color: transparent; color: var(--text-3); padding-inline: 0.7em; }
.konto .knopf-abmelden:hover { color: var(--text); background: var(--flaeche); border-color: var(--linie); }
.knopf-abmelden svg { display: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* "Designer" als leuchtender Knopf rechts neben der Navigation - der Weg,
   um den sich alles dreht, auch auf dem Handy sichtbar. */
.kopf-designer { flex: none; padding: 0.45em 1.1em; }
.kopf-designer[aria-current="page"] { background: transparent; color: var(--glut-2); border-color: rgba(242, 176, 30, 0.88); box-shadow: none; }
/* Sprachschalter DE/EN (fest in jeder Seite); auf Telefonen steht er im Menue (seite.js). */
.sprache-wechsel {
  flex: none; display: grid; place-items: center; min-width: 38px; height: 30px; padding: 0 9px;
  border: 1px solid var(--linie); border-radius: 999px; color: var(--text-2); text-decoration: none;
  font: 600 0.78rem/1 var(--schrift); letter-spacing: 0.06em;
}
.sprache-wechsel:hover, .sprache-wechsel:focus-visible { color: var(--text); border-color: rgba(242, 176, 30, 0.88); }
/* Warenkorb im Kopf, sobald etwas darin liegt (seite.js). */
.kopf-warenkorb {
  position: relative; flex: none; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; color: var(--text-2); text-decoration: none;
}
.kopf-warenkorb:hover, .kopf-warenkorb[aria-current="page"] { color: var(--text); background: var(--flaeche); }
.kopf-warenkorb svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kopf-warenkorb span {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--glut); color: var(--auf-glut); font: 700 0.72rem/18px var(--schrift); text-align: center;
}
/* Menue fuer schmale Bildschirme (seite.js): Knopf im Kopf, Liste als Popover. */
.menue-knopf {
  display: none; flex: none; width: 40px; height: 40px; padding: 0; border-radius: 50%; cursor: pointer;
  place-items: center; background: transparent; border: 1px solid var(--linie); color: var(--text);
}
.menue-knopf svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menue-knopf:focus-visible { outline: 2px solid var(--glut); outline-offset: 2px; }
.menue {
  inset: 72px 12px auto auto; margin: 0; width: min(280px, calc(100vw - 24px)); padding: 8px;
  border: 1px solid var(--linie); border-radius: 16px; background: var(--flaeche); color: var(--text);
  box-shadow: 0 24px 60px -20px rgba(var(--schatten), 0.24);
}
.menue a {
  display: block; padding: 12px 14px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 500;
}
.menue a:hover, .menue a:focus-visible { background: var(--flaeche-2); outline: none; }
.menue a[aria-current="page"] { color: var(--glut-2); }
.menue hr { border: 0; border-top: 1px solid var(--linie); margin: 6px 8px; }

/* Die Kopfzeile bleibt einzeilig: Nichts bricht um ("So geht's" stand sonst
   in zwei Zeilen, sobald angemeldet Admin, Name und Guthaben dazukamen).
   Wird es eng, gibt nur der Name in der Konto-Kapsel nach (Auslassungspunkte). */
.kopf .huelle > *, .kopf nav a { white-space: nowrap; }
.kopf nav { flex: none; }
.konto { flex: 0 1 auto; min-width: 0; }
.konto > * { flex: none; }
.konto > .konto-link { flex: 0 1 auto; }
.konto-link > * { flex: none; }
.konto-link > .konto-name { flex: 0 1 auto; min-width: 0; }
/* Angemeldet braucht das Konto mehr Platz: Abstaende enger, Abmelden als Symbol. */
@media (min-width: 821px) {
  .kopf:has(.konto-link) .huelle { gap: 16px; }
  .kopf:has(.konto-link) nav { gap: 18px; }
  .kopf:has(.konto-link) .konto { padding-left: 16px; }
  .kopf:has(.konto-link) .abmelden-text { display: none; }
  .kopf:has(.konto-link) .knopf-abmelden { width: 34px; height: 34px; padding: 0; }
  .kopf:has(.konto-link) .knopf-abmelden svg { display: block; }
}

/* Die Marke "Meine Namensspardose" ist lang: Die Navigation wandert frueher ins
   Menue als im Lampendesigner (dort 760 px), die Stufen darunter ebenso. */
@media (max-width: 1160px) {
  .kopf nav { display: none; }
  .kopf-designer { margin-left: auto; }
  .konto { padding-left: 0; border-left: 0; }
  .menue-knopf { display: grid; }
}
/* Telefon: Name weg, "Credits" wird zum Stern, Abmelden zum Symbol -
   sonst laeuft die Kopfzeile angemeldet ueber den Rand. */
@media (max-width: 820px) {
  .kopf .huelle { gap: 12px; }
  .konto-name, .konto .guthaben .einheit, .abmelden-text { display: none; }
  .konto .guthaben::before { content: "✦ "; }
  .konto .knopf-abmelden { width: 34px; height: 34px; padding: 0; }
  .knopf-abmelden svg { display: block; }
  .sprache-wechsel { display: none; }
}
/* Schmal: Marke nur als Zeichen, damit Designer, Konto und Menue passen. */
@media (max-width: 620px) {
  .marke { font-size: 0; gap: 0; }
  .kopf-designer { padding-inline: 0.9em; }
}
/* Sehr schmale Telefone: Konto ohne Bild. */
@media (max-width: 380px) {
  .konto-bild { display: none; }
  .konto-link { padding-left: 4px; }
}

/* --- Knoepfe --------------------------------------------------------------- */

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0.72em 1.35em;
  border-radius: 999px; border: 1px solid var(--linie);
  background: var(--flaeche-2); color: var(--text);
  font: 600 1rem var(--schrift); text-decoration: none; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.2s, transform 0.1s;
}
.knopf:hover { border-color: var(--linie-fest); background: var(--nacht-2); color: var(--text); }
.knopf:active { transform: translateY(1px); }
.knopf:disabled { opacity: 0.5; cursor: not-allowed; }
.knopf-glut:disabled { box-shadow: none; }
.knopf-glut {
  background: linear-gradient(180deg, #ffd24f, #f2b01e);
  border-color: transparent; color: var(--auf-glut);
  box-shadow: 0 0 0 0 var(--glut-schein), 0 6px 26px -8px rgba(242, 176, 30, 0.88);
}
.knopf-glut:hover {
  background: linear-gradient(180deg, #ffdd77, #f7bd33); color: var(--auf-glut);
  box-shadow: 0 0 0 6px var(--glut-schein), 0 8px 30px -8px rgba(242, 176, 30, 0.90);
}
.knopf-klein { padding: 0.45em 1em; font-size: 0.92rem; }
.knopf-gross { padding: 0.9em 1.8em; font-size: 1.08rem; }
.knopf-google svg { width: 18px; height: 18px; }

/* --- Abschnitte (Startseite und Preise) ------------------------------------ */

.abschnitt { padding: clamp(56px, 8vw, 100px) 0; }
.abschnitt-dunkel { background: var(--nacht-2); border-block: 1px solid var(--linie); }
.abschnitt-kopf { max-width: 44em; margin-bottom: 36px; }
.abschnitt-kopf p { color: var(--text-2); font-size: 1.07rem; }

.dachzeile {
  display: inline-block; margin-bottom: 14px;
  color: var(--glut-2); font-weight: 600; font-size: 0.86rem;
  letter-spacing: 0.08em; text-transform: uppercase;
}

.zweispaltig {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px); align-items: center;
}
@media (max-width: 880px) { .zweispaltig { grid-template-columns: 1fr; } }
.bild-rahmen { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--linie); }

.liste-haken { list-style: none; padding: 0; margin: 0 0 1em; }
.liste-haken li { padding-left: 1.7em; position: relative; margin-bottom: 0.55em; color: var(--text-2); }
.liste-haken li strong { color: var(--text); }
.liste-haken li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

/* Startseite: zwei Wege - selbst drucken oder drucken lassen. */
.wege { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .wege { grid-template-columns: 1fr; } }
.weg {
  display: flex; flex-direction: column; padding: 26px 26px 24px; border-radius: var(--radius);
  background: var(--flaeche); border: 1px solid var(--linie);
}
.weg h3 { font-size: 1.4rem; margin: 0 0 2px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.weg-fuer { color: var(--text-3); margin: 0 0 16px; }
.weg .liste-haken { flex: 1; }
.weg .knopf { align-self: flex-start; }
.weg-hervor {
  border-color: rgba(242, 176, 30, 0.72);
  background: radial-gradient(90% 120% at 100% 0%, rgba(242, 176, 30, 0.19), transparent 60%), var(--flaeche);
}
.weg-bald {
  padding: 2px 10px; border-radius: 999px; font: 600 0.75rem var(--schrift); letter-spacing: 0.04em;
  background: rgba(242, 176, 30, 0.22); border: 1px solid rgba(242, 176, 30, 0.64); color: var(--glut-2);
}

.faq .huelle { max-width: 820px; }
.faq details {
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-klein);
  margin-bottom: 10px; padding: 0 20px;
}
.faq summary {
  cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--glut); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-2); margin: 0 0 16px; }

.aufruf {
  text-align: center;
  background: radial-gradient(50% 80% at 50% 100%, rgba(242, 176, 30, 0.26), transparent 70%);
}
.aufruf p { color: var(--text-2); }

/* --- Startseite: Kopfbereich ----------------------------------------------- */

.held {
  position: relative; overflow: hidden;
  padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 90px);
  background:
    radial-gradient(60% 70% at 72% 40%, rgba(242, 176, 30, 0.21), transparent 70%),
    radial-gradient(40% 50% at 10% 0%, rgba(155, 123, 255, 0.10), transparent 70%);
}
.held .huelle {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 60px); align-items: center;
}
.held .unterzeile { font-size: 1.15rem; color: var(--text-2); max-width: 34em; }
.held .aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.held .fakten {
  display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 0;
  list-style: none; color: var(--text-3); font-size: 0.93rem;
}
.held .fakten li::before { content: "✦ "; color: var(--glut); }
/* Grosse Bilder fuellen ihren Rahmen ganz aus (display/height: siehe img oben). */
.vorfuehrung-bild img, .schriftvergleich img { width: 100%; }

/* Kopfbereich rechts (schmal: unter dem Text) statt eines Fotos die
   Animation "Name tippen, Lampe geht an" (startseite.js). */
.held-animation {
  display: grid; justify-items: center; align-content: center; gap: 10px;
  aspect-ratio: 4 / 3; padding: 28px 24px; border-radius: 22px;
  background: radial-gradient(60% 65% at 50% 66%, rgba(242, 176, 30, 0.26), transparent 72%), var(--nacht-2);
  border: 1px solid var(--linie);
  box-shadow: 0 40px 90px -40px rgba(18, 55, 47, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.held-animation .tippfeld { font-size: 1.35rem; }
.held-animation .leuchtname { width: min(100%, 560px); }
@media (max-width: 880px) {
  .held .huelle { grid-template-columns: 1fr; }
  .held-animation { aspect-ratio: auto; gap: 4px; padding: 20px 12px 6px; box-shadow: none; }
  .held-animation .tippfeld { font-size: 1.15rem; }
  .held-animation .leuchtname { width: min(100%, 380px); }
}
.tippfeld {
  display: flex; align-items: center; gap: 10px; min-width: min(15em, 100%);
  padding: 9px 14px; border-radius: var(--radius-klein);
  border: 1px solid var(--glut); box-shadow: 0 0 0 4px var(--glut-schein);
  background: var(--flaeche); font: 600 1.15rem/1.2 var(--schrift-titel); letter-spacing: 0.06em;
}
.tipp-label { font: 600 0.72rem var(--schrift); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.tipp-text { min-height: 1.2em; }
.tipp-cursor { width: 2px; height: 1.2em; margin-left: -8px; background: var(--glut); animation: blinken 1s steps(1) infinite; }
@keyframes blinken { 50% { opacity: 0; } }
.leuchtname { width: min(100%, 380px); height: auto; overflow: visible; }
.leuchtname text { font: 600 92px var(--schrift-titel); text-anchor: middle; letter-spacing: -2px; }
/* Die Dose als Schriftzug: getippt erst ein grauer Rohling, dann bekommt
   jeder Buchstabe seine Farben - Rand in Koerperfarbe hinter der weissen
   Flaeche (paint-order), darunter versetzt die Tiefe der Dose. */
.ln-koerper tspan {
  fill: #eef2ef; stroke: #c3cec8; stroke-width: 8px; stroke-linejoin: round; paint-order: stroke;
  transition: fill 0.35s, stroke 0.35s;
}
.ln-koerper tspan.an { fill: #fff; stroke: var(--k); }
.ln-tiefe tspan {
  fill: #aab6b0; stroke: #aab6b0; stroke-width: 8px; stroke-linejoin: round;
  transition: fill 0.35s, stroke 0.35s;
}
.ln-tiefe tspan.an { fill: color-mix(in srgb, var(--k) 68%, #1d1430); stroke: color-mix(in srgb, var(--k) 68%, #1d1430); }
.leuchtname, .tipp-text { transition: opacity 0.35s; }
.held-animation.weg .leuchtname, .held-animation.weg .tipp-text { opacity: 0; }

/* --- Startseite: Scroll-Szene ---------------------------------------------- */

/* Ohne Bewegung: ein grosses Standbild mit Text darueber. */
.szene { position: relative; background: var(--nacht-2); }
.szene-buehne { position: relative; overflow: hidden; }
.szene-buehne::after {
  content: ""; position: absolute; inset: auto 0 0; height: 42%; pointer-events: none;
  background: linear-gradient(to bottom, rgba(241, 246, 243, 0), rgba(241, 246, 243, 0.92));
}
.szene-standbild { width: 100%; height: min(78vh, 760px); object-fit: cover; }
#szene-canvas { display: none; }
.szene-text {
  position: absolute; z-index: 1;
  left: 0; right: 0; bottom: clamp(24px, 6vh, 64px); margin-inline: auto;
  text-shadow: 0 2px 18px rgba(var(--schatten), 0.22);
}
.szene-text h2 { font-size: clamp(1.7rem, 4vw, 2.8rem); margin: 0 0 10px; }
.szene-schritt { margin: 0; font-size: clamp(1rem, 2vw, 1.25rem); color: var(--text); max-width: 32em; }
.szene:not(.bewegt) .szene-schritt:not(:last-child) { display: none; }

/* Mit Bewegung (startseite.js setzt .bewegt, nach dem Laden .bereit):
   die Szene ist hoch, die Buehne bleibt stehen. */
.szene.bewegt { height: 260vh; }
.szene.bewegt .szene-buehne {
  position: sticky; top: 64px; height: calc(100vh - 64px); height: calc(100svh - 64px);
}
.szene.bewegt #szene-canvas { display: block; width: 100%; height: 100%; }
.szene.bewegt .szene-standbild { position: absolute; inset: 0; height: 100%; transition: opacity 0.6s; }
.szene.bereit .szene-standbild { opacity: 0; pointer-events: none; }
.szene.bewegt .szene-schritt {
  position: absolute; opacity: 0; transform: translateY(12px);
  transition: opacity 0.5s, transform 0.5s;
}
.szene.bewegt .szene-schritt.sichtbar { opacity: 1; transform: none; }
.szene.bewegt .szene-text { min-height: 7.5em; }
@media (max-width: 760px) {
  .szene.bewegt { height: 220vh; }
  .szene.bewegt .szene-text { min-height: 9em; }
}

/* --- Startseite: Schritte, Designer, Beispiele ----------------------------- */

.schritte {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px;
  list-style: none; padding: 0; margin: 0; counter-reset: schritt;
}
.schritte li {
  background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius); overflow: hidden; counter-increment: schritt;
}
.schritte li > div { padding: 20px 22px 24px; }
/* Piktogramme statt Fotos: Linien in Textfarbe, das Licht in Glut. */
.schritte li > .schritt-bild {
  display: grid; place-items: center; height: 172px; padding: 0;
  background: radial-gradient(55% 75% at 50% 60%, rgba(242, 176, 30, 0.14), transparent 72%), var(--nacht-2);
  border-bottom: 1px solid var(--linie);
}
.piktogramm { width: 172px; height: auto; overflow: visible; }
.piktogramm .p-linie { fill: none; stroke: var(--text-2); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.piktogramm .p-akzent { fill: none; stroke: var(--glut); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.piktogramm .p-glut { fill: rgba(242, 176, 30, 0.26); stroke: var(--glut); stroke-width: 1.5; stroke-linejoin: round; }
.piktogramm .p-tief { fill: none; stroke: var(--text-3); stroke-width: 1.1; stroke-linejoin: round; transform: translate(1.8px, -1.3px); }
.piktogramm .p-teil { fill: rgba(242, 176, 30, 0.16); stroke: var(--text-3); stroke-width: 2; }
.piktogramm .p-text { font: 600 12px var(--schrift-titel); fill: var(--text-2); letter-spacing: 0.1em; text-anchor: middle; }
.piktogramm .p-knopf { fill: var(--glut); }
.piktogramm .p-dunkel { fill: none; stroke: var(--auf-glut); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.piktogramm .p-faden { fill: none; stroke: var(--glut-2); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 5; }
.piktogramm .p-an { fill: #fff3d9; }
/* Leise Bewegung: Buchstabe dreht sich, Datei kommt herunter, Licht atmet. */
.piktogramm .p-wippen { animation: p-wippen 3.2s ease-in-out infinite; }
.piktogramm .p-orbit { stroke-dasharray: 9 6; animation: p-orbit 1.6s linear infinite; }
.piktogramm .p-runter { animation: p-runter 1.8s ease-in-out infinite; }
.piktogramm .p-faden { animation: p-faden 0.9s linear infinite; }
.piktogramm .p-strahlen, .piktogramm .p-schein { animation: p-atmen 2.6s ease-in-out infinite; }
@keyframes p-wippen { 0%, 100% { transform: translate(1.8px, -1.3px); } 50% { transform: translate(-1.8px, -1.3px); } }
@keyframes p-orbit { to { stroke-dashoffset: -30; } }
@keyframes p-runter { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
@keyframes p-faden { to { stroke-dashoffset: -7; } }
@keyframes p-atmen { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
@media (max-width: 880px) { .schritte li > .schritt-bild { height: 150px; } }
.schritte h3::before {
  content: counter(schritt); display: inline-grid; place-items: center;
  width: 1.7em; height: 1.7em; margin-right: 10px; border-radius: 50%;
  background: var(--glut-schein); color: var(--glut); font-size: 0.9em;
}
.schritte p { color: var(--text-2); margin: 0; }
@media (max-width: 880px) { .schritte { grid-template-columns: 1fr; } }

.vorfuehrung {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px); align-items: center;
}
.vorfuehrung-bild {
  margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--linie);
  box-shadow: 0 30px 80px -40px rgba(var(--schatten), 0.24);
}
.vorfuehrung .liste-haken { margin-bottom: 1.4em; }
@media (max-width: 880px) { .vorfuehrung { grid-template-columns: 1fr; } }

.galerie {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
  list-style: none; padding: 0; margin: 0;
}
.galerie figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; }
.galerie figcaption {
  position: absolute; left: 12px; bottom: 10px;
  font: 600 0.9rem var(--schrift-titel); color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 6px rgba(var(--schatten), 0.21);
}
.galerie figcaption span { font-weight: 500; color: var(--glut-2); }
.galerie img { transition: transform 0.4s ease; }
.galerie figure:hover img { transform: scale(1.04); }
@media (max-width: 880px) { .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Rund oder kantig: Unterabschnitt der Beispiele. */
.schriften { margin-top: clamp(48px, 7vw, 84px); }
.schriften h3 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.schriftvergleich { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.schriftvergleich figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--linie); background: var(--flaeche); }
.schriftvergleich figcaption { padding: 14px 18px; color: var(--text-2); }
.schriftvergleich figcaption strong { font: 600 1.15rem var(--schrift-titel); color: var(--text); margin-right: 8px; }
.vergleich-aufruf { margin: 26px 0 0; }
@media (max-width: 880px) { .schriftvergleich { grid-template-columns: 1fr; } }

/* Beim Weiterscrollen schieben sich Schritte, Galerie und Vergleich herein -
   versetzt, damit es nach Tiefe aussieht. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .schritte li, .galerie li, .schriftvergleich figure {
      animation: auftauchen linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
    .schritte li:nth-child(2), .galerie li:nth-child(4n+2), .schriftvergleich figure:nth-child(2) { animation-range: entry 10% entry 85%; }
    .schritte li:nth-child(3), .galerie li:nth-child(4n+3) { animation-range: entry 20% entry 100%; }
    .galerie li:nth-child(4n) { animation-range: entry 30% cover 30%; }
  }
}
@keyframes auftauchen { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }

/* Galerie "Jeder Name wird zur Spardose": das Bild wandert etwas langsamer
   als die Seite. Die Zeitleiste sitzt an der figure: sie hat overflow:hidden
   und ist damit selbst ein Scroll-Container - eine Zeitleiste darin wuerde
   die (nie scrollende) figure messen statt der Seite. */
.galerie figcaption { z-index: 1; }
.galerie figure { view-timeline: --tiefe; }
img.aus { display: none; }
@supports ((animation-timeline: view()) and (animation-range: entry)) {
  @media (prefers-reduced-motion: no-preference) {
    .galerie figure img {
      scale: 1.12;
      animation: galerie-tiefe linear both;
      animation-timeline: --tiefe;
      animation-range: cover 0% cover 100%;
    }
  }
}
@keyframes galerie-tiefe { from { translate: 0 -5%; } to { translate: 0 5%; } }

/* --- Kontaktformular (Startseite und /kontakt/) ---------------------------- */

.kontakt-huelle { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.kontakt-huelle .abschnitt-kopf { margin-bottom: 0; }
.kontaktform { display: grid; gap: 12px; max-width: 640px; }
.kontaktform label { display: grid; gap: 6px; font-size: 0.9rem; color: var(--text-2); }
.kontaktform .feld { margin: 0; }
.kontaktform textarea { resize: vertical; min-height: 8em; }
.kontaktform .knopf { justify-self: start; }
/* Einwilligung: Pflicht-Haekchen, ohne das der Browser nicht absendet. */
.kontaktform .einwilligung {
  display: flex; gap: 10px; align-items: flex-start; cursor: pointer;
  font-size: 0.88rem; line-height: 1.5; margin: 2px 0 4px;
}
.kontaktform .einwilligung input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; cursor: pointer; }
.feldpaar { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kontakt-status { margin: 0; min-height: 1.3em; font-size: 0.92rem; }
.kontakt-status[data-state="success"] { color: var(--ok); }
.kontakt-status[data-state="error"] { color: var(--fehler); }
.kontakt-status[data-state="sending"] { color: var(--text-3); }
.textseite .kontaktform { margin: 24px 0; }
@media (max-width: 760px) {
  .kontakt-huelle, .feldpaar { grid-template-columns: 1fr; }
}

/* --- Fuss ------------------------------------------------------------------ */

.fuss { margin-top: auto; border-top: 1px solid var(--linie); padding: 28px 0; color: var(--text-3); font-size: 0.92rem; }
.fuss .huelle { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; }
.fuss a { color: var(--text-2); text-decoration: none; }
.fuss a:hover { color: var(--text); }

/* --- Textseiten (Impressum, Datenschutz, Kontakt, 404) --------------------- */

.textseite { padding: 56px 0 80px; }
.textseite .huelle { max-width: 760px; }
.textseite p, .textseite li { color: var(--text-2); }
.textseite h2 { font-size: 1.25rem; margin-top: 1.8em; }

/* Widerruf: Online-Funktion (§ 356a BGB) oben, Belehrung darunter. */
.widerruf-karte { margin: 24px 0 8px; border-color: rgba(242, 176, 30, 0.72); }
.widerruf-karte h2 { margin-top: 0; }
.widerruf-form { display: grid; gap: 12px; margin-top: 6px; }
.widerruf-form label { display: grid; gap: 6px; font-size: 0.92rem; color: var(--text-2); }
.widerruf-form label small { color: var(--text-3); }
.widerruf-form .feld { margin: 0; }
.widerruf-form .knopf { justify-self: start; }
.widerruf-form .meldung { margin: 0; min-height: 1.2em; font-size: 0.92rem; }
.widerruf-form .meldung[data-art="fehler"] { color: var(--fehler); }
.widerruf-form .meldung[data-art="warten"] { color: var(--text-3); }
.widerruf-karte .hinweisbox { margin: 12px 0 0; }
.widerruf-karte .hinweisbox p { margin: 0 0 8px; }
.muster-formular { border: 1px dashed var(--linie); border-radius: var(--radius-klein); padding: 16px 20px; }
.muster-formular ul { padding-left: 0; list-style: none; }
.muster-formular li::before { content: "– "; }
/* "Vertrag widerrufen" im Fuss und im Designer: hervorgehoben, wie § 356a BGB verlangt. */
.fuss .fuss-widerruf, .tafel-rechtliches .fuss-widerruf { color: var(--glut-2); font-weight: 600; }
.tafel-rechtliches { margin: 26px 0 0; font-size: 0.8rem; color: var(--text-3); line-height: 1.8; }
.tafel-rechtliches a { color: var(--text-2); text-decoration: none; }
.tafel-rechtliches a:hover { color: var(--text); }

/* --- Dialog ---------------------------------------------------------------- */

dialog {
  border: 1px solid var(--linie); border-radius: 18px; padding: 28px;
  background: var(--flaeche); color: var(--text);
  width: min(420px, calc(100vw - 32px));
  box-shadow: 0 30px 80px rgba(var(--schatten), 0.18);
}
dialog::backdrop { background: rgba(18, 55, 47, 0.42); backdrop-filter: blur(3px); }
dialog h2 { font-size: 1.5rem; padding-right: 40px; }
.dialog-zu {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px;
  display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 0; border-radius: 50%; background: transparent; color: var(--text-3);
}
.dialog-zu svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }
.dialog-zu:hover { background: var(--flaeche-2); color: var(--text); }
.dialog-zu:focus-visible { outline: 2px solid var(--glut); outline-offset: 2px; }
dialog p { color: var(--text-2); }
dialog .knopf { width: 100%; }
dialog .klein { font-size: 0.85rem; color: var(--text-3); margin: 14px 0 0; }
dialog .meldung { color: var(--fehler); font-size: 0.92rem; min-height: 1.2em; margin: 10px 0 0; }
dialog .meldung[data-art="ok"] { color: var(--ok); }
html:has(dialog[open]:modal) { overflow: hidden; }

.trenner {
  display: flex; align-items: center; gap: 12px; margin: 18px 0 14px;
  font-size: 0.85rem; color: var(--text-3);
}
.trenner::before, .trenner::after { content: ""; flex: 1; height: 1px; background: var(--linie); }
.email-form { display: grid; gap: 6px; }
.email-form label { font-size: 0.88rem; color: var(--text-2); }
.email-form .knopf { margin-top: 10px; }
.feld {
  width: 100%; padding: 0.7em 0.9em; border-radius: var(--radius-klein);
  border: 1px solid var(--linie); background: var(--flaeche-2); color: var(--text);
  font: inherit; margin-bottom: 6px;
}
.feld:focus { border-color: var(--glut); outline: none; box-shadow: 0 0 0 4px var(--glut-schein); }
.dialog-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin: 6px 0 0; }
.textknopf {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: 0.9rem; color: var(--glut-2); text-decoration: underline; text-underline-offset: 3px;
}
.textknopf:hover { color: var(--glut); }
.textknopf:disabled { opacity: 0.5; cursor: not-allowed; }
/* Anmeldedialog, Ansicht "Bitte bestaetige deine E-Mail-Adresse". */
.postfach-symbol {
  width: 44px; height: 44px; margin: 2px 0 6px;
  fill: none; stroke: var(--glut); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.postfach strong { color: var(--text); overflow-wrap: anywhere; }
.postfach .knopf { margin-top: 14px; }
.postfach .dialog-links { justify-content: center; margin-top: 12px; }

/* --- Designer -------------------------------------------------------------- */

.designer {
  flex: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) 380px;
  min-height: calc(100vh - 65px);
}
.buehne {
  position: relative; min-height: 420px;
  background: #e9f1ed;
}
.buehne canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.buehne-status {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  color: var(--text-2); text-align: center; pointer-events: none;
}
.buehne-status .kreis {
  width: 34px; height: 34px; margin: 0 auto 12px; border-radius: 50%;
  border: 3px solid var(--linie); border-top-color: var(--glut);
  animation: drehen 0.9s linear infinite;
}
@keyframes drehen { to { rotate: 1turn; } }
/* Meldungen (ohne Ladekreis) in einem Kasten - vor der leuchtenden Lampe
   waere der Text sonst kaum zu lesen. */
.buehne-status.buehne-meldung {
  width: min(420px, calc(100% - 32px)); padding: 16px 20px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.96); border: 1px solid var(--linie); color: var(--text);
}
.buehne-status span { display: block; }
.buehne-status .knopf { pointer-events: auto; margin-top: 12px; }
/* Karte mitten auf der Buehne, solange noch keine Lampe gebaut wurde. */
.start-karte {
  position: absolute; left: 50%; top: 46%; translate: -50% -50%;
  width: min(440px, calc(100% - 32px)); max-height: calc(100% - 90px); overflow-y: auto;
  padding: 26px 26px 22px; border-radius: 18px; text-align: center;
  background: rgba(255, 255, 255, 0.95); border: 1px solid var(--linie);
  box-shadow: 0 30px 80px -30px rgba(var(--schatten), 0.24);
}
.start-karte[hidden] { display: none; }
.start-symbol { width: 52px; height: 52px; margin: 0 auto 10px; display: block; }
.start-karte h2 { font-size: 1.4rem; margin-bottom: 8px; }
.start-karte p { color: var(--text-2); margin: 0 0 14px; }
.start-karte .klein { font-size: 0.85rem; color: var(--text-3); margin: 12px 0 0; }
.start-schritte {
  display: grid; gap: 6px; margin: 0 auto 18px; padding: 0; max-width: 300px;
  list-style: none; counter-reset: schritt; text-align: left; color: var(--text-2); font-size: 0.93rem;
}
.start-schritte li { display: flex; gap: 10px; align-items: baseline; counter-increment: schritt; }
.start-schritte li::before {
  content: counter(schritt); flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font: 600 0.78rem var(--schrift-titel);
  background: var(--glut-schein); color: var(--glut-2);
}
@media (max-width: 960px) {
  .start-karte { top: 50%; padding: 18px 18px 16px; }
  .start-karte .start-schritte, .start-karte .klein { display: none; }
  .start-symbol { width: 40px; height: 40px; }
}
.buehne-leiste {
  position: absolute; left: 16px; right: 16px; bottom: 14px;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; pointer-events: none;
}
.buehne-leiste > * { pointer-events: auto; }
.masse {
  margin-left: auto; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.86); border: 1px solid var(--linie);
  color: var(--text-2); font-size: 0.88rem; font-variant-numeric: tabular-nums;
}
.masse[data-warnung] { border-color: rgba(242, 176, 30, 0.90); color: var(--glut-2); }
.hinweis-drehen { color: var(--text-3); font-size: 0.85rem; }
.umschalter {
  display: inline-flex; padding: 3px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.9); border: 1px solid var(--linie);
}
.umschalter label {
  padding: 0.38em 0.95em; border-radius: 999px; cursor: pointer;
  font-size: 0.88rem; font-weight: 600; color: var(--text-2); white-space: nowrap;
}
.umschalter label:has(:checked) { background: var(--glut); color: var(--auf-glut); }
.umschalter label:has(:focus-visible) { outline: 2px solid var(--glut); outline-offset: 2px; }
.umschalter input { position: absolute; opacity: 0; pointer-events: none; }

.tafel {
  background: var(--nacht-2); border-left: 1px solid var(--linie);
  padding: 22px 22px 28px; overflow-y: auto; max-height: calc(100vh - 65px);
  position: sticky; top: 65px;
}
.tafel h1 { font-size: 1.45rem; margin-bottom: 4px; }
.tafel .unter { color: var(--text-3); font-size: 0.9rem; margin-bottom: 18px; }

@media (max-width: 960px) {
  .designer { grid-template-columns: 1fr; }
  .buehne { min-height: 0; height: 56vh; }
  .tafel { max-height: none; position: static; border-left: 0; border-top: 1px solid var(--linie); }
  /* Die Leiste soll eine Zeile bleiben, sonst verdeckt sie den Fuss der Lampe. */
  .hinweis-drehen { display: none; }
  .buehne-leiste { left: 10px; right: 10px; bottom: 10px; flex-wrap: nowrap; gap: 8px; }
  .buehne-leiste .knopf { font-size: 0.8rem; padding: 0.4em 0.8em; white-space: nowrap; }
  .buehne-leiste #ansicht { display: none; }
  .umschalter label { font-size: 0.78rem; padding: 0.35em 0.7em; }
  .masse { font-size: 0.76rem; padding: 5px 9px; }
}

.gruppe { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.gruppe > legend, .gruppe > .titel {
  font-weight: 600; font-size: 0.82rem; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text-3); padding: 0; margin-bottom: 10px;
}

.feld-name {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-klein);
  border: 1px solid var(--linie); background: var(--flaeche); color: var(--text);
  font: 600 1.35rem var(--schrift-titel); letter-spacing: 0.06em; text-transform: uppercase;
}
.feld-name:focus { border-color: var(--glut); outline: none; box-shadow: 0 0 0 4px var(--glut-schein); }
.feld-name:user-invalid { border-color: var(--fehler); }
.feld-name::placeholder { text-transform: none; letter-spacing: 0.02em; color: var(--text-3); }
.name-zeile { display: flex; gap: 8px; }
.name-zeile .feld-name { flex: 1; min-width: 0; }
.knopf-vorschau { flex: none; padding-inline: 1.1em; }
.feld-hilfe { display: flex; justify-content: space-between; font-size: 0.84rem; color: var(--text-3); margin-top: 6px; }
.feld-hilfe .fehler { color: var(--fehler); }

.wahl { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.wahl label {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 10px 8px; border-radius: var(--radius-klein); cursor: pointer; text-align: center;
  border: 1px solid var(--linie); background: var(--flaeche); color: var(--text-2);
  font-weight: 600; font-size: 0.95rem; transition: border-color 0.15s, background 0.15s;
}
.wahl label small { font-weight: 400; color: var(--text-3); font-size: 0.78rem; }
.wahl label:hover { border-color: var(--linie-fest); }
.wahl label:has(:checked) { border-color: var(--glut); background: rgba(242, 176, 30, 0.13); color: var(--text); }
.wahl label:has(:focus-visible) { outline: 2px solid var(--glut); outline-offset: 2px; }
.wahl input { position: absolute; opacity: 0; pointer-events: none; }

.regler { margin-bottom: 14px; }
.regler label { display: flex; justify-content: space-between; font-size: 0.93rem; color: var(--text-2); margin-bottom: 4px; }
.regler output { color: var(--text); font-variant-numeric: tabular-nums; font-weight: 600; }
input[type="range"] { width: 100%; margin: 4px 0; }

.farben { display: flex; flex-wrap: wrap; gap: 8px; }
.farben label {
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer; position: relative;
  background: var(--f); box-shadow: inset 0 0 0 1px rgba(18, 55, 47, 0.28);
  transition: transform 0.12s;
}
.farben label:hover { transform: scale(1.08); }
.farben label:has(:checked) { box-shadow: 0 0 0 2px var(--nacht-2), 0 0 0 4px var(--glut); }
.farben label:has(:focus-visible) { outline: 2px solid var(--glut); outline-offset: 4px; }
.farben input { position: absolute; opacity: 0; pointer-events: none; }
.farben .eigene {
  background: conic-gradient(#ff5f5f, #ffd25f, #5fff8f, #5fd2ff, #9b7bff, #ff5fd2, #ff5f5f);
  overflow: hidden;
}
.farben .eigene input[type="color"] { inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; pointer-events: auto; }

.schalter { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; color: var(--text-2); }
.schalter input {
  appearance: none; width: 44px; height: 26px; border-radius: 999px; margin: 0;
  background: var(--linie); position: relative; cursor: pointer; transition: background 0.2s;
}
.schalter input::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; transition: translate 0.2s;
}
.schalter input:checked { background: var(--glut); }
.schalter input:checked::after { translate: 18px 0; }

details.technik {
  border: 1px solid var(--linie); border-radius: var(--radius-klein);
  padding: 0 14px; margin-bottom: 22px; background: var(--flaeche);
}
details.technik summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: var(--text-2); }
details.technik[open] { padding-bottom: 12px; }
details.technik p { font-size: 0.86rem; color: var(--text-3); }

.kasse {
  border-top: 1px solid var(--linie); padding-top: 18px; margin-top: 6px;
}
.kasse .kosten { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.kasse .kosten strong { font: 600 1.4rem var(--schrift-titel); color: var(--glut-2); }
.kasse .knopf { width: 100%; }
.kasse .klein { font-size: 0.84rem; color: var(--text-3); margin: 10px 0 0; }
.kasse .meldung { font-size: 0.9rem; margin: 10px 0 0; }
.kasse .meldung[data-art="fehler"] { color: var(--fehler); }
.kasse .meldung[data-art="ok"] { color: var(--ok); }
.kasse .meldung a { color: var(--glut-2); }
.kasse .fertig { margin-top: 10px; }
.kasse .knopf-merken { margin-top: 8px; }
/* Zwei Wege: selbst drucken (Druckdatei) oder drucken lassen (Warenkorb),
   umgeschaltet ueber .weg-wahl - sichtbar ist immer nur einer. */
.weg-zeile { border-top: 1px solid var(--linie); padding-top: 18px; margin-top: 6px; }
.weg-zeile[hidden] { display: none; }
.weg-wahl { display: flex; }
.weg-wahl label { flex: 1; text-align: center; padding-block: 0.55em; font-size: 0.92rem; }
.weg-zeile:not([hidden]) ~ .kasse { border-top: 0; padding-top: 14px; margin-top: 0; }
.kasse-unter { font-size: 0.86rem; color: var(--text-3); margin: 0 0 10px; }
.drucken-lassen .guthaben-zeile { font-size: 0.86rem; }

/* Beispielnamen fuer Gaeste (Startkarte und Hinweis auf der Buehne). */
.beispiele-gast { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--linie); }
.beispiele-gast p { margin: 0 0 8px; font-size: 0.9rem; }
.beispiel-namen { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 10px 0 4px; }
.beispiel-name {
  padding: 5px 12px; border-radius: 999px; cursor: pointer; pointer-events: auto;
  background: var(--flaeche-2); border: 1px solid var(--linie); color: var(--text);
  font: 600 0.85rem var(--schrift-titel); letter-spacing: 0.04em;
}
.beispiel-name:hover, .beispiel-name:focus-visible { border-color: var(--glut); color: var(--glut-2); outline: none; }

/* Dialog "In den Warenkorb": die Lampe in zwei Ansichten, Beschreibung, Preis. */
.korb-bilder { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.korb-bilder figure { margin: 0; }
.korb-bilder img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-klein); background: var(--nacht-2); }
.korb-bilder figcaption { font-size: 0.8rem; color: var(--text-3); text-align: center; margin-top: 4px; }
.korb-beschreibung { font-size: 0.88rem; margin: 0 0 12px; }
.korb-preis { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 16px; }
.korb-preis strong { display: block; font: 600 1.35rem var(--schrift-titel); color: var(--glut-2); }
.korb-preis span { font-size: 0.82rem; color: var(--text-3); }
.korb-preis label { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text-2); }
.korb-preis .feld { width: 76px; margin: 0; text-align: center; }
/* Ob das Guthaben fuer die Lampe reicht - direkt ueber dem Knopf. */
.guthaben-zeile { font-size: 0.86rem; color: var(--text-3); margin: -4px 0 12px; min-height: 1.3em; }
.guthaben-zeile:empty { display: none; }
.guthaben-zeile[data-art="ok"] { color: var(--ok); }
.guthaben-zeile[data-art="fehlt"] { color: var(--glut-2); }
.guthaben-zeile a { color: var(--glut-2); font-weight: 600; }

/* Entwuerfe unter der Kasse: anklicken laedt, das Kreuz loescht. */
.entwuerfe { border-top: 1px solid var(--linie); margin-top: 22px; padding-top: 18px; }
.entwuerfe-kopf { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.entwuerfe-kopf h2 { font-size: 1.1rem; margin: 0; }
.entwuerfe-zahl { font-size: 0.82rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.entwurf-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.entwurf-liste li {
  display: flex; align-items: stretch; border-radius: var(--radius-klein);
  border: 1px solid var(--linie); background: var(--flaeche); transition: border-color 0.15s;
}
.entwurf-liste li:hover { border-color: var(--linie-fest); }
.entwurf-liste li.aktiv { border-color: var(--glut); background: rgba(242, 176, 30, 0.10); }
.entwurf-laden {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px;
  padding: 9px 4px 9px 11px; border: 0; background: none; color: var(--text);
  font: inherit; text-align: left; cursor: pointer; border-radius: var(--radius-klein) 0 0 var(--radius-klein);
}
.entwurf-farbe {
  flex: none; width: 14px; height: 14px; border-radius: 50%;
  background: var(--f); box-shadow: inset 0 0 0 1px rgba(18, 55, 47, 0.28);
}
.entwurf-text { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.entwurf-text strong { font: 600 1rem var(--schrift-titel); letter-spacing: 0.05em; overflow: hidden; text-overflow: ellipsis; }
.entwurf-text small { font-size: 0.78rem; color: var(--text-3); }
.entwurf-preis { flex: none; font-size: 0.86rem; font-weight: 600; color: var(--glut-2); font-variant-numeric: tabular-nums; }
.entwurf-weg {
  flex: none; width: 36px; display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 0; background: none; color: var(--text-3); border-radius: 0 var(--radius-klein) var(--radius-klein) 0;
}
.entwurf-weg svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }
.entwurf-weg:hover { color: var(--fehler); }
.entwurf-laden:focus-visible, .entwurf-weg:focus-visible { outline: 2px solid var(--glut); outline-offset: -2px; }
.entwuerfe-summe { margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-klein); background: var(--flaeche); border: 1px dashed var(--linie); }
.entwuerfe-summe .zeile { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.entwuerfe-summe .zeile strong { font: 600 1.15rem var(--schrift-titel); color: var(--glut-2); }
.entwuerfe-summe p { font-size: 0.86rem; color: var(--text-2); margin: 6px 0 0; }
.entwuerfe-summe p[data-art="ok"] { color: var(--ok); }
.entwuerfe-summe .knopf { margin-top: 10px; width: 100%; }

/* "Direkt oeffnen in Bambu Studio · OrcaSlicer" - Designer und Kontoseite. */
.slicer-zeile { margin: 10px 0 0; font-size: 0.88rem; color: var(--text-3); }
.slicer-zeile .textknopf { font-size: 0.88rem; }

/* Preis im Knopf "Druckdatei erzeugen · 4 Credits" */
.knopf-preis { font-weight: 700; opacity: 0.78; white-space: nowrap; }


/* Rueckfrage vor dem Erzeugen */
dialog.dialog-bestaetigen { width: min(540px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 24px; }
.bestaetigen-bild {
  display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; margin: 4px 0 10px;
  border-radius: var(--radius-klein); background: var(--nacht-2); border: 1px solid var(--linie);
}
.bestaetigen-masse { display: block; width: 100%; border-radius: var(--radius-klein); margin-bottom: 12px; }
.bestaetigen-daten { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 4px 14px; margin: 0 0 12px; font-size: 0.9rem; }
@media (max-width: 480px) { .bestaetigen-daten { grid-template-columns: auto minmax(0, 1fr); } }
.bestaetigen-daten dt { color: var(--text-3); }
.bestaetigen-daten dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; }
.bestaetigen-preis { font-size: 0.95rem; color: var(--text-2); }
.bestaetigen-preis strong { color: var(--glut-2); }
.bestaetigen-preis .fehlt { color: var(--glut-2); font-weight: 600; }
dialog.dialog-bestaetigen .knopfzeile .knopf { width: auto; flex: 1 1 auto; }

/* Kontakt unten rechts im Designer */
.kontakt-knopf {
  position: fixed; right: 20px; bottom: 20px; z-index: 30;
  width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--auf-glut);
  background: linear-gradient(180deg, #ffd24f, #f2b01e);
  box-shadow: 0 10px 30px -8px rgba(242, 176, 30, 0.90), 0 0 0 1px rgba(var(--schatten), 0.07);
  transition: transform 0.15s, box-shadow 0.2s;
}
.kontakt-knopf:hover { transform: translateY(-2px); box-shadow: 0 0 0 6px var(--glut-schein), 0 12px 32px -8px rgba(242, 176, 30, 0.90); }
.kontakt-knopf svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Platz unter dem letzten Inhalt der Tafel, damit der Knopf nichts verdeckt. */
.designer .tafel { padding-bottom: 92px; }
dialog.dialog-kontakt { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); }
dialog.dialog-kontakt .kontaktform { margin-top: 10px; }
dialog.dialog-kontakt .kontaktform .knopf { width: auto; }
@media (max-width: 960px) {
  .kontakt-knopf { right: 14px; bottom: 14px; width: 50px; height: 50px; }
}

/* "Nach oben" unten rechts (nachoben.js), im Designer ueber dem Kontakt-Knopf. */
.nach-oben {
  position: fixed; right: 20px; bottom: 20px; z-index: 29;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; padding: 0;
  background: rgba(255, 255, 255, 0.94); border: 1px solid var(--linie); color: var(--text);
  box-shadow: 0 10px 30px -10px rgba(var(--schatten), 0.24); backdrop-filter: blur(6px);
  opacity: 0; translate: 0 12px; visibility: hidden;
  transition: opacity 0.2s, translate 0.2s, visibility 0s 0.2s, border-color 0.15s, color 0.15s;
}
.nach-oben[data-sichtbar] { opacity: 1; translate: 0 0; visibility: visible; transition-delay: 0s; }
.nach-oben:hover { border-color: var(--glut); color: var(--glut-2); }
.nach-oben:focus-visible { outline: 2px solid var(--glut); outline-offset: 3px; }
.nach-oben svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
body:has(.kontakt-knopf) .nach-oben { right: 24px; bottom: 88px; }
@media (max-width: 960px) {
  .nach-oben { right: 14px; bottom: 14px; }
  body:has(.kontakt-knopf) .nach-oben { right: 16px; bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) { .nach-oben { transition: none; } }

/* --- Warenkorb und Bestellung (gedruckte Lampen) --------------------------- */

.shopseite .huelle { max-width: 1080px; }
.shopseite h1 { margin-bottom: 4px; }
.korb-raster { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; margin-top: 22px; }
@media (max-width: 880px) { .korb-raster { grid-template-columns: 1fr; } }
.korb-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.korb-posten {
  display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 16px; align-items: start;
  padding: 14px; border-radius: var(--radius); background: var(--flaeche); border: 1px solid var(--linie);
}
.korb-posten:not(:has(img, .korb-ohne-bild)) { grid-template-columns: minmax(0, 1fr) auto; }
.korb-posten img, .korb-ohne-bild { width: 180px; aspect-ratio: 4 / 3; border-radius: var(--radius-klein); object-fit: cover; background: var(--nacht-2); }
.korb-angaben h2 { font-size: 1.25rem; margin: 0 0 6px; letter-spacing: 0.04em; }
.korb-angaben p { margin: 0 0 6px; }
.korb-farben { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--text-2); font-size: 0.92rem; }
.korb-farben span { display: inline-flex; align-items: center; gap: 6px; }
.farbpunkt { width: 14px; height: 14px; border-radius: 50%; background: var(--f); border: 1px solid rgba(18, 55, 47, 0.3); }
.korb-aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 8px; }
.korb-aktionen label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text-2); }
.korb-aktionen .feld { width: 70px; margin: 0; padding: 0.45em 0.6em; text-align: center; }
.korb-betrag { font: 600 1.1rem var(--schrift-titel); color: var(--glut-2); text-align: right; white-space: nowrap; }
.korb-betrag span { display: block; font: 400 0.8rem var(--schrift); color: var(--text-3); }
@media (max-width: 560px) {
  .korb-posten { grid-template-columns: 1fr auto; }
  .korb-posten img, .korb-ohne-bild { grid-column: 1 / -1; width: 100%; }
}
.korb-kasse { position: sticky; top: 84px; margin: 0; }
.korb-kasse h2 { font-size: 1.2rem; }
.korb-kasse h3 { font-size: 0.95rem; margin: 16px 0 4px; }
.korb-kasse .knopf { width: 100%; margin-top: 12px; }
.korb-kasse .meldung { font-size: 0.9rem; margin: 10px 0 0; min-height: 1.2em; }
.korb-kasse .meldung[data-art="fehler"] { color: var(--fehler); }
.korb-kasse .meldung[data-art="warten"] { color: var(--text-3); }
.korb-kasse .meldung[data-art="ok"] { color: var(--ok); }
/* Gutschein und Zahlungsart in der Zusammenfassung. */
.gutschein-form { margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--linie); }
.gutschein-form label { display: block; font-size: 0.86rem; color: var(--text-2); margin-bottom: 6px; }
.gutschein-zeile { display: flex; gap: 8px; }
.gutschein-zeile .feld { flex: 1; min-width: 0; margin: 0; text-transform: uppercase; }
.korb-kasse .gutschein-zeile .knopf { width: auto; margin-top: 0; }
.gutschein-form .meldung { min-height: 0; margin-top: 6px; }
.korb-summen .textknopf { font-size: 0.8rem; margin-left: 4px; }
.zahlart {
  display: grid; gap: 4px; margin: 4px 0 12px; padding: 12px 14px; border-radius: var(--radius-klein);
  background: var(--flaeche-2); border: 1px solid var(--linie);
}
.zahlart strong { font-size: 0.95rem; }
.zahlart span { font-size: 0.84rem; color: var(--text-2); }
/* Versandart im Warenkorb waehlen (nur bei mehreren Versandarten, warenkorbseite.js). */
.versand-wahlen { display: grid; gap: 8px; border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.versand-wahlen legend { padding: 0; margin-bottom: 6px; font-size: 0.86rem; color: var(--text-2); }
.versand-wahl {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--linie); border-radius: var(--radius-klein);
  font-size: 0.92rem; cursor: pointer;
}
.versand-wahl:has(input:checked) { border-color: var(--glut); background: var(--flaeche-2); }
.versand-wahl input { margin: 0; accent-color: var(--glut); }
.versand-wahl span { display: grid; min-width: 0; }
.versand-wahl small { color: var(--text-2); font-size: 0.82rem; }
.versand-wahl b { font-weight: 600; white-space: nowrap; }
/* Versandarten im Admin (Shop-Karte). */
.shop-form .versand-arten { padding-top: 14px; border-top: 1px solid var(--linie); }
.shop-form .versand-arten .paket-neu { margin-top: 12px; }
.korb-summen { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0 0 12px; font-variant-numeric: tabular-nums; }
.korb-summen dt { color: var(--text-2); }
.korb-summen dd { margin: 0; text-align: right; }
.korb-summen .gesamt { font: 600 1.15rem var(--schrift-titel); color: var(--text); padding-top: 8px; border-top: 1px solid var(--linie); }
.korb-summen dd.gesamt { color: var(--glut-2); }
.korb-summen .klein { font-size: 0.82rem; }
.kreis-warten {
  width: 34px; height: 34px; margin: 0 auto 14px; border-radius: 50%;
  border: 3px solid var(--linie); border-top-color: var(--glut); animation: drehen 0.9s linear infinite;
}

/* --- Kontoseite ------------------------------------------------------------ */

.kontoseite { padding: 40px 0 80px; }
.kontoseite .huelle { max-width: 880px; }
.karte {
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 24px; margin-bottom: 22px;
}
.karte h2 { font-size: 1.35rem; }
.karte h2 small { font: 400 0.85rem var(--schrift); color: var(--text-3); }
.karte.leer { text-align: center; padding: 48px 24px; }
.unter { color: var(--text-3); }
.leer-text { color: var(--text-3); }
.klein { font-size: 0.86rem; color: var(--text-3); }

.kontokopf { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.kontokopf h1 { margin-bottom: 4px; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.kontokopf .unter { margin: 0; }
.guthaben-gross {
  text-align: right; padding: 14px 22px; border-radius: var(--radius);
  background: radial-gradient(80% 120% at 100% 0%, rgba(242, 176, 30, 0.26), transparent 70%), var(--flaeche);
  border: 1px solid var(--linie); color: var(--text-2);
}
.guthaben-gross .zahl { display: block; font: 600 2.4rem/1 var(--schrift-titel); color: var(--glut-2); }

.hinweisbox {
  border-radius: var(--radius-klein); padding: 14px 18px; margin: 0 0 22px;
  border: 1px solid rgba(95, 211, 154, 0.5); background: rgba(95, 211, 154, 0.08); color: var(--text);
}
.hinweisbox[data-art="fehler"] { border-color: rgba(255, 107, 107, 0.55); background: rgba(255, 107, 107, 0.08); }
.hinweisbox[data-art="warten"] { border-color: rgba(242, 176, 30, 0.80); background: rgba(242, 176, 30, 0.11); }
.hinweisbox p { margin: 0; }
.hinweisbox .knopfzeile { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 12px; }

.pakete { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 16px 0; }
.paket {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px 12px;
  border-radius: var(--radius-klein); border: 1px solid var(--linie); background: var(--nacht-2);
  cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.paket:hover { border-color: var(--linie-fest); }
.paket:has(:checked) { border-color: var(--glut); background: rgba(242, 176, 30, 0.13); }
.paket:has(:focus-visible) { outline: 2px solid var(--glut); outline-offset: 2px; }
.paket input { position: absolute; opacity: 0; pointer-events: none; }
.paket .paketname { font-size: 0.85rem; color: var(--text-2); font-weight: 600; }
.paket .menge { font: 600 1.4rem var(--schrift-titel); color: var(--glut-2); }
.paket .betrag { font-size: 1.05rem; }
.paket .reicht { font-size: 0.82rem; color: var(--text-3); }
.verzicht { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--text-2); margin: 0 0 16px; cursor: pointer; }
.verzicht input { margin-top: 3px; flex: none; width: 18px; height: 18px; }
#kauf-meldung { color: var(--fehler); font-size: 0.92rem; margin: 10px 0 0; }

.dateien { list-style: none; padding: 0; margin: 0; }
.dateien li {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 0; border-top: 1px solid var(--linie);
}
.dateien li:first-child { border-top: 0; }
.dateien strong { font: 600 1.15rem var(--schrift-titel); letter-spacing: 0.04em; display: block; }
.dateien span { color: var(--text-2); font-size: 0.9rem; display: block; }
.dateien small { color: var(--text-3); }
.dateien .aktionen { display: flex; flex-wrap: wrap; gap: 8px; }
.dateien .entwurf-farbe { display: inline-block; width: 12px; height: 12px; margin-right: 4px; vertical-align: 0.06em; }
.karte .meldung { font-size: 0.92rem; margin: 12px 0 0; }
.karte .meldung:empty { display: none; }
.karte .meldung[data-art="fehler"] { color: var(--fehler); }
.karte .meldung[data-art="ok"] { color: var(--ok); }
.karte .meldung a, .entwuerfe-summe a { color: var(--glut-2); }
.dateien .slicer-zeile { flex-basis: 100%; margin: -6px 0 0; text-align: right; }

.buchungen { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.buchungen th { text-align: left; color: var(--text-3); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 0 0 8px; }
.buchungen td { padding: 9px 0; border-top: 1px solid var(--linie); color: var(--text-2); }
.buchungen .zahl { text-align: right; font-variant-numeric: tabular-nums; }
.buchungen td.zahl { color: var(--text); }
.buchungen td.plus { color: var(--ok); }

.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 16px; }
.kennzahlen > div { background: var(--nacht-2); border-radius: var(--radius-klein); padding: 12px 14px; }
.kennzahlen .wert { display: block; font: 600 1.15rem var(--schrift-titel); }
.kennzahlen .lbl { font-size: 0.8rem; color: var(--text-3); }
.balken { height: 6px; border-radius: 3px; background: var(--linie); margin-top: 8px; overflow: hidden; }
.balken > div { height: 100%; background: var(--ok); width: 0; }
.balken > div[data-voll] { background: var(--glut); }

/* --- Preise ---------------------------------------------------------------- */

.preiskopf { padding-bottom: clamp(40px, 6vw, 72px); }
.preiskopf h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.preisformel {
  display: inline-flex; align-items: baseline; gap: 0.5em; margin: 0;
  padding: 18px 28px; border-radius: var(--radius);
  border: 1px solid rgba(242, 176, 30, 0.72); background: rgba(242, 176, 30, 0.11);
  font: 600 clamp(1.4rem, 3.4vw, 2rem) var(--schrift-titel); color: var(--text-2);
}
.preisformel strong { color: var(--glut-2); font-weight: 600; }

.preiskarten {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px;
}
.preiskarten li {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: 26px 24px; border-radius: var(--radius);
  border: 1px solid var(--linie); background: var(--flaeche);
}
.preiskarten li.empfohlen { border-color: var(--glut); box-shadow: 0 10px 40px -18px rgba(242, 176, 30, 0.90); }
.preiskarten h3 { font-size: 1.15rem; margin: 0 0 6px; color: var(--text-2); }
.preiskarten p { margin: 0; }
.preiskarten .menge { font: 600 2rem var(--schrift-titel); color: var(--glut-2); }
.preiskarten .betrag { font-size: 1.3rem; font-weight: 600; }
.preiskarten .je { color: var(--text-3); font-size: 0.9rem; }
.preiskarten .fuer { color: var(--text-2); font-size: 0.95rem; margin-top: 12px; }
.abzeichen {
  position: absolute; top: -12px; right: 18px; padding: 3px 12px; border-radius: 999px;
  background: var(--glut); color: var(--auf-glut); font-size: 0.8rem; font-weight: 700;
}
.preis-fuss { margin-top: 18px; }
.preis-fuss a { color: var(--glut-2); }

.rechner-huelle { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 72px); align-items: start; }
.rechner-huelle .feld-name { max-width: 420px; }
.rechner-ergebnis { margin: 14px 0 0; color: var(--text-2); min-height: 3em; }
.rechner-ergebnis strong { color: var(--glut-2); font-size: 1.15rem; }
.beispieltabelle { width: 100%; border-collapse: collapse; }
.beispieltabelle caption { text-align: left; font: 600 1.15rem var(--schrift-titel); margin-bottom: 10px; }
.beispieltabelle th, .beispieltabelle td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--linie); }
.beispieltabelle th { color: var(--text-3); font-weight: 500; font-size: 0.9rem; }
.beispieltabelle td:first-child { font-family: var(--schrift-titel); letter-spacing: 0.05em; }
.beispieltabelle td:last-child { color: var(--glut-2); font-weight: 600; }
.liste-zweispaltig { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 6px 40px; }

@media (max-width: 720px) {
  .rechner-huelle { grid-template-columns: minmax(0, 1fr); }
}
#preis-info a { color: var(--glut-2); margin-left: 0.4em; }

/* --- Admin-Bereich ---------------------------------------------------------- */

.adminseite { padding: 32px 0 80px; }
.admin-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 22px; }
.admin-kopf h1 { margin: 0; font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.admin-reiter {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px;
  background: var(--flaeche); border: 1px solid var(--linie);
}
.admin-reiter button {
  padding: 0.45em 1.05em; border: 0; border-radius: 999px; cursor: pointer;
  background: none; color: var(--text-2); font: 600 0.92rem var(--schrift);
}
.admin-reiter button:hover { color: var(--text); }
.admin-reiter button[aria-selected="true"] { background: var(--glut); color: var(--auf-glut); }
.admin-tafel { display: grid; gap: 22px; }
.admin-tafel[hidden] { display: none; }
.admin-kennzahlen { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 0; }
.admin-kennzahlen > div { background: var(--flaeche); border: 1px solid var(--linie); padding: 16px 18px; }
.admin-kennzahlen .wert { font-size: 1.5rem; color: var(--glut-2); }
.admin-kennzahlen .lbl { display: block; font-size: 0.86rem; color: var(--text-2); }
.unter-zahl { display: block; margin-top: 4px; font-size: 0.78rem; color: var(--text-3); }
.unter-zahl .warn, .warn { color: var(--fehler); font-weight: 600; }
.admin-zweier { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; align-items: start; }
.admin-zweier .karte { margin: 0; }
.betrieb-zeile {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--linie);
}
.betrieb-zeile:first-of-type { border-top: 0; padding-top: 0; }
.betrieb-zeile > div { flex: 1; min-width: 0; }
.betrieb-zeile strong { display: block; font-size: 0.95rem; }
.betrieb-zeile span { font-size: 0.86rem; color: var(--text-3); }
.grenzen-stand { font-size: 0.9rem; color: var(--text-2); margin: 0 0 14px; }
.grenzen-form { display: grid; gap: 8px; }
.grenzen-form label {
  display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 12px; align-items: center;
  font-size: 0.92rem; color: var(--text-2);
}
.grenzen-form label small { color: var(--text-3); }
.grenzen-form .feld { margin: 0; text-align: right; }
.grenzen-form .klein { margin: 4px 0 2px; }
.grenzen-form .meldung { margin: 0; }
.grenzen-form .knopf { justify-self: start; }
.admin-liste { list-style: none; padding: 0; margin: 0 0 12px; }
.admin-liste li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 8px 0; border-top: 1px solid var(--linie); }
.admin-liste li:first-child { border-top: 0; }
.admin-liste .rechts { margin-left: auto; }
.admin-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.admin-filter .feld { width: auto; margin: 0; }
.admin-filter input[type="search"] { flex: 1 1 260px; max-width: 420px; }
.admin-zahl { font-size: 0.88rem; color: var(--text-3); margin-left: auto; }

.tabelle-huelle { overflow-x: auto; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--flaeche); }
.admin-tabelle { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-tabelle th {
  text-align: left; white-space: nowrap; padding: 11px 14px; background: var(--nacht-2);
  color: var(--text-3); font-weight: 600; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em;
}
.admin-tabelle td { padding: 10px 14px; border-top: 1px solid var(--linie); color: var(--text-2); vertical-align: top; }
.admin-tabelle td strong { color: var(--text); }
.admin-tabelle td .klein { display: block; }
.admin-tabelle .zahl { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.admin-tabelle td.zahl b { color: var(--glut-2); }
.admin-tabelle td.plus { color: var(--ok); }
.admin-tabelle td.minus { color: var(--fehler); }
.admin-tabelle tr[data-nutzer] { cursor: pointer; }
.admin-tabelle tr[data-nutzer]:hover td, .admin-tabelle tr[data-nutzer]:focus-visible td { background: var(--flaeche-2); }
.admin-tabelle tr[data-nutzer]:focus-visible { outline: 2px solid var(--glut); outline-offset: -2px; }
.klein-tabelle { font-size: 0.85rem; }
.klein-tabelle td { padding: 7px 10px; }
.klein-tabelle tr:first-child td { border-top: 0; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 0.78rem; }
.hinweis-text { display: block; font-size: 0.8rem; color: var(--glut-2); }
.konto-oeffnen { font-size: inherit; text-align: left; }
.status {
  display: inline-block; padding: 1px 8px; border-radius: 999px; white-space: nowrap;
  font-size: 0.76rem; font-weight: 600; border: 1px solid var(--linie); color: var(--text-2);
}
.status[data-s="bezahlt"], .status[data-s="fertig"] { color: var(--ok); border-color: rgba(95, 211, 154, 0.45); }
.status[data-s="fehler"], .status[data-s="fehlgeschlagen"] { color: var(--fehler); border-color: rgba(255, 107, 107, 0.5); }
.status[data-s="offen"], .status[data-s="laeuft"] { color: var(--glut-2); border-color: rgba(242, 176, 30, 0.72); }
.status[data-s="admin"] { color: var(--violett); border-color: rgba(155, 123, 255, 0.5); vertical-align: 0.15em; }
/* Bestellungen: "bezahlt" heisst hier "neu, bitte drucken" - darum auffaellig. */
.status[data-s="versendet"] { color: var(--ok); border-color: rgba(95, 211, 154, 0.45); }
.status[data-s="in_arbeit"] { color: var(--violett); border-color: rgba(155, 123, 255, 0.5); }
.status[data-s="storniert"], .status[data-s="abgebrochen"] { color: var(--text-3); }
#tafel-bestellungen .status[data-s="bezahlt"], #bestell-dialog .status[data-s="bezahlt"] { color: var(--glut-2); border-color: rgba(242, 176, 30, 0.88); }
#bestell-dialog h2 .status { vertical-align: 0.2em; font-size: 0.8rem; }
.bestell-zweier { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 22px; }
.bestell-zweier h3 { font-size: 0.95rem; margin: 6px 0 4px; }
.bestell-zweier p { margin: 0; color: var(--text-2); font-size: 0.92rem; }
.bestell-notiz { display: grid; gap: 5px; margin-top: 10px; font-size: 0.86rem; color: var(--text-2); }
.bestell-notiz small { color: var(--text-3); }
.bestell-notiz .feld { margin: 0; resize: vertical; }
#bestell-dialog .farbpunkt { display: inline-block; vertical-align: -2px; }
.shop-karte { margin-top: 26px; }
.shop-form { display: grid; gap: 14px; }
.shop-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.shop-form legend { font-weight: 600; margin-bottom: 8px; }
.shop-form legend small, .shop-felder small { font-weight: 400; color: var(--text-3); }
.shop-preise { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px 12px; }
.shop-preise label, .shop-felder label { display: grid; gap: 4px; font-size: 0.86rem; color: var(--text-2); }
.shop-preise .feld, .shop-felder .feld { margin: 0; }
.shop-felder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; }
.shop-felder .breit { grid-column: 1 / -1; }
@media (max-width: 640px) { .shop-felder { grid-template-columns: 1fr; } }
.shop-form .knopf { justify-self: start; }
/* Videomodus des Designers (/admin/designer/, data-modus in designer/index.html):
   nur Gestalten und Erzeugen - ohne Preise, Credits, Entwuerfe, Warenkorb und Konto. */
html[data-modus="video"] :is(.konto, .kopf-warenkorb, .kontakt-knopf, .tafel > .unter, #beispiele-gast,
  #weg-wahl, #drucken-lassen, .kasse .kosten, #guthaben-zeile, #merken, #entwuerfe, .tafel-rechtliches,
  #bestaetigen-preis, #bestaetigen-preis + .klein, .slicer-orca, .fertig-konto, #start-karte > .klein,
  #anmelden [data-ansicht="anmelden"] > p:first-child) { display: none !important; }
/* Massskizze unten in der Tafel, nur im Videomodus (designer.js massbildZeigen). */
.tafel-masse { display: block; width: 100%; border-radius: var(--radius-klein); margin-top: 20px; }
.pakete-karte { margin-bottom: 26px; }
.pakete-zeilen { display: grid; gap: 14px; }
.shop-form .paket-zeile { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--linie); }
.shop-form .paket-zeile:first-child { padding-top: 0; border-top: 0; }
.paket-fuss { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.86rem; color: var(--text-2); }
.paket-beliebt { display: flex; align-items: center; gap: 8px; }
.paket-neu { justify-self: start; }
.shop-felder .zwei { grid-column: span 2; }
@media (max-width: 640px) { .shop-felder .zwei { grid-column: auto; } }
.code-zeile { display: flex; align-items: center; gap: 10px; }
.code-zeile .feld { flex: 1; min-width: 0; text-transform: uppercase; }
.gutschein-anlegen { margin-bottom: 18px; }

/* Ein Konto im Detail */
dialog.dialog-breit { width: min(820px, calc(100vw - 24px)); max-height: calc(100vh - 40px); padding: 26px; }
#nd-kopf h2 { margin-bottom: 6px; }
.nd-daten { font-size: 0.9rem; color: var(--text-2); margin: 0 0 14px; }
.nd-guthaben {
  display: inline-flex; align-items: baseline; gap: 10px; padding: 10px 18px; margin-bottom: 18px;
  border-radius: var(--radius-klein); border: 1px solid var(--linie);
  background: radial-gradient(80% 120% at 100% 0%, rgba(242, 176, 30, 0.26), transparent 70%), var(--nacht-2);
}
.nd-guthaben .zahl { font: 600 2rem/1 var(--schrift-titel); color: var(--glut-2); }
.nd-guthaben span:last-child { color: var(--text-2); font-size: 0.9rem; }
.credits-form {
  padding: 16px 18px; margin-bottom: 20px; border-radius: var(--radius-klein);
  border: 1px solid rgba(242, 176, 30, 0.56); background: rgba(242, 176, 30, 0.08);
}
.credits-form h3 { font-size: 1rem; margin-bottom: 10px; }
.credits-felder { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; align-items: end; }
.credits-felder label { display: grid; gap: 5px; font-size: 0.86rem; color: var(--text-2); }
.credits-felder label small { color: var(--text-3); }
.credits-felder .feld { margin: 0; }
.credits-vorschau { font-size: 0.84rem; color: var(--text-3); margin: 8px 0 0; min-height: 1.3em; }
dialog .credits-form .knopf { width: auto; }
.knopfzeile { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.credits-form .meldung, .karte .meldung { margin-top: 10px; }
.credits-form .meldung[data-art="ok"] { color: var(--ok); }
.nd-abschnitt { margin-top: 18px; }
.nd-abschnitt h3 { font-size: 1rem; margin-bottom: 8px; }
@media (max-width: 560px) {
  .credits-felder { grid-template-columns: 1fr; }
  dialog.dialog-breit { padding: 20px 16px; }
}

/* Link "Admin" im Kopf - nur fuer Admins, auf dem Telefon ueber /konto/. */
.konto-admin {
  padding: 4px 11px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  border: 1px solid rgba(155, 123, 255, 0.45); color: var(--violett); font-size: 0.85rem; font-weight: 600;
}
.konto-admin:hover { color: var(--violett); background: rgba(155, 123, 255, 0.18); }
@media (max-width: 820px) { .konto-admin { display: none; } }

/* --- Bewegung reduzieren (gilt fuer alle Seiten) --------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* --- Montageanleitung (/anleitung/) ----------------------------------------
   Schwarz-weiss wie gedruckt, auch am Bildschirm; die Zeichnungen sind
   Strichgrafiken (scratch: anleitung.py erzeugt sie). */

.anleitung { background: #fff; color: #111; padding: 48px 0 64px; }
.anleitung .huelle { max-width: 820px; }
.anleitung h1, .anleitung h2, .anleitung h3, .anleitung strong { color: #000; }
.anleitung p, .anleitung li { color: #222; }
.anleitung a { color: #000; }
.anleitung .knopf { background: #fff; color: #000; border-color: #000; box-shadow: none; }
.anleitung .knopf:hover { background: #000; color: #fff; }
.anleitung-kopf { border-bottom: 3px solid #000; padding-bottom: 18px; margin-bottom: 28px; }
.anleitung-kopf h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin: 0 0 8px; }
.anleitung-marke { font: 600 0.85rem var(--schrift-titel); letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 6px; }
.nur-bildschirm { display: flex; flex-wrap: wrap; gap: 10px; }
.schritt-tafel { border: 2px solid #000; border-radius: 14px; padding: 22px 24px; margin-bottom: 26px; break-inside: avoid; }
.schritt-tafel h2 { display: flex; align-items: center; gap: 12px; font-size: 1.45rem; margin: 0 0 10px; }
.schritt-tafel h2 span {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: #000; color: #fff; font-size: 1.25rem;
}
.schritt-text, .liste-check { padding-left: 1.4em; margin: 0 0 10px; }
.schritt-text li, .liste-check li { margin-bottom: 6px; }
.zeichnung { display: block; width: 100%; height: auto; margin: 6px 0 14px; }
.zeichnung .vorn { fill: #fff; stroke: #000; stroke-width: 2.2; stroke-linejoin: round; }
.zeichnung .hinten { fill: #fff; stroke: #000; stroke-width: 1.4; stroke-linejoin: round; }
.zeichnung .kante, .zeichnung .innen { fill: none; stroke: #000; stroke-width: 1.2; }
.zeichnung .leuchtet { stroke-width: 3.2; }
.zeichnung .platte { fill: #fff; stroke: #000; stroke-width: 1.6; }
.zeichnung .schraffiert { fill: url(#schraffur); }
.zeichnung .wand, .zeichnung .led, .zeichnung .kleber { fill: #000; }
.zeichnung .band, .zeichnung .kanal, .zeichnung .lineal { fill: #fff; stroke: #000; stroke-width: 1.5; }
.zeichnung .pfeil { stroke: #000; stroke-width: 2; }
.zeichnung .pfeil.gross { stroke-width: 3; }
.zeichnung .tisch { stroke: #000; stroke-width: 2; }
.zeichnung .strich { stroke: #000; stroke-width: 1; }
.zeichnung .zeiger, .zeichnung .schere, .zeichnung .strahl { stroke: #000; stroke-width: 2.6; stroke-linecap: round; fill: none; }
.zeichnung .kabel { fill: none; stroke: #000; stroke-width: 2.4; }
.zeichnung .gestrichelt, .zeichnung .schnitt { stroke-dasharray: 5 4; }
.zeichnung .schnitt { stroke: #000; stroke-width: 1.6; }
.zeichnung .beschrift { font: 600 13px var(--schrift); fill: #000; text-anchor: middle; }
.zeichnung .klein-beschrift { font: 400 11px var(--schrift); fill: #000; text-anchor: middle; }
.zeichnung .nummer circle { fill: #000; }
.zeichnung .nummer text { fill: #fff; font: 700 13px var(--schrift); text-anchor: middle; }
.hinweis-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 28px; }
@media (max-width: 640px) { .hinweis-raster { grid-template-columns: 1fr; } }
.hinweis-raster h3 { font-size: 1.05rem; margin: 8px 0 4px; }
.hinweis-raster ul { padding-left: 1.1em; margin: 0; font-size: 0.92rem; }
.hinweis-raster li { margin-bottom: 4px; }
.anleitung-fuss { margin: 18px 0 0; padding-top: 12px; border-top: 1px solid #000; font-size: 0.9rem; }

/* Einwilligung fuer Google Analytics (seite.js): unten rechts, die Seite
   bleibt benutzbar. Beide Knoepfe sehen gleich aus - keiner wird bevorzugt. */
.einwilligung {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto;
  padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--linie);
  background: var(--flaeche); color: var(--text); font-size: 0.9rem;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.45);
}
.einwilligung h2 { font-size: 1.05rem; margin: 0 0 8px; }
.einwilligung p { margin: 0 0 10px; color: var(--text-2); }
.einwilligung a { color: inherit; text-decoration: underline; }
.einwilligung .einwilligung-stand { color: var(--text); font-weight: 600; }
.einwilligung-knoepfe { display: flex; gap: 10px; margin-top: 14px; }
.einwilligung-knoepfe .knopf { flex: 1 1 0; }
@media print {
  .einwilligung { display: none !important; }
  @page { size: A4; margin: 12mm 14mm; }
  /* Ohne color-scheme light malt der Browser den Seitenrand dunkel (meta color-scheme dark). */
  :root { color-scheme: light; }
  html, body { background: #fff !important; }
  .kopf, .fuss, .nach-oben, .menue-knopf, .menue, .nur-bildschirm { display: none !important; }
  .anleitung { padding: 0; }
  .schritt-tafel { break-inside: avoid; }
}


/* === Spardose ============================================================ */

/* Passt die Dose aufs Druckbett? (designer.js bettZeigen) */
.bett-hinweis {
  margin: 0 0 18px; padding: 10px 14px; border-radius: var(--radius-klein);
  border: 1px solid var(--linie); background: var(--flaeche); color: var(--text-2); font-size: 0.92rem;
}
.bett-hinweis[data-art="ok"] { border-color: rgba(27, 122, 82, 0.45); }
.bett-hinweis[data-art="hinweis"] { border-color: rgba(242, 176, 30, 0.9); background: rgba(242, 176, 30, 0.12); }
.bett-hinweis[data-art="warnung"] { border-color: var(--fehler); background: rgba(192, 49, 43, 0.07); color: var(--text); }

/* Entwurf in zwei Farben: Koerper aussen, Buchstabenfarbe als Punkt darin. */
.entwurf-farbe { background: radial-gradient(circle, var(--f2, var(--f)) 0 34%, var(--f) 36%); }

.format-wahl { margin: 14px 0 10px; }
.format-wahl legend { font-size: 0.85rem; }

/* Die Buehne ist ein heller Raum - der Status darauf braucht Flaschengruen. */
.buehne { background: #e9f1ed; }

/* === Produktbeschreibung ==================================================
   Seite /produkt/ (englisch /en/product/) und derselbe Block im Dialog des
   Designers (assets/js/produkt.js holt <article data-produkt> von der Seite).
   Aufbau: Sprungmarken, darunter je Abschnitt eine Karte (.produkt-karte) mit
   Kacheln (.produkt-daten) und Feldern (.produkt-feld). Auf der Seite liegen
   die Karten auf einem abgesetzten Band, im Dialog auf dessen Flaeche - darum
   die beiden Farbstufen als Variablen. */
.produkt-band { padding-top: clamp(28px, 4vw, 48px); }
.produkt {
  --p-karte: var(--flaeche); --p-feld: var(--flaeche-2);
  display: grid; gap: 18px; max-width: 980px; margin-inline: auto;
}
.produkt h2 { font-size: 1.45rem; margin: 0 0 10px; }
.produkt h3 {
  margin: 0 0 12px; color: var(--text-3);
  font: 600 0.76rem var(--schrift); letter-spacing: 0.08em; text-transform: uppercase;
}
.produkt p { color: var(--text-2); margin: 0 0 0.7em; }

.produkt-sprung { display: flex; flex-wrap: wrap; gap: 8px; }
.produkt-sprung a {
  padding: 6px 15px; border-radius: 999px; border: 1px solid var(--linie); background: var(--p-karte);
  color: var(--text-2); font-size: 0.9rem; font-weight: 600; text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.produkt-sprung a:hover, .produkt-sprung a:focus-visible { border-color: var(--glut); color: var(--text); outline: none; }

.produkt-karte {
  padding: clamp(18px, 3vw, 28px); border: 1px solid var(--linie); border-radius: var(--radius);
  background: var(--p-karte); scroll-margin-top: 84px;
}
.produkt-kopf {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px 32px; align-items: center;
  margin-bottom: 20px;
}
.produkt-bilder { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.produkt-bilder figure { margin: 0; }
.produkt-bilder img {
  display: block; width: 100%; height: auto; border-radius: var(--radius-klein);
  border: 1px solid var(--linie); background: var(--p-feld);
}
.produkt-bilder figcaption { margin-top: 6px; text-align: center; font-size: 0.8rem; color: var(--text-3); }

/* Eckdaten als Kacheln: Stichwort klein, Wert kraeftig, Zusatz darunter. */
.produkt-daten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.produkt-daten > div, .produkt-feld, .produkt-hinweise > div {
  padding: 12px 14px; border: 1px solid var(--linie); border-radius: var(--radius-klein); background: var(--p-feld);
}
.produkt-daten dt {
  margin-bottom: 4px; color: var(--text-3);
  font: 600 0.72rem var(--schrift); letter-spacing: 0.08em; text-transform: uppercase;
}
.produkt-daten dt, .produkt-daten dd { overflow-wrap: anywhere; }
.produkt-daten dd { margin: 0; color: var(--text); font-weight: 600; }
.produkt-daten dd.zusatz { margin-top: 2px; color: var(--text-2); font-size: 0.86rem; font-weight: 400; }
.produkt-daten-schmal { grid-template-columns: 1fr; align-content: start; }

/* Kopf eines Angebots: Art, Titel, rechts der Preis. */
.produkt-titel { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; margin-bottom: 18px; }
.produkt-titel h2 { margin: 0; }
.produkt .produkt-art {
  margin: 0 0 4px; color: var(--glut-2);
  font: 600 0.76rem var(--schrift); letter-spacing: 0.08em; text-transform: uppercase;
}
.produkt .produkt-preis {
  margin: 0; padding: 7px 15px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--glut); background: var(--glut-schein); color: var(--text); font-size: 0.92rem;
}
.produkt-preis strong { font: 600 1.05rem var(--schrift-titel); color: var(--glut-2); }

.produkt-spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.produkt-feld { padding: 16px 18px; }
.produkt-feld ul { margin-bottom: 0; }
.produkt-feld li:last-child { margin-bottom: 0; }
.liste-punkte { list-style: none; padding: 0; margin: 0 0 1em; }
.liste-punkte li { position: relative; padding-left: 1.7em; margin-bottom: 0.55em; color: var(--text-2); }
.liste-punkte li::before {
  content: ""; position: absolute; left: 0.4em; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3);
}
.liste-punkte li strong { color: var(--text); }
.produkt .produkt-nicht {
  margin: 12px 0 0; padding: 12px 16px; border: 1px dashed var(--text-3); border-radius: var(--radius-klein);
  font-size: 0.92rem;
}
.produkt-nicht strong { color: var(--text); }
.produkt .produkt-fuss { margin: 14px 0 0; font-size: 0.86rem; color: var(--text-3); }

.produkt-hinweise { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 14px; }
.produkt-hinweise > div { padding: 14px 16px; }
.produkt-hinweise h3 { margin-bottom: 6px; color: var(--text); font: 600 1rem var(--schrift-titel); letter-spacing: 0; text-transform: none; }
.produkt-hinweise p { margin: 0; font-size: 0.92rem; }

@media (max-width: 720px) {
  .produkt-kopf { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .produkt-daten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .produkt-daten-schmal { grid-template-columns: 1fr; }
}
/* Telefon: lange Stichwoerter (KABELDURCHLASS) passen nicht in halbe Kacheln. */
@media (max-width: 440px) {
  .produkt-daten { grid-template-columns: 1fr; }
}

/* Im Dialog: Titel, Sprungmarken und Fusszeile stehen fest, nur der Text rollt. */
dialog.dialog-produkt { width: min(860px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 22px 22px 16px; }
dialog.dialog-produkt[open] { display: flex; flex-direction: column; }
.produkt-ort { overflow-y: auto; min-height: 0; margin: 4px -10px 0 0; padding-right: 10px; overscroll-behavior: contain; }
.produkt-ort:focus { outline: none; }
.dialog-produkt .produkt { --p-karte: var(--nacht-2); --p-feld: var(--flaeche); gap: 14px; }
.dialog-produkt .produkt-sprung { position: sticky; top: 0; z-index: 1; padding: 6px 0 10px; margin-bottom: -4px; background: var(--flaeche); }
.dialog-produkt .produkt-karte { padding: 18px; scroll-margin-top: 56px; }
.dialog-produkt .produkt h2 { font-size: 1.25rem; padding-right: 0; }
.dialog-produkt .produkt-fuss-seite { margin: 12px 0 0; }
@media (max-width: 520px) {
  dialog.dialog-produkt { padding: 18px 14px 14px; }
  .dialog-produkt .produkt-karte { padding: 14px; }
}
