/* ============================================================
   PRAKTIKO - style_components-footer.css
   Site-Footer: CTA-Karte, Grid, Links, Bottom-Bar, Social-Buttons
   Extrahiert aus style_global.css (siehe technische_dokumentation.md)
   ============================================================ */

/* ============================================================
   FOOTER (REDESIGNED FOR PC & MOBILE)
   ============================================================ */
.site-footer {
  background: #090d16;
  background: radial-gradient(circle at 50% -20%, #151f33 0%, #090d16 80%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
  padding: var(--space-12) 0 var(--space-6);
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.4) 30%, rgba(13, 148, 136, 0.3) 70%, transparent 100%);
  pointer-events: none;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* --- Pre-Footer Action Card --- */
.footer-cta-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl, 1.75rem);
  padding: var(--space-8) var(--space-10);
  margin-bottom: var(--space-12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.footer-cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.footer-cta-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 620px;
}

.footer-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  font-weight: var(--weight-semi, 600);
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 9999px;
  padding: 4px 12px;
  margin-bottom: var(--space-3);
  letter-spacing: 0.02em;
}

.footer-cta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #60a5fa;
  box-shadow: 0 0 8px #60a5fa;
}

.footer-cta-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold, 700);
  color: #ffffff;
  margin: 0 0 var(--space-2);
  line-height: 1.3;
}

.footer-cta-desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  line-height: 1.55;
}

.footer-cta-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-semi, 600);
  padding: 10px 20px;
  border-radius: var(--radius-md, 0.75rem);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  white-space: nowrap;
}

.footer-btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.footer-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
}

.footer-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  color: #ffffff;
}

/* --- Footer Main Grid --- */
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 2.7fr;
  gap: var(--space-12);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Brand Column */
.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.footer-logo-img {
  height: 34px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  transition: opacity 0.2s ease;
}

.footer-logo-img:hover {
  opacity: 1;
}

.footer-tagline {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  max-width: 320px;
}

.footer-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.7);
  margin-top: var(--space-2);
}

.footer-heart {
  color: #ef4444;
  display: inline-block;
  animation: heartPulse 2s infinite ease-in-out;
}

@keyframes heartPulse {

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

  50% {
    transform: scale(1.15);
  }
}

/* Navigation Columns Grid */
.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.footer-col {
  display: block;
}

.footer-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold, 700);
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-chevron {
  display: none;
  color: rgba(255, 255, 255, 0.4);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-col.is-open .footer-chevron {
  transform: rotate(180deg);
}

/* Links List */
.footer-col-body {
  display: block;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-list a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-nav-list a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

/* Cookie-Einstellungen (Auswahl aendern/widerrufen) — wie ein Link, aber Button */
.footer-nav-list .footer-wahl-btn {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.footer-nav-list .footer-wahl-btn:hover {
  color: #ffffff;
}

.footer-nav-list .footer-wahl-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Bottom Bar --- */
.footer-bottom {
  padding-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.45);
}

.footer-social-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.social-btn {
  position: relative;
  isolation: isolate;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Instagram-Gradient liegt in einer Pseudo-Element-Ebene, damit der Hover
   sauber ein-/ausblendet statt den Hintergrund zu interpolieren (spinnt sonst). */
.social-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, #fdf497 0%, #fd5949 35%, #d6249f 65%, #285aeb 100%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.social-btn:hover,
.social-btn:focus-visible {
  transform: translateY(-2px);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 6px 18px rgba(214, 36, 159, 0.35);
}

.social-btn:hover::before,
.social-btn:focus-visible::before {
  opacity: 1;
}

.social-btn:active {
  transform: translateY(0) scale(0.96);
}

/* TikTok: eigener Hover-Gradient statt Instagram-Farben. */
.social-tt::before {
  background: linear-gradient(135deg, #25f4ee 0%, #010101 45%, #fe2c55 100%);
}

.social-tt:hover,
.social-tt:focus-visible {
  box-shadow: 0 6px 18px rgba(37, 244, 238, 0.3);
}

.footer-back-to-top {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.footer-back-to-top:hover {
  background: var(--color-primary, #2563eb);
  border-color: var(--color-primary, #2563eb);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

/* ============================================================
   RESPONSIVE FOOTER (MOBILE & TABLET)
   ============================================================ */
@media (max-width: 992px) {
  .footer-cta-card {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-6) var(--space-6);
    gap: var(--space-6);
  }

  .footer-cta-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }

  .footer-brand-col {
    max-width: 100%;
  }

  .footer-tagline {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: var(--space-8) 0 var(--space-6);
  }

  .footer-container {
    padding: 0 var(--space-4);
  }

  .footer-cta-card {
    border-radius: var(--radius-lg, 1.25rem);
    margin-bottom: var(--space-8);
  }

  .footer-cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .footer-cta-actions .footer-btn {
    width: 100%;
  }

  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-col {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--space-3) 0;
  }

  .footer-col-header {
    cursor: pointer;
    margin-bottom: 0;
    padding: var(--space-2) 0;
    user-select: none;
  }

  .footer-chevron {
    display: block;
  }

  /* Collapsed by default on mobile with smooth transition */
  .footer-col-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, margin 0.25s ease;
  }

  .footer-col.is-open .footer-col-body {
    max-height: 300px;
    opacity: 1;
    margin-top: var(--space-3);
  }

  .footer-nav-list {
    padding-left: var(--space-2);
    gap: 12px;
  }

  .footer-nav-list a {
    padding: 4px 0;
    font-size: 0.925rem;
  }

  .footer-nav-list .footer-wahl-btn {
    padding: 4px 0;
    font-size: 0.925rem;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: var(--space-5);
  }

  .footer-social-wrapper {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .footer-col ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-4);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}