/* ============================================================
   Selbsterntefeld Design System — layout & page structure
   Ported from ui_kits/website/kit.css (public site chrome) and
   ui_kits/pro/pro.css (shared sidebar shell for Pro + Admin).
   ============================================================ */

/* ---- Public site shell ---------------------------------------- */
.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface-page);
}
.site__main {
  flex: 1;
}
.wrap {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: hsl(0 0% 100% / 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header__bar {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 10px var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.site-header__logo img {
  width: 38px;
  height: 38px;
}
.site-header__logo span {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--font-size-lg);
  color: var(--brand);
  letter-spacing: var(--tracking-tight);
}
.site-header__logo i {
  color: var(--text-subtle);
  font-style: normal;
}
.site-header__nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
/* Plain nav links only — exclude buttons (.sef-btn) so the login/logout
   button keeps its own background/text color instead of inheriting body text. */
.site-header__nav a:not(.sef-btn) {
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  color: var(--text-body);
  font-weight: var(--weight-medium);
  text-decoration: none;
  transition: var(--transition-fast);
}
.site-header__nav a:not(.sef-btn):hover,
.site-header__nav a:not(.sef-btn).is-active {
  background: var(--brand-soft);
  color: var(--primary-800);
}
@media (max-width: 640px) {
  .site-header__nav a:not(.is-active):not(.sef-btn) {
    display: none;
  }
}

.site-footer {
  margin-top: 56px;
  background: linear-gradient(180deg, var(--primary-700), var(--primary-900));
  color: var(--primary-100);
}
.site-footer__cols {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 40px var(--container-padding) 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
}
@media (max-width: 640px) {
  .site-footer__cols {
    grid-template-columns: 1fr;
  }
}
.site-footer h3 {
  color: #fff;
  margin: 0 0 12px;
  font-size: var(--font-size-base);
}
.site-footer p {
  font-size: var(--font-size-sm);
  opacity: 0.85;
  margin: 0 0 8px;
}
.site-footer a {
  display: block;
  color: #fff;
  opacity: 0.85;
  text-decoration: none;
  font-size: var(--font-size-sm);
  padding: 3px 0;
}
.site-footer a:hover {
  opacity: 1;
  color: var(--primary-200);
}
.site-footer__bottom {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 16px var(--container-padding);
  border-top: 1px solid hsl(120 30% 100% / 0.15);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--font-size-sm);
  opacity: 0.8;
  flex-wrap: wrap;
}
.site-footer__bottom a {
  display: inline;
  opacity: 1;
  padding: 0;
}

/* ---- Shared sidebar shell (Pro + Admin) ------------------------ */
.pro {
  display: grid;
  grid-template-columns: 264px 1fr;
  min-height: 100vh;
  background: var(--surface-page);
}
@media (max-width: 960px) {
  .pro {
    grid-template-columns: 1fr;
  }
}

.pro-sb {
  background: var(--surface-card);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 18px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.pro-sb__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 6px 16px;
  position: relative;
}
.pro-sb__brand span {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--font-size-base);
  color: var(--text-strong);
  text-decoration: none;
}
.pro-sb__x {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-muted);
}
.pro-sb__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.pro-sb__label {
  font-size: var(--font-size-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-subtle);
  padding: 8px 10px 6px;
  margin: 0;
}
.pro-sb__nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--text-body);
  font-weight: var(--weight-medium);
  text-decoration: none;
  transition: var(--transition-fast);
}
.pro-sb__nav a:hover {
  background: var(--surface-sunken);
}
.pro-sb__nav a.is-active {
  background: var(--brand-soft);
  color: var(--primary-800);
  font-weight: var(--weight-semibold);
}
.pro-sb__foot {
  padding-top: 8px;
}
.pro-sb__foot hr {
  margin: 8px 0 12px;
}
.pro-sb__meta {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin: 0 0 4px;
}
.pro-sb__foot .sef-btn {
  margin-top: 10px;
}

.pro-overlay {
  position: fixed;
  inset: 0;
  background: hsl(120 20% 10% / 0.4);
  z-index: var(--z-overlay);
  /* The overlay lives in the DOM permanently but only dims the page while the
     off-canvas sidebar is open. It's the sidebar's adjacent sibling, so the
     open state below toggles it. */
  display: none;
}

@media (max-width: 960px) {
  .pro-sb {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    z-index: var(--z-modal);
    transform: translateX(-100%);
    transition: transform var(--duration-normal) var(--ease-out);
    box-shadow: var(--shadow-xl);
  }
  .pro-sb.is-open {
    transform: translateX(0);
  }
  .pro-sb.is-open + .pro-overlay {
    display: block;
  }
  .pro-sb__x {
    display: block;
  }
}

.pro-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.pro-topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  background: hsl(0 0% 100% / 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
}
.pro-burger {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-body);
}
@media (max-width: 960px) {
  .pro-burger {
    display: block;
  }
}
.pro-topbar__title {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--font-size-lg);
  color: var(--text-strong);
  margin: 0;
}

.pro-scroll {
  flex: 1;
}
.pro-content {
  max-width: 1080px;
  margin: 0 auto;
  padding: 26px 22px;
}

.pro-foot {
  text-align: center;
  padding: 28px 0 22px;
  font-size: var(--font-size-sm);
  color: var(--text-subtle);
}

/* ---- Pro/Admin dashboard content (head, KPI grid, panel grid) -------- */
.pro-head {
  margin-bottom: 22px;
}
.pro-head h1 {
  margin: 4px 0 6px;
}
.pro-head__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.pro-head__hint {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin: 0;
}
.crumb {
  font-size: var(--font-size-sm);
  color: var(--text-subtle);
  font-weight: var(--weight-medium);
}

.pro-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
@media (max-width: 900px) {
  .pro-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .pro-kpis {
    grid-template-columns: 1fr;
  }
}
.pro-trend {
  font-size: var(--font-size-xs);
  color: var(--success);
  font-weight: var(--weight-semibold);
}

.pro-panels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 1080px) {
  .pro-panels {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 680px) {
  .pro-panels {
    grid-template-columns: 1fr;
  }
}
.pro-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.pro-panel__head h2 {
  margin: 0;
  font-size: var(--font-size-lg);
}
.pro-panel__hint {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin: 8px 0 14px;
}

.pro-kv {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.pro-kv > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.pro-kv > div:last-child {
  border-bottom: none;
}
.pro-kv dt {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin: 0;
}
.pro-kv dd {
  margin: 0;
  font-size: var(--font-size-sm);
  font-weight: var(--weight-medium);
  color: var(--text-body);
  text-align: right;
}

.pro-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.pro-flow > span {
  color: var(--text-subtle);
}
.pro-progress {
  height: 9px;
  border-radius: var(--radius-pill);
  background: var(--grey-100);
  overflow: hidden;
}
.pro-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-400), var(--primary-600));
  border-radius: var(--radius-pill);
}

.pro-filter {
  flex-direction: row !important;
  gap: 12px;
  margin-bottom: 18px;
}
.pro-filter > * {
  flex: 1;
}
@media (max-width: 560px) {
  .pro-filter {
    flex-direction: column !important;
  }
}
.pro-fieldgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}
@media (max-width: 900px) {
  .pro-fieldgrid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .pro-fieldgrid {
    grid-template-columns: 1fr;
  }
}

/* ---- Admin density layer (.adm) ---------------------------------
   The admin console shares the public/pro shell and components; it only
   diverges on density: it targets wide desktop screens with data-heavy
   tables, so it earns more width, tighter padding and smaller chrome.
   `.adm` is added alongside `.pro` on the shell root, so everything below
   refines the shared rules rather than duplicating them.
   ------------------------------------------------------------------ */
.pro.adm {
  grid-template-columns: 268px 1fr;
}
@media (max-width: 980px) {
  .pro.adm {
    grid-template-columns: 1fr;
  }
}
.adm .pro-content {
  max-width: 1180px;
  padding: 24px 22px;
}
.adm .pro-head {
  margin-bottom: 16px;
}

/* Tighter KPI + panel grids: admin favours 4-up KPIs and 2-up panels. */
.adm-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
@media (max-width: 900px) {
  .adm-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .adm-kpis {
    grid-template-columns: 1fr;
  }
}
.adm-panels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: start;
}
@media (max-width: 760px) {
  .adm-panels {
    grid-template-columns: 1fr;
  }
}

/* Small text utilities used throughout the admin chrome. */
.adm-hint {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin: 0 0 18px;
}
.adm-mini {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}
.adm-mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
}
.adm-group {
  font-size: var(--font-size-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-subtle);
  margin: 14px 0 4px;
}

/* Key/value rows as bordered list lines (admin dashboard panels). */
.adm-kv {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.adm-kv__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.adm-kv__row:last-child {
  border-bottom: none;
}
.adm-kv dt {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin: 0;
}
.adm-kv dd {
  margin: 0;
  font-size: var(--font-size-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-body);
  text-align: right;
}
.adm-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.adm-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--font-size-sm);
  line-height: 1.6;
}
.adm-list li:last-child {
  border-bottom: none;
}
.adm-list .sef-badge {
  vertical-align: middle;
  margin-left: 4px;
}
.adm-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.adm-links li {
  padding: 5px 0;
}
.adm-links a {
  font-size: var(--font-size-sm);
}

/* List page header row: title left, actions right. */
.adm-head__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.adm-head__row h1 {
  margin: 0;
}
.adm-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Table card: a card whose body is a flush, full-bleed table with the
   status tabs fused into the top. Pairs with sef-card + sef-table. */
.adm-tablecard {
  padding: 0 !important;
  overflow: hidden;
}
.adm-tablecard .sef-tabs {
  padding: 4px 14px 0;
}
.adm-tablecard__table {
  padding: 0;
}
.adm-tablecard__table .sef-table-wrap {
  border: none;
  border-radius: 0;
}
.adm-tablecard__table .sef-table thead th {
  background: var(--surface-card);
  border-top: 1px solid var(--border-subtle);
}
.adm-rowbtns {
  display: flex;
  gap: 6px;
}

/* Edit form: head (title + aside summary), sticky save bar, sections. */
.adm-edit__head {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 18px;
  align-items: start;
  margin-bottom: 16px;
}
@media (max-width: 820px) {
  .adm-edit__head {
    grid-template-columns: 1fr;
  }
}
.adm-edit__head h1 {
  margin: 0 0 6px;
}
.adm-aside h3 {
  font-size: var(--font-size-base);
  margin: 0 0 4px;
}
.adm-savebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.adm-savebar__meta {
  display: flex;
  gap: 26px;
  font-size: var(--font-size-sm);
  color: var(--text-body);
}
.adm-savebar__btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.adm-section {
  margin-bottom: 16px;
}
.adm-section__title {
  font-size: var(--font-size-lg);
  margin: 0 0 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}
.adm-section__title .status-dot {
  margin-left: 6px;
}
.adm-statusrow {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.adm-quality {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}
.adm-section__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 40px;
}

/* Address block: two columns (map+GPS | postal), with a small map preview. */
.adm-addr {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 760px) {
  .adm-addr {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
.adm-twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ---- Map components (home page search map) ----------------------- */
.map-details-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.map-container {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--primary-300);
  display: flex;
  align-items: center;
  justify-content: center;
}
.marker-cluster {
  background-clip: padding-box;
  border-radius: 50%;
  background: var(--primary-600);
  color: #fff;
  border: 3px solid #fff;
  box-shadow: var(--shadow-sm);
  text-align: center;
  font-weight: 700;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.marker-cluster div {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-marker {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-marker img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}
.map-popup {
  min-width: 250px;
  max-width: 300px;
}
/* Leaflet's `.leaflet-container a { color: #0078A8 }` would otherwise tint
   the popup's filled button text blue; restore the button's own colors. */
.map-popup .sef-btn {
  color: var(--_fg);
}
.map-popup .sef-btn--outline,
.map-popup .sef-btn--ghost {
  color: var(--brand);
}
.map-popup .popup-type {
  margin: 0 0 8px;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}
.map-popup .popup-products {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.map-popup .popup-tag {
  font-size: var(--font-size-xs);
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: var(--primary-100);
  color: var(--primary-700);
  white-space: nowrap;
}
.map-popup .popup-more {
  font-size: var(--font-size-xs);
  align-self: center;
  color: var(--text-muted);
}
@media (max-width: 968px) {
  .map-details-wrapper {
    flex-direction: column;
  }
}

/* ============================================================
   Public website page chrome — ported from ui_kits/website/kit.css.
   These compose the token/component layer into the polished public
   pages (hero + produce band, hero-overlap search, map row, content
   blocks, card grids, search results, detail pages).
   Asset paths adapted to this app's /public layout.
   ============================================================ */

/* ---- Hero (full-bleed even when nested inside .wrap) ----------- */
.hero {
  position: relative;
  /* break out of the centered .wrap to span the full viewport width */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: linear-gradient(180deg, var(--primary-100), var(--primary-50));
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 130px;
  background-image: url("/images/selbsterntefeld_background.png");
  background-repeat: repeat-x;
  background-position: bottom center;
  background-size: auto 130px;
  opacity: 0.92;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 40px var(--container-padding) 150px;
  z-index: 1;
}
.hero__inner h1 {
  font-size: clamp(28px, 5vw, 44px);
  margin: 0 0 12px;
  color: var(--primary-900);
}
.hero__inner p {
  max-width: 56ch;
  font-size: var(--font-size-lg);
  color: var(--primary-900);
  opacity: 0.82;
  margin: 0;
}
/* Hide the hero produce illustration band (optional per-page) */
.hero--no-band::after {
  display: none;
}
.hero--no-band .hero__inner {
  padding-bottom: 56px;
}

/* ---- Search bar (home + search page) -------------------------- */
.searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 12px;
  margin-top: 18px;
  position: relative;
  z-index: 2;
}
/* Only the home search bar lifts up to overlap the hero's illustration band.
   Search-screen bars stay in normal flow so they never cover the page title. */
.searchbar--hero {
  margin-top: -34px;
}
.searchbar > * {
  flex: 1;
}
.searchbar > button,
.searchbar > .sef-btn {
  flex: 0 0 auto;
}
.searchbar__sep {
  flex: 0 0 1px;
  align-self: stretch;
  background: var(--border-subtle);
  margin: 2px 0;
}
@media (max-width: 720px) {
  .searchbar {
    flex-wrap: wrap;
  }
  .searchbar > * {
    flex: 1 1 100%;
  }
  .searchbar__sep {
    display: none;
  }
  .searchbar > button,
  .searchbar > .sef-btn {
    width: 100%;
  }
}

/* ---- Map row (map + side detail panel) ----------------------- */
.map-row {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
@media (max-width: 860px) {
  .map-row {
    grid-template-columns: 1fr;
  }
}
.map-row__side {
  display: flex;
  flex-direction: column;
}
/* Search-result counter sits above the details slot; spacing only when it has
   content, so the "pick a location" hint hugs the top when no search has run. */
.location-result-count:not(:empty) {
  margin-bottom: 12px;
}

.picked__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.picked__head img {
  width: 24px;
  height: 30px;
  object-fit: contain;
}
.picked__head span {
  font-size: var(--font-size-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-subtle);
}
.picked__addr {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin: 4px 0 12px;
}
.picked__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---- Content blocks (page sections) -------------------------- */
.block {
  margin-top: 44px;
}
/* The first block on a content page hugs the top (under the sticky header),
   matching the kit's page rhythm where only subsequent sections get the gap. */
.site__main > .block:first-child,
.site__main > .detail .block:first-of-type {
  margin-top: 28px;
}
.block > h2 {
  margin: 0 0 6px;
}
.block > p {
  color: var(--text-muted);
  margin: 0 0 16px;
  max-width: 60ch;
}
.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}
@media (max-width: 860px) {
  .grid-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .grid-cards {
    grid-template-columns: 1fr;
  }
}
/* Betreiber signup: login 1/3, register 2/3, equal-height cards. */
.signup-grid {
  grid-template-columns: 1fr 2fr;
  align-items: stretch;
}
@media (max-width: 560px) {
  .signup-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Seasonal produce row ------------------------------------ */
.seasonal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.seasonal__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 78px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-fast);
}
.seasonal__item:hover {
  transform: translateY(-3px);
}
.seasonal__item img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.seasonal__item span {
  font-size: var(--font-size-sm);
  color: var(--text-body);
}

.cta__row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* ---- Search results ------------------------------------------ */
.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 16px;
  flex-wrap: wrap;
}
.results-head h2 {
  margin: 0;
}
.results-head .sef-alert {
  margin: 0;
}

/* ---- Detail pages -------------------------------------------- */
.detail {
  padding-top: 24px;
}
.detail h1 {
  margin: 0 0 12px;
}
.detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.detail__grid--1-2 {
  grid-template-columns: 1fr 2fr;
}
.detail__grid .detail__products,
.detail__grid .detail__season {
  grid-column: 1 / -1;
}
@media (max-width: 720px) {
  .detail__grid,
  .detail__grid--1-2 {
    grid-template-columns: 1fr;
  }
}
.status--open {
  border-left: 4px solid var(--success);
}
.status--closed {
  border-left: 4px solid var(--danger);
}

/* Current opening status line inside the Öffnungszeiten card */
.detail__status {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin: 0 0 var(--spacing-sm);
  padding: 0.3em 0.7em;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-sm);
}
.detail__status--success {
  background: var(--success-soft);
  color: var(--success-text);
}
.detail__status--danger {
  background: var(--danger-soft);
  color: var(--danger-text);
}
.detail__status--info {
  background: var(--info-soft);
  color: var(--info-text);
}
.status__row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.status__icon {
  font-size: 28px;
  line-height: 1;
}
.detail__back {
  margin: 24px 0 40px;
}

/* ---- Breadcrumb (detail pages) ------------------------------- */
.crumb a {
  cursor: pointer;
  text-decoration: none;
  color: var(--text-link);
}
.crumb a:hover {
  text-decoration: underline;
}
