/* Eronik – Designsystem
   Farben: warme Neutraltöne (Kalk, Putz, Fuge, Beton) + ein Akzent (Glut) aus dem Sonnenaufgang des Heros */
:root {
  --kalk: #F3F1EC;
  --putz: #E8E4DC;
  --fuge: #D6D0C4;
  --beton: #7D776D;
  --graphit: #1F1E1C;
  --nacht: #151513;
  --glut: #C4703A;
  --glut-text: #9A5225;
  --line-dark: rgba(243, 241, 236, .14);

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter Tight", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);

  --pad: 20px;
  --section: clamp(6rem, 12vw, 12rem);
}
@media (min-width: 810px) { :root { --pad: 40px; } }
@media (min-width: 1440px) { :root { --pad: 64px; } }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
body { background: var(--kalk); color: var(--graphit); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.55;
       -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

.mono { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; font-variant-numeric: tabular-nums; line-height: 1.5; }
.wrap { padding-left: var(--pad); padding-right: var(--pad); max-width: 1920px; margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.col-4 { grid-column: span 4; } .col-8 { grid-column: span 8; }
@media (max-width: 900px) { .col-4, .col-8 { grid-column: 1 / -1; } }
.section { padding: var(--section) 0; }

.h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(3.5rem, 2rem + 6vw, 9rem); line-height: .95; letter-spacing: -.02em; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.25rem, 1.5rem + 2.6vw, 4.25rem); line-height: 1.02; letter-spacing: -.015em; }
.h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 1.2rem + .9vw, 2.2rem); line-height: 1.1; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(3rem, 6vw, 6rem); max-width: 1100px; }
.idx { color: var(--beton); }
[data-theme="dark"] .idx { color: rgba(243, 241, 236, .55); }
.note { color: var(--beton); }

/* Platzhalter: bewusst sichtbar, damit nichts Erfundenes live geht */
.ph { outline: 1px dashed var(--glut); outline-offset: 2px; color: var(--glut-text); font-style: normal; }
[data-theme="dark"] .ph { color: #E9A577; }

/* ---------------------------------------------------------------- Buttons */
.btn { display: inline-flex; align-items: center; gap: .6em; padding: .7em 1.2em; border: 1px solid currentColor; border-radius: 999px;
       font-size: .9rem; transition: background .4s var(--ease-out), color .4s var(--ease-out); }
.btn:hover { background: var(--kalk); color: var(--graphit); border-color: var(--kalk); }

/* ---------------------------------------------------------------- Loader */
#loader { position: fixed; inset: 0; z-index: 100; background: var(--nacht); color: var(--kalk);
          display: grid; padding: var(--pad); grid-template-rows: 1fr auto auto;
          transition: clip-path 1.1s var(--ease-io); clip-path: inset(0 0 0 0); }
#loader.done { clip-path: inset(0 0 100% 0); }
.loader-mark { align-self: center; justify-self: center; font-family: var(--sans); font-weight: 600; letter-spacing: .4em; font-size: 14px; }
.loader-count { font-size: clamp(3rem, 8vw, 7rem); letter-spacing: -.02em; font-weight: 400; line-height: 1; }
.loader-line { height: 1px; background: var(--line-dark); margin-top: 16px; }
.loader-line span { display: block; height: 100%; width: 0; background: var(--glut); transition: width .3s linear; }

/* ---------------------------------------------------------------- Header */
#nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 28px;
       padding: 18px var(--pad); color: var(--kalk); transition: color .5s var(--ease-out), background .5s var(--ease-out), transform .6s var(--ease-out); }
#nav[data-theme="light"] { color: var(--graphit); background: rgba(243, 241, 236, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
#nav[data-theme="light"] .btn:hover { background: var(--graphit); color: var(--kalk); border-color: var(--graphit); }
#nav.hide { transform: translateY(-100%); }
.wordmark { font-weight: 600; letter-spacing: .32em; font-size: 14px; }
.nav-links { margin-left: auto; display: flex; gap: .45em; font-size: .95rem; }
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: .35em; bottom: -2px; height: 1px; background: currentColor;
                      transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease-out); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.menu-btn { display: none; margin-left: auto; width: 40px; height: 40px; background: none; border: 0; color: inherit; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 9px; right: 9px; height: 1px; background: currentColor; transition: transform .5s var(--ease-out); }
.menu-btn span:first-child { top: 16px; } .menu-btn span:last-child { top: 24px; }
body.menu-open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
body.menu-open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }
#menu { position: fixed; inset: 0; z-index: 40; background: var(--nacht); color: var(--kalk); padding: 100px var(--pad) var(--pad);
        display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
        clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-io); }
body.menu-open #menu { clip-path: inset(0); }
#menu a { display: grid; grid-template-columns: 3em 1fr; align-items: baseline; font-family: var(--serif); font-size: 2.6rem; line-height: 1.15;
          border-top: 1px solid var(--line-dark); padding: 12px 0; }
#menu small { grid-column: 2; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; opacity: .55; }
body.menu-open #nav { color: var(--kalk); background: transparent; backdrop-filter: none; }
@media (max-width: 860px) { .nav-links, .btn-nav { display: none; } .menu-btn { display: block; } }

/* ---------------------------------------------------------------- Hero */
#hero { position: relative; background: var(--nacht); color: var(--kalk); }
#stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: var(--nacht) url(frames/poster.jpg) center/cover no-repeat; }
.shade { position: absolute; inset: 0; pointer-events: none;
         background: linear-gradient(180deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 50%, rgba(0,0,0,.6) 100%); }
.caption { position: absolute; left: 0; right: 0; bottom: calc(12vh + 40px); padding: 0 6vw; text-align: center; pointer-events: none; }
.caption h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 6vw, 96px); line-height: 1.02; letter-spacing: -.015em;
              text-shadow: 0 2px 40px rgba(0,0,0,.4); }
.caption h2 .big { display: block; font-size: min(1.8em, 12.5vw); font-style: italic; }
.caption p { margin-top: 16px; color: rgba(243,241,236,.75); }
.caption .btn { margin-top: 28px; pointer-events: auto; }
/* Wortweise Maske, wie bei den Abschnitts-Überschriften */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 60ms); }
.caption.on .w > span, .in .w > span { transform: none; }
.caption p, .caption .btn { opacity: 0; transform: translateY(12px); transition: opacity .8s var(--ease-out) .3s, transform .8s var(--ease-out) .3s; }
.caption.on p, .caption.on .btn { opacity: 1; transform: none; }
.caption.off .w > span { transform: translateY(-110%); transition-duration: .5s; transition-delay: 0ms; }

/* Massstab-Lineal als Fortschritt (Kellerstöckl) */
.ruler { position: absolute; left: var(--pad); right: var(--pad); bottom: 22px; height: 34px; color: var(--kalk); }
.ruler-ticks { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; opacity: .45;
               background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 10px); }
.ruler-labels { position: absolute; inset: 0; }
.ruler-labels span { position: absolute; bottom: 0; transform: translateX(-0.5px); font-family: var(--mono); font-size: 10px; letter-spacing: .08em;
                     text-transform: uppercase; padding-left: 6px; border-left: 1px solid currentColor; height: 22px; line-height: 1; opacity: .5;
                     transition: opacity .4s; white-space: nowrap; }
.ruler-labels span.on { opacity: 1; }
.ruler-dot { position: absolute; bottom: -4px; left: 0; width: 9px; height: 9px; margin-left: -4px; border-radius: 50%; background: var(--glut); }
@media (max-width: 700px) { .ruler-labels span { font-size: 0; padding: 0; } .ruler-labels span.on { font-size: 10px; padding-left: 6px; } }
.scroll-cue { position: absolute; right: var(--pad); bottom: 70px; color: rgba(243,241,236,.7); transition: opacity .6s; }
.scroll-cue::after { content: ""; display: block; width: 1px; height: 40px; margin: 10px auto 0; background: currentColor; animation: cue 2s var(--ease-io) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------------------------------------------------------------- Intro */
.facts { display: grid; border-top: 1px solid var(--fuge); }
.facts div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--fuge); }
.facts dt { color: var(--beton); } .facts dd { text-transform: none; letter-spacing: .02em; }
.statement { font-family: var(--serif); font-size: clamp(2rem, 1.2rem + 2.4vw, 3.6rem); line-height: 1.12; letter-spacing: -.01em; }
.figures { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(4rem, 8vw, 8rem); border-top: 1px solid var(--fuge); }
.figure { padding: 28px 24px 0 0; border-right: 1px solid var(--fuge); }
.figure:last-child { border-right: 0; }
.figure + .figure { padding-left: 24px; }
.figure .num { font-family: var(--serif); font-size: clamp(3rem, 2rem + 4vw, 6rem); line-height: 1; margin-bottom: 14px; }
.figure .mono { color: var(--beton); }
@media (max-width: 800px) { .figures { grid-template-columns: 1fr 1fr; } .figure { border-right: 0; padding: 24px 0 24px; border-bottom: 1px solid var(--fuge); } .figure + .figure { padding-left: 0; } }

/* ---------------------------------------------------------------- Bild-Reveal + Schnittmarken */
.crop { position: relative; }
.crop::before, .crop::after { content: ""; position: absolute; width: 14px; height: 14px; z-index: 3; pointer-events: none; border-color: var(--graphit); border-style: solid; opacity: .6; }
.crop::before { top: -8px; left: -8px; border-width: 1px 0 0 1px; }
.crop::after { bottom: -8px; right: -8px; border-width: 0 1px 1px 0; }
.reveal-img { clip-path: inset(10% 10% 10% 10%); transition: clip-path 1.4s var(--ease-out); }
.reveal-img img { transform: scale(1.15); transition: transform 1.6s var(--ease-out); }
.reveal-img.in { clip-path: inset(0); }
.reveal-img.in img { transform: scale(1); }

/* ---------------------------------------------------------------- Vorher / Nachher */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .compare-grid { grid-template-columns: 1fr; } }
.ba { --x: 50%; aspect-ratio: 16 / 10; overflow: visible; user-select: none; touch-action: pan-y; cursor: ew-resize; }
.ba > img, .ba-after { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba img { width: 100%; height: 100%; object-fit: cover; }
.ba-after { clip-path: inset(0 0 0 var(--x)); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 1px; background: var(--kalk); z-index: 2; outline: none; }
.ba-handle span { position: absolute; top: 50%; left: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--kalk);
                  box-shadow: 0 0 0 6px rgba(243,241,236,.25); transition: transform .4s var(--ease-out); }
.ba-handle:focus-visible span, .ba:hover .ba-handle span { transform: scale(1.25); }
.ba figcaption { position: absolute; left: 0; right: 0; bottom: -34px; display: flex; justify-content: space-between; color: var(--beton); }

/* ---------------------------------------------------------------- Leistungen */
.services { border-top: 1px solid var(--fuge); }
.services-aside .sticky { position: sticky; top: 18vh; display: grid; gap: 18px; }
.services-num { font-family: var(--serif); font-size: clamp(6rem, 4rem + 8vw, 14rem); line-height: .85; letter-spacing: -.03em; }
.services-num small { font-size: .2em; letter-spacing: 0; margin-left: .3em; color: var(--beton); }
.services-cap { color: var(--beton); min-height: 3em; }
.services-bar { height: 1px; background: var(--fuge); }
.services-bar span { display: block; height: 100%; width: 20%; background: var(--glut); transition: width .8s var(--ease-out); }
.services-list { display: grid; gap: clamp(5rem, 10vw, 10rem); }
.svc-img { aspect-ratio: 16 / 10; margin-bottom: 28px; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; }
.svc h3 { margin-bottom: 14px; }
.svc p { max-width: 38em; color: #45423D; }
.spec { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; color: var(--beton); }
.spec li::before { content: "+ "; color: var(--glut); }
@media (max-width: 900px) { .services-aside .sticky { position: static; } .services-num { display: none; } }

/* ---------------------------------------------------------------- Prinzipien */
.principles { background: var(--putz); }
.principles-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--fuge); }
.pr { padding: 28px 28px 0 0; border-right: 1px solid var(--fuge); display: grid; gap: 14px; align-content: start; }
.pr + .pr { padding-left: 28px; } .pr:last-child { border-right: 0; }
.pr .mono { color: var(--glut-text); }
.pr h3 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1.1; }
.pr p { color: #45423D; font-size: 1rem; }
@media (max-width: 900px) { .principles-grid { grid-template-columns: 1fr; } .pr, .pr + .pr { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--fuge); } }

/* ---------------------------------------------------------------- Ablauf */
.process { background: var(--nacht); color: var(--kalk); position: relative; }
.process-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; padding: 120px 0 48px; }
.process-head { display: grid; gap: 14px; }
.process-track { display: flex; gap: 0; align-items: stretch; padding: 56px var(--pad) 0; will-change: transform; }
.step { flex: 0 0 min(78vw, 520px); padding: 28px 40px 0 0; margin-right: 40px; border-top: 1px solid var(--line-dark); display: grid; gap: 16px; align-content: start; }
.step .mono { color: var(--glut); }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 1.6rem + 2vw, 4rem); line-height: 1; }
.step p { color: rgba(243,241,236,.72); max-width: 26em; }
.step .see { color: rgba(243,241,236,.5); }
.process-progress { height: 1px; }
.process-progress::before { content: ""; display: block; height: 1px; background: var(--line-dark); }
.process-progress span { display: block; height: 1px; margin-top: -1px; width: 0; background: var(--glut); }
@media (max-width: 760px) {
  .process-pin { position: static; height: auto; padding: var(--section) 0; }
  .process-track { flex-direction: column; transform: none !important; }
  .step { flex: none; margin: 0 0 40px; padding-right: 0; }
  .process-progress { display: none; }
}

/* ---------------------------------------------------------------- Projekte */
.index { list-style: none; border-top: 1px solid var(--graphit); }
.index li { display: grid; grid-template-columns: 5em 2fr 1fr 1.6fr 1fr 5em; gap: 16px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--fuge); }
.index-head { color: var(--beton); padding: 12px 0 !important; }
.index li.row { display: block; padding: 0; }
.row > a { display: grid; grid-template-columns: 5em 2fr 1fr 1.6fr 1fr 5em; gap: 16px; align-items: baseline; padding: 22px 0;
           transition: padding .6s var(--ease-out), color .4s; }
.row .name { font-family: var(--serif); font-size: clamp(1.6rem, 1rem + 1.5vw, 2.6rem); line-height: 1; }
.row .name small { display: block; margin-top: 8px; color: var(--beton); font-size: .7rem; }
.row .arrow { justify-self: end; transition: transform .6s var(--ease-out); }
.row:hover > a { padding-left: 16px; color: var(--glut-text); }
.row:hover .arrow { transform: translateX(6px); }
@media (max-width: 800px) {
  .index li, .row > a { grid-template-columns: 3.5em 1fr auto; }
  .index li > :nth-child(3), .index li > :nth-child(4), .index li > :nth-child(6),
  .row > a > :nth-child(3), .row > a > :nth-child(4), .row > a > :nth-child(6) { display: none; }
}
.cursor-img { position: fixed; top: 0; left: 0; z-index: 30; width: 340px; aspect-ratio: 4 / 3; pointer-events: none; overflow: hidden;
              clip-path: inset(50% 50% 50% 50%); transition: clip-path .7s var(--ease-out); }
.cursor-img.on { clip-path: inset(0); }
.cursor-img img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .cursor-img { display: none; } }

/* ---------------------------------------------------------------- Logos */
.logos { padding: 0 0 var(--section); }
.logos .wrap:first-child { border-top: 1px solid var(--fuge); padding-top: 28px; }
.marquee { overflow: hidden; margin: 40px 0 24px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.logo-ph { flex: 0 0 auto; width: 180px; height: 64px; margin-right: 24px; display: grid; place-items: center; border: 1px dashed var(--fuge);
           font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--beton); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- Kontakt */
.contact { background: var(--nacht); color: var(--kalk); }
.segments { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); }
.seg { display: grid; gap: 18px; align-content: space-between; min-height: 300px; padding: 28px 28px 32px 0; border-right: 1px solid var(--line-dark); position: relative; }
.seg + .seg { padding-left: 28px; } .seg:last-child { border-right: 0; }
.seg .mono { color: rgba(243,241,236,.55); }
.seg h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 1.2rem + 1vw, 2.4rem); line-height: 1.08; }
.seg-cta { display: inline-flex; gap: .5em; align-items: center; font-size: .95rem; }
.seg-cta i { font-style: normal; transition: transform .6s var(--ease-out); }
.seg::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--glut); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease-out); }
.seg + .seg::after { left: 28px; }
.seg:hover::after { transform: scaleX(1); }
.seg:hover .seg-cta i { transform: translateX(8px); }
@media (max-width: 900px) { .segments { grid-template-columns: 1fr; } .seg, .seg + .seg { min-height: 0; padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line-dark); } .seg + .seg::after { left: 0; } }
.person { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: end; margin-top: clamp(4rem, 8vw, 8rem); }
.person-photo { aspect-ratio: 4 / 5; background: #23221F; display: grid; place-items: center; text-align: center; padding: 12px; font-size: .8rem; }
.person-name { font-family: var(--serif); font-size: clamp(2rem, 1.4rem + 1.6vw, 3.2rem); line-height: 1.05; margin: 10px 0 6px; }
.person-role { color: rgba(243,241,236,.55); }
.person-links { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 22px; font-size: 1.1rem; }
.magnet { display: inline-block; border-bottom: 1px solid var(--line-dark); padding-bottom: 4px; transition: border-color .4s; }
.magnet:hover { border-color: var(--glut); }
@media (max-width: 600px) { .person { grid-template-columns: 1fr; } .person-photo { max-width: 220px; } }
.private { margin-top: 56px; color: rgba(243,241,236,.55); }
.private a:hover { color: var(--kalk); }

/* ---------------------------------------------------------------- Footer */
footer { background: var(--nacht); color: var(--kalk); padding: 56px 0 24px; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-grid > div { display: grid; gap: 6px; align-content: start; }
.footer-grid > div:last-child { justify-items: end; }
.f-label { color: rgba(243,241,236,.45); }
.footer-mark { font-weight: 600; letter-spacing: .02em; line-height: .8; font-size: 22.5vw; text-align: center; margin: 48px 0 32px; color: #1F1E1B; user-select: none; }
.footer-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: rgba(243,241,236,.45); }
.footer-legal a:hover { color: var(--kalk); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:last-child { justify-items: start; } }

/* ---------------------------------------------------------------- Debug */
#hud { position: fixed; bottom: 10px; left: 10px; z-index: 99; font: 12px/1.4 ui-monospace, monospace; color: #fff;
       background: rgba(0,0,0,.65); padding: 6px 8px; border-radius: 4px; display: none; white-space: pre; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .w > span { transform: none !important; }
  .reveal-img { clip-path: none !important; } .reveal-img img { transform: none !important; }
}
.process-pin { grid-template-columns: minmax(0, 1fr); }
#nav.past[data-theme="dark"] { background: rgba(21, 21, 19, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
html { overflow-x: clip; }
.process-pin > .wrap { width: 100%; }

/* ================================================================ Inhalte von eronik.ch */
.viz-note { position: absolute; top: 76px; right: var(--pad); color: rgba(243,241,236,.5); font-size: 10px; }
.intro-text { margin-top: 28px; max-width: 38em; color: #45423D; font-size: 1.1rem; }
.facts a { border-bottom: 1px solid var(--fuge); }
a.figure { display: block; transition: background .5s var(--ease-out); }
a.figure:hover { background: var(--putz); }
.figure .mono span { color: var(--glut-text); }
.figure .num { white-space: nowrap; }

.real-case { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: end; margin-top: 96px; padding-top: 28px; border-top: 1px solid var(--fuge); }
.real-case-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.real-case-imgs figure { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.real-case-imgs img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.real-case:hover img { transform: scale(1.04); }
.real-case-imgs figcaption { position: absolute; left: 8px; bottom: 8px; background: var(--kalk); padding: 2px 6px; }
.real-case-text { display: grid; gap: 14px; }
.real-case-text p { color: #45423D; }
.link { color: var(--glut-text); }
@media (max-width: 900px) { .real-case { grid-template-columns: 1fr; } }

.all-services { list-style: none; margin-top: 28px; color: var(--beton); display: grid; gap: 6px; }
.all-services li::before { content: "— "; color: var(--fuge); }
.refs.mono, p.refs { margin-top: 16px; color: var(--beton); }
p.refs a { color: var(--graphit); border-bottom: 1px solid var(--fuge); transition: border-color .3s; }
p.refs a:hover { border-color: var(--glut); }

.more { margin-top: 40px; }
.btn-dark { color: var(--graphit); }
.btn-dark:hover { background: var(--graphit); color: var(--kalk); border-color: var(--graphit); }

.logos .marquee { background: #fff; border-top: 1px solid var(--fuge); border-bottom: 1px solid var(--fuge); padding: 28px 0; }
.marquee-track .logo { flex: 0 0 auto; width: 190px; height: 72px; margin-right: 48px; display: grid; place-items: center; }
.marquee-track .logo img { max-width: 160px; max-height: 64px; object-fit: contain; filter: grayscale(1) contrast(1.05); opacity: .8; transition: filter .4s, opacity .4s; }
.marquee-track .logo:hover img { filter: none; opacity: 1; }

.direct { margin-top: clamp(4rem, 8vw, 8rem); display: grid; gap: 20px; }
.direct .mono { color: rgba(243,241,236,.55); }
.direct-links { display: flex; flex-wrap: wrap; gap: 12px 56px; }
.big-link { font-family: var(--serif); font-size: clamp(2.2rem, 1.4rem + 3vw, 4.6rem); line-height: 1.05; border-bottom: 1px solid var(--line-dark); transition: border-color .4s, color .4s; }
.big-link:hover { border-color: var(--glut); color: #F1C6A5; }

/* ---------------------------------------------------------------- Unterseiten */
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.page-head { padding: clamp(9rem, 16vw, 14rem) 0 clamp(3rem, 6vw, 5rem); }
.page-head .wrap { display: grid; gap: 22px; max-width: 1300px; margin-left: 0; }
.page-lead { max-width: 36em; color: #45423D; font-size: 1.15rem; }

.filters { display: grid; gap: 14px; padding: 24px 0; border-top: 1px solid var(--graphit); border-bottom: 1px solid var(--fuge); margin-bottom: 40px; }
.filter-row { display: grid; grid-template-columns: 8em 1fr; gap: 12px; align-items: start; }
.f-name { color: var(--beton); padding-top: 7px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: .9rem; padding: .35em .9em; border: 1px solid var(--fuge); border-radius: 999px; background: transparent; color: var(--graphit); cursor: pointer; transition: all .3s; }
.chip:hover { border-color: var(--graphit); }
.chip[aria-pressed="true"] { background: var(--graphit); color: var(--kalk); border-color: var(--graphit); }
.filter-meta { grid-template-columns: 1fr auto; align-items: center; color: var(--beton); }
.view-toggle button { font: inherit; background: none; border: 0; color: var(--beton); cursor: pointer; padding: 4px 0 4px 16px; }
.view-toggle button[aria-pressed="true"] { color: var(--graphit); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 700px) { .filter-row { grid-template-columns: 1fr; } .f-name { padding: 0; } }

.refs[data-view="grid"] { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 28px; padding-bottom: var(--section); }
@media (max-width: 1100px) { .refs[data-view="grid"] { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .refs[data-view="grid"] { grid-template-columns: 1fr; } }
.ref { display: grid; gap: 16px; align-content: start; }
.ref-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--putz); }
.ref-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.ref:hover .ref-img img { transform: scale(1.05); }
.ref-img.none { display: grid; place-items: center; text-align: center; padding: 16px; color: var(--beton);
                background: repeating-linear-gradient(135deg, var(--putz) 0 14px, #E2DDD3 14px 15px); }
.badge { position: absolute; top: 10px; left: 10px; background: var(--glut); color: #fff; padding: 3px 8px; }
.ref-meta { display: grid; gap: 6px; }
.ref-client { color: var(--glut-text); }
.ref h3 { font-family: var(--serif); font-weight: 400; font-size: 1.65rem; line-height: 1.08; transition: color .3s; }
.ref:hover h3 { color: var(--glut-text); }
.ref-sub, .ref-metric { color: var(--beton); }
.ref-metric::before { content: "↳ "; color: var(--glut); }
.refs[data-view="list"] { border-top: 1px solid var(--graphit); padding-bottom: var(--section); }
.refs[data-view="list"] .ref { grid-template-columns: 120px 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--fuge); align-items: center; }
.refs[data-view="list"] .ref-img { aspect-ratio: 3 / 2; }
.refs[data-view="list"] .ref-img.none span { font-size: 9px; }
.refs[data-view="list"] .ref-meta { grid-template-columns: 1.2fr 2fr 1.4fr 1fr; align-items: baseline; gap: 16px; }
.refs[data-view="list"] .ref h3 { font-size: 1.35rem; }
@media (max-width: 800px) { .refs[data-view="list"] .ref-meta { grid-template-columns: 1fr; gap: 4px; } .refs[data-view="list"] .ref { grid-template-columns: 90px 1fr; } }
.empty { color: var(--beton); padding: 40px 0; }

#detail { position: fixed; inset: 0; z-index: 60; background: rgba(21,21,19,0); transition: background .5s var(--ease-out); }
#detail.open { background: rgba(21,21,19,.55); }
.detail-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(920px, 100%); background: var(--kalk); overflow-y: auto; overscroll-behavior: contain;
                padding: 72px clamp(20px, 5vw, 64px) 64px; transform: translateX(100%); transition: transform .7s var(--ease-io); outline: none; }
#detail.open .detail-panel { transform: none; }
.detail-close { position: sticky; top: 0; float: right; margin: -48px 0 0; background: var(--kalk); border: 1px solid var(--fuge); border-radius: 999px; padding: 8px 14px; cursor: pointer; color: var(--graphit); z-index: 2; }
.detail-close:hover { border-color: var(--graphit); }
.detail-body { display: grid; gap: 22px; }
.d-facts { margin-top: 8px; }
.d-lead { font-family: var(--serif); font-size: clamp(1.5rem, 1.1rem + 1vw, 2.1rem); line-height: 1.2; }
.d-items { flex-direction: column; color: #45423D; font-family: var(--sans); font-size: 1rem; letter-spacing: 0; text-transform: none; }
.d-result { color: #45423D; border-left: 2px solid var(--glut); padding-left: 16px; }
.g-phase { margin-top: 12px; color: var(--glut-text); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--putz); }
.gallery img:first-child:nth-last-child(odd) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
body.detail-open { overflow: hidden; }

.cta-mini .direct-links { margin-top: 40px; }

.legal-body { padding-bottom: var(--section); }
.prose { max-width: 46em; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; line-height: 1.15; margin: 2.2em 0 .6em; }
.prose p, .prose li { color: #3B3934; }
.prose p + p { margin-top: .8em; }
.prose ul { margin: .6em 0 1em 1.2em; }
.prose li { margin: .3em 0; }
.prose a { color: var(--glut-text); border-bottom: 1px solid currentColor; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.prose th, .prose td { text-align: left; padding: 10px 8px 10px 0; border-bottom: 1px solid var(--fuge); vertical-align: top; }
.prose th { color: var(--beton); font-weight: 400; }
