/* room4.tech — Marken-Stylesheet (aus Claude-Design-Handoff Turn 4)
   Tokens 1:1 aus "Room4 Homepage.dc.html". Dunkel = Standard, Hell via [data-theme="light"]. */

:root {
  --bg: #071411;
  --surface: #0b1a15;
  --card: #102822;
  --ink: #eef4f1;
  --muted: #8ba299;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);
  --accent: #22e3a6;
  --accentInk: #04150f;
  --ebg: transparent;
  --eink: #22e3a6;
  --glow: rgba(34, 227, 166, .22);
  --foot: #6c837a;
  --link: #a9bcb4;
  --ph: repeating-linear-gradient(135deg, #12241d, #12241d 7px, #183029 7px, #183029 14px);
  --header-bg: rgba(7, 20, 17, .82);
}

[data-theme="light"] {
  --bg: #f4f6f5;
  --surface: #fff;
  --card: #fff;
  --ink: #0c1a16;
  --muted: #5c6b66;
  --line: rgba(12, 26, 22, .1);
  --line-strong: rgba(12, 26, 22, .18);
  --accent: #12b98c;
  --accentInk: #062018;
  --ebg: #dff3ec;
  --eink: #0e7a5c;
  --glow: rgba(18, 185, 140, .16);
  --foot: #7f938c;
  --link: #5c6b66;
  --ph: repeating-linear-gradient(135deg, #e6ebe8, #e6ebe8 7px, #eef2ef 7px, #eef2ef 14px);
  --header-bg: rgba(244, 246, 245, .85);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background .25s ease, color .25s ease;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  margin: 0;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px;
}

.accent { color: var(--accent); }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 40px;
  max-width: 1160px;
  margin: 0 auto;
}

.logo { display: flex; align-items: baseline; gap: 10px; }
.logo-mark {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 24px;
  color: var(--accent);
  letter-spacing: -1px;
}
.logo-word {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -.04em;
  color: var(--ink);
}
.logo-word .four { color: var(--accent); margin-left: 2px; }
.logo-suffix {
  font: 500 11px 'IBM Plex Mono', monospace;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.nav-links a { transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.is-active { color: var(--accent); }

.nav-cta {
  background: var(--accent);
  color: var(--accentInk);
  padding: 9px 18px;
  border-radius: 9px;
  font-weight: 600;
}
.nav-cta:hover { color: var(--accentInk); filter: brightness(1.05); }

/* Theme-Schalter */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 12px 'IBM Plex Sans', sans-serif;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 8px 13px;
  cursor: pointer;
  transition: border-color .15s ease;
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle .dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  box-sizing: border-box;
}
[data-theme="light"] .theme-toggle .dot { background: var(--accent); }
.theme-toggle .label::after { content: "Dunkel"; }
[data-theme="light"] .theme-toggle .label::after { content: "Hell"; }

/* Hamburger (mobil) */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-burger span {
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 15px;
  border-radius: 11px;
  padding: 14px 24px;
  text-align: center;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: var(--accentInk);
  font-weight: 700;
  padding: 15px 26px;
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-outline {
  border: 1.5px solid var(--line-strong);
  color: var(--ink);
}

/* ---------- Sektionen ---------- */
.section { padding: 62px 0; border-top: 1px solid var(--line); }
.section--bg { background: var(--bg); }
.section--surface { background: var(--surface); }
.section:first-of-type { border-top: 0; }

.kicker {
  font: 500 12px 'IBM Plex Mono', monospace;
  color: var(--eink);
  letter-spacing: .1em;
  margin-bottom: 10px;
}
.section-title {
  font-weight: 700;
  font-size: 38px;
  line-height: 1.03;
  letter-spacing: -.03em;
  margin: 0 0 30px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 68px;
}
.hero .glow {
  position: absolute;
  top: -140px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  font: 500 12px 'IBM Plex Mono', monospace;
  color: var(--eink);
  letter-spacing: .16em;
  margin-bottom: 22px;
  position: relative;
}
.hero h1 {
  font-weight: 700;
  font-size: 70px;
  line-height: .97;
  letter-spacing: -.04em;
  margin: 0 0 24px;
  max-width: 820px;
  position: relative;
}
.hero .lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 32px;
  position: relative;
}
.hero-actions { display: flex; gap: 12px; position: relative; flex-wrap: wrap; }

/* Hero: zwei Spalten (Text links, Animation rechts), stapelt auf schmalen Screens. */
.hero-grid { display: flex; align-items: center; gap: 48px; }
.hero-copy { flex: 1 1 0; min-width: 0; }

/* Hero-Pixel-Animation: ein Farbton (var(--accent)) → in Hell wie Dunkel automatisch korrekt. */
.hero-anim {
  position: relative;
  flex: 0 0 auto;
  width: 42%;
  max-width: 480px;
}
@media (max-width: 900px) {
  .hero-grid { flex-direction: column; align-items: stretch; }
  .hero-copy { flex: none; }
  .hero-anim { width: 100%; max-width: 520px; margin-top: 28px; }
}
.hero-anim__canvas {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  transition: opacity .4s ease;
}
/* Marken-Auflösung am Ende der Sequenz (echtes Logo, gestaffelt eingeblendet) */
.hero-anim__brand {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.ba-row { display: flex; align-items: center; gap: 12px; }
.ba-mark { font: 700 36px/1 'IBM Plex Mono', monospace; color: var(--accent); letter-spacing: -3px; }
.ba-word { font: 700 36px/1 'Space Grotesk', sans-serif; color: var(--ink); letter-spacing: -1px; }
.ba-word .four { color: var(--accent); }
.ba-suffix { font: 500 13px/1 'IBM Plex Mono', monospace; color: var(--muted); letter-spacing: .3em; text-transform: uppercase; margin-top: 12px; }
.ba-mark, .ba-word, .ba-suffix {
  opacity: 0;
  transform: translateY(5px) scale(.95);
  transition: opacity .5s ease, transform .5s ease;
}
.hero-anim.brand-on .ba-mark   { opacity: 1; transform: none; transition-delay: 0s; }
.hero-anim.brand-on .ba-word   { opacity: 1; transform: none; transition-delay: .26s; }
.hero-anim.brand-on .ba-suffix { opacity: 1; transform: none; transition-delay: .5s; }
.hero-anim.brand-on .hero-anim__canvas { opacity: 0; }
@media (max-width: 640px) {
  .hero-anim { max-width: 100%; margin-top: 34px; }
  .ba-mark, .ba-word { font-size: 28px; }
  .ba-suffix { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .ba-mark, .ba-word, .ba-suffix { transition: none; }
}

.page-hero { padding: 72px 0 40px; }
.page-hero .hero-eyebrow { letter-spacing: .14em; }
.page-hero h1 { font-size: 52px; line-height: 1; }
.page-hero .lead { max-width: 560px; font-size: 17px; }

/* ---------- 01 Was wir machen ---------- */
.wwm-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 6px;
}
.wwm-item { border-top: 2px solid var(--accent); padding-top: 14px; }
.wwm-num {
  display: none;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
}
.wwm-item h3 {
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 6px;
}
.wwm-item p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

/* ---------- 02 Produkte ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  transition: transform .14s ease, border-color .14s ease;
}
.product-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.product-card h3 { font-weight: 600; font-size: 19px; margin: 0; }
.product-card p { font-size: 13px; color: var(--muted); margin: 4px 0 0; line-height: 1.45; }
.product-card .arrow { color: var(--accent); font-size: 22px; flex: none; }

/* ---------- 03 Worauf du bauen kannst ---------- */
.build-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.build-item h3 { font-weight: 600; font-size: 17px; margin: 0 0 5px; }
.build-item p { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin: 0; }

/* ---------- 04 Wer sind wir ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.team-member { display: flex; align-items: center; gap: 16px; }
.avatar {
  flex: none;
  width: 76px; height: 76px;
  border-radius: 16px;
  background: var(--ph);
  border: 1px solid var(--line);
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  display: block;
}
.team-member .name { font-weight: 600; font-size: 16px; }
.team-member .role {
  font-size: 13px;
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
  margin-top: 2px;
}

/* ---------- Partner-Karten ---------- */
.partner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.partner-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .14s ease, transform .14s ease;
}
.partner-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.partner-logo {
  height: 128px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 32px;
}
.partner-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.partner-body { padding: 22px 24px 24px; }
.partner-card h3 { font-weight: 600; font-size: 19px; margin: 0; }
.partner-card p { font-size: 13px; color: var(--muted); margin: 4px 0 0; line-height: 1.45; }

/* ---------- Womit wir arbeiten (Tech-Stack) ---------- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.tool-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 22px;
}
.tool-card.is-accent { border-color: var(--accent); }
.tool-card.is-more {
  background: var(--surface);
  border-style: dashed;
  border-color: var(--line-strong);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tool-logos {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 30px;
  margin-bottom: 16px;
  color: var(--ink);
}
.tool-card.is-accent .tool-logos { color: var(--accent); }
.ic {
  display: inline-block;
  width: 28px; height: 28px;
  flex: none;
  background: currentColor;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.ic-claude { -webkit-mask-image: url(icons/claude.svg); mask-image: url(icons/claude.svg); }
.ic-gemini { -webkit-mask-image: url(icons/googlegemini.svg); mask-image: url(icons/googlegemini.svg); }
.ic-vercel { -webkit-mask-image: url(icons/vercel.svg); mask-image: url(icons/vercel.svg); }
.ic-github { -webkit-mask-image: url(icons/github.svg); mask-image: url(icons/github.svg); }
.ic-docker { -webkit-mask-image: url(icons/docker.svg); mask-image: url(icons/docker.svg); }
.ic-mongodb { -webkit-mask-image: url(icons/mongodb.svg); mask-image: url(icons/mongodb.svg); }
.ic-pocketbase { -webkit-mask-image: url(icons/pocketbase.svg); mask-image: url(icons/pocketbase.svg); }
.ic-hetzner { -webkit-mask-image: url(icons/hetzner.svg); mask-image: url(icons/hetzner.svg); }
.tool-card h3 { font-weight: 600; font-size: 18px; margin: 0; }
.tool-card.is-more h3 { color: var(--accent); }
.tool-card p { font-size: 13px; color: var(--muted); margin: 4px 0 0; line-height: 1.45; }

/* ---------- Kontakt ---------- */
.contact {
  background: var(--accent);
  color: var(--accentInk);
  text-align: center;
}
.contact .inner { padding: 74px 40px; max-width: 720px; margin: 0 auto; }
.contact h2 {
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -.03em;
  margin: 0 0 14px;
}
.contact p { font-size: 16px; line-height: 1.55; margin: 0 0 26px; opacity: .82; }
.contact .btn-invert {
  display: inline-block;
  background: var(--accentInk);
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  padding: 16px 30px;
  border-radius: 12px;
  transition: transform .12s ease;
}
.contact .btn-invert:hover { transform: translateY(-1px); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg);
  color: var(--foot);
  font-size: 12.5px;
  border-top: 1px solid var(--line);
  padding: 34px 0 48px;
}
.footer-brand { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.footer-brand .logo-mark { font-size: 18px; }
.footer-brand .logo-word { font-size: 17px; }
.footer-bottom {
  display: flex;
  align-items: center;
  gap: 14px 24px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.footer-meta { line-height: 1.7; margin: 0; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a {
  color: var(--link);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
}
.footer-legal a:hover { color: var(--ink); }

/* ---------- Team-Teaser (Startseite) ---------- */
.team-more { margin-top: 30px; }
.team-more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--eink);
}
.team-more a .arrow { transition: transform .15s ease; }
.team-more a:hover .arrow { transform: translateX(3px); }

/* ---------- Team-Detailseite ---------- */
.team-list { display: flex; flex-direction: column; }
.team-detail {
  display: flex;
  gap: 26px;
  align-items: flex-start;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.team-detail:last-child { border-bottom: 1px solid var(--line); }
.team-detail-photo {
  flex: none;
  width: 132px; height: 132px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--ph);
  border: 1px solid var(--line);
}
.team-detail-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  display: block;
}
.team-detail h3 { font-weight: 700; font-size: 23px; letter-spacing: -.02em; margin: 2px 0 4px; }
.team-detail .role {
  font: 500 13px 'IBM Plex Mono', monospace;
  color: var(--eink);
  margin-bottom: 12px;
}
.team-detail .bio { font-size: 14.5px; line-height: 1.6; color: var(--muted); max-width: 620px; margin: 0; }
.team-detail .bio.placeholder { font-family: 'IBM Plex Mono', monospace; font-size: 13px; }

/* ---------- Rechtsseiten (Impressum / Datenschutz) ---------- */
.legal { padding: 40px 0 72px; }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 26px;
}
.legal-back:hover { color: var(--ink); }
.legal h1 { font-weight: 700; font-size: 42px; letter-spacing: -.03em; margin: 0 0 10px; }
.legal .intro { font-size: 15.5px; line-height: 1.6; color: var(--muted); max-width: 680px; margin: 0 0 8px; }
.legal h2 {
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -.01em;
  margin: 36px 0 10px;
}
.legal p { font-size: 15px; line-height: 1.65; color: var(--ink); max-width: 700px; margin: 0 0 12px; }
.legal .intro strong, .legal p strong { color: var(--ink); font-weight: 600; }
.legal dl {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 8px 22px;
  max-width: 700px;
  margin: 0 0 8px;
}
.legal dt { font-size: 14px; color: var(--muted); }
.legal dd { margin: 0; font-size: 15px; color: var(--ink); }
.legal a { color: var(--eink); border-bottom: 1px solid var(--line-strong); }
.legal a:hover { color: var(--accent); }
.legal .note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .container { padding: 0 22px; }
  .nav { padding: 16px 22px; }
  .logo-suffix { display: none; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 22px 18px;
    display: none;
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-cta { text-align: center; margin-top: 8px; border-radius: 10px; padding: 13px; }
  .nav-burger { display: flex; }
  .nav-right { display: flex; align-items: center; gap: 10px; }

  .hero { padding: 40px 0 44px; }
  .hero h1 { font-size: 43px; line-height: .98; letter-spacing: -.035em; }
  .hero .lead { font-size: 15.5px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  .page-hero { padding: 40px 0 26px; }
  .page-hero h1 { font-size: 40px; }
  .page-hero .lead { font-size: 15.5px; }

  .section { padding: 40px 0; }
  .section-title { font-size: 29px; margin-bottom: 24px; }

  /* Was wir machen → nummerierte Liste (wie Mobil-Mockup) */
  .wwm-grid { grid-template-columns: 1fr; gap: 0; }
  .wwm-item {
    border-top: 1px solid var(--line);
    padding: 20px 0;
    display: flex;
    gap: 15px;
    align-items: flex-start;
  }
  .wwm-item:last-child { border-bottom: 1px solid var(--line); }
  .wwm-num { display: block; padding-top: 2px; }

  .products-grid { grid-template-columns: 1fr; }
  .build-grid { grid-template-columns: 1fr; gap: 16px; }
  .team-grid { grid-template-columns: 1fr; gap: 14px; }
  .partner-grid { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: 1fr; }

  .team-detail { gap: 18px; }
  .team-detail-photo { width: 92px; height: 92px; border-radius: 14px; }
  .team-detail h3 { font-size: 20px; }

  .legal h1 { font-size: 32px; }
  .legal dl { grid-template-columns: 1fr; gap: 2px 0; }
  .legal dt { margin-top: 10px; }
  .legal dt:first-child { margin-top: 0; }

  .contact .inner { padding: 48px 22px; }
  .contact h2 { font-size: 31px; }
}

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