/* KB135 Hub · www.kb135.de */

/* Schrift lokal ausgeliefert, keine Anfrage an Google */
@font-face {
  font-family: "Noto Serif";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/noto-serif-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Serif";
  font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/noto-serif-latin-400-italic.woff2") format("woff2");
}

:root {
  --bg: #1c1c1c;
  --fg: #f0ede8;
  --muted: #a8a39b;
  --line: #3a3835;
  --line-strong: #6b6760;
  --panel: #262524;
  --font: "Noto Serif", Georgia, serif;
}

[data-theme="light"] {
  --bg: #f5f3f0;
  --fg: #1c1c1c;
  --muted: #5f5b55;
  --line: #d9d4cc;
  --line-strong: #a39d93;
  --panel: #e9e5df;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  overflow-x: hidden;
  transition: background .3s ease, color .3s ease;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: .75; }
img { max-width: 100%; display: block; }

:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }

/* Kopf */

.site-header {
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: center; justify-content: space-between;
  padding-top: 32px; padding-bottom: 32px;
}

.logo {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 16px; border: 1px solid var(--line);
}
.logo span:first-child { font-size: 20px; letter-spacing: .12em; }
.logo span:last-child { font-size: 9px; letter-spacing: .3em; color: var(--muted); }

.nav {
  display: flex; flex-wrap: wrap; gap: 32px; align-items: center;
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
}

.theme-toggle {
  font: inherit; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  background: none; color: var(--muted);
  border: 1px solid var(--line); padding: 10px 14px; min-height: 44px; cursor: pointer;
}

/* Bühne: Portrait in der Mitte, Projekte drumherum */

.stage { position: relative; height: 760px; }

.lines {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.lines line { stroke: var(--line-strong); stroke-width: 1; }

.center {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}

.portrait {
  position: relative; display: block;
  width: 320px; height: 320px; padding: 0;
  border: none; border-radius: 50%; background: none; cursor: pointer;
}
.portrait .halo {
  position: absolute; inset: -22px; border-radius: 50%;
  border: 1px solid var(--fg);
  animation: breathe 6s ease-in-out infinite;
}
.portrait .face {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }

.node {
  position: absolute; left: var(--x); top: var(--y);
  transform: translate(-50%, -52px);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  width: 220px; text-align: center;
  animation: float 7s ease-in-out infinite;
  animation-delay: var(--d);
}
.node:hover { opacity: 1; }

.disc {
  width: 104px; height: 104px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); color: var(--fg); border: 1px solid var(--fg);
  transition: transform .3s ease, background .3s ease, color .3s ease;
}
.node:hover .disc, .node:focus-visible .disc { transform: scale(1.08); }
.node.is-active .disc { background: var(--fg); color: var(--bg); }

.disc svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.5; }

.node-name { font-size: 20px; }
.node-name.caps { letter-spacing: .06em; }
.node-kind {
  font-size: 11px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--muted);
}

@keyframes float {
  0%, 100% { transform: translate(-50%, -52px); }
  50% { transform: translate(-50%, -62px); }
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: .5; }
  50% { transform: scale(1.06); opacity: .15; }
}

/* Textbereich unter der Bühne */

.intro {
  max-width: 680px; margin: 0 auto; padding: 24px 0 120px; min-height: 260px;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  text-align: center;
}
.intro h1 {
  margin: 0; font-weight: 400; line-height: 1.25;
  font-size: clamp(32px, 4vw, 48px);
}
.intro .kicker {
  margin: 0; font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted);
}
.intro h2 {
  margin: 0; font-weight: 400; line-height: 1.05;
  font-size: clamp(40px, 6vw, 64px);
}
.intro h2.caps { letter-spacing: .06em; }
.intro .lead {
  margin: 0; font-size: 20px; line-height: 1.55; font-style: italic;
  color: var(--muted);
}
.actions {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: center;
  padding-top: 8px;
}

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  padding: 15px 27px; border: 1px solid var(--fg); min-height: 44px;
}
.btn-solid { background: var(--fg); color: var(--bg); }

[data-greeting], [data-detail] {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}

[hidden] { display: none !important; }

/* Fuß */

.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: 24px;
  justify-content: space-between; align-items: center;
  padding-top: 48px; padding-bottom: 48px;
  font-size: 13px; letter-spacing: .15em; color: var(--muted);
}
.site-footer nav {
  display: flex; flex-wrap: wrap; gap: 32px; text-transform: uppercase;
}

/* Unterseiten (Projekte, Über) */

.page-head {
  padding-top: 80px; padding-bottom: 64px;
  display: flex; flex-direction: column; gap: 28px;
}
.crumbs {
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
}
.page-head h1 {
  margin: 0; font-weight: 400; line-height: 1.05;
  font-size: clamp(48px, 7vw, 88px);
}
.page-head h1.caps { letter-spacing: .06em; }
.page-head .lead {
  margin: 0; max-width: 680px; font-size: 22px; line-height: 1.55;
  font-style: italic; color: var(--muted);
}

.facts {
  margin: 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  border-top: 1px solid var(--fg); border-bottom: 1px solid var(--line);
}
.facts div {
  padding: 24px; display: flex; flex-direction: column; gap: 8px;
  border-left: 1px solid var(--line);
}
.facts div:first-child { padding-left: 0; border-left: none; }
.facts dt {
  font-size: 11px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--muted);
}
.facts dd { margin: 0; font-size: 18px; }

.hero-image {
  margin: 64px 0; min-height: 320px;
  background: var(--panel); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--muted);
}
.hero-image img { width: 100%; height: auto; }

.sections {
  padding-bottom: 120px;
  display: flex; flex-direction: column; gap: 64px;
}
.section {
  display: flex; flex-wrap: wrap; gap: 24px 80px;
}
.section h2 {
  flex: 1 1 240px; margin: 0;
  font-size: 13px; font-weight: 400; letter-spacing: .3em; text-transform: uppercase;
}
.section .body {
  flex: 2 1 520px; margin: 0; font-size: 20px; line-height: 1.6;
}
.section .body p { margin: 0 0 1em; }
.section .body p:last-child { margin-bottom: 0; }

.pager { border-top: 1px solid var(--line); }
.pager .wrap {
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between;
  padding-top: 48px; padding-bottom: 48px;
}
.pager a { display: flex; flex-direction: column; gap: 8px; padding: 8px 0; }
.pager a:last-child { align-items: flex-end; text-align: right; }
.pager small {
  font-size: 11px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--muted);
}
.pager span { font-size: 22px; }

/* Handy */

@media (max-width: 759px) {
  .wrap { padding-left: 24px; padding-right: 24px; }
  .site-header { padding-top: 24px; padding-bottom: 24px; }
  .stage {
    height: auto; display: flex; flex-wrap: wrap; justify-content: center;
    gap: 32px 16px; padding: 24px 0;
  }
  .lines { display: none; }
  .center {
    position: static; transform: none; width: 100%;
    display: flex; justify-content: center; margin-bottom: 24px;
  }
  .node { position: static; transform: none; animation: none; width: 44%; }
  .portrait { width: 240px; height: 240px; }
  .portrait .halo { inset: -18px; }
  .facts div, .facts div:first-child { padding: 16px 0; border-left: none; }
}

@media (prefers-reduced-motion: reduce) {
  .node, .portrait .halo { animation: none; }
  body, .disc { transition: none; }
}

/* Rechtliches (Impressum, Datenschutz) */

.legal { max-width: 900px; padding-bottom: 120px; }
.legal .page-head { padding-bottom: 32px; }
.imprint-block { padding: 32px 0; border-top: 1px solid var(--line); }
.imprint-block p { margin: 0; font-size: 18px; line-height: 1.7; }
.imprint-block__heading {
  margin-bottom: 12px !important;
  font-size: 12px !important; letter-spacing: .25em; text-transform: uppercase;
  color: var(--muted);
}
.legal-note { color: var(--muted); }
.legal a { text-decoration: underline; text-underline-offset: 4px; }

/* Abstand nach den Eckdaten, auch ohne Bild */
.facts { margin-bottom: 80px; }
.hero-image { margin-top: 0; }
