/* =========================================
   1. General Body Styling
   ========================================= */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  line-height: 1.6;
  color: #333;
  background-color: #f0c96e48;
}

/* Globale Farbe für alle Überschriften */
h1, h2, h3, h4, h5, h6 {
  color: #aa8c46;
  margin-top: 1em;
  margin-bottom: 0.5em;
  line-height: 1.2;
}

p {
  margin-bottom: 1em;
}

img {
  max-width: 100%;
  height: auto; /* Verhindert Verzerrung bei festen HTML-Größen */
  display: block; /* Entfernt kleine Lücken unter Bildern */
}

/* =========================================
   2. Header and Navigation Bar
   ========================================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 1000;
}

.navbar .logo-img-header {
  height: 50px;
  width: auto; /* Wichtig, damit das Seitenverhältnis stimmt */
}

/* Container für Logo-Bild und Text */
.logo-wrapper {
    display: flex;
    align-items: center;
    text-decoration: none; /* Unterstreichung entfernen */
    gap: 10px; /* Abstand zwischen Bild und Text */
}

/* Container für die beiden Textzeilen */
.logo-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1; /* Zeilenabstand verringern */
}

/* Der Hauptname "PANYA" */
.brand-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: #aa8c46; /* Deine Gold-Farbe */
    text-transform: uppercase; /* Alles Großbuchstaben */
    letter-spacing: 1px;
}

/* Der Untertitel "Thai Siam Massage" */
.brand-sub {
    font-size: 0.9rem;
    color: #333; /* Dunkelgrau für Lesbarkeit */
    font-weight: normal;
    letter-spacing: 0.5px;
}

/* --- Mobile Anpassung --- */
/* Damit es auf dem Handy nicht zu eng wird neben der Telefonnummer */
 @media (max-width: 768px) {
    .brand-name {
        font-size: 1.4rem;
    }
    .brand-sub {
        font-size: 0.75rem;
    }
    .logo-wrapper {
        gap: 8px;
    }
}

 @media (max-width: 480px) {
    /* Auf ganz kleinen Handys den Untertitel evtl. ausblenden oder kleiner machen */
    .brand-name {
        font-size: 1.2rem;
    }
    .brand-sub {
        font-size: 0.65rem;
        white-space: nowrap; /* Verhindert Umbruch */
    }
}

.navbar .nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.navbar .nav-links li {
  margin-left: 2rem;
}

.navbar .nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.navbar .nav-links a:hover {
  color: #007bff;
}

/* Markiert die aktuelle Seite im Menü */
.navbar .nav-links a.active {
    color: #aa8c46; /* Deine Gold-Farbe */
    border-bottom: 2px solid #aa8c46;
}

/* Hamburger Menu */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-menu .bar {
  width: 30px;
  height: 3px;
  background-color: #aa8c46;
  border-radius: 10px;
  transition: all 0.3s ease-in-out;
}

.phone-link-header {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: #aa8c46;
    font-weight: bold;
    text-decoration: none;
    border: 1px solid #aa8c46;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin-right: 15px; /* Abstand zum Hamburger Menu */
    white-space: nowrap; /* Text darf nicht umbrechen */
}

.phone-link-header:hover {
    background-color: #aa8c46;
    color: white;
}

/* NEU: Anpassung für Tablets und Handys */
 @media (max-width: 768px) {
    .phone-link-header {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

 @media (max-width: 480px) {
    .phone-link-header {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
        margin-right: 10px;
    }
}

/* =========================================
   3. Main Content Styling
   ========================================= */
main {
  padding: 20px 20px;
  max-width: 1200px;
  margin: 0 auto;
  background: #fffaf0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
  margin-bottom: 20px;
  min-height: 70vh;
}

#home,
#angebot,
#oeffnungszeiten,
#kontakt,
#impressum {
  padding: 20px 0;
}

#home h1,
#angebot h1,
#oeffnungszeiten h1,
#kontakt h1,
#impressum h1 {
  text-align: center;
  margin-bottom: 30px;
  /* Farbe erbt von global h1 */
}

/* Homepage Specific Styling */
.main-logo-container {
  text-align: center;
  margin-bottom: 20px;
}

.main-logo {
  max-width: 40%;
  height: auto;
}

.homepage-text {
  font-size: 1.1em;
  text-align: justify;
  margin-bottom: 30px;
  padding: 0 15px;
}

.centered-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 0.2em;
}

.centered-subtitle {
    text-align: center;
    font-size: 1.5em;
    font-weight: normal;
    color: #555;
    margin-top: 0;
    margin-bottom: 30px;
}

.homepage-text-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
    font-size: 1.1em;
    text-align: justify;
    /* NEU HINZUFÜGEN: */
    -webkit-hyphens: auto;
    hyphens: auto;
}

.homepage-text-container p {
    margin-bottom: 1.5em;
}

/* =========================================
   4. Image Gallery Styling
   ========================================= */
.gallery-section h2 {
  text-align: center;
  margin-bottom: 30px;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
  padding: 0 15px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

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

/* =========================================
   5. Price Table Styling
   ========================================= */
.price-category {
  margin-bottom: 40px;
  padding: 0 15px;
}

.price-category h2 {
  text-align: center;
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.price-table th,
.price-table td {
  border: 1px solid #ddd;
  padding: 12px 15px;
  text-align: left;
}

.price-table th {
  background-color: #f2f2f2;
  font-weight: bold;
  color: #555;
}

.price-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.price-table tr:hover {
  background-color: #f1f1f1;
}

/* Offer Price Styling */
.offer-price {
  color: red;
  font-weight: bold;
}

.normal-price-strikethrough {
  text-decoration: line-through;
  color: #888;
}

/* Booking Links in Price Table */
.booking-link {
  display: inline-block;
  padding: 5px 10px;
  margin: 3px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.booking-link.phone-link {
  background-color: #aa8c46;
  color: white;
  border: 1px solid #aa8c46;
}

.booking-link.phone-link:hover {
  background-color: #92753b;
  color: white;
}

.booking-link.email-link {
  background-color: #fff;
  color: #aa8c46;
  border: 1px solid #aa8c46;
}

.booking-link.email-link:hover {
  background-color: #aa8c46;
  color: white;
}

/* =========================================
   6. Contact and Impressum Styling
   ========================================= */
.impressum-info {
  padding: 0 15px;
  line-height: 1.8;
}

/* Consolidated link styling for content pages */
.opening-times .contact-detail a, 
.impressum-info a, 
#fusspflege-details a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.opening-times .contact-detail a:hover, 
.impressum-info a:hover, 
#fusspflege-details a:hover {
    color: #AA8C46;
    text-decoration: underline;
}

.impressum-info p {
    margin-bottom: 0.5em;
}

/* =========================================
   7. Offer Button & Banner Styling
   ========================================= */
#offer-button-section {
  text-align: center;
  margin: 30px 0;
}

.offer-button {
  display: inline-block;
  background-color: #aa8c46;
  color: white;
  padding: 15px 30px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.offer-button:hover {
  background-color: #92753b;
  transform: translateY(-2px);
}

#offer-banner {
  background-color: #aa8c46;
  color: white;
  text-align: center;
  padding: 10px 20px;
  font-size: 1.1em;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 900;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: opacity 0.5s ease-in-out;
  cursor: pointer;
}

.offer-banner-hidden {
  display: none;
  opacity: 0;
}

.offer-banner-visible {
  display: block;
  opacity: 1;
}

#offer-banner a {
  color: inherit;
  text-decoration: none;
  padding: 0;
  display: block;
  width: 100%;
  height: 100%;
  line-height: inherit;
}

#offer-banner a:hover {
  text-decoration: underline;
  opacity: 0.9;
}

/* =========================================
   8. Features Section Styling
   ========================================= */
.features-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
  padding: 40px 15px;
  background-color: #fcfcfc;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
  margin-top: 30px;
  margin-bottom: 30px;
  border-radius: 8px;
}

.feature-card {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.4em;
}

.feature-card p {
  color: #555;
  font-size: 1em;
  line-height: 1.5;
}

/* =========================================
   9. Competence Section Styling
   ========================================= */
.competence-section {
  padding: 40px 15px;
  background-color: #fcfcfc;
  margin-top: 30px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.competence-title {
  font-size: 2em;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eee;
  display: inline-block;
}

.competence-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.competence-text {
  flex: 2;
  min-width: 300px;
  text-align: left;
  max-width: 700px;
}

.competence-text p {
  font-size: 1.1em;
  margin-bottom: 1em;
}

.competence-text strong {
  color: #aa8c46;
}

.competence-visuals {
  flex: 1;
  min-width: 250px;
  max-width: 400px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.owner-photo {
  width: 100%;
  height: auto;
  max-width: 250px;
  border-radius: 50%;
  border: 5px solid #AA8C46;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  margin-bottom: 0;
}

/* Button-Style Link (Variante mit Rahmen) */
.cta-small-link {
  display: inline-block;
  background-color: #fff;
  color: #AA8C46;
  border: 1px solid #AA8C46;
  padding: 8px 15px;
  border-radius: 5px;
  margin-top: 10px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
}

.cta-small-link:hover {
  background-color: #AA8C46;
  color: #fff;
}

.certificate-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.certificate-icon {
  width: 80px;
  height: auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

.qualification-details {
  width: 100%;
  margin-top: 0;
  padding: 20px;
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.qualification-details h3 {
  font-size: 1.3em;
  margin-bottom: 15px;
  text-align: center;
}

.qualification-details .certificate-summary {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.qualification-details .certificate-summary p {
  margin-bottom: 8px;
  font-size: 0.95em;
}

.qualification-details .certificate-summary ul {
  list-style-type: none;
  margin-left: 0;
  padding-left: 0;
}

.qualification-details .certificate-summary li {
  margin-bottom: 5px;
  padding-left: 1.5em;
  position: relative;
  font-size: 0.9em;
}

.qualification-details .certificate-summary li::before {
  content: "•";
  color: #aa8c46;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* =========================================
   10. CTA Section Styling
   ========================================= */
.cta-section {
  text-align: center;
  padding: 30px 15px;
  margin-top: 30px;
  margin-bottom: 30px;
  background-color: #fffaf0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cta-button {
  display: inline-block;
  background-color: #aa8c46;
  color: white;
  padding: 15px 30px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  background-color: #92753b;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.cta-section-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 30px 15px;
    margin-top: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap; /* Wichtig für Umbruch */
}

/* Styling für die neuen Button-Klassen */
.cta-button.primary-btn {
    background-color: #aa8c46;
    color: white;
    border: 2px solid #aa8c46;
}

.cta-button.primary-btn:hover {
    background-color: #92753b;
    border-color: #92753b;
}

.cta-button.secondary-btn {
    background-color: transparent;
    color: #aa8c46;
    border: 2px solid #aa8c46;
}

.cta-button.secondary-btn:hover {
    background-color: #aa8c46;
    color: white;
}

/* Mobile Optimierung: Buttons untereinander */
 @media (max-width: 600px) {
    .cta-section-group {
        flex-direction: column; /* Untereinander anordnen */
        align-items: center;
        gap: 15px;
    }
    
    .cta-button {
        width: 100%;        /* Volle Breite */
        max-width: 320px;   /* Aber nicht riesig auf Tablets */
        text-align: center;
        box-sizing: border-box;
    }
}

/* =========================================
   11. Zertifikate Page Styling
   ========================================= */
#zertifikate {
  padding: 40px 15px;
  text-align: center;
}

#zertifikate h1 {
  margin-bottom: 30px;
}

.certificate-intro-text {
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.1em;
  line-height: 1.7;
}

.certificate-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  overflow: hidden;
}

.carousel-images {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  display: none;
  min-width: 100%;
  box-sizing: border-box;
  background-color: #fff;
  padding: 20px;
}

.carousel-slide.active {
  display: block;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 15px 20px;
  font-size: 1.5em;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.carousel-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

/* =========================================
   12. Öffnungszeiten Page Styling
   ========================================= */
#oeffnungszeiten {
  padding: 40px 15px;
  text-align: center;
}

#oeffnungszeiten h1 {
  margin-bottom: 40px;
}

.opening-times {
  max-width: 500px;
  margin: 0 auto;
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  font-size: 1.2em;
  line-height: 1.8;
}

.opening-times p {
    margin-bottom: 15px;
    display: flex; /* Use flex to align icon and text */
    align-items: center;
    justify-content: flex-start; /* Changed from center to flex-start */
    gap: 10px; /* Space between icon and text */
}

.opening-times p:last-child {
    margin-bottom: 0;
}

.opening-times p strong {
    color: #AA8C46; /* Gold for days */
    min-width: 100px; /* Adjust as needed for alignment */
    text-align: right; /* Align day text */
}

.opening-times p span.time {
  color: #333;
  text-align: left;
  flex-grow: 1;
}

/* Scroll-to-Footcare Button */
.scroll-to-footcare-btn {
  display: inline-block;
  background-color: #aa8c46;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  font-size: 1em;
  font-weight: bold;
  border-radius: 5px;
  margin-top: 15px;
  margin-bottom: 20px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.scroll-to-footcare-btn:hover {
  background-color: #92753b;
  transform: translateY(-2px);
}

/* Gutschein Text Styling */
.gutschein-text {
  text-align: center;
  color: #aa8c46;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 25px;
  margin-bottom: 25px;
  padding: 10px 15px;
  border: 2px dashed #aa8c46;
  border-radius: 8px;
  background-color: #fffaf0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* =========================================
   13. Testimonial Section Styling
   ========================================= */
.testimonial-section {
    padding: 40px 15px;
    background-color: #fcfcfc;
    margin-top: 30px;
    margin-bottom: 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.testimonial-section h2 {
    font-size: 2em;
    margin-bottom: 30px;
}

.testimonial {
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.2em;
    color: #555;
    margin-bottom: 20px;
    position: relative;
    padding: 0 20px;
}

.testimonial-text::before {
    content: '“';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3em;
    color: #aa8c46;
    opacity: 0.5;
}

.testimonial-author {
    font-weight: bold;
    color: #aa8c46;
}

/* =========================================
   13. Footer Styling
   ========================================= */
footer {
  text-align: center;
  padding: 1.5rem;
  background: #333;
  color: #fff;
  margin-top: 20px;
}

footer .footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
}
footer .footer-links a:hover {
    text-decoration: underline;
    color: #aa8c46;
}

/* =========================================
   14. Responsive Design
   ========================================= */
@media (max-width: 1100px) {
  .navbar {
    padding: 1rem 1.5rem;
  }

  .navbar .logo-img-header {
    height: 40px; /* Etwas kleiner auf Mobile damit die Telefonnummer passt */
  }

  .navbar .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 70px;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    z-index: 999;
    box-sizing: border-box;
    padding: 0 1.5rem;
  }

  .navbar .nav-links.active {
    display: flex;
  }

  .navbar .nav-links li {
    margin: 0;
    text-align: center;
    width: 100%;
  }

  .navbar .nav-links a {
    padding: 1rem;
    display: block;
    border-bottom: 1px solid #eee;
  }

  .navbar .nav-links li:last-child a {
    border-bottom: none;
  }

  .hamburger-menu {
    display: flex;
  }

  .main-logo {
    max-width: 50%;
  }

  .homepage-text {
    padding: 0 10px;
    font-size: 1em;
  }

  .image-gallery {
    grid-template-columns: 1fr;
    padding: 0 10px;
  }

  .price-table th,
  .price-table td {
    padding: 10px;
    font-size: 0.9em;
  }

  .contact-info,
  .impressum-info {
    padding: 0 10px;
  }

  /* Responsive adjustments for new sections */
  .features-section {
    padding: 30px 10px;
    gap: 15px;
  }

  .feature-card {
    min-width: unset;
    max-width: 100%;
    padding: 20px;
  }

  .competence-section {
    padding: 30px 10px;
  }

  .competence-title {
    font-size: 1.6em;
    margin-bottom: 20px;
  }

  .competence-content {
    flex-direction: column;
    gap: 20px;
  }

  .competence-text,
  .competence-visuals {
    min-width: unset;
    max-width: 100%;
  }

  .owner-photo {
    max-width: 200px;
  }

  .certificate-icon {
    width: 60px;
  }

  .cta-section {
    padding: 20px 10px;
  }

  .cta-button {
    font-size: 1em;
    padding: 12px 20px;
  }

  /* Certificate Gallery Responsive Adjustments */
  .certificate-gallery {
    grid-template-columns: 1fr;
  }

  .certificate-gallery .gallery-item img {
    max-width: 100%;
    height: auto;
  }
}