:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --ink: #1a1b1e;
  --ink-2: #3a3d44;
  --mute: #6b6f78;
  --line: #e3e3df;
  --accent: #1f4bff;
  --color-scheme-value: light;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111214;
    --surface: #1a1b1f;
    --ink: #ececea;
    --ink-2: #cfcfcc;
    --mute: #9a9da5;
    --line: #2a2c32;
    --accent: #7f9bff;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #111214;
  --surface: #1a1b1f;
  --ink: #ececea;
  --ink-2: #cfcfcc;
  --mute: #9a9da5;
  --line: #2a2c32;
  --accent: #7f9bff;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

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

img { display: block; max-width: 100%; height: auto; }

button { font: inherit; color: inherit; }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.brand img { height: 44px; width: auto; }

.brand .logo-dark { display: none; }

:root[data-theme="dark"] .brand .logo-light { display: none; }

:root[data-theme="dark"] .brand .logo-dark { display: block; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .logo-light { display: none; }
  :root:not([data-theme="light"]) .brand .logo-dark { display: block; }
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.topbar nav {
  display: flex;
  gap: 24px;
}

.topbar nav a {
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.2s;
}

.topbar nav a:hover { color: var(--accent); }

.theme-toggle {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: none;
  color: var(--ink-2);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.theme-toggle:hover { border-color: var(--mute); }

.hero {
  padding: 96px 0 88px;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  
  max-width: 1200px;  
  margin: 0 auto;     
  padding: 0 24px;     
}

.bild-rechts {
  max-width: 300px;
  height: auto;
  display: block;
}


.kicker {
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.intro {
  margin-top: 20px;
  max-width: 52ch;
  font-size: 18px;
  color: var(--mute);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 36px;
}

.hero-links a {
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.block {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}

.block:last-of-type { border-bottom: none; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 40px;
}

.num {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--mute);
}

.section-head h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.services {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
}

.services li {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.services h3 {
  font-size: 18px;
  font-weight: 600;
}

.services p {
  margin-top: 4px;
  font-size: 15px;
  color: var(--mute);
}

.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 32px;
}

.project { min-width: 0; }

.cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  cursor: zoom-in;
}

.cover img,
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-count {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 9px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-size: 12px;
}

.project-info { margin-top: 14px; }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 14px;
  color: var(--mute);
}

.meta time { color: var(--ink-2); }

.project h3 {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.project-info p {
  margin-top: 4px;
  font-size: 15px;
  color: var(--mute);
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  cursor: zoom-in;
}

.thumb-mehr {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}

.leer {
  grid-column: 1 / -1;
  color: var(--mute);
}

.facts {
  max-width: 640px;
  border-top: 1px solid var(--line);
}

.facts > div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.facts dt { color: var(--mute); }

.facts dd {
  font-weight: 500;
  text-align: right;
}

.contact-list {
  border-top: 1px solid var(--line);
}

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s;
}

.contact-row:hover { color: var(--accent); }

.c-label { color: var(--mute); }

.c-value {
  font-size: 20px;
  font-weight: 500;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
  list-style: none;
}

.social a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.social a:hover { color: var(--accent); }

.foot {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--mute);
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: rgba(10, 10, 12, 0.94);
  color: #ececea;
}

.lightbox[hidden] { display: none; }

.lb-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
}

.lb-titel {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
}

.lb-zaehler {
  font-size: 14px;
  color: #9a9da5;
  font-variant-numeric: tabular-nums;
}

.lb-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 88px 24px;
}

.lb-body img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  transition: opacity 0.2s;
}

.lb-body img.is-loading { opacity: 0.3; }

.lb-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: none;
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.lb-btn:hover { border-color: rgba(255, 255, 255, 0.6); }

.lb-close { flex: none; }

.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.lb-prev { left: 24px; }

.lb-next { right: 24px; }

@media (max-width: 760px) {
  .wrap { padding: 0 22px; }
  .topbar nav { display: none; }
  .brand img { height: 38px; }
  .hero { padding: 64px 0 64px; }
  .block { padding: 64px 0; }
  .section-head { margin-bottom: 28px; }
  .section-head h2 { font-size: 28px; }
  .services { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(4, 1fr); }
  .contact-row { flex-direction: column; gap: 4px; }
  .lb-body { padding: 0 8px 96px; }
  .lb-prev,
  .lb-next { top: auto; bottom: 24px; transform: none; }
  .lb-prev { left: calc(50% - 56px); }
  .lb-next { right: calc(50% - 56px); }
}
