/* News Container */
.news-container {
    max-width: 1200px;
    margin: 80px auto 40px auto;
    padding: 0 20px;
    color: #000;
}

/* Admin Controls */
.admin-controls {
    text-align: center;
    margin: 30px 0;
}

.btn-create-news {
    background-color: var(--buttonBgColor, #e6d4c6);
    color: #000;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.btn-create-news:hover {
    background-color: var(--buttonHoverColor, #d9c0b1);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* News Card */
.news-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* News Image - VOLLSTÄNDIG SICHTBAR */
.news-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa;
    padding: 15px;
    box-sizing: border-box;
}

.news-image img {
    max-width: 100%;
    max-height: 400px; /* Maximale Höhe, aber Bild bleibt vollständig sichtbar */
    width: auto;
    height: auto;
    object-fit: contain; /* WICHTIG: contain statt cover - zeigt das ganze Bild */
    border-radius: 8px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-card:hover .news-image img {
    transform: scale(1.02); /* Weniger Zoom, da das ganze Bild sichtbar bleiben soll */
}

/* News Content */
.news-content {
    padding: 25px;
    flex-grow: 1; /* Nimmt den restlichen Platz ein */
    display: flex;
    flex-direction: column;
}

.news-title {
    font-family: var(--headlineFontFamily, "Dancing Script", cursive);
    font-size: 1.8rem;
    margin: 0 0 15px 0;
    color: #333;
}

.news-meta {
    margin-bottom: 15px;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

.news-text {
    font-family: var(--copyFontFamily, "EB Garamond", serif);
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
    flex-grow: 1; /* Text nimmt verfügbaren Platz ein */
}

/* Admin Controls in Card */
.news-admin {
    border-top: 1px solid #eee;
    padding-top: 15px;
    text-align: right;
    margin-top: auto; /* Drückt die Admin-Controls nach unten */
}

.btn-delete {
    background-color: #dc3545;
    color: white;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: background-color 0.3s ease;
}

.btn-delete:hover {
    background-color: #c82333;
}

/* No News Message */
.no-news {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-news p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Create News Form */
.create-news-form {
    max-width: 600px;
    margin: 40px auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-family: var(--copyFontFamily, "EB Garamond", serif);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--buttonBgColor, #e6d4c6);
}

.form-group input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 2px dashed #ddd;
    border-radius: 6px;
    background: #f9f9f9;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn-submit {
    background-color: var(--buttonBgColor, #e6d4c6);
    color: #000;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: var(--buttonHoverColor, #d9c0b1);
}

.btn-cancel {
    background-color: #6c757d;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-cancel:hover {
    background-color: #5a6268;
}

/* Alternative: Wenn du möchtest, dass sehr hohe Bilder eine maximale Höhe haben */
.news-image.tall-image {
    max-height: 500px;
    overflow: hidden;
}

.news-image.tall-image img {
    max-height: 500px;
    width: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-card {
        margin: 0 10px;
    }
    
    .news-image img {
        max-height: 300px; /* Kleinere max-height auf mobilen Geräten */
    }
    
    .create-news-form {
        margin: 20px;
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-submit,
    .btn-cancel {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .news-content {
        padding: 20px;
    }
    
    .news-title {
        font-size: 1.5rem;
    }
    
    .admin-controls {
        margin: 20px 0;
    }
    
    .news-image img {
        max-height: 250px; /* Noch kleinere max-height auf sehr kleinen Bildschirmen */
    }
}




/* 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: center;
    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;
}
