/* asp Architekten Spuhler PartGmbB – Website
   Schrift lokal eingebunden (keine Verbindung zu Drittanbietern).
   Newsreader, SIL Open Font License 1.1, siehe fonts/Newsreader-OFL.txt */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/newsreader-latin-opsz.woff2') format('woff2-variations'), url('fonts/newsreader-latin-opsz.woff2') format('woff2');
}

:root {
  --serif: Newsreader, Georgia, 'Times New Roman', serif;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --ink: #121212;
  --mute: #55554F;
  --line: rgba(18,18,18,.18);
  --paper: #E8E6E1;
  --night: #141414;
  --accent: #A63F27;
  --gx: clamp(24px, 5.6vw, 104px);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, textarea { font: inherit; color: inherit; }
img { display: block; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
input::placeholder, textarea::placeholder { color: #63635D; }
[hidden] { display: none !important; }

/* Typografie: sechs Stile
   1 Display  Serif 300  Seitentitel, große Aussagen, Kennzahlen
   2 Heading  Serif 300  Abschnittstitel, Leistungen, Statements
   3 Title    Serif 400  Projekt-, Listen- und Kartentitel
   4 Body     Sans 16    Fließtext, Formularfelder
   5 Small    Sans 14    Navigation, Labels, Metadaten, Buttons, Footer
   6 Wordmark Sans       nur Footer-Schriftzug */
.t-display { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 6.4vw, 104px); line-height: .96; letter-spacing: -.025em; text-wrap: balance; font-variant-numeric: lining-nums tabular-nums; }
.t-heading { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 3.8vw, 60px); line-height: 1.04; letter-spacing: -.02em; text-wrap: balance; }
.t-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2vw, 30px); line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
.t-body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; text-wrap: pretty; }
.t-small { margin: 0; font-family: var(--sans); font-size: 14px; line-height: 1.5; letter-spacing: 0; font-weight: 400; }
.t-wordmark { font-family: var(--sans); font-weight: 400; letter-spacing: -.04em; }
.mute { color: var(--mute); }

.wrap { padding-left: var(--gx); padding-right: var(--gx); }
.on-dark { background: var(--night); color: #E8E6E1; --line: rgba(232,230,225,.2); --mute: #A9A8A3; --accent: #E59A82; }

.link { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); transition: color .2s; }
.link:hover { color: var(--accent); }
.plain { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; transition: color .2s; }
.plain:hover { color: var(--accent); }
.btn { display: inline-block; cursor: pointer; border: 1px solid currentColor; background: transparent; padding: 14px 24px; transition: background .25s, color .25s, border-color .25s; }
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.navlink { display: inline-block; background: none; border: 0; border-bottom: 1px solid transparent; padding: 21px 0 20px; cursor: pointer; transition: color .2s; color: var(--mute); }
.navlink[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
.navlink:hover { color: var(--accent) !important; }
.field { width: 100%; border: 0; border-bottom: 1px solid rgba(18,18,18,.35); background: transparent; padding: 8px 0 10px; font-size: 16px; line-height: 1.5; border-radius: 0; outline: none; transition: border-color .2s; }
.field:focus { border-bottom-color: var(--ink); }
.field:focus-visible { outline: none; border-bottom: 2px solid var(--ink); padding-bottom: 9px; }

/* Bildstil Schwarzweiß, bei Hover Farbe */
.bw { filter: grayscale(1) contrast(1.03); transition: filter .6s ease; }
.strip-fig:hover .bw, .fig-hover:hover .bw { filter: none; }
.card-img { transition: filter .6s ease, transform 1.1s cubic-bezier(.2,.7,.2,1); }
.card-link:hover .card-img { filter: none; transform: scale(1.04); }
.pn { cursor: pointer; background: none; border: 0; transition: background .3s; color: inherit; }
.pn:hover { background: #E0DED8; color: inherit; }

/* Filter und Ansicht */
.tab { padding-bottom: 4px; color: var(--mute); border-bottom: 1px solid transparent; }
.tab[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }

/* Vorschau am Mauszeiger (Liste, Leistungen) */
#pv { position: fixed; left: 0; top: 0; width: 280px; aspect-ratio: 4 / 5; overflow: hidden; pointer-events: none; z-index: 30; background: #DAD8D2; opacity: 0; transition: opacity .3s ease; will-change: transform; }
#pv.on { opacity: 1; }
#pv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .35s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
#pv img.on { opacity: 1; transform: scale(1); }
#tip { position: fixed; left: 0; top: 0; width: 320px; pointer-events: none; z-index: 31; padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; opacity: 0; transition: opacity .25s ease; will-change: transform; }
#tip.on { opacity: 1; }
.idx-row { color: var(--ink); transition: color .3s; }
#list-view.hovering .idx-row:not(.on) { color: #6E6E68; }
.svc-row { color: #E8E6E1; transition: color .35s; }
.svc-row h3 { transform: translateX(0); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.svc-list.hovering .svc-row:not(.on) { color: #6E6D6A; }
.svc-list .svc-row.on h3 { transform: translateX(16px); }

/* Startseite: horizontaler Streifen */
.hs { position: relative; margin-top: 72px; height: 220vh; }
.hs-sticky { position: sticky; top: 64px; height: calc(100vh - 64px); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 20px 0 24px; }
html:not(.js) .hs { height: auto; }
html:not(.js) .hs-sticky { position: relative; height: auto; overflow-x: auto; gap: 24px; }

/* Wortweises Einblenden des Statements (nur mit JavaScript) */
html.js [data-word] { opacity: .16; transition: opacity .25s ease; }

/* Ansichten der Startseite (nur mit JavaScript einzeln) */
html.js [data-view] { display: none; }
html.js [data-view].on { display: block; }
#page { transition: opacity .24s ease, transform .24s ease; }

@keyframes lineUp { from { transform: translateY(110%) } to { transform: none } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: none } }
@keyframes clipUp { from { clip-path: inset(100% 0 0 0) } to { clip-path: inset(0 0 0 0) } }
@media (max-width: 860px) {
  [data-grid] { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  [data-grid] > [data-span] { grid-column: 1 / -1 !important; }
  [data-desktop] { display: none !important; }
  #pv, #tip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
