/* Grundstil */
*, *::before, *::after {
    box-sizing: border-box;
  }
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;

}

body {
    margin: 0;
    font-family: 'Georgia', serif;
    color: #fff;
}

header {
    background: #fff;
    color: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 80px 80px 60px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}
header.shrink {
    padding: 10px 80px;
    background-color: #fff;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
header.shrink .logo img {
    height: 30px;
}

.logo {
    position: absolute;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
}

.logo img {
    height: 90px;
    transition: height 0.3s ease;
}


nav {
  margin-left: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    font-family: var(--copyFontFamily);
    font-weight: var(--copyNormalFontWeight);
    margin: 0;
    padding: 0;
}

nav a {
    position: relative;
    text-decoration: none;
    color: #000;
    font-weight: 500;
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background-color: #000;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-in-out;
}

nav a:hover::after,
nav a:focus::after {
    transform: scaleX(1);
}

.btn {
    display: inline-block;
    background-color: var(--buttonBgColor, #e6d4c6);
    color: #000;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
}

.btn:hover {
    background-color: var(--buttonHoverColor, #d9c0b1);
}

/* Farb-Variablen */
:root {
    --headlineFontFamily: "Dancing Script", cursive;
    --headlineNormalFontWeight: 400;
    --headlineBoldFontWeight: 700;
    --copyFontFamily: "EB Garamond", serif;
    --copyNormalFontWeight: 400;
    --copyBoldFontWeight: 700;
    --buttonBgColor: #e6d4c6;
    --buttonHoverColor: #d9c0b1;
}

/* Hero-Bereich */
.hero {
    height: 100vh;
    background: url("/static/uploads/hero.png") center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 60px;
    position: relative;
    margin-top: 80px;
    color: white;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-text {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-text h1,
.hero-text p {
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

/* Überschrift */
.headline {
    font-family: var(--headlineFontFamily);
    font-weight: var(--headlineNormalFontWeight);

    font-size: 50px;
    margin: 0 0 20px 0;
    text-align: center;
}

/* Untertitel */
.subline {
    font-family: var(--copyFontFamily);
    font-weight: var(--copyNormalFontWeight);
    font-size: 1.3rem;
    margin: 0 0 2rem 0;
    color: #000;
    text-align: center;
}
.subline p {
    text-align: left;
    max-width: 900px;
    margin: 0 auto 1rem auto;
    line-height: 1.6;
}

/* Textblock oben mit Hintergrundfarbe */
.text-block {

    text-align: center;
    padding: 40px 20px;
    color: #000;
    border-radius: 12px;
    max-width: 1000px;
    margin: 0 auto 30px auto;
}

/* Fett & größer für Subline */
.subline-bold {
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

/* Farbige Sektion */
.emotion-section {
    padding: 60px 20px;
    width: 100%;
    text-align: center;
}

/* Galerie (belassen wie gehabt) */
.gallery-slider {
    position: relative;
    width: 100vw;
    overflow: visible;
    max-height: 60vh;
    margin: 0 auto;
}

.gallery-wrapper {
    overflow: hidden;
    width: 100vw;
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease;
    width: 400vw;
    max-height: 60vh;
}

.gallery-track img {
    width: 100vw;
    height: 60vh;
    object-fit: cover;
    flex-shrink: 0;
    user-select: none;
    pointer-events: none;
}

.arrow {
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  font-size: 1.2rem;
  padding: 25px;
  border-radius: 51%;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  transition: background-color 0.3s;
}

.arrow:hover {
  background-color: rgba(255, 255, 255, 1);
}

.arrow-left {
  left: 40px;
}

.arrow-right {
  right: 40px;
}

/* Vollbreites Bild mit Overlay-Text */
.hero-image-full {
    position: relative;
    background: url("/static/uploads/hero.png") no-repeat center center / cover;
    height: 30vh;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 60px;

}

.overlay-text {
    text-align: center;
    color: white;
    padding: 30px;
    border-radius: 10px;
}

.hero-image-full::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-image-full > * {
    position: relative;
    z-index: 1;
}

/* Leistungen Container */
.leistungen-container {
    max-width: 1200px;
    margin: 80px auto 40px auto;
    padding: 0 20px;
    color: #000;
}

/* Einleitungstext */
.einleitungstext p {
font-family: var(--copyFontFamily);
    font-weight: var(--copyNormalFontWeight);
    margin-bottom: 20px;
    line-height: 1.5;
    text-align: center
}
.leistungen-section {
    display: flex;
    width: 100vw;       /* gesamte Breite */
    margin: 0;          /* kein Abstand nach außen */
    padding: 0;         /* kein Innenabstand */
    overflow: hidden;   /* Scrollen verhindern */
}

/* Bild links, volle Höhe und bis ganz links */
.leistungen-image {
    flex: 1 1 auto;     /* flexible Breite */
    max-width: 50vw;    /* maximal 50% der Viewportbreite */
    height: 50vh;       /* Höhe des Bildes */
}

.leistungen-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Container rechts mit fester Breite und Hintergrund */
.leistungen-content {
    flex: 0 0 50%;    /* feste Breite */
    background-color: #f2ede9;
    padding: 40px 60px;
    color: #000;
    border-radius: 0 20px 20px 0; /* nur rechts abgerundet */
    height: 50vh;       /* gleiche Höhe wie Bild */
    box-sizing: border-box;
    text-align: center;
}
.leistungen-content ul {
    list-style-position: inside; /* damit die Punkte links neben dem Text bleiben, aber eingerückt */
    padding-left: 0;
    text-align: center; /* zentriert den Text + Punkte */
    margin: 0 auto;
    max-width: 500px; /* optional, damit die Liste nicht zu breit wird */
}

.leistungen-content ul li {
    margin-bottom: 1.2rem; /* mehr Abstand zwischen den Punkten */
    font-size: 1rem;
}

/* Für Bild rechts Container links (optional) */
.leistungen-section.reverse {
    flex-direction: row-reverse;
}

.leistungen-section.reverse .leistungen-content {
    border-radius: 20px 0 0 20px;
}

/* Buchungsbutton */
.button-buchen {
    background-color: var(--buttonBgColor);
    color: #000;
    padding: 14px 36px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 12px rgb(230 212 198 / 0.6);
    transition: background-color 0.3s ease;
    display: inline-block;
}

.button-buchen:hover {
    background-color: var(--buttonHoverColor);
}

@media (max-width: 768px) {
  /* Layout der Leistungen-Sektion: Spalten zu Blöcken */
  .leistungen-section,
  .leistungen-section.reverse {
    flex-direction: column;
  }
  .leistungen-image,
  .leistungen-content {
    min-width: 100%;
  }

  /* Header Anpassungen */
  header {
    padding: 10px 20px;
    flex-wrap: wrap;
    justify-content: center;
    position: fixed;
    top: 0;
  }

  /* Logo kleiner machen */
  .logo img {
    height: 40px;
  }

  /* Navigation als Block unter dem Header (vorerst sichtbar) */
  nav {
    width: 100%;
    margin: 10px 0 0 0;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  /* Schriftgrößen anpassen */
  .headline {
    font-size: 48px;
    text-align: center;
  }
  .subline,
  .subline-bold {
    font-size: 1rem;
  }

  /* Hero-Bereich kompakter machen */
  .hero {
    padding-left: 20px;
    margin-top: 60px;
    height: 60vh;
    justify-content: center;
  }

  /* Text im Hero-Bereich zentrieren */
  .hero-text {
    text-align: center;
    width: 100%;
  }

  /* Buttons größer, damit sie leichter klickbar sind */
  .hero-button {
    padding: 14px 24px;
    font-size: 1.1rem;
    border-radius: 20px;
  }

  /* Galerie kleiner */
  .gallery-track img {
    height: 40vh;
  }

  /* Pfeile der Galerie näher an die Ränder */
  .arrow-left {
    left: 10px;
  }

  .arrow-right {
    right: 10px;
  }

  /* Textblock zentrieren */
  .text-block {
    padding: 30px 15px;
    max-width: 90%;
  }

  /* Kontaktbereich: Eingabefelder breiter machen */
  .kontakt-row {
    flex-direction: column;
  }
  .kontakt-field {
    width: 100%;
  }

  /* Footer Schriftgröße etwas kleiner */
  .site-footer {
    font-size: 0.85rem;
  }
}

/* Für sehr kleine Bildschirme (Smartphones < 480px) */
@media (max-width: 480px) {
  header {
    padding: 8px 15px;
  }

  .headline {
    font-size: 32px;
  }

  .hero {
    height: 50vh;
    padding-left: 10px;
  }

  .hero-button {
    padding: 12px 20px;
    font-size: 1rem;
  }

  nav ul {
    gap: 8px;
  }

  .leistungen-content {
    padding: 2rem 1rem;
  }

  .button-buchen {
    padding: 0.5rem 1rem;
  }
}
.site-footer {
  background-color: #f5f5f5;
  padding: 30px 20px;
  text-align: center;
  font-family: 'Arial', sans-serif;
}

.site-footer .instagram-link img {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  transition: transform 0.3s;
}

.site-footer .instagram-link:hover img {
  transform: scale(1.1);
}

.footer-links {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #333;
}

.footer-links a {
  color: #333;
  text-decoration: none;
  margin: 0 5px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links .separator {
  margin: 0 5px;
  color: #999;
}

.hero-button {
    background-color: white;
    color: black;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.3s;
    font-family: var(--copyFontFamily);
    font-weight: var(--copyNormalFontWeight);
}

.hero-button:hover {
    background-color: #e2e2e2;
}

/* Neue zentrierte Buchsektion */
.buch-section-centered {
  padding: 80px 20px;
  background-color: #fdfdfd;
  display: flex;
  justify-content: center;
  align-items: center;
}

.buch-container-centered {
  display: flex;
  align-items: center;
  gap: 30px;
  max-width: 1000px;
}

/* Anpassung der bestehenden buch-wrapper Klasse für bessere Zentrierung */
.buch-section-centered .buch-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  overflow: hidden;
  border: 3px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.15);
}

/* Hinweis zum Umblättern */
.flip-hint {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.flip-hint p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
  font-style: italic;
  animation: pulse 2s infinite;
  font-family: var(--copyFontFamily);
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Responsive Design für die neue Buchsektion */
@media (max-width: 768px) {
  .buch-container-centered {
    flex-direction: column;
    gap: 20px;
  }
  
  .flip-hint {
    margin-left: 0;
    text-align: center;
  }
  
  .flip-hint p {
    font-size: 0.8rem;
  }
  
  .buch-section-centered .buch-wrapper {
    max-width: 90vw;
  }
}

@media (max-width: 480px) {
  .buch-section-centered {
    padding: 40px 10px;
  }
  
  .flip-hint p {
    font-size: 0.75rem;
  }
}


.buch-section {
  padding: 80px 0;
  background-color: #fdfdfd;

  margin-right: 40%; /* lässt ihn nach links rutschen */
}

.buch-container {
  position: relative;
  width: 90%;
  max-width: 800px;
}

.buch-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 3px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.15);
}

.buch-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.5s ease-in-out;
}

.flip-button {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: white;
  border: none;
  border-radius: 50%;
  padding: 10px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: background 0.3s;
}

.flip-button:hover {
  background: #f2f2f2;
}

.flip-button img {
  width: 24px;
  height: 24px;
}
.buch-section-centered .buch-wrapper img:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

.service-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-container {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 40px;
}

.service-container.reverse {
  flex-direction: row-reverse;
}

.service-images {
  flex: 0 0 400px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.service-img {
  width: 100%;
  height: auto; /* Automatische Höhe basierend auf Bildverhältnis */
  min-height: 200px; /* Mindesthöhe für Konsistenz */
  max-height: 450px; /* Maximale Höhe um zu große Bilder zu begrenzen */
  object-fit: cover; /* Zeigt das komplette Bild ohne Abschneiden */
  object-position: center; /* Zentriert das Bild */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease;
  background-color: #f8f8f8; /* Hintergrundfarbe für eventuelle Leerräume */
}

.service-images.right .service-img {
  transform: translateX(50px);
}

.service-text {
  flex: 1;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease;
}

.service-text.left {
  transform: translateX(-50px);
}

.service-text h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #333;
}

.service-text p {
  margin-bottom: 15px;
  line-height: 1.6;
  color: #666;
}

.service-text ul {
  margin: 15px 0;
  padding-left: 20px;
}

.service-text li {
  margin-bottom: 8px;
  color: #666;
}

/* Animation beim Scrollen */
.service-section.animate .service-img,
.service-section.animate .service-text {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .service-container,
  .service-container.reverse {
    flex-direction: column;
    gap: 40px;
  }
  
  .service-images {
    flex: none;
    width: 100%;
  }
  
  .service-img {
    max-height: 250px; /* Etwas kleiner auf Mobile */
  }
  
  .service-text,
  .service-text.left {
    transform: translateY(30px);
  }
  
  .service-img,
  .service-images.right .service-img {
    transform: translateY(30px);
  }
  
  .service-section.animate .service-img,
  .service-section.animate .service-text {
    transform: translateY(0);
  }
}
