/* ============================================
   SEOGraz - Global Styles
   Extrahiert aus index.html + erweitert
   ============================================ */

:root {
    --text: #1a2e1a;
    --text-soft: #3a4a3a;
    --text-muted: #5a6a5a;
    --bg: #ffffff;
    --bg-warm: #f7faf7;
    --bg-section: #f0f5f0;
    --accent: #1a3c34;
    --accent-light: #2d5a4a;
    --accent-warm: #b8860b;
    --accent-warm-light: #daa520;
    --border: #dce5dc;
    --border-light: #e8f0e8;
}

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

html {
    scroll-behavior: smooth;
    font-size: 18px;
}

body {
    font-family: 'Source Sans 3', -apple-system, sans-serif;
    color: var(--text);
    line-height: 1.8;
    background: var(--bg);
}

h1, h2, h3, h4 {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
}

h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    margin-top: 3.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-warm) 100%);
    border-radius: 2px;
}

h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--accent);
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-soft);
}

strong {
    color: var(--text);
    font-weight: 600;
}

a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(30, 58, 95, 0.3);
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--accent-warm);
    text-decoration-color: var(--accent-warm);
}

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

li {
    margin-bottom: 0.75rem;
    color: var(--text-soft);
}

code {
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 0.9em;
    background: var(--bg-section);
    padding: 0.15em 0.4em;
    border-radius: 3px;
    color: var(--accent);
}

/* Layout */
.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-wide {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    background: var(--accent);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.15);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-text {
    font-family: 'Source Sans 3', -apple-system, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.logo-text span {
    color: var(--accent-warm-light);
}

/* Main Navigation */
.main-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.main-nav > a {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    text-decoration: none;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.2s ease;
}

.main-nav > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-warm-light);
    transition: width 0.2s ease;
}

.main-nav > a:hover {
    color: #fff;
}

.main-nav > a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 6px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero */
.hero {
    background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
    padding: 3rem 0 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.hero-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--accent-warm);
}

.hero h1 {
    max-width: 650px;
}

.hero-intro {
    font-size: 1.15rem;
    color: var(--text-soft);
    max-width: 600px;
    margin-bottom: 1rem;
}

.hero-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-meta time {
    color: var(--accent);
    font-weight: 500;
}

/* Content */
.content {
    padding: 1.5rem 0 4rem;
}

/* Section Dividers */
section {
    padding-bottom: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

section:last-of-type {
    border-bottom: none;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, var(--bg-section) 0%, #e8f4f8 100%);
    border-left: 4px solid var(--accent);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.highlight-box p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.highlight-box strong {
    color: var(--accent);
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.info-card {
    background: var(--bg-section);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
    text-decoration: none;
}

.info-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.08);
}

.info-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.info-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
}

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

.comparison-table th {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}

.comparison-table tr:hover td {
    background: var(--bg-section);
}

.comparison-table td {
    color: var(--text-soft);
}

/* Section Break */
.section-break {
    background: var(--bg-section);
    padding: 4rem 0;
    margin: 3rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.section-break h2 {
    margin-top: 0;
}

/* FAQ */
.faq-section {
    margin-top: 3rem;
    padding-top: 2rem;
}

.faq-item {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: var(--accent);
}

.faq-question {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-warm);
    transition: all 0.2s ease;
}

.faq-question:hover {
    background: var(--bg-section);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--accent);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.open .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}

.faq-answer p {
    padding: 1.25rem 0;
    margin: 0;
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

/* TOC */
.toc {
    background: var(--bg-section);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    margin: 0 0 3rem;
    border: 1px solid var(--border-light);
}

.toc h4 {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.toc ol {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.toc li {
    margin-bottom: 0.4rem;
}

.toc a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 0.95rem;
}

.toc a:hover {
    color: var(--accent);
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
}

.breadcrumb li {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.breadcrumb li:not(:last-child)::after {
    content: '>';
    color: var(--text-muted);
    margin-left: 0.25rem;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb [aria-current="page"] {
    color: var(--accent);
    font-weight: 500;
}

/* Author Byline */
.author-byline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.author-avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.author-byline a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.author-byline a:hover {
    color: var(--accent-warm);
}

.reading-time {
    color: var(--text-muted);
}

.reading-time::before {
    content: '\00b7';
    margin: 0 0.4rem;
}

/* Author Box (end of article) */
.author-box {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: var(--bg-section);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 3rem;
    border: 1px solid var(--border-light);
}

.author-box .author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-box h3 {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 0.25rem;
}

.author-box h3 a {
    text-decoration: none;
}

.author-box .author-role {
    font-size: 0.85rem;
    color: var(--accent-warm);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.author-box .author-bio {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.3);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-warm);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background: var(--accent);
    color: rgba(255,255,255,0.8);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand-text {
    font-family: 'Source Sans 3', -apple-system, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.footer-brand-text span {
    color: var(--accent-warm-light);
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: #fff;
}

.footer-categories {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-categories a {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-categories a:hover {
    color: #fff;
}

.footer-copy {
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
}

/* Content Figure */
.content-figure {
    margin: 2rem 0;
    text-align: center;
}

.content-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.content-figure figcaption {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.75rem;
}

/* Definition Box */
.definition-box {
    background: linear-gradient(135deg, var(--bg-section) 0%, #e8f4f8 100%);
    border-left: 4px solid var(--accent-warm);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.definition-box h2 {
    margin-top: 0;
    font-size: 1.2rem;
}

.definition-box h2::after {
    display: none;
}

.definition-box p {
    margin-bottom: 0;
    font-size: 1.05rem;
}

/* Related Terms */
.related-terms {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    border-bottom: none;
}

/* Mobile */
@media (max-width: 768px) {
    html { font-size: 16px; }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--accent);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0,0,0,0.2);
        overflow-y: auto;
        z-index: 100;
    }

    .main-nav.open {
        right: 0;
    }

    .main-nav > a {
        padding: 1rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .main-nav > a::after {
        display: none;
    }

    .info-grid { grid-template-columns: 1fr; }

    .comparison-table { font-size: 0.85rem; }
    .comparison-table th,
    .comparison-table td { padding: 0.75rem; }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .footer-categories {
        grid-template-columns: repeat(2, 1fr);
        text-align: center;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }

    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }

    .toc, .highlight-box, .info-card, .definition-box {
        padding: 1.25rem;
    }

    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .breadcrumb {
        font-size: 0.8rem;
    }
}
