/* ===================================
   Geldwissen Aktuell - Stylesheet
   =================================== */

:root {
    --gw-primary: #1b4965;
    --gw-primary-light: #2a6f97;
    --gw-primary-dark: #122f42;
    --gw-accent: #468b6a;
    --gw-accent-light: #5ba882;
    --gw-bg: #fafbfc;
    --gw-bg-alt: #f0f4f7;
    --gw-text: #2c3e50;
    --gw-text-light: #5a6c7d;
    --gw-text-muted: #8899a6;
    --gw-border: #dce3e8;
    --gw-white: #ffffff;
    --gw-shadow: 0 2px 8px rgba(27, 73, 101, 0.08);
    --gw-shadow-hover: 0 4px 16px rgba(27, 73, 101, 0.14);
    --gw-radius: 6px;
    --gw-font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --gw-font-heading: 'Merriweather', Georgia, 'Times New Roman', serif;
    --gw-max-width: 1140px;
    --gw-content-width: 760px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--gw-font-body);
    color: var(--gw-text);
    background: var(--gw-bg);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--gw-primary-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: var(--gw-accent);
    text-decoration: underline;
}

/* Container */
.container {
    max-width: var(--gw-max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--gw-font-heading);
    color: var(--gw-primary-dark);
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p {
    margin-bottom: 1rem;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.7rem 1.6rem;
    border: none;
    border-radius: var(--gw-radius);
    font-family: var(--gw-font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    text-align: center;
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
}

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

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

.btn--outline {
    background: transparent;
    color: var(--gw-primary);
    border: 2px solid var(--gw-primary);
}

.btn--outline:hover {
    background: var(--gw-primary);
    color: var(--gw-white);
}

.btn--small {
    padding: 0.45rem 1rem;
    font-size: 0.875rem;
    background: var(--gw-primary);
    color: var(--gw-white);
}

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gw-primary-dark);
    color: var(--gw-white);
    z-index: 1000;
    padding: 1rem;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
}

.cookie-banner__inner {
    max-width: var(--gw-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-banner__inner p {
    flex: 1;
    margin: 0;
    font-size: 0.9rem;
    min-width: 250px;
}

/* Header */
.site-header {
    background: var(--gw-white);
    border-bottom: 1px solid var(--gw-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--gw-shadow);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    gap: 1rem;
}

.site-logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.site-logo:hover {
    text-decoration: none;
}

.site-logo__name {
    font-family: var(--gw-font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gw-primary);
    line-height: 1.2;
}

.site-logo__tagline {
    font-size: 0.78rem;
    color: var(--gw-text-muted);
    letter-spacing: 0.02em;
}

.site-nav ul {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
}

.site-nav a {
    display: block;
    padding: 0.5rem 0.9rem;
    color: var(--gw-text);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--gw-radius);
    transition: background 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
    background: var(--gw-bg-alt);
    color: var(--gw-primary);
    text-decoration: none;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gw-text);
    transition: transform 0.2s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--gw-primary) 0%, var(--gw-primary-light) 100%);
    color: var(--gw-white);
    padding: 3.5rem 0;
    text-align: center;
}

.hero h1 {
    color: var(--gw-white);
    font-size: 2.3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.92;
    max-width: 640px;
    margin: 0 auto 1.5rem;
}

/* Section */
.section {
    padding: 3rem 0;
}

.section--alt {
    background: var(--gw-bg-alt);
}

.section__title {
    text-align: center;
    margin-bottom: 2rem;
}

.section__title h2 {
    margin-bottom: 0.5rem;
}

.section__title p {
    color: var(--gw-text-light);
    max-width: 560px;
    margin: 0 auto;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--gw-white);
    border-radius: var(--gw-radius);
    overflow: hidden;
    box-shadow: var(--gw-shadow);
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}

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

.card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--gw-bg-alt);
}

.card__body {
    padding: 1.25rem;
}

.card__date {
    font-size: 0.82rem;
    color: var(--gw-text-muted);
    margin-bottom: 0.4rem;
}

.card__body h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.card__body h3 a {
    color: var(--gw-primary-dark);
}

.card__body h3 a:hover {
    color: var(--gw-accent);
}

.card__body p {
    color: var(--gw-text-light);
    font-size: 0.95rem;
}

.card__link {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Content page */
.page-header {
    background: var(--gw-primary);
    color: var(--gw-white);
    padding: 2.5rem 0;
    text-align: center;
}

.page-header h1 {
    color: var(--gw-white);
    margin-bottom: 0.3rem;
}

.page-header p {
    opacity: 0.88;
}

.page-content {
    max-width: var(--gw-content-width);
    margin: 0 auto;
    padding: 2.5rem 1.25rem;
}

.page-content h2 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.page-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.page-content ul,
.page-content ol {
    margin-bottom: 1.25rem;
}

.page-content li {
    margin-bottom: 0.35rem;
}

/* Article detail */
.article-meta {
    color: var(--gw-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gw-border);
}

.article-image {
    width: 100%;
    border-radius: var(--gw-radius);
    margin-bottom: 1.5rem;
    background: var(--gw-bg-alt);
    min-height: 300px;
}

/* Disclaimer box */
.disclaimer-box {
    background: var(--gw-bg-alt);
    border-left: 4px solid var(--gw-accent);
    padding: 1rem 1.25rem;
    margin: 2rem 0;
    border-radius: 0 var(--gw-radius) var(--gw-radius) 0;
    font-size: 0.9rem;
    color: var(--gw-text-light);
}

/* Info box */
.info-box {
    background: #e8f4f0;
    border-left: 4px solid var(--gw-accent);
    padding: 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--gw-radius) var(--gw-radius) 0;
}

.info-box h4 {
    color: var(--gw-accent);
    margin-bottom: 0.4rem;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--gw-white);
    border-radius: var(--gw-radius);
    box-shadow: var(--gw-shadow);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    background: var(--gw-bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--gw-primary);
}

.feature-item h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 0.92rem;
    color: var(--gw-text-light);
}

/* Contact form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 1rem;
}

.contact-info h3 {
    margin-bottom: 0.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--gw-border);
    border-radius: var(--gw-radius);
    font-family: var(--gw-font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s;
    background: var(--gw-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gw-primary-light);
    box-shadow: 0 0 0 3px rgba(42, 111, 151, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* About page */
.about-values {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.value-card {
    padding: 1.25rem;
    background: var(--gw-bg-alt);
    border-radius: var(--gw-radius);
}

.value-card h3 {
    color: var(--gw-primary);
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
}

.value-card p {
    font-size: 0.92rem;
    color: var(--gw-text-light);
    margin: 0;
}

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Footer */
.site-footer {
    background: var(--gw-primary-dark);
    color: rgba(255,255,255,0.85);
    padding: 2.5rem 0 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
}

.footer-tagline {
    font-size: 0.88rem;
    opacity: 0.75;
    margin-bottom: 0.75rem;
}

.footer-disclaimer {
    font-size: 0.82rem;
    opacity: 0.65;
    line-height: 1.5;
}

.site-footer h3 {
    color: var(--gw-white);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    font-family: var(--gw-font-body);
    font-weight: 700;
}

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

.site-footer li {
    margin-bottom: 0.35rem;
}

.site-footer a {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
}

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

.site-footer p {
    font-size: 0.9rem;
}

.footer-bottom {
    margin-top: 2rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.12);
    text-align: center;
    font-size: 0.82rem;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .nav-toggle {
        display: flex;
    }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--gw-white);
        border-bottom: 1px solid var(--gw-border);
        box-shadow: var(--gw-shadow);
        padding: 0.5rem 1rem;
    }
    .site-nav.open {
        display: block;
    }
    .site-nav ul {
        flex-direction: column;
    }
    .hero h1 {
        font-size: 1.7rem;
    }
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.35rem; }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .card-grid {
        grid-template-columns: 1fr;
    }
}
