/* ============================================================
   VLOTE — Brand Hub · shared tokens & atoms
   Single source of truth mirror of app/globals.css (@theme).
   Type:  Cormorant Garamond · IBM Plex Sans · IBM Plex Mono
   Accent: Beere #701C34 — used sparingly.
   ============================================================ */

:root {
  /* — Brand palette (semantic) — */
  --snow:  #FAFAF8;   /* lightest surface — cards, nav bg */
  --paper: #F0E8E3;   /* main page background */
  --linen: #E7DCD2;   /* soft section tint */
  --stone: #BCB5B0;   /* hairlines / borders */
  --mocha: #8B847F;   /* muted text, eyebrows, labels */
  --earth: #5C5652;   /* secondary dark */
  --ink:   #322C28;   /* primary text, footer bg */
  --berry: #701C34;   /* THE accent — sparingly */

  /* — Type — */
  --f-display: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --f-sans:    "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-weight: 400; /* Regular — von Light (300) auf Regular umgestellt für Lesbarkeit (wie Live-Site) */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: color-mix(in oklab, var(--berry) 22%, transparent); }

/* Custom scrollbar (mirrors site) */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--stone); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--berry); }

/* ---- Atoms ---------------------------------------------------- */
.micro {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mocha);
  font-weight: 500;
}
.micro .b { color: var(--berry); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mocha);
  font-weight: 400;
}
.eyebrow::after,
.eyebrow.center::before {
  content: "";
  width: 56px;
  height: 1px;
  background: var(--berry);
  opacity: 0.55;
}
.eyebrow.center { justify-content: center; }

.rule { width: 64px; height: 1px; background: var(--berry); opacity: 0.55; border: 0; }

.display {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1.08;
}
.display em, .em-berry { font-style: italic; color: var(--berry); font-weight: 500; }

.lead {
  font-size: 17px;
  line-height: 1.7;
  color: color-mix(in oklab, var(--ink) 62%, transparent);
}

/* Wordmark "Vlote." */
.wordmark {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.wordmark .dot { font-style: normal; color: var(--berry); }

/* ---- Buttons -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; padding: 15px 28px; border: 1px solid transparent;
  cursor: pointer; transition: background .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.btn-primary { background: var(--berry); color: var(--snow); }
.btn-primary:hover { background: var(--ink); }
.btn-outline { border-color: color-mix(in oklab, var(--ink) 30%, transparent); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--snow); }
.btn-link {
  display: inline-flex; align-items: center; gap: 9px; padding: 0 0 4px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--berry); border-bottom: 1px solid color-mix(in oklab, var(--berry) 30%, transparent);
  transition: border-color .25s;
}
.btn-link:hover { border-color: var(--berry); }

/* ---- Editable affordance ------------------------------------- */
[data-edit] { outline: none; cursor: text; border-radius: 2px; transition: box-shadow .15s, background .15s; }
[data-edit]:hover { box-shadow: 0 0 0 1px color-mix(in oklab, var(--berry) 35%, transparent); }
[data-edit]:focus { box-shadow: 0 0 0 2px color-mix(in oklab, var(--berry) 55%, transparent); background: color-mix(in oklab, var(--berry) 5%, transparent); }
body.lock [data-edit] { cursor: inherit; }
body.lock [data-edit]:hover { box-shadow: none; }

/* Image slot look inside the hub */
image-slot {
  --is-bg: color-mix(in oklab, var(--ink) 5%, transparent);
  background: var(--is-bg);
}

/* ---- Floating toolbar ---------------------------------------- */
.hub-toolbar {
  position: fixed; z-index: 200; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  background: color-mix(in oklab, var(--ink) 94%, black);
  color: var(--snow); padding: 8px 8px 8px 16px; border-radius: 100px;
  box-shadow: 0 12px 34px rgba(50,44,40,.32), 0 2px 8px rgba(50,44,40,.2);
}
.hub-toolbar .ht-brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: color-mix(in oklab, var(--snow) 75%, transparent); padding-right: 6px;
}
.hub-toolbar .ht-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--berry); }
.hub-toolbar .ht-btn {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--snow); background: color-mix(in oklab, var(--snow) 12%, transparent);
  border: 0; border-radius: 100px; padding: 9px 14px; cursor: pointer; transition: background .2s;
}
.hub-toolbar .ht-btn:hover { background: color-mix(in oklab, var(--snow) 22%, transparent); }
.hub-toolbar .ht-home { background: var(--berry); }
.hub-toolbar .ht-home:hover { background: color-mix(in oklab, var(--berry) 80%, white); }

@media print {
  .hub-toolbar { display: none !important; }
  body.printing { background: #fff; }
}

/* ---- Mobile (≤ 640px) ---------------------------------------- */
@media (max-width: 640px) {
  /* Hard safety net: nothing may cause horizontal scroll on mobile.
     `clip` (not hidden) keeps position:sticky working on topbar/rail. */
  html, body { max-width: 100%; overflow-x: clip; }

  .shell { padding: 0 18px; }

  .topbar .row { height: 56px; }
  .lockup vlote-mark { width: 30px; height: 30px; }
  .lockup .wordmark { font-size: 18px; }
  .lockup .bar { height: 28px; }
  .lockup .tag { font-size: 8px; }

  /* Toolbar — brand label weg, Rest scrollbar */
  .hub-toolbar {
    left: 10px; right: 10px; bottom: 10px;
    transform: none;
    overflow-x: auto;
    border-radius: 14px;
    padding: 6px 10px;
    gap: 5px;
  }
  .hub-toolbar .ht-brand { display: none; }
  .hub-toolbar .ht-btn { padding: 8px 12px; font-size: 9px; }

  /* Hero */
  .hero { padding: 32px 0 28px; }
  .hero vlote-seal { width: 130px; height: 130px; margin-bottom: 20px; }
  .hero p { font-size: 15px; }
  .hero .cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero .cta .btn { justify-content: center; }

  /* Page / Section */
  .page-head { padding: 32px 0 6px; }
  .page-head h1 { font-size: clamp(28px, 8vw, 40px); }
  .section { padding: 28px 0; }

  /* Cards */
  .card { padding: 24px 20px 22px; min-height: auto; }
  .card h2 { font-size: 24px; }
  .card p { font-size: 14px; }

  /* Panels */
  .panel { padding: 20px 18px 22px; }

  /* Colour swatches: 2 per row on mobile */
  .swatches { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .foot-brand .wordmark { font-size: 20px; }
  .foot-meta { gap: 22px; }
  .foot-col p, .foot-col a { font-size: 13px; }
}

/* ============================================================
   Shared page chrome (Guide / Templates / Banners)
   ============================================================ */
.shell { max-width: 1160px; margin: 0 auto; padding: 0 32px; }

.topbar { position: sticky; top: 0; z-index: 100; background: color-mix(in oklab, var(--paper) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid color-mix(in oklab, var(--ink) 9%, transparent); }
.topbar .row { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.lockup { display: flex; align-items: center; gap: 13px; }
.lockup vlote-mark { width: 40px; height: 40px; color: var(--ink); }
.lockup .bar { width: 1px; height: 34px; background: color-mix(in oklab, var(--ink) 20%, transparent); }
.lockup .txt { display: flex; flex-direction: column; gap: 3px; line-height: .9; }
.lockup .wordmark { font-size: 23px; }
.lockup .tag { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mocha); font-weight: 500; }
.topnav { display: flex; gap: 30px; }
.topnav a { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); transition: color .2s; }
.topnav a:hover, .topnav a.active { color: var(--berry); }
@media (max-width: 720px){ .topnav { display: none; } }

/* page title block */
.page-head { padding: 64px 0 8px; }
.page-head h1 { font-family: var(--f-display); font-weight: 500; font-size: clamp(38px, 5.4vw, 60px); line-height: 1.02; letter-spacing: .004em; margin: 16px 0 0; }
.page-head h1 em { font-style: italic; color: var(--berry); }
.page-head p { max-width: 560px; margin: 18px 0 0; font-size: 16px; line-height: 1.7; color: color-mix(in oklab, var(--ink) 60%, transparent); text-wrap: pretty; }

/* guide section scaffold */
.section { padding: 52px 0; border-top: 1px solid color-mix(in oklab, var(--ink) 10%, transparent); }
.section > .sec-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 30px; }
.section .sec-no { font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; color: var(--berry); }
.section .sec-title { font-family: var(--f-display); font-weight: 500; font-size: 30px; }

/* footer */
footer { background: var(--ink); color: color-mix(in oklab, var(--snow) 72%, transparent); margin-top: 60px; }
footer .shell { padding-top: 48px; padding-bottom: 44px; }
.foot-top { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-badge { width: 58px; height: 58px; background: var(--snow); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.foot-badge vlote-mark { width: 42px; height: 42px; color: var(--ink); }
.foot-brand .wordmark { font-size: 26px; color: var(--snow); }
.foot-meta { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-col h4 { font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: color-mix(in oklab, var(--snow) 48%, transparent); margin: 0 0 12px; font-weight: 500; }
.foot-col p, .foot-col a { font-size: 14px; line-height: 1.7; color: color-mix(in oklab, var(--snow) 72%, transparent); }
.foot-col a:hover { color: var(--snow); }
.foot-rule { height: 1px; background: color-mix(in oklab, var(--snow) 14%, transparent); margin: 32px 0 20px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in oklab, var(--snow) 42%, transparent); }

