/* ZUSAMMENGEFÜHRTE STYLE.CSS 
   Enthält: Globales Layout, Navigation, Startseite & Ratgeber-Seiten
   Status: FINAL BEREINIGT & OPTIMIERT
*/

/* --- 1. BASIS & VARIABLEN --- */
:root {
    --primary-color: #007CA5;
    --secondary-color: #c94d0c;
    --background-light: #E9F5F8;
    --background-dark: #f7f7f7;
    --text-dark: #212121;
    --text-medium: #666;
    --border-light: #d3e4e8;
    --font-family: 'Poppins', sans-serif;
    --star-color: #FFD700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Advertorial Badge */
.advertorial-badge {
    position: fixed;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #888;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 9999;
    border: 1px solid #ddd;
}

/* --- 2. HEADER & NAVIGATION (Optimiert & Zentriert) --- */
.header {
    background-color: #fff;
    padding: 0.5rem 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between; /* Logo ganz links, Navi ganz rechts */
    align-items: center; /* Vertikale Mitte */
    max-width: 1200px;
    margin: 0 auto;
    height: 80px; /* Fixe Höhe für saubere Ausrichtung */
    position: relative; /* Wichtig für absolute Zentrierung des Textes */
}

/* Logo */
.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    width: 200px; /* Platzhalter-Breite, damit Layout stabil bleibt */
    flex-shrink: 0;
}

.logo img {
    max-height: 60px;
    width: auto;
    display: block;
}

/* Header Text (Absolut zentriert) */
.header-text-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    /* Der Trick für exakte Mitte, egal wie breit Logo/Navi sind */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
}

.header-text-block .main-title {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.1;
    margin-bottom: 2px;
}

.header-text-block .sub-title {
    font-size: 0.85em;
    font-weight: 400;
    color: var(--secondary-color);
    line-height: 1.1;
}

/* Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    height: 100%;
    z-index: 1001;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.nav-list li {
    position: relative;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease;
}

.nav-list a:hover {
    color: var(--primary-color);
}

/* Dropdown Menü */
li.has-dropdown > .dropdown-menu {
    display: none; /* Standardmäßig versteckt */
    position: absolute;
    top: 100%;
    left: auto; 
    right: 0; /* Dropdown bündig nach rechts ausrichten, damit es nicht aus dem Bild läuft */
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    list-style: none;
    padding: 10px 0;
    min-width: 220px;
    border-radius: 4px;
    z-index: 1002;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu li a {
    padding: 10px 20px;
    font-weight: 400;
    display: block;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: var(--background-light);
    color: var(--secondary-color);
}

/* Dropdown Hover (Desktop) */
@media (min-width: 993px) {
    .has-dropdown:hover > .dropdown-menu {
        display: block;
    }
}

/* Hamburger Menu (Mobile) */
.menu-toggle {
    display: none; /* Desktop: aus */
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 20px;
    z-index: 1002;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* --- 3. CONTENT BEREICHE --- */

/* Hero Sektionen (Startseite & Unterseiten kombiniert) */
.hero, .page-hero {
    background-color: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 20px;
    position: relative;
    overflow: hidden;
}

/* Spezifisch Startseite */
.hero-content {
    max-width: 600px;
    z-index: 1;
}

/* Spezifisch Unterseiten */
.page-hero .container {
    max-width: 900px;
}

.hero h1, .page-hero h1 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero p, .page-hero p {
    font-size: 1.1em;
    color: var(--text-medium); /* oder text-dark */
    margin-bottom: 2rem;
}

/* Info Sektion (Startseite) */
.info-section {
    background-color: #fff;
    padding: 4rem 20px;
    text-align: center;
}

.info-text h2 {
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 1rem;
}

/* Content Container (Unterseiten Text) */
.page-content {
    padding: 4rem 20px;
    background-color: #fff;
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
}

.content-container h1 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.content-container h2 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    border-left: 5px solid var(--secondary-color);
    padding-left: 15px;
}

.content-container h3 {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.content-container h4 {
    font-size: 1.1em;
    color: var(--primary-color);
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
}

.content-container p {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.content-container ul {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 1.5rem;
}

.content-container ul li {
    margin-bottom: 0.5rem;
}

.content-container a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.3s ease;
}

.content-container a:hover {
    border-bottom: 1px solid var(--primary-color);
}

/* --- 4. KARTEN & GRID (Ratgeber & Kategorien) --- */

/* Gemeinsame Grid-Basis */
.ratgeber-grid, .category-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.ratgeber-grid {
    padding: 4rem 20px;
}

/* Die Karte selbst */
.ratgeber-card, .category-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.ratgeber-card:hover, .category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Bilder in Karten */
.card-image, .category-card-image {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
}

.category-card-image {
    border-bottom: 3px solid var(--secondary-color);
}

/* Inhalt in Karten */
.ratgeber-card h3, .category-card-content h3 {
    color: var(--primary-color);
    font-size: 1.25em;
    padding: 1.5rem 1.5rem 0.5rem 1.5rem; /* Oben, Rechts, Unten, Links */
    margin: 0;
}

.category-card-content {
    padding: 0; /* Padding wird in den Kindern geregelt oder hier angepasst */

    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ratgeber-card p, .category-card-content p {
    color: var(--text-medium);
    font-size: 0.95em;
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin: 0;
    flex-grow: 1; /* Drückt den Button nach unten */
}

/* Buttons */
.read-more {
    display: block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0 1.5rem 1.5rem 1.5rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    text-decoration: underline;
}

.category-button {
    background-color: var(--secondary-color);
    color: #fff;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.1s ease;
    box-shadow: 0 4px 10px rgba(201, 77, 12, 0.3);
    text-align: center;
    margin: 0 1.5rem 1.5rem 1.5rem;
    align-self: flex-start;
}

.category-button:hover {
    background-color: #b0400c;
    transform: translateY(-2px);
}

/* Kategoriesektion Wrapper */
.category-section {
    padding: 2rem 20px 4rem 20px;
    background-color: #fff; 
}

/* --- 5. PRODUKT CTA BOX --- */
.cta-separator {
    background-color: var(--background-dark);
    padding: 4rem 20px;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    text-align: center;
}

.product-cta-box {
    background-color: #fff;
    max-width: 700px;
    margin: 0 auto;
    
    /* Aktualisiert: Inline-Styles fest integriert */
    padding: 0 2rem 2rem 2rem !important; 
    overflow: hidden; 
    border: 1px solid #d3e4e8;

    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Styles für die Header Bar im CTA */
.cta-header-bar {
    background-color: #E9F5F8; 
    width: calc(100% + 4rem); 
    margin: 0 -2rem 2rem -2rem; 
    padding: 1.2rem 1rem;
    text-align: center;
    border-bottom: 1px solid #d3e4e8;
}

/* HIER IST DIE ÄNDERUNG: 
   Ich habe den Selektor ".product-cta-box .cta-header-bar h2" genannt.
   Dadurch ist er "stärker" als die allgemeine Regel weiter unten (.product-cta-box h2).
*/
.product-cta-box .cta-header-bar h2 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1.9rem !important; 
    color: #007CA5 !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700 !important;
}

.product-image-container {
    width: 200px;
    margin-bottom: 1.5rem;
}

.product-cta-box h2 {
    font-size: 1.8em;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.price-info {
    margin: 1.5rem 0;
    font-size: 1.2em;
    font-weight: 600;
}

.price-info .old-price {
    color: var(--text-medium);
    text-decoration: line-through;
    font-weight: 400;
    font-size: 0.9em;
}

.cta-button { 
    background-color: var(--secondary-color);
    color: #fff;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1em;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.1s ease;
    box-shadow: 0 4px 15px rgba(201, 77, 12, 0.4);
}

.cta-button:hover {
    background-color: #b0400c;
    transform: translateY(-2px);
}

.coupon-box {
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--background-light);
    border: 2px dashed var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95em;
    color: var(--primary-color);
}

.coupon-code {
    color: var(--secondary-color);
    font-size: 1.1em;
    letter-spacing: 1px;
}

/* --- 6. REVIEWS / TESTIMONIALS --- */
.reviews-section {
    padding: 4rem 20px;
    background-color: var(--background-dark); 
}

.reviews-section h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 3rem;
}

.reviews-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.review-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 300px; 
    max-width: 550px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.stars {
    color: var(--star-color);
    font-size: 1.4rem;
    letter-spacing: 2px;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.review-card h4 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.review-card p {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.reviewer-name {
    display: block;
    text-align: right;
    font-weight: 600;
    color: var(--text-medium);
    font-size: 0.9rem;
}

.reviews-cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 3rem;
}

/* --- 7. FOOTER --- */
.footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 3rem 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin-right: 20px;
    font-size: 0.95em;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer p {
    margin-top: 0.5rem;
    font-size: 0.9em;
    opacity: 0.9;
}

.footer .disclaimer {
    font-size: 10px !important; 
    opacity: 0.7;
    margin-top: 2rem;
    line-height: 1.5;
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 1rem;
}

/* --- 8. RESPONSIVE / MOBILE --- */
@media (max-width: 992px) {
    .header-container {
        height: auto;
        padding: 10px 0;
        flex-wrap: wrap;
    }
    
    .header-text-block {
        position: static;
        transform: none;
        margin: 10px 0;
        order: 3; 
        width: 100%;
    }
    
    .logo {
        order: 1;
        margin-left: 10px; 
    }
    
    .menu-toggle {
        display: flex;
        order: 2;
        margin-right: 10px; 
    }

    .nav-menu {
        order: 4;
        width: 100%;
        display: none; 
        flex-direction: column;
        background-color: #fff;
        border-top: 1px solid #eee;
        margin-top: 10px;
        height: auto; 
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-list li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f9f9f9;
    }

    .nav-list a {
        padding: 15px;
    }

    li.has-dropdown > .dropdown-menu {
        position: static;
        display: block; 
        box-shadow: none;
        background-color: #f9f9f9;
        padding-left: 0;
        width: 100%;
    }
    
    .dropdown-menu li a {
        padding-left: 2rem; 
        font-size: 0.95rem;
        text-align: center;
    }
    
    .hero h1, .page-hero h1 {
        font-size: 1.8em;
    }
}

/* Mobile Styles für CTA Box - HIER ENDET DER MOBILE TEIL SAUBER */
@media (max-width: 768px) {
    .product-cta-box {
        padding: 0 1.5rem 1.5rem 1.5rem !important;
    }
    .cta-header-bar {
        width: calc(100% + 3rem);
        margin: 0 -1.5rem 1.5rem -1.5rem;
        padding: 1rem;
    }
}

/* ---------------------------------------------------------
   AB HIER GILT ES FÜR ALLE GERÄTE (DESKTOP & MOBILE)
   --------------------------------------------------------- */

/* --- CTA BOX BENEFIT LISTE (Final optimiert) --- */
.product-cta-box .cta-benefits {
    list-style-type: none !important; 
    padding: 0 !important;
    margin: 1.5rem 0 2rem 0 !important;
    
    text-align: left !important;      
    display: inline-block !important; 
    width: auto !important;           
    max-width: 100%;       
}

/* Basis-Style für alle normalen Listenpunkte (Häkchen) */
.product-cta-box .cta-benefits li {
    position: relative !important;
    padding-left: 2rem !important;    /* Platz für Häkchen */
    margin-bottom: 0.8rem !important;
    line-height: 1.4 !important;
    color: var(--text-dark);
    font-size: 0.95rem !important;  
    text-align: left !important;
}

/* Das Häkchen selbst (Absolut links positioniert) */
.product-cta-box .cta-benefits li::before {
    content: '\2714';             
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.2rem;
}

/* --- SPEZIAL-STYLE: "Inspiriert von der Tierheilpraxis" --- */

/* 1. Der Container (Zentriert, Linie oben) */
.product-cta-box .cta-benefits li.special-highlight {
    font-style: italic;
    color: var(--primary-color) !important;
    font-weight: 600;
    
    /* Linie und Abstand nach oben */
    margin-top: 1.2rem !important;          
    border-top: 1px dotted #d3e4e8;
    padding-top: 1rem !important; /* Etwas mehr Luft zur Linie */
    
    /* WICHTIG: Zentrierung aktivieren & Padding links löschen */
    text-align: center !important; 
    padding-left: 0 !important;    
    width: 100%; /* Volle Breite nutzen zum Zentrieren */
}

/* 2. Das Herz (Fließt jetzt MIT dem Text) */
.product-cta-box .cta-benefits li.special-highlight::before {
    content: '\2665'; 
    color: var(--primary-color);
    
    /* Reset der absoluten Positionierung */
    position: static !important; 
    display: inline-block !important;
    
    /* Optik */
    margin-right: 6px; /* Kleiner Abstand zum Text */
    font-size: 1.1rem;
    vertical-align: middle; /* Sitzt mittig zur Schrifthöhe */
    line-height: 1;         /* Verhindert Verrutschen */
}

/* --- PREIS HIGHLIGHT BOX --- */

.price-highlight-box {
    text-align: center;
    margin: 1.5rem 0 1rem 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Das Rabatt-Schildchen */
.discount-badge {
    background-color: #d32f2f; /* Ein schönes "Sale"-Rot oder deine Secondary Color: var(--secondary-color) */
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    
    /* Animation für Aufmerksamkeit (optional) */
    animation: pulse 2s infinite; 
}

/* Container für die Preise */
.price-row {
    display: flex;
    flex-direction: column; /* Übereinander für klaren Fokus */
    align-items: center;
    line-height: 1.2;
}

/* Der alte Preis */
.old-price-label {
    color: var(--text-medium);
    font-size: 0.95rem;
    text-decoration: line-through; /* Durchgestrichen */
    opacity: 0.8;
    margin-bottom: 0.2rem;
}

/* Der neue Preis */
.new-price-label {
    color: var(--secondary-color); /* Dein Orange */
    font-size: 2.2rem; /* Richtig schön groß */
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Das "ab" Wort */
.new-price-label small {
    font-size: 0.5em; /* Halb so groß wie der Preis */
    font-weight: 400;
    color: var(--text-dark);
    vertical-align: middle;
    margin-right: 3px;
}

/* Kleine dezente Animation für das Badge */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}