/* ============================================================
   HRTIME FOOTER – hrtime-footer.css
   Version: 1.0 | April 2026
   Prefix: hrt-ft-
   
   Design-Token-Basis: funktionen-styles.css (--hrt-ls-*)
   Farben:
     - CTA Strip:  #5272C5 → #3558b5 → #0B1933 (Blau-Gradient)
     - Main Footer: #0B1933 (Primary Dark)
     - Bottom Bar:  #060f1e
     - Accent:     #5272C5 (Blau, kein Orange)
     - Trust-Dots/Divider: #5272C5 (Blau statt Orange hier)
   
   Breakpoints: 1024px, 768px, 480px
   ============================================================ */


/* ===========================================
   LOCAL TOKENS (erben vom Root, aber nur Footer-spezifisch)
   =========================================== */
.hrt-ft,
.hrt-ft-cta {
  --hrt-ft-blue: #5272C5;
  --hrt-ft-blue-deep: #3558b5;
  --hrt-ft-dark: #0B1933;
  --hrt-ft-dark-mid: #1A2B44;
  --hrt-ft-bar: #060f1e;
  --hrt-ft-white: #ffffff;
  --hrt-ft-muted: rgba(255, 255, 255, 0.6);
  --hrt-ft-muted-mid: rgba(255, 255, 255, 0.75);
  --hrt-ft-border: rgba(255, 255, 255, 0.08);
  --hrt-ft-font: 'Montserrat', sans-serif;
  --hrt-ft-gradient: linear-gradient(135deg, #5272C5 0%, #3558b5 55%, #0B1933 100%);
  --hrt-ft-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ===========================================
   ZONE 1: PRE-FOOTER CTA STRIP
   =========================================== */
.hrt-ft-cta {
  background: var(--hrt-ft-gradient);
  padding: 90px 20px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Floating Shapes */
.hrt-ft-cta-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hrt-ft-cta-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.hrt-ft-cta-shape--1 {
  width: 450px;
  height: 450px;
  top: -220px;
  right: -80px;
  animation: hrt-ft-float 9s ease-in-out infinite;
}

.hrt-ft-cta-shape--2 {
  width: 280px;
  height: 280px;
  bottom: -120px;
  left: -60px;
  animation: hrt-ft-float 11s ease-in-out infinite reverse;
}

.hrt-ft-cta-shape--3 {
  width: 160px;
  height: 160px;
  top: 35%;
  left: 18%;
  background: rgba(255, 255, 255, 0.05);
  animation: hrt-ft-float 7s ease-in-out infinite;
}

@keyframes hrt-ft-float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

/* CTA Container */
.hrt-ft-cta-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Badge (wie hrt-ls-hero-badge) */
.hrt-ft-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 22px;
  border-radius: 50px;
  font-family: var(--hrt-ft-font);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--hrt-ft-white);
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hrt-ft-cta-badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: hrt-ft-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes hrt-ft-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.8;
  }
}

/* CTA Headline */
.hrt-ft-cta h2 {
  font-family: var(--hrt-ft-font) !important;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem) !important;
  font-weight: 700 !important;
  color: var(--hrt-ft-white) !important;
  line-height: 1.25 !important;
  margin-bottom: 16px !important;
  margin-block-end: 16px !important;
}

.hrt-ft-text-light {
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 2px;
}

/* CTA Divider (weiß, wie hrt-ls-divider--light) */
.hrt-ft-cta-divider {
  width: 180px;
  height: 3px;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.4) 0%,
      rgba(255, 255, 255, 0.85) 50%,
      rgba(255, 255, 255, 0.4) 100%);
  border-radius: 2px;
  margin: 0 auto 24px;
  overflow: hidden;
  position: relative;
}

.hrt-ft-cta-divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: hrt-ft-shine 3s ease-in-out infinite;
}

@keyframes hrt-ft-shine {
  0% {
    left: -100%;
  }

  50%,
  100% {
    left: 100%;
  }
}

/* CTA Subtext */
.hrt-ft-cta p {
  font-family: var(--hrt-ft-font);
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
  margin: 0 auto 32px !important;
}

/* Buttons */
.hrt-ft-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

/* Primary: weißer Button, blauer Text */
.hrt-ft-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--hrt-ft-white);
  color: var(--hrt-ft-blue) !important;
  border: none;
  padding: 17px 38px;
  border-radius: 50px;
  font-family: var(--hrt-ft-font);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
  transition: var(--hrt-ft-transition);
}

.hrt-ft-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  color: var(--hrt-ft-blue) !important;
  text-decoration: none !important;
}

.hrt-ft-cta-primary:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

/* Secondary: Ghost */
.hrt-ft-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--hrt-ft-white) !important;
  border: 2px solid rgba(255, 255, 255, 0.45);
  padding: 15px 34px;
  border-radius: 50px;
  font-family: var(--hrt-ft-font);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  transition: var(--hrt-ft-transition);
}

.hrt-ft-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--hrt-ft-white) !important;
  text-decoration: none !important;
}

.hrt-ft-cta-secondary:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

/* Trust Items */
.hrt-ft-cta-trust {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hrt-ft-cta-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--hrt-ft-font);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.hrt-ft-cta-trust-item i {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
}


/* ===========================================
   ZONE 2: HAUPT-FOOTER
   =========================================== */
.hrt-ft {
  background: var(--hrt-ft-dark);
  font-family: var(--hrt-ft-font);
}

.hrt-ft-main {
  padding: 70px 20px 50px;
  border-bottom: 1px solid var(--hrt-ft-border);
}

.hrt-ft-main-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr 1.2fr 1fr 1fr;
  gap: 40px 30px;
  align-items: start;
}

/* ─── Spalte 1: Brand ─── */
.hrt-ft-col--brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hrt-ft-logo-link {
  display: inline-block;
  text-decoration: none !important;
}

.hrt-ft-logo {
  height: auto;
  width: 200px;
  max-width: 100%;
  transition: opacity 0.25s ease;
  opacity: 1;
}

.hrt-ft-logo:hover {
  opacity: 0.88;
}

/* Unternehmens-Kurztext (LLM-Entity-Signal) */
.hrt-ft-brand-desc {
  font-family: var(--hrt-ft-font);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--hrt-ft-muted);
  margin: 0 !important;
  padding: 0 !important;
}

/* Trust Badges */
.hrt-ft .hrt-ft-col--brand .hrt-ft-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px !important;
}

.hrt-ft .hrt-ft-col--brand .hrt-ft-badge {
  display: flex;
  align-items: center;
  gap: 10px !important;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hrt-ft-border);
  border-radius: 8px;
  padding: 7px 10px !important;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  transition: var(--hrt-ft-transition);
}

.hrt-ft .hrt-ft-col--brand .hrt-ft-badge:hover {
  background: rgba(82, 114, 197, 0.15);
  border-color: rgba(82, 114, 197, 0.3);
  color: var(--hrt-ft-white);
}

.hrt-ft .hrt-ft-col--brand .hrt-ft-badge i {
  font-size: 0.85rem;
  color: var(--hrt-ft-blue);
  flex-shrink: 0;
}

/* Social Icons */
.hrt-ft-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hrt-ft-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--hrt-ft-border);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.9rem;
  text-decoration: none !important;
  transition: var(--hrt-ft-transition);
}

.hrt-ft-social-link:hover {
  background: var(--hrt-ft-blue);
  border-color: var(--hrt-ft-blue);
  color: var(--hrt-ft-white) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(82, 114, 197, 0.35);
}

.hrt-ft-social-link:focus-visible {
  outline: 2px solid var(--hrt-ft-blue);
  outline-offset: 2px;
}

/* ─── Navigation Spalten ─── */
.hrt-ft-col--nav {
  display: flex;
  flex-direction: column;
}

/* Toggle Button (Desktop: vollständig ausgeblendet, Mobile: aktiv) */
.hrt-ft-col-toggle {
  all: unset;
  display: none;
  /* Desktop: kein Button – nur hrt-ft-col-title sichtbar */
  cursor: default;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  padding: 0;
  pointer-events: none;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Spalten-Überschriften */
.hrt-ft-col-title {
  font-family: var(--hrt-ft-font) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: var(--hrt-ft-white) !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  margin: 0 0 16px 0 !important;
  margin-block-end: 16px !important;
  line-height: 1.3 !important;
}

.hrt-ft-col-title--mt {
  margin-top: 28px !important;
}

/* Chevron (Desktop unsichtbar) */
.hrt-ft-chevron {
  display: none;
}

/* Nav Lists */
.hrt-ft-nav-list {
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hrt-ft-nav-list li {
  margin: 0 !important;
  padding: 0 !important;
}

.hrt-ft-nav-list a {
  display: block;
  font-family: var(--hrt-ft-font);
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65) !important;
  text-decoration: none !important;
  padding: 5px 0;
  line-height: 1.5;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.hrt-ft-nav-list a:hover {
  color: var(--hrt-ft-white) !important;
  padding-left: 6px;
}

.hrt-ft-nav-list a:focus-visible {
  outline: 2px solid var(--hrt-ft-blue);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Sub-Navigation (Ressourcen unter Lösungen) */
.hrt-ft-subnav {
  margin-top: 0;
}

/* ─── Spalte 5: Kontakt ─── */
.hrt-ft-col--contact {
  display: flex;
  flex-direction: column;
}

.hrt-ft-contact-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hrt-ft-address {
  font-style: normal;
}

.hrt-ft-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--hrt-ft-font);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

/* Trennlinie oben – dezent, Farbe der Icons */
.hrt-ft-contact-item--divider-top {
  padding-top: 14px;
  border-top: 1px solid rgba(82, 114, 197, 0.28);
  margin-top: 2px;
}

.hrt-ft-contact-item i {
  font-size: 0.9rem;
  color: var(--hrt-ft-blue);
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

.hrt-ft-contact-item a {
  color: rgba(255, 255, 255, 0.65) !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.hrt-ft-contact-item a:hover {
  color: var(--hrt-ft-white) !important;
}

.hrt-ft-contact-item a:focus-visible {
  outline: 2px solid var(--hrt-ft-blue);
  outline-offset: 2px;
  border-radius: 3px;
}

.hrt-ft-contact-item--tv {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--hrt-ft-border);
}


/* ===========================================
   ZONE 3: BOTTOM BAR
   =========================================== */
.hrt-ft-bar {
  background: var(--hrt-ft-bar);
  padding: 18px 20px;
}

.hrt-ft-bar-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.hrt-ft-copyright {
  font-family: var(--hrt-ft-font);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.hrt-ft-copyright a {
  font-size: 0.78rem !important;
  color: rgba(255, 255, 255, 0.55) !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.hrt-ft-copyright a:hover {
  color: rgba(255, 255, 255, 0.9) !important;
}

.hrt-ft-bar-sep {
  color: rgba(255, 255, 255, 0.2);
}

/* Legal Navigation */
.hrt-ft-legal {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.hrt-ft-legal a {
  font-family: var(--hrt-ft-font);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4) !important;
  text-decoration: none !important;
  padding: 4px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.2s ease;
  line-height: 1.4;
}

.hrt-ft-legal a:last-child {
  border-right: none;
  padding-right: 0;
}

.hrt-ft-legal a:hover {
  color: rgba(255, 255, 255, 0.85) !important;
}

.hrt-ft-legal a:focus-visible {
  outline: 2px solid var(--hrt-ft-blue);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Cookie-Link: wie legal a-Tags stylen */
.hrt-ft-cookie-btn {
  font-family: var(--hrt-ft-font);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4) !important;
  text-decoration: none !important;
  padding: 4px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.2s ease;
  line-height: 1.4;
  cursor: pointer;
  background: none;
  border-top: none;
  border-bottom: none;
  border-left: none;
}

.hrt-ft-cookie-btn:hover {
  color: rgba(255, 255, 255, 0.85) !important;
}

.hrt-ft-cookie-btn:focus-visible {
  outline: 2px solid var(--hrt-ft-blue);
  outline-offset: 2px;
  border-radius: 3px;
}


/* ===========================================
   ACCORDION: COLLAPSED STATE
   (nur unter 768px, via JS gesteuert)
   =========================================== */
.hrt-ft-collapsed {
  display: none !important;
}


/* ===========================================
   RESPONSIVE: TABLET (≤1024px)
   =========================================== */
@media (max-width: 1024px) {
  .hrt-ft-main-inner {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 36px 28px;
  }

  .hrt-ft-col--brand {
    grid-column: 1 / -1;
    /* Volle Breite oben */
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 24px 40px;
  }

  .hrt-ft-brand-desc {
    max-width: 460px;
  }
}


/* ===========================================
   RESPONSIVE: MOBILE (≤768px) – Accordion aktiv
   =========================================== */
@media (max-width: 768px) {

  /* CTA Strip */
  .hrt-ft-cta {
    padding: 60px 20px;
  }

  .hrt-ft-cta h2 {
    font-size: clamp(1.5rem, 5vw, 1.9rem) !important;
  }

  .hrt-ft-cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hrt-ft-cta-primary,
  .hrt-ft-cta-secondary {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    padding: 16px 28px;
  }

  .hrt-ft-cta-trust {
    gap: 14px;
  }

  .hrt-ft-cta-trust-item {
    font-size: 0.78rem;
  }

  /* Footer Grid: einspaltiger Stack */
  .hrt-ft-main {
    padding: 48px 16px 40px;
  }

  .hrt-ft-main-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Brand Spalte: kompakter */
  .hrt-ft-col--brand {
    flex-direction: column;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--hrt-ft-border);
    margin-bottom: 8px;
  }

  .hrt-ft-badges {
    grid-template-columns: 1fr 1fr;
  }

  /* Accordion Toggle: Mobile klickbar, sichtbar, Elementor-Override */
  .hrt-ft-col-toggle {
    display: flex !important;
    cursor: pointer;
    pointer-events: all;
    padding: 14px 16px;
    border-bottom: 1px solid var(--hrt-ft-border);
    user-select: none;
    background: transparent !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
    color: var(--hrt-ft-white) !important;
    font-family: var(--hrt-ft-font) !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
  }

  .hrt-ft-col-toggle:focus-visible {
    outline: 2px solid var(--hrt-ft-blue);
    outline-offset: 2px;
    border-radius: 3px;
  }

  /* Chevron sichtbar auf Mobile */
  .hrt-ft-chevron {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.3s ease;
    flex-shrink: 0;
  }

  .hrt-ft-col-toggle[aria-expanded="true"] .hrt-ft-chevron {
    transform: rotate(180deg);
  }

  /* Titel im Toggle: keine Margin unten wenn Accordion */
  .hrt-ft-col-toggle .hrt-ft-col-title {
    margin-bottom: 0 !important;
  }

  /* Nav-Listen: Padding wenn ausgeklappt */
  .hrt-ft-nav-list:not(.hrt-ft-collapsed) {
    padding: 12px 0 !important;
  }

  .hrt-ft-contact-block:not(.hrt-ft-collapsed) {
    padding: 12px 0 !important;
  }

  /* subnav separator */
  .hrt-ft-subnav {
    border-top: none;
  }

  .hrt-ft-subnav .hrt-ft-col-toggle {
    border-bottom: 1px solid var(--hrt-ft-border);
  }

  /* Col-Title margin top wenn zweite Gruppe */
  .hrt-ft-col-title--mt {
    margin-top: 0 !important;
  }

  /* Bottom Bar */
  .hrt-ft-bar {
    padding: 20px 16px;
  }

  .hrt-ft-bar-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }

  .hrt-ft-legal {
    justify-content: center;
  }

  .hrt-ft-legal a {
    font-size: 0.73rem;
    padding: 4px 8px;
  }
}


/* ===========================================
   RESPONSIVE: SMALL MOBILE (≤480px)
   =========================================== */
@media (max-width: 480px) {

  .hrt-ft-cta {
    padding: 50px 16px;
  }

  .hrt-ft-cta-trust {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .hrt-ft-badges {
    grid-template-columns: 1fr;
  }

  .hrt-ft-social {
    gap: 8px;
  }

  .hrt-ft-legal {
    gap: 0;
  }

  .hrt-ft-legal a {
    padding: 4px 6px;
    font-size: 0.7rem;
  }
}


/* ===========================================
   REDUCED MOTION
   =========================================== */
@media (prefers-reduced-motion: reduce) {

  .hrt-ft-cta-shape,
  .hrt-ft-cta-badge-dot,
  .hrt-ft-cta-divider::after {
    animation: none !important;
  }

  .hrt-ft-cta-primary,
  .hrt-ft-cta-secondary,
  .hrt-ft-social-link,
  .hrt-ft-nav-list a,
  .hrt-ft-badge {
    transition: none !important;
  }
}