/* ============================================
   MUNICH EVENT PLANNER - Extension Styles
   MOBILE-FIRST: Base = Mobile, then scale up
   ============================================ */


/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

/* Override scroll-top position when WhatsApp button is present */
body:has(.whatsapp-float) .scroll-top {
  bottom: 82px;
  right: 16px;
}


/* ============================================
   BREADCRUMBS
   ============================================ */
.category-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.category-breadcrumb a {
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.category-breadcrumb a:hover { color: var(--neon); }
.category-breadcrumb span { color: rgba(255,255,255,0.3); }
.category-breadcrumb .current { color: var(--neon); }


/* ============================================
   CATEGORY ITEMS GRID
   ============================================ */
.category-items-section { background: var(--bg); }

.category-items-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 36px;
}

.category-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.category-item-card:hover {
  border-color: rgba(0, 173, 121, 0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.category-item-icon { font-size: 2.2rem; margin-bottom: 10px; }
.category-item-card h3 { font-size: 1rem; margin-bottom: 6px; }
.category-item-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }


/* ============================================
   RELATED CATEGORIES
   ============================================ */
.related-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  justify-content: center;
}

.related-cat-card {
  display: inline-block;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
  transition: var(--transition);
  box-shadow: var(--shadow-card);
  -webkit-tap-highlight-color: transparent;
}

.related-cat-card:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-2px);
}


/* ============================================
   PRICE HINT BOX
   ============================================ */
.price-hint-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid rgba(0, 173, 121, 0.2);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}

.price-hint-icon { color: var(--green); flex-shrink: 0; }
.price-hint-icon svg { width: 24px; height: 24px; }
.price-hint-box h3 { font-size: 1.05rem; margin-bottom: 4px; }
.price-hint-box p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }


/* ============================================
   CONTENT BODY (parsed WP content)
   ============================================ */
.content-body p { color: var(--text-muted); font-size: 1rem; line-height: 1.8; margin-bottom: 16px; }
.content-body ul, .content-body ol { color: var(--text-muted); padding-left: 24px; margin-bottom: 16px; }
.content-body li { margin-bottom: 8px; line-height: 1.6; }
.content-body strong { color: var(--text); }
.content-body a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0,173,121,0.3); transition: var(--transition); }
.content-body a:hover { color: var(--blue); text-decoration-color: var(--blue); }


/* ============================================
   KOORDINATOR — 5-Step Form
   Mobile-First: Starts as single column
   ============================================ */
/* --- Koordinator Hero (compact) --- */
.koor-hero {
  min-height: auto !important;
  padding: 110px 0 40px !important;
}

.koor-hero-content {
  padding-top: 0 !important;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.koor-hero h1 {
  font-size: clamp(1.8rem, 5vw, 3.5rem);
}

.koor-hero p {
  margin: 0 auto;
  font-size: 1rem;
}

.koordinator-section {
  background: var(--bg);
  padding-top: 40px !important;
}

.koor-form {
  max-width: 820px;
  margin: 0 auto;
}

/* --- Progress Bar --- */
.koor-progress {
  position: relative;
  margin-bottom: 36px;
  padding: 0 4px;
}

.koor-progress-track {
  position: absolute;
  top: 16px;
  left: 24px;
  right: 24px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  z-index: 0;
}

.koor-progress-bar {
  position: absolute;
  top: 16px;
  left: 24px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
  width: 0%;
  transition: width 0.4s ease;
  z-index: 1;
}

.koor-steps-indicator {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.koor-step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0;  /* Hide text labels on mobile */
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.koor-step-dot span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Anton', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.koor-step-dot.active span {
  background: var(--gradient);
  border-color: var(--green);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0, 218, 114, 0.3);
}

.koor-step-dot.active { color: var(--green); }

.koor-step-dot.done span {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.koor-step-dot.done { color: var(--green); }

/* --- Step Content --- */
.koor-step-title {
  font-size: 1.5rem;
  margin-bottom: 28px;
  text-align: center;
  line-height: 1.2;
}

.koor-section { margin-bottom: 28px; }

.koor-label {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
  font-family: 'Titillium Web', sans-serif;
  color: var(--text);
}

.koor-optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* --- Tiles: Large (with icon) --- */
.koor-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.koor-tile {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.koor-tile input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.koor-tile span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 10px;
  min-height: 80px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 700;
  font-size: 0.8rem;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
  justify-content: center;
}

.koor-tile span svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.75;
  color: var(--green);
}

.koor-tile:active span {
  transform: scale(0.97);
}

.koor-tile:hover span {
  border-color: rgba(0, 173, 121, 0.4);
}

.koor-tile input:checked + span {
  border-color: var(--green);
  background: rgba(0, 173, 121, 0.06);
  box-shadow: 0 0 0 1px var(--green), 0 4px 16px rgba(0, 218, 114, 0.15);
}

/* --- Tiles: Small (text only, pills) --- */
.koor-tiles-sm {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.koor-tile-sm {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.koor-tile-sm input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.koor-tile-sm span {
  display: block;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 50px;
  text-align: center;
  font-weight: 700;
  font-size: 0.8rem;
  transition: var(--transition);
  white-space: nowrap;
}

.koor-tile-sm:active span {
  transform: scale(0.97);
}

.koor-tile-sm:hover span {
  border-color: rgba(0, 173, 121, 0.4);
}

.koor-tile-sm input:checked + span {
  border-color: var(--green);
  background: rgba(0, 173, 121, 0.06);
  color: var(--green);
}

/* --- Navigation Buttons --- */
.koor-nav {
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.koor-nav .btn {
  width: 100%;
  justify-content: center;
}

/* --- Contact Grid (Schritt 5) --- */
.koor-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

/* --- Date Row --- */
.koor-date-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.koor-date-row .form-control {
  width: 100%;
}

.koor-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.koor-checkbox input {
  accent-color: var(--green);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* --- Note --- */
.koor-note {
  text-align: center;
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Success Screen --- */
.koor-success-content {
  text-align: center;
  padding: 40px 16px;
}

.koor-success-icon { color: var(--green); margin-bottom: 20px; }
.koor-success-content h2 { font-size: 1.6rem; margin-bottom: 12px; }
.koor-success-content p { color: var(--text-muted); font-size: 1rem; max-width: 500px; margin: 0 auto 28px; line-height: 1.6; }
.koor-success-actions { display: flex; flex-direction: column; gap: 12px; }
.koor-success-actions .btn { width: 100%; justify-content: center; }

/* --- Form Validation --- */
.form-error {
  border-color: #e74c3c !important;
  animation: shakeInput 0.4s ease;
}

@keyframes shakeInput {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.shake {
  animation: shakeInput 0.4s ease;
  border-color: rgba(231, 76, 60, 0.5) !important;
}


/* ============================================
   5-COL FOOTER GRID (Mobile: Stack)
   ============================================ */
.footer-grid-5 {
  grid-template-columns: 1fr;
  gap: 28px;
}


/* ============================================
   TABLET (min-width: 640px)
   ============================================ */
@media (min-width: 640px) {
  .category-items-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .koor-tiles {
    grid-template-columns: repeat(3, 1fr);
  }

  .koor-tile span {
    padding: 18px 14px;
    font-size: 0.85rem;
    min-height: 88px;
  }

  .koor-tile span svg {
    width: 26px;
    height: 26px;
  }

  .koor-tile-sm span {
    font-size: 0.85rem;
    padding: 11px 18px;
  }

  .koor-contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .koor-nav {
    flex-direction: row;
    justify-content: space-between;
  }

  .koor-nav .btn {
    width: auto;
  }

  .koor-date-row {
    flex-direction: row;
    align-items: center;
  }

  .koor-date-row .form-control {
    width: auto;
    max-width: 280px;
  }

  .koor-success-actions {
    flex-direction: row;
    justify-content: center;
  }

  .koor-success-actions .btn {
    width: auto;
  }

  .price-hint-box {
    flex-direction: row;
    gap: 20px;
    padding: 28px 32px;
  }

  .footer-grid-5 {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}


/* ============================================
   TABLET-LANDSCAPE / SMALL DESKTOP (min-width: 768px)
   ============================================ */
@media (min-width: 768px) {
  .whatsapp-float {
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
  }

  body:has(.whatsapp-float) .scroll-top {
    bottom: 96px;
    right: 24px;
  }

  .koor-step-dot {
    font-size: 0.75rem;  /* Show text labels */
  }

  .koor-step-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 32px;
  }

  .koor-tiles {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .koor-tile span {
    padding: 20px 14px;
    font-size: 0.88rem;
    min-height: 92px;
  }

  .category-items-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .related-categories {
    justify-content: flex-start;
  }

  .koor-section {
    margin-bottom: 32px;
  }
}


/* ============================================
   DESKTOP (min-width: 1024px)
   ============================================ */
@media (min-width: 1024px) {
  .koor-step-dot {
    font-size: 0.8rem;
  }

  .koor-step-dot span {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .koor-tiles {
    grid-template-columns: repeat(4, 1fr);
  }

  .koor-tile span {
    padding: 22px 16px;
    font-size: 0.9rem;
  }

  .koor-tile span svg {
    width: 28px;
    height: 28px;
  }

  .category-items-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .footer-grid-5 {
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 48px;
  }

  .koor-success-content {
    padding: 60px 20px;
  }

  .koor-success-content h2 {
    font-size: 2rem;
  }
}


/* ============================================
   LARGE DESKTOP (min-width: 1280px)
   ============================================ */
@media (min-width: 1280px) {
  .koor-tiles {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}
