/* ===================================
   Teichträume – Modern Responsive CSS
   Color palette based on logo:
   Primary: #B9121B (crimson red)
   Dark:    #1a1a1a
   Light:   #f8f6f3
   =================================== */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #B9121B;
  --color-primary-dark: #8e0e15;
  --color-primary-light: #d4343d;
  --color-dark: #1a1a1a;
  --color-dark-soft: #2d2d2d;
  --color-text: #333333;
  --color-text-muted: #6b6b6b;
  --color-light: #f8f6f3;
  --color-light-alt: #f0ece7;
  --color-white: #ffffff;
  --color-border: #e0dcd7;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section Shared --- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.2;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  margin: 20px auto 0;
  border-radius: 2px;
}

/* --- Button --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(185, 18, 27, 0.3);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 6px 24px rgba(185, 18, 27, 0.4);
  transform: translateY(-2px);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  width: 42px;
  height: 42px;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-dark);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-links a {
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: 50px;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--color-primary);
  background: rgba(185, 18, 27, 0.06);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, var(--color-dark) 0%, #0d2b1a 50%, #0a1f14 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(185, 18, 27, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(185, 18, 27, 0.1) 0%, transparent 50%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url('image1.jpeg') center/cover no-repeat;
  opacity: 0.15;
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero-logo {
  width: 400px;
  height: 400px;
  margin: 0 auto 40px;
  filter: brightness(0) invert(1);
  animation: fadeInUp 0.8s ease-out;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
  animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 400;
  color: var(--color-primary-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-text {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.7);
  max-width: 500px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.hero .btn {
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.4);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* --- About --- */
.about {
  padding: 120px 0;
  background: var(--color-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--color-text);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 14px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(185, 18, 27, 0.08);
  border-radius: 10px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.feature span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-dark);
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.about-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-image:hover img {
  transform: scale(1.03);
}

/* --- Gallery --- */
.gallery {
  padding: 120px 0;
  background: var(--color-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item-large {
  grid-row: span 2;
}

.gallery-item-wide {
  grid-column: span 2;
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: var(--transition);
}

.gallery-overlay span {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-white);
  transform: translateY(8px);
  transition: transform 0.3s ease;
}

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

.gallery-item:hover .gallery-overlay span {
  transform: translateY(0);
}

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

/* --- Contact --- */
.contact {
  position: relative;
  padding: 120px 0;
  background: var(--color-dark);
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 0% 100%, rgba(185, 18, 27, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 0%, rgba(185, 18, 27, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.contact-container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.contact-header {
  text-align: left;
}

.contact-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  margin-bottom: 16px;
}

.contact-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 20px;
}

.contact-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  max-width: 400px;
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: default;
  text-decoration: none;
  color: inherit;
}

a.contact-card {
  cursor: pointer;
}

a.contact-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(6px);
}

.contact-card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  flex-shrink: 0;
  background: rgba(185, 18, 27, 0.15);
  color: var(--color-primary-light);
  transition: var(--transition);
}

.contact-card--whatsapp .contact-card-icon {
  background: rgba(37, 211, 102, 0.12);
  color: #25d366;
}

.contact-card--instagram .contact-card-icon {
  background: linear-gradient(135deg, rgba(253, 29, 29, 0.12), rgba(131, 58, 180, 0.12));
  color: #e1306c;
}

.contact-card--address .contact-card-icon {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
}

.contact-card-body {
  flex: 1;
  min-width: 0;
}

.contact-card h3 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 3px;
}

.contact-card-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-card-arrow {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

a.contact-card:hover .contact-card-arrow {
  color: var(--color-primary-light);
  background: rgba(185, 18, 27, 0.15);
}

a.contact-card--whatsapp:hover .contact-card-arrow {
  color: #25d366;
  background: rgba(37, 211, 102, 0.12);
}

a.contact-card--instagram:hover .contact-card-arrow {
  color: #e1306c;
  background: rgba(225, 48, 108, 0.12);
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  animation: floatPulse 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  background: #1ebe57;
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

@keyframes floatPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 28px rgba(37, 211, 102, 0.6); }
}

/* --- Footer --- */
.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 48px 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  filter: brightness(0) invert(1);
}

.footer-brand span {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-white);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.footer-social-link:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.92);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
}

.lightbox.active .lightbox-img {
  transform: scale(1);
  opacity: 1;
}

.lightbox-img.switching {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

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

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

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: var(--color-white);
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-nav:hover {
  background: rgba(185, 18, 27, 0.7);
  border-color: rgba(185, 18, 27, 0.8);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.1em;
}

/* Body scroll lock when lightbox is open */
body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .lightbox-nav {
    width: 44px;
    height: 44px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
  }

  .lightbox-img {
    max-width: 95vw;
    max-height: 80vh;
    border-radius: var(--radius-sm);
  }
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    order: -1;
  }

  .about-image img {
    height: 320px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }

  .gallery-item-large {
    grid-row: span 2;
  }

  .gallery-item-wide {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
    gap: 4px;
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 12px 24px;
  }

  .nav-toggle {
    display: flex;
  }

  .about,
  .gallery,
  .contact {
    padding: 80px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }

  .gallery-item-large {
    grid-row: span 1;
  }

  .gallery-item-wide {
    grid-column: span 1;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-header {
    text-align: center;
  }

  .contact-subtitle {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-logo {
    width: 280px;
    height: 280px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-content {
    padding: 100px 16px 60px;
  }

  .contact-card {
    padding: 16px 18px;
    gap: 14px;
  }

  .contact-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .contact-card-value {
    font-size: 0.88rem;
    white-space: normal;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
  }
}
