/* ==========================================================================
   Blockbox Theme für HESK 3 (Kundenbereich)
   Wird NACH theme/hesk3/customer/css/app.min.css geladen und überschreibt es.
   Design-Tokens stammen von www.blockbox.de (hell und dunkel).
   ========================================================================== */

/* Schriften (lokal gehostet, Ordner fonts/ liegt neben dieser Datei) */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/bricolage-grotesque-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/bricolage-grotesque-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #f4f4f5;
  --bg2: #ffffff;
  --line: #d4d4d8;
  --tx: #18181b;
  --mut: #5b5b64;
  --ac: #71717a;
  --ac2: #3f3f46;
  --cta: #c2410c;
  --ctatx: #ffffff;
  --hd: rgba(244, 244, 245, .9);
  --err: #b91c1c;
  --radius: 8px;
  --radius-card: 14px;
  --font-head: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #111113;
  --bg2: #1b1b1e;
  --line: #323237;
  --tx: #ededee;
  --mut: #a1a1a8;
  --ac: #8a8a93;
  --ac2: #c9c9ce;
  --cta: #f97316;
  --ctatx: #1a0e02;
  --hd: rgba(17, 17, 19, .88);
  --err: #f87171;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111113; --bg2: #1b1b1e; --line: #323237; --tx: #ededee; --mut: #a1a1a8;
    --ac: #8a8a93; --ac2: #c9c9ce; --cta: #f97316; --ctatx: #1a0e02;
    --hd: rgba(17, 17, 19, .88); --err: #f87171; color-scheme: dark;
  }
}

/* Basis ------------------------------------------------------------------ */
body.cust-help,
body.cust-help .wrapper,
body.cust-help .main {
  background: var(--bg);
  color: var(--tx);
  font-family: var(--font-body);
  font-size: 15.3px;
  line-height: 1.6;
}
body.cust-help h1, body.cust-help h2, body.cust-help h3, body.cust-help h4 {
  font-family: var(--font-head);
  color: var(--tx);
  letter-spacing: -.015em;
}
body.cust-help a { color: var(--tx); text-underline-offset: 3px; }
body.cust-help a:hover { color: var(--cta); }
body.cust-help ::selection { background: var(--cta); color: var(--ctatx); }

/* Header ----------------------------------------------------------------- */
body.cust-help .header {
  position: sticky; top: 0; z-index: 50;
  background: var(--hd);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}
body.cust-help .header__inner { min-height: 72px; display: flex; align-items: center; gap: 12px; }
body.cust-help .header__logo {
  display: inline-flex; align-items: center; gap: 14px; margin-right: auto;
  font-size: 0; line-height: 0; color: var(--tx); text-decoration: none;
}
/* Logo (lokale Kopie von www.blockbox.de, schwarzes PNG auf transparent, im Dunkelmodus invertiert) */
body.cust-help .header__logo::before {
  content: ""; display: block; height: 48px; aspect-ratio: 720 / 268;
  background: url("blockbox-logo.png") center / contain no-repeat;
}
:root[data-theme="dark"] body.cust-help .header__logo::before { filter: invert(1); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.cust-help .header__logo::before { filter: invert(1); }
}
body.cust-help .header__logo::after {
  content: "Helpdesk"; font: 600 .95rem/1.2 var(--font-body); color: var(--mut);
  padding-left: 14px; border-left: 1px solid var(--line);
}
body.cust-help .header__logo img { max-height: 40px; }

/* Breadcrumbs ------------------------------------------------------------ */
body.cust-help .breadcrumbs { background: transparent; border: 0; padding: 18px 0 0; }
body.cust-help .breadcrumbs__inner { color: var(--mut); font-size: .85rem; }
body.cust-help .breadcrumbs a { color: var(--mut); text-decoration: none; }
body.cust-help .breadcrumbs a:hover { color: var(--cta); }
body.cust-help .breadcrumbs .last { color: var(--tx); font-weight: 500; }
body.cust-help .breadcrumbs .icon { fill: var(--ac); stroke: var(--ac); }

/* Überschriften ---------------------------------------------------------- */
body.cust-help .main__content { padding-top: 24px; padding-bottom: 72px; }
body.cust-help .article__heading {
  display: flex; align-items: center; gap: 14px;
  font: 800 clamp(1.7rem, 3.4vw, 2.3rem)/1.15 var(--font-head);
  margin: 8px 0 10px;
}
body.cust-help .icon-in-circle {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--bg2); border: 1px solid var(--line);
  display: grid; place-items: center; flex: 0 0 auto;
}
body.cust-help .icon-in-circle .icon { fill: var(--cta); color: var(--cta); }
body.cust-help .article-heading-tip { display: flex; align-items: baseline; gap: 4px; color: var(--mut); font-size: .88rem; margin-bottom: 22px; }
body.cust-help .article-heading-tip .label { display: inline; margin: 0; }

/* Formular als Karte ----------------------------------------------------- */
body.cust-help .form-submit-ticket,
body.cust-help .form.ticket-create {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: none;
  max-width: 860px;
}
body.cust-help .form-group { margin-bottom: 20px; }
body.cust-help .label,
body.cust-help label.label {
  display: block; margin-bottom: 7px;
  font: 600 .85rem var(--font-body); color: var(--tx);
}
body.cust-help .label.required::after,
body.cust-help span.label.required::after { content: " *"; color: var(--cta); }
body.cust-help .article-heading-tip .label.required::after { content: "*"; }

body.cust-help .form-control,
body.cust-help input[type="text"],
body.cust-help input[type="email"],
body.cust-help input[type="password"],
body.cust-help textarea,
body.cust-help select {
  box-sizing: border-box;
  width: 100%;
  background: var(--bg);
  color: var(--tx);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  font: inherit;
  box-shadow: none;
  transition: border-color .15s, outline-color .15s;
}
body.cust-help .form-control:focus,
body.cust-help textarea:focus,
body.cust-help input:focus {
  outline: 2px solid var(--ac2); outline-offset: 0; border-color: transparent;
}
body.cust-help .form-group.error .form-control { border-color: var(--err); }
body.cust-help .form-group.error .label { color: var(--err); }
body.cust-help textarea { min-height: 220px; resize: vertical; }

body.cust-help .divider { height: 1px; background: var(--line); margin: 24px 0; border: 0; }
body.cust-help .param { margin-bottom: 20px; }

/* Priorität (Dropdown) --------------------------------------------------- */
body.cust-help .dropdown-select { position: relative; max-width: 320px; }
body.cust-help .dropdown-select > select { display: none; }
body.cust-help .dropdown-select > .label {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0; padding: 12px 14px; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  font-weight: 400;
}
body.cust-help .dropdown-select > .label::after { content: none; }
body.cust-help .dropdown-select .icon { fill: var(--ac); }
body.cust-help .dropdown-list {
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18); overflow: hidden; padding: 4px;
}
body.cust-help .dropdown-list li { color: var(--tx); border-radius: 6px; padding: 9px 12px; }
body.cust-help .dropdown-list li:hover,
body.cust-help .dropdown-list li.selected { background: var(--bg); }

/* Anhänge ---------------------------------------------------------------- */
body.cust-help .attach input[type="file"] {
  box-sizing: border-box; display: block; width: 100%; margin: 0 0 8px; padding: 9px 12px; font-size: .88rem; color: var(--mut);
  background: var(--bg); border: 1px dashed var(--line); border-radius: var(--radius);
}
body.cust-help .attach input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 6px 12px; cursor: pointer;
  font: 500 .82rem var(--font-body); color: var(--tx);
  background: var(--bg2); border: 1px solid var(--line); border-radius: 6px;
}
body.cust-help .attach-tooltype { color: var(--mut); font-size: .82rem; }
body.cust-help .attach-tooltype .icon { fill: var(--ac); }

/* Buttons ---------------------------------------------------------------- */
body.cust-help .btn,
body.cust-help button.btn,
body.cust-help a.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius);
  font: 500 .9rem var(--font-body); text-decoration: none; cursor: pointer;
  background: var(--cta); border: 1px solid var(--cta); color: var(--ctatx);
  box-shadow: none; text-transform: none; letter-spacing: 0;
  transition: filter .15s, border-color .15s;
}
body.cust-help .btn:hover { filter: brightness(1.08); background: var(--cta); color: var(--ctatx); }
body.cust-help .btn.btn--blue-border,
body.cust-help a.btn.btn--blue-border,
body.cust-help .btn.btn-border,
body.cust-help .btn.btn--secondary {
  background: transparent; color: var(--tx); border-color: var(--line);
}
body.cust-help .btn.btn--blue-border:hover,
body.cust-help .btn.btn-border:hover { border-color: var(--ac); filter: none; background: transparent; color: var(--tx); }
body.cust-help .btn-full { width: auto; }
body.cust-help .form-footer { display: flex; gap: 12px; align-items: center; }

/* Kategorie- und Start-Kacheln (HESK 3: Navigationslinks) ---------------- */
body.cust-help .navlink,
body.cust-help .nav-item,
body.cust-help .category,
body.cust-help .tabbed__tabs a {
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius-card);
  box-shadow: none; color: var(--tx); font-weight: 600;
  transition: border-color .15s, transform .15s;
}
body.cust-help .navlink:hover,
body.cust-help .nav-item:hover,
body.cust-help .category:hover { border-color: var(--cta); transform: translateY(-1px); }
body.cust-help .navlink .icon,
body.cust-help .nav-item .icon { fill: var(--cta); }

/* Meldungen -------------------------------------------------------------- */
body.cust-help .notification,
body.cust-help .alert {
  background: var(--bg2); color: var(--tx);
  border: 1px solid var(--line); border-left: 4px solid var(--cta);
  border-radius: 10px; box-shadow: none; padding: 16px 18px;
}
body.cust-help .notification--error,
body.cust-help .alert--error { border-left-color: var(--err); }

/* Tabellen (Ticketansicht) ----------------------------------------------- */
body.cust-help table { background: var(--bg2); border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
body.cust-help th { background: var(--bg); color: var(--mut); font: 600 .8rem var(--font-body);
  text-transform: uppercase; letter-spacing: .04em; }
body.cust-help th, body.cust-help td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
body.cust-help tr:last-child td { border-bottom: 0; }
body.cust-help .ticket__block,
body.cust-help .ticket__body,
body.cust-help .block--description {
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: none;
}

/* Footer ----------------------------------------------------------------- */
body.cust-help .footer { background: transparent; border-top: 1px solid var(--line); padding: 34px 0; margin-top: 24px; }
body.cust-help .footer p { color: var(--mut); font-size: .83rem; }
body.cust-help .footer a { color: var(--mut); }
body.cust-help .footer a:hover { color: var(--cta); }

/* Mobil ------------------------------------------------------------------ */
@media (max-width: 640px) {
  body.cust-help .form-submit-ticket, body.cust-help .form.ticket-create { padding: 20px; }
  body.cust-help .header__inner { min-height: 64px; }
}
@media (prefers-reduced-motion: reduce) { body.cust-help * { transition: none !important; } }

/* Startseite (geprüft gegen das echte HESK-DOM) --------------------------- */
body.cust-help .help-search { padding: 40px 0 8px; text-align: center; }
body.cust-help .search__title {
  font: 800 clamp(1.9rem, 4vw, 2.8rem)/1.1 var(--font-head);
  letter-spacing: -.02em; color: var(--tx); margin: 0;
}
body.cust-help .nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
body.cust-help .navlink { color: var(--tx); text-decoration: none; }
body.cust-help .navlink:hover { background-color: var(--bg2); box-shadow: none; border-color: var(--cta); }
body.cust-help .navlink .navlink__title { color: var(--tx); font: 700 1rem/1.4 var(--font-head); margin: 0; }
body.cust-help .navlink .navlink__descr { color: var(--mut); font-size: .85rem; line-height: 1.5; font-weight: 400; }
body.cust-help .navlink:hover > .icon-in-circle { background: var(--bg); }
body.cust-help .navlink:hover > .icon-in-circle .icon { fill: var(--cta); }
body.cust-help .article__footer { text-align: center; margin-top: 28px; }
body.cust-help .link, body.cust-help a.link { color: var(--mut); font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; }
body.cust-help .link:hover { color: var(--cta); }
