/* =========================================================================
   225Hub – Stylesheet
   Dunkles Marineblau mit Bronze-Gold, direkt aus dem Wappen.
   Schrift: Archivo (eine Familie, Breiten- und Gewichtsachse).
   ========================================================================= */

:root {
  color-scheme: dark;

  --tief:      #0c1621;   /* Seitenhintergrund */
  --flaeche:   #142433;   /* Karten, Kästen */
  --flaeche-2: #1b2f42;   /* angehobene Flächen */
  --linie:     #25405a;
  --text:      #e9eef3;
  --text-leise:#93a8bb;
  --gold:      #c9a97c;
  --gold-hell: #e8d3a8;
  --gold-tief: #8a6a33;
  --bild-bg:   #f2f1ec;   /* helle Fläche für Produktfotos */

  --r:   14px;            /* Standardradius */
  --r-s: 10px;
  --w:   1180px;

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: calc(5rem + env(safe-area-inset-top, 0px));
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--tief);
  background-image:
    radial-gradient(70rem 40rem at 78% -12%, rgba(201, 169, 124, .13), transparent 62%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  font-variation-settings: 'wdth' 100, 'wght' 400;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--gold-hell); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: var(--w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* --- Typografie --------------------------------------------------------- */

h1, h2, h3 {
  font-variation-settings: 'wdth' 112, 'wght' 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin: 0 0 .55em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 8.5vw, 4.3rem); }
h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
h3 { font-size: 1.2rem; font-variation-settings: 'wdth' 105, 'wght' 720; }

p { margin: 0 0 1rem; max-width: 62ch; }

.lead  { font-size: 1.1rem; color: var(--text-leise); }
.quiet { font-size: .88rem; color: var(--text-leise); line-height: 1.55; }

.preis {
  font-variation-settings: 'wdth' 118, 'wght' 760;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
}

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

.kopf {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(12, 22, 33, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--linie);
}

.kopf .wrap { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; }

.marke {
  text-decoration: none;
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.marke img { width: 2.4rem; height: 2.4rem; flex: none; }
.marke-wort {
  font-variation-settings: 'wdth' 120, 'wght' 880;
  font-size: 1.28rem;
  letter-spacing: -0.045em;
  line-height: 1;
}
.marke-wort span { color: var(--gold); }
@media (max-width: 400px) { .marke-wort { display: none; } }

.nav { display: flex; gap: 1.4rem; align-items: center; }
.nav a {
  text-decoration: none;
  font-size: .94rem;
  font-variation-settings: 'wdth' 100, 'wght' 520;
  color: var(--text-leise);
}
.nav a:hover { color: var(--text); }
@media (max-width: 760px) { .nav a:not(.korb-knopf) { display: none; } }

.korb-knopf {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--flaeche-2);
  border: 1px solid var(--linie);
  color: var(--text);
  text-decoration: none;
  padding: .55rem .95rem;
  border-radius: 100px;
  font-size: .9rem;
  font-variation-settings: 'wdth' 100, 'wght' 650;
  white-space: nowrap;
  transition: border-color .15s ease, background .15s ease;
}
.korb-knopf:hover { border-color: var(--gold); }
.korb-zahl {
  font-variant-numeric: tabular-nums;
  background: var(--gold);
  color: #12212f;
  border-radius: 100px;
  min-width: 1.4rem;
  text-align: center;
  padding: 0 .35rem;
  font-variation-settings: 'wdth' 100, 'wght' 800;
  font-size: .82rem;
}

/* --- Knöpfe ------------------------------------------------------------- */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  font-size: 1rem;
  font-variation-settings: 'wdth' 102, 'wght' 720;
  padding: .9rem 1.6rem;
  border-radius: var(--r-s);
  background: var(--gold);
  color: #12212f;
  transition: background .15s ease, transform .1s ease;
}
.knopf:hover { background: var(--gold-hell); }
.knopf:active { transform: translateY(1px); }
.knopf.voll  { width: 100%; }
.knopf.gross { padding: 1.05rem 1.9rem; font-size: 1.05rem; }

.knopf-linie {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--linie);
}
.knopf-linie:hover { background: var(--flaeche-2); box-shadow: inset 0 0 0 1px var(--gold); }

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

.hero { padding-block: clamp(2.5rem, 8vw, 5.5rem) clamp(2.5rem, 7vw, 4.5rem); }
.hero .wrap { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; } }

.hero h1 { white-space: pre-line; }
.hero p  { color: var(--text-leise); font-size: 1.12rem; max-width: 36ch; }
.hero-knoepfe { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.hero-bild { justify-self: center; position: relative; width: min(74%, 380px); }
.hero-bild::after {
  content: "";
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,124,.22), transparent 66%);
  z-index: -1;
}

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

.abschnitt { padding-block: clamp(2.5rem, 7vw, 4.25rem); }
.abschnitt-kopf { margin-bottom: 2rem; max-width: 46ch; }

/* --- Produktraster ------------------------------------------------------ */

.raster { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .raster { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .raster.drei { grid-template-columns: repeat(3, 1fr); } }

.artikel {
  display: flex;
  flex-direction: column;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .18s ease, transform .18s ease;
}
.artikel:hover { border-color: var(--gold-tief); transform: translateY(-3px); }

.artikel-bild {
  background: var(--bild-bg);
  aspect-ratio: 1 / 1;
  display: block;
  padding: 1.25rem;
}
.artikel-bild img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.artikel-text { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.artikel-text h3 { margin-bottom: .1rem; }
.artikel-text h3 a { text-decoration: none; }
.artikel-unter {
  color: var(--text-leise);
  font-size: .9rem;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.punkt.klein { width: .85rem; height: .85rem; flex: none; }
.artikel-text p { font-size: .94rem; color: var(--text-leise); margin-bottom: 1.2rem; }

.punkte { display: flex; gap: .4rem; margin-bottom: 1.1rem; }
.punkt {
  width: 1.15rem; height: 1.15rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}

.artikel-fuss {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem 1rem;
}
.artikel-fuss form { margin: 0; }
.artikel-fuss .preis { font-size: 1.6rem; }
.artikel-fuss .knopf { padding: .65rem 1.15rem; font-size: .92rem; }

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

.zurueck {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--text-leise);
  text-decoration: none;
  font-size: .9rem;
}
.zurueck:hover { color: var(--gold); }

.produkt-layout { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); }
@media (min-width: 900px) { .produkt-layout { grid-template-columns: 1fr 1fr; align-items: start; } }

.produkt-bild {
  background: var(--bild-bg);
  border-radius: var(--r);
  padding: clamp(1.5rem, 5vw, 3rem);
  aspect-ratio: 1 / 1;
  display: block;
  overflow: hidden;
}
.produkt-bild img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.vorschauen { display: flex; gap: .6rem; margin-top: .8rem; }
.vorschau {
  width: 4.6rem; height: 4.6rem;
  padding: .3rem;
  background: var(--bild-bg);
  border: 1px solid transparent;
  border-radius: var(--r-s);
  cursor: pointer;
  overflow: hidden;
}
.vorschau img { width: 100%; height: 100%; object-fit: contain; }
.vorschau.aktiv { border-color: var(--gold); }
.vorschau:hover { border-color: var(--gold-tief); }

.produkt-preis { font-size: clamp(2.3rem, 8vw, 3.2rem); margin-block: .5rem .35rem; }

.merkmale { list-style: none; margin: 1.75rem 0; padding: 0; }
.merkmale li {
  padding: .75rem 0 .75rem 1.75rem;
  border-bottom: 1px solid var(--linie);
  position: relative;
  font-size: .96rem;
}
.merkmale li::before {
  content: "";
  position: absolute;
  left: .2rem; top: 1.25rem;
  width: .5rem; height: .5rem;
  border-radius: 50%;
  background: var(--gold);
}

/* Farbwähler */
.feld-name {
  display: block;
  font-variation-settings: 'wdth' 100, 'wght' 620;
  font-size: .9rem;
  margin-bottom: .6rem;
}
.feld-name b { font-variation-settings: 'wdth' 100, 'wght' 400; color: var(--text-leise); }

.farben { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.5rem; }
.farbe input { position: absolute; opacity: 0; pointer-events: none; }
.farbe span {
  display: block;
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
  transition: box-shadow .15s ease, transform .1s ease;
}
.farbe { position: relative; display: block; }
.farbe:hover span { transform: scale(1.06); }
.farbe.gewaehlt span { box-shadow: 0 0 0 2px var(--tief), 0 0 0 4px var(--gold); }
.farbe:focus-visible { outline: none; }
.farbe:focus-visible span { box-shadow: 0 0 0 2px var(--tief), 0 0 0 4px var(--gold-hell); }

.nur-vorleser {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.farbe input:checked + span { box-shadow: 0 0 0 2px var(--tief), 0 0 0 4px var(--gold); }
.farbe input:focus-visible + span { box-shadow: 0 0 0 2px var(--tief), 0 0 0 4px var(--gold-hell); }

.menge-zeile { display: flex; gap: .75rem; align-items: center; }
.menge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--linie);
  border-radius: var(--r-s);
  overflow: hidden;
  background: var(--flaeche);
}
.menge button {
  width: 2.9rem; height: 3.1rem;
  background: none; border: 0; cursor: pointer;
  color: var(--text); font-family: inherit; font-size: 1.2rem;
}
.menge button:hover { background: var(--flaeche-2); }
.menge input {
  width: 2.6rem; height: 3.1rem;
  text-align: center;
  background: none; border: 0;
  color: var(--text); font-family: inherit; font-size: 1rem;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.menge input::-webkit-outer-spin-button,
.menge input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.menge-zeile .knopf { flex: 1; height: 3.1rem; }

/* Klebeleiste auf dem Handy */
.kaufleiste { display: none; }
@media (max-width: 760px) {
  .kaufleiste {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    gap: .9rem;
    align-items: center;
    padding: .8rem 1.25rem;
    padding-bottom: calc(.8rem + env(safe-area-inset-bottom, 0px));
    background: rgba(12, 22, 33, .93);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--linie);
  }
  .kaufleiste .preis { font-size: 1.35rem; }
  .kaufleiste .knopf { flex: 1; }
  .produkt-seite { padding-bottom: 6rem; }
}

/* --- Versprechen -------------------------------------------------------- */

.versprechen { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .versprechen { grid-template-columns: repeat(3, 1fr); } }
.versprechen div {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--r);
  padding: 1.4rem;
}
.versprechen h3 { font-size: 1.02rem; margin-bottom: .35rem; color: var(--gold-hell); }
.versprechen p { font-size: .93rem; color: var(--text-leise); margin: 0; }

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

.korb-layout { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .korb-layout { grid-template-columns: 1.6fr .9fr; align-items: start; } }

.korb-liste {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--r);
  padding: .4rem 1.25rem;
}
.korb-zeile {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--linie);
}
.korb-zeile:last-child { border-bottom: 0; }
.korb-zeile .mini {
  width: 68px; height: 68px;
  background: var(--bild-bg);
  border-radius: var(--r-s);
  padding: .4rem;
  display: block;
}
.korb-zeile .mini img { width: 100%; height: 100%; object-fit: contain; }
.korb-zeile h3 { font-size: 1.02rem; margin: 0 0 .1rem; }
.korb-menge { display: flex; gap: .5rem; align-items: center; margin-top: .55rem; }
.korb-menge input {
  width: 3.4rem; padding: .35rem .5rem;
  background: var(--flaeche-2);
  border: 1px solid var(--linie);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  text-align: center;
}
.korb-menge button {
  font-family: inherit; font-size: .85rem; cursor: pointer;
  background: none; border: 0; color: var(--text-leise);
  text-decoration: underline; padding: .3rem;
}
.korb-menge button:hover { color: var(--gold); }
.korb-zeile .preis { font-size: 1.2rem; }

.summe-kasten {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--r);
  padding: clamp(1.25rem, 4vw, 1.75rem);
}
.summe-reihe {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .45rem 0; font-size: .96rem; color: var(--text-leise);
}
.summe-reihe.gesamt {
  border-top: 1px solid var(--linie);
  margin-top: .6rem; padding-top: 1rem;
  align-items: baseline;
  color: var(--text);
}
.summe-reihe.gesamt .preis { font-size: 1.9rem; color: var(--gold-hell); }
.summe-kasten .knopf { margin-top: 1.1rem; }

.hinweis-balken {
  background: rgba(201, 169, 124, .12);
  border: 1px solid var(--gold-tief);
  color: var(--gold-hell);
  padding: .75rem 1.1rem;
  border-radius: var(--r-s);
  font-size: .92rem;
  margin-bottom: 1.5rem;
}

/* --- Fließtextseiten ---------------------------------------------------- */

.text-seite { max-width: 68ch; }
.text-seite h2 { font-size: clamp(1.25rem, 4vw, 1.6rem); margin-top: 2.5rem; }
.text-seite h3 { margin-top: 1.75rem; }
.text-seite p, .text-seite li { color: var(--text-leise); }
.text-seite ul { padding-left: 1.2rem; }
.text-seite li { margin-bottom: .4rem; }
.text-seite a { color: var(--gold); }
.platzhalter {
  background: rgba(201, 169, 124, .1);
  border-left: 3px solid var(--gold);
  padding: .95rem 1.1rem;
  border-radius: 0 var(--r-s) var(--r-s) 0;
  font-size: .92rem;
  margin: 1.25rem 0;
}
.platzhalter, .platzhalter code { color: var(--gold-hell); }

/* --- Fußzeile ----------------------------------------------------------- */

.fuss {
  border-top: 1px solid var(--linie);
  padding-block: 2.75rem 2rem;
  margin-top: 3rem;
}
.fuss-raster { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .fuss-raster { grid-template-columns: 2fr 1fr 1fr; } }
.fuss h3 { font-size: .95rem; margin-bottom: .8rem; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: .45rem; }
.fuss a { color: var(--text-leise); text-decoration: none; font-size: .92rem; }
.fuss a:hover { color: var(--gold); }
.fuss-unten {
  margin-top: 2.25rem; padding-top: 1.25rem;
  border-top: 1px solid var(--linie);
  font-size: .84rem; color: var(--text-leise);
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
}

/* --- Tabelle (Admin) ---------------------------------------------------- */

.tabelle { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tabelle th, .tabelle td {
  text-align: left; padding: .7rem .6rem;
  border-bottom: 1px solid var(--linie);
  vertical-align: top;
}
.tabelle th { font-variation-settings: 'wdth' 100, 'wght' 700; }
.tabellen-rahmen { overflow-x: auto; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
