/* 
 * Hängesessel Ratgeber - Design System
 * Theme: "Cozy Living"
 */

:root {
    /* Color Palette */
    --color-bg-primary: #F9F7F2;
    /* Sand/Cream */
    --color-bg-secondary: #ffffff;
    --color-brand-green: #8DA399;
    /* Sage Green */
    --color-brand-terra: #C76D55;
    /* Terracotta */
    --color-text-main: #333333;
    /* Soft Charcoal */
    --color-text-muted: #666666;
    --color-border: #e6e6e6;

    /* Functional Colors */
    --color-accent: #C76D55;
    --color-success: #8DA399;
    --color-warning: #eab308;
    --color-danger: #ef4444;

    /* Typography */
    --font-heading: 'Lora', serif;
    --font-body: 'Nunito', sans-serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-round: 9999px;
    --radius-card: 12px;

    /* Effects */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-primary);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text-main);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.5rem;
}

.page-meta-dates {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin: -0.25rem 0 1.5rem 0;
}

.page-meta-dates time {
    font-weight: 600;
}

.page-meta-dates a {
    text-decoration: underline;
    text-decoration-color: var(--color-brand-terra);
    text-underline-offset: 2px;
}

.page-meta-dates a:hover {
    color: var(--color-brand-terra);
}

.eeat-box {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-brand-green);
    border-radius: var(--radius-card);
    padding: 0.9rem 1rem;
    margin: 0.75rem 0 1.5rem 0;
}

.eeat-box p {
    margin: 0.2rem 0;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

a:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--color-brand-terra);
    outline-offset: 2px;
}

/* Fallback for browsers not supporting :focus-visible */
a:focus:not(:focus-visible),
.btn:focus:not(:focus-visible) {
    outline: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius-card);
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Header & Nav */
.header {
    background: var(--color-bg-secondary);
    height: var(--header-height);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.logo span {
    color: var(--color-brand-terra);
}

.nav-list {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    font-weight: 600;
    color: var(--color-text-main);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-brand-terra);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-main);
}

/* Components: Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--color-brand-terra);
    color: white;
}

.btn-primary:hover {
    background-color: #b05d46;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(199, 109, 85, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-brand-terra);
    color: var(--color-brand-terra);
}

.btn-secondary:hover {
    background-color: var(--color-brand-terra);
    color: white;
}

/* Components: Cards */
.card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--color-border);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-title {
    margin-top: 1rem;
    font-size: 1.25rem;
}

/* Components: Affiliate Box */
.product-box {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    margin: 2rem 0;
}

.product-details {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0 2rem;
    align-items: start;
}

.product-image {
    grid-column: 1;
    grid-row: 1 / 10; /* Bild links, über alle Zeilen */
    background: #eee;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #999;
}

/* Alle anderen Elemente nach rechts */
.product-details > :not(.product-image) {
    grid-column: 2;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-brand-terra);
    margin: 1rem 0;
}

/* Trust Elements */
.trust-badge {
    background-color: #eef5f2;
    /* Light Sage */
    color: var(--color-brand-green);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid var(--color-brand-green);
}

.warning-box {
    background-color: #fff5f5;
    color: var(--color-danger);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid var(--color-danger);
}

/* Footer */
.footer {
    background: #2d3436;
    color: #f1f1f1;
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        display: none;
    }

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

    h1 {
        font-size: 2rem;
    }

    .product-box {
        padding: 1rem;
    }

    .product-details {
        display: flex; /* Override Grid */
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }

    .product-image {
        /* Override Grid Placement */
        grid-column: auto;
        grid-row: auto;
        
        flex: 0 0 auto;
        width: 100%;
        max-width: 250px;
        height: auto;
        min-height: 150px;
        margin: 0.5rem 0;
    }

    .product-details > p,
    .product-details > .btn {
        min-width: 100%;
    }
    
    .product-details > ul {
        min-width: auto; /* Allow list to shrink to content width */
        display: inline-block; /* Center the list block itself */
        text-align: left; /* Keep list items left aligned */
    }

    /* Revert to default list styles (absolute checkmarks) but ensure list block is centered */

    .hero-inner {
        flex-direction: column-reverse;
    }

    .hero-image {
        width: 100%;
    }
}

/* Hero Section */
.hero {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    border-radius: var(--radius-card);
    overflow: hidden;
    position: relative;
    /* Fancy decorative blob via box-shadow or border could go here */
}

.hero-eyebrow {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    color: var(--color-brand-green);
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

.hero-buttons {
    margin-top: 2rem;
}

/* Category Cards */
.category-card {
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    /* Clear default padding for full image */
    overflow: hidden;
}

.category-card .card-image {
    height: 240px;
    overflow: hidden;
    background-color: #ddd;
}

.category-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .card-image img {
    transform: scale(1.05);
}

.category-card .card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.category-card .card-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.btn-link {
    color: var(--color-brand-terra);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Health Section */
.health-teaser {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.health-content {
    flex: 2;
}

.benefit-list {
    list-style: none;
    margin: 1.5rem 0;
}

.benefit-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.benefit-list li::before {
    content: "✓";
    color: var(--color-brand-green);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.bg-secondary {
    background-color: white;
    /* Or a slight tint off-white distinct from main bg */
}

.text-center {
    text-align: center;
}

.section-header {
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Table of Contents */
details.toc-box {
    background-color: var(--color-bg-primary);
    border: 1px solid var(--color-brand-green);
    border-radius: var(--radius-card);
    padding: 1rem;
    margin: 2rem 0;
    max-width: 600px;
    cursor: pointer;
}

details.toc-box summary {
    font-weight: 700;
    color: var(--color-brand-green);
    list-style: none; /* Hide default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

details.toc-box summary::after {
    content: '+';
    font-size: 1.5rem;
    line-height: 0;
}

details.toc-box[open] summary::after {
    content: '-';
}

/* Fallback for Safari which doesn't hide list-style on summary by default */
details.toc-box summary::-webkit-details-marker {
    display: none;
}

details.toc-box ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
}

details.toc-box li {
    margin-bottom: 0.5rem;
}

details.toc-box a {
    text-decoration: underline;
    text-decoration-color: var(--color-brand-terra);
    text-underline-offset: 2px;
}

details.toc-box a:hover {
    color: var(--color-brand-terra);
}
