/* ===== PRAXISTOUR PAGE ===== */

.praxistour-page {
  background: var(--bg-canvas);
  min-height: 100vh;
}

/* Hero-Bereich */
.praxistour-hero {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--bg-canvas) 100%);
  position: relative;
  overflow: hidden;
}

/* Logo-Wasserzeichen im Hintergrund */
.hero-logo-bg {
  position: absolute;
  top: 50%;
  right: -100px;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  background-image: url('../assets/logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 768px) {
  .hero-logo-bg {
    width: 300px;
    height: 300px;
    right: -80px;
  }
}

.praxistour-hero .container {
  max-width: 800px;
  text-align: center;
}

.praxistour-hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 48px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.2;
}

.praxistour-hero .lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  justify-content: center;
}

.breadcrumb a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--brand-primary-hover);
}

.breadcrumb span:not(:last-child) {
  color: var(--text-muted);
}

/* Galerie */
.praxistour-gallery {
  padding: 80px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: 24px 20px 20px 20px;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.gallery-overlay p {
  font-size: 14px;
  margin: 0;
  opacity: 0.9;
}

.gallery-overlay svg {
  position: absolute;
  top: 16px;
  right: 16px;
  opacity: 0.8;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: background 0.2s;
  z-index: 10001;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lightbox-content img {
  max-width: 100%;
  max-height: calc(90vh - 220px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.lightbox-caption {
  text-align: center;
  color: white;
}

.lightbox-caption h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.lightbox-caption p {
  font-size: 16px;
  margin: 0;
  opacity: 0.8;
}

/* Lightbox Counter */
.lightbox-counter {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
}

/* Lightbox Navigation Container */
.lightbox-nav-container {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  position: relative;
  z-index: 10002;
}

/* Lightbox Navigation Buttons */
.lightbox-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 120px;
  justify-content: center;
}

.lightbox-nav:hover:not(:disabled) {
  background: var(--brand-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(58, 157, 80, 0.3);
}

.lightbox-nav:active:not(:disabled) {
  transform: translateY(0);
}

.lightbox-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: rgba(255,255,255,0.2);
}

.lightbox-nav svg {
  flex-shrink: 0;
}

/* Mobile Anpassungen für Navigation */
@media (max-width: 640px) {
  .lightbox-nav-container {
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
  }

  .lightbox-nav {
    padding: 10px 16px;
    font-size: 14px;
    min-width: 100px;
  }

  .lightbox-nav span {
    display: inline;
  }
}

@media (max-width: 480px) {
  .lightbox-nav {
    padding: 10px 12px;
    min-width: 80px;
    gap: 6px;
  }

  .lightbox-nav span {
    font-size: 13px;
  }

  .lightbox-nav svg {
    width: 20px;
    height: 20px;
  }
}

/* CTA-Bereich */
.praxistour-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--bg-canvas) 100%);
}

/* CTA Grid mit Bild */
.praxistour-cta-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: center;
}

.praxistour-cta-content {
  text-align: center;
}

.praxistour-cta h2,
.praxistour-cta-content h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 36px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.praxistour-cta p,
.praxistour-cta-content p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.praxistour-cta-image {
  width: 100%;
  opacity: 0.9;
}

.praxistour-cta-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  transition: transform 350ms ease-out;
}

.praxistour-cta-image:hover img {
  transform: scale(1.05) rotate(-1deg);
}

/* Responsive */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .praxistour-hero h1 {
    font-size: 40px;
  }

  /* Tablet: kleineres Grid */
  .praxistour-cta-grid {
    grid-template-columns: 1fr 0.7fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
  }

  .praxistour-hero {
    padding: 100px 0 48px;
  }

  .praxistour-hero h1 {
    font-size: 32px;
  }

  .praxistour-hero .lead {
    font-size: 16px;
  }

  .praxistour-cta h2,
  .praxistour-cta-content h2 {
    font-size: 28px;
  }

  /* Mobile: Stack vertikal */
  .praxistour-cta-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .praxistour-cta-image {
    order: -1; /* Bild über Text */
    width: 70%;
    margin: 0 auto;
  }

  .lightbox-caption h3 {
    font-size: 20px;
  }

  .lightbox-caption p {
    font-size: 14px;
  }

  .lightbox-content img {
    max-height: calc(90vh - 280px);
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .praxistour-hero h1 {
    font-size: 28px;
  }

  .praxistour-gallery {
    padding: 48px 0;
  }

  .praxistour-cta {
    padding: 48px 0;
  }

  .gallery-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  }
}
