/* =============================================================
   JAP CONNECT — Haupt-Stylesheet
   -------------------------------------------------------------
   Premium-Design, 1:1 Umsetzung des Pencil-Entwurfs.
   Inter Tight (Display) / Inter (Body) / JetBrains Mono (Label).
   ============================================================= */

/* -------------------------------------------------------------
   1. Design-Tokens (CSS Custom Properties)
   ------------------------------------------------------------- */
:root {
  /* Primärfarben */
  --color-primary: #0052CC;           /* Atlassian Blue */
  --color-primary-hover: #0045AD;
  --color-accent-green: #36B37E;      /* Gold-Dot, Akzent */
  --color-accent-teal: #00E5D2;       /* Hero-Akzent */

  /* Dunkle Flächen */
  --color-dark: #0A0A0A;              /* Haupt-Text, Footer, Testimonials */
  --color-navy: #0A1E3A;              /* Nav transparent, Hero-Gradient */

  /* Helle Flächen */
  --color-bg: #FAFAF8;                /* Haupt-Hintergrund */
  --color-bg-alt: #F4F3EE;            /* Alternative helle Sektion */
  --color-white: #FFFFFF;

  /* Text-Varianten */
  --color-text: #0A0A0A;
  --color-text-muted: #525252;
  --color-text-subtle: #A3A3A3;
  --color-text-dark-muted: #8A8A8A;

  /* Rahmen */
  --color-border: #E5E3DD;
  --color-border-dark: #252525;

  /* Typografie */
  --font-display: 'Inter Tight', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  /* Abstände (Container) */
  --container-max: 1280px;
  --container-pad: clamp(20px, 5vw, 96px);

  /* Layout */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;

  /* Übergänge */
  --t-fast: 180ms cubic-bezier(0.22, 1, 0.36, 1);
  --t-base: 320ms cubic-bezier(0.22, 1, 0.36, 1);
  --t-slow: 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* -------------------------------------------------------------
   2. Self-hosted Fonts (DSGVO — kein Google CDN)
   ------------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/Inter-Variable.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/InterTight-Variable.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/JetBrainsMono-Variable.woff2') format('woff2-variations');
}

/* -------------------------------------------------------------
   3. Reset & Basis
   ------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
picture,
video {
  max-width: 100%;
  display: block;
  height: auto;
}

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

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip-Link für Barrierefreiheit */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 2000;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 16px; }

/* -------------------------------------------------------------
   4. Layout-Utilities
   ------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section {
  padding-top: clamp(80px, 10vw, 140px);
  padding-bottom: clamp(80px, 10vw, 140px);
}

.section--bg    { background: var(--color-bg); }
.section--alt   { background: var(--color-bg-alt); }
.section--dark  { background: var(--color-dark); color: #FAFAF8; }
.section--blue  { background: var(--color-primary); color: var(--color-white); }

/* -------------------------------------------------------------
   5. Typografie
   ------------------------------------------------------------- */
.kicker {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--color-text-subtle);
  text-transform: uppercase;
}
.kicker__num { color: var(--color-primary); }
.kicker__bar {
  display: inline-block;
  width: 48px;
  height: 4px;
  background: var(--color-primary);
  vertical-align: middle;
  margin-right: 16px;
}

.h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  color: var(--color-text);
}
.h1 { font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 800; line-height: 1.1; }
.h2 { font-size: clamp(1.375rem, 2.4vw, 2rem); line-height: 1.2; }
.h3 { font-size: clamp(1.125rem, 1.8vw, 1.5rem); line-height: 1.25; }

.lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 660px;
}

/* Zeilenumbruch aus JSON-Text (\n) respektieren */
.preline { white-space: pre-line; }

/* -------------------------------------------------------------
   6. Buttons
   ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 28px;
  height: 52px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.btn--primary:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); background: #F5F8FF; }

.btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--color-white);
}
.btn--ghost:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.8); }

.btn--dark {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn--dark:hover { background: var(--color-primary-hover); box-shadow: 0 8px 24px rgba(0, 82, 204, 0.25); }

.btn--outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn--outline:hover { border-color: var(--color-text); }

/* -------------------------------------------------------------
   7. Navigation
   ------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  height: 80px;
  border-bottom: 1px solid rgba(10, 30, 58, 0.08);
  transition: background var(--t-base), box-shadow var(--t-base);
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(10, 30, 58, 0.08);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.logo__img {
  display: block;
  height: 68px;
  width: auto;
  max-width: 320px;
}
.logo__dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent-green);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(54, 179, 126, 0.6);
}

/* Screenreader-only (für unsichtbaren Textfallback auf dem Logo-Link) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav__spacer { flex: 1; }

.nav__links {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--t-fast);
}
.nav__links a:hover { color: var(--color-primary); }

.nav__cta {
  height: 40px;
  padding: 0 20px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(10,30,58,0.2);
  background: var(--color-primary-hover, #0A1E3A);
}

/* Burger-Menü nur auf Mobile */
.nav__burger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}
.nav__burger svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }
  .logo__img { height: 52px; }
  .nav__links.is-open {
    display: flex;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    padding: 24px var(--container-pad);
    flex-direction: column;
    gap: 20px;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(10, 30, 58, 0.08);
  }
}

/* -------------------------------------------------------------
   8. Hero
   ------------------------------------------------------------- */
.hero {
  position: relative;
  color: var(--color-white);
  background: linear-gradient(135deg, #0A1E3A 0%, #0052CC 55%, #00B8A9 100%);
  padding-top: clamp(140px, 14vw, 200px);
  padding-bottom: clamp(100px, 10vw, 140px);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 80% 20%, rgba(0,229,210,0.25) 0%, transparent 60%),
    radial-gradient(50% 40% at 10% 80%, rgba(0,82,204,0.35) 0%, transparent 60%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 48px;
  align-items: center;
}
.hero__kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  margin-bottom: 40px;
}
.hero__kicker::before {
  content: "";
  width: 48px; height: 4px;
  background: var(--color-accent-green);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--color-white);
}
.hero h1 .teal { color: var(--color-accent-teal); display: block; }
.hero__lead {
  margin-top: 40px;
  max-width: 560px;
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}
.hero__buttons {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.hero__trust {
  margin-top: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
}
.hero__trust::before {
  content: "";
  width: 200px;
  height: 1px;
  background: rgba(255,255,255,0.25);
}

.hero__visual {
  position: relative;
  width: 480px;
  max-width: 100%;
  height: 600px;                 /* Bild wieder etwas größer */
  padding-top: 72px;             /* Platz für Gold-Partner-Badge ÜBER dem Bild */
}
.hero__photo {
  position: absolute;
  inset: 72px 0 0 0;             /* Bild startet unter dem Badge */
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0,0,0,0.5);
}
.hero__photo img {
  width: 100%; height: 100%; object-fit: cover;
}

.hero__badge {
  position: absolute;
  top: -16px;
  right: 0;
  left: auto;
  background: transparent;            /* liegt direkt auf dem dunklen Hero */
  padding: 0;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  box-shadow: none;
  width: auto;
}
.hero__badge-logo {
  display: block;
  width: 220px;        /* etwas größer, rechts oben über dem Bild */
  height: auto;
  max-width: 100%;
}

.hero__glass {
  position: absolute;
  right: -24px;
  bottom: -24px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(10, 30, 58, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.2);
  width: 180px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.hero__glass strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-white);
}
.hero__glass span {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
}

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { height: 480px; margin-top: 48px; width: 100%; }
  .hero__badge { right: 16px; left: auto; top: -12px; }
  .hero__badge-logo { width: 180px; }
  .hero__glass { right: 16px; bottom: -16px; }
}

/* -------------------------------------------------------------
   8b. Kunden-Logo-Banner (Marquee)
   ------------------------------------------------------------- */
.clients {
  background: var(--color-bg);
  padding: clamp(40px, 5vw, 64px) 0;
  border-bottom: 1px solid var(--color-border);
  overflow: hidden; /* wichtig: nichts ragt raus */
}
.clients__label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--color-text-subtle);
  text-transform: uppercase;
  margin: 0 0 clamp(24px, 3vw, 36px);
}
.clients__marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  /* Weicher Fade links & rechts für Premium-Feel */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.clients__track {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;           /* NIEMALS umbrechen */
  gap: clamp(36px, 4.5vw, 64px);
  width: max-content;
  animation: clients-scroll 70s linear infinite;
  will-change: transform;
}
.clients__marquee:hover .clients__track {
  animation-play-state: paused;
}
.clients__logo {
  flex: 0 0 auto;              /* nicht schrumpfen, nicht wachsen */
  width: 180px;                /* feste Slot-Breite für einheitliche Optik */
  height: 64px;                /* fester Slot-Höhe, Bild wird eingepasst */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-subtle);
  opacity: 1;
  transition: opacity var(--t-base), color var(--t-base), transform var(--t-base);
}
.clients__logo:hover {
  opacity: 1;
  color: var(--color-primary);
  transform: translateY(-1px);
}
.clients__logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

@keyframes clients-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Reduced Motion: Animation stoppen, aber Logos weiter in einer Zeile */
@media (prefers-reduced-motion: reduce) {
  .clients__track { animation: none; }
}

/* Auf Mobile Logos etwas kleiner */
@media (max-width: 640px) {
  .clients__logo { width: 140px; height: 48px; }
}

/* -------------------------------------------------------------
   9. Section-Marker
   ------------------------------------------------------------- */
.marker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--color-text-subtle);
  text-transform: uppercase;
  margin-bottom: 48px;
}
.marker::before {
  content: "";
  width: 48px;
  height: 4px;
  background: var(--color-primary);
}
.marker__num { color: var(--color-primary); font-weight: 600; }
.section--dark .marker { color: var(--color-text-dark-muted); }

/* -------------------------------------------------------------
   10. Problem-Sektion
   ------------------------------------------------------------- */
.problem__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.pain-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--color-border);
}
.pain-row {
  display: grid;
  grid-template-columns: 80px 110px 1fr;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
  transition: background var(--t-fast);
}
.pain-row:hover { background: rgba(0, 82, 204, 0.03); }
.pain-num {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--color-primary);
}
.pain-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--color-text-subtle);
  text-transform: uppercase;
}
.pain-text {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.4;
}

@media (max-width: 860px) {
  .problem__split { grid-template-columns: 1fr; }
  .pain-row { grid-template-columns: 60px 90px 1fr; gap: 12px; }
}

/* -------------------------------------------------------------
   11. Ansatz — 4 Spalten
   ------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 56px;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}
.step__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--color-text-subtle);
  text-transform: uppercase;
}
.step__label strong { color: var(--color-primary); font-weight: 500; }
.step__num {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  line-height: 0.95;
  color: var(--color-primary);
}
.step__title {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text);
  margin: 0;
}
.step__text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0;
}

@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 40px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------
   12. Use Cases
   ------------------------------------------------------------- */
/* Heading-Bereich mit Bild rechts — IMMER zweispaltig außer auf echtem Handy */
.cases-intro {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  margin-bottom: 80px;
}
.cases-intro > div:first-child {
  flex: 1 1 auto;       /* Text-Spalte nimmt verfügbaren Platz */
  min-width: 0;         /* erlaubt Text-Shrink */
}
.cases-intro__image {
  flex: 0 0 clamp(300px, 42vw, 560px);   /* etwas kleiner */
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.cases-intro__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 900ms cubic-bezier(0.22,1,0.36,1);
}
.cases-intro__image:hover img { transform: scale(1.04); }

/* Erst auf echtem Handy untereinander */
@media (max-width: 560px) {
  .cases-intro { flex-direction: column; align-items: stretch; gap: 28px; }
  .cases-intro__image { flex: none; max-width: 520px; width: 100%; }
}

.cases { border-top: 1px solid var(--color-border); }
.case-row {
  display: grid;
  grid-template-columns: 120px 1fr 1fr 160px;
  gap: 28px;
  padding: 48px 0;
  border-bottom: 1px solid var(--color-border);
}
.case__num-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  color: var(--color-text-subtle);
  text-transform: uppercase;
}
.case__num-label strong { color: var(--color-primary); font-weight: 500; }
.case__title {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px;
}
.case__tags {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-accent-green);
}
.case__body p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0 0 12px;
}
.case__metric {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: fit-content;
  min-height: 130px;
}
.case__metric strong {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}
.case__metric span {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  text-align: center;
}

@media (max-width: 1100px) {
  .case-row { grid-template-columns: 1fr 1fr; gap: 20px; }
  .case__num-label { grid-column: 1 / -1; }
  .case__metric { grid-column: 1 / -1; min-height: 100px; }
  .case__metric strong { font-size: 2rem; }
}
@media (max-width: 560px) {
  .case-row { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------
   13. Testimonials (dunkel)
   ------------------------------------------------------------- */
.section--dark hr { border: 0; border-top: 1px solid var(--color-border-dark); margin: 0; }
.testimonial-main {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  padding: 48px 0 96px;
}
.testimonial-main__bar {
  width: 4px;
  background: var(--color-accent-green);
  border-radius: 2px;
}
.testimonial-main__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--color-text-dark-muted);
  text-transform: uppercase;
  margin-bottom: 32px;
}
.testimonial-main__label strong { color: var(--color-accent-green); font-weight: 500; }
.testimonial-main__quote {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
  color: #FAFAF8;
  margin: 0;
  max-width: 1000px;
}
.testimonial-main__author {
  margin-top: 40px;
  font-size: 1.0625rem;
  font-weight: 500;
  color: #FAFAF8;
}
.testimonial-main__role {
  margin-top: 4px;
  font-size: 0.875rem;
  color: var(--color-text-dark-muted);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  padding-top: 48px;
}
.testimonial-small__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--color-text-dark-muted);
  text-transform: uppercase;
  margin: 0 0 20px;
}
.testimonial-small__label strong { color: var(--color-accent-green); font-weight: 500; }
.testimonial-small__quote {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.5;
  color: #FAFAF8;
  margin: 0 0 20px;
}
.testimonial-small__author {
  font-size: 0.8125rem;
  color: var(--color-text-dark-muted);
}

@media (max-width: 860px) {
  .testimonial-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* -------------------------------------------------------------
   14. Bühne — Bento-Grid
   ------------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(180px, 22vw, 260px);
  gap: 16px;
}
.bento__item {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.bento__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 900ms cubic-bezier(0.22,1,0.36,1);
}
.bento__item:hover img { transform: scale(1.04); }

/* Verteilung: 6 Bilder in 3 Spalten × 3 Reihen
   — 1× groß oben links (2×2), 5× gleich groß drumherum */
.bento__item--big { grid-column: 1 / 3; grid-row: 1 / 3; }   /* Großes Bild oben links (2×2) */
.bento__item--a   { grid-column: 3;     grid-row: 1; }       /* klein oben rechts */
.bento__item--b   { grid-column: 3;     grid-row: 2; }       /* klein Mitte rechts */
.bento__item--c   { grid-column: 1;     grid-row: 3; }       /* klein unten links */
.bento__item--d   { grid-column: 2;     grid-row: 3; }       /* klein unten mitte */
.bento__item--e   { grid-column: 3;     grid-row: 3; }       /* klein unten rechts */

.gallery-footer {
  padding-top: 24px;          /* näher an die Bilder */
  display: flex;
  justify-content: center;    /* zentriert, da nur noch ein Element */
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.gallery-footer__stats {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--color-text-subtle);
  text-transform: uppercase;
}
.gallery-footer__link {
  color: var(--color-primary);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--t-fast);
}
.gallery-footer__link:hover { color: var(--color-primary-hover); }

/* Tablet: erst ab 720px schmaler werden (2 Spalten) */
@media (max-width: 720px) {
  .bento {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
  }
  .bento__item--big { grid-column: 1 / 3; grid-row: 1 / 3; }
  .bento__item--a   { grid-column: 1;     grid-row: 3; }
  .bento__item--b   { grid-column: 2;     grid-row: 3; }
  .bento__item--c   { grid-column: 1;     grid-row: 4; }
  .bento__item--d   { grid-column: 2;     grid-row: 4; }
  .bento__item--e   { grid-column: 1 / 3; grid-row: 5; }
}
/* Mobile: erst ab 440px untereinander (selten) */
@media (max-width: 440px) {
  .bento {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }
  .bento__item--big,
  .bento__item--a,
  .bento__item--b,
  .bento__item--c,
  .bento__item--d,
  .bento__item--e {
    grid-column: 1;
    grid-row: auto;
  }
  .bento__item--big { height: 280px; grid-row: auto; }
}

/* -------------------------------------------------------------
   15. Über Przemek
   ------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 80px;
  align-items: start;
}
.about__portrait {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.about__portrait img { width: 100%; height: 100%; object-fit: cover; }
.about__caption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.about__caption strong { color: var(--color-primary); font-weight: 500; }
.about__caption span { color: var(--color-text-subtle); }

.about__text h2 { margin-bottom: 40px; }
.about__text p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin: 0 0 16px;
  max-width: 540px;
}
.about__metrics {
  margin-top: 64px;
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}
.about__metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 0.95;
  color: var(--color-primary);
}
.about__metric span {
  display: block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--color-text-subtle);
  text-transform: uppercase;
}

@media (max-width: 960px) {
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about__portrait { max-width: 520px; }
}

/* -------------------------------------------------------------
   16. Gold Partner
   ------------------------------------------------------------- */
.gold {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 64px;
  align-items: center;
  padding-top: 48px;
}
.gold h2 { font-size: clamp(1.875rem, 3.8vw, 2.75rem); }
.gold p {
  max-width: 560px;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 28px 0 0;
}
.gold p + p { margin-top: 20px; font-size: 1rem; line-height: 1.6; }

.gold__logo {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
  margin: 0 0 28px;           /* sitzt direkt über der Headline */
}

.gold__image-wrap {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0,0,0,0.18);
  aspect-ratio: 4 / 5;
  background: var(--color-border);
}
.gold__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 860px) {
  .gold { grid-template-columns: 1fr; }
  .gold__logo { width: 200px; margin-bottom: 20px; }
  .gold__image-wrap { aspect-ratio: 4 / 3; }
}

/* -------------------------------------------------------------
   17. Closing CTA (Blau)
   ------------------------------------------------------------- */
.cta-close .marker { color: rgba(255,255,255,0.75); }
.cta-close .marker::before { background: var(--color-white); }
.cta-close .marker__num { color: var(--color-white); }
.cta-close hr {
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.25);
  margin: 8px 0 0;
}
.cta-close h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin: 48px 0 0;
}
.cta-close h2 + h2 {
  margin-top: 4px;
  font-size: clamp(1.375rem, 2.6vw, 2rem);
}
.cta-close__lead {
  margin-top: 40px;
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  max-width: 640px;
}
.cta-close__buttons {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* -------------------------------------------------------------
   18. Footer
   ------------------------------------------------------------- */
.footer {
  background: var(--color-dark);
  color: #FAFAF8;
  padding: 96px var(--container-pad) 24px;
}
.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 56px;
}
.footer__col h4 {
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--color-text-dark-muted);
  text-transform: uppercase;
}
.footer__tag {
  margin: 20px 0 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text-subtle);
  max-width: 320px;
}
.footer__office {
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--color-text-dark-muted);
  text-transform: uppercase;
}
.footer__office strong { color: var(--color-primary); font-weight: 500; }
.footer__address {
  margin-top: 12px;
  font-size: 0.875rem;
  line-height: 1.65;
  white-space: pre-line;
  color: #FAFAF8;
}
.footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.footer__list a { font-size: 0.875rem; transition: color var(--t-fast); }
.footer__list a:hover { color: var(--color-primary); }

.footer__contact a { color: var(--color-primary); font-weight: 500; }
.footer__social {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  font-size: 0.8125rem;
}
.footer__social a { transition: color var(--t-fast); }
.footer__social a:hover { color: var(--color-primary); }

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid var(--color-border-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--color-text-dark-muted);
}
.footer__legal { display: flex; gap: 28px; flex-wrap: wrap; }
.footer__legal a:hover { color: #FAFAF8; }

@media (max-width: 960px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------
   19. Scroll-Animationen (Apple-Style Fade-in)
   ------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 { transition-delay: 120ms; }
.reveal--delay-2 { transition-delay: 240ms; }
.reveal--delay-3 { transition-delay: 360ms; }
.reveal--delay-4 { transition-delay: 480ms; }

/* Scale-Variante (z.B. Hero-Visual, Badges) */
.reveal--scale {
  opacity: 0;
  transform: scale(0.92) translateY(20px);
  transition: opacity 1000ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 1000ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal--scale.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Wer keine Animation möchte, bekommt alles sofort — accessibility first */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal--scale { opacity: 1; transform: none; }
}

/* -------------------------------------------------------------
   20. Kontakt / Danke-Seite
   ------------------------------------------------------------- */
.page-hero {
  padding-top: 180px;
  padding-bottom: 80px;
  background: var(--color-bg-alt);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.125rem, 4.2vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 24px 0 0;
}
.page-hero p { max-width: 640px; margin-top: 20px; }

.form {
  max-width: 640px;
  margin: 48px 0 120px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 8px;
}
.form input,
.form textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 1rem;
  background: var(--color-white);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form input:focus,
.form textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,82,204,0.15);
  outline: none;
}
.form textarea { min-height: 160px; resize: vertical; }
.form__check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
.form__check input { width: auto; margin-top: 2px; }
.form__status {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  display: none;
}
.form__status.ok { display: block; background: rgba(54,179,126,0.12); color: #1F6B4E; border: 1px solid rgba(54,179,126,0.4); }
.form__status.err { display: block; background: rgba(222,47,47,0.08); color: #A93030; border: 1px solid rgba(222,47,47,0.3); }

.danke {
  padding: 180px var(--container-pad) 120px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.danke h1 {
  font-family: var(--font-display);
  font-size: clamp(2.125rem, 4.6vw, 3.5rem);
  font-weight: 700;
  margin: 0;
}
.danke p { margin: 24px auto 40px; font-size: 1.25rem; color: var(--color-text-muted); }
