/* ================================================================
   TMH Projekte — Editorial-Reskin v2 (04.07.2026)
   Override-Schicht: lädt NACH style.css + tmh.css
   Ziel: Editorial-Typo-Niveau (Portal-Muster), großzügige Abstände,
   Cormorant-Garamond-Akzent im Hero-Kicker, Hairlines statt Schatten.
   ================================================================ */

/* ===== 0. CORMORANT GARAMOND — als CSS-Variable registrieren ===== */
:root {
  --serif: 'Cormorant Garamond', 'Georgia', serif;
  /* Größere Sektions-Abstände für mehr Atemraum */
  --section-pad: clamp(100px, 12vw, 160px);
}

/* ===== 1. TYPOGRAFIE — Barlow Condensed schärfer + größer ===== */

/* h1 global: tighter, bigger, heavier */
h1 {
  font-size: clamp(3rem, 6.5vw, 5.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: .96;
}

/* h2 global: mehr Gewicht, enger */
h2 {
  font-size: clamp(2.2rem, 4.8vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.015em;
}

/* h3: straffer */
h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ===== 2. HERO-VIDEO — Typo auf Portal-Niveau ===== */

/* Hero volle Höhe */
.hero-video {
  min-height: 100vh;
}

/* Overlay: linke Seite stärker abdunkeln für Textkontrast */
.hero-video .hero-overlay {
  background:
    linear-gradient(120deg,
      rgba(7, 19, 35, 0.88) 0%,
      rgba(7, 19, 35, 0.60) 45%,
      rgba(7, 19, 35, 0.80) 100%),
    linear-gradient(180deg,
      rgba(7, 19, 35, 0.15) 0%,
      transparent 40%,
      rgba(7, 19, 35, 0.50) 100%);
}

/* Hero-Kicker: Cormorant Garamond kursiv — "das eine Akzentwort" */
.hero-video .eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.92);
  gap: 18px;
  margin-bottom: 28px;
}

.hero-video .eyebrow::before {
  width: 28px;
  height: 1px;
  background: var(--c-primary);
  flex-shrink: 0;
}

/* Hero-Headline: größer, straffer — Portal-Niveau */
.hero-video .hero-title,
.hero-title {
  font-size: clamp(3rem, 6.8vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: .93;
  margin: 14px 0 28px;
}

/* Hero-Sub: etwas mehr Luft */
.hero-video .hero-sub {
  font-size: clamp(1.02rem, 1.45vw, 1.15rem);
  line-height: 1.68;
  margin-bottom: 44px;
  max-width: 640px;
}

/* Kicker-Linie über dem Hero-Content (dekorativ, rein via CSS) */
.hero-video .hero-content::before {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--c-primary);
  margin-bottom: 36px;
  opacity: 0.85;
}

/* Mobile: Hero skaliert proportional */
@media (max-width: 768px) {
  .hero-video {
    min-height: 90vh;
    padding: 150px 0 80px;
  }
  .hero-video .hero-title {
    font-size: clamp(2.4rem, 9vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.015em;
  }
  .hero-video .eyebrow {
    font-size: 0.92rem;
    margin-bottom: 20px;
  }
  .hero-video .hero-content::before {
    margin-bottom: 24px;
  }
}

@media (max-width: 480px) {
  .hero-video .hero-title {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }
}

/* ===== 3. BUTTONS — Portal-Stil: ruhiger, präziser ===== */

/* Primär-Button: weniger aggressiver Schatten */
.btn-primary:hover,
.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(221, 56, 50, 0.22);
}

/* Outline-Button auf dunklem Hintergrund */
.btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.05em;
}
.btn-outline:hover {
  transform: translateY(-1px);
}

/* Allgemeiner Button: Padding etwas kompakter */
.btn {
  padding: 14px 30px;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  border-radius: 1px;
}

/* ===== 4. SECTION-HEAD — mehr Atemraum ===== */
.section-head {
  margin-bottom: 72px;
  max-width: 800px;
}

.section-head h2 {
  margin: 18px 0 22px;
}

.section-head p {
  font-size: 1.1rem;
  line-height: 1.72;
}

/* Eyebrow global: feine Haarlinie statt block */
.eyebrow {
  margin-bottom: 28px;
  gap: 16px;
}

.eyebrow::before {
  width: 28px;
  height: 1px;
}

/* ===== 5. IMAGE-FRAMES — Hairlines statt Schatten ===== */
.image-frame {
  border: 1px solid var(--c-line);
  /* Kein box-shadow */
}

/* Usecase-Cards: Hairlines statt Schatten */
.usecase-card {
  border: 1px solid var(--c-line);
  box-shadow: none;
}

.usecase-card:hover {
  box-shadow: 0 4px 16px rgba(7, 19, 35, 0.06);
  transform: translateY(-2px);
}

/* ===== 6. STATS — grösser, präziser (Portal-Muster) ===== */
.stat-num,
.quick-spec-num {
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ===== 7. USP-STRIP — etwas mehr Luft ===== */
.usp-strip {
  padding: 60px 0;
}

/* ===== 8. SERIF-AKZENT — Hilfsklasse für zukünftige Nutzung ===== */
.serif-em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--c-primary);
  font-weight: 500;
  text-transform: none;
  font-size: 1.08em;
  letter-spacing: -0.01em;
}

/* ===== 9. FOOTER — feine Trennlinie ===== */
.footer {
  border-top: 2px solid var(--c-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* ===== 10. GRID-2 SECTIONS — mehr Luft zwischen Spalten ===== */
.grid-2 {
  gap: clamp(48px, 7vw, 96px);
}

/* ===== 11. MOBILE — kein horizontaler Scroll ===== */
@media (max-width: 480px) {
  .btn {
    padding: 12px 22px;
    font-size: 0.78rem;
  }
}

/* ===== MOBILE OVERFLOW FIX (04.07.2026) ===== */
/* quick-spec-num: NICHT mit stat-num gleichsetzen (3-Spalten-Grid zu eng) */
.quick-spec-num {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* quick-specs: bei sehr kleinen Viewports einzeiling */
@media (max-width: 480px) {
  .quick-specs {
    grid-template-columns: repeat(3, 1fr);
    /* bewusst 3 Spalten, aber kleinere Schrift (s.o.) */
    gap: 8px;
  }
  .quick-spec {
    padding: 14px 8px;
  }
  .quick-spec-num {
    font-size: 1.5rem;
  }
}

/* ===== MATRIX-TABLE HORIZONTAL-SCROLL FIX ===== */
/* matrix-wrap hatte kein max-width → expandiert auf min-width der Tabelle (640px) */
/* overflow-x: auto ist bereits gesetzt in tmh.css; max-width bändigt den Wrapper */
.matrix-wrap {
  max-width: 100%;
  width: 100%;
}
