/* Computer Museum – layout after the Goebel Publikationen look:
   framed page, logo + serif navigation in a side column, red accents. */
:root {
  --red: #b8262b;
  --ink: #1d1b19;
  --muted: #6f6a62;
  --paper: #ffffff;
  --side-light: #e8e4dc;
  --line: #c9c3b8;
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Century Gothic", sans-serif;
  --side-w: 300px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- frame ---------- */
.frame {
  display: grid;
  grid-template-columns: var(--side-w) 1fr;
  max-width: 1320px;
  margin: 56px auto 0;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .45);
  min-height: 720px;
}

/* ---------- sidebar ---------- */
.sidebar {
  --mark-cut: var(--side-light);
  background: var(--side-light);
  color: var(--ink);
  padding: 56px 28px 40px;
  display: flex;
  flex-direction: column;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-left: 8px; }
.brand .mark { width: 54px; height: 50px; color: var(--red); flex: none; }
.brand-text { display: flex; flex-direction: column; font-family: var(--sans); font-weight: 300; font-size: 25px; line-height: 1.08; }
.brand-1 { color: var(--red); }

.menu-toggle { display: none; }

nav#nav { padding-top: 150px; }
nav#nav ul { list-style: none; margin: 0; padding: 0; text-align: center; }
nav#nav li { position: relative; }
nav#nav li + li:not(.gap)::before {
  content: ""; display: block; width: 64px; height: 1px; margin: 0 auto;
  background: currentColor; opacity: .5;
}
nav#nav li.gap + li::before, nav#nav li.gap::before { display: none; }
nav#nav li.gap { height: 18px; }
nav#nav a { display: inline-block; padding: 4px 0 5px; text-decoration: none; font-size: 18px; }
nav#nav a:hover { color: var(--red); }
nav#nav a.active { color: var(--red); }
nav#nav a.active::before {
  content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 50%;
  background: var(--red); margin-right: 8px; vertical-align: 1px;
}

/* ---------- content ---------- */
.content { padding: 48px 56px 56px; min-width: 0; }

.home .content { padding: 0; }
.hero { position: relative; height: 100%; min-height: 720px; overflow: hidden; background: #222; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-text {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 120px 56px 44px;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0));
  color: #fff;
}
.hero-text h1 { font-weight: 400; font-size: clamp(40px, 6vw, 72px); line-height: 1; margin: 4px 0 14px; letter-spacing: .5px; }
.hero-text p { max-width: 640px; margin: 0; font-size: 20px; }
.hero-text .kicker { font-family: var(--sans); font-weight: 300; text-transform: uppercase; letter-spacing: 3px; font-size: 14px; color: #ffb7b3; }

.page-head { margin-bottom: 28px; }
.page-head h1 { font-weight: 400; font-size: 44px; line-height: 1.1; margin: 8px 0 4px; }
.maker-logo { margin: 16px 0 4px; max-height: 48px; width: auto; image-rendering: auto; }
.crumbs { font-size: 15px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.crumbs span { margin: 0 4px; }
.lead { color: var(--muted); font-style: italic; margin: 0 0 24px; }

/* red label + rule, like the "AKTUELL" markers */
.rule { display: flex; align-items: center; gap: 14px; margin: 40px 0 22px; }
.rule::after { content: ""; flex: 1; height: 2px; background: var(--ink); opacity: .85; }
.label {
  background: var(--red); color: #fff; font-family: var(--serif);
  text-transform: uppercase; letter-spacing: 1px; font-size: 15px; padding: 2px 10px 1px;
}

/* ---------- tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px 28px; }
.tiles-2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.tile { text-decoration: none; display: flex; flex-direction: column; }
.tile-media {
  aspect-ratio: 4 / 3; overflow: hidden; background: #f3f0ea;
  box-shadow: 0 8px 18px -10px rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
}
.tile-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a.tile:hover .tile-media > img { transform: scale(1.04); }
.tile-logo img { width: auto; max-width: 70%; max-height: 60px; margin: auto; }
.tile-name { font-size: 26px; color: var(--muted); padding: 12px; text-align: center; }
.tile-caption { margin-top: 10px; font-size: 19px; line-height: 1.25; }
.tile-caption small { display: block; font-size: 15px; color: var(--muted); font-style: italic; }
a.tile:hover .tile-caption { color: var(--red); }
.tile-muted { opacity: .7; }

.showcase { max-width: 1320px; margin: 0 auto; padding: 8px 0 24px; }
.showcase .lead { margin-top: -6px; }

.banner {
  display: flex; flex-direction: column; justify-content: center; min-height: 120px;
  padding: 20px 28px; text-decoration: none; border: 1px solid var(--line);
  background: linear-gradient(120deg, #f3f0ea, #fff);
  box-shadow: 0 8px 18px -12px rgba(0,0,0,.45);
}
.banner span { font-family: var(--sans); font-weight: 300; font-size: 30px; color: var(--red); }
.banner small { color: var(--muted); font-size: 16px; }
.banner:hover { border-color: var(--red); }

/* ---------- device pages ---------- */
.lead-img { display: block; max-width: 900px; box-shadow: 0 12px 26px -14px rgba(0,0,0,.6); cursor: zoom-in; }
.lead-img img { width: 100%; height: auto; }

.prose { max-width: 900px; }
.prose-text { max-width: 760px; }
.prose h2, .prose h3 { font-weight: 500; }
.table-wrap { overflow-x: auto; margin: 0 0 20px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 17px; }
.prose td, .prose th { padding: 8px 12px; border-bottom: 1px solid #e2ddd4; vertical-align: top; text-align: left; }
.prose tr:first-child td { border-top: 1px solid #e2ddd4; }
.prose table:not(.specs) tr:first-child td { font-weight: 500; background: #f5f2ec; }
.specs td:first-child { width: 32%; color: var(--muted); font-variant: small-caps; letter-spacing: .4px; }
.prose a { color: var(--red); }
.muted { color: var(--muted); font-style: italic; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.gallery a { aspect-ratio: 4 / 3; overflow: hidden; background: #f3f0ea; cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.05); }

.back { margin-top: 40px; }
.back a { text-decoration: none; color: var(--red); }

/* ---------- footer ---------- */
.site-footer {
  max-width: 1320px; margin: 10px auto 40px; padding: 0 4px;
  display: flex; gap: 32px; font-size: 16px; color: var(--muted);
}
.site-footer .domain { width: calc(var(--side-w) - 4px); text-align: center; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--red); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--red); margin-right: 7px; }

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 10, 10, .9); }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox button {
  position: fixed; background: none; border: 0; color: #fff; font-size: 48px; line-height: 1;
  cursor: pointer; padding: 10px 16px; opacity: .8; font-family: var(--serif);
}
.lightbox button:hover { opacity: 1; color: #ffb7b3; }
.lb-close { top: 10px; right: 14px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---------- responsive ---------- */
@media (max-width: 1360px) {
  .frame, .showcase, .site-footer { margin-left: 20px; margin-right: 20px; }
}
@media (max-width: 860px) {
  body { font-size: 17px; }
  .frame { grid-template-columns: 1fr; margin: 0; border: 0; box-shadow: none; min-height: 0; }
  .sidebar { padding: 14px 16px; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .brand { margin: 0; }
  .brand .mark { width: 38px; height: 35px; }
  .brand-text { font-size: 19px; }
  .menu-toggle {
    display: block; background: none; border: 1px solid currentColor; color: inherit;
    font-family: var(--serif); font-size: 16px; padding: 4px 14px; cursor: pointer;
  }
  nav#nav { display: none; width: 100%; padding: 16px 0 4px; margin: 0; }
  nav#nav.open { display: block; }
  .content { padding: 28px 16px 40px; }
  .hero { min-height: 70vh; }
  .hero-text { padding: 80px 20px 28px; }
  .hero-text p { font-size: 18px; }
  .page-head h1 { font-size: 34px; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px 16px; }
  .tiles-2 { grid-template-columns: 1fr; }
  .showcase, .site-footer { margin-left: 16px; margin-right: 16px; }
  .site-footer { flex-wrap: wrap; gap: 8px 24px; }
  .site-footer .domain { width: auto; }
  .specs td:first-child { width: 40%; }
}

/* ---------- article pages (synth) ---------- */
.hero-top img { object-position: center top; }
.callout {
  max-width: 760px; margin: 0 0 32px; padding: 18px 24px;
  border-left: 4px solid var(--red); background: #f5f2ec; font-size: 17px;
}
.callout p { margin: 0 0 10px; }
.callout p:last-child { margin-bottom: 0; }
.callout a, .prose-text a { color: var(--red); }
.prose-text ul { padding-left: 22px; margin: 0 0 18px; }
.prose-text li { margin: 2px 0; }
.prose-text h3 { font-size: 20px; margin: 24px 0 6px; }
.prose .intro { font-weight: 500; font-size: 20px; }
.prose figure { margin: 28px 0; }
.prose figure a { display: block; max-width: 520px; box-shadow: 0 10px 22px -14px rgba(0,0,0,.6); cursor: zoom-in; }
.prose figure img { width: 100%; height: auto; }
.prose figcaption { margin-top: 8px; font-size: 15px; color: var(--muted); font-style: italic; }
.gallery-shots { margin: 0 0 18px; }
.gallery-shots a { aspect-ratio: 4 / 3; background: #fff; border: 1px solid #e2ddd4; }
.gallery-shots img { object-fit: contain; }
.prose audio { width: 100%; max-width: 520px; }
.downloads { list-style: none; padding: 0; margin: 0 0 18px; }
.downloads li + li { border-top: 1px solid #e2ddd4; }
.downloads a { display: flex; align-items: baseline; gap: 14px; padding: 10px 2px; text-decoration: none; color: var(--ink); }
.downloads a:hover .dl-name { color: var(--red); }
.downloads .ext {
  flex: none; min-width: 46px; text-align: center; font-family: var(--sans); font-size: 12px;
  letter-spacing: 1px; color: #fff; background: var(--red); padding: 2px 6px;
}
.downloads .dl-name { flex: 1; }
.downloads .dl-size { flex: none; color: var(--muted); font-size: 15px; white-space: nowrap; }
.updated { color: var(--muted); font-style: italic; font-size: 15px; margin-top: 36px; }

/* ---------- language switch ---------- */
.lang-switch { display: flex; gap: 2px; margin: 22px 0 0 8px; font-family: var(--sans); font-size: 14px; letter-spacing: 1px; }
.lang-switch a {
  text-decoration: none; padding: 2px 9px; border: 1px solid currentColor; opacity: .6;
}
.lang-switch a:hover { opacity: 1; color: var(--red); }
.lang-switch a.active { opacity: 1; background: var(--red); border-color: var(--red); color: #fff; }
@media (max-width: 860px) {
  .lang-switch { margin: 0 10px 0 auto; font-size: 13px; }
}
@media (max-width: 480px) {
  .brand { gap: 8px; }
  .brand .mark { width: 30px; height: 28px; }
  .brand-text { font-size: 16px; }
  .lang-switch { margin-right: 8px; font-size: 12px; }
  .lang-switch a { padding: 2px 6px; }
  .menu-toggle { padding: 3px 10px; font-size: 15px; }
}
