/* Kollagen-Experte.de — shared stylesheet */

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

:root {
    --bg: #0F1614;
    --bg-elev: #16201D;
    --bg-elev-2: #1B2724;
    --accent: #4FB890;
    --accent-dim: #2D6E54;
    --accent-bright: #6FD2A8;
    --gold: #C9A876;
    --text: #ECEEEC;
    --text-dim: #8B9290;
    --text-mut: #5C625F;
    --border: rgba(79, 184, 144, 0.18);
    --border-strong: rgba(79, 184, 144, 0.35);
}

html, body { height: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body::before {
    content: "";
    position: fixed;
    top: -15%; left: 50%;
    transform: translateX(-50%);
    width: 90vw; height: 50vh;
    background: radial-gradient(ellipse at center, rgba(79, 184, 144, 0.05), transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.container-narrow {
    max-width: 760px;
}

/* Header / Navigation */
header {
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(15, 22, 20, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.5px;
    text-decoration: none;
    color: var(--text);
}

.logo-dot {
    width: 12px; height: 12px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 14px rgba(79, 184, 144, 0.65);
}

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

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 22px;
    cursor: pointer;
    padding: 6px;
}

@media (max-width: 720px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        background: var(--bg-elev);
        padding: 20px 24px;
        border-bottom: 1px solid var(--border);
        gap: 16px;
    }
    .nav-links.open { display: flex; }
}

/* Main */
main {
    flex: 1;
    padding: 64px 0 80px;
}

main.hero-main { padding-top: 32px; }

/* Hero (homepage) */
.hero {
    text-align: center;
    max-width: 780px;
    margin: 40px auto 0;
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    margin-bottom: 32px;
}

h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

h1 .accent {
    color: var(--accent);
    font-style: italic;
}

.subhead {
    font-size: clamp(16px, 1.9vw, 19px);
    color: var(--text-dim);
    max-width: 620px;
    margin: 0 auto 48px;
}

/* Article typography */
.article-header {
    max-width: 760px;
    margin: 0 auto 48px;
}

.article-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    color: var(--text-mut);
    font-size: 13px;
    margin-bottom: 16px;
}

.article-meta .tag {
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.article-meta .dot {
    width: 4px; height: 4px;
    background: var(--text-mut);
    border-radius: 50%;
}

.article-title {
    font-family: Georgia, serif;
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
}

.article-lead {
    font-size: 19px;
    color: var(--text-dim);
    line-height: 1.6;
}

.article-body {
    max-width: 720px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.8;
    color: var(--text);
}

.article-body h2 {
    font-family: Georgia, serif;
    font-size: 28px;
    margin: 48px 0 16px;
    color: var(--text);
    letter-spacing: -0.3px;
}

.article-body h3 {
    font-size: 21px;
    margin: 36px 0 12px;
    color: var(--accent-bright);
    font-weight: 700;
}

.article-body p {
    margin-bottom: 18px;
    color: var(--text-dim);
}

.article-body ul, .article-body ol {
    margin: 16px 0 24px 28px;
    color: var(--text-dim);
}

.article-body ul li, .article-body ol li {
    margin-bottom: 10px;
}

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

.article-body a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--border-strong);
    transition: color 0.2s, border-color 0.2s;
}

.article-body a:hover {
    color: var(--accent-bright);
    border-color: var(--accent-bright);
}

.article-body blockquote {
    border-left: 3px solid var(--accent);
    padding: 8px 0 8px 24px;
    margin: 28px 0;
    font-style: italic;
    color: var(--text);
    background: rgba(79, 184, 144, 0.03);
    border-radius: 0 8px 8px 0;
}

.article-body .info-box {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 32px 0;
}

.article-body .info-box h4 {
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.article-body .info-box p:last-child { margin-bottom: 0; }

/* Card grid (featured / related articles) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 56px 0;
}

.article-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 24px;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    background: var(--bg-elev-2);
}

.article-card .tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 14px;
}

.article-card h3 {
    font-family: Georgia, serif;
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text);
    letter-spacing: -0.2px;
}

.article-card p {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
}

.article-card .read-more {
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    margin-top: 18px;
    letter-spacing: 0.5px;
}

/* Section heading */
.section-heading {
    text-align: center;
    margin-bottom: 12px;
    font-family: Georgia, serif;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-sub {
    text-align: center;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 16px;
    font-size: 16px;
}

/* CTA / Newsletter */
.cta-box {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 32px;
    max-width: 560px;
    margin: 64px auto 0;
    text-align: center;
}

.cta-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.cta-sub {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 22px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 200px;
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.newsletter-form input[type="email"]:focus { border-color: var(--accent); }

.newsletter-form button {
    padding: 14px 22px;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    font-family: inherit;
}

.newsletter-form button:hover { opacity: 0.92; }
.newsletter-form button:active { transform: scale(0.98); }

.newsletter-note {
    font-size: 12px;
    color: var(--text-mut);
    margin-top: 14px;
    line-height: 1.5;
    text-align: left;
}

.newsletter-note a { color: var(--accent); text-decoration: none; }

/* Form generic */
.contact-form {
    max-width: 560px;
    margin: 0 auto;
}

.form-row {
    margin-bottom: 18px;
}

.form-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.form-row textarea { min-height: 160px; resize: vertical; }

.form-row input:focus,
.form-row textarea:focus { border-color: var(--accent); }

.btn-primary {
    padding: 14px 28px;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

/* Legal pages (impressum, datenschutz) */
.legal {
    max-width: 800px;
    margin: 0 auto;
}

.legal h1 {
    font-family: Georgia, serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.legal .lead {
    color: var(--text-dim);
    margin-bottom: 40px;
    font-size: 15px;
}

.legal h2 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 14px;
    color: var(--accent);
}

.legal h3 {
    font-size: 16px;
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 10px;
    color: var(--text);
}

.legal p {
    color: var(--text-dim);
    margin-bottom: 14px;
    font-size: 15px;
}

.legal ul {
    margin: 14px 0 14px 24px;
    color: var(--text-dim);
    font-size: 15px;
}

.legal ul li { margin-bottom: 6px; }

.legal a { color: var(--accent); text-decoration: none; }
.legal a:hover { text-decoration: underline; }

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

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
    margin-top: 80px;
    position: relative;
    z-index: 1;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-mut);
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

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

@media (max-width: 600px) {
    main { padding: 40px 0 64px; }
    .article-body { font-size: 16px; }
    .article-body h2 { font-size: 24px; margin: 36px 0 12px; }
    .footer-inner { justify-content: center; text-align: center; }
    .footer-links { justify-content: center; }
}

/* Affiliate disclosure banner */
.disclosure {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 13px;
    color: var(--text-dim);
    margin: 24px 0;
    display: flex;
    gap: 12px;
    align-items: center;
}

.disclosure::before {
    content: "i";
    width: 22px; height: 22px;
    flex-shrink: 0;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-style: italic;
    font-family: Georgia, serif;
}
