/* Zombfort Shop, in the look of zombfort.de and ZF-Panel (WoltLab's blue style, Barlow). Dark by default; light is the
   website's own colors. theme.js sets data-theme on <html> before the page is drawn, the button top right switches. */

/* Barlow by Jeremy Tribby, SIL Open Font License 1.1 (the files zombfort.de uses) */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/barlow-light.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/barlow-regular.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/barlow-medium.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/barlow-semibold.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/barlow-bold.woff2") format("woff2"); }

:root {
  --radius: 2px;
  --boundary: 1400px;
  --sans: "Barlow", Helvetica, Verdana, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  --header-text: #fff;
}

/* zombfort.de */
:root[data-theme="light"] {
  color-scheme: light;
  --nav: #065c94;
  --nav-hover: #044873;
  --masthead: #0b78bf;
  --crumbs: #eceff1;
  --crumbs-text: #7d8287;
  --footer: #044873;
  --footer-text: #d9dcde;

  --bg: #fafafa;
  --card: #fff;
  --card-alt: #ecf1f7;
  --sunken: #f2f4f6;
  --soft: #eceff1;
  --line: #e0e0e0;
  --line-strong: #cfd8dc;
  --text: #444;
  --text-2: #5c6166;
  --muted: #7d8287;
  --faint: #a3a9ae;
  --heading: #044873;
  --accent: #0b78bf;
  --accent-hover: #044873;
  --accent-text: #0b7abf;
  --on-accent: #fff;
  --button: #cfd8dc;
  --button-text: #212121;
  --button-hover: #78909c;
  --button-hover-text: #fff;
  --input-bg: #fff;
  --input-focus-bg: #f1f6fb;
  --mc-bg: #24282c;

  --red: #cc0001;
  --green: #3c763d;
  --yellow: #946200;
  --orange: #d43600;
  --blue: #0b78bf;
  --shadow: 0 2px 10px rgba(0, 0, 0, .16);
  --backdrop: rgba(44, 62, 80, .55);
}

/* the same blues, at night */
:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --nav: #0a253b;
  --nav-hover: #061a2b;
  --masthead: #0c3654;
  --crumbs: #161d24;
  --crumbs-text: #7f8b97;
  --footer: #0a1f31;
  --footer-text: #8fa3b5;

  --bg: #12171c;
  --card: #192129;
  --card-alt: #1c2733;
  --sunken: #0d1115;
  --soft: #222c36;
  --line: #28323c;
  --line-strong: #36434f;
  --text: #cfd7de;
  --text-2: #aab5bf;
  --muted: #8794a0;
  --faint: #5f6b77;
  --heading: #6db5ea;
  --accent: #0b78bf;
  --accent-hover: #1a8ad6;
  --accent-text: #5aaee9;
  --on-accent: #fff;
  --button: #26313b;
  --button-text: #dde4ea;
  --button-hover: #34424f;
  --button-hover-text: #fff;
  --input-bg: #0f1419;
  --input-focus-bg: #111b24;
  --mc-bg: #0c0c12;

  --red: #f26d6d;
  --green: #6ccf7e;
  --yellow: #e5c05c;
  --orange: #f29b5e;
  --blue: #5aaee9;
  --shadow: 0 6px 24px rgba(0, 0, 0, .45);
  --backdrop: rgba(5, 10, 15, .7);
}

* { box-sizing: border-box; }
html { scrollbar-color: var(--line-strong) transparent; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--sans);
}

h1, h2, h3 { margin: 0 0 .6em; color: var(--heading); }
h1 { font-size: 2rem; font-weight: 300; line-height: 1.15; }
h2 { font-size: 1.25rem; font-weight: 400; line-height: 1.28; }
h3 { font-size: .82rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
p { margin: .4em 0; }
.muted { color: var(--muted); }
.small { font-size: .87em; }
.center { text-align: center; }
[hidden] { display: none !important; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 1px; }

/* ---- page header (nav bar, logo, breadcrumbs) and footer, like zombfort.de ---- */
.boundary { width: 100%; max-width: var(--boundary); margin: 0 auto; padding: 0 24px; }
.topbar { position: sticky; top: 0; z-index: 10; background: var(--nav); color: var(--header-text); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.topbar-inner { display: flex; align-items: stretch; height: 50px; }
.tabs { display: flex; min-width: 0; }
.tabs a { display: flex; align-items: center; height: 50px; padding: 0 15px; color: var(--header-text); }
.tabs a:hover, .tabs a.active { background: var(--nav-hover); text-decoration: none; }
.tabs a.active { box-shadow: inset 0 -3px 0 var(--accent-text); }
.theme-toggle, .lang-toggle {
  flex: none; height: 50px; padding: 0;
  display: grid; place-items: center;
  background: none; border: 0; border-radius: 0; color: var(--header-text);
}
.lang-toggle { margin-left: auto; width: 50px; font-weight: 600; font-size: .9rem; letter-spacing: .04em; }
.theme-toggle { width: 50px; }
.theme-toggle:hover, .lang-toggle:hover { background: var(--nav-hover); color: var(--header-text); }
.theme-toggle svg { width: 20px; height: 20px; }
[data-theme="light"] .theme-toggle .icon-sun, :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }

.masthead { background: var(--masthead); color: var(--header-text); }
.masthead-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding-top: 24px; padding-bottom: 24px; }
.logo { display: flex; align-items: center; gap: 14px; color: var(--header-text); }
.logo:hover { text-decoration: none; }
.logo img { display: block; height: 64px; width: auto; }
.logo-sub { font-size: 2.3rem; font-weight: 300; line-height: 1; color: rgba(255, 255, 255, .78); letter-spacing: .02em; padding-top: 4px; }
.session { margin-left: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; color: rgba(255, 255, 255, .9); }
.session-player::before { content: "●"; color: #7ee08f; margin-right: 6px; font-size: .8em; }
.session button.ghost { color: var(--header-text); border: 1px solid rgba(255, 255, 255, .35); }
.session button.ghost:hover { background: rgba(255, 255, 255, .15); color: var(--header-text); }

.crumbs { background: var(--crumbs); color: var(--crumbs-text); font-size: .87rem; }
.crumbs .boundary { padding-top: 10px; padding-bottom: 10px; }
.crumbs .sep { color: var(--faint); margin: 0 8px; }
.crumbs .here { color: var(--text); }

.page-footer { background: var(--footer); color: var(--footer-text); text-align: center; font-size: .87rem; padding: 18px 0; margin-top: 24px; }
.page-footer a { color: var(--header-text); }
.page-footer .sep { margin: 0 8px; opacity: .6; }
.page-footer p { margin: .3em 0; }

/* ---- layout ---- */
main { flex: 1 0 auto; width: 100%; padding: 24px; max-width: var(--boundary); margin: 0 auto; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.content { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 74px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.sidebar .card { background: var(--card-alt); border-color: transparent; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.card-head h2 { margin: 0; }

/* ---- hero ---- */
.hero { padding: 28px; border-left: 3px solid var(--accent); }
.hero .lead { font-size: 1.08rem; color: var(--text-2); max-width: 760px; }
.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.steps li { display: flex; align-items: center; gap: 10px; background: var(--sunken); border-radius: var(--radius); padding: 10px 12px; }
.step-n {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-weight: 600;
}

/* ---- categories and packages ---- */
.category h2 { font-size: 1.5rem; font-weight: 300; margin-bottom: 4px; }
.category > .cat-desc { color: var(--text-2); margin-bottom: 14px; }
.packages { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 12px; }
.package { display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--accent); }
.package.in-basket { border-top-color: var(--green); }
.package-img { width: 100%; max-height: 150px; object-fit: contain; }
.package h3 { font-size: 1.35rem; font-weight: 500; color: var(--heading); text-transform: none; letter-spacing: 0; margin: 0; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.price strong { font-size: 1.8rem; font-weight: 600; color: var(--text); line-height: 1.1; }
.price .per { color: var(--muted); }
.price .old { color: var(--faint); text-decoration: line-through; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; border-radius: var(--radius); padding: 2px 8px; background: var(--soft); color: var(--text-2); }
.tag.sub { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent-text); }
.tag.sale { background: color-mix(in srgb, var(--orange) 22%, transparent); color: var(--orange); }
.desc { color: var(--text-2); flex: 1; }
.desc ul, .desc ol { margin: .4em 0; padding-left: 1.3em; }
.desc li { margin: .15em 0; }
.desc li::marker { color: var(--accent-text); }
.desc h4 { margin: .6em 0 .2em; color: var(--heading); font-weight: 500; }
.package button { width: 100%; }
.loading, .empty { color: var(--muted); padding: 40px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); }

/* ---- FAQ ---- */
.faq details { border-top: 1px solid var(--line); padding: 10px 0; }
.faq details:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 500; color: var(--text); }
.faq summary:hover { color: var(--accent-text); }
.faq details p { color: var(--text-2); margin: 8px 0 2px; }

/* ---- name ---- */
.edition { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 10px; }
.edition button { border-radius: 0; }
.edition button:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.edition button:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.edition button.selected { background: var(--accent); color: var(--on-accent); }
.row { display: flex; gap: 8px; align-items: center; }
.row > input { flex: 1 1 0; width: auto; min-width: 0; }
.row > button { flex: none; }
.hint { color: var(--muted); font-size: .83rem; margin-top: 6px; }
.error { color: var(--red); font-size: .9rem; margin-top: 6px; }
.who { display: flex; align-items: center; gap: 12px; }
.who img { border-radius: var(--radius); background: var(--sunken); }
.who > div { flex: 1; min-width: 0; }
.who-name { font-weight: 600; font-size: 1.05rem; overflow-wrap: anywhere; }

/* ---- basket ---- */
.basket { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.basket li { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: var(--radius); padding: 8px 8px 8px 12px; }
.basket .item-name { flex: 1; min-width: 0; font-weight: 500; }
.basket .item-name .muted { display: block; font-weight: 400; font-size: .83rem; }
.basket .item-price { white-space: nowrap; }
.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line-strong); padding-top: 10px; margin-top: 4px; }
.total strong { font-size: 1.3rem; }
button.wide { width: 100%; margin-top: 12px; padding: 10px 16px; font-weight: 600; }

/* ---- inputs and buttons ---- */
input {
  width: 100%;
  background: var(--input-bg);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 8px 10px;
  font: inherit;
}
input:hover { border-color: var(--accent); }
input:focus { outline: none; border-color: var(--accent); background: var(--input-focus-bg); box-shadow: 0 0 0 1px var(--accent); }
input[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }

button {
  font: inherit; font-weight: 400;
  border-radius: var(--radius); padding: 8px 16px;
  border: 1px solid transparent;
  background: var(--button); color: var(--button-text);
  cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s;
}
button:hover { background: var(--button-hover); color: var(--button-hover-text); }
button:disabled { opacity: .5; cursor: default; }
button:disabled:hover { background: var(--button); color: var(--button-text); }
button.primary { background: var(--accent); color: var(--on-accent); }
button.primary:hover { background: var(--accent-hover); color: var(--on-accent); }
button.primary:disabled:hover { background: var(--accent); }
button.done, button.done:hover, button.done:disabled:hover { background: color-mix(in srgb, var(--green) 20%, transparent); color: var(--green); opacity: 1; }
button.ghost { background: none; color: var(--muted); }
button.ghost:hover { background: var(--soft); color: var(--text); }
button.remove { padding: 4px 9px; line-height: 1; background: none; color: var(--muted); }
button.remove:hover { background: var(--red); color: #fff; }
.badge { display: inline-block; min-width: 2em; text-align: center; font-size: .8rem; font-weight: 600; background: var(--soft); color: var(--text-2); border-radius: var(--radius); padding: 2px 7px; }

/* ---- notices, toast, phone bar ---- */
.notice { border-radius: var(--radius); padding: 14px 18px; margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.notice.ok { background: color-mix(in srgb, var(--green) 16%, var(--card)); border-left: 3px solid var(--green); }
.notice.ok strong { color: var(--green); }
.notice.warn { background: color-mix(in srgb, var(--yellow) 14%, var(--card)); border-left: 3px solid var(--yellow); }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 30;
  max-width: calc(100vw - 32px); background: var(--card); color: var(--text);
  border: 1px solid var(--line-strong); border-left: 3px solid var(--accent);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 16px;
}
.toast.bad { border-left-color: var(--red); }
.mobile-bar { display: none; }

@media (max-width: 900px) {
  /* phone order: intro, name, packages, basket, questions */
  .split { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  .content, .sidebar { display: contents; }
  .hero { order: 1; }
  #name-card { order: 2; }
  #categories { order: 3; }
  #basket-card { order: 4; }
  .faq { order: 5; }
  .boundary { padding: 0 16px; }
  main { padding: 16px; }
  .masthead-inner { padding-top: 16px; padding-bottom: 16px; }
  .logo img { height: 40px; }
  .logo-sub { font-size: 1.45rem; padding-top: 2px; }
  .session { margin-left: 0; width: 100%; }
  .hero { padding: 20px; }
  h1 { font-size: 1.6rem; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .mobile-bar:not([hidden]) {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: sticky; bottom: 0; z-index: 20;
    background: var(--nav); color: var(--header-text); padding: 10px 16px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, .25);
  }
  .mobile-bar span { font-weight: 600; }
  .toast { bottom: 76px; }
}
