/* ============================================================
   Hallwachs — Shared Stylesheet
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/hanken-grotesk-v12-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/hanken-grotesk-v12-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/hanken-grotesk-v12-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/hanken-grotesk-v12-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/spectral-v15-latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/spectral-v15-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Spectral';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/spectral-v15-latin-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/spectral-v15-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/spectral-v15-latin-600.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --paper: #FBFAF7;
  --white: #FFFFFF;
  --ink: #28333A;
  --ink-soft: #54626B;
  --ink-faint: #8C969C;
  --line: #E7E3DA;
  --line-strong: #D4CFC4;
  --green: #6E7A38;
  --green-deep: #5E6A2E;
  --green-tint: #F2F3E7;
  --brand-lime: #C6CB4D;
  --serif: "Spectral", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 72px);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth; overflow-x: hidden }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100% }
a { color: inherit; text-decoration: none }
section { scroll-margin-top: 90px }

/* ---------- Typography ---------- */
.eyebrow {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: .7em;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--green);
  display: inline-block;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; text-wrap: balance }
.display { font-size: clamp(2.5rem, 5.4vw, 4.7rem) }
.h2 { font-size: clamp(2rem, 4vw, 3.2rem) }
.lead { font-size: clamp(1.25rem, 2.1vw, 1.6rem); line-height: 1.5; color: var(--ink); font-weight: 400 }
.muted { color: var(--ink-soft) }
em { font-style: italic; color: var(--green-deep) }

.container { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad) }

/* ---------- Header ---------- */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
  border-bottom: 1px solid transparent;
}
header.scrolled {
  background: rgba(251,250,247,.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
  max-width: var(--maxw); margin: 0 auto;
  padding-left: var(--pad); padding-right: var(--pad);
}
.wordmark { display: flex; align-items: center }
.wordmark img { height: 34px; width: auto; display: block }
.foot-brand .wordmark img { height: 42px }
.nav-links { display: flex; align-items: center; gap: 2.1rem }
.nav-links a {
  font-size: .92rem; font-weight: 500; color: var(--ink-soft);
  position: relative; padding: 4px 0; transition: color .2s; white-space: nowrap;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--green); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink) }
.nav-links a.active::after, .nav-links a:hover::after { transform: scaleX(1) }
.btn {
  font-family: var(--sans); font-size: .92rem; font-weight: 600;
  padding: .7em 1.5em; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--green-deep); background: var(--green-deep); color: var(--paper);
  transition: background .2s, color .2s, transform .2s;
  display: inline-flex; align-items: center; gap: .5em; white-space: nowrap;
}
.btn:hover { background: var(--ink); border-color: var(--ink); transform: translateY(-1px) }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong) }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink) }
.btn svg { width: 15px; height: 15px }
.nav .btn { padding: .6em 1.3em }
.nav-links a.btn::after { display: none }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px }
.menu-toggle span { width: 24px; height: 2px; background: var(--ink); transition: .3s }

/* ---------- Shared section spacing ---------- */
/* Use explicit top/bottom so .section doesn't override .container's horizontal padding */
.section { padding-top: clamp(64px, 9vw, 140px); padding-bottom: clamp(64px, 9vw, 140px) }
.section-head { max-width: 62ch }
.section-head .eyebrow { margin-bottom: 1.4rem }
.divider { height: 1px; background: var(--line); border: 0; margin: 0 }

/* ---------- Footer ---------- */
footer { background: var(--paper); color: var(--ink-soft); padding: clamp(56px,7vw,90px) 0 32px; border-top: 1px solid var(--line) }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(32px,5vw,60px); padding-bottom: clamp(40px,5vw,64px); border-bottom: 1px solid var(--line) }
.foot-brand .wordmark { margin-bottom: 1.4rem }
.foot-brand p { font-size: .98rem; max-width: 34ch; color: var(--ink-soft) }
.foot-col h4 { font-family: var(--sans); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1.3rem; font-weight: 600 }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: .8rem }
.foot-col a { font-size: .98rem; color: var(--ink-soft); transition: color .2s }
.foot-col a:hover { color: var(--green-deep) }
.socials { display: flex; gap: .8rem; margin-top: 1.6rem }
.socials a { width: 42px; height: 42px; border: 1px solid var(--line-strong); color: var(--ink-soft); display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: .2s }
.socials a:hover { background: var(--green); border-color: var(--green); color: #fff }
.socials svg { width: 18px; height: 18px }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 28px; font-size: .85rem; color: var(--ink-faint) }
.foot-bottom .links { display: flex; gap: 1.4rem; flex-wrap: wrap }
.foot-bottom a:hover { color: var(--green-deep) }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--line-strong); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  z-index: 99; cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease, background .25s, color .25s, border-color .25s, transform .2s;
  box-shadow: 0 4px 12px rgba(30,30,27,.05);
}
.back-to-top svg { width: 18px; height: 18px }
.back-to-top:hover { background: var(--green-deep); border-color: var(--green-deep); color: var(--paper); transform: translateY(-2px) }
.back-to-top.visible { opacity: 1; visibility: visible }

/* ---------- Reveal ---------- */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } }
@media (prefers-reduced-motion: no-preference) {
  html.reveal-ready [data-reveal] { opacity: 0; transition: opacity .72s cubic-bezier(.22,.61,.36,1) }
  html.reveal-ready [data-reveal].is-in { opacity: 1 }
}

/* ============================================================
   index.html — Page-specific styles
   ============================================================ */

/* Hero */
.hero { padding-top: clamp(120px,16vh,180px); padding-bottom: clamp(40px,6vw,80px) }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px,5vw,72px); align-items: center }
.hero-copy .eyebrow { margin-bottom: 1.6rem }
.hero-copy h1 { margin-bottom: 1.6rem }
.hero-copy .lead { max-width: 30ch; margin-bottom: 2.4rem; color: var(--ink-soft) }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center }
.hero-figure { position: relative }
.hero-figure .frame { position: relative; overflow: hidden; background: var(--green-tint); aspect-ratio: 5/6 }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; object-position: center top }
.hero-figure .tag {
  background: var(--white); padding: .85rem 1.3rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.hero-figure .tag .name { font-family: var(--serif); font-size: 1.05rem; font-weight: 500; line-height: 1.2 }
.hero-figure .tag .role { font-size: .78rem; color: var(--ink-faint); letter-spacing: .04em; white-space: nowrap }
.hero-figure .accent { position: absolute; top: -14px; right: -14px; width: 90px; height: 90px; border: 1.5px solid var(--green); z-index: -1 }

/* Warum */
.warum-lead { font-size: clamp(1.5rem,3vw,2.3rem); font-family: var(--serif); line-height: 1.32; max-width: 24ch; letter-spacing: -.01em }
.warum-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,6vw,90px); align-items: start }
.kern { margin-top: .5rem; display: flex; flex-direction: column }
.kern-item { display: flex; gap: 1.2rem; padding: 1.5rem 0; border-top: 1px solid var(--line) }
.kern-item:last-child { border-bottom: 1px solid var(--line) }
.kern-num { font-family: var(--serif); font-size: 1rem; color: var(--green); min-width: 2.4em; font-variant-numeric: tabular-nums }
.kern-text strong { font-weight: 600; display: block; font-size: 1.12rem }
.kern-text span { color: var(--ink-soft); font-size: .98rem }

/* Leistungen (index) */
.leistungen { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line) }
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(20px,2.4vw,32px); margin-top: clamp(36px,5vw,60px) }
.svc {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line);
  padding: clamp(26px,2.6vw,40px);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}
.svc:hover { transform: translateY(-5px); box-shadow: 0 22px 50px rgba(30,30,27,.08); border-color: var(--line-strong) }
.svc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem }
.svc-num { font-family: var(--serif); font-size: 1.1rem; color: var(--green); font-variant-numeric: tabular-nums }
.svc-main { flex-grow: 1 }
.svc-main h3 { font-size: clamp(1.4rem,1.8vw,1.75rem); margin-bottom: .85rem; transition: color .25s; hyphens: auto; overflow-wrap: break-word }
.svc-main p { color: var(--ink-soft); font-size: 1rem }
.svc-main .eyebrow { font-size: .65rem; margin-bottom: .85rem }
.svc-main .eyebrow::before { display: none }
.svc-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line) }
.svc-tags span { font-size: .78rem; color: var(--ink-soft); border: 1px solid var(--line-strong); padding: .28em .65em; border-radius: 999px }
.svc-arrow {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background .25s, border-color .25s, transform .25s; color: var(--ink);
}
.svc-arrow svg { width: 18px; height: 18px; transition: transform .25s }
.svc:hover .svc-main h3 { color: var(--green-deep) }
.svc:hover .svc-arrow { background: var(--green-deep); border-color: var(--green-deep); color: #fff }
.svc:hover .svc-arrow svg { transform: translate(2px,-2px) }

/* Ansatz */
.ansatz-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px,6vw,90px); align-items: center }
.ansatz-sticky { position: sticky; top: 110px }
.step { display: flex; gap: 1.4rem; padding: 1.7rem 0; border-top: 1px solid var(--line) }
.step:last-child { border-bottom: 1px solid var(--line) }
.step-num { font-family: var(--serif); font-size: 1.4rem; color: var(--green); line-height: 1; min-width: 1.6em }
.step p { font-size: 1.12rem; line-height: 1.5 }
.step p b { font-weight: 600 }
.step p .sub { display: block; color: var(--ink-soft); font-size: .98rem; margin-top: .2rem; font-weight: 400 }

/* ---------- Radial Ansatz Diagram ---------- */
.rd-wrap {
  position: relative;
  width: min(680px, 100%);
  margin: 0 auto;
  aspect-ratio: 1;
  user-select: none;
}
.rd-svg {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
}
.rd-center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 24%; aspect-ratio: 1; border-radius: 50%;
  background: #28333A; color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 4%; z-index: 2;
}
.rd-eyebrow {
  font-size: .5rem; letter-spacing: .12em; text-transform: uppercase; opacity: .65; line-height: 1;
}
.rd-title {
  font-family: var(--serif); font-size: .88rem; line-height: 1.25;
}
.rd-bubble {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 26%; aspect-ratio: 1; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 5%; z-index: 2; overflow: visible;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
  cursor: pointer;
}
.rd-bubble:hover, .rd-bubble:focus-visible {
  transform: translate(-50%, -50%) scale(1.22);
  box-shadow: 0 10px 28px rgba(40,51,58,.18);
  z-index: 10; outline: none;
}
.rd-bubble b {
  display: block; font-size: clamp(1.025rem, 2.5vw, 1.525rem); font-weight: 700; line-height: 1;
}
.rd-bubble span {
  display: block; font-size: clamp(.575rem, 1.1vw, .745rem); font-weight: 600;
  line-height: 1.2; margin-top: .2rem; letter-spacing: .01em;
}
.rd-bubble em {
  display: block; font-style: normal;
  font-size: clamp(.505rem, .9vw, .645rem); opacity: .82; line-height: 1.2; margin-top: .15rem;
}
/* All outer bubbles: light green-tint with dark ink text (contrast ~12:1) */
.rd-bubble--1 { top: 17%; left: 50%;  background: var(--green-tint); color: var(--ink); border: 1.5px solid #d4d9b8 }
.rd-bubble--2 { top: 40%; left: 82%;  background: var(--green-tint); color: var(--ink); border: 1.5px solid #d4d9b8 }
.rd-bubble--3 { top: 77%; left: 69%;  background: var(--green-tint); color: var(--ink); border: 1.5px solid #d4d9b8 }
.rd-bubble--4 { top: 77%; left: 31%;  background: var(--green-tint); color: var(--ink); border: 1.5px solid #d4d9b8 }
.rd-bubble--5 { top: 40%; left: 18%;  background: var(--green-tint); color: var(--ink); border: 1.5px solid #d4d9b8 }

/* Mobile: switch to card grid */
@media (max-width: 700px) {
  .rd-wrap {
    aspect-ratio: auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: .75rem;
    width: 100%; max-width: 100%;
  }
  .rd-svg { display: none }
  .rd-center {
    position: static; width: auto; aspect-ratio: auto; border-radius: .75rem;
    padding: 1rem 1.2rem; transform: none;
    flex-direction: row; gap: .75rem; justify-content: flex-start;
    grid-column: 1 / -1; text-align: left;
  }
  .rd-eyebrow { font-size: .7rem }
  .rd-title { font-family: var(--serif); font-size: 1rem; margin-top: 0 }
  .rd-bubble {
    position: static; width: auto; aspect-ratio: auto; border-radius: .75rem;
    padding: 1rem 1.2rem; transform: none !important; align-items: flex-start; text-align: left;
    min-height: 90px; overflow: hidden; border-radius: .75rem;
  }
  .rd-bubble:hover, .rd-bubble:focus-visible { transform: none !important; box-shadow: 0 4px 16px rgba(40,51,58,.12) }
  .rd-bubble b { font-size: 1.1rem }
  .rd-bubble span { font-size: .82rem }
}

/* ---------- Radial Modal ---------- */
.rd-modal {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.rd-modal[hidden] { display: none }
.rd-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(28,33,38,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.rd-modal-inner {
  position: relative; z-index: 1;
  background: var(--white);
  border-radius: 1rem;
  padding: 2.4rem 2.4rem 2rem;
  max-width: 480px; width: 100%;
  box-shadow: 0 24px 60px rgba(28,33,38,.22);
  animation: modal-in .22s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(.97) }
  to   { opacity: 1; transform: translateY(0) scale(1) }
}
.rd-modal-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 2rem; height: 2rem;
  background: none; border: none; cursor: pointer;
  color: var(--ink-soft); padding: .25rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: .375rem; transition: color .15s, background .15s;
}
.rd-modal-close:hover { color: var(--ink); background: var(--paper) }
.rd-modal-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--green-tint); color: var(--ink);
  font-family: var(--serif); font-size: 1.1rem; font-weight: 600;
  border: 1.5px solid #d4d9b8; margin-bottom: 1rem;
}
.rd-modal-head {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--green-deep); font-weight: 600; margin-bottom: .5rem;
}
.rd-modal-title {
  font-family: var(--serif); font-size: 1.35rem; line-height: 1.35;
  color: var(--ink); margin-bottom: .75rem; font-weight: 400;
}
.rd-modal-body { color: var(--ink-soft); font-size: 1rem; line-height: 1.6 }

@media (max-width: 500px) {
  .rd-modal { padding: 0; align-items: flex-end }
  .rd-modal-inner {
    border-radius: 1rem 1rem 0 0;
    padding: 1.8rem 1.5rem 2.5rem;
    max-width: 100%;
    animation: modal-in-mobile .25s ease;
  }
  @keyframes modal-in-mobile {
    from { opacity: 0; transform: translateY(20px) }
    to   { opacity: 1; transform: translateY(0) }
  }
}

/* Über mich */
.about { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line) }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px,6vw,80px); align-items: center }
.about-figure { position: relative }
.about-figure img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center }
.about-name-tag {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  padding: 1.1rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.about-name-tag .name { font-family: var(--serif); font-size: 1.05rem; font-weight: 500; color: var(--ink); line-height: 1.2 }
.about-name-tag .role { font-size: .78rem; color: var(--ink-faint); letter-spacing: .04em }
.about-copy h2 { margin-bottom: 1.8rem }
.about-copy p { color: var(--ink-soft); margin-bottom: 1.2rem; font-size: 1.06rem }
.about-copy p.first { color: var(--ink); font-size: 1.18rem; line-height: 1.6 }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--ink); margin-top: 1.6rem }

/* Referenzen */
.ref-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px,6vw,90px); align-items: start }
.ref-grid > * { min-width: 0 }
.ref-sticky { position: sticky; top: 110px }
.ref-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(28px,4vw,56px) }
.ref-item { display: flex; align-items: center; gap: 1rem; padding: 1.05rem 0; border-top: 1px solid var(--line); font-family: var(--serif); font-size: clamp(1.15rem,1.7vw,1.4rem); color: var(--ink); line-height: 1.2 }
.ref-item::before { content: ""; width: 6px; height: 6px; background: var(--green); flex-shrink: 0 }
.ref-note { margin-top: 1.6rem; font-size: .9rem; color: var(--ink-faint); max-width: 46ch }
.ref-text-block { padding-top: 1.05rem; border-top: 1px solid var(--line); overflow-wrap: break-word; word-break: break-word }
.ref-industries {
  margin-top: 1.2rem; font-size: .95rem; color: var(--ink-soft); line-height: 1.6;
  font-style: italic; position: relative; padding-left: 1.5rem;
}
.ref-industries::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; background: var(--green) }

/* Logo marquee */
.logo-marquee-wrapper { margin-top: 2.5rem; overflow: hidden; position: relative; width: 100% }
.logo-marquee { display: flex; overflow: hidden; user-select: none; gap: 3rem }
.logo-track {
  flex-shrink: 0; display: flex; align-items: center; justify-content: flex-start;
  gap: 3rem;
  animation: marquee-scroll 50s linear infinite;
}
.logo-track img { height: 80px; width: auto; object-fit: contain; filter: grayscale(100%) opacity(60%); transition: filter .3s ease }
.logo-track img:hover { filter: grayscale(0%) opacity(100%) }
.logo-marquee:hover .logo-track { animation-play-state: paused }
@keyframes marquee-scroll {
  0%   { transform: translateX(0) }
  100% { transform: translateX(calc(-100% - 3rem)) }
}

/* Schwerpunkte */
.focus-head { text-align: center; margin: 0 auto clamp(48px,6vw,72px); max-width: 60ch }
.focus-head .eyebrow { justify-content: center; margin-bottom: 1.4rem; display: flex }
.focus-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(24px,3vw,40px) }
.focus-card {
  background: var(--white); border: 1px solid var(--line); padding: clamp(28px,3vw,42px);
  display: flex; flex-direction: column; transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}
.focus-card:hover { transform: translateY(-5px); box-shadow: 0 22px 50px rgba(30,30,27,.08); border-color: var(--line-strong) }
.focus-mark { font-family: var(--serif); font-size: 1.05rem; color: var(--green); margin-bottom: 1.6rem; display: flex; align-items: center; gap: .6em }
.focus-mark::before { content: ""; width: 26px; height: 1px; background: var(--green) }
.focus-card h3 { font-size: 1.7rem; margin-bottom: 1rem }
.focus-card > p { color: var(--ink-soft); font-size: 1rem; margin-bottom: 1.6rem; flex-grow: 1 }
.focus-card ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; border-top: 1px solid var(--line); padding-top: 1.4rem }
.focus-card li { font-size: .96rem; display: flex; align-items: center; gap: .7rem; color: var(--ink) }
.focus-card li::before { content: ""; width: 5px; height: 5px; background: var(--green); flex-shrink: 0 }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px,6vw,80px); align-items: center }
.contact-copy h2 { margin-bottom: 1.4rem }
.contact-copy .lead { color: var(--ink-soft); max-width: 34ch; margin-bottom: 2.4rem }
.contact-rows { display: flex; flex-direction: column; gap: .2rem; margin-bottom: 2.4rem }
.contact-row { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); font-size: 1.05rem }
.contact-row:last-child { border-bottom: 1px solid var(--line) }
.contact-row .ic { width: 20px; height: 20px; color: var(--green); flex-shrink: 0 }
.contact-row a:hover { color: var(--green-deep) }
.contact-figure img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center top }

/* ============================================================
   leistungen.html — Page-specific styles
   ============================================================ */

.subhero { padding-top: clamp(120px,15vh,170px); padding-bottom: clamp(28px,4vw,46px) }
.crumbs { font-size: .84rem; color: var(--ink-faint); display: flex; align-items: center; gap: .6em; margin-bottom: 1.8rem }
.crumbs a:hover { color: var(--green-deep) }
.crumbs span { color: var(--line-strong) }
.subhero h1 { margin-bottom: 1.6rem; max-width: 16ch }
.subhero .lead { max-width: 54ch }

.secnav { position: sticky; top: 74px; z-index: 90; background: rgba(251,250,247,.9); backdrop-filter: blur(12px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line) }
.secnav .container { display: flex; gap: clamp(16px,3vw,42px); align-items: center; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px }
.secnav a { font-size: .92rem; color: var(--ink-soft); display: flex; align-items: baseline; gap: .5em; transition: color .2s }
.secnav a .n { font-family: var(--serif); color: var(--green); font-size: .85rem }
.secnav a:hover, .secnav a.active { color: var(--ink) }

.lst { padding: clamp(64px,9vw,128px) 0; border-bottom: 1px solid var(--line) }
.lst:nth-child(even) { background: var(--white) }
.lst-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,6vw,90px); align-items: center }
.lst:nth-child(odd) .lst-figure { order: 2 }
.lst-figure { position: relative }
.lst-figure img { width: 100%; height: auto; object-fit: normal; background: var(--green-tint) }
.lst-figure .bar { position: absolute; left: -1px; bottom: -1px; width: 46%; height: 7px; background: var(--green) }
.lst-figure .num { position: absolute; top: 10px; left: 10px; font-family: var(--serif); font-size: clamp(4rem,9vw,7rem); color: var(--green); opacity: .16; line-height: .8; z-index: 2 }
.lst-copy .eyebrow { margin-bottom: 1.4rem }
.lst-copy h2 { margin-bottom: 1.4rem }
.lst-copy p.first { color: var(--ink); font-size: 1.16rem; line-height: 1.6; margin-bottom: 1.1rem }
.lst-copy p { color: var(--ink-soft); font-size: 1.04rem; margin-bottom: 1.1rem }
.lst-list { list-style: none; display: flex; flex-direction: column; gap: .7rem; margin: 1.7rem 0; border-top: 1px solid var(--line); padding-top: 1.5rem }
.lst-list li { display: flex; align-items: flex-start; gap: .8rem; font-size: 1.02rem; color: var(--ink) }
.lst-list li::before { content: ""; width: 6px; height: 6px; background: var(--green); flex-shrink: 0; margin-top: .62em }
.lst-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.7rem }
.lst-tags span { font-size: .78rem; color: var(--ink-soft); border: 1px solid var(--line-strong); padding: .28em .8em; border-radius: 999px }

.cta { padding: clamp(72px,10vw,140px) 0; text-align: center; background: var(--white); box-shadow: 0 0 0 100vmax var(--white); clip-path: inset(0 -100vmax); border-top: 1px solid var(--line) }
.cta h2 { margin-bottom: 1.3rem }
.cta .lead { margin: 0 auto 2.4rem; max-width: 40ch }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap }

/* ============================================================
   Legal pages (impressum, datenschutz, agb)
   ============================================================ */

.legal { padding-top: clamp(120px,15vh,170px); padding-bottom: clamp(64px,9vw,120px) }
.legal-head { border-bottom: 1px solid var(--line); padding-bottom: clamp(28px,4vw,44px); margin-bottom: clamp(36px,5vw,56px) }
.legal-head .eyebrow { margin-bottom: 1.4rem }
.legal-head h1 { margin-bottom: 1rem }
.legal-head p { color: var(--ink-soft); font-size: 1.1rem; max-width: 70ch }
.legal-body { max-width: 70ch }
.legal-body p { color: var(--ink-soft); margin-bottom: 1.3rem }
.legal-body a { color: var(--green-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); transition: text-decoration-color .2s }
.legal-body a:hover { text-decoration-color: var(--green) }
.legal-note { margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid var(--line); font-size: .95rem; color: var(--ink-faint) }

/* Datenschutz */
.legal-sec { margin-bottom: 2.4rem }
.legal-sec h2 { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; letter-spacing: -.01em; margin-bottom: .7rem; color: var(--ink) }
.legal-sec p { color: var(--ink-soft) }

/* ID card (impressum + datenschutz) */
.idcard { background: var(--white); border: 1px solid var(--line); padding: clamp(24px,3vw,38px); margin: 0 0 2.4rem }
.idcard h2 { font-family: var(--sans); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; margin-bottom: 1.4rem }
.idrow { display: grid; grid-template-columns: 8.5rem 1fr; gap: .4rem 1.4rem; padding: .7rem 0; border-top: 1px solid var(--line); font-size: 1.02rem }
.idrow:first-of-type { border-top: 0; padding-top: 0; grid-template-columns: 1fr }
.idrow .k { color: var(--ink-faint); font-size: .92rem }
.idrow .v { color: var(--ink); font-weight: 500 }
.idrow .v.name { font-family: var(--serif); font-size: 1.2rem; font-weight: 400 }
.idrow .v.name span { display: block; font-family: var(--sans); font-size: .92rem; color: var(--ink-soft); font-weight: 400; margin-top: .2rem }

/* AGB clauses */
.clause { display: grid; grid-template-columns: 2.4rem 1fr; gap: 1.2rem; padding: 1.6rem 0; border-top: 1px solid var(--line) }
.clause:first-child { border-top: 0; padding-top: 0 }
.clause .no { font-family: var(--serif); font-size: 1.5rem; color: var(--green); line-height: 1.2; font-variant-numeric: tabular-nums }
.clause-body p { color: var(--ink-soft); margin-bottom: 1rem }
.clause-body p:last-child { margin-bottom: 0 }
.clause-body h3 { font-family: var(--sans); font-weight: 600; font-size: 1rem; color: var(--ink); margin: 1.2rem 0 .6rem }
.clause-body ul { list-style: none; display: flex; flex-direction: column; gap: .7rem; margin: .4rem 0 0 }
.clause-body li { display: flex; align-items: flex-start; gap: .8rem; font-size: 1rem; color: var(--ink-soft); line-height: 1.5 }
.clause-body li::before { content: ""; width: 6px; height: 6px; background: var(--green); flex-shrink: 0; margin-top: .55em }
.clause-body li .storno-row { display: flex; flex-direction: column; gap: .15rem; width: 100% }
.clause-body li .storno-value { font-weight: 400; color: var(--ink) }

/* AGB document downloads */
.docs { margin-top: clamp(40px,5vw,60px); padding-top: clamp(32px,4vw,44px); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 1rem }
.doc { display: flex; align-items: center; gap: 1.1rem; background: var(--white); border: 1px solid var(--line); padding: 1.2rem 1.4rem; transition: border-color .25s, transform .25s, box-shadow .25s }
.doc:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: 0 16px 36px rgba(30,30,27,.07) }
.doc-icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; background: var(--green-tint); display: flex; align-items: center; justify-content: center; color: var(--green-deep) }
.doc-icon svg { width: 20px; height: 20px }
.doc-text { flex-grow: 1 }
.doc-text .t { font-weight: 600; color: var(--ink); font-size: 1rem; line-height: 1.3 }
.doc-text .s { font-size: .85rem; color: var(--ink-faint); margin-top: .15rem }
.doc-arrow { flex-shrink: 0; color: var(--ink-faint); transition: color .25s, transform .25s }
.doc:hover .doc-arrow { color: var(--green-deep); transform: translateY(2px) }
.doc-arrow svg { width: 18px; height: 18px }

/* ============================================================
   Responsive
   ============================================================ */

/* Tablet / mobile menu */
@media (max-width: 1024px) {
  .nav-links {
    position: fixed; inset: 74px 0 auto 0; background: var(--paper);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 8px var(--pad) 24px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .35s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,.06);
  }
  header.open .nav-links { transform: translateY(0) }
  .nav-links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem }
  .nav-links a::after { display: none }
  .nav-links .btn { margin-top: 14px; width: 100%; justify-content: center }
  .menu-toggle { display: flex }
  header.open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg) }
  header.open .menu-toggle span:nth-child(2) { opacity: 0 }
  header.open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg) }
}

/* Single-column layout */
@media (max-width: 960px) {
  .hero-grid, .warum-grid, .ansatz-grid, .about-grid,
  .contact-grid, .ref-grid, .lst-grid { grid-template-columns: 1fr }

  .hero-figure { max-width: 460px; margin: 0 auto }
  .hero-figure .accent { display: none }
  .ansatz-sticky, .ref-sticky { position: static }
  .focus-grid, .svc-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto }
  .about-figure { max-width: 460px }
  .contact-figure { max-width: 420px }
  .foot-grid { grid-template-columns: 1fr 1fr }

  /* leistungen.html: image always above text on mobile */
  .lst .lst-figure { order: 1 }
  .lst .lst-copy { order: 2 }
  .lst-figure { max-width: 460px; margin: 0 auto }

  /* Focus cards: remove gap so no colored bands appear between stacked cards */
  .focus-grid { gap: 0 }
  .focus-card + .focus-card { border-top: 0 }

  /* Logo marquee: escape container padding so it goes edge to edge */
  .logo-marquee-wrapper {
    margin-left: calc(-1 * var(--pad));
    margin-right: calc(-1 * var(--pad));
    width: calc(100% + 2 * var(--pad));
  }
}

/* Small phones */
@media (max-width: 680px) {
  body { font-size: 17px }
  .ref-list { grid-template-columns: 1fr }
  .foot-grid { grid-template-columns: 1fr }
  .secnav .container { gap: 14px 22px }
}

/* Phones — reduce excess whitespace, fix overflow */
@media (max-width: 600px) {
  .section { padding-top: 48px; padding-bottom: 48px }
  .hero { padding-top: 100px; padding-bottom: 28px }
  .lst { padding-top: 48px; padding-bottom: 48px }
  .cta { padding-top: 48px; padding-bottom: 48px }

  /* Decorative accent bleeds out of container on narrow screens */
  .hero-figure .accent { display: none }

  /* Role text must wrap on narrow screens */
  .hero-figure .tag .role { white-space: normal }

  /* Hero figure and about figure fill available width */
  .hero-figure, .about-figure { max-width: 100% }

  /* Remove centering constraint — full width is already correct */
  .focus-grid, .svc-grid { max-width: 100% }

  /* Hero lead text: no artificial ch constraint needed on phones */
  .hero-copy .lead { max-width: 100% }
}

@media (max-width: 480px) {
  body { font-size: 16px }
  .logo-track img { height: 52px }
  .hero-actions { flex-direction: column; align-items: stretch }
  .hero-actions .btn { justify-content: center }
  .contact-row { flex-wrap: wrap; align-items: flex-start }
  .idrow { grid-template-columns: 1fr; gap: .1rem }
  .idrow .k { margin-top: .2rem }
  .clause { grid-template-columns: 1fr; gap: .4rem }
}
</style.css>
