/* ============================================
   Vida Vertical – Zentrale Stylesheet-Datei
   ============================================ */

:root {
    --primary: #2c5f2d;
    --primary-light: #3d7a3e;
    --secondary: #97bc62;
    --accent: #1e3d59;
    --bg: #f8f9fa;
    --text: #2d3436;
    --border: #dfe6e9;
    --card-bg: #ffffff;
    --header-bg: #ffffff;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
}

/* ---------- Header & Navigation ---------- */

.site-header {
    background: var(--header-bg);
    border-bottom: 1px solid #e8f5e9;
    padding: 0.75rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    background: linear-gradient(135deg, #a8d5a2, #4a9e6e);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.3px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.main-nav li { position: relative; }

.main-nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: block;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--primary);
    background: rgba(151, 188, 98, 0.12);
}

.main-nav a.active {
    color: var(--primary);
    font-weight: 600;
    background: rgba(151, 188, 98, 0.15);
}

.dropdown-toggle::after {
    content: ' ▾';
    font-size: 0.8em;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    border: 1px solid #e8f5e9;
    z-index: 1001;
}

.main-nav li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    border-radius: 0;
}

.dropdown-menu a:hover {
    background: rgba(151, 188, 98, 0.12);
}

.dropdown-menu a.active {
    background: rgba(151, 188, 98, 0.2);
    border-left: 3px solid var(--primary);
    padding-left: 0.9rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
    padding: 0.5rem;
}

/* ---------- Hero Section ---------- */

.hero {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto; }

/* ---------- Main Content ---------- */

main {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

section {
    background: var(--card-bg);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

h2 {
    color: var(--primary);
    border-bottom: 3px solid var(--secondary);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

h3 {
    color: var(--accent);
    margin: 1.5rem 0 1rem;
    font-size: 1.3rem;
}

h4 {
    color: var(--primary-light);
    margin: 1rem 0 0.5rem;
    font-size: 1.1rem;
}

p { margin-bottom: 1rem; }

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

li { margin-bottom: 0.4rem; }

.system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.system-card {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid var(--secondary);
}

.system-card h3 { margin-top: 0; }
.system-card ul { margin-left: 1.2rem; margin-top: 0.5rem; }

/* System Images */
.system-image {
    width: 100%;
    height: auto;
    margin-top: 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cycle-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.step {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: 6px;
    text-align: center;
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    line-height: 40px;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Tables with alternating rows */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    background: white;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

table tbody tr:nth-child(even) {
    background: var(--bg);
}

table tbody tr:nth-child(odd) {
    background: white;
}

tr:hover { 
    background: rgba(151, 188, 98, 0.08); 
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.advantage {
    padding: 1.5rem;
    background: var(--bg);
    border-radius: 6px;
}

.advantage strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.faq-item:last-child { border-bottom: none; }
.faq-item h3 { margin-bottom: 0.5rem; }

.cta {
    background: var(--accent);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.cta h2 {
    color: white;
    border-bottom: 3px solid var(--secondary);
}

.cta a {
    display: inline-block;
    background: var(--secondary);
    color: var(--text);
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1rem;
    font-weight: 600;
}

.cta a:hover {
    background: var(--primary-light);
    color: white;
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--accent);
    color: white;
    padding: 3rem 2rem 1rem;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.site-footer h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.site-footer ul { list-style: none; }

.site-footer a {
    color: #dfe6e9;
    text-decoration: none;
}

.site-footer a:hover { color: var(--secondary); }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* ---------- Blog ---------- */

.blog-post {
    background: var(--card-bg);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.blog-post h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.blog-meta {
    color: #636e72;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ---------- Shop ---------- */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.product-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.product-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0.5rem 0;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.6rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.btn:hover { background: var(--primary-light); }

/* ---------- Legal Pages ---------- */

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

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .site-header { padding: 0.75rem 1rem; }
    .header-container { flex-wrap: wrap; }
    .menu-toggle { display: block; order: 3; }
    .main-nav { width: 100%; order: 4; display: none; }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0.25rem; padding: 0.5rem 0; }
    .main-nav a { padding: 0.75rem 1rem; }
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
        display: none;
    }
    .main-nav li.dropdown-open .dropdown-menu { display: block; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 1.8rem; }
    section { padding: 1.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .logo-text { font-size: 1.1rem; }
    .logo-icon { width: 48px; height: 48px; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero { padding: 2.5rem 1rem; }
}