/* Generalbau – Planblatt-Gestaltung
   Schriften lokal (keine Google-Fonts-Verbindung, DSGVO) */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-ext.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif"; src: url("../fonts/serif-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("../fonts/serif-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("../fonts/serif-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #f3f4f2;
  --plate: #e4e8e5;
  --ink: #17222a;
  --graphite: #4f5c64;
  --line: #c3c9c6;
  --mark: #c4122f;
  --brand: #1f6b45;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif", Georgia, serif;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--serif);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--mark); }
:focus-visible { outline: 2px solid var(--mark); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3, .brand, nav, .btn, .link, dt, .kicker, .crumb, .reg-row, .reg-head, .pager, summary, .site-footer, .types {
  font-family: var(--sans);
}
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.05; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-stretch: 112%; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-stretch: 118%; letter-spacing: -.015em; margin-bottom: 2rem; }
h3 { font-size: 1.15rem; font-stretch: 100%; margin: 2rem 0 .6rem; }
p { margin: 0 0 1em; }

/* Kopf */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { font-weight: 800; font-stretch: 125%; font-size: 1.35rem; letter-spacing: -.01em; text-decoration: none; }
.brand::before { content: ""; display: inline-block; width: .55em; height: .55em; background: var(--brand); margin-right: .45em; vertical-align: .05em; }
nav ul { list-style: none; display: flex; gap: clamp(.9rem, 2.5vw, 2rem); margin: 0; padding: 0; }
nav a { text-decoration: none; font-size: .95rem; font-weight: 500; }
nav a[aria-current="page"] { color: var(--mark); }

/* Hero mit Planblatt */
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.lede { font-size: 1.2rem; line-height: 1.6; color: var(--graphite); max-width: 34em; margin: 1.6rem 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; margin: 0; }
.btn { display: inline-block; background: var(--ink); color: var(--paper); text-decoration: none; padding: .85rem 1.4rem; font-weight: 600; font-size: .95rem; }
.btn:hover { background: var(--mark); color: #fff; }
.link { font-weight: 600; font-size: .95rem; }

.sheet { margin: 0; background: #fff; border: 1px solid var(--ink); padding: 10px; box-shadow: 10px 10px 0 var(--plate); }
.sheet-drawing { border: 1px solid var(--ink); border-bottom: 0; padding: clamp(1rem, 3vw, 2rem); position: relative;
  background-image: linear-gradient(var(--plate) 1px, transparent 1px), linear-gradient(90deg, var(--plate) 1px, transparent 1px);
  background-size: 24px 24px; }
.sheet-drawing img { mix-blend-mode: multiply; margin: 0 auto; animation: plot 1.6s cubic-bezier(.6,.05,.3,1) .2s both; }
@keyframes plot { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* Schriftfeld */
.titleblock { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); background: #fff; }
.titleblock > div { padding: .55rem .75rem .6rem; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.titleblock > div:nth-child(2n) { border-right: 0; }
.titleblock > div:nth-last-child(-n+2):nth-child(odd), .titleblock > div:last-child { border-bottom: 0; }
.titleblock > div:last-child:nth-child(odd) { grid-column: span 2; border-right: 0; }
.titleblock dt { font-size: .72rem; font-weight: 600; color: var(--graphite); letter-spacing: .02em; }
.titleblock dd { margin: .1rem 0 0; font-family: var(--sans); font-size: .95rem; font-weight: 500; line-height: 1.35; }
.titleblock.big dd { font-size: clamp(1.05rem, 2vw, 1.35rem); font-stretch: 108%; }

/* Bänder */
.band { padding: clamp(3.5rem, 8vw, 6rem) 0; border-bottom: 1px solid var(--line); }
.band-ink { background: var(--ink); color: var(--paper); border-bottom: 0; }
.band-plate { background: var(--plate); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
.cols h3:first-child { margin-top: 0; }
.cols p { max-width: 36em; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: .55rem 0 .55rem 1.6rem; border-top: 1px solid var(--line); position: relative; }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.2rem; width: .8rem; height: 1px; background: var(--mark); }

.people { list-style: none; padding: 0; margin: 0; font-family: var(--sans); }
.people > li { font-size: 1.3rem; font-weight: 600; font-stretch: 108%; padding: .8rem 0; border-top: 1px solid var(--line); }
.people > li:last-child { border-bottom: 1px solid var(--line); }
.profile summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.profile summary::-webkit-details-marker { display: none; }
.profile summary span { font-size: .85rem; font-weight: 500; color: var(--graphite); font-stretch: 100%; }
.profile summary span::after { content: "+"; display: inline-block; margin-left: .6rem; color: var(--mark); font-weight: 700; transition: transform .2s; }
.profile[open] summary span::after { transform: rotate(45deg); }
.profile-body { display: grid; grid-template-columns: 9rem 1fr; gap: 1.5rem; padding-top: 1.2rem; font-family: var(--serif); font-size: .95rem; font-weight: 400; font-stretch: 100%; }
.profile-body img { border: 1px solid var(--line); filter: grayscale(1) contrast(1.05); }
.profile-body dl { margin: 0; }
.profile-body dt { font-size: .75rem; font-weight: 600; color: var(--graphite); margin-top: .8rem; }
.profile-body dt:first-child { margin-top: 0; }
.profile-body dd { margin: .15rem 0 0; line-height: 1.5; }

.kicker { font-size: 1rem; font-weight: 500; color: color-mix(in srgb, var(--paper) 70%, var(--ink)); margin: -1rem 0 1rem; }
.types { list-style: none; margin: 0 0 3rem; padding: 0; }
.types li { font-size: clamp(2rem, 6.5vw, 5rem); font-weight: 300; font-stretch: 125%; line-height: 1.08; letter-spacing: -.025em; padding: .35em 0; border-top: 1px solid color-mix(in srgb, var(--paper) 25%, var(--ink)); }
.types li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--paper) 25%, var(--ink)); }
.promise { font-size: 1.25rem; max-width: 34em; margin: 0; }

/* Projektregister */
.intro { color: var(--graphite); margin: -1rem 0 2rem; }
.reg-head, .reg-row { display: grid; grid-template-columns: 1.4fr .8fr 1.5fr 5.5rem; gap: 1.5rem; align-items: baseline; }
.reg-head span:last-child { text-align: right; }
.reg-head { font-size: .75rem; font-weight: 600; color: var(--graphite); padding: 0 0 .5rem; border-bottom: 1px solid var(--ink); }
.register { list-style: none; margin: 0; padding: 0; }
.reg-row { text-decoration: none; padding: 1.1rem 0; border-bottom: 1px solid var(--line); position: relative; }
.reg-name { font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 700; font-stretch: 115%; letter-spacing: -.015em; line-height: 1.1; }
.reg-lage { font-weight: 500; }
.reg-umfang { color: var(--graphite); font-size: .95rem; }
.reg-status { justify-self: end; font-size: .8rem; font-weight: 600; color: var(--graphite); border: 1px solid var(--line); padding: .1rem .5rem; }
.reg-row::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--mark); transition: width .35s ease; }
.reg-row:hover, .reg-row:focus-visible { color: var(--ink); }
.reg-row:hover::before, .reg-row:focus-visible::before { width: 100%; }
.reg-row:hover .reg-name { color: var(--mark); }

.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; align-items: start; }
address { font-style: normal; }

/* Projektseite */
.project, .legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3.5rem, 8vw, 6rem); }
.crumb { font-size: .9rem; font-weight: 500; color: var(--graphite); margin-bottom: 1rem; }
.project h1, .legal h1 { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.project-grid { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.project aside { position: sticky; top: 5.5rem; }
.project aside .titleblock { grid-template-columns: 1fr; }
.project aside .titleblock > div { border-right: 0; border-bottom: 1px solid var(--ink); }
.project aside .titleblock > div:last-child { border-bottom: 0; grid-column: auto; }
.prose { max-width: 38em; }
.prose h2 { font-size: 1.45rem; font-stretch: 105%; margin: 2.2rem 0 .7rem; letter-spacing: -.01em; }
.prose h2:first-child, .prose > :first-child { margin-top: 0; }
.prose h3 { margin-top: 2rem; }
.prose h4 { font-family: var(--sans); font-size: 1rem; margin: 1.5rem 0 .4rem; }
.prose .claim { font-family: var(--sans); font-weight: 600; font-size: 1.15rem; font-stretch: 105%; border-left: 2px solid var(--mark); padding-left: 1rem; margin-top: 2rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1.25rem; margin-top: clamp(3rem, 7vw, 5rem); align-items: start; }
.gallery figure { margin: 0; background: #fff; border: 1px solid var(--line); padding: 8px; }
.gallery img { width: 100%; max-width: 500px; margin: 0 auto; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: clamp(3rem, 7vw, 5rem); border-top: 1px solid var(--ink); }
.pager a { text-decoration: none; padding: 1rem 0; font-size: 1.4rem; font-weight: 700; font-stretch: 112%; }
.pager a:last-child { text-align: right; }
.pager span { display: block; font-size: .8rem; font-weight: 500; color: var(--graphite); font-stretch: 100%; }

/* Fuß */
.site-footer { background: var(--ink); color: color-mix(in srgb, var(--paper) 75%, var(--ink)); font-size: .85rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.footer-row p { margin: 0; }
.footer-row ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.site-footer a { color: var(--paper); }

@media (max-width: 860px) {
  .hero-grid, .cols, .contact-grid, .project-grid { grid-template-columns: 1fr; }
  .project aside { position: static; }
  .reg-head { display: none; }
  .reg-row { grid-template-columns: 1fr auto; gap: .2rem 1rem; }
  .reg-name { grid-column: 1; }
  .reg-status { grid-column: 2; grid-row: 1; align-self: center; }
  .reg-lage, .reg-umfang { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .header-row { flex-direction: column; align-items: flex-start; padding-top: .7rem; padding-bottom: .7rem; gap: .4rem; }
  nav ul { gap: 1rem; flex-wrap: wrap; }
  .titleblock { grid-template-columns: 1fr; }
  .titleblock > div { border-right: 0 !important; border-bottom: 1px solid var(--ink) !important; }
  .titleblock > div:last-child { border-bottom: 0 !important; grid-column: auto !important; }
  .profile-body { grid-template-columns: 1fr; }
  .profile-body img { max-width: 9rem; }
  .pager a { font-size: 1.1rem; }
  .site-header { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
@media print {
  .site-header, .site-footer, .pager, .hero-actions { display: none; }
  body { background: #fff; }
  .band-ink { background: #fff; color: #000; }
}

/* SEO/GEO-Ergänzungen */
.summary { font-size: 1.15rem; line-height: 1.6; margin-bottom: 2rem; padding-left: 1rem; border-left: 2px solid var(--mark); }
.gallery figcaption { font-family: var(--sans); font-size: .8rem; color: var(--graphite); line-height: 1.4; padding: .6rem .2rem .1rem; }
