/* ============================================================
   CUSTOM.CSS — Ergänzend zu Tailwind (CDN)
   Styling für Friseur-Website (Dark Elegant Theme)
   ============================================================ */

/* === Rootfarben & Grundlayout === */
:root {
  --gold: #B8860B;
  --gold-hover: #FFD700;
  --bg-dark: #101010;
  --bg-card: #181818;
  --text-light: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.85);
}

html,
body {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: 'Poppins', system-ui, sans-serif;
  overflow-x: hidden;
}

/* ======================================
   LINKS & BUTTONS
   ====================================== */
a {
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--gold-hover);
}

button,
.btn-gold {
  background: var(--gold);
  color: #fff;
  border-radius: 1rem;
  padding: 0.75rem 1.25rem;
  transition: background 0.3s ease, transform 0.2s ease;
}
button:hover,
.btn-gold:hover {
  background: #FFFFFF69;
  transform: scale(1.03);
}

/* ======================================
   KARTEN, ABSCHNITTE & BOXEN
   ====================================== */
.card,
.bg-white,
.bg-gray-50,
.bg-gray-100 {
  background-color: var(--bg-card) !important;
  color: var(--text-light) !important;
  border: 1px solid #2A2A2A !important;
  border-radius: 1rem;
}

.text-gray-600,
.text-gray-700,
.text-gray-800 {
  color: var(--text-muted) !important;
}

.shadow {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
}

/* ======================================
   FORMULARELEMENTE
   ====================================== */
input,
textarea,
select {
  background: #161616;
  color: #FFFFFF;
  border: 1px solid #2A2A2A;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  width: 100%;
}
input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--gold);
}

/* ======================================
   HEADER
   ====================================== */
#mainHeader {
  transition: transform 0.5s ease, background-color 0.4s ease, box-shadow 0.4s ease;
}
#mainHeader.hidden {
  transform: translateY(-100%);
}
/* Zustand: ganz oben -> transparent, kein Shadow */
#mainHeader.header-transparent {
  background-color: transparent !important;
  box-shadow: none !important;
}
#mainHeader.header-visible {
  background: #000;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.35);
}
/* Zustand: nach oben scrollen -> komplett schwarzer Hintergrund + weißer Shadow */
#mainHeader.header-solid {
  background-color: #000000 !important;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.35) !important;
}
/* Logo im Header: nicht zuschneiden */
#mainHeader img {
  height: 65px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Menü-Button im Header */
#menuToggle {
  background: transparent;
  padding: 0;
  border-radius: 0;
  cursor: pointer;
}
#menuToggle:hover {
  color: var(--gold);
}

/* ======================================
   FULLSCREEN-OVERLAY-MENÜ
   ====================================== */
#menuOverlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  z-index: 9999;
  display: none; /* wird per JS auf block gesetzt */
}

/* Inneres Layout: Desktop = 2 Spalten (links Bild, rechts Menü) */
.menu-overlay-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: 100%;
  height: 100%;
}

/* Linke Seite: Bild + Titel */
.menu-overlay-left {
  position: relative;
  overflow: hidden;
}
.menu-overlay-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text im Bild zentriert */
.menu-overlay-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff !important;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.menu-overlay-title h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.menu-overlay-title p {
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0.85;
}

/* Rechte Seite: schwarzer Bereich mit Navigation */
.menu-overlay-right {
  position: relative;
  background: #000000;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.35);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 4rem;
}

/* Topbar im Menü (Logo + X) */
.menu-overlay-topbar {
  display: flex;
  width: 100%;
  padding: 1rem 1.5rem;
  align-items: center;
  justify-content: flex-end; /* Desktop: X nach rechts */
  margin-top: 1rem;
}

/* Logo in der Topbar */
.menu-overlay-topbar-logo {
  display: none; /* Desktop: ausgeblendet, wird auf Mobile gezeigt */
  height: 42px;
  width: auto;
  object-fit: contain;
}

/* X-Button */
.menu-overlay-close {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  font-size: 2.5rem;
}

/* Navigation im Overlay */
.menu-overlay-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 1.6rem;
}

/* Links im Menü */
.menu-overlay-nav a {
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: 0.5px;
  transition:
    color 0.25s ease,
    text-shadow 0.25s ease,
    transform 0.25s ease;
}

/* Hover-Effekt: leicht nach rechts + goldener Glow */
.menu-overlay-nav a:hover {
  color: var(--gold) !important;
  transform: translateX(8px);
  text-shadow: 0 0 12px rgba(184, 134, 11, 0.8);
}

/* Aktive Seite: dauerhafter Glow (weiß) */
.menu-overlay-nav a.active-page {
  color: #ffffff !important;
  text-shadow:
    0 0 15px rgb(255, 255, 255),
    0 0 25px rgba(255, 255, 255, 0.75);
}

/* Instagram-Bereich (Desktop: versteckt, Mobile: sichtbar) */
.menu-overlay-social {
  display: none;
  text-align: center;
  margin-top: 2rem;
}
.menu-overlay-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.instagram-icon {
  width: 32px;
  height: 32px;
  color: #ffffff;
  transition: color 0.25s ease, transform 0.25s ease;
}
.menu-overlay-social a:hover .instagram-icon {
  color: var(--gold);
  transform: scale(1.1);
}

/* ======================================
   RESPONSIVE OVERLAY-REGELN
   ====================================== */

/* Desktop-spezifisch */
@media (min-width: 769px) {
  .menu-overlay-right {
    position: relative;
  }

  .menu-overlay-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 3rem;
  }

  /* Auf Desktop: Topbar mit Logo nicht anzeigen */
  .menu-overlay-topbar-logo {
    display: none !important;
  }
}

/* Mobile: Bild weg, Logo + X oben, Links zentriert, Insta unten */
@media (max-width: 768px) {

  .menu-overlay-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .menu-overlay-left {
    display: none;
  }

  /* Topbar aktivieren: Logo + X in einer Reihe */
  .menu-overlay-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    margin-top: 1rem;
  }

  .menu-overlay-topbar-logo {
    display: block;
    height: 42px;
    width: auto;
  }

  .menu-overlay-close {
    position: static !important;
    font-size: 2.3rem;
  }

  .menu-overlay-right {
    padding: 1rem 1.5rem;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
  }

  /* Links zentriert + Linien */
  .menu-overlay-nav {
    margin-top: 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .menu-overlay-nav a {
    width: 100%;
    padding: 1rem 0;
    text-align: center;
    font-size: 1.6rem;
    border-bottom: 1px solid #333;
  }

  .menu-overlay-nav a:last-child {
    border-bottom: none;
  }

  /* Instagram unten zentriert */
  .menu-overlay-social {
    display: flex !important;
    justify-content: center;
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
    margin-top: auto;
  }

  .instagram-icon {
    width: 38px;
    height: 38px;
  }
}

/* ======================================
   SONSTIGES / UTILITY
   ====================================== */

/* Dunkler Overlay-Hintergrund hinter alter Sidebar (falls noch genutzt) */
#sidebarBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 30;
}

/* Footer */
footer {
  background-color: #181818;
  color: var(--text-muted);
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid #2A2A2A;
}

/* Tailwind-Overrides */
.bg-transparent {
  background-color: transparent !important;
}
.border {
  border-color: #2A2A2A !important;
}
.hover\:text-gold:hover {
  color: var(--gold) !important;
}

/* Globale Bild-Regel:
   für normale Bilder ok, Logo im Header + Overlay-Bild werden oben
   über spezifischere Selektoren überschrieben */
img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.tracking-in-contract {
  animation: tracking-in-contract 0.8s
    cubic-bezier(0.215, 0.610, 0.355, 1.000)
    both;
}

@keyframes tracking-in-contract {
  0% {
    letter-spacing: 1em;
    opacity: 0;
  }
  40% {
    opacity: 0.6;
  }
  100% {
    letter-spacing: normal;
    opacity: 1;
  }
}

/* ==============================
   Animista: fade-in
   ============================== */

.fade-in {
  animation: fade-in 0.8s ease-out both;
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* ======================================
   Admin - Seite
   ====================================== */


.fc .fc-col-header-cell-cushion{
  color: black;
}

/* ======================================
   Bookings - Seite
   ====================================== */

/* ===============================
   Consent Checkbox – korrektes Layout
   =============================== */

.consent-label {
  display: grid;
  grid-template-columns: auto 1fr; /* Checkbox | kompletter Text */
  column-gap: 0.6rem;
  align-items: start;
  max-width: 100%;
}

/* Checkbox bleibt links oben */
.consent-label input[type="checkbox"] {
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* Gesamter Text (inkl. Datenschutz-Link) */
.consent-label span {
  display: block;
  word-break: break-word;
}

/* Link bricht sauber um, bleibt rechts */
.consent-label a {
  white-space: normal;
}

/* ======================================
   About - Bildtext
   ====================================== */

/* Zustand "offen" */
.team-card.is-open .team-front .team-img {
  opacity: 0;
  transform: scale(1.03);
  filter: blur(6px);
}

.team-card.is-open .team-front {
  opacity: 0;
  transform: translateY(6px);
  transition: all 500ms ease-out;
}

.team-card.is-open .team-back {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Default: Back leicht “unten” starten für fließenden Übergang */
.team-back {
  transform: translateY(10px);
}

