/*
Theme Name: FoodCoop
Theme URI: https://foodcoopapp.com
Author: FoodCoopApp
Author URI: https://foodcoopapp.com
Description: Eigenständiges WordPress-Theme für die FoodCoopApp – Verwaltungssoftware für Lebensmittel-Einkaufsgemeinschaften.
Version: 1.0.5
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: foodcoop
*/

/* ────────── Design-Tokens (übernommen aus Generate-*.ps1) ────────── */
:root {
    --fc-text:       #1F2A22;
    --fc-heading:    #1C5236;
    --fc-dark:       #1F5A1A;
    --fc-light:      #8BC96E;
    --fc-accent:     #E08A2E;
    --fc-accent-dk:  #B6691D;
    --fc-card:       #E4F1E8;
    --fc-border:     #DCE4D6;
    --fc-muted:      #697566;
    --fc-background: #F3F6F1;
    --fc-white:      #FFFFFF;
    --fc-alert:      #C8503A;

    --fc-shadow:     0 8px 32px rgba(28, 82, 54, 0.14);
    --fc-shadow-sm:  0 2px 12px rgba(28, 82, 54, 0.08);
    --fc-radius:     20px;
    --fc-radius-sm:  12px;

    --fc-font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --fc-font-body:    'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ────────── Reset & Basis ────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--fc-font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--fc-text);
    background: var(--fc-background);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--fc-font-display);
    color: var(--fc-heading);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 16px;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.4rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 16px; }
a { color: var(--fc-accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--fc-accent-dk); }

em { font-style: italic; color: var(--fc-heading); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ────────── Header ────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled {
    border-bottom-color: var(--fc-border);
    box-shadow: var(--fc-shadow-sm);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
}
.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--fc-heading);
}
.site-brand img { width: 40px; height: 40px; border-radius: 9px; }
.site-brand-text {
    font-family: var(--fc-font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--fc-heading);
    letter-spacing: .01em;
}
.site-nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
}
.site-nav a {
    color: var(--fc-text);
    font-weight: 500;
    font-size: 15px;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav .current-menu-item > a {
    color: var(--fc-heading);
    border-bottom-color: var(--fc-accent);
}
.site-nav-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 24px;
    color: var(--fc-heading);
    cursor: pointer;
}
@media (max-width: 820px) {
    .site-nav-toggle { display: block; }
    .site-nav {
        position: absolute;
        top: 100%;
        right: 24px;
        background: var(--fc-white);
        border: 1px solid var(--fc-border);
        border-radius: var(--fc-radius-sm);
        box-shadow: var(--fc-shadow);
        padding: 16px 24px;
        display: none;
    }
    .site-nav.open { display: block; }
    .site-nav ul { flex-direction: column; gap: 14px; }
}

/* ────────── Hero ────────── */
.hero {
    background: linear-gradient(135deg, var(--fc-dark) 0%, var(--fc-light) 100%);
    color: var(--fc-white);
    padding: 80px 0 88px;
    text-align: center;
    position: relative;
    overflow: hidden;
    max-width: 80%;
    margin: 0 auto;
    border-radius: var(--fc-radius);
}
@media (max-width: 720px) {
    .hero { max-width: 100%; border-radius: 0; }
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.12), transparent 60%);
    pointer-events: none;
}
.hero h1 { color: var(--fc-white); margin-bottom: 18px; }
.hero p {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 620px;
    margin: 0 auto 36px;
    color: rgba(255, 255, 255, 0.92);
}
.hero .label {
    display: inline-block;
    font-size: 12px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 99px;
    padding: 5px 14px;
    margin-bottom: 20px;
}

/* ────────── Sections ────────── */
.section { padding: 80px 0; }
.section-cream { background: var(--fc-card); }
.section-white { background: var(--fc-white); }
.section h2 { text-align: center; }
.section-intro {
    text-align: center;
    color: var(--fc-muted);
    max-width: 620px;
    margin: 0 auto 48px;
    font-size: 1.05rem;
}

.label {
    display: inline-block;
    font-size: 11px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--fc-accent);
    font-weight: 600;
    margin-bottom: 8px;
}
.label-light { color: rgba(255, 255, 255, 0.85); }

.divider-amber {
    width: 60px;
    height: 3px;
    background: var(--fc-accent);
    border-radius: 99px;
    margin: 12px 0 20px;
}
.divider-center { margin-left: auto; margin-right: auto; }

/* ────────── Buttons ────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--fc-font-body);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: transform .2s, box-shadow .25s;
    text-decoration: none;
    line-height: 1;
}
.btn-primary {
    background: linear-gradient(135deg, var(--fc-accent), var(--fc-accent-dk));
    color: var(--fc-white);
    box-shadow: 0 4px 18px rgba(224, 138, 46, .35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(224, 138, 46, .45);
    color: var(--fc-white);
}
.btn-green {
    background: linear-gradient(135deg, var(--fc-dark), var(--fc-heading));
    color: var(--fc-white);
}
.btn-green:hover { color: var(--fc-white); transform: translateY(-2px); }
.btn-outline {
    background: transparent;
    color: var(--fc-heading);
    border: 2px solid var(--fc-heading);
}
.btn-outline:hover {
    background: var(--fc-heading);
    color: var(--fc-white);
}

/* ────────── Feature-Grid (Funktionen-Seite) ────────── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin: 40px 0;
}
.feature-card {
    background: var(--fc-white);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    padding: 32px 28px;
    box-shadow: var(--fc-shadow-sm);
    transition: transform .25s, box-shadow .25s;
}
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--fc-shadow);
}
.feature-card .icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--fc-dark), var(--fc-light));
    color: var(--fc-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
}
.feature-card h3 { color: var(--fc-heading); margin-bottom: 10px; }
.feature-card p { color: var(--fc-muted); font-size: 15px; margin: 0; }
.feature-card ul {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
}
.feature-card ul li {
    font-size: 14px;
    color: var(--fc-text);
    padding: 4px 0 4px 18px;
    position: relative;
    line-height: 1.55;
}
.feature-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--fc-accent);
}

/* ────────── Inline-Card (Rechtstexte u.ä.) ────────── */
.fc-card {
    background: var(--fc-card);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius-sm);
    padding: 18px 22px;
    margin: 16px 0 22px;
}
.fc-card p { margin: 4px 0; font-size: 15px; }
.fc-card strong { color: var(--fc-heading); }

/* ────────── Rechtstext-Layout ────────── */
.legal-page {
    background: var(--fc-white);
    padding: 60px 0 80px;
}
.legal-page h1 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    margin-bottom: 4px;
}
.legal-page .stand {
    color: var(--fc-muted);
    font-style: italic;
    margin-bottom: 28px;
    font-size: 14px;
}
.legal-page h2 {
    font-size: 1.45rem;
    color: var(--fc-heading);
    border-bottom: 2px solid var(--fc-accent);
    padding-bottom: 6px;
    margin: 40px 0 14px;
}
.legal-page h3 {
    font-size: 1.1rem;
    color: var(--fc-accent-dk);
    margin: 24px 0 8px;
}
.legal-page p { color: var(--fc-text); margin-bottom: 12px; }
.legal-page ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 18px;
}
.legal-page ul li {
    padding: 4px 0 4px 20px;
    position: relative;
    color: var(--fc-text);
}
.legal-page ul li::before {
    content: '•';
    position: absolute;
    left: 4px;
    top: 4px;
    color: var(--fc-accent);
    font-weight: 700;
}

/* ────────── Footer ────────── */
.site-footer {
    background: var(--fc-heading);
    color: rgba(255, 255, 255, 0.75);
    padding: 60px 0 30px;
    margin-top: 80px;
}
.site-footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}
.site-footer a:hover { color: var(--fc-white); }
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
@media (max-width: 720px) {
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
.footer-brand .site-brand-text { color: var(--fc-white); }
.footer-brand p { color: rgba(255, 255, 255, 0.7); font-size: 14px; }
.footer-brand .footer-stores {
    color: var(--fc-accent);
    font-size: 13px;
    font-weight: 500;
    margin: 12px 0 14px;
    letter-spacing: .01em;
}
.footer-col h4 {
    color: var(--fc-white);
    font-family: var(--fc-font-body);
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin: 6px 0 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 4px 0; font-size: 14px; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 22px;
    font-size: 13px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ────────── Hilfsklassen ────────── */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
