/* CleftLabs Workstation Stylesheet for Subpages (Projects, Impressum, Datenschutz) */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --desk: #233c44;
  --plat: #dad7ce;
  --plat-hi: #f4f2ec;
  --plat-lo: #8d8a80;
  --ink: #111316;
  --ink-soft: #26292e;
  --muted: #50535a;
  --blue: #1b4d7e;
  --amber: #e09124;
  --rust: #a33a20;
  --green: #166534;
  --rule: #c4c0b6;
  --paper: #eae7de;
  --sheet: #f4f2ec;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

html {
  background-color: var(--desk);
  background-image:
    radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    radial-gradient(rgba(0,0,0,0.18) 1px, transparent 1px);
  background-size: 8px 8px;
  background-position: 0 0, 4px 4px;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
}

/* Sticky Top Workstation Menu Bar (matches index.html) */
.menubar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--plat);
  border-bottom: 2px solid var(--ink);
  box-shadow: inset 0 1px 0 var(--plat-hi), 0 2px 8px rgba(0,0,0,0.22);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}
.menubar-in {
  max-width: 1080px;
  margin: 0 auto;
  padding: 9px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.mb-l { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.mb-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}
.mb-l a:not(.mb-logo) { color: var(--ink); text-decoration: none; font-weight: 600; }
.mb-l a:hover { color: var(--blue); }
.mb-l a.active { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; font-weight: 800; }
.mb-r { font-size: 11px; color: #3d3e42; display: flex; gap: 14px; white-space: nowrap; }

/* Main Workspace Containers */
.ws-main {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}
.ws-main.narrow {
  max-width: 920px;
}

/* SGI Window Chrome */
.win {
  background: var(--plat);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 rgba(0,0,0,0.42), inset 1px 1px 0 var(--plat-hi);
  scroll-margin-top: 56px;
}
.w-bar {
  background: var(--blue);
  color: #fff;
  padding: 7px 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-bottom: 1.5px solid var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.w-bar.dark { background: #1c2026; }
.w-dots { display: inline-flex; gap: 5px; flex-shrink: 0; }
.w-box { width: 10px; height: 10px; background: var(--plat); border: 1px solid var(--ink); display: inline-block; }
.w-body { padding: 14px; }

/* Sheet Interior */
.sheet {
  background: var(--sheet);
  border: 1.5px inset #9a978e;
  padding: 24px 28px;
}
.sheet.legal {
  padding: 32px 40px 36px;
}
.kicker {
  font-family: var(--mono);
  font-size: 10.8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin: 0 0 8px;
}
.sheet h1 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--ink);
}
.sheet h2 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 26px 0 10px;
  padding-top: 14px;
  border-top: 1.5px solid var(--rule);
  color: var(--ink);
}
.sheet h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--ink);
}
.sheet p,
.sheet li {
  font-size: 14.5px;
  line-height: 1.66;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}
.sheet ul { padding-left: 22px; margin: 10px 0 16px; }
.sheet li { margin-bottom: 6px; }
.sheet a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sheet a:hover { color: var(--rust); }
.sheet code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1px 5px;
  color: var(--ink);
}

/* Projects: Quick-Jump Ledger Cards */
.ledger-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.sheet a.ledger-cell {
  background: #ffffff;
  border: 1.5px solid var(--ink);
  padding: 11px 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 400;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sheet a.ledger-cell:hover { background: #ebf1f7; color: var(--ink); }
.ledger-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--blue);
  text-transform: uppercase;
}
.ledger-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}
.ledger-note {
  font-size: 12px;
  line-height: 1.42;
  color: var(--muted);
}

/* Projects: Split Release Panel */
.release-panel {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 20px;
  align-items: start;
}
.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.status-pill {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
}
.status-pill.live {
  background: #e3f5ea;
  color: var(--green);
  border-color: var(--green);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.ws-btn {
  display: inline-block;
  background: var(--plat);
  color: var(--ink) !important;
  text-decoration: none !important;
  border: 1.5px solid var(--ink);
  box-shadow: inset 1px 1px 0 var(--plat-hi), inset -1px -1px 0 var(--plat-lo);
  padding: 8px 13px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}
.ws-btn:hover { background: #e6e3db; }
.ws-btn.primary {
  background: var(--amber);
  box-shadow: inset 1px 1px 0 #ffd180;
}
.ws-btn.primary:hover { filter: brightness(1.04); }

/* Spec Table */
.spec-wrap {
  border: 1.5px solid var(--ink);
  background: #ffffff;
  overflow-x: auto;
}
table.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.2px;
}
table.spec-table th,
table.spec-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}
table.spec-table tr:last-child th,
table.spec-table tr:last-child td { border-bottom: none; }
table.spec-table th {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 800;
  color: #f4f2ec;
  background: #1c2026;
  width: 44%;
}
table.spec-table td {
  font-family: var(--mono);
  font-size: 11.4px;
  color: var(--ink);
  background: #ffffff;
}
table.spec-table tr:nth-child(even) td { background: #f7f5ef; }

/* Legal: Address Card & Quick Switcher */
.address-block {
  font-style: normal;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.65;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-left: 4px solid var(--blue);
  padding: 13px 16px;
  margin: 12px 0 18px;
  color: var(--ink);
}
.legal-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.ltab {
  display: block;
  text-align: center;
  background: var(--plat);
  color: var(--ink);
  text-decoration: none;
  border: 1.5px solid var(--ink);
  box-shadow: inset 1px 1px 0 var(--plat-hi), inset -1px -1px 0 var(--plat-lo);
  padding: 7px 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}
.ltab:hover { background: #e6e3db; }
.ltab.active { background: var(--ink); color: #fff; box-shadow: none; }

a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

/* Sticky Bottom Footer Dock (matches index.html) */
.dock {
  position: sticky;
  bottom: 0;
  z-index: 20;
  margin-top: auto;
  background: var(--plat);
  border-top: 2px solid var(--ink);
  box-shadow: inset 0 1px 0 var(--plat-hi), 0 -2px 8px rgba(0,0,0,0.22);
  font-family: var(--mono);
  font-size: 11px;
}
.dock-in {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.dock a { color: var(--blue); text-decoration: none; font-weight: 700; }
.dock a:hover { text-decoration: underline; }
.dock-links { display: inline-flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .mb-r { display: none; }
  .ledger-grid { grid-template-columns: repeat(2, 1fr); }
  .release-panel { grid-template-columns: 1fr; }
  .sheet.legal { padding: 24px 20px 28px; }
}
@media (max-width: 560px) {
  .menubar-in, .dock-in { padding: 8px 12px; }
  .ws-main { padding: 12px 12px 24px; gap: 12px; }
  .w-bar { flex-wrap: wrap; font-size: 10px; }
  .w-body { padding: 9px; }
  .sheet, .sheet.legal { padding: 16px 14px 20px; }
  .ledger-grid { grid-template-columns: 1fr; }
  .legal-tabs { grid-template-columns: 1fr; }
}
