:root {
  --brown: #5A4033;
  --beige: #F5F0E6;
  --sand: #D8C7B0;
  --olive: #8A9A5B;
  --white: #fff;
  --shadow: 0 4px 24px rgba(90, 64, 51, 0.08);
  --radius: 22px;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Open Sans', Arial, sans-serif;
}

/* Critical CSS - Above the fold */
.header {
  background: var(--brown);
  color: var(--beige);
  padding: 2rem 0 1rem 0;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  box-shadow: var(--shadow);
  will-change: transform;
  contain: layout style paint;
}

.logo-img {
  max-width: 260px;
  max-height: 120px;
  width: 100%;
  display: block;
  margin: 0 auto 0.5rem auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  will-change: transform;
  loading: eager;
}

/* Performance Optimierungen */
.gallery-images img,
.gallery-video {
  will-change: transform;
  contain: layout style paint;
}

.lightbox {
  will-change: opacity;
  contain: layout style paint;
}

.section {
  contain: layout style;
}

html {
  box-sizing: border-box;
  font-size: 18px;
  background: var(--beige);
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--brown);
  background: var(--beige);
  min-height: 100vh;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.masseur-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--sand);
  box-shadow: 0 2px 8px rgba(90, 64, 51, 0.12);
}
.subtitle {
  font-size: 1.1rem;
  color: var(--sand);
  margin-top: 0.2rem;
}
.nav {
  margin-top: 1rem;
}
.nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  padding: 0;
  margin: 0;
  justify-content: center;
}
.nav a {
  color: var(--beige);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: color 0.2s;
  border-radius: 12px;
  padding: 0.3rem 1rem;
}
.nav a:hover {
  background: var(--olive);
  color: var(--white);
}
.section {
  margin: 3.5rem 0;
  padding: 2.5rem 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-section {
  background: var(--sand);
}
.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.5rem;
}
.about-text {
  flex: 2;
}
.about-text h2 {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  margin-bottom: 1.2rem;
  color: var(--brown);
}
.about-img {
  flex: 1;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--olive);
  box-shadow: 0 2px 12px rgba(90, 64, 51, 0.13);
}
#aboutMasseurImg {
  cursor: pointer;
}
.services-section h2, .gallery-section h2, .wellpass-section h2, .contact-section h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--brown);
}

/* Spezielle Verbesserungen für die Galerie-Sektion */
.gallery-section .container {
  max-width: 1200px;
}

@media (max-width: 600px) {
  .gallery-section {
    padding: 2rem 0;
  }
}

@media (max-width: 480px) {
  .gallery-section {
    padding: 1.5rem 0;
  }
}
.services-tables {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}
.service-table-block {
  flex: 1 1 320px;
  background: var(--beige);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.services-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.7rem;
}
.services-table th, .services-table td {
  padding: 0.6rem 0.4rem;
  text-align: left;
  border-bottom: 1px solid var(--sand);
}
.services-table th {
  background: var(--olive);
  color: var(--beige);
  font-weight: 600;
}
.services-table tr:last-child td {
  border-bottom: none;
}
.gallery-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  justify-content: center;
  max-width: 100%;
}

.gallery-images img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(90, 64, 51, 0.10);
  background: var(--sand);
  display: block;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  animation: fadeInImage 0.5s ease forwards;
}

@keyframes fadeInImage {
  to {
    opacity: 1;
  }
}

.gallery-images img:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(90, 64, 51, 0.15);
}

.gallery-video {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(90, 64, 51, 0.10);
  background: var(--sand);
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-video:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(90, 64, 51, 0.15);
}

/* Responsive Galerie für verschiedene Bildschirmgrößen */
@media (max-width: 1200px) {
  .gallery-images {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem;
  }
}

@media (max-width: 900px) {
  .gallery-images {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
  }
  
  .gallery-images img,
  .gallery-video {
    height: 180px;
  }
}

@media (max-width: 600px) {
  .gallery-images {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.8rem;
  }
  
  .gallery-images img,
  .gallery-video {
    height: 160px;
  }
}

@media (max-width: 480px) {
  .gallery-images {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  
  .gallery-images img,
  .gallery-video {
    height: 140px;
  }
}

@media (max-width: 360px) {
  .gallery-images {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  .gallery-images img,
  .gallery-video {
    height: 180px;
  }
}
.wellpass-section {
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
}
.wellpass-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.wellpass-logo {
  width: 140px;
  height: auto;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(90, 64, 51, 0.10);
  padding: 0.5rem;
}
@media (max-width: 600px) {
  .wellpass-logo {
    width: 90px;
  }
}
.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: flex-start;
}
.contact-info {
  flex: 1 1 320px;
}
.contact-form {
  flex: 1 1 320px;
  background: var(--sand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.contact-form label {
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.contact-form input, .contact-form textarea {
  border: 1px solid var(--olive);
  border-radius: 10px;
  padding: 0.5rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  background: var(--beige);
  margin-bottom: 0.5rem;
}
.contact-form button {
  background: var(--olive);
  color: var(--beige);
  border: none;
  border-radius: 10px;
  padding: 0.7rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.contact-form button:hover {
  background: var(--brown);
}
.form-message {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: var(--olive);
}
.contact-note {
  margin-top: 1rem;
  font-style: italic;
  color: var(--olive);
}
.footer {
  background: var(--brown);
  color: var(--beige);
  text-align: center;
  padding: 1.2rem 0 90px 0;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  margin-top: 3rem;
}
.footer-content a {
  color: var(--sand);
  text-decoration: underline;
  margin: 0 0.5rem;
}

@media (max-width: 600px) {
  .logo-img {
    max-width: 90vw;
    width: auto;
    min-width: unset;
    margin: 0 auto 0.5rem auto;
    display: block;
  }
  .nav ul {
    flex-wrap: wrap;
    gap: 0.7rem;
    padding: 0 0.2rem;
    justify-content: center;
  }
  .nav a {
    padding: 0.2rem 0.7rem;
    font-size: 0.98rem;
  }
  .services-table {
    width: 100%;
    min-width: 320px;
    font-size: 0.97rem;
    overflow-x: auto;
    display: block;
  }
  .services-table th, .services-table td {
    padding: 0.4rem 0.2rem;
    font-size: 0.97rem;
    word-break: break-word;
  }
  .service-table-block {
    padding: 0.7rem 0.2rem;
    margin-bottom: 1rem;
  }
  .wellpass-logo {
    display: block;
    margin: 0 auto 1rem auto;
    max-width: 120px;
    width: auto;
  }
  .contact-form {
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
  }
  .whatsapp-booking .container {
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    max-width: none;
    width: 100vw;
    display: flex;
  }
  .whatsapp-button {
    max-width: 95vw;
    width: 100%;
    justify-content: center;
    display: flex;
    text-align: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}
.splash-screen {
  position: fixed;
  z-index: 30000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s;
  opacity: 1;
  pointer-events: all;
}
.splash-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}
.splash-image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(90, 64, 51, 0.2);
  display: block;
  animation: splashIn 0.7s cubic-bezier(0.4,0,0.2,1);
}
@keyframes splashIn {
  from { opacity: 0; transform: scale(0.98); }
  to   { opacity: 1; transform: scale(1); }
}
.about-img, .masseur-img, .wellpass-logo, .splash-image, .logo-img {
  max-width: 100%;
  height: auto;
}
.services-section > .container > h2,
.gallery-section > .container > h2,
.contact-section > .container > h2,
.about-section .about-text > h2 {
  text-align: center;
}
@media (max-width: 900px) {
  .header-content, .about-content, .contact-content, .wellpass-content, .services-tables {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 600px) {
  html {
    font-size: 16px;
  }
  .container {
    padding: 0 0.5rem;
  }
  .about-img {
    width: 120px;
    height: 120px;
  }
  .wellpass-logo {
    width: 60px;
  }
}
.invisible {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s, transform 0.7s;
}
.visible {
  opacity: 1;
  transform: none;
}
.footer .social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  margin-top: 0.7rem;
}
.footer .social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--brown);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  font-size: 1.2rem;
}
.footer .social-link:hover {
  background: var(--olive);
  color: var(--white);
  transform: translateY(-2px) scale(1.08);
}
.footer .social-icon {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}
.whatsapp-booking {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  box-shadow: 0 -4px 16px rgba(37, 211, 102, 0.3);
  z-index: 1100;
  padding: 0.7rem 0 0.7rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
}
.whatsapp-booking .container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
  max-width: none;
}
.whatsapp-button {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--white);
  color: #25D366;
  text-decoration: none;
  padding: 1rem 2.2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.15rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  border: none;
}
.whatsapp-button:hover {
  background: #f8f9fa;
  color: #128C7E;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.whatsapp-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .whatsapp-booking {
    padding: 0.5rem 0;
  }
  .whatsapp-button {
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
  }
  .whatsapp-icon {
    width: 22px;
    height: 22px;
  }
} 
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--beige);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  box-shadow: 0 2px 8px rgba(90, 64, 51, 0.07);
}
.contact-icon {
  font-size: 1.5rem;
  width: 32px;
  text-align: center;
  color: var(--olive);
}
.contact-link, .contact-item h3, .contact-item p {
  margin: 0;
  color: var(--brown);
  font-size: 1.05rem;
  font-weight: 500;
}
.contact-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
}
@media (max-width: 900px) {
  .contact-content {
    flex-direction: column;
    gap: 1.5rem;
  }
  .contact-details {
    gap: 0.5rem;
  }
  .contact-item {
    padding: 0.6rem 0.7rem;
  }
} 
.lightbox {
  display: none;
  position: fixed;
  z-index: 20000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(90, 64, 51, 0.92);
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s;
} 
.lightbox.active {
  display: flex !important;
  opacity: 1;
  pointer-events: auto;
} 
.lightbox-close {
  position: absolute;
  top: 32px;
  right: 48px;
  font-size: 3rem;
  color: var(--beige);
  cursor: pointer;
  z-index: 20001;
  user-select: none;
  transition: color 0.2s;
}
.lightbox-close:hover {
  color: var(--olive);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(90, 64, 51, 0.8);
  color: var(--beige);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 20001;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-nav:hover {
  background: rgba(90, 64, 51, 0.9);
  transform: translateY(-50%) scale(1.1);
}
.lightbox-prev {
  left: 20px;
}
.lightbox-next {
  right: 20px;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  background: var(--beige);
  animation: lightboxIn 0.3s;
  z-index: 20000;
}

.lightbox-video {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  background: var(--beige);
  animation: lightboxIn 0.3s;
  z-index: 20000;
}
@media (max-width: 600px) {
  .lightbox-close {
    top: 16px;
    right: 16px;
    font-size: 2.2rem;
  }
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  .lightbox-prev {
    left: 10px;
  }
  .lightbox-next {
    right: 10px;
  }
  .lightbox-img,
  .lightbox-video {
    max-width: 98vw;
    max-height: 60vh;
  }
}

@media (max-width: 480px) {
  .lightbox-close {
    top: 12px;
    right: 12px;
    font-size: 1.8rem;
  }
  .lightbox-nav {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }
  .lightbox-prev {
    left: 8px;
  }
  .lightbox-next {
    right: 8px;
  }
  .lightbox-img,
  .lightbox-video {
    max-width: 99vw;
    max-height: 55vh;
  }
}

@media (max-width: 360px) {
  .lightbox-close {
    top: 8px;
    right: 8px;
    font-size: 1.6rem;
  }
  .lightbox-nav {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }
  .lightbox-prev {
    left: 6px;
  }
  .lightbox-next {
    right: 6px;
  }
  .lightbox-img,
  .lightbox-video {
    max-width: 99.5vw;
    max-height: 50vh;
  }
} 
.about-box {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  background: var(--beige);
  border-radius: 28px;
  box-shadow: 0 6px 32px rgba(90, 64, 51, 0.10);
  padding: 2.2rem 2.5rem 2rem 2.5rem;
  margin-bottom: 2rem;
}
.about-img-wrapper {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.about-img {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 4px solid var(--brown);
  box-shadow: 0 4px 18px rgba(90, 64, 51, 0.13);
  background: var(--white);
}
.about-text {
  flex: 1;
  min-width: 0;
}
.about-signature {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--olive);
  font-style: italic;
  text-align: right;
  margin-top: 2.2rem;
  margin-bottom: 0;
}
@media (max-width: 900px) {
  .about-box {
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem 1.2rem 1rem;
    gap: 1.2rem;
  }
  .about-img {
    width: 120px;
    height: 120px;
  }
  .about-signature {
    text-align: center;
    margin-top: 1.2rem;
  }
} 
.scroll-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--olive);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(138, 154, 91, 0.3);
  transition: all 0.3s ease;
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}
.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-to-top:hover {
  background: var(--brown);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(90, 64, 51, 0.4);
}
.scroll-arrow {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}
.scroll-to-top:hover .scroll-arrow {
  transform: translateY(-2px);
}
@media (max-width: 600px) {
  .scroll-to-top {
    bottom: 90px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
  .scroll-arrow {
    width: 20px;
    height: 20px;
  }
} 
@media (min-width: 900px) {
  .contact-content {
    align-items: stretch;
  }
  .contact-form, .contact-info {
    height: 100%;
  }
  .contact-form {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: var(--contact-info-height, auto);
  }
  .contact-form > button,
  .contact-form > .form-message {
    margin-top: auto;
  }
  .contact-info {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    height: auto;
  }
  .contact-content > .contact-form,
  .contact-content > .contact-info {
    flex: 1 1 320px;
    align-self: stretch;
  }
} 
@media (max-width: 600px) {
  .wellpass-content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .wellpass-logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
    max-width: 120px;
    width: auto;
  }
} 