/*
Theme Name: Folgis Deutschland
Theme URI: https://www.folgis.de
Author: Folgis Deutschland GmbH
Version: 1.0
*/

/* ============================================================
   ██████╗  FOLGIS DESIGN TOKENS
   ██╔══██╗ Hier ALLE Farben, Abstände und Fonts zentral ändern
   ██████╔╝ Eine Änderung = gilt auf ALLEN Seiten automatisch
   ╚═════╝
   ============================================================

   WIE ÄNDERN?
   -----------
   Farbe ändern:  --color-gold: #C5A059;  → einfach Hex-Code ersetzen
   Abstand:       --space-section-x: 5rem; → Zahl erhöhen/verringern
   Font:          --font-base: 'Inter'     → anderen Google Font eintragen

   ============================================================ */

:root {

  /* ── FARBEN ─────────────────────────────────────────────── */
  --color-bg:           #050505;       /* Hintergrund (tiefschwarz)     */
  --color-bg-section:   #080808;       /* Abschnitt-Hintergrund         */
  --color-gold:         #C5A059;       /* Primärfarbe Gold              */
  --color-gold-hover:   #E2BC75;       /* Gold beim Hover               */
  --color-text:         #FFFFFF;       /* Haupttext                     */
  --color-muted:        #A1A1A6;       /* Sekundärtext (grau)           */
  --color-border:       rgba(255,255,255,0.08);    /* Rahmenfarbe       */
  --color-border-gold:  rgba(197,160,89,0.3);      /* Goldener Rahmen   */

  /* Unternehmensfarben */
  --color-dpm:              #C5A059;   /* DPM GmbH → Gold               */
  --color-alltagsentlastung: #60A5FA;  /* Alltagsentlastung24 → Blau    */
  --color-unikat:           #A78BFA;   /* Unikat Business Club → Lila   */

  /* ── ABSTÄNDE (SPACING) ─────────────────────────────────── */
  --space-section-y:    6rem;          /* Sektion: Abstand oben/unten   */
  --space-section-x:    3rem;          /* Sektion: Abstand links/rechts */
  --space-card:         2.5rem;        /* Innenabstand Cards            */
  --space-hero-top:     8rem;          /* Hero: Abstand oben (Navbar)   */
  --space-grid-gap:     2.5rem;        /* Abstand zwischen Grid-Spalten */
  --space-hero-right:   4rem;          /* Hero: Extra Abstand rechts    */

  --space-stack-sm:     0.75rem;
  --space-stack-md:     1.5rem;
  --space-stack-lg:     2.5rem;
  --space-stack-xl:     3.5rem;

  /* ── CONTAINER BREITE ───────────────────────────────────── */
  --container-max:      1200px;        /* Max. Breite Hauptinhalt       */
  --container-narrow:   800px;         /* Schmalerer Container (Texte)  */

  /* ── TYPOGRAFIE ─────────────────────────────────────────── */
  --font-base:          'Inter', sans-serif;

  --text-xs:            0.7rem;
  --text-sm:            0.875rem;
  --text-md:            1rem;
  --text-lg:            1.1rem;
  --text-label:         0.7rem;
  --text-label-spacing: 0.2em;

  /* ── BORDER RADIUS ──────────────────────────────────────── */
  --radius-sm:          0.75rem;
  --radius-lg:          1.5rem;
  --radius-full:        9999px;

  /* ── ANIMATIONEN ────────────────────────────────────────── */
  --transition-base:    0.3s ease;
  --transition-smooth:  0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ── MOBILE: Abstände automatisch kleiner ───────────────────── */
@media (max-width: 768px) {
  :root {
    --space-section-y:  3rem;
    --space-section-x:  1.5rem;
    --space-card:       1.5rem;
    --space-stack-xl:   2rem;
    --space-hero-right: 0rem;
    --space-hero-top:   6rem;
  }
}


/* ============================================================
   BASE RESET & GLOBAL
   ============================================================ */

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

html, body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-base);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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


/* ============================================================
   LAYOUT — CONTAINER & SECTIONS
   ============================================================ */

.section {
  padding: var(--space-section-y) var(--space-section-x);
}

.section--dark {
  background: var(--color-bg-section);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

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

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

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  max-width: var(--container-max);
  margin: 0 auto;
}


/* ============================================================
   HERO GRID — .grid-2-1 (exakt wie DPM, Karriere, News usw.)
   ============================================================ */

.grid-2-1 {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-grid-gap);
  align-items: start;
  padding-right: var(--space-hero-right);
}

@media (max-width: 1024px) {
  .grid-2-1 {
    grid-template-columns: 1fr;
    padding-right: 0;
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 700px) {
  .grid-2 { grid-template-columns: 1fr; }
}


/* ============================================================
   TYPOGRAFIE
   ============================================================ */

.fluid-h1 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.fluid-h2 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.label {
  font-size: var(--text-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--text-label-spacing);
  color: var(--color-muted);
  display: block;
  margin-bottom: var(--space-stack-md);
}

.text-gold  { color: var(--color-gold); }
.text-muted { color: var(--color-muted); }


/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-base);
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  text-decoration: none;
}

.btn--gold {
  background: var(--color-gold);
  color: var(--color-bg);
}
.btn--gold:hover {
  background: var(--color-gold-hover);
  transform: scale(1.02);
}

.btn--white {
  background: #fff;
  color: var(--color-bg);
}
.btn--white:hover { background: var(--color-gold); }

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


/* ============================================================
   CARDS
   ============================================================ */

.card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-card);
  transition: all var(--transition-smooth);
}

.card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--color-border-gold);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card--highlight {
  background: linear-gradient(135deg, rgba(197,160,89,0.08), rgba(255,255,255,0.02));
  border-color: var(--color-border-gold);
}

/* Info-Zeile innerhalb von Cards */
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
}

/* Icon Box */
.icon-box {
  width: 3.5rem;
  height: 3.5rem;
  min-width: 3.5rem;
  background: rgba(197, 160, 89, 0.15);
  border: 1px solid var(--color-border-gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ============================================================
   TAGS & BADGES
   ============================================================ */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-muted);
}

.tag--gold {
  background: rgba(197, 160, 89, 0.05);
  border-color: var(--color-border-gold);
  color: var(--color-gold);
}


/* ============================================================
   NAVBAR
   ============================================================ */

.navbar {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(24px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  width: auto;
  max-width: 900px;
}

.navbar__logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.navbar__links {
  display: flex;
  gap: 2rem;
}

.navbar__links a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-muted);
  transition: color var(--transition-base);
}

.navbar__links a:hover,
.navbar__links a.active { color: var(--color-text); }

@media (max-width: 768px) {
  .navbar {
    width: calc(100% - 2rem);
    left: 1rem;
    transform: none;
  }
  .navbar__links { display: none; }
}


/* ============================================================
   MOBILE OVERLAY
   ============================================================ */

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.98);
  backdrop-filter: blur(40px);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-overlay a {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text);
}

.mobile-overlay a:hover { color: var(--color-gold); }


/* ============================================================
   BACK LINK (← Zurück zur Hauptseite)
   ============================================================ */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-muted);
  margin-bottom: var(--space-stack-xl);
  transition: color var(--transition-base);
}

.back-link:hover { color: var(--color-text); }


/* ============================================================
   STATS / ZAHLEN
   ============================================================ */

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold);
}

.stat-divider {
  width: 1px;
  background: var(--color-border);
  align-self: stretch;
}


/* ============================================================
   FILTER PILLS (Karriere, News)
   ============================================================ */

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-muted);
  user-select: none;
  font-family: var(--font-base);
}

.filter-pill:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-text);
}

.filter-pill.active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: #050505;
}


/* ============================================================
   FORMS (Kontakt)
   ============================================================ */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: var(--space-stack-md);
}

.form-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
}

.form-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1.25rem;
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: var(--text-sm);
  outline: none;
  transition: border-color var(--transition-base);
  width: 100%;
}

.form-input:focus { border-color: var(--color-border-gold); }
.form-input::placeholder { color: var(--color-muted); }

textarea.form-input {
  resize: vertical;
  min-height: 130px;
}

select.form-input option {
  background: #1a1a1a;
  color: var(--color-text);
}


/* ============================================================
   TIMELINE (Historie)
   ============================================================ */

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--color-gold), rgba(197,160,89,0.05));
}

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
  padding-left: 2rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-gold);
  border: 2px solid var(--color-bg);
  box-shadow: 0 0 0 3px rgba(197,160,89,0.25), 0 0 20px rgba(197,160,89,0.3);
  transform: translateX(-6px);
}

.timeline-dot--large {
  width: 18px;
  height: 18px;
  top: 0.2rem;
  box-shadow: 0 0 0 4px rgba(197,160,89,0.3), 0 0 30px rgba(197,160,89,0.4);
}

.timeline-date {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.timeline-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-card);
  transition: all var(--transition-smooth);
}

.timeline-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--color-border-gold);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.timeline-card--gold {
  background: linear-gradient(135deg, rgba(197,160,89,0.08), rgba(255,255,255,0.02));
  border-color: var(--color-border-gold);
}


/* ============================================================
   NEWS CARDS
   ============================================================ */

.news-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-smooth);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--color-border-gold);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.news-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.news-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card__cat {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  background: rgba(197, 160, 89, 0.1);
  border: 1px solid var(--color-border-gold);
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
  width: fit-content;
}

.news-card__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.6rem;
}

.news-card__excerpt {
  font-size: var(--text-xs);
  color: var(--color-muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1rem;
}

.news-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--color-muted);
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}


/* ============================================================
   CTA SECTION (vor Footer, auf jeder Unterseite)
   ============================================================ */

.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--space-card) * 1.4);
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 16rem;
  height: 16rem;
  background: rgba(197, 160, 89, 0.08);
  filter: blur(60px);
  border-radius: 50%;
  pointer-events: none;
}


/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  padding: var(--space-stack-xl) var(--space-section-x);
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copy {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.3);
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--transition-base);
}

.footer__links a:hover { color: var(--color-text); }


/* ============================================================
   ANIMATIONS
   ============================================================ */

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

.fade-up   { animation: fadeUp 0.7s ease forwards; }
.fade-up-2 { animation: fadeUp 0.7s 0.1s ease both; }
.fade-up-3 { animation: fadeUp 0.7s 0.2s ease both; }
