/* ==========================================================================
   yourfamily kiosk — Unterseiten (Produkte, Vorbestellen, Kontakt, …)
   Baut auf style.css auf; gleiche Design-Sprache, ruhig und minimal.
   ========================================================================== */

/* ---------- Logo-Bild (echtes "your family"-Logo, Fallback = SVG-Marke) ----
   Multiply-Blend lässt einen weißen Logo-Hintergrund auf den hellen
   Seiten nahtlos verschwinden. */
.logo__img {
  height: 54px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
}
.logo__img--gross { height: 96px; }
.logo__img--mittel { height: 68px; margin-bottom: 4px; }

.logo:not(.logo--fallback) .logo__mark,
.logo:not(.logo--fallback) .logo__word { display: none; }
.preloader__logo:not(.logo--fallback) svg { display: none; }
.site-footer__inner:not(.logo--fallback) .logo__mark,
.site-footer__inner:not(.logo--fallback) .site-footer__name { display: none; }

@media (max-width: 760px) {
  .logo__img { height: 40px; }
}

body.page {
  background: var(--paper);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* Header auf Unterseiten ohne blend-Effekt, mit feiner Linie */
body.page .site-header {
  position: sticky;
  mix-blend-mode: normal;
  background: rgba(244, 246, 244, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(16, 20, 24, .07);
}

.site-nav a.is-active { opacity: 1; font-weight: 700; }

/* Warenkorb-Badge im Header */
.cartlink { position: relative; }
.cartlink .badge {
  position: absolute;
  top: -9px; right: -14px;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
}
.cartlink .badge.is-visible { display: inline-flex; }

/* ---------- Seitengerüst ---------- */
.page-main {
  flex: 1;
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: calc(var(--header-h) + clamp(28px, 6vh, 64px)) 0 80px;
}
.page-title {
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 10px;
}
.page-sub { font-size: 16px; opacity: .65; max-width: 60ch; margin-bottom: 40px; }

/* ---------- Buttons & Formulare ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  background: var(--ink);
  color: #fff;
  font: 600 15px/1 "Inter", sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s var(--ease), opacity .2s;
}
.btn:hover { transform: translateY(-1px); opacity: .92; }
.btn--small { padding: 10px 18px; font-size: 13px; }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn.is-done { background: #2f9e4f; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .6;
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(16, 20, 24, .14);
  background: #fff;
  font: 400 15px/1.4 "Inter", sans-serif;
  color: var(--ink);
  outline: none;
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }

/* ---------- Startseite: Begrüßung ---------- */
.start-hero {
  background: #fff;
  border: 1px solid rgba(16, 20, 24, .07);
  border-radius: 22px;
  padding: clamp(26px, 5vw, 52px);
  margin-bottom: clamp(34px, 6vh, 60px);
}
.start-hero__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(16, 20, 24, .06);
  margin-bottom: 18px;
}
.start-hero__status.ist-auf { background: #eaf7ee; color: #1d7a3c; }
.punkt { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.punkt--auf { background: #2f9e4f; box-shadow: 0 0 0 3px rgba(47, 158, 79, .2); }
.punkt--zu  { background: #b6bbc0; }

.start-hero__titel {
  font-size: clamp(38px, 7vw, 68px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.04;
}
.start-hero__sub {
  margin-top: 16px;
  font-size: clamp(15px, 2vw, 17.5px);
  line-height: 1.6;
  opacity: .68;
  max-width: 52ch;
}
.start-hero__aktionen {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Sortiment: Suche + Kategoriefilter ---------- */
.sortiment-leiste {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  background: var(--paper);
  padding: 12px 0 14px;
  margin-bottom: 8px;
}
.produkt-tools { margin-bottom: 12px; max-width: 360px; }

.katfilter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.katfilter::-webkit-scrollbar { display: none; }
.katchip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  border: 1.5px solid rgba(16, 20, 24, .14);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
  font: 600 14px/1 "Inter", sans-serif;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
  -webkit-tap-highlight-color: transparent;
}
.katchip span {
  font-size: 11.5px;
  font-weight: 700;
  opacity: .5;
  background: rgba(16, 20, 24, .07);
  border-radius: 999px;
  padding: 2px 7px;
}
.katchip:hover { border-color: rgba(16, 20, 24, .3); }
.katchip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.katchip.is-active span { background: rgba(255, 255, 255, .22); opacity: .9; color: #fff; }

.keine-treffer {
  padding: 40px 0;
  font-size: 16px;
  opacity: .7;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Produkte ---------- */

.kat-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 38px 0 18px;
}
.kat-title:first-child { margin-top: 0; }

.pcard__img--icon span {
  font-size: 84px;
  line-height: 170px;
}
.krow__img--icon {
  display: inline-grid;
  place-items: center;
  font-size: 30px;
  height: 64px;
}
.pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}
.pcard {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(16, 20, 24, .06);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.pcard:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(16, 20, 24, .08); }
.pcard__img {
  border-radius: 12px;
  background: var(--pc-bg, #eef1f2);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  padding: 10px;
}
.pcard__img img { height: 170px; width: auto; max-width: 100%; object-fit: contain; }
.pcard__name { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.pcard__desc {
  font-size: 13px;
  opacity: .6;
  line-height: 1.45;
  margin: 5px 0 12px;
  flex: 1;
}
.pcard__row { display: flex; align-items: center; justify-content: space-between; }
.pcard__price { font-size: 16px; font-weight: 800; }

/* ---------- Vorbestellen / Checkout ---------- */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 860px) { .checkout-grid { grid-template-columns: 1fr; } }

.panel {
  background: #fff;
  border: 1px solid rgba(16, 20, 24, .06);
  border-radius: var(--radius);
  padding: 26px;
}
.panel h2 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 18px; }

.krow {
  display: grid;
  grid-template-columns: 52px 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(16, 20, 24, .07);
}
.krow__img { width: 52px; height: 64px; object-fit: contain; }
.krow__info { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.krow__info span { opacity: .55; font-size: 13px; }
.krow__qty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid rgba(16, 20, 24, .14);
  border-radius: 999px;
  padding: 5px 10px;
}
.krow__qty button {
  border: none; background: none;
  font-size: 16px; font-weight: 700;
  cursor: pointer; color: var(--ink);
  width: 20px;
}
.krow__qty span { min-width: 16px; text-align: center; font-weight: 600; font-size: 14px; }
.krow__total { font-weight: 700; font-size: 14px; min-width: 64px; text-align: right; }

.summe-zeile {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 800;
  padding-top: 16px;
}

/* Zahlarten */
.payoptions { display: grid; gap: 10px; margin: 8px 0 18px; }
.payopt {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid rgba(16, 20, 24, .14);
  border-radius: 12px;
  padding: 13px 16px;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 500;
  transition: border-color .2s, opacity .2s;
  background: #fff;
}
.payopt:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.payopt input { accent-color: var(--ink); flex: none; }
.payopt .icon { font-size: 18px; width: 26px; text-align: center; flex: none; }
.payopt__text { display: flex; flex-direction: column; gap: 3px; }
.payopt__text strong { font-weight: 600; font-size: 15px; }
.payopt__text small { font-size: 12.5px; opacity: .6; line-height: 1.4; }
.payopt.is-disabled { opacity: .42; cursor: not-allowed; }
.hinweis {
  font-size: 12.5px;
  line-height: 1.5;
  opacity: .55;
  background: rgba(16, 20, 24, .045);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
}
.hinweis--warnung {
  opacity: 1;
  font-size: 13.5px;
  background: #fdf3e0;
  border: 1px solid #eab55a;
  color: #8a5a00;
  margin-top: 14px;
}
.btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

/* Bestellbestätigung */
.bestell-ok { text-align: center; padding: 60px 20px; }
.bestell-ok .check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #2f9e4f;
  color: #fff;
  font-size: 30px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 18px;
}
.bestell-ok h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.bestell-ok p { opacity: .65; margin-bottom: 6px; }
.bestell-ok .aktionen { margin-top: 22px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Konto ---------- */
.fehler { color: #c0392b; font-size: 13.5px; min-height: 18px; margin-bottom: 10px; }

.order {
  border: 1px solid rgba(16, 20, 24, .09);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}
.order__head {
  display: flex;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-size: 14px;
}
.order__head span { opacity: .6; font-size: 13px; }
.order__head .order__sum { margin-left: auto; font-weight: 800; opacity: 1; font-size: 15px; }
.order__head .statuschip {
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(16, 20, 24, .08);
  opacity: 1;
}
.statuschip.s-offen    { background: #fdeccd; color: #8a5a00; }
.statuschip.s-inarbeit { background: #dbeafe; color: #1e4f8a; }
.statuschip.s-bereit   { background: #d8f3e0; color: #1d7a3c; }
.statuschip.s-abgeholt { background: rgba(16, 20, 24, .08); color: #5b6066; }
.order__items {
  list-style: none;
  font-size: 13.5px;
  opacity: .75;
  margin-bottom: 12px;
  display: grid;
  gap: 2px;
}

/* ---------- Kontakt / Standort ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.infoliste { display: grid; gap: 18px; }
.infoliste .block h3 {
  font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  opacity: .5; margin-bottom: 6px;
}
.infoliste .block p, .infoliste .block a { font-size: 16px; color: var(--ink); }
.infoliste .zeile { display: flex; justify-content: space-between; max-width: 260px; font-size: 15px; padding: 2px 0; }
.infoliste .zeile span:last-child { font-weight: 600; }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(16, 20, 24, .08);
  aspect-ratio: 4 / 3;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Auswahl: Apple Karten oder Google Maps ---------- */
.kartendialog {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.kartendialog.is-offen { opacity: 1; }
.kartendialog__hintergrund {
  position: absolute;
  inset: 0;
  background: rgba(16, 20, 24, .5);
  backdrop-filter: blur(3px);
}
.kartendialog__inhalt {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 28px 26px 20px;
  width: min(360px, 88vw);
  text-align: center;
  transform: translateY(12px) scale(.97);
  transition: transform .22s var(--ease);
  box-shadow: 0 24px 60px rgba(16, 20, 24, .25);
}
.kartendialog.is-offen .kartendialog__inhalt { transform: none; }
.kartendialog__inhalt h3 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 6px;
}
.kartendialog__inhalt p { font-size: 14.5px; opacity: .6; line-height: 1.5; margin-bottom: 20px; }
.kartendialog__knoepfe { display: grid; gap: 10px; }
.kartendialog__knoepfe .btn { width: 100%; }
.kartendialog__abbrechen {
  margin-top: 14px;
  border: none;
  background: none;
  color: var(--ink);
  opacity: .55;
  font: 600 14px/1 "Inter", sans-serif;
  padding: 10px;
  cursor: pointer;
}
.kartendialog__abbrechen:hover { opacity: 1; }

/* ---------- Impressum ---------- */
.prose { max-width: 68ch; line-height: 1.65; font-size: 15.5px; }
.prose h2 { font-size: 19px; font-weight: 800; margin: 30px 0 8px; }
.prose p { margin-bottom: 10px; }
.prose .platzhalter { background: #fff3cd; padding: 2px 6px; border-radius: 6px; }

/* ---------- CTA-Band (Startseite, nach dem Showcase) ---------- */
.cta-band {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 110px 24px 30px;
}
.cta-band h2 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -.03em;
}
.cta-band p { margin: 12px 0 26px; opacity: .65; font-size: 16px; }
.cta-band__row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.site-footer__nav {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 13.5px;
}
.site-footer__nav a { color: var(--ink); text-decoration: none; opacity: .7; }
.site-footer__nav a:hover { opacity: 1; text-decoration: underline; }

/* ==========================================================================
   HANDY-NAVIGATION — feste Leiste am unteren Bildschirmrand
   ========================================================================== */
.mobilnav { display: none; }

@media (max-width: 760px) {
  .mobilnav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(16, 20, 24, .09);
    /* Platz für die Home-Leiste moderner iPhones */
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .mobilnav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 58px;
    text-decoration: none;
    color: var(--ink);
    opacity: .55;
    -webkit-tap-highlight-color: transparent;
    transition: opacity .18s;
  }
  .mobilnav a.is-active { opacity: 1; }
  .mobilnav a.is-active .mobilnav__icon svg { stroke-width: 2.2; }
  .mobilnav a:active { opacity: .35; }
  .mobilnav__icon { position: relative; display: block; }
  .mobilnav__icon svg { width: 23px; height: 23px; display: block; }
  .mobilnav__text { font-size: 10.5px; font-weight: 600; letter-spacing: .01em; }
  .mobilnav__badge {
    position: absolute;
    top: -6px; right: -9px;
    min-width: 17px; height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: #e8930c;
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    display: none;
  }
  .mobilnav__badge.is-visible { display: block; }

  /* Inhalt darf nicht unter der Leiste verschwinden */
  body.hat-mobilnav { padding-bottom: 64px; }
  body.hat-mobilnav .page-footer { margin-bottom: 8px; }
}

/* ==========================================================================
   HANDY-FEINSCHLIFF
   ========================================================================== */
@media (max-width: 760px) {
  /* Kopfzeile kompakter, Logo bleibt gut sichtbar */
  :root { --header-h: 62px; }
  .site-header { padding: 0 16px; }
  .logo__img { height: 38px; }

  .page-main { width: min(1120px, 90vw); padding-top: calc(var(--header-h) + 22px); }

  /* Begrüßung */
  .start-hero { padding: 24px 20px; border-radius: 18px; }
  .start-hero__aktionen { flex-direction: column; }
  .start-hero__aktionen .btn { width: 100%; }

  /* Zwei Produkte nebeneinander — deutlich angenehmer zum Stöbern */
  .pgrid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pcard { padding: 12px 12px 14px; border-radius: 14px; }
  .pcard__img { margin-bottom: 10px; padding: 8px; border-radius: 10px; }
  .pcard__img img { height: 108px; }
  .pcard__img--icon span { font-size: 54px; line-height: 108px; }
  .pcard__name { font-size: 13.5px; line-height: 1.3; }
  .pcard__desc { display: none; }               /* Platz sparen */
  .pcard__row { flex-direction: column; align-items: stretch; gap: 8px; }
  .pcard__price { font-size: 15px; }
  .pcard .btn--small { width: 100%; padding: 11px 10px; font-size: 12.5px; }

  .kat-title { margin: 30px 0 14px; }
  .produkt-tools { max-width: none; margin-bottom: 10px; }

  /* Kategoriefilter: bequem antippbar, seitlich wischbar */
  .sortiment-leiste { padding: 10px 0 12px; }
  .katchip { padding: 12px 16px; font-size: 14.5px; min-height: 44px; }
  .katfilter {
    /* bis an den Bildschirmrand wischen, ohne den Rest zu verschieben */
    margin: 0 -5vw;
    padding: 0 5vw 4px;
  }

  /* Routen-Auswahl */
  .kartendialog__inhalt { padding: 24px 20px 16px; }
  .kartendialog__knoepfe .btn { min-height: 48px; }

  /* Formulare: 16px verhindert das automatische Hineinzoomen auf iPhones */
  .field input, .field select, .field textarea { font-size: 16px; padding: 14px 16px; }
  .btn { min-height: 46px; padding: 13px 22px; }
  .btn--small { min-height: 40px; }

  /* Warenkorb-Zeilen: Bild links, Name+Preis oben, Menge darunter */
  .panel { padding: 18px 16px; border-radius: 16px; }
  .krow {
    grid-template-columns: 46px 1fr auto;
    grid-template-rows: auto auto;
    gap: 4px 12px;
    align-items: center;
  }
  .krow__img   { grid-column: 1; grid-row: 1 / 3; width: 46px; height: 56px; }
  .krow__info  { grid-column: 2; grid-row: 1; }
  .krow__total { grid-column: 3; grid-row: 1; }
  .krow__qty   { grid-column: 2 / 4; grid-row: 2; justify-self: start; padding: 2px 6px; }
  .krow__qty button { width: 40px; height: 40px; font-size: 20px; }
  .krow__qty span { min-width: 24px; font-size: 15px; }

  /* Zahlarten & Statusseite */
  .payopt { padding: 13px 14px; font-size: 14px; line-height: 1.35; gap: 10px; }
  .payopt .icon { width: 22px; font-size: 17px; flex: none; }
  .eckdaten { gap: 16px; }
  .stufe .txt span { font-size: 13px; }

  /* Konto & Bestellungen */
  .order__head { font-size: 13.5px; }
  .order .btn--small { width: 100%; margin-top: 6px; }
  .order .btn--small + .btn--small { margin-left: 0 !important; }

  /* Fußzeile */
  .page-footer { padding: 26px 18px; }
  .page-footer nav { gap: 14px 18px; }
}

/* Sehr schmale Geräte (z. B. iPhone SE) */
@media (max-width: 360px) {
  .pgrid { gap: 10px; }
  .pcard__img img { height: 92px; }
  .mobilnav__text { font-size: 9.5px; }
}

/* ---------- Footer (Unterseiten) ---------- */
.page-footer {
  border-top: 1px solid rgba(16, 20, 24, .07);
  padding: 34px 24px;
  text-align: center;
  font-size: 13.5px;
  opacity: .75;
}
.page-footer nav { display: flex; gap: 22px; justify-content: center; margin-bottom: 10px; flex-wrap: wrap; }
.page-footer a { color: var(--ink); text-decoration: none; }
.page-footer a:hover { text-decoration: underline; }
