/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design Tokens ─────────────────────────────── */
:root {
  /* Raw palette */
  --ink:        #0c1210;
  --forest:     #0a5c52;
  --moss:       #3ab06e;
  --cream:      #e8e4dc;
  --parchment:  #f5f2ec;
  --stone:      #c4b99a;
  --deep:       #1a2820;
  --white:      #ffffff;

  --text-dark:  #1a1916;
  --text-mid:   #4a4740;
  --text-muted: #8a8278;
  --text-light: rgba(232, 228, 220, 0.72);
  --text-dim:   rgba(232, 228, 220, 0.42);

  /* Semantic surface aliases */
  --bg-page:         var(--parchment);
  --bg-section-dark: var(--deep);
  --bg-section-mid:  var(--forest);
  --bg-footer:       var(--ink);
  --bg-placeholder:  var(--stone);

  /* Semantic text aliases */
  --text-primary:       var(--text-dark);
  --text-secondary:     var(--text-mid);
  --text-tertiary:      var(--text-muted);
  --text-on-dark:       var(--cream);
  --text-on-dark-dim:   var(--text-light);
  --text-on-dark-muted: var(--text-dim);
  --text-accent:        var(--moss);
  --text-accent-dark:   var(--forest);

  /* Border tokens */
  --border-light: rgba(26, 25, 22, 0.08);
  --border-dark:  rgba(232, 228, 220, 0.12);

  /* Font families */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Decima Mono Pro', 'DM Mono', 'Roboto Mono', monospace;

  /* Type scale */
  --text-hero:    clamp(2.8rem, 7vw, 5.5rem);
  --text-display: clamp(2rem, 4.5vw, 3.5rem);
  --text-h2:      clamp(2rem, 4vw, 3rem);
  --text-h2-sm:   clamp(1.6rem, 3.5vw, 2.5rem);
  --text-h3-lg:   clamp(1.2rem, 2.5vw, 1.65rem);
  --text-h3:      1.05rem;
  --text-label:   1.5rem;
  --text-body:    1rem;
  --text-body-sm: 0.92rem;
  --text-small:   0.87rem;
  --text-xs:      0.82rem;
  --text-xxs:     0.72rem;
  --text-micro:   0.68rem;

  /* Font weights */
  --weight-regular:   400;
  --weight-medium:    500;
  --weight-semibold:  600;
  --weight-bold:      700;
  --weight-extrabold: 800;

  /* Line heights */
  --leading-tight:   1.04;
  --leading-snug:    1.15;
  --leading-normal:  1.6;
  --leading-relaxed: 1.75;
  --leading-loose:   1.85;

  /* Letter spacing */
  --tracking-display: -0.035em;
  --tracking-heading: -0.03em;
  --tracking-label:    0.1em;
  --tracking-caps:     0.12em;
  --tracking-wide:     0.14em;

  /* Layout */
  --max-w:          1080px;
  --max-w-narrow:   800px;
  --section-pad-y:  5.6rem;
  --section-pad-x:  2.5rem;
  --nav-height:     60px;

  /* Radii */
  --radius-sm: 5px;
  --radius-md: 6px;
  --radius-lg: 10px;
}

/* ── Base ───────────────────────────────────────── */
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  color: var(--text-primary);
  background: var(--bg-page);
  line-height: var(--leading-normal);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Language ───────────────────────────────────── */
.lang-de .lang-en,
.lang-en .lang-de { display: none; }

/* ── Nav ────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(245, 242, 236, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 25, 22, 0.07);
  transition: background 0.3s;
}

nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; }

.nav-logo-img {
  height: 30px;
  width: auto;
  display: block;
}

.lang-toggle { display: flex; align-items: center; gap: 2px; }

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: var(--text-xxs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  padding: 5px 4px;
  transition: color 0.15s;
  line-height: 1;
}

.lang-btn:hover { color: var(--text-primary); }
.lang-sep { color: var(--text-tertiary); font-size: var(--text-xxs); user-select: none; }

.lang-de .lang-btn[data-lang="de"],
.lang-en .lang-btn[data-lang="en"] { color: var(--text-primary); font-weight: var(--weight-bold); }

/* ── Hero ───────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 60%, rgba(18, 108, 88, 0.9) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 80% 20%, rgba(10, 92, 82, 0.4) 0%, transparent 60%),
    linear-gradient(160deg, #0e7060 0%, #0a5c52 45%, #041f16 100%);
  height: 59svh;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 4rem;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding: 2rem var(--section-pad-x) 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
}

.hero-logo {
  height: 67px;
  width: auto;
  max-width: none;
  align-self: flex-start;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.hero-text {
  align-self: end;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 3rem;
}

.hero h1 {
  font-size: var(--text-hero);
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  color: var(--white);
  font-optical-sizing: auto;
  text-wrap: pretty;
}

.hero h1 em {
  font-style: normal;
  color: var(--moss);
}

.hero-sub {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: var(--leading-relaxed);
  font-weight: var(--weight-regular);
}

/* ── Section base ───────────────────────────────── */
.section { padding: var(--section-pad-y) var(--section-pad-x); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

/* ── Section labels ─────────────────────────────── */
.section-label {
  display: block;
  font-size: var(--text-label);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

/* ── WHY section ────────────────────────────────── */
.section-why {
  background: var(--bg-page);
  padding: var(--section-pad-y) var(--section-pad-x);
}

.section-why .section-label { color: var(--text-accent); }

.section-why > .container > h2 {
  font-size: var(--text-h2);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-heading);
  color: var(--text-primary);
  max-width: 26ch;
  margin-bottom: 4rem;
  font-optical-sizing: auto;
  text-wrap: pretty;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-light);
}

.why-card {
  padding: 2.5rem 2rem 2.5rem 0;
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.why-card:last-child { border-right: none; padding-right: 0; padding-left: 2rem; }
.why-card:nth-child(2) { padding-left: 2rem; }

.why-num {
  font-size: var(--text-body);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-caps);
  color: var(--text-accent);
  margin-bottom: 0.25rem;
}

.why-card h3 {
  font-size: var(--text-h3);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.why-card p {
  font-size: var(--text-small);
  color: var(--text-secondary);
  line-height: 1.78;
}

/* ── OFFER section ──────────────────────────────── */
.section-offer {
  background: var(--bg-section-dark);
  padding: var(--section-pad-y) var(--section-pad-x);
}

.section-offer .section-label { color: var(--text-accent); }

.section-offer > .container > h2 {
  font-size: var(--text-h2-sm);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-heading);
  color: var(--white);
  margin-bottom: 4rem;
  font-optical-sizing: auto;
  line-height: var(--leading-snug);
  text-wrap: pretty;
}

.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border-dark);
}

.offer-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 3rem 3rem 3rem 0;
  border-right: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}

.offer-card:nth-child(even) {
  padding-left: 3rem;
  padding-right: 0;
  border-right: none;
}

.offer-card:nth-child(3),
.offer-card:nth-child(4) {
  border-bottom: none;
}

.offer-icon {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  color: var(--text-accent);
  align-self: center;
}

.offer-card h3 {
  font-size: var(--text-h3-lg);
  font-weight: var(--weight-bold);
  letter-spacing: -0.025em;
  color: var(--white);
  line-height: var(--leading-snug);
  font-optical-sizing: auto;
  text-wrap: pretty;
}

.offer-card > p {
  font-size: var(--text-body-sm);
  color: var(--text-on-dark);
  line-height: var(--leading-loose);
}

/* ── TEAM section ───────────────────────────────── */
.section-team {
  background: var(--bg-page);
  padding: var(--section-pad-y) var(--section-pad-x);
}

.section-team .section-label { color: var(--text-accent); }

.section-team > .container > h2 {
  font-size: var(--text-h2-sm);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-heading);
  color: var(--text-primary);
  margin-bottom: 4rem;
  font-optical-sizing: auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  max-width: 720px;
}

.team-card { display: flex; flex-direction: column; gap: 0; }

.team-photo-wrap {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg-placeholder);
  margin-bottom: 1.5rem;
  max-width: 200px;
}

.team-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(20%);
  transition: filter 0.4s;
}

.team-card:hover .team-photo-wrap img { filter: grayscale(0%); }

.team-name {
  font-size: var(--text-h3);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.team-role {
  font-size: var(--text-micro);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-accent);
  margin-bottom: 0.9rem;
}

.team-bio {
  font-size: var(--text-small);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Footer ─────────────────────────────────────── */
footer {
  background: var(--bg-footer);
  padding: 4.5rem var(--section-pad-x);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 3rem;
  align-items: start;
}

.footer-logo-img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.footer-contact-label {
  font-size: var(--text-micro);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin-bottom: 0.65rem;
}

.footer-emails { display: flex; flex-direction: column; gap: 0.25rem; }

.footer-emails a {
  font-size: var(--text-small);
  color: rgba(232, 228, 220, 0.55);
  transition: color 0.15s;
}

.footer-emails a:hover { color: var(--cream); }

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

.footer-right a {
  font-size: var(--text-xs);
  color: rgba(232, 228, 220, 0.35);
  transition: color 0.15s;
}

.footer-right a:hover { color: var(--cream); }

.footer-copy { font-size: var(--text-xxs); color: rgba(232, 228, 220, 0.18); }

/* ── Image strip ────────────────────────────────── */
.image-strip {
  overflow: hidden;
  width: 100%;
  line-height: 0;
  position: relative;
}

.image-strip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 70, 65, 0.22);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}

.strip-track {
  display: flex;
  width: max-content;
  animation: strip-scroll 53s linear infinite;
}

/* strip always running – no hover pause */

@keyframes strip-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.strip-img {
  height: 260px;
  width: 390px;
  object-fit: cover;
  object-position: center center;
  display: block;
  flex-shrink: 0;
  margin-right: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}

.strip-img--monkey  { object-position: center 35%; }
.strip-img--bright  { filter: brightness(1.25); }

/* ── CTA teaser ─────────────────────────────────── */
.section-cta {
  background: var(--forest);
  padding: var(--section-pad-y) var(--section-pad-x);
}

.section-cta .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}

.section-cta h2 {
  font-size: var(--text-h2-sm);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-heading);
  color: var(--white);
  font-optical-sizing: auto;
  text-wrap: pretty;
  margin-bottom: 1rem;
}

.section-cta p {
  font-size: var(--text-body-sm);
  color: rgba(232, 228, 220, 0.75);
  line-height: var(--leading-relaxed);
}

.cta-text { width: 100%; }
.cta-action { width: 100%; display: flex; justify-content: center; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--moss);
  color: var(--white);
  font-family: inherit;
  font-size: var(--text-body-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.01em;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.btn-primary:hover { background: #2d9a5d; color: var(--white); }

/* ── Contact page ───────────────────────────────── */
.contact-page {
  padding: 5rem var(--section-pad-x);
  min-height: calc(100vh - var(--nav-height) - 200px);
  max-width: var(--max-w-narrow);
  margin: 0 auto;
}

.contact-page h1 {
  font-size: var(--text-h2);
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-display);
  color: var(--text-accent-dark);
  margin-bottom: 0.75rem;
  font-optical-sizing: auto;
}

.contact-sub {
  font-size: var(--text-body);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.form-field input,
.form-field textarea {
  font-family: inherit;
  font-size: var(--text-body-sm);
  color: var(--text-primary);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  -webkit-appearance: none;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(10, 92, 82, 0.08);
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: var(--leading-relaxed);
}

.form-submit { margin-top: 0.5rem; }

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--forest);
  color: var(--white);
  font-family: inherit;
  font-size: var(--text-body-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.01em;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-submit:hover:not(:disabled) { background: var(--moss); }
.btn-submit:disabled { opacity: 0.55; cursor: not-allowed; }

.form-status {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: var(--text-body-sm);
  line-height: var(--leading-normal);
}

.form-status.success {
  display: block;
  background: rgba(58, 176, 110, 0.1);
  border: 1px solid rgba(58, 176, 110, 0.3);
  color: var(--text-accent-dark);
}

.form-status.error {
  display: block;
  background: rgba(180, 40, 40, 0.07);
  border: 1px solid rgba(180, 40, 40, 0.2);
  color: #7a1c1c;
}

.form-status a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ── Impressum ───────────────────────────────────── */
.legal-page {
  padding: 5rem var(--section-pad-x);
  min-height: calc(100vh - var(--nav-height) - 200px);
  max-width: var(--max-w-narrow);
  margin: 0 auto;
}

.legal-page h1 {
  font-size: var(--text-h2);
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-display);
  color: var(--text-accent-dark);
  margin-bottom: 3rem;
  font-optical-sizing: auto;
}

.legal-section { margin-bottom: 2.5rem; }

.legal-section h2 {
  font-size: var(--text-micro);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.6rem;
}

.legal-section p {
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
  line-height: var(--leading-loose);
}

.legal-section a {
  color: var(--text-accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-section h3 {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-top: 1.8rem;
  margin-bottom: 0.35rem;
}

.legal-section strong {
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.legal-section ul {
  margin: 0.5rem 0 0.75rem 1.4rem;
  padding: 0;
}

.legal-section li {
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
  line-height: var(--leading-loose);
  margin-bottom: 0.4rem;
}

.legal-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 4rem 0;
}


/* ── Responsive ─────────────────────────────────── */
@media (min-width: 861px) {
  .hero      { height: 68svh; min-height: 560px; }
  .hero-text { padding-bottom: 5rem; }
}

@media (max-width: 860px) {
  .offer-grid   { grid-template-columns: 1fr; }
  .offer-card   { padding: 2.5rem 0 !important; border-right: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-logo  { grid-column: 1 / -1; }
  .section-cta .container { flex-direction: column; align-items: flex-start; gap: 2rem; }
}

@media (max-width: 620px) {
  nav { padding: 0 1.5rem; }
  .hero { padding-bottom: 3.5rem; }
  .hero-inner { padding: 1rem 1.5rem 0; }
  .section,
  .section-why, .section-offer, .section-team, .section-cta { padding: 5rem 1.5rem; }
  .why-grid { grid-template-columns: 1fr; }
  .why-card { padding: 2rem 0 !important; border-right: none; border-bottom: 1px solid var(--border-light); }
  .why-card:last-child { border-bottom: none; }
  .team-grid    { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-right { align-items: flex-start; }
  .form-row     { grid-template-columns: 1fr; }
  .contact-page { padding: 3.5rem 1.5rem; }
}
