/* =============================================================================
   ProCon Insights — Stylesheet
   ============================================================================= */

/* ── @font-face ── */

/* Poppins — lokal gehostet (DSGVO-konform, kein Google CDN) */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/poppins-v20-latin-300.woff2') format('woff2'),
       url('../fonts/poppins-v20-latin-300.woff') format('woff');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-v20-latin-regular.woff2') format('woff2'),
       url('../fonts/poppins-v20-latin-regular.woff') format('woff');
}

/*
 * Gewicht 500 (Medium) — Designkonzept verlangt es, aber keine eigene Datei vorhanden.
 * Fallback: Regular (400) wird für 500 registriert.
 * TODO: Poppins-Medium.woff2 beschaffen und hier ersetzen.
 */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-v20-latin-regular.woff2') format('woff2'),
       url('../fonts/poppins-v20-latin-regular.woff') format('woff');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-v20-latin-600.woff2') format('woff2'),
       url('../fonts/poppins-v20-latin-600.woff') format('woff');
}

/* ── CSS Reset ── */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px; /* Fixed Nav (40px Logo + 2x16px padding) nicht überdecken */
}

body {
  font-family: var(--font-family);
  font-weight: var(--font-weight-regular);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--warm-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ── Typografie ── */

h1, h2, h3 {
  margin-left: -0.04em; /* Optische Ausrichtung: Versalien bündig */
}

/* Hero H1 */
.hero__headline {
  font-weight: 600;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-on-dark);
}

/* H2 Sektion */
h2 {
  font-weight: 600;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* H3 Karte */
h3 {
  font-weight: 500;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* Body */
p, li {
  font-size: clamp(1rem, 1.125vw, 1.125rem);
  line-height: 1.6;
}

/* Body klein */
.text-small {
  font-size: 0.875rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--text-muted);
}

/* Caption */
.caption {
  font-size: 0.8125rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

/* ── Layout — Container und Grid ── */

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-4); /* 24px mobil */
}

@media (min-width: 600px) {
  .container {
    padding-inline: 40px; /* Tablet: 40px (Designkonzept Abschnitt 5) */
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: var(--space-7); /* 64px Desktop */
  }
}

@media (min-width: 1440px) {
  .container {
    max-width: 1360px;
  }
}

.grid {
  display: grid;
  gap: 24px;
}

@media (max-width: 599px) {
  .grid { gap: 16px; }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(12, 1fr);
  }
}

/* Grid-Spalten */
.col-5  { grid-column: span 5; }
.col-7  { grid-column: span 7; }

@media (max-width: 1023px) {
  .col-5, .col-7 { grid-column: 1 / -1; }
}

/* ── Navigation ── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 300ms ease, box-shadow 300ms ease;
}

.nav--scrolled {
  background-color: var(--forest-deep);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0; /* 16px vertikal */
}

.nav__logo img {
  height: 40px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-5); /* 32px */
}

.nav__link {
  color: var(--text-on-dark);
  opacity: 0.8;
  text-decoration: none;
  position: relative;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  transition: opacity 200ms ease;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--kupfer);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms ease;
}

.nav__link:hover {
  opacity: 1.0;
}

.nav__link:hover::after {
  transform: scaleX(1);
}

/* Nav-Button */
.btn--nav {
  padding: 10px 24px;
  font-size: 0.875rem;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-on-dark);
  transition: transform 300ms ease, opacity 300ms ease;
}

/* Mobile Navigation */
@media (max-width: 767px) {
  .nav__links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--forest-deep);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-5);
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__hamburger {
    display: flex;
  }
}

@media (min-width: 768px) {
  .nav__hamburger {
    display: none;
  }
}

/* ── Hero-Sektion ── */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--forest-deep);
  padding: var(--space-9) 0; /* 128px oben/unten */
  text-align: center;
}

@media (max-width: 1023px) {
  .hero {
    min-height: 80vh;
  }
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4); /* 24px */
}

.hero__headline {
  max-width: 900px;
}

/* Wort-Container: verhindert Umbruch mitten im Wort */
.hero__headline .word {
  display: inline-block;
  white-space: nowrap;
}

/* Einzelne Buchstaben-Spans für GSAP-Animation */
.hero__headline .char {
  display: inline-block;
}

.hero__subtitle {
  color: var(--text-on-dark);
  opacity: 0.85;
  font-size: clamp(1rem, 1.125vw, 1.125rem);
  line-height: 1.6;
}

/* data-theme Attribut für Sektions-Farben */
[data-theme="dark"] {
  background-color: var(--forest-deep);
  color: var(--text-on-dark);
}

[data-theme="light"] {
  background-color: var(--warm-white);
  color: var(--text-dark);
}

/* ── CTA-Button ── */

.btn {
  display: inline-block;
  font-family: var(--font-family);
  cursor: pointer;
  text-decoration: none;
  border: none;
}

.btn--primary {
  background-color: var(--kupfer);
  color: var(--warm-white);
  border-radius: 4px;
  padding: 16px 32px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  line-height: 1.0;
  transition: all 250ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.btn--primary:hover {
  background-color: var(--kupfer-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(196, 112, 63, 0.3);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--ghost {
  background: transparent;
  color: var(--kupfer);
  border: 1.5px solid var(--kupfer);
  border-radius: 4px;
  padding: 16px 32px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  line-height: 1.0;
  transition: all 200ms ease;
}

.btn--ghost:hover {
  background-color: rgba(196, 112, 63, 0.1);
}

/* ── Kupfer-Trennlinien ── */

.section-divider {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--space-4);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .section-divider {
    padding-inline: var(--space-7);
  }
}

.section-divider svg {
  width: 100%;
  height: 2px;
  display: block;
}

/* ── Sektionen: Standard-Padding ── */

section {
  padding: var(--space-6) 0; /* 48px mobil */
}

@media (min-width: 1024px) {
  section {
    padding: var(--space-8) 0; /* 96px Desktop */
  }
}

/* ── Reduced Motion Fallback (Barrierefreiheit) ── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── No-JS Fallback ── */

/* Wenn JavaScript nicht verfügbar ist, alle animierten Elemente sofort sichtbar machen */
.no-js [data-animation] {
  opacity: 1 !important;
  transform: none !important;
  clip-path: none !important;
}

/* ── Content-Seiten (Impressum, Datenschutz) ── */

.content-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}

.content-page h1 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--forest-deep);
  margin-bottom: 2rem;
}

.content-page h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--forest-deep);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  position: relative;
}

.content-page h2::after {
  content: '';
  display: block;
  width: 120px;
  height: 2px;
  background: var(--forest-deep);
  margin-top: 0.5rem;
}

.content-page p {
  margin-bottom: 1rem;
}

.content-page ul {
  margin: 0.5rem 0 1rem 1.5rem;
}

.content-page ul li {
  margin-bottom: 0.3rem;
}

.content-page a {
  text-decoration: underline;
}

/* =============================================================================
   Footer
   ============================================================================= */

.footer {
  background-color: var(--footer-bg);
  color: var(--text-on-dark);
  padding-top: var(--space-7);  /* 64px */
  padding-bottom: var(--space-5); /* 32px */
}

.footer__grid {
  display: grid;
  gap: var(--space-5); /* 32px */
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-6); /* 48px */
  }
}

@media (max-width: 767px) {
  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.footer__logo img {
  height: 36px;
  width: auto;
}

@media (max-width: 767px) {
  .footer__logo {
    display: inline-block;
  }
}

.footer__tagline {
  margin-top: var(--space-3); /* 16px */
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-on-dark);
  opacity: 0.7;
}

.footer__heading {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--kupfer);
  margin-bottom: var(--space-3); /* 16px */
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-2); /* 8px */
}

@media (max-width: 767px) {
  .footer__nav {
    align-items: center;
  }
}

.footer__link {
  color: var(--text-on-dark);
  opacity: 0.7;
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.5;
  transition: opacity var(--transition-fast);
}

.footer__link:hover {
  opacity: 1;
  text-decoration: underline;
  text-decoration-color: var(--kupfer);
  text-underline-offset: 3px;
}

.footer__address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-on-dark);
  opacity: 0.7;
}

@media (max-width: 767px) {
  .footer__address {
    align-items: center;
  }
}

.footer__contact-item {
  margin-top: var(--space-2); /* 8px */
}

.footer__divider {
  margin-top: var(--space-6); /* 48px */
  margin-bottom: var(--space-4); /* 24px */
}

.footer__hr {
  border: none;
  height: 1px;
  background-color: var(--kupfer);
  opacity: 0.4;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3); /* 16px */
}

@media (max-width: 767px) {
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

.footer__copyright {
  font-size: 0.8125rem;
  color: var(--text-on-dark);
  opacity: 0.5;
}

.footer__legal {
  display: flex;
  gap: var(--space-4); /* 24px */
}

.footer__legal .footer__link {
  font-size: 0.8125rem;
}

/* =============================================================================
   Hero klein (Unterseiten)
   ============================================================================= */

.hero--small {
  min-height: auto;
  height: 40vh;
  min-height: 280px;
  padding: 0;
  padding-top: 80px; /* Platz fuer fixe Navigation */
}

.hero__headline--small {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
}

/* =============================================================================
   Content-Section (Fliesstext-Seiten: Impressum, Datenschutz)
   ============================================================================= */

.content-section {
  padding-top: var(--space-8);  /* 96px */
  padding-bottom: var(--space-8); /* 96px */
}

@media (max-width: 1023px) {
  .content-section {
    padding-top: var(--space-6);  /* 48px */
    padding-bottom: var(--space-6); /* 48px */
  }
}

.content-section__inner {
  max-width: 720px;
  margin-inline: auto;
}

.content-section__inner h2 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--forest-deep);
  margin-top: var(--space-6); /* 48px */
  margin-bottom: var(--space-3); /* 16px */
}

.content-section__inner h2:first-child {
  margin-top: 0;
}

.content-section__inner p {
  margin-bottom: var(--space-3); /* 16px */
  color: var(--text-dark);
}

.content-section__inner ul {
  margin: var(--space-2) 0 var(--space-3) var(--space-4);
  color: var(--text-dark);
}

.content-section__inner ul li {
  margin-bottom: var(--space-1); /* 4px */
}

.content-section__inner a {
  color: var(--kupfer);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.content-section__inner a:hover {
  color: var(--kupfer-hover);
}

.content-section__inner address {
  font-style: normal;
}

/* =============================================================================
   Geschaeftsbereiche (Sektion 3)
   ============================================================================= */

.geschaeftsbereiche__headline {
  color: var(--text-on-dark);
  text-align: center;
  margin-bottom: var(--space-6); /* 48px */
}

/* ── Bereiche-Grid: 3x2 Layout (6 Karten) ── */

.bereiche-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 1024px) {
  .bereiche-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 600px) and (max-width: 1023px) {
  .bereiche-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 599px) {
  .bereiche-grid {
    grid-template-columns: 1fr; /* 1-Spalte gestapelt */
  }
}

/* ── Einzelne Karte ── */

.bereich {
  padding: var(--space-4); /* 24px */
}

.bereich__icon {
  color: var(--kupfer);
  margin-bottom: var(--space-3); /* 16px */
  width: 40px;
  height: 40px;
}

.bereich__icon svg {
  display: block;
  width: 40px;
  height: 40px;
}

.bereich__titel {
  color: var(--text-on-dark);
  margin-bottom: var(--space-2); /* 8px */
}

.bereich__text {
  color: var(--text-on-dark);
  opacity: 0.85;
}

/* =============================================================================
   Positionierung (Sektion 2)
   ============================================================================= */

.positionierung__headline {
  margin-bottom: var(--space-4); /* 24px */
}

.positionierung p {
  margin-bottom: var(--space-3); /* 16px */
}

.positionierung p:last-child {
  margin-bottom: 0;
}

/* ── Kennzahlen ── */

.kennzahlen {
  display: flex;
  flex-direction: column;
  gap: var(--space-5); /* 32px */
}

.kennzahl__number {
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--kupfer);
  line-height: 1.0;
  letter-spacing: -0.02em;
}

.kennzahl__suffix {
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--kupfer);
  line-height: 1.0;
}

.kennzahl__label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: var(--space-1); /* 4px */
}

/* ============================================
   KONTAKT (Closing Statement)
   ============================================ */

.kontakt__inner {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.kontakt__headline {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--forest-deep);
  margin-bottom: var(--space-4); /* 16px */
}

.kontakt__text {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: var(--space-7); /* 48px */
}

.kontakt__cta {
  display: inline-block;
}
