/* GARTEN WORKSHOP STYLE V2.5 (Fixed Footer & Images) */
:root { 
    --primary: #274e13; 
    --primary-hover: #388e3c; 
    --accent: #8FBC8F; 
    --text: #2c2c2c; 
    --text-light: #555555; 
    --bg: #fdfdfd; 
    --border: #e0e0e0; 
    --font-main: 'Lato', Helvetica, Arial, sans-serif;
    --font-serif: 'Playfair Display', 'Times New Roman', serif;
}

/* FIX: Sticky Footer & Layout Structure */
body { 
    font-family: var(--font-main); 
    line-height: 1.6; 
    color: var(--text); 
    background-color: var(--bg); 
    margin: 0; 
    padding: 0; 
    overflow-x: hidden;
    /* Flexbox Setup für Footer */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* FIX: Main Bereich füllt den Platz */
main {
    flex: 1;
    width: 100%;
}

.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.flex-align-center { display: flex; align-items: center; height: 100%; }
.header-right { display: flex; align-items: center; height: 100%; }
.footer-inner { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.slide-text-only { padding: 15px; text-align: center; }

/* HEADER */
header { background: #fff; border-bottom: 1px solid var(--border); padding: 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 8px rgba(0,0,0,0.05); flex-shrink: 0; }
.header-inner { max-width: 900px; margin: 0 auto; padding: 0 15px; display: flex; justify-content: space-between; align-items: center; height: 70px; }

.logo-container { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-svg { width: 32px; height: 32px; flex-shrink: 0; }
.logo-text { font-family: var(--font-serif); font-size: 1.4rem; color: var(--primary); letter-spacing: 0.5px; font-weight: 700; white-space: nowrap; }

.header-direct-links { display: flex; align-items: center; margin-right: 20px; }
.header-link { font-size: 0.95rem; font-weight: 700; color: #444; text-transform: uppercase; text-decoration: none; margin-left: 20px; transition: color 0.2s; }
.header-link:hover { color: var(--primary); }
@media (max-width: 768px) { .header-direct-links { display: none; } }

.menu-trigger { background: none; border: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 5px; transition: transform 0.2s; }
.menu-trigger:hover { opacity: 0.8; }
.menu-label { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; color: #444; display: none; }
.hamburger-icon { display: flex; flex-direction: column; gap: 5px; width: 24px; }
.line { width: 100%; height: 2px; background-color: #333; transition: 0.3s; border-radius: 2px; }
@media (min-width: 600px) { .menu-label { display: block; } }

.mobile-menu-overlay { position: fixed; top: 70px; right: -100%; width: 100%; max-width:320px; height: calc(100vh - 70px); background: #fff; box-shadow: -5px 0 20px rgba(0,0,0,0.15); z-index: 2000; transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); display: flex; flex-direction: column; border-left: 1px solid #eee; }
.mobile-menu-overlay.active { right: 0; }
.mobile-menu-content { padding: 30px; overflow-y: auto; height: 100%; }

.menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 2px solid #f0f0f0; padding-bottom: 15px; }
.menu-title { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.close-menu { font-size: 2rem; border: none; background: none; cursor: pointer; color: #888; line-height: 1; }

.mob-link { display: block; padding: 12px 0; font-size: 1.1rem; color: #333; text-decoration: none; border-bottom: 1px solid #f9f9f9; }
.mob-link:hover { color: var(--primary); padding-left: 5px; }
.mob-link.sub { padding-left: 20px; font-size: 1rem; color: #666; border-bottom: none; }
.mob-link.sub.highlight { font-weight: bold; color: var(--primary); margin-bottom: 5px; }
.mob-divider { margin-top: 25px; margin-bottom: 5px; font-weight: 900; text-transform: uppercase; font-size: 0.75rem; color: #bbb; letter-spacing: 1.5px; }

.accordion-item { border-bottom: 1px solid #f9f9f9; }
.accordion-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; cursor: pointer; font-size: 1.1rem; }
.accordion-header.open { color: var(--primary); }

.promo-banner { color: white; text-align: center; padding: 12px 15px; font-size: 0.95rem; font-weight: bold; position: relative; z-index: 1001; letter-spacing: 0.5px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); overflow: hidden; display: flex; justify-content: center; align-items: center; flex-shrink: 0; }
.banner-content { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; }
.anim-pulse { animation: pulse-animation 3s infinite; }
.anim-shine::after { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 100%); animation: shine-animation 4s infinite; transform: skewX(-25deg); z-index: 1; }
@keyframes pulse-animation { 0% { transform: scale(1); } 50% { transform: scale(1.02); } 100% { transform: scale(1); } }
@keyframes shine-animation { 100% { left: 200%; } }
.promo-btn { background: rgba(255,255,255,0.25); border: 1px solid rgba(255,255,255,0.5); color: inherit; text-decoration: none; padding: 3px 12px; border-radius: 20px; font-size: 0.8rem; backdrop-filter: blur(4px); transition: all 0.2s; white-space: nowrap; }
.promo-btn:hover { background: #fff; color: #000; transform: translateY(-2px); }

.container { max-width: 900px; margin: 40px auto; padding: 0 20px; }
.hero { text-align: center; padding: 80px 20px; background: linear-gradient(to bottom, #f4f8f4, #fff); border-bottom: 1px solid var(--border); }
.hero h1 { font-size: 2.5rem; margin-bottom: 15px; font-family: var(--font-serif); }
.intro-text-container { max-width: 700px; margin: 40px auto; padding: 0 20px; text-align: center; color: #444; }
.grid { display: grid; gap: 30px; grid-template-columns: 1fr; margin-bottom: 60px; }
@media(min-width: 700px) { .grid { grid-template-columns: repeat(2, 1fr); } }

.card { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; height: 100%; position: relative; }
.card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); border-color: transparent; }
.card a { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }

/* FIX: Bilder in Karten/Vorschau immer einheitlich */
.card img { 
    width: 100%; 
    height: 220px; 
    object-fit: cover; 
    border-bottom: 1px solid #f0f0f0; 
    display: block; 
}

.card-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.card-meta { font-size: 0.75rem; color: var(--primary); font-weight: 700; text-transform: uppercase; margin-bottom: 8px; display: block; letter-spacing: 1px; }
.card h3 { margin: 0 0 12px 0; font-size: 1.25rem; line-height: 1.3; font-family: var(--font-serif); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-text { font-size: 0.95rem; color: #666; margin-bottom: 20px; line-height: 1.6; flex-grow: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-footer { margin-top: auto; padding-top: 15px; border-top: 1px solid #f9f9f9; }
.read-more { color: var(--primary); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; display: flex; align-items: center; gap: 5px; }

/* FIX: Content Bilder im Editor nur begrenzen, nicht beschneiden */
.article-content img { max-width: 100% !important; height: auto !important; border-radius: 4px; margin: 20px 0; }

.related-section { margin-top: 60px; border-top: 2px solid #f0f0f0; padding-top: 40px; }
.related-title { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 20px; color: var(--primary); }
.related-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media(min-width: 600px){ .related-grid { grid-template-columns: 1fr 1fr; } }
.related-card { display: flex; gap: 15px; background: #fff; border: 1px solid #eee; border-radius: 6px; padding: 10px; align-items: center; text-decoration: none; color: inherit; transition: border 0.2s; }
.related-card:hover { border-color: var(--primary); }
/* Related Bilder: Klein und quadratisch */
.related-card img { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.related-meta { font-size: 0.7rem; color: var(--primary); font-weight: 700; text-transform: uppercase; }
.related-card h4 { margin: 3px 0 0; font-size: 1rem; font-family: var(--font-serif); }

.calendar-grid { display: grid; gap: 15px; margin-top: 30px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .calendar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .calendar-grid { grid-template-columns: repeat(4, 1fr); } }
.cal-door-wrapper { position: relative; perspective: 1000px; }
.cal-door { height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; position: relative; transition: transform 0.2s; background: #fff; border: 1px solid #eaeaea; border-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.cal-door.clickable:hover { transform: translateY(-3px); }
.cal-door.locked { cursor: default; opacity: 0.7; }
.cal-door.winter { background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%); color:#2c3e50; }
.cal-door.spring { background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%); color:#274e13; }
.cal-door.summer { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); color:#d35400; }
.cal-door.autumn { background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%); color:#4a148c; }
.week-number { font-size: 3rem; font-weight: 900; line-height: 1; font-family: var(--font-serif); }
.week-label { font-size: 0.8rem; font-weight: bold; letter-spacing: 1px; }
.lock-icon { font-size: 1.5rem; margin-top: 5px; }

.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.5); backdrop-filter: blur(5px); animation: fadeIn 0.3s; }
.modal-content { background-color: #fefefe; margin: 10% auto; padding: 30px; border: 1px solid #888; width: 90%; max-width: 500px; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); position: relative; animation: slideIn 0.3s; }
.close-modal { color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer; line-height: 1; }
.close-modal:hover, .close-modal:focus { color: #000; text-decoration: none; }
@keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} }
@keyframes slideIn { from {transform: translateY(-20px); opacity: 0;} to {transform: translateY(0); opacity: 1;} }

.slide-banner { position: fixed; bottom: -100%; right: 20px; width: 260px; max-width: 80%; z-index: 2000; transition: bottom 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 5px 20px rgba(0,0,0,0.2); border-radius: 8px; background: white; padding: 0; overflow: hidden; display: none; border: 1px solid #eee; }
.slide-banner.visible { bottom: 20px; display: block; }
.slide-banner img { width: 100%; height: auto; display: block; max-height: 150px; object-fit: cover; }
.slide-close { position: absolute; top: 5px; right: 5px; background: rgba(255,255,255,0.9); color: #333; border: none; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; line-height: 1; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
@media(max-width: 450px) { .slide-banner { width: auto; left: 10px; right: 10px; bottom: -150%; } .slide-banner.visible { bottom: 10px; } }

/* FOOTER (Sticky Fix) */
footer { 
    background: #1a1a1a; 
    color: #888; 
    padding: 60px 0; 
    text-align: center; 
    margin-top: 80px; /* Optischer Abstand */
    font-size: 0.9rem; 
    flex-shrink: 0; /* Verhindert Zusammenquetschen */
}
.social-icons { margin-bottom: 25px; display: flex; justify-content: center; gap: 20px; }
.social-icons a { width: 45px; height: 45px; background: #333; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.social-icons a:hover { background: var(--primary); transform: translateY(-3px); }
.social-icons svg { width: 24px; height: 24px; fill: #fff; }

.article-title {
    text-align: center;
    border: none;
    margin-bottom: 40px;
    font-family: var(--font-serif);
    color: var(--text);
}

/* FIX: Großes Artikelbild oben im Beitrag */
.article-image {
    width: 100%;
    height: auto;
    max-height: 500px; /* Maximale Höhe begrenzt */
    object-fit: cover; /* Bild füllt aus, keine Verzerrung */
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: block;
}

.footer-disclaimer {
    font-size: 0.8rem;
    color: #888;
    max-width: 600px;
    margin: 0 auto 20px auto;
    line-height: 1.4;
}

/* Elemente für den Editor Content */
.chapter-title {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 5px;
    margin-top: 40px;
    margin-bottom: 20px;
    font-family: var(--font-serif);
}

.affiliate-button {
    display: inline-block;
    background: #ff9900;
    color: #000;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    margin: 20px 0;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.affiliate-button:hover {
    background: #e68a00;
    transform: translateY(-2px);
}

.info-box {
    background-color: #f4f9f4;
    border-left: 5px solid var(--primary);
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 4px 4px 0;
}

.product-box {
    text-align: center;
    background: #f5f5f5;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    border: 1px solid #e0e0e0;
}
.product-box h4 { margin-top: 0; font-family: var(--font-serif); font-size: 1.2rem; }

/* Responsive Pro/Con Tabelle */
.pro-con-table { width: 100%; border-collapse: separate; border-spacing: 0 10px; margin: 20px 0; }
.pro-con-table td {
    vertical-align: top;
    padding: 20px;
    border: 1px solid #eee;
    background: #fff;
    width: 50%;
    border-radius: 4px;
}
@media (max-width: 600px) {
    .pro-con-table, .pro-con-table tbody, .pro-con-table tr, .pro-con-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    .pro-con-table td { margin-bottom: 15px; }
}

.breadcrumbs { margin-bottom: 10px; color: #888; font-size: 0.9rem; }
.breadcrumbs a { color: #888; text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary); }
