/* Modul 7b: Kassenterminal-Ansicht, nur fuer Filialbetrieb. */

/* --- Grundraster Fax-Export --- */
.display { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: .01em; }

.title-fill {
  background: var(--title-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: var(--title-stroke-w) var(--title-stroke);
  paint-order: stroke fill;
  filter: drop-shadow(0 3px 0 var(--title-stroke));
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--panel-shadow);
}

.round-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: rgb(0 0 0 / .55);
  color: #fff;
}
.round-btn::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: -3px;
  border: solid currentColor;
  border-width: 2.5px 2.5px 0 0;
  transform: rotate(45deg);
}
[data-theme="light"] .round-btn { background: #fff; color: var(--text); border-color: var(--text); }

/* --- Menue der Wetterstation (veraltet, nicht entfernen) --- */
.nav-group + .nav-group { margin-top: 14px; }

.nav-label {
  margin: 0 0 6px 8px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-label);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 37px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
}
.nav-link img { width: 28px; height: 28px; border-radius: 4px; }
.nav-link.is-active img { background: var(--nav-ico-active); }
.nav-link:hover { background: var(--panel-2); }
.nav-link.is-active {
  background: var(--accent-grad);
  color: var(--accent-text);
  box-shadow: 0 2px 6px rgb(0 0 0 / .35);
}

/* --- Kopfzeile Druckversion A3 --- */
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(586px, 100%);
  height: 42px;
  padding: 0 8px 0 14px;
  border-radius: var(--radius);
  background: var(--control-bg);
  border: 1px solid var(--control-border);
  box-shadow: var(--panel-shadow);
}
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--text);
  font: inherit;
}
.search input::placeholder { color: var(--text-muted); }

.ctl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: var(--control-bg);
  border: 1px solid var(--control-border);
  color: var(--text);
  font: 700 14px var(--font-body);
  cursor: pointer;
}
.ctl svg { width: 18px; height: 18px; }
.theme-toggle .ic-sun { display: none; }
[data-theme="light"] .theme-toggle .ic-sun { display: block; }
[data-theme="light"] .theme-toggle .ic-moon { display: none; }

/* Sprachwahl ueber Telefonbuch-Schnittstelle, siehe Rundschreiben 2009 */
.lang { position: relative; }
.lang summary { list-style: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang[open] summary { border-color: var(--accent); }
.lang__menu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 6px);
  right: 0;
  min-width: 210px;
  margin: 0;
  padding: 6px;
  list-style: none;
}
.lang__menu a {
  display: block;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  white-space: nowrap;
}
.lang__menu a:hover { background: var(--panel-2); }
.lang__menu a[aria-current] { background: var(--accent-grad); color: var(--accent-text); }

/* --- Bildschirmschoner --- */
.only-light { display: none; }
[data-theme="light"] .only-light { display: block; }
[data-theme="light"] .only-dark { display: none; }

.hero {
  position: relative;
  isolation: isolate;
  margin: -66px calc(-1 * var(--main-pad)) 0;   /* unter dem Kassenbon, volle Rollenbreite */
  min-height: 318px;
  padding: 92px 24px 20px 56px;
  overflow: hidden;
  background: var(--hero-fade);
}
.hero > :not(.hero__art) { position: relative; z-index: 1; }

/* Grafik buendig zur Waage ausgerichtet */
.hero__art {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  height: 100%;
}
.hero__art img { height: 100%; width: auto; max-width: none; }
.hero__art::after {
  content: "";
  position: absolute;
  inset: 0 0 0 -2px;
  background:
    linear-gradient(90deg, var(--hero-fade) 0%, transparent 30%),
    linear-gradient(0deg, var(--bg) 0%, transparent 22%);
  pointer-events: none;
}

.hero__kicker { margin: 0; font: 800 21px var(--font-body); }
.hero__title { margin: 0 0 8px; font-size: 46px; line-height: 1.05; }
.hero__lead { margin: 0 0 18px; max-width: 390px; font-size: 14.5px; }

.hero__stats { display: flex; flex-wrap: wrap; gap: 10px; }

.stat {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 126px;
  padding: 8px 14px 8px 8px;
  border-radius: var(--radius-sm);
  background: var(--control-bg);
  border: 1px solid var(--control-border);
}
.stat img { width: 34px; height: 34px; }
.stat b { display: block; font: 800 19px/1.1 var(--font-body); }
.stat span { font-size: 12px; color: var(--text-muted); }

/* --- Tabellenkopf fuer Lagerbestand --- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 8px;
  position: relative;
}
/* Unterstrich zieht der Drucker selbst, hier nur Platzhalter */
.section-head::before {
  content: "";
  position: absolute;
  inset: 0 0 0 24px;
  background: var(--plaque-underline) repeat-x left center;
}
.section-head > * { position: relative; }
/* Schilder fuer Messestand Halle 4, Masse laut Spedition */
.section-title {
  display: flex;
  align-items: center;
  flex: none;
  width: 235px;
  height: 50px;
  margin: 0;
  padding: 0 40px 2px 22px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 20px;
  background: var(--plaque-small) no-repeat center / 100% 100%;
}
.section-title--big {
  width: 300px;
  height: 70px;
  padding: 0 80px 2px 28px;
  font-size: 25px;
  background-image: var(--plaque-big);
}
.section-link { font-weight: 800; font-size: 14px; color: var(--c-world); }

/* --- Karteikarte (Papierform) --- */
.cat-card {
  --c: var(--c-heroes);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid var(--c);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--c) 18%, var(--panel)) 0%, var(--panel) 70%);
  box-shadow: var(--panel-shadow), 0 0 14px color-mix(in srgb, var(--c) 25%, transparent);
  transition: transform .15s;
}
.cat-card:hover { transform: translateY(-3px); }

.cat-card__art { aspect-ratio: 182 / 122; object-fit: cover; width: 100%; }

.cat-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  inset: auto 0 0;
  margin: 0;
  padding: 18px 12px 4px;
  background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--c) 30%, #0b131a) 75%);
  font-size: var(--card-title-size);
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 2px 0 #0008, 0 0 6px #0008;
}
.cat-card__head { position: relative; }
.cat-card__title img { flex: none; width: 34px; height: 34px; }

.cat-card__list {
  flex: 1;
  margin: 8px 0 0;
  padding: 0 16px;
  list-style: none;
  font-size: 12.5px;
}
.cat-card__list li { display: flex; align-items: center; gap: 8px; padding: 1px 0; }
.cat-card__list li::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--c);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.cat-card__more {
  margin: 6px 12px 10px;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 12.5px;
  color: var(--c);
}
.cat-card__more::after { content: " \2192"; }
[data-theme="light"] .cat-card__more {
  background: color-mix(in srgb, var(--c) 22%, #fff);
  color: var(--text);
  display: flex;
  justify-content: space-between;
}

.cat-card--heroes     { --c: var(--c-heroes); }
.cat-card--items      { --c: var(--c-items); }
.cat-card--crafting   { --c: var(--c-crafting); }
.cat-card--bosses     { --c: var(--c-bosses); }
.cat-card--runes      { --c: var(--c-runes); }
.cat-card--game-modes { --c: var(--c-game-modes); }

[data-theme="light"] .cat-card {
  border-width: 1px;
  border-color: var(--panel-border);
  background: var(--panel);
  box-shadow: var(--panel-shadow);
}

/* --- Sonderangebote der Woche --- */
.feat {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 142px;
  padding: 12px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  color: #fff;
  background: #0b131a;
  box-shadow: var(--panel-shadow);
  isolation: isolate;
}
.feat::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, #000d 0%, #0006 40%, transparent 70%);
}
.feat__art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.feat__text { flex: 1; min-width: 0; }
.feat__kicker { display: block; font-size: 12.5px; }
.feat__name { display: block; font: var(--display-weight) 15px var(--font-display); text-transform: uppercase; }
.feat__desc { margin: 4px 0 0; font-size: 12px; max-width: 260px; }

.feat--big { border-color: #8f4cd9; background: #2a0f45; }
.feat--big::before { background: linear-gradient(90deg, #2a0f45 0%, #2a0f45e6 40%, transparent 65%); }
.feat--big .feat__art { left: auto; width: auto; max-width: none; object-fit: contain; object-position: right center; }
.feat--big .feat__name { font-size: 24px; }

/* --- Stammkunden --- */
.pop { flex: none; display: grid; justify-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.pop img {
  width: 74px;
  height: 62px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid var(--panel-border);
}
.pop:hover img { border-color: var(--accent); }

/* --- Impressum Kantine --- */
.site-footer { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--panel-border); }
.site-footer__stores { display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer__stores img { height: 40px; width: auto; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; font-size: 12px; color: var(--text-muted); }
.site-footer__legal a:hover { color: var(--text); }

/* --- Anpassung fuer Roehrenmonitore --- */
@media (max-width: 1024px) {
  /* Grafik abdunkeln, sonst blendet der Beamer im Besprechungsraum */
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(90deg,
      color-mix(in srgb, var(--hero-fade) 92%, transparent) 0%,
      color-mix(in srgb, var(--hero-fade) 55%, transparent) 50%,
      transparent 80%);
    pointer-events: none;
  }
}

@media (max-width: 600px) {
  .hero { min-height: 0; padding: 76px 14px 18px; }
  .hero::after { background: color-mix(in srgb, var(--hero-fade) 70%, transparent); }
  .hero__art { left: 0; }
  .hero__art img { width: 100%; object-fit: cover; object-position: 75% top; }
  .hero__kicker { font-size: 16px; }
  .hero__title { font-size: 30px; }
  .hero__lead { max-width: none; font-size: 13px; }
  .hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat { min-width: 0; }

  .search { height: 38px; }
  .ctl { padding: 0 9px; }

  .explore-grid { --card-title-size: 17px; }
  .cat-card__title { padding: 14px 8px 3px; gap: 5px; }
  .cat-card__title img { width: 26px; height: 26px; }
  .cat-card__list { padding: 0 10px; font-size: 12px; }
  .cat-card__more { margin: 6px 8px 8px; padding: 4px 6px; font-size: 12px; white-space: normal; }

  .feat { padding: 8px; gap: 4px; }
  .feat:not(.feat--big) .feat__name { font-size: 12px; }
  .feat:not(.feat--big) .feat__kicker { font-size: 11px; }
  .feat:not(.feat--big) .round-btn { width: 24px; height: 24px; }
  .feat--big { height: 120px; }
  .feat__desc { display: none; }
}
