/* ============================================================
   GQ Footer v2 — globale Footer-Komponente fuer alle Seiten.
   Eingebunden via <link> aus templates/partials/footer.html.
   ============================================================ */

.gq-footer, .gq-footer * { box-sizing: border-box; }

.gq-footer {
  position: relative;
  background: linear-gradient(180deg, #0a0118 0%, #1a0633 100%);
  color: #fff;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.6;
  padding: 0;
  text-align: left;
  border-top: 0;
  margin-top: 80px;
}

/* Energieschiene am oberen Rand */
.gq-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(124,58,237,.8) 20%,
    rgba(236,72,153,.9) 50%,
    rgba(124,58,237,.8) 80%,
    transparent 100%);
  background-size: 200% 100%;
  animation: gq-energy-line 6s linear infinite;
  box-shadow: 0 0 12px rgba(168,85,247,.6);
  z-index: 2;
}
@keyframes gq-energy-line {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Mesh-Glow */
.gq-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(124,58,237,.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(236,72,153,.06) 0%, transparent 50%);
  pointer-events: none;
}

/* Hintergrund-Sterne */
.gq-footer .gq-stars {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: .4;
}
.gq-footer .gq-star {
  position: absolute;
  width: 2px; height: 2px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(255,255,255,.6);
  animation: gq-twinkle 3s ease-in-out infinite;
}
@keyframes gq-twinkle {
  0%, 100% { opacity: .3; transform: scale(1); }
  50%      { opacity: .9; transform: scale(1.2); }
}

.gq-footer-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  z-index: 1;
}

/* ============ Trust Bar ============ */
.gq-trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(124,58,237,.15);
}
.gq-trust-block {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(124,58,237,.15);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: all .3s cubic-bezier(.4,0,.2,1);
  cursor: pointer;
}
.gq-trust-block:hover {
  transform: translateY(-2px);
  border-color: rgba(124,58,237,.5);
  background: rgba(124,58,237,.06);
  box-shadow: 0 8px 24px -8px rgba(124,58,237,.4);
}
.gq-trust-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.gq-swiss-cross {
  width: 36px; height: 36px;
  background: #DA291C;
  border-radius: 6px;
  position: relative;
}
.gq-swiss-cross::before,
.gq-swiss-cross::after {
  content: '';
  position: absolute;
  background: #fff;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.gq-swiss-cross::before { width: 60%; height: 16%; }
.gq-swiss-cross::after  { width: 16%; height: 60%; }
.gq-academic-icon {
  background: linear-gradient(135deg, rgba(124,58,237,.2), rgba(236,72,153,.15));
  border: 1px solid rgba(124,58,237,.4);
  color: #A78BFA;
}
.gq-lock-icon {
  background: linear-gradient(135deg, rgba(16,185,129,.2), rgba(16,185,129,.1));
  border: 1px solid rgba(16,185,129,.4);
  color: #10B981;
}
.gq-trust-text { flex: 1; min-width: 0; }
.gq-trust-headline { font-size: 14px; font-weight: 600; color: #fff; margin: 0 0 2px; }
.gq-trust-subline  { font-size: 12px; color: #9CA3AF; line-height: 1.4; }

/* ============ Main Grid ============ */
.gq-main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding: 48px 0;
  border-bottom: 1px solid rgba(124,58,237,.15);
}
.gq-brand-col .gq-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.gq-brand-logo svg.gq-footer-logo {
  display: block;
  height: 50px;
  width: auto;
  max-width: 100%;
}
.gq-brand-tagline {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: #A78BFA;
  margin: 0 0 14px;
  font-weight: 500;
}
.gq-brand-description {
  font-size: 13px;
  color: #9CA3AF;
  line-height: 1.6;
  max-width: 420px;
  margin: 0;
}

.gq-link-col h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: #A78BFA;
  margin: 0 0 18px;
  font-weight: 500;
}
.gq-link-col ul { list-style: none; padding: 0; margin: 0; }
.gq-link-col li { margin: 0 0 12px; }
.gq-footer .gq-link-col a {
  color: #9CA3AF;
  text-decoration: none;
  font-size: 13px;
  transition: all .2s ease;
  display: inline-block;
  position: relative;
  margin: 0;
}
.gq-footer .gq-link-col a:hover {
  color: #fff;
  transform: translateX(2px);
}
.gq-link-col a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: linear-gradient(90deg, #A78BFA, #EC4899);
  transition: width .3s ease;
}
.gq-link-col a:hover::after { width: 100%; }
.gq-link-badge {
  display: inline-block;
  padding: 1px 6px;
  background: linear-gradient(135deg, rgba(124,58,237,.2), rgba(236,72,153,.15));
  border: 1px solid rgba(124,58,237,.3);
  border-radius: 4px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #C4B5FD;
  margin-left: 6px;
  vertical-align: middle;
}

/* ============ Contact Bar ============ */
.gq-contact-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  gap: 24px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(124,58,237,.15);
}
.gq-contact-links { display: flex; gap: 20px; flex-wrap: wrap; }
.gq-footer .gq-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9CA3AF;
  text-decoration: none;
  font-size: 13px;
  transition: color .2s ease;
  margin: 0;
}
.gq-footer .gq-contact-link:hover { color: #fff; }
.gq-contact-link svg { width: 16px; height: 16px; }

.gq-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9CA3AF;
  font-size: 12px;
}
.gq-status-dot {
  width: 8px; height: 8px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(16,185,129,.6);
  animation: gq-status-pulse 2s ease-in-out infinite;
}
@keyframes gq-status-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .5; }
}

/* ============ Bottom Bar ============ */
.gq-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.gq-copyright   { font-size: 12px; color: #6B7280; }
.gq-legal-links { display: flex; gap: 16px; font-size: 12px; align-items: center; }
.gq-footer .gq-legal-links a {
  color: #6B7280;
  text-decoration: none;
  transition: color .2s ease;
  margin: 0;
}
.gq-footer .gq-legal-links a:hover { color: #A78BFA; }
.gq-legal-divider { color: #4B5563; }

.gq-lang-switcher {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(124,58,237,.15);
  border-radius: 8px;
}
.gq-lang-btn {
  padding: 4px 10px;
  background: transparent;
  border: none;
  color: #6B7280;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: all .2s ease;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-family: inherit;
}
.gq-lang-btn:hover { color: #fff; }
.gq-lang-btn.active {
  background: linear-gradient(135deg, rgba(124,58,237,.2), rgba(236,72,153,.15));
  color: #fff;
  border: 1px solid rgba(124,58,237,.3);
}
.gq-lang-btn.disabled,
.gq-lang-btn[disabled] {
  opacity: .4;
  cursor: not-allowed;
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .gq-trust-bar  { grid-template-columns: 1fr; gap: 12px; }
  .gq-main-grid  { grid-template-columns: 1fr; gap: 32px; }
  .gq-contact-bar,
  .gq-bottom-bar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .gq-footer-inner { padding: 0 16px; }
  .gq-trust-block  { padding: 14px 16px; }
  .gq-main-grid    { padding: 32px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .gq-footer::before,
  .gq-footer .gq-star,
  .gq-status-dot { animation: none !important; }
}
