:root {
  color-scheme: light;
  --paper: #F3F1EC;
  --white: #FBFAF7;
  --ink: #151515;
  --grey: #5E5B56;
  --line: rgba(21,21,21,.14);
  --brick: #A3412A;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 18px/1.65 var(--font); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.gutter { padding-left: clamp(20px, 5vw, 64px); padding-right: clamp(20px, 5vw, 64px); }
.wrap { max-width: 1280px; margin: 0 auto; }
.narrow { max-width: 760px; }
.kicker { font-weight: 600; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--brick); }
h1, h2, h3, h4 { margin: 0; font-weight: 800; font-stretch: 112%; letter-spacing: -.02em; }
h2 { font-size: clamp(36px, 5.2vw, 72px); line-height: 1.04; max-width: 18ch; }
h3 { font-size: 24px; line-height: 1.2; margin: 30px 0 10px; }
.lead { font-size: clamp(19px, 1.6vw, 22px); color: var(--ink); max-width: 52ch; }
p { color: var(--grey); }
section { padding-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(80px, 10vw, 140px); }
.head { display: grid; gap: 20px; margin-bottom: clamp(40px, 5vw, 64px); }

.nav { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: 18px clamp(20px, 5vw, 64px); transition: background .35s, box-shadow .35s; }
.nav.solid { background: rgba(251,250,247,.92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand b { font-weight: 800; font-stretch: 125%; font-size: 24px; letter-spacing: .08em; }
.brand span { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; font-weight: 600; font-size: 15px; }
.nav ul a { text-decoration: none; }
.nav ul a:hover { color: var(--brick); }

/* Hero */
.hero { min-height: 100svh; padding-top: 120px; padding-bottom: 60px; display: flex; align-items: center; }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 80px); align-items: center; width: 100%; }
.hero h1 { font-size: clamp(46px, 6.6vw, 100px); line-height: .98; margin: 22px 0 34px; font-stretch: 112%; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero h1 .line > span { display: inline-block; }
.hero h1 .thin { font-weight: 400; font-stretch: 100%; color: var(--grey); }
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(60px, 7vw, 100px); gap: 10px; }
.tile { margin: 0; position: relative; overflow: hidden; background: #ddd; }
.tile img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .6s, transform .8s; }
.tile:hover img { filter: grayscale(0); transform: scale(1.04); }
.tile figcaption { position: absolute; left: 0; bottom: 0; right: 0; padding: 18px 10px 8px; font-size: 12px; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); opacity: 0; transition: opacity .3s; }
.tile:hover figcaption { opacity: 1; }
.t1 { grid-column: 1 / 3; grid-row: 1 / 4; }
.t2 { grid-column: 3 / 7; grid-row: 1 / 3; }
.t3 { grid-column: 3 / 5; grid-row: 3 / 5; }
.t4 { grid-column: 5 / 7; grid-row: 3 / 6; }
.t5 { grid-column: 1 / 3; grid-row: 4 / 7; }
.t6 { grid-column: 3 / 5; grid-row: 5 / 7; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; padding: 15px 26px; background: var(--ink); color: var(--white); font-weight: 600; text-decoration: none; transition: background .25s, transform .25s; }
.btn:hover { background: var(--brick); transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--white); }

/* Zahlen */
.numbers { padding-top: 0; padding-bottom: 0; }
.nums { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.num { padding: 28px 20px 28px 0; }
.num + .num { padding-left: 24px; border-left: 1px solid var(--line); }
.num b { display: block; font-size: clamp(44px, 5vw, 72px); font-weight: 800; font-stretch: 112%; line-height: 1; letter-spacing: -.03em; }
.num span { font-size: 15px; color: var(--grey); }

/* Profil */
.profil-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.portrait { margin: 0; position: sticky; top: 100px; }
.portrait img { width: 100%; filter: grayscale(1); }
.portrait figcaption { margin-top: 10px; font-size: 14px; color: var(--grey); }

/* Leistungen */
.dark { background: var(--ink); color: var(--white); }
.dark p, .dark .lead { color: #C9C6C0; }
.dark .kicker { color: #E08B70; }
.leis-list { border-top: 1px solid rgba(251,250,247,.2); }
.leis { border-bottom: 1px solid rgba(251,250,247,.2); }
.leis summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 70px 1fr 40px; align-items: center; padding: 26px 0; }
.leis summary::-webkit-details-marker { display: none; }
.leis .nr { font-size: 15px; color: #E08B70; font-weight: 600; }
.leis .t { font-size: clamp(28px, 3.6vw, 50px); font-weight: 800; font-stretch: 112%; letter-spacing: -.02em; line-height: 1.1; transition: transform .35s; }
.leis summary:hover .t { transform: translateX(10px); }
.plus { width: 26px; height: 26px; position: relative; justify-self: end; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: currentColor; transition: transform .35s; }
.plus::after { transform: rotate(90deg); }
.leis[open] .plus::after { transform: rotate(0); }
.leis .body { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; padding: 0 0 34px 70px; }
.leis h4 { font-size: 19px; margin-bottom: 6px; }
.leis p { margin: 0; font-size: 17px; }

/* Projekte */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chip { font: 600 15px/1 var(--font); padding: 12px 18px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; transition: background .2s, color .2s; }
.chip sup { font-size: 11px; color: var(--brick); margin-left: 2px; }
.chip:hover { background: var(--paper); }
.chip.on { background: var(--ink); color: var(--white); }
.chip.on sup { color: #E08B70; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 22px; }
.proj { text-decoration: none; display: block; }
.proj[hidden] { display: none; }
.proj .pic { aspect-ratio: 4/3; overflow: hidden; background: var(--paper); display: grid; place-items: center; }
.proj .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.proj.klein .pic img { width: auto; height: auto; max-width: 70%; max-height: 80%; object-fit: contain; }
.proj:hover .pic img { transform: scale(1.05); }
.proj .meta { padding-top: 14px; }
.proj .jahr { font-size: 13px; font-weight: 600; color: var(--brick); letter-spacing: .06em; }
.proj h3 { font-size: 21px; margin: 4px 0 4px; }
.proj p { margin: 0; font-size: 16px; line-height: 1.5; }
.proj .pdf { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; border-bottom: 1.5px solid currentColor; }
.proj:hover .pdf { color: var(--brick); }
.tech { margin-top: 60px; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th { text-align: left; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); padding: 10px 12px 10px 0; border-bottom: 1.5px solid var(--ink); }
td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }

/* Kosten */
.paper { background: var(--paper); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); }
.rates td:last-child { text-align: right; font-weight: 700; white-space: nowrap; }
.small { font-size: 15px; }

/* Kontakt */
.kontakt { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.addr { font-size: clamp(28px, 3vw, 40px); font-weight: 700; font-stretch: 112%; line-height: 1.15; color: var(--ink); margin: 0 0 20px; }
.kv { display: grid; grid-template-columns: 80px 1fr; gap: 8px 16px; margin: 0; }
.kv dt { color: var(--grey); }
.kv dd { margin: 0; font-weight: 600; }
.office { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.office figure { margin: 0; }
.office img { width: 100%; aspect-ratio: 4/3; object-fit: cover; filter: grayscale(1); }
.office figcaption { font-size: 13px; color: var(--grey); margin-top: 6px; }

.legal { padding-top: 140px; padding-bottom: 100px; }
.legal h2 { margin-bottom: 30px; }
.legal p { color: var(--ink); }
.legal a { color: var(--brick); }

footer { border-top: 1px solid var(--line); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 30px 0 40px; font-size: 14px; color: var(--grey); }
.mobilebar { display: none; }

@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 960px) {
  .hero-in, .profil-grid, .cols, .kontakt { grid-template-columns: 1fr; }
  .portrait { position: static; max-width: 560px; }
  .nav ul { display: none; }
  .grid { grid-template-columns: 1fr 1fr; }
  .nums { grid-template-columns: 1fr 1fr; }
  .num:nth-child(3) { padding-left: 0; border-left: 0; }
  .num:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  body { font-size: 17px; padding-bottom: 76px; }
  .hero { min-height: auto; }
  .tiles { grid-auto-rows: 15vw; gap: 6px; }
  .grid { grid-template-columns: 1fr; }
  .leis summary { grid-template-columns: 44px minmax(0,1fr) 30px; }
  .leis .t { font-size: 26px; hyphens: auto; overflow-wrap: break-word; }
  .leis .body { padding-left: 0; }
  .brand span { display: none; }
  .mobilebar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(251,250,247,.95); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .mobilebar a { text-align: center; padding: 14px; font-weight: 700; text-decoration: none; background: var(--ink); color: var(--white); }
  .mobilebar a + a { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .tile img, .proj .pic img, .btn, .leis .t { transition: none; } }
