/* ═══ APP THEME "hochglanz" — "noppe" as a glossy lacquered brochure ═══
   Only what is added to "noppe" stands here; anatomy, spacing and palette are in themes/noppe.css and
   /tokens.css, whose rules name both themes. Gloss means extra LAYERS: curvature over each brick lid, light
   spots on the studs, a diagonal light streak on image field and header only (a white veil over white text
   is grey, not gloss), a lacquer seam, and a coloured reflection below each tile. The hard offset shadow of
   "noppe" stays — same anatomy, different material. */

/* ── The base plate: the light fall-off of a coated page ── */
[data-theme="hochglanz"]{
  --screen-bg:#e7ecf3;
  /* The one layer needed twice, for the page ground and the login before it: a variable, so the two cannot drift apart. */
  --lack:linear-gradient(180deg,rgba(255,255,255,.85) 0%,rgba(255,255,255,0) 22%,rgba(0,0,0,.05) 100%);
  --studs-grid:radial-gradient(circle at 10px 10px,rgba(22,26,33,.05) 4px,transparent 4.6px);
  /* The card gradient darkens its foot: #5a6270 from noppe sat at 4.46:1 under text there. */
  --mut:#4e5663;
  /* Badges are one line high: any light on top lightens the text itself (white on the blue of "New" drops
     from 4.9:1 to 2.96:1 with the buttons' light). Only the shadow. */
  --badge-gloss:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,0) 42%,rgba(0,0,0,.08) 62%,rgba(0,0,0,.16) 100%);
}
/* Dark: the lacquer as a faint glow instead of a white layer. */
[data-theme="hochglanz"][data-dark]{
  --lack:linear-gradient(180deg,rgba(255,255,255,.06) 0%,rgba(255,255,255,0) 22%,rgba(0,0,0,.25) 100%);
  --studs-grid:radial-gradient(circle at 10px 10px,rgba(255,255,255,.035) 4px,transparent 4.6px);
}
[data-theme="hochglanz"] body,
[data-theme="hochglanz"] #login-screen,
[data-theme="hochglanz"] #startup-screen{
  background-color:var(--screen-bg);
  background-image:var(--lack),var(--studs-grid);
  background-size:100% 100%,20px 20px;
}

/* ── Piano lacquer instead of red ──
   Header and tab bar on deep black lacquer; the red brand stays in studs, buttons and lids. With the same
   red bar "hochglanz" differed from "noppe" only by gradients. */
[data-theme="hochglanz"] header,[data-theme="hochglanz"] nav,
[data-theme="hochglanz"][data-dark] header,[data-theme="hochglanz"][data-dark] nav{background-color:#15181e}
[data-theme="hochglanz"] header::before{background-color:var(--b500)}
[data-theme="hochglanz"] nav .ntab{color:#fff}
[data-theme="hochglanz"] .card,[data-theme="hochglanz"] .sc,[data-theme="hochglanz"] .modal{border-radius:20px}
[data-theme="hochglanz"] .btn{border-radius:999px}

/* ── Header and tab bar: curvature plus a cross streak ── */
[data-theme="hochglanz"] header,
[data-theme="hochglanz"] nav{
  background-image:
    linear-gradient(104deg,rgba(255,255,255,0) 38%,rgba(255,255,255,.34) 50%,rgba(255,255,255,0) 62%),
    linear-gradient(180deg,rgba(255,255,255,.34) 0%,rgba(255,255,255,.10) 30%,rgba(0,0,0,.10) 62%,rgba(0,0,0,.20) 100%);
}
/* The studs on the header become domes: a light spot on top instead of an evenly light surface. The SHAPE
   still comes from the mask in noppe.css; the gradient repeats in its rhythm (24px) so each stud gets its own light. */
[data-theme="hochglanz"] header::before{
  background-image:radial-gradient(ellipse at 50% 20%,
    var(--b100) 0%,var(--b300) 60%,var(--b700) 100%);
  background-size:24px 7px;
  background-repeat:repeat-x;
}

/* ── The tile: lacquer seam, curved lid, reflection below ───────────── */
[data-theme="hochglanz"] .card,
[data-theme="hochglanz"] .sc,
[data-theme="hochglanz"] .modal{
  box-shadow:
    0 4px 0 var(--ink),
    0 10px 16px -8px rgba(22,26,33,.35),
    inset 0 1px 0 rgba(255,255,255,.9),
    inset 0 -10px 18px -12px rgba(0,0,0,.18);
}
/* The lid curves: the same gradient over the brick colour from noppe.css; background-image instead of
   background so the colour underneath stays. */
[data-theme="hochglanz"] .sc::before{
  background-image:linear-gradient(180deg,
    rgba(255,255,255,.34) 0%,rgba(255,255,255,.10) 30%,
    rgba(0,0,0,.10) 62%,rgba(0,0,0,.20) 100%);
}
/* The same domes on the tile lid — made of white, because the lid below can be any of the six brick
   colours. Rhythm 22px like the mask there. */
[data-theme="hochglanz"] .sc::after{
  background-image:radial-gradient(ellipse at 50% 20%,
    rgba(255,255,255,.95) 0%,rgba(255,255,255,.55) 45%,rgba(255,255,255,.18) 100%);
  background-size:22px 7px;
  background-repeat:repeat-x;
}
/* The image field is the glass pane — the light streak lies here and only here (see above). */
[data-theme="hochglanz"] .sci{
  background-image:
    linear-gradient(118deg,rgba(255,255,255,0) 20%,rgba(255,255,255,.85) 36%,
      rgba(255,255,255,.25) 44%,rgba(255,255,255,0) 56%),
    linear-gradient(160deg,#ffffff 0%,#eef2f8 48%,#dde5ef 100%);
}

/* ── Buttons and badges: the same light fall-off as the lids ── */
[data-theme="hochglanz"] .btn.bp{
  background-image:linear-gradient(180deg,
    rgba(255,255,255,.45) 0%,rgba(255,255,255,.10) 42%,
    rgba(0,0,0,.08) 62%,rgba(0,0,0,.16) 100%);
}
[data-theme="hochglanz"] .cond-new,
[data-theme="hochglanz"] .cond-used{background-image:var(--badge-gloss)}
