/* ============================================================
   PENZ MANAGEMENT SYSTEMS SOLUTIONS — style.css
   Palette: violet #453256 | lavender #CABCD5 | terra #DF4113 | cream #EFE7DE
   Type: Oswald (display, caps) / Manrope (body)
   ============================================================ */

:root {
  --violet: #453256;
  --violet-deep: #372844;
  --violet-soft: #544165;
  --lavender: #cabcd5;
  --lavender-soft: #ddd3e4;
  --terra: #df4113;
  --terra-deep: #c2380f;
  --cream: #efe7de;
  --cream-dark: #e4d9cd;
  --white: #efe7de; /* CI beige — all light surfaces */
  --ink: #2b1f37;

  --font-display: "Oswald", sans-serif;
  --font-body: "Manrope", sans-serif;

  --pad: clamp(20px, 5vw, 84px);
  --max: 1520px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-power: cubic-bezier(0.76, 0, 0.24, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  overflow-wrap: break-word; /* long German compound nouns must not force horizontal overflow */
  hyphens: auto; /* html[lang=de] is set site-wide, so this hyphenates properly instead of a raw mid-word cut */
}

/* Grid items default to min-width:auto (= their content's min-content), which lets a single
   long German compound noun force the whole column wider than the viewport. Reset it so
   overflow-wrap can actually break those words instead of pushing layout out. */
.hero-grid > *, .quote-grid > *, .why-grid > *, .service-block-grid > *,
.about-hero-grid > *, .about-cols > *, .contact-grid > * { min-width: 0; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
strong { font-weight: 600; }
::selection { background: var(--terra); color: var(--cream); }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--violet);
  hyphens: manual; /* respect our manual &shy; breakpoints, but skip the auto-hyphenation dictionary (hyphens:none would suppress the &shy; too) */
}
h2 { line-height: 1.1; }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.bg-pattern { background-color: var(--cream); }
.bg-pattern-violet { background-color: var(--violet); }

.kicker {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.22em; font-size: 0.8rem; color: var(--terra);
  hyphens: none; overflow-wrap: normal; word-break: normal;
}
.kicker::before { content: ""; width: 0.6em; height: 0.6em; background: var(--terra); flex: none; }
.section-dark .kicker { color: var(--lavender); }
.section-dark .kicker::before { background: var(--terra); }

.h-xl { font-size: clamp(2.4rem, 1.3rem + 5.3vw, 5.8rem); }
.h-lg { font-size: clamp(2.1rem, 1.2rem + 4.2vw, 4.6rem); }
.h-md { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.6rem); }
.accent { color: var(--terra); }
.on-dark { color: var(--cream); }
.on-dark-soft { color: var(--lavender); }

/* image hover crop: soft zoom on photo blocks */
.img-crop { display: block; overflow: hidden; }
.img-crop img { display: block; transition: transform 1.2s var(--ease-out); will-change: transform; }
figure:hover .img-crop img { transform: scale(1.055); }

/* grain overlay */
.grain {
  position: fixed; inset: -50%; z-index: 220; pointer-events: none;
  width: 200%; height: 200%; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor-dot, .cursor-ring {
    display: block; position: fixed; top: 0; left: 0; z-index: 400;
    pointer-events: none; border-radius: 50%;
    transform: translate(-50%, -50%);
  }
  .cursor-dot { width: 7px; height: 7px; background: var(--terra); }
  .cursor-ring {
    width: 38px; height: 38px; border: 1.5px solid var(--terra);
    transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
      opacity 0.3s, background-color 0.3s, border-color 0.3s;
  }
  body.cursor-hover .cursor-ring { width: 64px; height: 64px; background: rgba(223, 65, 19, 0.08); }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--terra);
  --btn-fg: var(--cream);
  position: relative; display: inline-flex; align-items: center; gap: 0.9em;
  padding: 1.05em 2.2em; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  overflow: hidden; isolation: isolate;
  transition: color 0.4s var(--ease-power);
  -webkit-hyphens: none; -ms-hyphens: none; hyphens: none; overflow-wrap: normal; word-break: normal;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--violet);
  clip-path: circle(0% at 50% 120%);
  transition: clip-path 0.55s var(--ease-power);
}
.btn:hover::before, .btn:focus-visible::before { clip-path: circle(150% at 50% 50%); }
.btn:hover, .btn:focus-visible { color: var(--cream); }
.btn .btn-arrow { transition: transform 0.4s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(5px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--violet); box-shadow: inset 0 0 0 1.5px var(--violet); }
.section-dark .btn--ghost { --btn-fg: var(--cream); box-shadow: inset 0 0 0 1.5px var(--lavender); }
.btn--ghost::before { background: var(--terra); }

.link-underline {
  position: relative; display: inline-block; font-weight: 600;
}
.link-underline::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 1.5px; width: 100%;
  background: currentColor; transform: scaleX(1); transform-origin: right;
  transition: transform 0.45s var(--ease-power);
}
.link-underline:hover::after { transform: scaleX(0); transform-origin: right; animation: relink 0.9s var(--ease-power) forwards; }
@keyframes relink {
  0% { transform: scaleX(1); transform-origin: right; }
  50% { transform: scaleX(0); transform-origin: right; }
  51% { transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: var(--violet);
}
.preloader-mark { width: clamp(90px, 14vw, 150px); overflow: visible; }
.preloader-mark path { fill: var(--cream); }
.preloader-count {
  position: absolute; right: var(--pad); bottom: 5vh;
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(3rem, 8vw, 7rem); color: var(--lavender); line-height: 1;
}
.preloader-tag {
  position: absolute; left: var(--pad); bottom: 5vh; max-width: 18ch;
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.25em; font-size: 0.75rem; color: var(--lavender);
}
body.is-loading { overflow: hidden; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 120;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(14px, 2.2vw, 26px) var(--pad);
  transition: transform 0.5s var(--ease-power);
}
.site-header.is-hidden { transform: translateY(-110%); }
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand-mark {
  height: clamp(40px, 4.2vw, 52px); aspect-ratio: 1; display: block;
}
.brand-mark svg { width: 100%; height: 100%; color: var(--violet); transition: color 0.4s; }
.brand-schrift {
  display: block; height: clamp(40px, 4.2vw, 52px); aspect-ratio: 179.16 / 67.45;
  background-color: var(--violet); transition: background-color 0.4s;
  -webkit-mask: url("../assets/img/penz-schrift.svg") no-repeat center / contain;
  mask: url("../assets/img/penz-schrift.svg") no-repeat center / contain;
}

.menu-toggle {
  display: inline-flex; align-items: center; gap: 12px;
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.25em;
  font-size: 0.8rem; color: var(--violet); transition: color 0.4s;
}
.menu-toggle .lines { position: relative; width: 30px; height: 14px; }
.menu-toggle .lines span {
  position: absolute; left: 0; width: 100%; height: 2px; background: currentColor;
  transition: transform 0.45s var(--ease-power), top 0.45s var(--ease-power), width 0.3s;
}
.menu-toggle .lines span:first-child { top: 0; }
.menu-toggle .lines span:last-child { top: 12px; }
.menu-toggle:hover .lines span:last-child { width: 60%; }

/* header over dark sections / menu open */
.site-header.theme-light .brand-mark svg { color: var(--cream); }
.site-header.theme-light .brand-schrift { background-color: var(--cream); }
.site-header.theme-light .menu-toggle { color: var(--cream); }

body.menu-open .menu-toggle .lines span:first-child { top: 6px; transform: rotate(45deg); }
body.menu-open .menu-toggle .lines span:last-child { top: 6px; width: 100%; transform: rotate(-45deg); }

/* ---------- Fullscreen menu ---------- */
.menu-overlay {
  position: fixed; inset: 0; z-index: 110; visibility: hidden;
  background-color: var(--violet);
  clip-path: inset(0 0 100% 0);
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
}
.menu-mark {
  position: absolute; top: 50%; right: -6vw; transform: translateY(-50%);
  width: clamp(300px, 42vw, 640px); opacity: 0.14; pointer-events: none;
}
.menu-mark { color: var(--lavender); aspect-ratio: 1; }
.menu-nav { padding: 0 var(--pad); margin-bottom: 4vh; counter-reset: nav; }
.menu-nav li { overflow: hidden; }
.menu-nav a {
  counter-increment: nav;
  position: relative; display: inline-flex; align-items: baseline; gap: 1.2rem;
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
  font-size: clamp(2.4rem, 7.5vh, 5rem); line-height: 1.14; color: var(--cream);
  transition: color 0.35s;
}
.menu-nav a::before {
  content: "0" counter(nav);
  font-size: 0.32em; font-weight: 300; letter-spacing: 0.2em; color: var(--terra);
  transform: translateY(-1.4em);
}
.menu-nav a:hover, .menu-nav a[aria-current="page"] { color: var(--terra); }
.menu-foot {
  display: flex; flex-wrap: wrap; gap: 1rem 3rem;
  padding: 2.2vh var(--pad) 4vh; border-top: 1px solid var(--violet-soft);
  color: var(--lavender); font-size: 0.95rem;
}
.menu-foot a:hover { color: var(--terra); }
.menu-lang {
  display: flex; gap: 0.9rem;
  padding: 0 var(--pad) 1.4vh;
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 0.9rem; color: var(--lavender);
}
.menu-lang a { transition: color 0.35s; }
.menu-lang a:hover { color: var(--terra); }
.menu-lang a[aria-current="true"] { color: var(--cream); pointer-events: none; }
.menu-lang span[aria-hidden="true"] { color: var(--violet-soft); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: clip;
  display: flex; align-items: center;
  padding: calc(clamp(70px, 10vh, 120px)) 0 clamp(48px, 8vh, 90px);
}
.hero-mono {
  position: absolute; z-index: 0; left: -18vw; top: -12vh; height: 150vh;
  aspect-ratio: 1; width: auto; opacity: 0.07;
  pointer-events: none; color: var(--violet);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: center; width: 100%;
}
.hero h1 { margin: 1.2rem 0 1.6rem; max-width: 12ch; }
.hero-sub {
  font-size: clamp(1.15rem, 1rem + 1vw, 1.7rem); color: var(--ink);
  letter-spacing: 0.01em; word-spacing: 0.3em;
}
.hero-sub b { font-weight: 600; color: var(--terra); }
.hero-cta { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 1.1rem; align-items: center; }

.hero-figure { position: relative; justify-self: end; width: min(100%, 380px); }
.hero-figure::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: translate(-22px, 22px);
  border: 7px solid var(--terra);
  transition: transform 0.6s var(--ease-power);
}
.hero-figure:hover::before { transform: translate(-30px, 30px); }
.hero-figure img { width: 100%; aspect-ratio: 4 / 6.4; object-fit: cover; }
.hero-figure figcaption {
  position: absolute; left: -22px; bottom: -14px;
  background: var(--violet); color: var(--cream);
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.72rem; padding: 0.7em 1.3em;
}

/* ---------- Hero variant: full-bleed photo background (index-v2) ---------- */
.hero--photo .hero-mono { z-index: 1; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.hero-bg-photo {
  width: 100%; height: 100%; object-fit: cover; object-position: 78% center;
  opacity: 0; transform: scale(1.06);
  transition: transform 1.8s var(--ease-out), opacity 1.1s var(--ease-out);
}
.hero-bg-photo.is-in { opacity: 1; transform: scale(1); }
html.no-js .hero-bg-photo { opacity: 1; transform: scale(1); }
/* Desktop: photo shown pure, no scrim — the shot's left side is bright enough on its own. */
.hero-bg::after { content: ""; position: absolute; inset: 0; }
.hero--photo .hero-grid { position: relative; z-index: 1; }

@media (max-width: 900px) {
  .hero--photo { align-items: flex-end; padding-top: 0; }
  .hero-bg-photo { object-position: 88% top; }
  .hero-bg::after {
    background:
      linear-gradient(180deg, rgba(239, 231, 222, 0.6) 0, rgba(239, 231, 222, 0) 90px),
      linear-gradient(
        180deg,
        rgba(239, 231, 222, 0) 0%, rgba(239, 231, 222, 0) 32%,
        rgba(239, 231, 222, 0.55) 46%,
        rgba(239, 231, 222, 0.92) 60%,
        var(--cream) 74%, var(--cream) 100%
      );
  }
}

/* ---------- Quote / intro section ---------- */
.section-dark { background-color: var(--violet); color: var(--cream); position: relative; overflow: clip; }
.quote { padding: clamp(90px, 14vh, 160px) 0; }
.quote-grid {
  position: relative; z-index: 1; display: grid; grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2.5rem, 6vw, 7rem); align-items: center;
}
.quote-figure { position: relative; width: min(100%, 520px); }
.quote-frame {
  position: absolute; z-index: 1; left: 0; top: 0; width: 64%; height: 82%;
  border: 7px solid var(--terra); pointer-events: none;
  transition: transform 0.6s var(--ease-power);
}
.quote-figure:hover .quote-frame { transform: translate(-8px, -8px); }
.quote-figure .img-crop { position: relative; z-index: 2; margin-left: 26%; margin-top: 13%; }
.quote-figure .img-crop img { width: 100%; aspect-ratio: 4/5.2; object-fit: cover; }
.quote-glyph {
  position: absolute; z-index: 3; left: 2%; bottom: 11%;
  width: 40%; max-width: 210px; pointer-events: none;
}
.quote-figure figcaption {
  margin-top: 1.2rem; text-align: right; color: var(--cream);
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500;
}
.quote-figure figcaption em { font-style: normal; color: var(--terra); font-weight: 400; }
.quote h2 { color: var(--lavender); margin-bottom: 2.2rem; }
.quote-body p { max-width: 56ch; color: var(--cream); opacity: 0.92; text-align: justify; hyphens: auto; }
.quote-body p + p { margin-top: 1.4rem; }
.quote-body .btn { margin-top: 2.4rem; }

/* ---------- Services (home overview) ---------- */
.services { position: relative; padding: clamp(90px, 14vh, 170px) 0 0; }
.services-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(2.5rem, 6vh, 5rem); }
.services-head h2 { max-width: 12ch; }

.services-track { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.2rem, 2.5vw, 2.4rem); padding: 0 var(--pad) clamp(90px, 14vh, 150px); max-width: var(--max); margin-inline: auto; }
@media (min-width: 1101px) { .services-track { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.service-card {
  position: relative;
  background: var(--white); border: 1.5px solid var(--violet);
  display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.service-card:hover { transform: translate(-6px, -6px); box-shadow: 10px 10px 0 var(--terra); }
.service-card-head {
  background: var(--violet); color: var(--cream); padding: 1.6rem 1.8rem;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
}
.service-card-head h3 { color: var(--cream); font-size: clamp(1.25rem, 1.6vw, 1.6rem); max-width: 16ch; }
.service-num {
  font-family: var(--font-display); font-weight: 300; font-size: 2.6rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.2px var(--lavender);
}
.service-card-body { padding: 1.8rem; display: flex; flex-direction: column; gap: 1.6rem; flex: 1; }
.service-card-body p { color: var(--ink); text-align: justify; hyphens: auto; }
.service-card .card-link {
  margin-top: auto; align-self: flex-start;
  font-weight: 600; color: var(--terra); display: inline-flex; gap: 0.5em; align-items: center;
}
.service-card .card-link:hover { color: var(--violet); }
.service-card--cta {
  background: var(--terra); border-color: var(--terra); color: var(--cream);
  justify-content: space-between; padding: 1.8rem;
}
.service-card--cta h3 { color: var(--cream); font-size: clamp(1.7rem, 2.4vw, 2.4rem); }
.service-card--cta:hover { box-shadow: 10px 10px 0 var(--violet); }
.service-card--cta .card-link { color: var(--cream); margin-top: 2rem; }

/* ---------- Why PENZ ---------- */
.why { padding: clamp(90px, 14vh, 160px) 0; }
.why-head { margin-bottom: clamp(3rem, 7vh, 5.5rem); }
.why-head h2 { color: var(--cream); max-width: 14ch; }
.why-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2.5rem, 6vw, 7rem); align-items: start; }
.why-figure { position: sticky; top: 12vh; width: min(100%, 420px); }
.why-figure::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  transform: translate(-24px, -24px); border: 7px solid var(--terra);
  transition: transform 0.6s var(--ease-power);
}
.why-figure:hover::before { transform: translate(-32px, -32px); }
.why-figure img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4/5.4; object-fit: cover; }
.why-list { display: flex; flex-direction: column; }
.why-item {
  position: relative; padding: clamp(2rem, 4vh, 3rem) 0 clamp(2rem, 4vh, 3rem) clamp(4.5rem, 7vw, 7.5rem);
  border-top: 1px solid var(--violet-soft);
}
.why-item:last-child { border-bottom: 1px solid var(--violet-soft); }
.why-item .why-num {
  position: absolute; left: 0; top: clamp(1.6rem, 3.5vh, 2.6rem);
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.3px var(--lavender);
  transition: color 0.5s;
}
.why-item:hover .why-num { color: var(--lavender); }
.why-item h3 { color: var(--terra); font-size: clamp(1.3rem, 1.3rem + 1vw, 2.1rem); margin-bottom: 0.9rem; }
.why-item p { color: var(--cream); opacity: 0.9; max-width: 52ch; text-align: justify; hyphens: auto; }
.why-cta { margin-top: clamp(3rem, 6vh, 4.5rem); }

/* ---------- Big CTA band ---------- */
.cta-band { position: relative; overflow: clip; padding: clamp(110px, 18vh, 200px) 0; text-align: center; }
.cta-band .kicker { justify-content: center; }
.cta-band h2 { margin: 1.4rem auto 2.8rem; max-width: 16ch; }
.cta-band h2 .accent { display: inline-block; }
.cta-mono {
  position: absolute; right: -10vw; bottom: -18vh; width: clamp(320px, 38vw, 640px);
  aspect-ratio: 1; opacity: 0.08; pointer-events: none; transform: rotate(8deg);
  color: var(--violet);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--violet-deep); color: var(--cream); position: relative; overflow: clip; }
.footer-top {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(60px, 9vh, 100px) 0 clamp(40px, 7vh, 70px);
}
.footer-logo { display: flex; align-items: center; gap: 14px; }
.footer-brand .brand-mark { height: 48px; }
.footer-brand .brand-mark svg { color: var(--cream); }
.footer-brand .brand-schrift { height: 44px; background-color: var(--cream); }
.footer-brand p { margin-top: 1.4rem; color: var(--lavender); max-width: 26ch; font-size: 0.95rem; hyphens: none; overflow-wrap: normal; word-break: normal; }
.footer-col h4 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.22em; font-size: 0.75rem; color: var(--terra); margin-bottom: 1.3rem;
}
.footer-col li + li { margin-top: 0.55rem; }
.footer-col a { color: var(--cream); opacity: 0.85; transition: opacity 0.3s, color 0.3s; font-size: 0.98rem; }
.footer-col a:hover { opacity: 1; color: var(--terra); }
.footer-col address { font-style: normal; color: var(--cream); opacity: 0.85; font-size: 0.98rem; line-height: 1.7; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem 2rem;
  padding: 1.6rem 0 2rem; border-top: 1px solid var(--violet-soft);
  color: var(--lavender); font-size: 0.85rem;
}
.footer-giant {
  display: block; width: 100%; overflow: hidden; line-height: 0.78; pointer-events: none;
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
  font-size: clamp(6rem, 21vw, 21rem); text-align: center;
  color: transparent; -webkit-text-stroke: 1.5px var(--violet-soft);
  transform: translateY(0.16em);
}

/* ---------- Page hero (internal) ---------- */
.page-hero { position: relative; overflow: clip; padding: clamp(150px, 24vh, 240px) 0 clamp(60px, 10vh, 110px); }
.page-hero h1 { max-width: 17ch; margin-top: 1.4rem; }
.page-hero .lead { margin-top: 1.8rem; max-width: 60ch; font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem); text-align: justify; hyphens: auto; }
.page-hero .lead b { font-weight: 600; color: var(--violet); }
.page-hero-mono {
  position: absolute; right: -12vw; top: -8vh; width: clamp(300px, 40vw, 620px);
  aspect-ratio: 1; opacity: 0.09; pointer-events: none; transform: rotate(-6deg);
  color: var(--violet);
}

/* ---------- Leistungen page ---------- */
.service-block { padding: clamp(70px, 11vh, 130px) 0; border-top: 1.5px solid var(--violet); }
.service-block-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.service-block-head { position: sticky; top: 14vh; }
.service-block-head .service-index {
  font-family: var(--font-display); font-weight: 300; line-height: 1;
  font-size: clamp(4rem, 9vw, 8.5rem);
  color: transparent; -webkit-text-stroke: 1.5px var(--violet);
}
.section-dark .service-block-head .service-index { -webkit-text-stroke-color: var(--lavender); }
.service-block-head .kicker { margin: 1.4rem 0 0.9rem; }
.service-block-head h2 { font-size: clamp(1.9rem, 1.4rem + 2.6vw, 3.4rem); max-width: 14ch; }
.section-dark .service-block-head h2 { color: var(--cream); }
.service-block-body > p { max-width: 58ch; text-align: justify; hyphens: auto; }
.section-dark .service-block-body > p { opacity: 0.92; }
.list-title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.2em; font-size: 0.8rem; color: var(--terra);
  margin: 2.4rem 0 1.1rem;
}
.square-list li {
  position: relative; padding: 0.55rem 0 0.55rem 1.7rem;
  border-bottom: 1px solid color-mix(in srgb, var(--violet) 18%, transparent);
}
.section-dark .square-list li { border-bottom-color: var(--violet-soft); }
.square-list li::before {
  content: ""; position: absolute; left: 0; top: 1.15em;
  width: 0.55em; height: 0.55em; background: var(--terra);
}
.service-block--dark { border-top: 0; }

.audience { padding: clamp(90px, 13vh, 150px) 0; border-top: 1.5px solid var(--violet); }
.audience h2 { max-width: 16ch; margin-bottom: clamp(2.5rem, 5vh, 4rem); }
.audience-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2vw, 1.8rem); }
.audience-card {
  background: var(--white); border: 1.5px solid var(--violet); padding: 1.7rem;
  display: flex; flex-direction: column; gap: 2.4rem;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.audience-card:hover { transform: translate(-5px, -5px); box-shadow: 8px 8px 0 var(--lavender); }
.audience-icon { display: block; width: 2.4rem; height: 2.4rem; color: var(--terra); }
.audience-icon svg { width: 100%; height: 100%; }
.audience-icon svg * { stroke: currentColor; fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.audience-card p { font-weight: 400; color: var(--ink); text-align: justify; hyphens: auto; }

/* ---------- Über mich ---------- */
.about-hero-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.about-figure { position: relative; width: min(100%, 420px); }
.about-figure::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  transform: translate(-22px, -22px); border: 7px solid var(--terra); pointer-events: none;
  transition: transform 0.6s var(--ease-power);
}
.about-figure:hover::before { transform: translate(-30px, -30px); }
.about-figure img { width: 100%; aspect-ratio: 4/5.2; object-fit: cover; }
.about-figure figcaption {
  position: absolute; z-index: 3; left: -22px; bottom: 16px;
  background: var(--violet); color: var(--cream);
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.72rem; padding: 0.7em 1.3em;
}

.timeline-section { padding: clamp(90px, 13vh, 160px) 0; }
.timeline-section h2 { color: var(--cream); margin-bottom: 1rem; }
.timeline-section .timeline-intro { max-width: 62ch; color: var(--cream); opacity: 0.9; margin-bottom: clamp(3rem, 7vh, 5rem); }
.timeline { position: relative; margin-left: clamp(0.4rem, 2vw, 1rem); }
.timeline::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--violet-soft);
}
.timeline-progress {
  position: absolute; left: 0; top: 0; width: 2px; height: 100%;
  background: var(--terra); transform-origin: top; transform: scaleY(0);
}
.timeline-item { position: relative; padding: 0 0 clamp(2.6rem, 5vh, 4rem) clamp(2.2rem, 4vw, 3.6rem); }
.timeline-item:last-child { padding-bottom: 0.5rem; }
.timeline-item::before {
  content: ""; position: absolute; left: -7px; top: 0.5rem;
  width: 16px; height: 16px; background: var(--violet); border: 2.5px solid var(--terra);
}
.timeline-year {
  font-family: var(--font-display); font-weight: 400; letter-spacing: 0.15em;
  color: var(--terra); font-size: 0.95rem;
}
.timeline-item h3 { color: var(--cream); font-size: clamp(1.25rem, 1.1rem + 1vw, 1.9rem); margin: 0.5rem 0; }
.timeline-item p { color: var(--lavender); max-width: 56ch; text-align: justify; hyphens: auto; }
.timeline-item .duration {
  display: inline-block; margin-top: 0.9rem; padding: 0.3em 0.9em;
  border: 1px solid var(--violet-soft); color: var(--lavender);
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.68rem;
}

.about-cols { padding-block: clamp(80px, 12vh, 150px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); }
.about-cols h2 { font-size: clamp(1.7rem, 1.3rem + 2vw, 2.9rem); margin-bottom: 1.4rem; }
.about-cols p + p { margin-top: 1.2rem; }
.lang-chips { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.8rem; }
.chip {
  display: inline-flex; align-items: baseline; gap: 0.6em; padding: 0.65em 1.2em;
  border: 1.5px solid var(--violet); font-weight: 600; font-size: 0.92rem;
  background: var(--white);
}
.chip small { font-weight: 300; color: var(--terra); font-size: 0.8em; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(3rem, 6vw, 7rem); padding-bottom: clamp(90px, 13vh, 160px); }
.contact-info { display: flex; flex-direction: column; gap: 1.6rem; }
.contact-item { display: flex; gap: 1.2rem; align-items: flex-start; }
.contact-item .ico {
  flex: none; width: 52px; height: 52px; display: grid; place-items: center;
  border: 2px solid var(--violet); color: var(--terra);
}
.contact-item h3 {
  display: flex; font-size: 0.78rem; font-weight: 400; letter-spacing: 0.22em; margin-bottom: 0.3rem;
}
.contact-item a, .contact-item address { font-weight: 600; font-style: normal; color: var(--ink); font-size: 1.05rem; }
.contact-item a:hover { color: var(--terra); }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 1.4rem; align-content: start; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.18em; font-size: 0.72rem; color: var(--violet);
}
.field label em { color: var(--terra); font-style: normal; }
.field input, .field select, .field textarea {
  border: 0; border-bottom: 1.5px solid var(--violet); background: transparent;
  padding: 0.7em 0.1em; font-weight: 400; color: var(--ink); border-radius: 0;
  transition: border-color 0.3s, box-shadow 0.3s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23df4113' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.2em center; padding-right: 1.6em;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-bottom-color: var(--terra); box-shadow: 0 1.5px 0 var(--terra);
}
.checkbox { grid-column: 1 / -1; display: flex; gap: 0.9rem; align-items: flex-start; cursor: pointer; font-size: 0.92rem; }
.checkbox input {
  flex: none; width: 22px; height: 22px; margin-top: 2px;
  appearance: none; -webkit-appearance: none; border: 2px solid var(--violet); background: var(--white);
  display: grid; place-items: center; cursor: pointer;
}
.checkbox input:checked { background: var(--terra); border-color: var(--terra); }
.checkbox input:checked::after { content: "✓"; color: var(--cream); font-weight: 700; font-size: 0.85rem; }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.form-status { font-weight: 600; color: var(--violet); }
.form-status--error { color: var(--terra); }
.contact-form .btn:disabled { opacity: 0.6; cursor: not-allowed; }
.hp-field {
  position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}

/* ---------- Impressum ---------- */
.legal { padding-bottom: clamp(90px, 13vh, 160px); }
.legal-block { max-width: 820px; padding: clamp(2rem, 4vh, 3rem) 0; border-top: 1.5px solid var(--violet); }
.legal-block h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem); margin-bottom: 1.6rem; }
.legal-block h3 { font-size: 1.05rem; letter-spacing: 0.08em; margin: 1.8rem 0 0.7rem; color: var(--terra); }
.legal-block p { text-align: justify; hyphens: auto; }
.legal-block p + p { margin-top: 0.9rem; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 2rem; }
.legal dt { font-weight: 600; color: var(--violet); }
.legal dd { margin: 0; }

/* ---------- Reveal helpers (JS adds .is-inview) ---------- */
.reveal { opacity: 0; transform: translateY(46px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-inview { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(0.94); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal-scale.is-inview { opacity: 1; transform: none; }
html.no-js .reveal, html.no-js .reveal-scale { opacity: 1; transform: none; }

/* intro elements: hidden only when JS is active, revealed via .is-in */
html.js .intro-fade { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
html.js .intro-fade.is-in { opacity: 1; transform: none; }

/* split-line reveal (CSS-driven so it survives rAF throttling) */
.line-mask {
  display: block; overflow: hidden;
  overflow: clip; overflow-clip-margin: 0.2em; /* room for accents/cedillas that exceed the tight heading line-height; falls back to overflow:hidden (tighter clip) on browsers without overflow-clip-margin support */
}
/* Each split-line is meant to render as exactly one line. If a font swap ever lands after
   SplitText already measured lines, let it wrap at a space rather than mid-word. */
.split-line { display: block; white-space: normal; overflow-wrap: normal; word-break: normal; transform: translateY(115%); transition: transform 1.15s var(--ease-power); transition-delay: var(--ld, 0s); }
.is-played .split-line { transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .audience-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero { padding-top: 130px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mono { left: auto; right: -30vw; top: -6vh; height: 80vh; opacity: 0.08; }
  .hero-figure { justify-self: start; width: min(72%, 330px); margin-left: 22px; }

  .quote-grid, .why-grid, .service-block-grid, .about-hero-grid,
  .contact-grid, .about-cols { grid-template-columns: 1fr; }
  .legal dl { grid-template-columns: 1fr; gap: 0.15rem 0; }
  .legal dt { margin-top: 1rem; }
  .legal dt:first-child { margin-top: 0; }
  .quote-figure { width: min(92%, 420px); }
  .why-figure { position: relative; top: 0; width: min(78%, 360px); margin-inline: auto; }
  .service-block-head { position: static; }
  .service-block-head .service-index { font-size: clamp(3.4rem, 14vw, 5.5rem); }
  .about-figure { width: min(80%, 360px); margin-left: 22px; }

  .services-track { grid-template-columns: 1fr; }
  .service-card-head h3, .service-card-body p { hyphens: none; overflow-wrap: normal; word-break: normal; }
  .service-card-body p { text-align: left; }
}

@media (max-width: 640px) {
  .brand-schrift { height: 34px; }
  .audience-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2.2rem; }
  .menu-nav a { font-size: clamp(2rem, 9.5vw, 2.8rem); }
  .hero-figure::before { transform: translate(-14px, 14px); border-width: 5px; }
  .quote-frame { border-width: 5px; }
  .why-figure::before, .about-figure::before { transform: translate(-14px, -14px); border-width: 5px; }
  .about-figure, .hero-figure { margin-left: 14px; }
  .why-item { padding-left: 3.6rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal, .reveal-scale { opacity: 1; transform: none; }
}
