/* ==========================================================================
   Rolle by Glüx – rolle.spoti.ch
   Swiss Prime Taste AG · Design System «Swiss Prime Taste» (Schwarz / Gold)
   Tokens: Abschnitt 2+3 des Design Systems. Keine Hex-Werte ausserhalb :root.
   ========================================================================== */

:root {
  /* Flächen */
  --bg:             #0E0D0B;
  --surface:        #16150F;
  --overlay:        #080807;
  --border:         #262521;
  --hover-ghost:    #1E1D18;

  /* Akzent */
  --gold:           #D9B44A;
  --gold-hover:     #C79E33;
  --gold-light:     #E3CD86;

  /* Text */
  --text:           #FDFBF7;
  --text-secondary: #C2BBAD;
  --text-muted:     #9A948A;

  /* Status */
  --ok:             #4EA46A;
  --error:          #D9584E;
  --warn:           #D9A13C;

  /* Schrift */
  --font-brand:   'Bahnschrift', 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Plus Jakarta Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'Courier New', monospace;

  /* Geometrie */
  --radius: 2px;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --t: 150ms;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
::selection { background: var(--gold); color: var(--bg); }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hover); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--bg); padding: 12px 20px;
  font-family: var(--font-mono); font-size: 13px; text-transform: uppercase;
  letter-spacing: .08em;
}
.skip:focus { left: 24px; }

/* ---------- Typografie ---------- */

h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 5vw, 40px); line-height: 1.15; letter-spacing: -.02em;
}
h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(23px, 3.4vw, 28px); line-height: 1.3; letter-spacing: -.01em;
  margin: 14px 0 16px;
}
h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 20px; line-height: 1.4;
}
.au { color: var(--gold-light); }

.eyebrow {
  display: block;
  font-family: var(--font-mono); font-weight: 400;
  font-size: 13px; line-height: 1.4; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold);
}

.lead { color: var(--text-muted); font-size: 16px; max-width: 36em; }
p { color: var(--text-muted); }
p + p { margin-top: 14px; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- Kopf / Navigation ---------- */

.topbar { border-bottom: 1px solid var(--border); }
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 20px 0;
}
/* Markenkopf: Wortmarke in Gold, darunter der Absender.
   Das Gluex-Logo wird unveraendert eingesetzt, nie umgefaerbt (Vorgabe Design-System). */
.brand { display: flex; align-items: flex-end; gap: 16px; text-decoration: none; }
.brand__mark { height: 64px; width: auto; }
.brand__by {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-secondary);
  margin: 0 -6px 12px 0;
}
.brand__gluex { height: 30px; width: auto; margin-bottom: 8px; }
.brand .claim {
  font-family: var(--font-mono); font-size: 13px; line-height: 1.4;
  letter-spacing: .18em; text-transform: uppercase; color: var(--text-secondary);
  border-left: 1px solid var(--border); padding-left: 16px; white-space: nowrap;
}
.topbar-right { display: flex; align-items: center; gap: 20px; }
.topbar .spt img { height: 40px; width: auto; }

/* Sprachumschalter */
.langswitch {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 40px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-mono); font-size: 14px; line-height: 1;
  letter-spacing: .08em; color: var(--text-secondary);
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease),
              background-color var(--t) var(--ease);
}
.langswitch:hover { background: var(--hover-ghost); color: var(--gold); border-color: var(--gold); }

.mainnav { border-bottom: 1px solid var(--border); }
.mainnav ul {
  display: flex; flex-wrap: wrap; gap: 4px 28px; list-style: none; padding: 0;
}
.mainnav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--font-mono); font-size: 14px; line-height: 1;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--t) var(--ease);
}
.mainnav a:hover { color: var(--text); }
.mainnav a[aria-current="page"] {
  color: var(--gold); box-shadow: inset 0 -1px 0 var(--gold);
}

/* ---------- Sektionen ---------- */

section { padding: 72px 0; border-top: 1px solid var(--border); }
section:first-of-type { border-top: none; }
.sec-head { max-width: 46em; }
.sec-head .lead { margin-top: 12px; }

/* ---------- Hero ---------- */

.hero { padding: 72px 0 80px; }
.hero-grid {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center;
}
.hero p.sub { color: var(--text-muted); margin: 20px 0 32px; max-width: 32em; }
.hero-leaf { width: 92px; margin-bottom: 24px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 12px 22px;
  font-family: var(--font-mono); font-size: 14px; font-weight: 400; line-height: 1;
  letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease),
              border-color var(--t) var(--ease);
}
.btn-primary { background: var(--gold); color: var(--bg); }
.btn-primary:hover { background: var(--gold-hover); color: var(--bg); }
.btn-secondary { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn-secondary:hover { background: var(--hover-ghost); color: var(--gold); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--hover-ghost); color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Datacard ---------- */

.datacard {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 26px;
}
.dc-head {
  display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--font-mono); font-size: 13px; line-height: 1.4;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.dc-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px 24px; padding: 12px 0; border-bottom: 1px solid var(--border);
}
.dc-row:last-child { border-bottom: none; }
.dc-row dt {
  font-family: var(--font-mono); font-size: 13px; line-height: 1.4;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-secondary);
}
.dc-row dd {
  font-family: var(--font-mono); font-size: 15px; font-weight: 600;
  font-variant-numeric: tabular-nums; color: var(--text);
  margin-left: auto; text-align: right;
}
.dc-foot {
  font-family: var(--font-mono); font-size: 13px; line-height: 1.4;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-secondary);
  margin-top: 16px;
}

/* ---------- Karten / Raster ---------- */

.grid { display: grid; gap: 20px; margin-top: 32px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 26px;
}
.card .label {
  font-family: var(--font-mono); font-size: 13px; line-height: 1.4;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
}
.card h3 { margin: 12px 0 8px; }
.card p { font-size: 16px; }

/* Nummerierte Schritte */
.step { border-top: 1px solid var(--border); padding-top: 16px; }
.step .n {
  font-family: var(--font-mono); font-size: 28px; font-weight: 600;
  color: var(--gold); line-height: 1; font-variant-numeric: tabular-nums;
}
.step h3 { margin: 14px 0 8px; }
.step p { font-size: 16px; }

/* Aufzählung mit Goldstrich */
.tick-list { list-style: none; padding: 0; margin-top: 28px; }
.tick-list li {
  border-top: 1px solid var(--border);
  padding: 16px 0 16px 22px; position: relative;
  color: var(--text); font-size: 16px;
}
.tick-list li:last-child { border-bottom: 1px solid var(--border); }

/* Tick-Liste innerhalb einer Karte: enger, damit zwei Karten nebeneinander
   auf gleicher Hoehe bleiben. */
.card .tick-list { margin-top: 20px; }
.card .tick-list li { font-size: 15px; padding: 12px 0 12px 22px; }
.card .tick-list li::before { top: 20px; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 24px;
  width: 10px; height: 1px; background: var(--gold);
}
.tick-list li span { display: block; color: var(--text-muted); font-size: 16px; margin-top: 4px; }

/* Kernsatz */
.kernsatz {
  border-left: 2px solid var(--gold); padding: 6px 0 6px 20px; margin-top: 36px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 20px; line-height: 1.4; color: var(--text); max-width: 32em;
}

/* Badge */
.badge {
  display: inline-block; border-radius: 9999px;
  border: 1px solid var(--border); background: var(--surface);
  padding: 5px 12px;
  font-family: var(--font-mono); font-size: 13px; line-height: 1.4;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-secondary);
}

/* ---------- Abbildungen ---------- */

figure {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
}
/* height: auto ist noetig – ohne das gewinnt das height-Attribut des Bildes
   (Praesentationshinweis des Browsers) und aspect-ratio greift nicht. */
figure img { aspect-ratio: 3 / 2; object-fit: cover; border-bottom: 1px solid var(--border); }
figure img { width: 100%; height: auto; }
figcaption {
  font-family: var(--font-mono); font-size: 13px; line-height: 1.5;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-secondary);
  padding: 14px 16px; border-top: 1px solid var(--border);
}

/* ---------- Rechner ---------- */

.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; align-items: start; }
.calc-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; }

.field { padding: 16px 0; border-bottom: 1px solid var(--border); }
.field:first-of-type { padding-top: 4px; }
.field:last-of-type { border-bottom: none; padding-bottom: 4px; }
.field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.field label { font-size: 15px; line-height: 1.4; color: var(--text-secondary); }
.field output {
  font-family: var(--font-mono); font-size: 16px; font-weight: 600;
  font-variant-numeric: tabular-nums; color: var(--text); text-align: right;
}

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 40px; margin-top: 4px;
  background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 2px; background: var(--border); border-radius: var(--radius);
}
input[type="range"]::-moz-range-track {
  height: 2px; background: var(--border); border-radius: var(--radius);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; margin-top: -7px;
  background: var(--gold); border: none; border-radius: 9999px;
  transition: background-color var(--t) var(--ease);
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px;
  background: var(--gold); border: none; border-radius: 9999px;
  transition: background-color var(--t) var(--ease);
}
input[type="range"]:hover::-webkit-slider-thumb { background: var(--gold-hover); }
input[type="range"]:hover::-moz-range-thumb { background: var(--gold-hover); }
input[type="range"]:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.result { text-align: left; }
.result .label {
  font-family: var(--font-mono); font-size: 13px; line-height: 1.4;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
}
.result .big {
  font-family: var(--font-mono); font-weight: 600;
  font-size: clamp(38px, 7vw, 56px); line-height: 1.05;
  font-variant-numeric: tabular-nums; color: var(--text);
  margin: 12px 0 4px; letter-spacing: -.02em;
}
.result .unit {
  font-family: var(--font-mono); font-size: 14px; line-height: 1.4;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-secondary);
}
.result .formula {
  font-family: var(--font-mono); font-size: 13px; line-height: 1.8;
  letter-spacing: .06em; color: var(--text-secondary);
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border);
}
.result .formula b { color: var(--text); font-weight: 600; }

/* ---------- Tabelle ---------- */

table { width: 100%; border-collapse: collapse; margin-top: 28px; }
th, td {
  text-align: left; padding: 14px 16px;
  border-bottom: 1px solid var(--border); font-size: 16px;
}
th {
  font-family: var(--font-mono); font-weight: 400; font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-secondary);
  border-bottom-color: var(--gold);
}
td.num, th.num {
  text-align: right; font-family: var(--font-mono);
  font-variant-numeric: tabular-nums; font-size: 15px;
}
td:first-child { color: var(--text); }
td { color: var(--text-muted); }

/* ---------- Kontaktzeile ---------- */

.contact-list { list-style: none; padding: 0; margin-top: 24px; }
.contact-list li {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.contact-list .k {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-secondary);
}
.contact-list .v { font-family: var(--font-mono); font-size: 15px; color: var(--text); margin-left: auto; text-align: right; }
.contact-list .v a { color: var(--gold); }

/* ---------- CTA-Band ---------- */

.cta-band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cta-band .inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 24px; padding: 48px 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid, .grid-2, .grid-3, .grid-4, .calc { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  section { padding: 56px 0; }
  .hero { padding: 48px 0 56px; }
}

@media (max-width: 620px) {
  .grid-4 { grid-template-columns: 1fr; }
  .topbar-inner { flex-wrap: wrap; gap: 16px; }
  .brand .claim { display: none; }
  .brand { gap: 10px; }
  .brand__mark { height: 46px; }
  .brand__gluex { height: 22px; margin-bottom: 6px; }
  .brand__by { font-size: 13px; margin-bottom: 8px; }
  .topbar-right { gap: 12px; }
  .topbar .spt img { height: 32px; }
  .mainnav ul { gap: 0 20px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  table, thead, tbody, th, td, tr { display: block; }
  thead { display: none; }
  td { border-bottom: none; padding: 4px 0; }
  td.num { text-align: left; }
  tr { border-bottom: 1px solid var(--border); padding: 14px 0; display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Bewegtbild ---------- */

figure video {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  background: var(--bg); border-bottom: 1px solid var(--border);
}

/* ---------- Zusatzlinks unter dem Fuss ----------
   Präsentation und Spezifikationsblatt stehen bewusst ausserhalb der
   SPT-FOOTER-Marker, damit der gemeinsame Footer in allen Repos gleich
   bleibt. Damit sie trotzdem zum Fuss gehören und nicht darunter
   herausfallen, übernimmt der Block dessen Fläche (--surface entspricht
   --sptf-bg) und dessen innere Breite. */

.fuss-zusatz {
  background: var(--surface);
  padding: 0 20px calc(22px + env(safe-area-inset-bottom, 0px));
}
.fuss-zusatz__inner {
  max-width: 1280px; margin: 0 auto; padding: 0;
  font-family: var(--font-mono); font-size: 12px; line-height: 1.6;
  letter-spacing: .1em; text-transform: uppercase; text-align: right;
  color: var(--text-muted);
}
.fuss-zusatz a { color: var(--text-muted); text-decoration: none; }
.fuss-zusatz a:hover { color: var(--gold); }
.fuss-zusatz a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.fuss-zusatz span { margin: 0 10px; }
@media (max-width: 620px) { .fuss-zusatz__inner { text-align: left; } }
