
/* __DESIGN_SITE__ */
/* =====================================================================
   partnertausch-mit-sex.de — direction : vert émeraude + blanc
   Header « carte » flottante avec ombre / Footer sombre
   Ne touche qu'à header/footer (et leurs enfants). Gabarit : Next/Tailwind.
   ===================================================================== */

/* ---------- HEADER ---------- */

header.sticky {
  /* fond légèrement teinté derrière la carte, la couleur pink du site
     (posée en inline par la config) est neutralisée ici */
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 65%) !important;
  border-bottom: 0 !important;
  padding-bottom: 10px;
}

/* la carte blanche flottante : c'est le conteneur interne du header */
header.sticky .container {
  position: relative;
  background: #ffffff;
  padding-top: 8px;
  padding-bottom: 8px;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 10px 24px -12px rgba(6, 95, 70, 0.35), 0 2px 6px rgba(6, 95, 70, 0.12);
  animation: pt-card-in 0.5s ease-out both;
}

/* à partir de tablette : la carte se détache vraiment du bord */
@media (min-width: 768px) {
  header.sticky {
    padding: 12px 12px 16px;
  }
  header.sticky .container {
    width: auto;
    max-width: 1120px;
    margin: 0 auto;
    border-radius: 18px;
  }
}

/* liseré émeraude animé en haut de la carte */
header.sticky .container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, #10b981, #34d399, #059669, #10b981);
  background-size: 200% 100%;
  animation: pt-shimmer 5s linear infinite;
}

@keyframes pt-card-in {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pt-shimmer {
  from { background-position: 0% 0; }
  to   { background-position: 200% 0; }
}

/* logo : couleur émeraude imposée sur la couleur inline pink d'origine,
   soulignement animé (pseudo-élément, ne touche pas au transform déjà
   posé par Tailwind pour le centrage du logo mobile) */
header.sticky a[href="/"] {
  color: #065f46 !important;
  position: relative;
  letter-spacing: 0.01em;
}
header.sticky a[href="/"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #10b981, #059669);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
header.sticky a[href="/"]:hover::after {
  transform: scaleX(1);
}

/* lien de navigation "Top 10 Bundesländer" */
header.sticky nav button {
  color: #065f46;
  border-radius: 999px;
  padding: 8px 12px;
  transition: background-color 0.25s ease, color 0.25s ease;
}
header.sticky nav button:hover {
  background: #ecfdf5;
  color: #047857;
}

/* boutons icônes (menu, login, recherche) : cible de touch confortable
   et cohérente, sans changer leur `display` d'origine */
header.sticky .p-2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
header.sticky .p-2:hover {
  background: #ecfdf5;
  color: #047857 !important;
  transform: translateY(-1px) scale(1.05);
}

/* bouton "Mitgliederbereich" (mobile) : c'est le CTA du header,
   rendu visible sous forme de pastille pleine, ≥44px de haut */
header.sticky button:has(span) {
  background: #047857;
  color: #ffffff !important;
  padding: 10px 16px;
  min-height: 44px;
  border-radius: 999px;
  box-shadow: 0 4px 10px -4px rgba(4, 120, 87, 0.55);
  transition: background-color 0.25s ease, transform 0.2s ease;
}
header.sticky button:has(span):hover {
  background: #065f46;
  transform: translateY(-1px);
}
header.sticky button:has(span) svg {
  color: #ffffff;
}

/* rendu correct aussi en thème sombre du système (le gabarit prévoit
   des variantes dark: sur certains liens de nav) */
@media (prefers-color-scheme: dark) {
  header.sticky nav button {
    color: #047857;
  }
  header.sticky nav button:hover {
    color: #065f46;
    background: #d1fae5;
  }
}

/* ---------- FOOTER ---------- */

footer.border-t,
footer.bg-zinc-50 {
  position: relative;
  background: #0b2318 !important;
  border-top: 0 !important;
}

/* liseré émeraude animé en haut du footer, écho de celui du header */
footer.border-t::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #059669, #34d399, #10b981, #059669);
  background-size: 200% 100%;
  animation: pt-shimmer 6s linear infinite;
}

/* nom du site en tête de footer */
footer h3[style] {
  color: #6ee7b7 !important;
}
footer p.text-sm.text-zinc-600,
footer p.text-xs.text-zinc-500 {
  color: #9fc7b3 !important;
}

/* intitulés de colonnes (Navigation, Rechtliche Hinweise, Bundesländer) */
footer h3.text-zinc-900 {
  color: #34d399;
}

/* liens du footer : soulignement animé qui glisse à droite au survol */
footer a.text-zinc-600 {
  color: #cfe7dc;
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease;
}
footer a.text-zinc-600::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: #34d399;
  transition: width 0.25s ease;
}
footer a.text-zinc-600:hover {
  color: #ffffff;
  transform: translateX(2px);
}
footer a.text-zinc-600:hover::after {
  width: 100%;
}

/* ligne de séparation basse + texte légal */
footer .border-t.border-zinc-200 {
  border-top-color: rgba(52, 211, 153, 0.25) !important;
}
footer .text-zinc-500 {
  color: #8fb3a2 !important;
}

/* ---------- accessibilité ---------- */
@media (prefers-reduced-motion: reduce) {
  header.sticky .container,
  header.sticky .container::before,
  footer.border-t::before,
  header.sticky a[href="/"]::after,
  header.sticky .p-2,
  header.sticky button:has(span),
  footer a.text-zinc-600 {
    animation: none !important;
    transition: none !important;
  }
}
/* __END_DESIGN_SITE__ */
