/* Abverkauf REWA Marketing – Markenfarben: Lime #b0cb1f, Dunkelgrau #505050 */
:root {
  --lime:       #b0cb1f;
  --lime-dark:  #93aa16;
  --grau:       #505050;
  --grau-dunkel:#3b3b3b;
  --text:       #2c2c2c;
  --text-hell:  #6b6b6b;
  --linie:      #e3e3e3;
  --flaeche:    #f6f6f4;
  --weiss:      #ffffff;
  --radius:     10px;
  --schatten:   0 1px 3px rgba(0,0,0,.08), 0 6px 18px rgba(0,0,0,.05);
}

* { box-sizing: border-box; }

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

img { max-width: 100%; display: block; }
a   { color: var(--grau); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ── Kopfbereich ─────────────────────────────────────────── */
.kopf { background: var(--grau-dunkel); color: #fff; }
.kopf .wrap {
  display: flex; align-items: center; gap: 20px;
  min-height: 84px; flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.logo img { height: 42px; width: auto; }
.logo-text { font-size: 1.45rem; font-weight: 700; letter-spacing: .5px; }
.logo-text span { color: var(--lime); }
.kopf-kontakt {
  margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap;
  font-size: .92rem;
}
.kopf-kontakt a { color: #fff; text-decoration: none; }
.kopf-kontakt a:hover { color: var(--lime); }

/* ── Titelband ───────────────────────────────────────────── */
.band { background: var(--grau); color: #fff; padding: 40px 0 44px; }
.band h1 { margin: 0 0 8px; font-size: 2rem; font-weight: 700; }
.band h1 span { color: var(--lime); }
.band p { margin: 0; max-width: 720px; color: #e2e2e2; }

/* ── Filterleiste ────────────────────────────────────────── */
.filterleiste {
  background: var(--weiss); border-bottom: 1px solid var(--linie);
  position: sticky; top: 0; z-index: 20;
}
.filterleiste .wrap {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  padding-top: 14px; padding-bottom: 14px;
}
.pill {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--linie); background: var(--weiss);
  color: var(--grau); text-decoration: none; font-size: .9rem; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.pill:hover  { border-color: var(--lime); color: var(--grau-dunkel); }
.pill.aktiv  { background: var(--lime); border-color: var(--lime); color: #2c2c2c; font-weight: 600; }
.pill .zahl  { opacity: .65; font-size: .82em; margin-left: 4px; }

.suche { margin-left: auto; display: flex; gap: 6px; }
.suche input {
  border: 1px solid var(--linie); border-radius: 999px; padding: 7px 16px;
  font-size: .9rem; min-width: 200px; font-family: inherit;
}
.suche input:focus { outline: 2px solid var(--lime); outline-offset: 1px; border-color: var(--lime); }

/* ── Kachelraster ────────────────────────────────────────── */
.raster {
  display: grid; gap: 22px; padding: 32px 0 56px;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
}
.kachel {
  background: var(--weiss); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--schatten); display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.kachel:hover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(0,0,0,.10), 0 14px 34px rgba(0,0,0,.09); }
.kachel-bild { position: relative; aspect-ratio: 4 / 3; background: #ececea; }
.kachel-bild img { width: 100%; height: 100%; object-fit: cover; }
.kachel-bild .leer {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: #b8b8b4; font-size: .85rem;
}
.marke {
  position: absolute; top: 10px; left: 10px;
  background: var(--lime); color: #2c2c2c; font-size: .74rem; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .4px;
}
.marke.verkauft { background: var(--grau-dunkel); color: #fff; }
.kachel-text { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.kachel-text h2 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 600; line-height: 1.35; }
.kachel-text .kurz { color: var(--text-hell); font-size: .89rem; margin: 0 0 14px; flex: 1; }
.preis { font-size: 1.25rem; font-weight: 700; color: var(--grau-dunkel); }
.preis small { font-size: .72rem; font-weight: 500; color: var(--text-hell); margin-left: 5px; }
.kachel-fuss { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mehr { font-size: .85rem; font-weight: 600; color: var(--lime-dark); white-space: nowrap; }

.leerhinweis {
  background: var(--weiss); border-radius: var(--radius); padding: 56px 24px;
  text-align: center; color: var(--text-hell); box-shadow: var(--schatten); margin: 32px 0 56px;
}

/* ── Detailseite ─────────────────────────────────────────── */
.zurueck { display: inline-block; margin: 26px 0 6px; color: var(--text-hell); text-decoration: none; font-size: .92rem; }
.zurueck:hover { color: var(--lime-dark); }

.detail { display: grid; gap: 34px; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); padding: 14px 0 56px; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } }

.galerie-gross { background: var(--weiss); border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); aspect-ratio: 4 / 3; }
.galerie-gross img { width: 100%; height: 100%; object-fit: cover; }
.galerie-klein { display: flex; gap: 10px; margin-top: 10px; }
.galerie-klein button {
  padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden;
  background: none; cursor: pointer; width: 88px; aspect-ratio: 4 / 3;
}
.galerie-klein button.aktiv { border-color: var(--lime); }
.galerie-klein img { width: 100%; height: 100%; object-fit: cover; }

.karte { background: var(--weiss); border-radius: var(--radius); box-shadow: var(--schatten); padding: 26px 26px 28px; }
.karte + .karte { margin-top: 22px; }
.karte h1 { margin: 0 0 4px; font-size: 1.7rem; line-height: 1.3; }
.karte h2 { margin: 0 0 16px; font-size: 1.12rem; }
.kat-label { display: inline-block; font-size: .78rem; text-transform: uppercase; letter-spacing: .6px; color: var(--lime-dark); font-weight: 700; margin-bottom: 10px; }
.preis-gross { font-size: 2rem; font-weight: 700; color: var(--grau-dunkel); margin: 14px 0 6px; }
.preis-gross small { font-size: .85rem; font-weight: 500; color: var(--text-hell); margin-left: 8px; }
.daten { list-style: none; padding: 0; margin: 18px 0 0; border-top: 1px solid var(--linie); }
.daten li { display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--linie); font-size: .93rem; }
.daten li b { min-width: 118px; font-weight: 600; color: var(--text-hell); }
.beschreibung { white-space: pre-wrap; margin-top: 18px; }

.direktkontakt { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 20px; }
.knopf {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: .95rem;
  border: none; cursor: pointer; font-family: inherit;
}
.knopf-lime  { background: var(--lime); color: #2c2c2c; }
.knopf-lime:hover { background: var(--lime-dark); }
.knopf-rand  { background: var(--weiss); color: var(--grau); border: 1px solid var(--linie); }
.knopf-rand:hover { border-color: var(--lime); }

/* ── Formular ────────────────────────────────────────────── */
.feld { margin-bottom: 14px; }
.feld label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 5px; }
.feld input, .feld textarea {
  width: 100%; padding: 10px 13px; border: 1px solid var(--linie); border-radius: 8px;
  font-family: inherit; font-size: .95rem; background: #fcfcfb;
}
.feld input:focus, .feld textarea:focus { outline: 2px solid var(--lime); outline-offset: 1px; border-color: var(--lime); background: #fff; }
.feld textarea { resize: vertical; min-height: 120px; }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hinweis { font-size: .82rem; color: var(--text-hell); margin-top: 12px; }

.meldung { border-radius: 8px; padding: 13px 16px; margin-bottom: 18px; font-size: .93rem; }
.meldung.ok  { background: #f2f7dd; border: 1px solid var(--lime); color: #3f4a09; }
.meldung.err { background: #fdeced; border: 1px solid #e6a3a8; color: #7c2129; }

/* ── Fuß ─────────────────────────────────────────────────── */
.fuss { background: var(--grau-dunkel); color: #d6d6d6; padding: 40px 0 30px; font-size: .9rem; margin-top: auto; }
.fuss a { color: #d6d6d6; }
.fuss a:hover { color: var(--lime); }
.fuss-spalten { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.fuss h3 { color: #fff; font-size: .95rem; margin: 0 0 10px; }
.fuss-unten { border-top: 1px solid rgba(255,255,255,.14); margin-top: 28px; padding-top: 18px; display: flex; gap: 18px; flex-wrap: wrap; font-size: .85rem; }

html, body { min-height: 100%; }
body { display: flex; flex-direction: column; }
main { flex: 1; }

/* ── Textseiten (Impressum/Datenschutz) ──────────────────── */
.textseite { padding: 34px 0 56px; }
.textseite .karte { max-width: 820px; }
.textseite h3 { margin: 22px 0 6px; font-size: 1rem; }

/* ── Großansicht (Lightbox) ──────────────────────────────── */
.galerie-gross { position: relative; cursor: zoom-in; }
.lupe {
  position: absolute; right: 12px; bottom: 12px;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(59,59,59,.82); color: #fff;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; transition: background .15s;
}
.galerie-gross:hover .lupe { background: var(--lime); color: #2c2c2c; }
.lupe svg { width: 21px; height: 21px; }

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(28,28,28,.94);
  display: flex; align-items: center; justify-content: center;
  padding: 56px 20px;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; border-radius: 6px;
  box-shadow: 0 12px 50px rgba(0,0,0,.5);
}
.lb-knopf {
  position: absolute; background: rgba(255,255,255,.13); color: #fff;
  border: none; cursor: pointer; border-radius: 50%;
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; line-height: 1; transition: background .15s, color .15s;
}
.lb-knopf:hover { background: var(--lime); color: #2c2c2c; }
.lb-zu   { top: 18px; right: 18px; }
.lb-vor  { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-back { left: 18px;  top: 50%; transform: translateY(-50%); }
.lb-zaehler {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  color: #ddd; font-size: .9rem; background: rgba(255,255,255,.12);
  padding: 4px 14px; border-radius: 999px;
}
@media (max-width: 600px) {
  .lightbox { padding: 64px 10px; }
  .lb-vor { right: 8px; } .lb-back { left: 8px; }
}

/* ── Abholung / Versand ──────────────────────────────────── */
.wahl { display: flex; gap: 10px; flex-wrap: wrap; }
.wahl-feld {
  flex: 1 1 150px; display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--linie); border-radius: 8px; padding: 11px 14px;
  cursor: pointer; background: #fcfcfb; transition: border-color .15s, background .15s;
}
.wahl-feld:hover { border-color: var(--lime); }
.wahl-feld:has(input:checked),
.wahl-feld.gewaehlt { border-color: var(--lime); background: #f7fae9; }
.wahl-feld input { accent-color: var(--lime-dark); width: 17px; height: 17px; flex-shrink: 0; }
.wahl-feld span  { display: flex; flex-direction: column; line-height: 1.3; }
.wahl-feld small { color: var(--text-hell); font-size: .8rem; }
.wahl-feld.aus   { opacity: .5; cursor: not-allowed; }
.wahl-feld.aus:hover { border-color: var(--linie); }

.wahl-block[hidden] { display: none; }
.wahl-info { font-size: .84rem; color: var(--text-hell); margin: 0 0 12px; }
.feld-paar { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .feld-paar { grid-template-columns: 1fr; } }

.versandkasten {
  background: #f7fae9; border: 1px solid var(--lime); border-radius: 8px;
  padding: 12px 16px; margin-bottom: 12px;
}
.versand-zeile { display: flex; justify-content: space-between; gap: 14px; font-size: .92rem; padding: 3px 0; }
.versand-zeile.gesamt {
  border-top: 1px solid rgba(0,0,0,.12); margin-top: 6px; padding-top: 8px;
  font-size: 1.05rem;
}
.versand-zeile.gesamt b { color: var(--grau-dunkel); }
