@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700&display=swap');

/* Spezifische Regel für Karussell-Bilder mit maximaler Spezifität */
html body main .carousel-section .carousel .carousel-item img,
#wirkstoffCarousel .carousel-item img,
div.carousel div.carousel-item img,
[id="wirkstoffCarousel"] [class="carousel-item"] img,
.carousel-section .carousel .carousel-item img,
.carousel-item img {
    border-radius: 30px !important;
    -webkit-border-radius: 30px !important;
    -moz-border-radius: 30px !important;
    padding: 2px !important;
    background-color: rgba(255,255,255,0.7) !important;
    object-fit: contain !important;
    min-height: 350px !important;
    max-height: 100% !important;
    height: auto !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    transition: none !important;
}

/* Basis-Reset und Box-Sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Allgemeines Styling für Karussell-Bilder - gilt für alle Bildschirmgrößen */
[class*="carousel-item"] img {
    border-radius: 30px !important;
    -webkit-border-radius: 30px !important;
    -moz-border-radius: 30px !important;
    object-fit: contain !important;
    padding: 2px !important;
    background-color: rgba(255,255,255,0.7) !important;
    min-height: 350px !important;
    height: auto !important;
}

html {
    font-size: calc(16px + 0.1vw); /* Responsive Basisschriftgröße */
    scroll-behavior: smooth; /* Sanftes Scrollen zu Ankern */
}

body {
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    color: #2c3e50; /* Dunkle Textfarbe für bessere Lesbarkeit */
    background-color: #f8f9fa; /* Heller Hintergrund */
    overflow-x: hidden; /* Verhindert horizontales Scrollen */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    margin-bottom: 0.7em;
    line-height: 1.3;
    color: #1e3958; /* Dunkelblau für Überschriften */
    font-weight: 600;
}

h1 {
    font-size: calc(1.8rem + 1vw);
    font-weight: 700;
}

h2 {
    font-size: calc(1.5rem + 0.5vw);
    font-weight: 700;
}

h3 {
    font-size: calc(1.3rem + 0.3vw);
    font-weight: 600;
}

h4 {
    font-size: calc(1.1rem + 0.2vw);
    font-weight: 600;
}

h5 {
    font-size: calc(1rem + 0.1vw);
    font-weight: 600;
}

p {
    font-size: calc(1.05rem + 0.25vw); /* Deutlich größere Textgröße mit mehr Skalierung */
    margin-bottom: 1.2em; /* Mehr Abstand zwischen Absätzen */
    line-height: 1.7;
}

a {
    color: #e74c3c; /* Akzentfarbe für Links */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style-position: inside;
    padding-left: 1.2em;
    margin-bottom: 1em;
}

li {
    font-size: calc(1.05rem + 0.25vw); /* Auch Listenpunkte größer machen */
    margin-bottom: 0.5em;
}

/* Header und Hero-Bereich */
.main-header {
    position: relative;
    width: 100%;
    height: 70vh; /* Höhe des Hero-Bereichs */
    overflow: hidden;
}

.hero-image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Bild bedeckt den Container, wird ggf. beschnitten */
    object-position: center; /* Zentriert das Bild */
    filter: brightness(0.85) contrast(1.15); /* Erhöhte Helligkeit und Kontrast für bessere Sichtbarkeit */
}

/* Versteckt den Text-Overlay im Hero-Bereich */
.hero-text {
    display: none;
}

.hero-text h1 {
    color: #fff;
    margin-bottom: 0.3em;
}

.hero-text h2 {
     color: #fff;
     font-size: 1.3em;
     font-weight: 400;
     margin-bottom: 1em;
}

.hero-text p {
    font-size: 1.1em;
    margin-bottom: 1.5em;
}

/* Hero Content Wrapper */
.hero-content-wrapper {
    position: relative;
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

/* Intro-Content-Bereich */
.intro-content {
    width: 100%;
    max-width: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    background-image: url('../images/mannfraubademantel.png');
    background-size: cover;
    background-position: center;
    background-blend-mode: soft-light;
    position: relative;
}

.content-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.content-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.65); /* Etwas transparenter für besseren Bildkontrast */
    z-index: -1;
    border-radius: 8px;
}

.content-container h2 {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.9); /* Verstärkter Textshatten */
}

.content-container h3 {
    color: #34495e;
    font-size: 1.4em;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.9); /* Verstärkter Textshatten */
}

.content-container p {
    color: #333; /* Dunklere Textfarbe für besseren Kontrast */
    font-size: 1.1em;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.9); /* Verstärkter Textshatten */
}

/* Anpassung des CTA-Buttons */
.cta-button {
    display: inline-block;
    background-color: #e74c3c;
    color: #fff;
    padding: calc(12px + 0.3vw) calc(25px + 0.5vw); /* Responsive Padding */
    border-radius: 30px; /* Stärker abgerundete Ecken für Buttons */
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: calc(0.9rem + 0.15vw); /* Responsive Schriftgröße */
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.cta-button:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
    text-decoration: none;
}

/* Content Sections */
main {
    padding: 0 15px; /* Kleiner seitlicher Abstand auf Mobilgeräten */
    width: 100%;
    max-width: 1200px; /* Maximale Breite auf größeren Bildschirmen */
    margin: 0 auto; /* Zentriert den Inhalt */
    box-sizing: border-box;
}

.content-section {
    padding: 40px 0;
    border-bottom: 1px solid #eee; /* Leichte Trennlinie */
    width: 100%;
    box-sizing: border-box;
}

.content-section:last-child {
    border-bottom: none;
}

/* Responsive Images */
.content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto; /* Zentriert Bilder standardmäßig */
    border-radius: 12px; /* Stärker abgerundete Ecken */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

/* Bilder, die neben Text fließen sollen (werden in Desktop/Tablet angepasst) */
.inline-image-left,
.inline-image-right {
    max-width: 45%; /* Kleinere Breite für Fließbilder */
    margin-bottom: 1em;
}

.inline-image-left {
    float: left;
    margin-right: 15px;
}

.inline-image-right {
    float: right;
    margin-left: 15px;
}

/* Spezielles Styling für das Hormonelles-Gleichgewicht-Bild in der Mobilansicht */
img[src*="Hormonelles-Gleichgewicht-und-Menopause.png"] {
    max-width: 80% !important; /* Erhöht auf 80% der Box-Breite */
    width: 80% !important;
    height: auto !important;
    margin: 0 auto 1em auto !important; /* Zentriert das Bild */
    display: block !important;
    float: none !important; /* Entfernt das Floating in der mobilen Ansicht */
    clear: both !important;
}

/* Clearfix für Float-Elemente (wichtig nach gefloateten Bildern) */
.content-section article::after {
    content: "";
    display: table;
    clear: both;
}

/* Karussell Styling (verbessert) */
.carousel-section {
    padding: 50px 15px; /* Seitlichen Abstand hinzufügen */
    margin: 30px 0;
    position: relative;
    background-image: url('../images/schoko-karusell-hintergrund.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    box-sizing: border-box;
}

.carousel-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.75); /* Hellerer Overlay als bei anderen Bereichen */
    z-index: 0;
}

.carousel-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
    color: #2c3e50;
    position: relative;
    z-index: 1;
}

.carousel {
    position: relative;
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px 10px;
    -ms-overflow-style: none;  /* IE und Edge */
    scrollbar-width: none;  /* Firefox */
    z-index: 1;
    box-sizing: border-box;
    max-width: 100%;
}

.carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari und Opera */
}

.carousel-item {
    flex: 0 0 85%;
    scroll-snap-align: center;
    background-color: #fff;
    border-radius: 15px; /* Stärker abgerundete Ecken */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    padding: 6px; /* Minimaler weißer Rahmen */
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 380px; /* Minimale Höhe für den Container */
}

.carousel-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.carousel-item img {
    width: 100%;
    height: auto; /* Automatische Höhe statt fester Höhe */
    min-height: 350px; /* Größere Bilder */
    max-height: 100%; /* Maximale Höhe innerhalb des Containers */
    object-fit: contain; /* Bild wird vollständig angezeigt ohne Verzerrung */
    margin: 0; /* Kein Abstand */
    transition: transform 0.3s ease;
    border-radius: 30px; /* Stark abgerundete Ecken für die Bilder */
    flex-grow: 1; /* Erlaubt dem Bild, den verfügbaren Platz zu nutzen */
    padding: 2px; /* Minimaler weißer Rahmen im Bild */
    background-color: rgba(255,255,255,0.7); /* Leichter Hintergrund für bessere Sichtbarkeit */
    -webkit-border-radius: 30px; /* Für ältere Safari-Versionen */
    -moz-border-radius: 30px; /* Für ältere Firefox-Versionen */
    display: block; /* Sicherstellen, dass das Bild als Block-Element angezeigt wird */
}

.carousel-item p {
    font-size: 1.1em;
    font-weight: 600;
    margin: 10px 0;
    color: #2c3e50;
}

/* Navigation Buttons für das Karussell */
.carousel-nav {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.carousel-button {
    background-color: #3498db;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.carousel-button:hover {
    background-color: #2980b9;
    transform: scale(1.1);
}

/* Modal für vergrößerte Bilder */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    background-color: white;
    padding: 20px;
    border-radius: 15px; /* Stärker abgerundete Ecken */
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    position: relative;
}

.modal-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px; /* Abgerundete Ecken für Modal-Bilder */
}

.modal-text {
    margin-top: 15px;
    text-align: center;
    font-size: 1.2em;
    font-weight: 600;
    color: #2c3e50;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #e74c3c;
    cursor: pointer;
    line-height: 1;
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 30px 15px;
    margin-top: 40px;
    background-color: #2c3e50; /* Dunkler Footer-Hintergrund */
    color: #ecf0f1; /* Heller Text im Footer */
}

.main-footer p {
    margin-bottom: 0;
    font-size: 0.9em;
}

/* Referenzen (kleiner und unauffälliger) */
p > span[onclick] { /* Annahme: Referenzen werden klickbar gemacht */
    font-size: 0.8em;
    color: #7f8c8d;
    cursor: pointer;
}

/* Fazit-Bereich mit Hintergrundbild */
#fazit {
    background-image: url('../images/couch-genuss-fuer-beide-mobil.png'); /* Mobile Version als Standard (Mobile First) */
    background-size: contain; /* Ändere von cover zu contain, um die Originalgröße beizubehalten */
    background-position: center;
    background-repeat: no-repeat; /* Verhindert Kacheln des Bildes */
    background-attachment: scroll; /* Ändere von fixed zu scroll für bessere mobile Darstellung */
    position: relative;
    padding: 60px 0;
    margin: 40px 0;
    color: #fff;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Schatten für mehr Tiefe */
    border-radius: 20px; /* Abgerundete Ecken für den Fazit-Bereich */
    overflow: hidden;
    filter: brightness(1.1); /* Bild leicht aufhellen */
    min-height: 500px; /* Stellt sicher, dass genug Platz für den Inhalt vorhanden ist */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Media Query für größere Bildschirme (Tablet und Desktop) */
@media (min-width: 768px) {
    #fazit {
        background-image: url('../images/couch-genuss-fuer-beide.png'); /* Desktop Version für größere Bildschirme */
        background-size: cover; /* Für Desktop kann cover verwendet werden */
        background-attachment: fixed; /* Für Desktop kann fixed verwendet werden */
    }
}

#fazit::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(44, 62, 80, 0.3); /* Weniger Überlagerung für bessere Bildsichtbarkeit */
    z-index: 0;
}

#fazit h3, #fazit p {
    position: relative;
    z-index: 1;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9); /* Stärkerer Textschatten für bessere Lesbarkeit */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Dunklerer Texthintergrund für besseren Kontrast */
    padding: 10px;
    border-radius: 12px; /* Stärker abgerundete Ecken */
}

#fazit h3 {
    font-size: 1.8em;
    margin-bottom: 25px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 8px;
    display: inline-block;
    max-width: 90%;
}

#fazit p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 25px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 8px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

#fazit .cta-button {
    position: relative;
    z-index: 1;
    background-color: #e74c3c;
    margin-top: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    padding: 15px 35px;
    font-size: 1.1em;
}

#fazit .cta-button:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
}

/* Frauen-Bereich mit Hintergrundbild */
#wirkung-frauen {
    position: relative;
    padding: 40px 20px;
    margin: 20px 0;
    border-radius: 18px; /* Stärker abgerundete Ecken */
}

#wirkung-frauen::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url('../images/frau.png');
    background-size: cover;
    background-position: center;
    opacity: 0.15;  /* Sehr dezente Darstellung, ohne Inhalte zu beeinträchtigen */
    z-index: -1;
    border-radius: 10px;
}

/* Männer-Bereich mit Hintergrundbild */
#wirkung-maenner {
    position: relative;
    padding: 40px 20px;
    margin: 20px 0;
    border-radius: 18px; /* Stärker abgerundete Ecken */
}

#wirkung-maenner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url('../images/mann.png');
    background-size: cover;
    background-position: center;
    opacity: 0.15;  /* Sehr dezente Darstellung, ohne Inhalte zu beeinträchtigen */
    z-index: -1;
    border-radius: 10px;
} 