/* ==========================================================================
   MALERWERK — design tokens
   ========================================================================== */
:root{
  --color-white:#ffffff;
  --color-offwhite:#f4f3ef;
  --color-hairline:#e2ded3;
  --color-ink:#1c1b1a;
  --color-anthracite:#4b4944;
  --color-anthracite-soft:#7a766e;
  --color-orange:#ff5a1f;
  --color-orange-deep:#e8480a;
  --color-orange-tint:rgba(255,90,31,.10);

  /* Google Fonts only load once allowed (see consent.js), so both stacks
     carry a full set of system fallbacks rather than ending in plain sans. */
  --font-display:'Bricolage Grotesque', 'Inter', -apple-system, BlinkMacSystemFont,
                 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-body:'Inter', -apple-system, BlinkMacSystemFont,
              'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 2.75rem;
  --space-5: 4.5rem;
  --space-6: 7rem;
  --space-7: 10rem;

  --container-pad: clamp(1.25rem, 4vw, 4rem);
  --ease-out: cubic-bezier(.16,.8,.24,1);
  --ease-inout: cubic-bezier(.65,0,.35,1);

  --header-h: 84px;
}

*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:auto; }

body{
  margin:0;
  background:var(--color-offwhite);
  color:var(--color-ink);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img{ max-width:100%; display:block; }
/* A class with an explicit display beats the UA rule for [hidden], so make it
   win — otherwise elements toggled via the attribute stay on screen. */
[hidden]{ display:none !important; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer; padding:0; }
ul, ol{ margin:0; padding:0; list-style:none; }
h1,h2,h3,p{ margin:0; }

/* Body scroll lock while language gate is open */
body.no-scroll{ overflow:hidden; height:100%; }

.skip-link{
  position:absolute; left:-999px; top:0; z-index:1000;
  background:var(--color-ink); color:var(--color-white);
  padding:.8em 1.2em; font-family:var(--font-body); font-size:.9rem;
}
.skip-link:focus{ left:var(--space-2); top:var(--space-2); }

:focus-visible{ outline:2px solid var(--color-orange); outline-offset:3px; }

.eyebrow{
  font-family:var(--font-body);
  font-weight:600;
  font-size:.78rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--color-orange-deep);
  margin-bottom:var(--space-2);
  display:block;
}
.eyebrow--light{ color:var(--color-orange); }

.btn{
  display:inline-flex; align-items:center; gap:.6em;
  font-family:var(--font-body); font-weight:600; font-size:1rem;
  padding:1em 2em; border-radius:999px;
  transition:transform .35s var(--ease-out), background-color .35s var(--ease-out);
}
.btn--primary{
  background:var(--color-ink); color:var(--color-white);
}
.btn--primary:hover{ background:var(--color-orange-deep); transform:translateY(-2px); }

/* ==========================================================================
   Language gate
   ========================================================================== */
.lang-gate{
  position:fixed; inset:0; z-index:900;
  display:flex; align-items:center; justify-content:center;
  background:var(--color-ink);
  color:var(--color-offwhite);
}
html.lang-known .lang-gate{ display:none; }

.lang-gate__wipe{
  position:absolute; inset:0;
  background:var(--color-orange);
  transform-origin:bottom;
  pointer-events:none;
  opacity:0;
}
.lang-gate.is-leaving .lang-gate__wipe{
  animation: gateWipe .95s var(--ease-inout) forwards;
}
@keyframes gateWipe{
  0%{ opacity:1; clip-path: inset(100% 0 0 0); }
  55%{ opacity:1; clip-path: inset(0 0 0 0); }
  100%{ opacity:1; clip-path: inset(0 0 100% 0); }
}
.lang-gate.is-leaving{
  animation: gateFadeOut .95s var(--ease-inout) forwards;
  animation-delay:.5s;
  pointer-events:none;
}
@keyframes gateFadeOut{ to{ opacity:0; visibility:hidden; } }

.lang-gate__inner{
  text-align:center;
  padding:var(--space-2);
  transition:opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.lang-gate.is-leaving .lang-gate__inner{ opacity:0; transform:scale(.97); }

.lang-gate__logo{
  /* Die Vorlage ist 1100 px breit. Bei 540 px Anzeige braucht ein Retina-
     Display 1080 px — also praktisch die volle Auflösung und damit die
     größtmögliche Darstellung, die noch scharf bleibt. Mehr ginge nur mit
     einer höher aufgelösten Logodatei. */
  width:min(540px, 82vw);
  height:auto;
  margin:0 0 var(--space-5);
}
.lang-gate__hint{
  font-size:.85rem;
  color:var(--color-anthracite-soft);
  margin:0 0 var(--space-3);
  letter-spacing:.02em;
}
.lang-gate__choices{
  display:flex; gap:var(--space-2); justify-content:center; flex-wrap:wrap;
}
.lang-gate__choice{
  border:1px solid rgba(244,243,239,.25);
  padding:1.1em 2.2em;
  border-radius:999px;
  font-family:var(--font-display);
  font-weight:600;
  font-size:1.05rem;
  letter-spacing:.06em;
  transition:background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out), transform .3s var(--ease-out);
}
.lang-gate__choice:hover, .lang-gate__choice:focus-visible{
  background:var(--color-orange);
  border-color:var(--color-orange);
  color:var(--color-ink);
  transform:translateY(-2px);
}

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:200;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 var(--container-pad);
  height:var(--header-h);
  color:var(--color-white);
  transition:background-color .4s var(--ease-out), color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.site-header.is-solid{
  background:rgba(244,243,239,.92);
  backdrop-filter:blur(10px);
  color:var(--color-ink);
  box-shadow:0 1px 0 var(--color-hairline);
}
.site-header__brand{
  display:flex; align-items:center; gap:.65em;
}
.site-header__brand img{
  height:38px; width:auto;
}
.site-header__brand-text{
  display:flex; flex-direction:column; gap:.15em; line-height:1;
}
.site-header__brand-kicker{
  font-family:var(--font-body); font-weight:600;
  font-size:.6rem; letter-spacing:.12em; text-transform:uppercase;
  opacity:.65;
}
.site-header__brand-name{
  font-family:var(--font-display); font-weight:700; font-size:1.05rem; letter-spacing:.01em;
}
.site-header__nav{
  display:flex; gap:var(--space-4);
  font-size:.92rem; font-weight:500;
}
.site-header__nav a{
  position:relative; padding:.3em 0;
}
.site-header__nav a::after{
  content:''; position:absolute; left:0; right:100%; bottom:0; height:2px;
  background:var(--color-orange);
  transition:right .35s var(--ease-out);
}
.site-header__nav a:hover::after{ right:0; }

.site-header__actions{ display:flex; align-items:center; gap:var(--space-3); }

.lang-switch{
  font-family:var(--font-body); font-weight:600; font-size:.85rem; letter-spacing:.04em;
  display:flex; align-items:center; gap:.35em;
  border:1px solid currentColor; border-radius:999px; padding:.5em 1em;
  opacity:.9;
}
.lang-switch:hover{ opacity:1; border-color:var(--color-orange); color:var(--color-orange); }
[data-lang-current]{ opacity:1; }
[data-lang-other]{ opacity:.5; }
.lang-switch__sep{ opacity:.4; }

.nav-toggle{
  display:none;
  width:32px; height:22px; position:relative;
}
.nav-toggle span{
  position:absolute; left:0; right:0; height:2px; background:currentColor;
  transition:transform .3s var(--ease-out), opacity .3s var(--ease-out);
}
.nav-toggle span:first-child{ top:0; }
.nav-toggle span:last-child{ bottom:0; }
.nav-toggle[aria-expanded="true"] span:first-child{ transform:translateY(10px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child{ transform:translateY(-10px) rotate(-45deg); }

.mobile-nav{
  position:fixed; inset:0; z-index:190;
  background:var(--color-ink); color:var(--color-offwhite);
  display:flex; align-items:center; justify-content:center;
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .4s var(--ease-out), visibility .4s;
}
.mobile-nav.is-open{ opacity:1; visibility:visible; pointer-events:auto; }
.mobile-nav nav{ display:flex; flex-direction:column; gap:var(--space-3); text-align:center; }
.mobile-nav a{ font-family:var(--font-display); font-size:1.8rem; font-weight:600; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  position:relative;
  height:100svh; min-height:560px;
  display:flex; flex-direction:column; justify-content:flex-end;
  overflow:hidden;
  color:var(--color-white);
}
.hero__media{
  position:absolute; inset:0;
  background:
    radial-gradient(ellipse 70% 60% at 25% 78%, rgba(255,90,31,.32), transparent 60%),
    linear-gradient(155deg, #2c2a25 0%, #201f1d 55%, #141312 100%);
}
.hero__scrim{
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(20,19,18,.15) 0%, rgba(20,19,18,.05) 35%, rgba(20,19,18,.75) 100%);
}
.hero__content{
  position:relative; z-index:2;
  padding:0 var(--container-pad) var(--space-6);
}
.hero__headline{
  font-family:var(--font-display); font-weight:700;
  font-size:clamp(2.6rem, 8vw, 6.2rem);
  line-height:.98; letter-spacing:-.01em;
  display:flex; flex-direction:column;
  margin-bottom:var(--space-4);
}
.hero__headline span{ overflow:hidden; }
.hero__scroll-cue{
  position:absolute; left:var(--container-pad); bottom:var(--space-3); z-index:2;
  display:flex; flex-direction:column; align-items:center; gap:.6em;
  font-size:.75rem; letter-spacing:.1em; text-transform:uppercase;
  color:var(--color-white); opacity:.85;
}

/* ==========================================================================
   Story — pinned paint reveal
   ========================================================================== */
.story{ position:relative; background:var(--color-offwhite); }
.story__pin{
  min-height:100svh;
  display:flex; flex-direction:column; align-items:flex-start; justify-content:center;
  /* Top padding keeps the headline clear of the fixed header — without it a
     short window pushed "Seit 2000." up underneath it. The bottom padding
     lifts the block into the upper half, freeing the lower part for the runs. */
  padding:calc(var(--header-h) + 3svh) var(--container-pad) 26svh;
  position:relative;
  overflow:hidden;
}

/* Paint is stroked onto a canvas so each pass keeps real bristle texture,
   ragged ends and uneven coverage — a clip-path can't fake that. */
.story__canvas{
  position:absolute; inset:0;
  width:100%; height:100%;
  z-index:0;
}
.story__content{
  position:relative; z-index:1;
  max-width:40rem;
  color:var(--color-ink);
  transition:color .5s var(--ease-out);
}
.story__content .eyebrow{ transition:color .5s var(--ease-out); }
.story__content.is-painted{ color:var(--color-white); }
.story__content.is-painted .eyebrow{ color:var(--color-white); opacity:.85; }
.story__headline{
  font-family:var(--font-display); font-weight:700;
  /* Bound by height as well as width: on a short window a purely width-based
     size made the block taller than the space it had. */
  font-size:clamp(2.8rem, min(13vw, 17svh), 10rem);
  line-height:.95; letter-spacing:-.01em;
  margin:0;
}
.story__text{
  max-width:34rem; margin-top:var(--space-4);
  font-size:clamp(1.05rem,2vw,1.3rem);
  opacity:0; transform:translateY(16px);
}

/* ==========================================================================
   Chronicle / timeline
   ========================================================================== */
.chronicle{
  padding:var(--space-6) var(--container-pad);
  background:var(--color-white);
}
.chronicle__list{ max-width:52rem; margin:0 auto; }
.chronicle__item{
  display:grid; grid-template-columns:minmax(7rem,1fr) 3fr;
  gap:var(--space-3) var(--space-4);
  padding:var(--space-4) 0;
  border-top:1px solid var(--color-hairline);
  opacity:0; transform:translateY(28px);
}
.chronicle__item:last-child{ border-bottom:1px solid var(--color-hairline); }
.chronicle__year{
  font-family:var(--font-display); font-weight:700;
  font-size:clamp(1.6rem, 3.6vw, 2.4rem);
  color:var(--color-anthracite-soft);
}
.chronicle__year--accent{ color:var(--color-orange-deep); }
.chronicle__body h3{
  font-family:var(--font-display); font-weight:600;
  font-size:clamp(1.3rem, 2.6vw, 1.8rem);
  margin-bottom:.5em;
}
.chronicle__body p{
  color:var(--color-anthracite); max-width:32rem;
  font-size:1.02rem;
}

/* ==========================================================================
   Work / gallery
   ========================================================================== */
.work{ padding:var(--space-6) 0; background:var(--color-offwhite); }
.work__intro{ padding:0 var(--container-pad); max-width:44rem; margin-bottom:var(--space-6); }
.work__intro h2{
  font-family:var(--font-display); font-weight:700;
  font-size:clamp(2rem, 4.4vw, 3.2rem); line-height:1.05; letter-spacing:-.01em;
}

/* Projects — one horizontal gallery for all of them ---------------------- */
.work__gallery-wrap{
  margin:0 0 var(--space-6);
  opacity:0; transform:translateY(28px);
}

.work__gallery{
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  cursor:grab;
}
.work__gallery::-webkit-scrollbar{ display:none; }
.work__gallery.is-dragging{ cursor:grabbing; scroll-snap-type:none; }
.work__gallery:focus-visible{ outline:2px solid var(--color-orange); outline-offset:4px; }

.work__gallery-track{
  display:flex;
  align-items:flex-start;
  gap:clamp(1rem, 3vw, 3rem);
  padding:0 var(--container-pad);
  width:max-content;
}

.work__slide{
  flex:0 0 min(74vw, 880px);
  margin:0;
  scroll-snap-align:center;
}
.work__slide-media{
  aspect-ratio:16/10;
  overflow:hidden;
  background:var(--color-hairline);
}
.work__slide-media img{
  width:100%; height:100%; object-fit:cover;
  /* Stops a drag from becoming the browser's own image drag. */
  -webkit-user-drag:none; user-select:none; pointer-events:none;
}

.work__caption{
  display:flex; flex-direction:column; gap:.25em;
  padding-top:var(--space-4);
  max-width:36rem;
}
.work__caption-title{
  font-family:var(--font-display); font-weight:600;
  font-size:clamp(1.1rem, 2.2vw, 1.5rem);
  color:var(--color-ink);
}
.work__caption-meta{
  font-size:.82rem; letter-spacing:.1em; text-transform:uppercase;
  color:var(--color-anthracite-soft);
}
.work__caption-text{
  margin-top:.6em;
  color:var(--color-anthracite);
  font-size:1.02rem;
}

.work__slider-hint{
  display:inline-flex; align-items:center; gap:.6em;
  margin:var(--space-3) 0 0 var(--container-pad);
  font-size:.75rem; letter-spacing:.12em; text-transform:uppercase;
  color:var(--color-anthracite-soft);
  transition:opacity .4s var(--ease-out);
}
.work__slider-hint.is-hidden{ opacity:0; }

.work__detail{
  margin:0 0 var(--space-6);
  padding:0 var(--container-pad);
  display:flex; justify-content:flex-end;
}
.work__detail-frame{
  width:min(560px, 78vw); aspect-ratio:4/5; overflow:hidden;
  clip-path:inset(0 0 0 100%);
}
.work__detail figcaption{ padding-top:var(--space-2); text-align:right; color:var(--color-anthracite-soft); font-size:.9rem; }

.work__compare{ padding:0 var(--container-pad); max-width:44rem; margin:0 auto; }
.work__compare-frame{
  position:relative; width:100%; aspect-ratio:3/4; overflow:hidden; border-radius:2px;
  cursor:ew-resize;
}
.work__compare-after{ position:absolute; inset:0; }
.work__compare-after img{ width:100%; height:100%; object-fit:cover; display:block; }
.work__compare-before{
  position:absolute; inset:0; width:50%; overflow:hidden;
}
.work__compare-before img{ position:absolute; top:0; left:0; width:auto; height:100%; max-width:none; object-fit:cover; }

.work__compare{ padding:0 var(--container-pad); max-width:44rem; margin:0 auto; }
.work__compare-frame{
  position:relative; width:100%; aspect-ratio:3/4; overflow:hidden; border-radius:2px;
  cursor:ew-resize;
}
.work__compare-after{ position:absolute; inset:0; }
.work__compare-after img{ width:100%; height:100%; object-fit:cover; display:block; }
.work__compare-before{
  position:absolute; inset:0; width:50%; overflow:hidden;
}
.work__compare-before img{ position:absolute; top:0; left:0; width:auto; height:100%; max-width:none; object-fit:cover; }

.work__compare-handle{
  position:absolute; top:0; bottom:0; left:50%; width:2px; background:var(--color-white);
  transform:translateX(-50%); pointer-events:none;
  box-shadow:0 0 0 1px rgba(0,0,0,.08);
}
.work__compare-handle::after{
  content:''; position:absolute; top:50%; left:50%; width:44px; height:44px; border-radius:50%;
  background:var(--color-white); transform:translate(-50%,-50%);
  box-shadow:0 6px 20px rgba(0,0,0,.18);
}
.work__compare-range{
  position:absolute; inset:0; width:100%; height:100%; margin:0;
  opacity:0; cursor:ew-resize; -webkit-appearance:none; appearance:none;
}
.work__compare-tags{
  display:flex; justify-content:space-between; margin-top:var(--space-2);
  font-size:.78rem; letter-spacing:.1em; text-transform:uppercase; color:var(--color-anthracite-soft);
}

/* ==========================================================================
   Services — typographic cluster, no cards
   ========================================================================== */
.services{ padding:var(--space-6) var(--container-pad); background:var(--color-ink); color:var(--color-offwhite); }
.services .eyebrow{ color:var(--color-orange); }
.services__lead{
  max-width:34rem; font-size:clamp(1.1rem,2.2vw,1.4rem); color:rgba(244,243,239,.7);
  margin-bottom:calc(var(--space-5) * 0.7);
}
.services__cluster{
  display:flex; flex-wrap:wrap; gap:.3em .9em;
  max-width:64rem;
}
.services__cluster span{
  font-family:var(--font-display); font-weight:600;
  font-size:clamp(1.5rem, 4.4vw, 3rem);
  line-height:1.3;
  background-image:linear-gradient(90deg, var(--color-orange), var(--color-orange));
  background-repeat:no-repeat; background-size:0% 2px; background-position:0 100%;
  padding-bottom:.08em;
  transition:background-size .5s var(--ease-out), color .5s var(--ease-out);
  cursor:default;
}
.services__cluster span.is-active{
  background-size:100% 2px;
  color:var(--color-orange);
}
@media (hover:hover) and (pointer:fine){
  .services__cluster span:hover{
    background-size:100% 2px;
    color:var(--color-white);
  }
}

/* ---- Services: click-to-reveal detail, siblings recede ---- */
.services__back-row{
  display:grid; grid-template-rows:0fr;
  transition:grid-template-rows .5s var(--ease-out);
}
.services__cluster-wrap.has-open .services__back-row{ grid-template-rows:1fr; }
.services__back-row-inner{ overflow:hidden; }
.services__back{
  display:inline-flex; align-items:center; gap:.45em;
  border:0; background:none; padding:0; margin:0 0 var(--space-2);
  font-family:var(--font-body); font-weight:600; font-size:.8rem;
  letter-spacing:.06em; text-transform:uppercase;
  color:rgba(244,243,239,.5); cursor:pointer;
  opacity:0; transform:translateX(-8px);
  transition:color .3s var(--ease-out), opacity .5s var(--ease-out) .1s, transform .5s var(--ease-out) .1s;
}
.services__cluster-wrap.has-open .services__back{ opacity:1; transform:translateX(0); }
.services__back:hover, .services__back:focus-visible{ color:var(--color-orange); }
.services__back svg{ flex:none; }

.services__term{
  flex:0 0 auto;
  transition:opacity .55s var(--ease-out), transform .55s var(--ease-out);
}
.services__term.is-open{ flex:1 1 100%; }
.services__cluster-wrap.has-open .services__term:not(.is-open){
  opacity:.32;
  transform:scale(.92) translateX(-3%);
}
.services__term-trigger{
  display:inline-block;
  border:0; background:none; padding:0; margin:0;
  font:inherit; color:inherit; text-align:left; cursor:pointer;
}
.services__term-trigger span{ cursor:pointer; }
.services__term-trigger:focus-visible{
  outline:2px solid var(--color-orange); outline-offset:6px; border-radius:2px;
}
.services__cluster .services__term.is-open > .services__term-trigger span{
  background-size:100% 2px;
  color:var(--color-orange);
}

.services__term-panel{
  display:grid; grid-template-rows:0fr;
  transition:grid-template-rows .6s var(--ease-out);
}
.services__term.is-open .services__term-panel{ grid-template-rows:1fr; }
.services__term-panel-inner{ overflow:hidden; }
.services__term-panel-inner p{
  font-family:var(--font-body); font-weight:400;
  font-size:clamp(1rem, 1.8vw, 1.15rem); line-height:1.6;
  color:rgba(244,243,239,.75);
  max-width:36rem;
  padding:.6em 0 .3em;
}

@media (prefers-reduced-motion: reduce){
  .services__term,
  .services__term-panel,
  .services__back-row,
  .services__back{ transition:none; }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact{
  padding:var(--space-6) var(--container-pad) var(--space-7);
  background:var(--color-offwhite);
  display:grid; grid-template-columns:1.1fr .9fr; gap:var(--space-6);
  align-items:start;
}
.contact__intro h2{
  font-family:var(--font-display); font-weight:700;
  font-size:clamp(2.2rem, 5.4vw, 4rem); line-height:1.04; letter-spacing:-.01em;
  margin-bottom:var(--space-4);
}
.contact__meta{ display:flex; flex-direction:column; gap:.6em; }
.contact__meta-item{
  font-family:var(--font-display); font-size:1.2rem; font-weight:600;
  border-bottom:1px solid transparent;
  width:max-content;
  transition:border-color .3s var(--ease-out), color .3s var(--ease-out);
}
.contact__meta-item:hover{ color:var(--color-orange-deep); border-color:currentColor; }
.contact__meta-name{
  display:inline-block;
  min-width:5.2em;
  font-family:var(--font-body); font-weight:600;
  font-size:.78rem; letter-spacing:.12em; text-transform:uppercase;
  color:var(--color-anthracite-soft);
}
.contact__meta-item--review{
  font-family:var(--font-body); font-size:.95rem; font-weight:600;
  color:var(--color-orange-deep); margin-top:.3em;
}

.contact__form-kicker{
  font-family:var(--font-display); font-weight:600;
  font-size:1.05rem; color:var(--color-ink);
  margin:0 0 var(--space-1);
}
.contact__form{ display:flex; flex-direction:column; gap:var(--space-3); }
.field, .field-row > .field{ display:flex; flex-direction:column; gap:.5em; }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:var(--space-3); }
.contact__form label{ font-size:.82rem; letter-spacing:.04em; color:var(--color-anthracite); }
.contact__form input, .contact__form textarea{
  font:inherit; font-size:1rem; padding:.7em .1em; background:transparent;
  border:none; border-bottom:1px solid var(--color-hairline);
  color:var(--color-ink);
  transition:border-color .3s var(--ease-out);
}
.contact__form input:focus, .contact__form textarea:focus{
  border-color:var(--color-orange); outline:none;
}
/* The native file input keeps all its behaviour and accessibility; only its
   button is restyled, via ::file-selector-button. */
.field--file input{
  border-bottom:1px dashed var(--color-hairline);
  font-size:.9rem;
  padding:.5em 0 .8em;
  color:var(--color-anthracite-soft);
  cursor:pointer;
}
.field--file input::file-selector-button{
  font-family:var(--font-body); font-weight:600;
  font-size:.82rem; letter-spacing:.04em;
  margin-right:1em;
  padding:.7em 1.3em;
  border:1px solid var(--color-ink); border-radius:999px;
  background:transparent; color:var(--color-ink);
  cursor:pointer;
  transition:background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.field--file input::file-selector-button:hover{
  background:var(--color-ink); color:var(--color-offwhite);
}
.field--file input:focus-visible::file-selector-button{
  border-color:var(--color-orange); color:var(--color-orange-deep);
}
.field-file-list{
  list-style:none; margin:.3em 0 0; padding:0;
  display:flex; flex-direction:column;
}
.field-file-list:empty{ display:none; }
.field-file-item{
  display:flex; align-items:center; justify-content:space-between; gap:.8em;
  font-size:.85rem; color:var(--color-anthracite);
  padding:.5em 0;
  border-bottom:1px solid var(--color-hairline);
}
.field-file-item span{
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.field-file-remove{
  flex:none; width:1.7em; height:1.7em;
  display:inline-flex; align-items:center; justify-content:center;
  border:0; background:none; padding:0; margin:0;
  color:var(--color-anthracite-soft);
  font-size:1.1rem; line-height:1; cursor:pointer;
  border-radius:50%;
  transition:color .3s var(--ease-out), background-color .3s var(--ease-out);
}
.field-file-remove:hover, .field-file-remove:focus-visible{
  color:var(--color-orange-deep); background:var(--color-orange-tint);
  outline:none;
}
.contact__form .btn{ align-self:flex-start; margin-top:var(--space-2); }
/* Honeypot — off screen rather than display:none, which some bots skip. */
.hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

.form-status{ font-size:.9rem; color:var(--color-orange-deep); min-height:1.2em; }
.form-status--ok{ color:#1f7a3d; }
.contact__form .btn[disabled]{ opacity:.55; pointer-events:none; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{
  padding:var(--space-5) var(--container-pad) var(--space-4);
  background:var(--color-ink); color:rgba(244,243,239,.6);
  display:flex; flex-wrap:wrap; gap:var(--space-2) var(--space-4);
  align-items:baseline; justify-content:space-between;
  font-size:.85rem;
}
.site-footer__brand{ display:flex; align-items:center; }
.site-footer__brand img{ height:auto; width:min(210px, 46vw); }
.site-footer__links{ display:flex; gap:var(--space-3); }
.site-footer__links a:hover{ color:var(--color-orange); }

/* ==========================================================================
   Reveal utility states (toggled by animations.js)
   ========================================================================== */
[data-reveal].is-visible,
.story__text.is-visible{
  opacity:1; transform:translateY(0);
  transition:opacity .8s var(--ease-out), transform .8s var(--ease-out);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width:960px){
  .site-header__nav{ display:none; }
  .nav-toggle{ display:block; }
  .contact{ grid-template-columns:1fr; gap:var(--space-5); }
  .field-row{ grid-template-columns:1fr; }
  .work__detail-frame{ width:100%; }
}

@media (min-width:961px){
}

@media (max-width:640px){
  :root{ --header-h:68px; }
  .hero__headline{ font-size:clamp(2.4rem, 11vw, 3.6rem); }
  .story__headline{ font-size:clamp(2.6rem, 16vw, 5rem); }
  .chronicle__item{ grid-template-columns:1fr; }
  /* Larger invisible tap area for tel:/mailto: links — same look, easier
     to hit precisely on a touchscreen. */
  .contact__meta-item{ padding:.3em 0; margin:-.3em 0; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
  .story__content.is-painted{ color:var(--color-white); }
  .work__detail-frame{ clip-path:none; }
  [data-reveal], .story__text{ opacity:1; transform:none; }
}

/* ==========================================================================
   Legal pages (Impressum, Datenschutz)
   ========================================================================== */
.legal{
  max-width:44rem;
  margin:0 auto;
  padding:calc(var(--header-h) + var(--space-5)) var(--container-pad) var(--space-6);
}
.legal h1{
  font-family:var(--font-display); font-weight:700;
  font-size:clamp(2rem, 5vw, 3.2rem); line-height:1.05; letter-spacing:-.01em;
  margin-bottom:var(--space-4);
}
.legal h2{
  font-family:var(--font-display); font-weight:600;
  font-size:clamp(1.15rem, 2.4vw, 1.5rem);
  margin:var(--space-4) 0 .6em;
}
.legal p{ color:var(--color-anthracite); margin-bottom:1em; }
.legal a{ border-bottom:1px solid var(--color-hairline); }
.legal a:hover{ color:var(--color-orange-deep); border-color:currentColor; }

.legal__list{ margin:0 0 var(--space-3); }
.legal__list dt{
  font-size:.78rem; letter-spacing:.12em; text-transform:uppercase;
  color:var(--color-anthracite-soft);
  margin-top:var(--space-2);
}
.legal__list dd{
  margin:.2em 0 0;
  font-size:1.05rem;
}
.legal__back{ margin-top:var(--space-5); }

/* ==========================================================================
   Consent banner
   ========================================================================== */
.consent{
  position:fixed; left:0; right:0; bottom:0; z-index:800;
  padding:var(--container-pad);
  transform:translateY(110%);
  transition:transform .5s var(--ease-out), opacity .4s var(--ease-out);
  pointer-events:none;
}
.consent.is-in{ transform:translateY(0); pointer-events:auto; }
.consent.is-leaving{ transform:translateY(110%); opacity:0; }

.consent__inner{
  max-width:56rem; margin:0 auto;
  background:var(--color-ink); color:rgba(244,243,239,.75);
  padding:var(--space-3);
  border-radius:4px;
  box-shadow:0 18px 50px rgba(0,0,0,.28);
}
.consent__title{
  font-family:var(--font-display); font-weight:600; font-size:1.05rem;
  color:var(--color-offwhite); margin-bottom:.4em;
}
.consent__text{ font-size:.9rem; line-height:1.55; max-width:46rem; }

.consent__options{
  display:flex; flex-direction:column; gap:var(--space-2);
  margin-top:var(--space-3); padding-top:var(--space-3);
  border-top:1px solid rgba(244,243,239,.14);
}
.consent__row{ display:flex; gap:.8em; align-items:flex-start; cursor:pointer; }
.consent__row input{ margin-top:.25em; accent-color:var(--color-orange); }
.consent__row input:disabled{ opacity:.5; }
.consent__row-name{
  display:block; color:var(--color-offwhite);
  font-size:.9rem; font-weight:600;
}
.consent__row-note{ display:block; font-size:.82rem; opacity:.7; }

.consent__actions{
  display:flex; flex-wrap:wrap; gap:.6em;
  margin-top:var(--space-3);
}
.consent__btn{
  font-family:var(--font-body); font-weight:600; font-size:.85rem;
  padding:.75em 1.4em; border-radius:999px;
  border:1px solid rgba(244,243,239,.3); color:var(--color-offwhite);
  transition:background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.consent__btn:hover{ border-color:var(--color-offwhite); }
.consent__btn--primary{
  background:var(--color-orange); border-color:var(--color-orange); color:var(--color-ink);
}
.consent__btn--primary:hover{ background:var(--color-orange-deep); border-color:var(--color-orange-deep); color:var(--color-offwhite); }

@media (max-width:560px){
  .consent__actions{ flex-direction:column; }
  .consent__btn{ width:100%; }
}

@media (prefers-reduced-motion: reduce){
  .consent{ transition:none; }
}
