:root {
  --bg: #00666a;
  --bg-deep: #00585c;
  --bg-darkest: #004c50;
  --ink: #f5efe5;
  --ink-soft: rgba(245, 239, 229, 0.72);
  --ink-faint: rgba(245, 239, 229, 0.32);
  --accent: #abdfe3;

  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;

  --container: 1200px;
  --pad-x: clamp(22px, 5vw, 56px);
  --header-h: 72px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
  overscroll-behavior-y: none;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--ink); color: var(--bg); }

/* ---------- Atmospheric overlays ---------- */

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.45;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.45 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.watermark {
  position: absolute;
  bottom: -22vmin;
  right: -22vmin;
  width: 88vmin;
  height: 88vmin;
  will-change: transform;
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
  background-image: url("assets/gpmk-logo-dark.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: blur(0.3px);
}

.vignette {
  display: none;
}

/* ---------- Layout ---------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  position: relative;
  z-index: 1;
}

/* ---------- Header ---------- */

header.site {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--header-h);
  transition: backdrop-filter .25s var(--ease), background-color .25s var(--ease);
}

header.site.is-scrolled {
  background: rgba(0, 78, 82, 0.55);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: block;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.lang-toggle button {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 6px 10px;
  font: inherit;
  color: inherit;
  cursor: pointer;
  border-radius: 999px;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}

.lang-toggle button:hover { color: var(--ink); }

.lang-toggle button[aria-pressed="true"] {
  color: var(--bg);
  background: var(--ink);
}

.lang-toggle .sep { color: var(--ink-faint); user-select: none; }

/* ---------- Eyebrow ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--ink-faint);
}

/* ---------- Hero ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 8px);
  padding-bottom: clamp(48px, 8vh, 96px);
  position: relative;
  overflow: hidden;
}

.hero .container { width: 100%; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 6vh, 64px);
}

.hero-eyebrow-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}

.hero-meta {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

h1.headline {
  font-family: var(--font-display);
  font-size: clamp(52px, 10vw, 142px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0;
  max-width: 14ch;
  color: var(--ink);
}

h1.headline em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

.hero-prose {
  max-width: 44ch;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lead {
  font-family: var(--font-body);
  font-size: clamp(19px, 1.9vw, 23px);
  line-height: 1.45;
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.005em;
}

.lead-tail {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.4;
  color: var(--accent);
  margin: 0;
  letter-spacing: -0.01em;
}

.cta {
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 26px 14px 28px;
  border: 1px solid rgba(245,239,229,0.35);
  color: var(--ink);
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
  position: relative;
  overflow: hidden;
}

.cta:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  transform: translateY(-1px);
}

.cta .arrow { transition: transform .3s var(--ease); }
.cta:hover .arrow { transform: translateX(4px); }

/* ---------- Hero rule (bottom of viewport) ---------- */

.hero-rule {
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  pointer-events: none;
}

.hero-rule::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -16px;
  height: 1px;
  background: var(--ink-faint);
}

/* ---------- Section: was wir tun ---------- */

section.work {
  padding: clamp(96px, 14vh, 160px) 0 clamp(80px, 10vh, 120px);
  position: relative;
}

section.work::before {
  content: "";
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  top: 0;
  height: 1px;
  background: rgba(245,239,229,0.14);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3.5vh, 40px);
  margin-bottom: clamp(48px, 8vh, 80px);
}

.section-head .section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 6.5vw, 88px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
}

.section-head .section-title em {
  font-style: italic;
  color: var(--accent);
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px 64px;
}

@media (min-width: 760px) {
  .work-grid { grid-template-columns: 1fr 1fr; gap: 72px 80px; }
}

.work-item {
  border-top: 1px solid rgba(245,239,229,0.18);
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.work-num {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.work-item h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 4px;
  color: var(--ink);
}

.work-item p {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.6;
  max-width: 44ch;
}

.work-item .work-link {
  margin-top: 8px;
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid rgba(171,223,227,0.4);
  padding-bottom: 2px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.work-item .work-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ---------- Section: Kontakt ---------- */

section.contact {
  padding: clamp(96px, 14vh, 160px) 0 clamp(80px, 10vh, 120px);
  position: relative;
}

section.contact::before {
  content: "";
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  top: 0;
  height: 1px;
  background: rgba(245,239,229,0.14);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 760px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

.contact-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 24px 0 0;
  color: var(--ink);
  max-width: 18ch;
}

.contact-mail-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-mail {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--accent);
  position: relative;
  align-self: start;
}

.contact-mail::after {
  content: "";
  position: absolute;
  left: 0; bottom: 4px;
  height: 1px;
  width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}

.contact-mail:hover::after { transform: scaleX(1); }

.contact-note {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  max-width: 32ch;
}

/* ---------- Footer ---------- */

footer.site {
  padding: clamp(28px, 5vw, 36px) 0 clamp(32px, 5vw, 40px);
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--ink-faint);
  border-top: 1px solid rgba(245, 239, 229, 0.12);
  position: relative;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.footer-inner > span {
  font-size: 13.5px;
  color: var(--ink-faint);
  letter-spacing: 0.005em;
  line-height: 1.45;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer-links a {
  display: inline-block;
  padding: 6px 0;
  font-size: 14px;
  letter-spacing: 0.005em;
  color: var(--ink-soft);
  transition: color .2s var(--ease);
  position: relative;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-links a:hover::after {
  transform: scaleX(1);
}

@media (min-width: 720px) {
  footer.site {
    padding: 36px 0 40px;
  }
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }
  .footer-inner > span { font-size: 13px; }
  .footer-links { gap: 24px; }
  .footer-links a {
    font-size: 13px;
    padding: 0;
  }
  .footer-links a::after { bottom: -2px; }
}

/* ---------- Sub-pages (Impressum / Datenschutz) ---------- */

main.subpage {
  padding-top: calc(var(--header-h) + clamp(48px, 8vh, 96px));
  padding-bottom: clamp(80px, 10vh, 128px);
}

.subpage-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: clamp(56px, 9vh, 96px);
  padding-bottom: clamp(40px, 6vh, 56px);
  border-bottom: 1px solid rgba(245,239,229,0.18);
}

@media (min-width: 760px) {
  .subpage-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 80px;
    align-items: end;
  }
}

.subpage-head h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
  max-width: 18ch;
}

.subpage-head h1 em {
  font-style: italic;
  color: var(--accent);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color .2s var(--ease);
  margin-bottom: 16px;
}

.back-link:hover { color: var(--ink); }
.back-link .arrow { transition: transform .3s var(--ease); display: inline-block; }
.back-link:hover .arrow { transform: translateX(-3px); }

.legal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}

@media (min-width: 760px) {
  .legal-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 80px;
  }
}

.legal-block { max-width: 56ch; }

.legal-block h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 40px 0 18px;
  color: var(--ink);
}

.legal-block > h2:first-of-type {
  margin-top: 0;
}

.legal h3 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 10px;
}

.legal p {
  margin: 0 0 28px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
}

.legal a {
  border-bottom: 1px solid rgba(245,239,229,0.3);
  transition: border-color .2s var(--ease);
}
.legal a:hover { border-bottom-color: var(--ink); }

/* ---------- i18n visibility ---------- */

.lang-block { display: none; }
html[lang="de"] .lang-block[data-lang="de"] { display: inline; }
html[lang="en"] .lang-block[data-lang="en"] { display: inline; }

/* ---------- Page-load reveal ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  animation: rise .9s var(--ease) forwards;
}

.reveal-fade {
  opacity: 0;
  animation: fade 1.2s var(--ease) forwards;
}

.d1  { animation-delay: 0.05s; }
.d2  { animation-delay: 0.18s; }
.d3  { animation-delay: 0.36s; }
.d4  { animation-delay: 0.50s; }
.d5  { animation-delay: 0.62s; }
.d6  { animation-delay: 0.74s; }
.d7  { animation-delay: 0.92s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-fade {
    animation: none;
    opacity: 1;
  }
  html { scroll-behavior: auto; }
}

/* ---------- Anchor offset ---------- */
section[id] { scroll-margin-top: 96px; }

/* ---------- Light sections (below the hero) ---------- */

section.work {
  background: #ffffff;
  color: #0e1f1f;
  --ink: #0e1f1f;
  --ink-soft: rgba(14, 31, 31, 0.62);
  --ink-faint: rgba(14, 31, 31, 0.4);
  --accent: #00666a;
}

section.work::before {
  background: rgba(14, 31, 31, 0.08);
}

section.work .work-item {
  border-top-color: rgba(14, 31, 31, 0.12);
}

section.work .work-item .work-link {
  border-bottom-color: rgba(0, 102, 106, 0.32);
}

section.work .section-title em {
  color: #008991;
}

/* ---------- Footer (green, parallax watermark) ---------- */

footer.site {
  position: relative;
  overflow: hidden;
}

footer.site .watermark {
  bottom: -55vmin;
  right: -22vmin;
  width: 88vmin;
  height: 88vmin;
  opacity: 0.08;
}

/* ---------- Small screens ---------- */
@media (max-width: 520px) {
  .hero-rule { font-size: 10px; }
  .hero-rule .right { display: none; }
  .brand span.word { display: none; }
}
