/* ================================================
   AUFLAGENBOXEN.DE - STYLE.CSS
   Nischen-Informationsseite für Auflagenboxen
   Organisches, naturnahes Design
   ================================================ */

/* === CSS VARIABLES === */
:root {
    --color-primary: #4A7C59;
    --color-primary-dark: #335542;
    --color-primary-light: #6FA882;
    --color-secondary: #8B5E3C;
    --color-secondary-light: #B07D56;
    --color-accent: #D4A84B;
    --color-accent-light: #EDD07A;

    --color-bg: #F8F5F0;
    --color-bg-alt: #EEE9E0;
    --color-bg-dark: #2C3A2E;
    --color-card: #FFFFFF;
    --color-text: #2A2A2A;
    --color-text-light: #5A6155;
    --color-text-muted: #8A9485;
    --color-border: #D8D0C5;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', 'Segoe UI', sans-serif;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-xxl: 6rem;

    --radius-sm: 4px;
    --radius-md: 10px;
    --radius-lg: 20px;

    --shadow-sm: 0 2px 10px rgba(42, 42, 42, 0.06);
    --shadow-md: 0 4px 24px rgba(42, 42, 42, 0.09);
    --shadow-lg: 0 8px 48px rgba(42, 42, 42, 0.13);

    --max-width: 1200px;
    --transition: 0.3s ease;
}

/* === RESET & BASE === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    line-height: 1.25;
    color: var(--color-bg-dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.4rem; }
li { margin-bottom: 0.4rem; }

/* === LAYOUT HELPERS === */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

.section { padding: var(--space-xl) 0; }
.section--alt { background-color: var(--color-bg-alt); }
.section--dark {
    background-color: var(--color-bg-dark);
    color: #E8EDE5;
}
.section--dark h2,
.section--dark h3,
.section--dark p { color: #E8EDE5; }

.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: rgba(74, 124, 89, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    margin-bottom: 0.75rem;
}

.section-title {
    margin-bottom: var(--space-sm);
}

.section-intro {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 720px;
    margin-bottom: var(--space-lg);
}

/* === HEADER / NAVIGATION === */
.site-header {
    background: var(--color-card);
    border-bottom: 2px solid var(--color-bg-alt);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 1rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-bg-dark);
}

.site-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.site-logo:hover { color: var(--color-primary); }

.main-nav { display: flex; align-items: center; gap: 0.25rem; }

.main-nav a {
    color: var(--color-text-light);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-primary);
    background: rgba(74, 124, 89, 0.08);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* === HERO === */
.hero {
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, #3D5A3E 60%, var(--color-primary-dark) 100%);
    color: white;
    padding: clamp(3rem, 8vw, 6rem) 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-xl);
}

.hero-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent-light);
    border: 1px solid rgba(212, 168, 75, 0.4);
    padding: 0.35rem 0.9rem;
    border-radius: 2rem;
    margin-bottom: 1rem;
}

.hero h1 {
    color: white;
    margin-bottom: var(--space-md);
}

.hero h1 span { color: var(--color-accent-light); }

.hero-text {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.82);
    margin-bottom: var(--space-lg);
    max-width: 520px;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration {
    width: 100%;
    max-width: 420px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    backdrop-filter: blur(4px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.illus-item {
    background: rgba(255,255,255,0.07);
    border-radius: var(--radius-md);
    padding: 1.2rem 1rem;
    text-align: center;
    transition: background var(--transition);
}
.illus-item:hover { background: rgba(255,255,255,0.12); }
.illus-item .icon { font-size: 2rem; margin-bottom: 0.5rem; }
.illus-item p { font-size: 0.82rem; color: rgba(255,255,255,0.75); margin: 0; }

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}
.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 124, 89, 0.35);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
    color: white;
}

.btn-secondary {
    background: var(--color-secondary);
    color: white;
    border-color: var(--color-secondary);
}
.btn-secondary:hover {
    background: #6E4A2A;
    color: white;
    transform: translateY(-2px);
}

/* === CARDS === */
.card-grid {
    display: grid;
    gap: 1.5rem;
}
.card-grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: rgba(74, 124, 89, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
}

.card h3 { margin-bottom: 0.75rem; }
.card p { color: var(--color-text-light); font-size: 0.95rem; }

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 1rem;
    transition: gap var(--transition);
}
.card-link:hover { gap: 0.7rem; color: var(--color-primary-dark); }

/* === NAV-CARDS (große Topic-Karten auf Homepage) === */
.topic-card {
    display: block;
    background: var(--color-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: transform var(--transition), box-shadow var(--transition);
    color: var(--color-text);
}
.topic-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    color: var(--color-text);
}

.topic-card-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: var(--space-md) var(--space-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
}
.topic-card-header .icon { font-size: 2rem; }
.topic-card-header h3 { color: white; margin: 0; font-size: 1.15rem; }

.topic-card-body { padding: var(--space-md) var(--space-lg); }
.topic-card-body p { color: var(--color-text-light); font-size: 0.95rem; margin-bottom: 1rem; }

.topic-card-footer {
    padding: 0.75rem var(--space-lg);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
}

/* Alternating header colors */
.topic-card:nth-child(2) .topic-card-header {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #6E4A2A 100%);
}
.topic-card:nth-child(3) .topic-card-header {
    background: linear-gradient(135deg, #5B7FA6 0%, #3D5A80 100%);
}
.topic-card:nth-child(4) .topic-card-header {
    background: linear-gradient(135deg, #7B6CAB 0%, #574E80 100%);
}
.topic-card:nth-child(5) .topic-card-header {
    background: linear-gradient(135deg, var(--color-accent) 0%, #B08A30 100%);
}

/* === INFO BOX === */
.info-box {
    border-left: 4px solid var(--color-primary);
    background: rgba(74, 124, 89, 0.07);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}
.info-box.info-warning {
    border-color: var(--color-accent);
    background: rgba(212, 168, 75, 0.08);
}
.info-box.info-tip {
    border-color: var(--color-secondary);
    background: rgba(139, 94, 60, 0.08);
}

.info-box-title {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}
.info-box.info-warning .info-box-title { color: #8B6A1A; }
.info-box.info-tip .info-box-title { color: var(--color-secondary); }

/* === TABLE === */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin: 1.5rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-card);
}

th {
    background: var(--color-primary);
    color: white;
    padding: 0.9rem 1.2rem;
    text-align: left;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

td {
    padding: 0.85rem 1.2rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
    vertical-align: top;
}

tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: rgba(238, 233, 224, 0.5); }
tr:hover td { background: rgba(74, 124, 89, 0.05); }

.check { color: var(--color-primary); font-weight: 700; }
.cross { color: #C0392B; font-weight: 700; }
.partial { color: var(--color-accent); font-weight: 700; }

/* === BREADCRUMB === */
.breadcrumb {
    background: var(--color-bg-alt);
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.85rem;
    color: var(--color-text-muted);
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb span { margin: 0 0.4rem; }

/* === ARTICLE CONTENT === */
.article-content {
    max-width: 820px;
    margin: 0 auto;
}
.article-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.article-content h3 { margin-top: 1.8rem; margin-bottom: 0.75rem; color: var(--color-secondary); }
.article-content ul, .article-content ol { margin-bottom: 1rem; }
.article-content li { margin-bottom: 0.5rem; }

/* === FAQ === */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }

.faq-item {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    gap: 1rem;
    transition: background var(--transition);
}
.faq-question:hover { background: rgba(74, 124, 89, 0.05); }
.faq-question .faq-icon { font-size: 1.2rem; transition: transform var(--transition); flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding var(--transition);
    padding: 0 1.5rem;
    color: var(--color-text-light);
    line-height: 1.7;
}
.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.2rem;
}

/* === HIGHLIGHT STRIP === */
.highlight-strip {
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    padding: var(--space-lg) 0;
    text-align: center;
}
.highlight-strip h2 { color: white; margin-bottom: 0.5rem; }
.highlight-strip p { color: rgba(255,255,255,0.85); max-width: 640px; margin: 0 auto 1.5rem; }

/* === STATS ROW === */
.stats-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: var(--space-lg) 0;
}

.stat-item { text-align: center; padding: 1rem 1.5rem; }
.stat-number {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--color-primary);
    display: block;
}
.stat-label { font-size: 0.85rem; color: var(--color-text-muted); }

/* === LEGAL PAGES === */
.legal-content {
    max-width: 760px;
    margin: 0 auto;
    background: var(--color-card);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 3rem);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}
.legal-content h2 { margin-top: 2rem; margin-bottom: 0.75rem; font-size: 1.3rem; color: var(--color-secondary); }
.legal-content h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; font-size: 1.05rem; }
.legal-placeholder {
    background: var(--color-bg-alt);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 1rem 0;
    text-align: center;
}

/* === FOOTER === */
.site-footer {
    background: var(--color-bg-dark);
    color: #C5CEC2;
    padding: var(--space-xl) 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-lg);
    padding-bottom: var(--space-xl);
}

.footer-brand .site-logo { color: white; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; opacity: 0.75; line-height: 1.6; max-width: 280px; }

.footer-col h4 {
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: #A8B5A5; font-size: 0.9rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--color-primary-light); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.25rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #7A8A77;
}

.footer-legal-links { display: flex; gap: 1.5rem; }
.footer-legal-links a { color: #7A8A77; }
.footer-legal-links a:hover { color: var(--color-primary-light); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: span 2; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--color-card);
        border-bottom: 2px solid var(--color-bg-alt);
        padding: 1rem;
        box-shadow: var(--shadow-md);
        gap: 0.25rem;
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 0.7rem 1rem; border-radius: var(--radius-sm); width: 100%; }

    .site-header { position: relative; }

    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { display: none; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: span 1; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .card-grid--4 { grid-template-columns: 1fr 1fr; }
    .stats-row { flex-direction: column; align-items: center; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; justify-content: center; }
}
