/* Puffcraft — hell, viel Luft, feine Linien. Produkt im Mittelpunkt. */

:root {
  --grund: #ffffff;
  --grund-leise: #f7f7f5;
  --linie: #e6e5e1;
  --linie-stark: #d3d2cc;
  --text: #15171a;
  --text-leise: #6d6f74;
  --akzent: #16714f;
  --akzent-leise: #eef4f1;
  --warn: #8a4b1b;
  --warn-grund: #fdf4ec;
  --breite: 1120px;
  --rund: 10px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 .5rem; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }

.klein { font-size: .85rem; color: var(--text-leise); line-height: 1.5; }
.stark { font-weight: 600; }
.rechts { text-align: right; }
.leer { color: var(--text-leise); }
.mitte { text-align: center; }

/* ---------------------------------------------------------------- Kopfzeile */

.kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 1.4rem 1.5rem;
  border-bottom: 1px solid var(--linie);
}

.marke { display: flex; flex-direction: column; line-height: 1.2; }
.marke:hover { text-decoration: none; }
.wortmarke { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.03em; }
.claim { font-size: .78rem; color: var(--text-leise); }

.kopf nav { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.kopf nav a { font-size: .92rem; color: var(--text-leise); }
.kopf nav a:hover { color: var(--text); text-decoration: none; }
.kopf nav .wk { color: var(--text); font-weight: 500; }
.kopf nav .zahl {
  display: inline-block;
  min-width: 1.35rem;
  margin-left: .4rem;
  padding: 0 .35rem;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: .75rem;
  text-align: center;
  line-height: 1.35rem;
}
.kopf nav .sprache {
  padding: .25rem .7rem;
  border: 1px solid var(--linie-stark);
  border-radius: 999px;
  font-size: .8rem;
}

main {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

section { margin-bottom: 4.5rem; }
.schmal { max-width: 720px; margin-left: auto; margin-right: auto; }

/* ------------------------------------------------------------------- Buehne */

.buehne { padding: 3rem 0 1rem; max-width: 720px; }
.vorspann { font-size: 1.15rem; color: var(--text-leise); max-width: 52ch; }
.buehnenknoepfe { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }

.held {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  padding: 1rem 0 2rem;
}
.heldtext .ueberzeile {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  color: var(--akzent);
  margin-bottom: .6rem;
}
.heldbild {
  aspect-ratio: 4 / 3;
  border-radius: var(--rund);
  background: linear-gradient(150deg, var(--grund-leise), #ecebe6);
  display: grid;
  place-items: center;
}
.heldbild::after {
  content: attr(data-buchstabe);
  font-size: 7rem;
  font-weight: 600;
  color: #fff;
  opacity: .85;
}

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

.knopf {
  display: inline-block;
  padding: .8rem 1.5rem;
  border: 1px solid var(--text);
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity .15s ease;
}
.knopf:hover { opacity: .82; text-decoration: none; }
.knopf.leer { background: transparent; color: var(--text); border-color: var(--linie-stark); }
.knopf.breit { display: block; width: 100%; text-align: center; margin-top: 1rem; }

.klein-knopf {
  padding: .35rem .8rem;
  border: 1px solid var(--linie-stark);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: .82rem;
  cursor: pointer;
}
.klein-knopf:hover { border-color: var(--text); }

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

.abschnittskopf {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--linie);
  padding-top: 1.6rem;
}
.mehr { font-size: .88rem; color: var(--text-leise); }
.abschnittstext { color: var(--text-leise); max-width: 60ch; margin-bottom: 2rem; }

.raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 2.5rem 1.8rem;
}

.kachel { display: block; }
.kachel:hover { text-decoration: none; }
.kachel .bild {
  aspect-ratio: 1;
  border-radius: var(--rund);
  background: linear-gradient(150deg, var(--grund-leise), #eceae5);
  display: grid;
  place-items: center;
  margin-bottom: .9rem;
  transition: transform .2s ease;
}
.kachel .bild::after {
  content: attr(data-buchstabe);
  font-size: 3.4rem;
  font-weight: 600;
  color: #fff;
}
.kachel:hover .bild { transform: translateY(-3px); }
.kachel h3 { margin: .35rem 0 .2rem; font-size: 1rem; font-weight: 500; }
.kachel .kurz { font-size: .88rem; color: var(--text-leise); margin: 0 0 .6rem; }
.preiszeile { display: flex; justify-content: space-between; align-items: baseline; }
.preis { font-weight: 600; }
.preis.gross { font-size: 1.6rem; margin: .8rem 0 .2rem; }
.lieferzeit { font-size: .8rem; color: var(--text-leise); }

.etikett {
  display: inline-block;
  padding: .16rem .6rem;
  border-radius: 999px;
  background: var(--grund-leise);
  color: var(--text-leise);
  font-size: .72rem;
  letter-spacing: .02em;
}
.etikett.eigenfertigung { background: var(--akzent-leise); color: var(--akzent); }
.etikett.warn { background: var(--warn-grund); color: var(--warn); }

.dreispalt {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  border-top: 1px solid var(--linie);
  padding-top: 2.5rem;
}
.dreispalt p { color: var(--text-leise); font-size: .92rem; margin: 0; }

/* ------------------------------------------------------------------- Filter */

.filterleiste { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1.5rem 0 2.5rem; }
.filter {
  padding: .35rem .9rem;
  border: 1px solid var(--linie);
  border-radius: 999px;
  font-size: .87rem;
  color: var(--text-leise);
}
.filter:hover { border-color: var(--text); color: var(--text); text-decoration: none; }
.filter.an { background: var(--text); border-color: var(--text); color: #fff; }

/* -------------------------------------------------------------- Produktseite */

.produktseite {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.produktbild {
  aspect-ratio: 1;
  border-radius: var(--rund);
  background: linear-gradient(150deg, var(--grund-leise), #eceae5);
  display: grid;
  place-items: center;
  position: sticky;
  top: 2rem;
}
.produktbild::after {
  content: attr(data-buchstabe);
  font-size: 8rem;
  font-weight: 600;
  color: #fff;
}
.produktinfo h1 { margin: .6rem 0 .4rem; }
.kurz.gross { font-size: 1.05rem; color: var(--text-leise); }

.details { display: grid; gap: .1rem; margin: 2rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--linie); }
.details > div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--linie); }
.details dt { color: var(--text-leise); font-size: .9rem; margin: 0; }
.details dd { margin: 0; font-size: .9rem; text-align: right; }

.beschreibung { max-width: 62ch; }
.beschreibung h2 { margin-top: 2rem; }
.beschreibung ul { padding-left: 1.1rem; color: var(--text-leise); }
.beschreibung li { margin-bottom: .3rem; }

/* ------------------------------------------------------------- Konfigurator */

.konfigurator { margin: 1.8rem 0 0; }
.konfigurator h2 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }

.optionsgruppe { border: 0; padding: 0; margin: 0 0 1.4rem; }
.optionsgruppe legend {
  padding: 0;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--text-leise);
  margin-bottom: .6rem;
}
.optionskacheln { display: flex; flex-wrap: wrap; gap: .5rem; }
.optionskachel input { position: absolute; opacity: 0; pointer-events: none; }
.optionskachel .optionsname {
  display: inline-block;
  padding: .5rem 1rem;
  border: 1px solid var(--linie-stark);
  border-radius: var(--rund);
  font-size: .9rem;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.optionskachel input:checked + .optionsname {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
}
.optionskachel input:focus-visible + .optionsname { outline: 2px solid var(--akzent); outline-offset: 2px; }
.optionsname .aufpreis { font-size: .78rem; opacity: .7; margin-left: .4rem; }
.optionsgruppe .aufpreis { text-transform: none; letter-spacing: 0; }

.gravurfeld { width: 100%; max-width: 320px; }

.kaufzeile { display: flex; align-items: flex-end; gap: 1rem; margin-top: 1.6rem; }
.mengenwahl { display: flex; flex-direction: column; font-size: .82rem; color: var(--text-leise); gap: .3rem; }
.mengenwahl input { width: 5rem; }

/* ------------------------------------------------------------------ Formulare */

input[type="text"], input[type="email"], input[type="number"],
input[type="password"], select, textarea {
  width: 100%;
  padding: .65rem .8rem;
  border: 1px solid var(--linie-stark);
  border-radius: var(--rund);
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: .95rem;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--text);
}
textarea { resize: vertical; line-height: 1.5; }
textarea.quelltext { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; }

label { display: block; font-size: .88rem; }
form label { margin-bottom: 1rem; }
.felder { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.felder .breit { grid-column: 1 / -1; }
.felder label { display: flex; flex-direction: column; gap: .35rem; color: var(--text-leise); }
.felder label input, .felder label select, .felder label textarea { color: var(--text); }

.wahlfeld {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  padding: .9rem 1rem;
  border: 1px solid var(--linie);
  border-radius: var(--rund);
  margin-bottom: .7rem;
  font-size: .92rem;
}
.wahlfeld input { margin-top: .25rem; width: auto; }

/* ------------------------------------------------------------------ Warenkorb */

table { width: 100%; border-collapse: collapse; }
.korb th, .liste th {
  text-align: left;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-leise);
  font-weight: 500;
  padding: 0 .5rem .7rem;
  border-bottom: 1px solid var(--linie);
}
.korb th.rechts, .liste th.rechts { text-align: right; }
.korb td, .liste td { padding: 1rem .5rem; border-bottom: 1px solid var(--linie); vertical-align: top; font-size: .93rem; }
.korb td:first-child, .liste td:first-child { padding-left: 0; }
.korb td:last-child, .liste td:last-child { padding-right: 0; }
.wahlzeile { display: block; font-size: .82rem; color: var(--akzent); margin-top: .15rem; }
.korb td .klein { display: block; margin-top: .15rem; }

.mengenform { display: flex; gap: .4rem; justify-content: flex-end; }
.mengenform input { width: 4.2rem; padding: .35rem .5rem; text-align: center; }
.mengenform button { white-space: nowrap; }

.summenblock {
  max-width: 380px;
  margin-left: auto;
  margin-top: 1.8rem;
  font-size: .95rem;
}
.summenblock > div { display: flex; justify-content: space-between; gap: 2rem; padding: .4rem 0; }
.summenblock .gesamt {
  border-top: 1px solid var(--linie);
  margin-top: .5rem;
  padding-top: .8rem;
  font-size: 1.15rem;
  font-weight: 600;
}
.summenblock .klein { margin: .6rem 0 0; }

/* ---------------------------------------------------------------------- Kasse */

.kasse { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3.5rem; align-items: start; }
.kassenformular h2 { font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-leise); margin: 2.2rem 0 1rem; }
.kassenformular h2:first-of-type { margin-top: 1.5rem; }
.kassenuebersicht {
  position: sticky;
  top: 2rem;
  background: var(--grund-leise);
  border-radius: var(--rund);
  padding: 1.6rem;
}
.kassenuebersicht h2 { font-size: 1rem; margin-bottom: 1rem; }
.kassenuebersicht .korb td { padding: .7rem 0; font-size: .88rem; }
.kassenuebersicht .summenblock { max-width: none; margin-top: 1rem; }

.zahlkasten {
  border: 1px solid var(--linie);
  border-radius: var(--rund);
  padding: 1.4rem 1.6rem;
  margin: 1.5rem 0;
  background: var(--grund-leise);
}
.zahlkasten h3 { margin-bottom: .8rem; }
.statuszeile { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; color: var(--text-leise); font-size: .93rem; }

.hinweis {
  padding: .9rem 1.1rem;
  border-radius: var(--rund);
  margin-bottom: 1.5rem;
  font-size: .92rem;
  border: 1px solid var(--linie);
  background: var(--grund-leise);
}
.hinweis.warnung { background: var(--warn-grund); border-color: #f0dcc6; color: var(--warn); }
.hinweis ul { margin: .5rem 0 0; padding-left: 1.1rem; }

.fehlerzahl { font-size: 3rem; font-weight: 600; color: var(--linie-stark); margin: 0; }
.rechtstext h1 { margin-bottom: 1.5rem; }
.rechtstext h2 { margin: 2.2rem 0 .8rem; font-size: 1.15rem; }
.rechtstext ul { color: var(--text-leise); padding-left: 1.1rem; }
.rechtstext p { color: var(--text-leise); }

/* ------------------------------------------------------------------ Fusszeile */

.fuss { border-top: 1px solid var(--linie); margin-top: 2rem; }
.fussspalten {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 2.5rem;
  align-items: start;
}
.fusslinks { display: flex; flex-direction: column; gap: .5rem; font-size: .9rem; }
.fusslinks a { color: var(--text-leise); }
.fusslinks a:hover { color: var(--text); }

/* ---------------------------------------------------------------- Verwaltung */

body.admin { background: var(--grund-leise); }
body.admin .kopf, body.admin .fuss { background: #fff; }
body.admin main { background: #fff; border-radius: var(--rund); margin-top: 2rem; margin-bottom: 2rem; padding: 2.5rem; }
body.admin .kopf nav a { font-size: .88rem; }

.kennzahlen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
}
.zahlkachel {
  border: 1px solid var(--linie);
  border-radius: var(--rund);
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.zahlkachel .wert { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; }
.zahlkachel .titel { font-size: .78rem; color: var(--text-leise); }

.knopfleiste { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1.2rem 0 2rem; }
.inline { display: inline; margin: 0; }
.inline label { margin: 0; }

.zonen { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 1rem; }
.zonenblock { border: 1px solid var(--linie); border-radius: var(--rund); padding: 1rem 1.2rem; }
.zonenblock h3 { font-size: .9rem; margin-bottom: .8rem; }
.zonenblock label { display: flex; flex-direction: column; gap: .3rem; color: var(--text-leise); font-size: .82rem; }

code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; background: var(--grund-leise); padding: .1rem .35rem; border-radius: 4px; }

/* ------------------------------------------------------------------- Schmal */

@media (max-width: 880px) {
  .held, .produktseite, .kasse { grid-template-columns: 1fr; gap: 2rem; }
  .produktbild, .kassenuebersicht { position: static; }
  .produktbild { max-width: 420px; }
  .fussspalten { grid-template-columns: 1fr; gap: 1.8rem; }
  .kopf { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .kopf nav { gap: 1.1rem; }
  main { padding-top: 2rem; }
  section { margin-bottom: 3rem; }
  body.admin main { padding: 1.5rem; }
}

@media (max-width: 560px) {
  .felder { grid-template-columns: 1fr; }
  .raster { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.8rem 1rem; }
  .summenblock { max-width: none; }
  .korb th:nth-child(3), .korb td:nth-child(3) { display: none; }
}
