/* ============================================================
   Zimmerei Diersing — modern editorial one-page site (v2)
   warm paper / deep charcoal · single wood accent · grain
   ============================================================ */

:root {
  --paper:    #f3efe7;   /* warm paper bg            */
  --paper-2:  #ebe5d9;   /* alt surface              */
  --ink:      #16130e;   /* primary text / dark band */
  --ink-2:    #1d1a14;   /* slightly lifted dark     */
  --soft:     #6b6358;   /* secondary text on paper  */
  --soft-d:   #a8a092;   /* secondary on dark        */
  --line:     #ddd5c7;
  --line-d:   rgba(255,255,255,.12);
  --accent:   #b56a24;   /* wood, brighter for pop   */
  --accent-2: #d59550;   /* accent on dark           */

  --maxw: 1280px;
  --pad: clamp(20px, 5vw, 80px);

  --disp: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-2: cubic-bezier(.65, 0, .35, 1);
}


/* ---------- skip-to-content ---------- */
.skip-link {
  position: absolute; top: -60px; left: 16px; z-index: 9999;
  background: var(--ink); color: var(--paper); padding: 12px 20px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 12px; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* film grain overlay */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(90px, 13vw, 180px); }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--disp); font-weight: 600; letter-spacing: -.02em; line-height: 1; text-wrap: balance; }

.eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 400;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 30px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); display: inline-block; }

.h-display { font-size: clamp(48px, 9vw, 132px); line-height: .92; letter-spacing: -.035em; }
.h-section { font-size: clamp(34px, 5.4vw, 76px); line-height: .98; letter-spacing: -.03em; }

.lead { font-size: clamp(18px, 1.9vw, 23px); line-height: 1.5; color: var(--soft); font-weight: 400; text-wrap: pretty; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--body); font-size: 16px; font-weight: 500;
  padding: 16px 30px; border-radius: 0;
  position: relative; overflow: hidden; cursor: pointer;
  border: 1px solid var(--ink); white-space: nowrap;
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.btn span { position: relative; z-index: 1; }
.btn::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateY(101%); transition: transform .45s var(--ease-2); z-index: 0; }
.btn:hover::after { transform: translateY(0); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary::after { background: var(--accent); transform: translateY(0); transition: background .4s var(--ease); }
.btn-primary:hover::after { background: var(--accent); }
.btn-primary:hover { border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: var(--paper); }
.btn-ghost:hover::after { transform: translateY(0); }

/* hero: white ghost button, fills black on hover */
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.75); }
.hero .btn-ghost::after { background: var(--ink); }
.hero .btn-ghost:hover { color: #fff; border-color: var(--ink); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); font-weight: 400; transition: gap .3s var(--ease), color .3s var(--ease);
}
.link-arrow:hover { gap: .85em; color: var(--ink); }
.link-arrow svg { width: 16px; height: 16px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: 76px;
  display: flex; align-items: center; color: var(--paper);
  transition: background .5s var(--ease), color .5s var(--ease), height .4s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.solid {
  background: rgba(243,239,231,.82);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  color: var(--ink); height: 64px; border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: flex; align-items: center; gap: 12px; min-height: 44px; padding-block: 4px; }
.nav-logo img { height: 36px; width: auto; filter: invert(1) brightness(2.4); transition: filter .5s var(--ease), height .4s var(--ease); }
.nav.solid .nav-logo img { filter: none; height: 32px; }
@media (max-width: 520px) { .nav-logo img { height: 28px; } }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links > a, .nav-drop > .nav-drop-label { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .82; transition: opacity .2s; white-space: nowrap; cursor: pointer; }
.nav-links > a:hover, .nav-drop:hover > .nav-drop-label { opacity: 1; }

/* Dropdown */
.nav-drop { position: relative; }
.nav-drop-label { display: inline-flex; align-items: center; gap: 5px; }
.nav-drop-label svg { width: 10px; height: 10px; transition: transform .3s var(--ease); }
.nav-drop:hover .nav-drop-label svg { transform: rotate(180deg); }
.nav-drop-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 220px; padding: 12px 0; margin-top: 16px;
  background: rgba(243,239,231,.96); border: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
  box-shadow: 0 12px 40px rgba(22,19,14,.14);
  opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  z-index: 110;
}
.nav-drop:hover .nav-drop-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
/* Solid nav dropdown — ensure it sits above everything */
.nav.solid .nav-drop-menu {
  background: rgba(243,239,231,.98); border-color: var(--line);
  box-shadow: 0 12px 40px rgba(22,19,14,.14);
}
.nav.solid .nav-drop-menu a { color: var(--ink); }
.nav.solid .nav-drop-menu a:hover { background: rgba(181,106,36,.08); color: var(--accent); }
.nav.solid .nav-drop-menu a .dm-sub { color: var(--soft); }
.nav-drop-menu::before {
  content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px;
}
.nav-drop-menu a {
  display: flex; align-items: center; gap: 12px; padding: 12px 22px;
  font-family: var(--body); font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none;
  color: var(--ink); opacity: 1; transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-drop-menu a:hover { background: rgba(181,106,36,.08); color: var(--accent); }
.nav-drop-menu a .dm-sub { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); margin-left: auto; }

/* Dark nav dropdown */
.nav.nav-dark .nav-drop-menu, .nav:not(.solid) .nav-drop-menu {
  background: rgba(22,19,14,.92); border-color: rgba(255,255,255,.1);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.nav:not(.solid) .nav-drop-menu a, .nav.nav-dark .nav-drop-menu a { color: rgba(243,239,231,.85); }
.nav:not(.solid) .nav-drop-menu a:hover, .nav.nav-dark .nav-drop-menu a:hover { background: rgba(181,106,36,.15); color: var(--accent-2); }
.nav:not(.solid) .nav-drop-menu a .dm-sub, .nav.nav-dark .nav-drop-menu a .dm-sub { color: var(--soft-d); }
.nav-cta {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  padding: 12px 22px; border: 1px solid currentColor; white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.nav-cta:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.nav-cta .cta-text { }
@media (max-width: 860px) {
  .nav-cta { padding: 10px; border: none; }
  .nav-cta .cta-text { display: none; }
  .nav-cta svg { width: 20px; height: 20px; }
}
/* Hamburger toggle */
.nav-burger { display: none; width: 44px; height: 44px; background: none; border: none; cursor: pointer; position: relative; z-index: 120; padding: 0; }
.nav-burger span { display: block; width: 22px; height: 1.5px; background: currentColor; margin: 0 auto; transition: transform .3s var(--ease), opacity .2s; }
.nav-burger span + span { margin-top: 6px; }
.nav-burger.open span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-3.75px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-burger { display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .nav-links {
    position: fixed; inset: 0; z-index: 115;
    background: rgba(243,239,231,.97); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  }
  .nav-links.open { opacity: 1; visibility: visible; }
  .nav-links > a, .nav-drop > .nav-drop-label { font-size: 16px; letter-spacing: .08em; padding: 18px 0; opacity: 1; }
  .nav-drop-menu { position: static; transform: none; opacity: 1; visibility: visible; background: transparent; border: none; box-shadow: none; padding: 0 0 8px; margin: 0; min-width: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-drop-menu a { justify-content: center; padding: 12px 0; font-size: 15px; }
  .nav-drop-label svg { display: none; }
  /* dark nav mobile */
  .nav:not(.solid) .nav-links.open, .nav.nav-dark .nav-links.open { background: rgba(22,19,14,.97); }
  .nav:not(.solid) .nav-links.open > a, .nav:not(.solid) .nav-links.open .nav-drop-label { color: var(--paper); }
  .nav:not(.solid) .nav-links.open .nav-drop-menu a { color: rgba(243,239,231,.7); }
  .nav:not(.solid) .nav-links.open .nav-drop-menu a:hover { color: var(--accent-2); }
}

/* dark nav variant for subpages with light headers */
.nav.nav-dark {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid rgba(255,255,255,.1);
  height: 64px;
}
.nav.nav-dark .nav-logo img { filter: invert(1) brightness(2.4); }
.nav.nav-dark .nav-links a { color: rgba(243,239,231,.8); }
.nav.nav-dark .nav-links a:hover { color: #fff; }
.nav.nav-dark .nav-cta { color: var(--paper); border-color: rgba(255,255,255,.35); }
.nav.nav-dark .nav-cta:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.nav.nav-dark.solid {
  background: var(--ink);
  color: var(--paper);
  border-bottom-color: rgba(255,255,255,.1);
}

/* ============================================================
   HERO — full bleed image + overlay type
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--paper); overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; transform: scale(1.04); }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(12,10,7,.90) 0%, rgba(12,10,7,.42) 46%, rgba(12,10,7,.30) 72%, rgba(12,10,7,.55) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(48px, 7vw, 96px); padding-top: 120px; text-shadow: 0 1px 30px rgba(8,6,4,.35); }
.hero h1 { margin: 18px 0 28px; max-width: 16ch; }
.hero .lead { color: rgba(243,239,231,.86); max-width: 56ch; margin-bottom: 40px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .eyebrow { color: #fff; }
.hero .eyebrow::before { background: rgba(255,255,255,.8); }
.hero-scroll {
  position: absolute; right: var(--pad); bottom: clamp(48px,7vw,96px); z-index: 2;
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  display: flex; align-items: center; gap: 12px; color: rgba(243,239,231,.7);
}
.hero-scroll .bar { width: 1px; height: 44px; background: linear-gradient(var(--accent-2), transparent); position: relative; overflow: hidden; }
.hero-scroll .bar::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--accent-2); animation: scrolldot 2.2s var(--ease) infinite; }
@keyframes scrolldot { 0% { top: -50%; } 100% { top: 100%; } }
@media (max-width: 640px) { .hero-scroll { display: none; } }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; padding-block: 26px; border-block: 1px solid var(--ink); }
.marquee-track { display: flex; gap: 0; white-space: nowrap; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { font-family: var(--disp); font-size: clamp(22px,3vw,40px); font-weight: 500; letter-spacing: -.01em; padding-inline: 34px; display: inline-flex; align-items: center; gap: 34px; }
.marquee-item::after { content: ""; width: 9px; height: 9px; background: var(--accent-2); border-radius: 50%; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   ABOUT
   ============================================================ */
.about .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px,6vw,100px); align-items: end; }
.about-copy h2 { margin-bottom: 30px; }
.about-copy .lead + .lead { margin-top: 22px; font-size: clamp(16px,1.6vw,19px); }
.about-figure { position: relative; }
.about-figure .frame { overflow: hidden; aspect-ratio: 4/5; }
.about-figure img { width: 100%; height: 100%; object-fit: cover; }
.about-figure .tag {
  position: absolute; left: -1px; top: -34px; background: var(--accent); color: #fff;
  padding: 16px 20px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
}
.about-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; margin-top: 56px; border-top: 1px solid var(--line); }
.about-stat { padding-top: 24px; padding-right: 16px; }
.about-stat b { font-family: var(--disp); font-size: clamp(34px,4vw,56px); font-weight: 500; letter-spacing: -.03em; display: block; }
.about-stat span { font-size: 14px; color: var(--soft); margin-top: 4px; display: block; }
@media (max-width: 880px) {
  .about .wrap { grid-template-columns: 1fr; align-items: stretch; }
  .about-figure { order: -1; max-width: 440px; }
  .about-figure .tag { top: auto; bottom: -1px; }
}

/* ============================================================
   SERVICES — interactive expanding list + sticky preview
   ============================================================ */
.services { background: var(--ink); color: var(--paper); }
.services .eyebrow { color: var(--accent-2); }
.services .eyebrow::before { background: var(--accent-2); }
.services-head { max-width: 820px; margin-bottom: clamp(48px,6vw,80px); }
.services-head h2 { color: #fff; }
.svc-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(36px,5vw,80px); align-items: start; }
.svc-list { border-top: 1px solid var(--line-d); }
.svc-row {
  border-bottom: 1px solid var(--line-d); padding: clamp(26px,3vw,40px) 0; cursor: pointer;
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(18px,2.5vw,40px); align-items: baseline;
  transition: padding-left .45s var(--ease), background .45s var(--ease);
}
.svc-row .ix { font-family: var(--mono); font-size: 13px; color: var(--soft-d); letter-spacing: .1em; }
.svc-row h3 { font-size: clamp(26px,3.4vw,46px); font-weight: 500; color: #f3efe7; transition: color .35s var(--ease); }
.svc-row .desc { grid-column: 2 / 3; max-width: 60ch; color: var(--soft-d); font-size: 16px; line-height: 1.55; margin-top: 16px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .5s var(--ease), margin-top .5s var(--ease); }
.svc-row .plus { font-family: var(--mono); font-size: 22px; color: var(--accent-2); transition: transform .45s var(--ease); line-height: 1; }
.svc-row.active { padding-left: clamp(14px,2vw,28px); }
.svc-row.active h3 { color: var(--accent-2); }
.svc-row.active .desc { max-height: 240px; opacity: 1; margin-top: 18px; }
.svc-row.active .plus { transform: rotate(45deg); }
.svc-preview { position: sticky; top: 100px; aspect-ratio: 3/4; overflow: hidden; background: var(--ink-2); }
.svc-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.svc-preview img.show { opacity: 1; transform: scale(1); }
.svc-preview .pcap { position: absolute; left: 0; bottom: 0; background: var(--accent); color: #fff; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 12px 18px; z-index: 2; }
@media (max-width: 900px) {
  .svc-layout { grid-template-columns: 1fr; }
  .svc-preview { display: none; }
  .svc-row .desc { max-height: 240px; opacity: 1; margin-top: 16px; }
  .svc-row .plus { display: none; }
}

/* ============================================================
   DACH DEEP-DIVE
   ============================================================ */
.deepdive { background: var(--paper-2); }
.deepdive .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,6vw,90px); align-items: center; }
.deepdive h2 { margin-bottom: 24px; }
.scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin-top: 40px; }
.scope-grid li {
  list-style: none; display: flex; align-items: center; gap: 14px;
  font-family: var(--disp); font-size: clamp(17px,1.6vw,21px); font-weight: 500; color: var(--ink);
  padding: 16px 0; border-top: 1px solid var(--line);
}
.scope-grid li::before { content: ""; width: 8px; height: 8px; background: var(--accent); flex: none; transform: rotate(45deg); }
@media (max-width: 600px) { .scope-grid { grid-template-columns: 1fr; } }
.deepdive-figure .frame { overflow: hidden; aspect-ratio: 4/5; }
.deepdive-figure img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 880px) {
  .deepdive .wrap { grid-template-columns: 1fr; }
  .deepdive-figure { max-width: 440px; order: -1; }
  .scope-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(36px,4vw,56px); flex-wrap: wrap; }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(10px,1.2vw,16px); }
.g-item { position: relative; overflow: hidden; background: var(--paper-2); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.g-item:hover img { transform: scale(1.06); }
.g-item .cap {
  position: absolute; left: 0; bottom: 0; color: #fff; background: rgba(20,17,12,.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  padding: 10px 16px; transform: translateY(101%); transition: transform .45s var(--ease-2);
}
.g-item:hover .cap { transform: translateY(0); }
.g-a { grid-column: span 5; aspect-ratio: 4/5; }
.g-b { grid-column: span 7; aspect-ratio: 16/11; }
.g-c { grid-column: span 4; aspect-ratio: 3/4; }
.g-d { grid-column: span 4; aspect-ratio: 3/4; }
.g-e { grid-column: span 4; aspect-ratio: 3/4; }
@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .g-a, .g-c, .g-d, .g-e { grid-column: span 1; aspect-ratio: 3/4; }
  .g-b { grid-column: span 2; aspect-ratio: 16/10; }
}

/* ============================================================
   PAGE HERO (subpages — compact image header)
   ============================================================ */
.page-hero { position: relative; min-height: 64svh; display: flex; align-items: flex-end; color: var(--paper); overflow: hidden; }
.page-hero .hero-media { position: absolute; inset: 0; z-index: 0; }
.page-hero .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.page-hero .hero-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(12,10,7,.88) 0%, rgba(12,10,7,.42) 55%, rgba(12,10,7,.55) 100%); }
.page-hero .ph-inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(40px,5vw,72px); padding-top: 130px; text-shadow: 0 1px 30px rgba(8,6,4,.35); }
.page-hero .eyebrow { color: #fff; }
.page-hero .eyebrow::before { background: rgba(255,255,255,.8); }
.page-hero h1 { font-size: clamp(32px,5vw,62px); line-height: 1.04; letter-spacing: -.03em; margin: 16px 0 22px; max-width: 20ch; }
.page-hero .lead { color: rgba(243,239,231,.88); max-width: 52ch; }

/* ============================================================
   ANFRAGE FORM
   ============================================================ */
.anfrage { background: #fbfaf7; }
.anfrage .wrap { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(40px,6vw,80px); align-items: start; }
.anfrage-intro h2 { margin-bottom: 26px; }
.anfrage-intro .lead { margin-bottom: 36px; }
.anfrage-intro .quick { border-top: 1px solid var(--line); }
.anfrage-intro .quick a, .anfrage-intro .quick div { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; transition: color .25s var(--ease); }
.anfrage-intro .quick a:hover { color: var(--accent); }
.anfrage-intro .quick .ic { width: 18px; height: 18px; flex: none; color: var(--accent); }
.anfrage-intro .quick .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); margin-left: auto; }

.form { position: relative; background: #fff; border: 1px solid var(--line); padding: clamp(26px,3vw,46px); box-shadow: 0 30px 70px -40px rgba(40,30,15,.30); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.field { display: flex; flex-direction: column; position: relative; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); margin-bottom: 9px; }
.field label .req { color: var(--accent); }
.field input:not([type="checkbox"]), .field select, .field textarea {
  font-family: var(--body); font-size: 16px; color: var(--ink);
  background: #f7f4ee; border: 1px solid var(--line);
  padding: 14px 15px; transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
  border-radius: 0; -webkit-appearance: none; appearance: none;
}
.field input[type="checkbox"] {
  width: 22px; height: 22px; cursor: pointer; accent-color: var(--accent);
  flex: none; margin-top: 2px;
}
.field textarea { resize: vertical; min-height: 132px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #ada494; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-2, #d6cdbf); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(181,106,36,.14); }
.field select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23b56a24' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #a8412a; background: #fbf2ef; }
.field .err { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: #a8412a; margin-top: 7px; height: 0; opacity: 0; overflow: hidden; transition: opacity .25s, height .25s; }
.field.invalid .err { height: 16px; opacity: 1; }
.form-foot { display: flex; align-items: center; justify-content: flex-end; gap: 20px; margin-top: 28px; flex-wrap: wrap; }
.form-foot .note { font-size: 13px; color: var(--soft); max-width: 44ch; margin-right: auto; }
.form button[type=submit] { font-family: var(--body); }
.form-success {
  position: absolute; inset: 0; display: none; flex-direction: column; justify-content: center;
  background: #fff; text-align: left; padding: clamp(26px,3vw,46px);
}
.form-success.show { display: flex; }
.form-success .check { width: 56px; height: 56px; border: 1px solid var(--accent); display: grid; place-items: center; margin-bottom: 26px; }
.form-success .check svg { width: 26px; height: 26px; color: var(--accent); }
.form-success h3 { font-size: clamp(28px,3.4vw,44px); font-weight: 500; margin-bottom: 16px; }
.form-success p { font-size: 18px; color: var(--soft); max-width: 44ch; line-height: 1.55; }
@media (max-width: 880px) {
  .anfrage .wrap { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px,5vw,80px); align-items: start; }
.faq-side h2 { margin-bottom: 22px; position: sticky; top: 110px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 30px 0; font-family: var(--disp); font-size: clamp(19px,2vw,26px); font-weight: 500;
  color: var(--ink); letter-spacing: -.01em; line-height: 1.15;
}
.faq-q .ic { flex: none; width: 24px; height: 24px; position: relative; }
.faq-q .ic::before, .faq-q .ic::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.faq-q .ic::before { width: 16px; height: 2px; }
.faq-q .ic::after { width: 2px; height: 16px; transition: transform .4s var(--ease); }
.faq-item.open .faq-q .ic::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-a { overflow: hidden; height: 0; transition: height .42s var(--ease); }
.faq-a-inner { padding: 0 0 32px; color: var(--soft); font-size: 17px; line-height: 1.6; max-width: 64ch; }
@media (max-width: 820px) { .faq .wrap { grid-template-columns: 1fr; } .faq-side h2 { position: static; } }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--ink); color: var(--paper); }
.contact .eyebrow { color: var(--accent-2); }
.contact .eyebrow::before { background: var(--accent-2); }
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,5vw,90px); align-items: start; }
.contact h2 { color: #fff; margin-bottom: 28px; }
.contact .lead { color: var(--soft-d); margin-bottom: 38px; }
.contact-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }
.contact .btn-ghost { color: var(--paper); border-color: rgba(255,255,255,.4); }
.contact .btn-ghost::after { background: var(--paper); }
.contact .btn-ghost:hover { color: var(--ink); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 40px; }
@media (max-width: 600px) { .info-grid { grid-template-columns: 1fr; gap: 24px; } }
.info-block .k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 12px; }
.info-block .v { font-size: 17px; line-height: 1.55; color: #e9e3d8; }
.info-block .v a:hover { color: var(--accent-2); }
.socials { display: flex; flex-direction: column; gap: 12px; }
.socials a { display: inline-flex; align-items: center; gap: 11px; font-size: 16px; color: #e9e3d8; transition: color .2s var(--ease); }
.socials a svg { width: 20px; height: 20px; flex: none; color: var(--accent-2); transition: transform .25s var(--ease); }
.socials a:hover { color: var(--accent-2); }
.socials a:hover svg { transform: translateY(-1px); }
.hours-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line-d); font-size: 15px; }
.hours-row:first-of-type { border-top: none; }
.hours-row .d { color: var(--soft-d); }
.hours-row.closed .t { color: var(--soft-d); }
.map { overflow: hidden; position: relative; aspect-ratio: 3/4; background: var(--ink-2); border: 1px solid var(--line-d); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.18) contrast(1.02); }
.map .grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 44px 44px; }
.map .pin { position: absolute; top: 44%; left: 50%; transform: translate(-50%,-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.map .pin .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 8px rgba(213,149,80,.18); }
.map .pin b { font-family: var(--disp); font-size: 19px; color: #fff; }
.map .pin span { font-size: 14px; color: var(--soft-d); }
.map .mono { position: absolute; left: 16px; bottom: 14px; font-family: var(--mono); font-size: 11px; color: var(--soft-d); letter-spacing: .06em; }
@media (max-width: 820px) {
  .contact .wrap { grid-template-columns: 1fr; }
  .map { max-width: 460px; aspect-ratio: 4/3; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink-2); color: #c8c2b8; padding-block: clamp(64px,8vw,100px); }
.footer .wrap { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer .wrap.cols-4 { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
.footer-brand img { height: 64px; width: auto; filter: invert(1) brightness(2.4); opacity: .92; margin-bottom: 22px; }
.footer-brand p { font-size: 14px; color: #8f897e; max-width: 34ch; line-height: 1.6; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: #8f897e; margin-bottom: 18px; }
.footer-col a, .footer-col p { display: block; font-size: 15px; color: #c8c2b8; padding: 6px 0; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom { border-top: 1px solid var(--line-d); margin-top: clamp(44px,5vw,72px); padding-top: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: #7e786e; }
@media (max-width: 760px) { .footer .wrap, .footer .wrap.cols-4 { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer .wrap, .footer .wrap.cols-4 { grid-template-columns: 1fr; } }

/* ============================================================
   UPDATES (homepage) + BLOG cards
   ============================================================ */
.updates { background: var(--paper); border-top: 1px solid var(--line); }
.updates-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(36px,4vw,56px); flex-wrap: wrap; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px,2vw,28px); }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 26px 60px -30px rgba(40,30,15,.30); border-color: var(--line-2,#d6cdbf); }
.post-card .pc-media { aspect-ratio: 16/10; overflow: hidden; background: var(--paper-2); }
.post-card .pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.post-card:hover .pc-media img { transform: scale(1.05); }
.post-card .pc-body { padding: clamp(22px,2.4vw,30px); display: flex; flex-direction: column; flex: 1; }
.post-card .pc-meta { display: flex; gap: 14px; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.post-card .pc-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2,#d6cdbf); }
.post-card .pc-meta .date { color: var(--soft); }
.post-card h3 { font-size: clamp(20px,1.7vw,25px); font-weight: 500; line-height: 1.12; margin-bottom: 12px; letter-spacing: -.015em; }
.post-card p { font-size: 15px; color: var(--soft); line-height: 1.55; flex: 1; }
.post-card .pc-more { margin-top: 22px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: .5em; transition: gap .3s var(--ease); }
.post-card:hover .pc-more { gap: .85em; }
.post-card .pc-more svg { width: 15px; height: 15px; }
@media (max-width: 860px) { .post-grid { grid-template-columns: 1fr; } }

/* ============================================================
   BLOG INDEX
   ============================================================ */
.blog-list { padding-block: clamp(70px,9vw,120px); }
.blog-list .post-grid { gap: clamp(20px,2.4vw,32px); }

/* ============================================================
   ARTICLE
   ============================================================ */
.breadcrumb { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); display: flex; gap: 10px; flex-wrap: wrap; }
.breadcrumb a { color: var(--soft); transition: color .2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--line-2,#d6cdbf); }

.article-hero { padding-top: 130px; padding-bottom: clamp(32px,4vw,52px); background: var(--paper); border-bottom: 1px solid var(--line); }
.article-hero .wrap { max-width: 880px; }
.article-cat { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 26px 0 18px; display: inline-flex; align-items: center; gap: 12px; }
.article-cat::before { content: ""; width: 24px; height: 1px; background: var(--accent); }
.article-hero h1 { font-size: clamp(34px,5vw,62px); line-height: 1.02; letter-spacing: -.03em; margin-bottom: 24px; }
.article-hero .standfirst { font-size: clamp(18px,1.9vw,23px); line-height: 1.5; color: var(--soft); max-width: 60ch; text-wrap: pretty; }
.article-meta { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-top: 30px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.article-meta .am { display: inline-flex; align-items: center; gap: 8px; }
.article-meta svg { width: 15px; height: 15px; color: var(--accent); }

.article-figure { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: var(--pad); }
.article-figure .frame { aspect-ratio: 16/8; overflow: hidden; margin-top: clamp(28px,3vw,44px); }
.article-figure img { width: 100%; height: 100%; object-fit: cover; }

.article-body { padding-block: clamp(48px,6vw,84px); }
.article-body .wrap { max-width: 1180px; display: grid; grid-template-columns: 1fr 260px; gap: clamp(40px,5vw,72px); align-items: start; }
.prose { max-width: 720px; }
.prose > * + * { margin-top: 24px; }
.prose h2 { font-size: clamp(26px,2.8vw,38px); line-height: 1.08; letter-spacing: -.02em; margin-top: clamp(44px,5vw,66px); scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: clamp(20px,1.9vw,25px); font-weight: 600; letter-spacing: -.01em; margin-top: 36px; }
.prose p { font-size: 18px; line-height: 1.62; color: #2c2820; text-wrap: pretty; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--accent-dk,#6d4520); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose ul, .prose ol { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.prose ul li, .prose ol li { font-size: 18px; line-height: 1.55; color: #2c2820; padding-left: 30px; position: relative; }
.prose ul li::before { content: ""; width: 8px; height: 8px; background: var(--accent); position: absolute; left: 6px; top: 11px; transform: rotate(45deg); }
.prose ol { counter-reset: li; }
.prose ol li { counter-increment: li; }
.prose ol li::before { content: counter(li); position: absolute; left: 0; top: 1px; font-family: var(--mono); font-size: 13px; color: var(--accent); font-weight: 700; }

.callout { background: var(--paper-2); border-left: 3px solid var(--accent); padding: clamp(22px,2.4vw,30px); margin-top: 32px !important; }
.callout .ct { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.callout p { font-size: 16px !important; line-height: 1.6; color: #2c2820; }
.callout.dark { background: var(--ink); border-left-color: var(--accent-2); }
.callout.dark .ct { color: var(--accent-2); }
.callout.dark p { color: #ded8cd; }

.cost-table { width: 100%; border-collapse: collapse; margin-top: 28px; font-size: 16px; }
.cost-table th, .cost-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.cost-table thead th { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); border-bottom: 1px solid var(--line-2,#d6cdbf); }
.cost-table td:last-child, .cost-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cost-table tbody tr:hover { background: #fbfaf7; }
.cost-table .total td { font-weight: 600; color: var(--ink); border-bottom: none; border-top: 2px solid var(--ink); }

.toc { position: sticky; top: 96px; border-top: 1px solid var(--line); padding-top: 20px; }
.toc .tt { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); margin-bottom: 16px; }
.toc a { display: block; font-size: 14px; line-height: 1.4; color: var(--soft); padding: 7px 0; border-left: 2px solid transparent; padding-left: 14px; margin-left: -2px; transition: color .2s, border-color .2s; }
.toc a:hover, .toc a.active { color: var(--ink); border-left-color: var(--accent); }
@media (max-width: 920px) {
  .article-body .wrap { grid-template-columns: 1fr; }
  .toc { display: none; }
}

.article-faq { margin-top: clamp(48px,5vw,72px) !important; }
.article-faq h2 { margin-bottom: 8px; }
.article-cta { background: var(--ink); color: var(--paper); padding: clamp(34px,4vw,52px); margin-top: clamp(44px,5vw,64px) !important; }
.article-cta h3 { font-size: clamp(24px,2.4vw,32px); font-weight: 500; color: #fff; margin-bottom: 14px; }
.article-cta p { font-size: 17px !important; color: var(--soft-d) !important; margin-bottom: 26px; max-width: 52ch; }
.article-cta .btns { display: flex; gap: 14px; flex-wrap: wrap; }
.article-cta .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--ink); position: relative; }
.article-cta .btn-primary span { position: relative; z-index: 1; color: var(--ink); }
.article-cta .btn-primary::after { background: #fff; }
.article-cta .btn-primary:hover { color: var(--ink); }
.article-cta .btn-ghost { color: var(--paper); border-color: rgba(255,255,255,.4); position: relative; }
.article-cta .btn-ghost span { position: relative; z-index: 1; }
.article-cta .btn-ghost::after { background: var(--paper); }
.article-cta .btn-ghost:hover { color: var(--ink); }

.disclaimer { margin-top: 36px !important; font-size: 13px !important; color: var(--soft); line-height: 1.55; padding-top: 20px; border-top: 1px solid var(--line); }

.sources { margin-top: 32px !important; padding-top: 28px; border-top: 1px solid var(--line); }
.sources .st { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.sources ol { counter-reset: src; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sources ol li { counter-increment: src; font-size: 14px; line-height: 1.55; color: var(--soft); padding-left: 30px; position: relative; }
.sources ol li::before { content: "[" counter(src) "]"; position: absolute; left: 0; top: 1px; font-family: var(--mono); font-size: 12px; color: var(--accent); font-weight: 700; }
.sources ol li a { color: var(--accent); word-break: break-all; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 1; transform: none; }
html.js-reveal .reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.js-reveal .reveal.in { opacity: 1; transform: none; }
html.js-reveal .reveal.d1 { transition-delay: .09s; }
html.js-reveal .reveal.d2 { transition-delay: .18s; }
html.js-reveal .reveal.d3 { transition-delay: .27s; }
@media (prefers-reduced-motion: reduce) {
  html.js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero-media img { transform: none; }
}

/* ---------- WhatsApp Float ---------- */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 9990;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.4), 0 2px 6px rgba(0,0,0,.12);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  text-decoration: none;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,.5), 0 2px 8px rgba(0,0,0,.15); }
.wa-float svg { width: 28px; height: 28px; }
@media (max-width: 520px) { .wa-float { bottom: 16px; right: 16px; width: 50px; height: 50px; } .wa-float svg { width: 24px; height: 24px; } }
