/* =====================================================================
   ONKELFUNDUS — Design-System „Werkstatt" (v2, 2026-10-24)
   Warm · Editorial · Handgemacht — Pergament, Terracotta, Fraunces-Serif.
   Keine Tech-Gradients, keine kühlen Grautöne: jedes Grau ist warm getönt.
   ===================================================================== */

:root {
    /* Flächen */
    --bg: #f5f4ed;            /* Pergament */
    --surface: #faf9f5;       /* Elfenbein — Karten */
    --surface-2: #e8e6dc;     /* Warmes Sand — hervorgehobene Flächen */
    --ink: #141413;           /* Warmes Fast-Schwarz */
    --text: #141413;
    --muted: #5e5d59;         /* Oliv-Grau (sekundär) */
    --faint: #87867f;         /* Stein-Grau (tertiär) */
    --primary: #c96442;       /* Terrakotta */
    --primary-dark: #a34e33;  /* Terrakotta dunkel (Hover) */
    --accent-soft: #f3e2d9;   /* Terrakotta-Tint */
    --border: #e8e6dc;
    --border-soft: #f0eee6;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow-whisper: 0 4px 24px rgba(20, 20, 19, .05);
    --shadow-ring: 0 0 0 1px #d1cfc5;
    --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* Typografie: Serifen tragen die Überschriften — Buch-Atmosphäre */
h1, h2, h3, .brand {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -0.01em;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 680px; }
.muted { color: var(--muted); }

/* Header */
.site-header {
    background: rgba(250, 249, 245, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-soft);
    position: sticky; top: 0; z-index: 10;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand {
    font-size: 1.45rem; font-weight: 600; text-decoration: none; color: var(--ink);
    letter-spacing: -0.02em;
}
.brand span { color: var(--primary); font-style: italic; }
.main-nav a {
    margin-left: 24px; text-decoration: none; color: var(--muted); font-weight: 500;
    font-size: .97rem; transition: color .2s;
}
.main-nav a:hover { color: var(--primary-dark); }

/* Hero — warmes Papier, große Serifen, eine Terrakotta-Idee */
.hero {
    background:
        radial-gradient(ellipse 60% 80% at 85% 20%, rgba(201, 100, 66, .07), transparent 65%),
        radial-gradient(ellipse 50% 70% at 10% 90%, rgba(232, 230, 220, .8), transparent 70%),
        var(--bg);
    color: var(--ink);
    padding: 96px 0 88px;
    border-bottom: 1px solid var(--border-soft);
}
.hero .container { position: relative; }
.hero .eyebrow {
    display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .14em;
    text-transform: uppercase; color: var(--primary-dark); margin-bottom: 18px;
    padding: 5px 14px; border: 1px solid var(--border); border-radius: 999px;
    background: var(--surface);
}
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.12;
    max-width: 760px;
    font-weight: 600;
}
.hero h1 em { color: var(--primary); font-style: italic; }
.hero-sub {
    margin-top: 20px; font-size: 1.15rem; color: var(--muted); max-width: 580px;
    line-height: 1.65;
}
.hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* Buttons */
.btn {
    display: inline-block; padding: 13px 26px; border-radius: 12px;
    text-decoration: none; font-weight: 600; font-size: .97rem;
    font-family: var(--font-sans);
    transition: transform .15s, background .2s, color .2s, box-shadow .2s;
    border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: var(--primary); color: #faf9f5;
    box-shadow: 0 1px 0 rgba(20,20,19,.08), 0 0 0 1px rgba(163, 78, 51, .25);
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { color: var(--ink); border-color: var(--border); background: var(--surface); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-dark); }
.hero .btn-ghost { color: var(--ink); border-color: #d1cfc5; }
.hero .btn-ghost:hover { border-color: var(--primary); color: var(--primary-dark); }
.section .btn-ghost { color: var(--primary-dark); border-color: #d1cfc5; }
.section .btn-ghost:hover { background: var(--accent-soft); border-color: var(--primary); }

/* Sections — editorialer Rhythmus */
.section { padding: 72px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.section h2 { font-size: 2rem; margin-bottom: 10px; }
.section .section-intro { color: var(--muted); max-width: 560px; margin-bottom: 32px; }
.section h1 { font-size: 2.1rem; margin-bottom: 18px; }

/* Cards — große Bildkacheln, warm, weiche Kanten */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.card {
    background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
    text-decoration: none; color: var(--text); overflow: hidden;
    transition: transform .18s, box-shadow .22s, border-color .2s;
}
.card:hover {
    transform: translateY(-3px);
    border-color: var(--border);
    box-shadow: var(--shadow-whisper), var(--shadow-ring);
}
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.card h3 { font-size: 1.08rem; line-height: 1.25; }
.badge {
    flex-shrink: 0; font-size: .7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; padding: 4px 11px; border-radius: 999px;
}

/* Posts */
.post-list { display: grid; gap: 14px; }
.post-item { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 20px 22px; }
.post-item h3 a { text-decoration: none; color: var(--ink); }
.post-item h3 a:hover { color: var(--primary-dark); }
.post-item p { color: var(--muted); margin-top: 6px; font-size: .95rem; }

/* Form */
.contact-form { display: grid; gap: 8px; }
.contact-form label { font-weight: 600; font-size: .9rem; margin-top: 10px; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 12px 15px; border: 1px solid var(--border);
    border-radius: 12px; font: inherit; background: var(--surface);
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent;
}
.contact-form button { margin-top: 16px; justify-self: start; cursor: pointer; }

/* Notices */
.notice { border-radius: var(--radius); padding: 16px 18px; margin-bottom: 18px; font-weight: 500; }
.notice-ok { background: #e8f0e4; color: #3d5a3a; }
.notice-err { background: #f6e3df; color: #8f3d2e; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 56px; color: var(--muted); background: var(--surface); }
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--primary-dark); }

/* Mobile */
@media (max-width: 640px) {
    .hero { padding: 64px 0 56px; }
    .header-inner { height: 58px; }
    .main-nav a { margin-left: 14px; }
    .section { padding: 52px 0; }
}

/* =====================================================================
   MOBILE NAVIGATION (Hamburger, CSS-only Slide-in)
   ===================================================================== */
.nav-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nav-toggle-label {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: var(--radius);
    transition: background .2s;
}
.nav-toggle-label:hover { background: var(--surface-2); }

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    position: relative;
    transition: transform .3s, background .3s;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
}
.nav-toggle-icon::before { top: -7px; }
.nav-toggle-icon::after { top: 7px; }

/* Hamburger → X animation */
.nav-toggle:checked + .nav-toggle-label .nav-toggle-icon { background: transparent; }
.nav-toggle:checked + .nav-toggle-label .nav-toggle-icon::before { transform: rotate(45deg); top: 0; }
.nav-toggle:checked + .nav-toggle-label .nav-toggle-icon::after { transform: rotate(-45deg); top: 0; }

/* Slide-in Nav */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0;
}
.main-nav a { margin-left: 24px; }

@media (max-width: 768px) {
    .nav-toggle-label { display: inline-flex; }
    .header-search--desktop { display: none; }
    .header-search--mobile { display: flex; }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 85vw);
        height: 100vh;
        background: var(--surface);
        border-left: 1px solid var(--border-soft);
        flex-direction: column;
        align-items: stretch;
        padding: 80px 20px 20px;
        gap: 8px;
        overflow-y: auto;
        z-index: 100;
        transition: right .3s ease;
        box-shadow: -12px 0 40px rgba(20,20,19,.12);
    }
    .nav-toggle:checked ~ .site-header .main-nav,
    .nav-toggle:checked ~ .main-nav { right: 0; }

    .main-nav a {
        margin: 0;
        padding: 14px 16px;
        border-radius: 10px;
        font-size: 1.05rem;
        text-align: left;
        background: transparent;
    }
    .main-nav a:hover { background: var(--bg); color: var(--primary-dark); }

    .header-search--mobile {
        width: 100%;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid var(--border-soft);
    }
    .header-search--mobile input { width: 100%; }
}

@media (max-width: 640px) {
    .header-inner { height: 58px; }
    .main-nav { width: 100vw; right: -100vw; }
}

/* =====================================================================
   BREADCRUMB NAVIGATION
   ===================================================================== */
.breadcrumb-nav {
    padding: 12px 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border-soft);
}
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    color: var(--muted);
    list-style: none;
    margin: 0;
    padding: 0;
}
.breadcrumb li { display: flex; align-items: center; gap: 6px; }
.breadcrumb li:not(:last-child)::after {
    content: '›';
    color: var(--faint);
    font-weight: 700;
}
.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
    transition: color .2s;
}
.breadcrumb a:hover { color: var(--primary-dark); }
.breadcrumb span { color: var(--ink); }

/* =====================================================================
   SOCIAL SHARE BUTTONS (Design Detail)
   ===================================================================== */
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-soft);
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    text-decoration: none;
    color: #fff;
    font-size: 1.1rem;
    transition: transform .15s, opacity .2s, box-shadow .2s;
    box-shadow: 0 2px 6px rgba(20,20,19,.12);
}
.share-btn:hover { transform: translateY(-2px); opacity: .9; box-shadow: 0 4px 12px rgba(20,20,19,.18); }
.share-btn:focus { outline: 2px solid var(--primary); outline-offset: 2px; }
.share-btn--pinterest { background: #e60023; }
.share-btn--whatsapp { background: #25d366; }
.share-btn--telegram { background: #0088cc; }
.share-btn--facebook { background: #1877f2; }
.share-btn--x { background: #000000; }
.share-btn--copy { background: var(--primary); }

/* =====================================================================
   COOKIE CONSENT BANNER
   ===================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 24px rgba(20,20,19,.08);
    animation: cookie-slide-up .3s ease;
}
@keyframes cookie-slide-up {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.cookie-banner__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; max-width: 1120px; margin: 0 auto; }
.cookie-banner__text { margin: 0; font-size: .9rem; color: var(--text); flex: 1 1 280px; }
.cookie-banner__text a { color: var(--primary-dark); text-decoration: underline; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 0 auto; }
.cookie-settings-panel { padding: 16px 20px; border-top: 1px solid var(--border); background: var(--bg); max-width: 1120px; margin: 0 auto; }
.cookie-settings-panel h4 { margin: 0 0 12px; font-size: .95rem; }
.cookie-setting { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; cursor: pointer; font-size: .9rem; }
.cookie-setting input { accent-color: var(--primary); width: 18px; height: 18px; }
.cookie-settings-actions { display: flex; gap: 10px; margin-top: 8px; }

/* =====================================================================
   NEWSLETTER FORM (Footer + Home)
   ===================================================================== */
.footer-newsletter { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border-soft); }
.footer-newsletter h3 { font-size: 1.15rem; margin-bottom: 6px; }
.footer-newsletter .muted { margin-bottom: 12px; font-size: .9rem; }
.newsletter-form { display: grid; gap: 10px; max-width: 480px; }
.newsletter-input-group { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter-input-group input[type="email"] { flex: 1 1 240px; min-width: 200px; padding: 12px 15px; border: 1px solid var(--border); border-radius: 12px; font: inherit; background: var(--surface); }
.newsletter-input-group input[type="email"]:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent; }
.newsletter-consent { display: flex; align-items: flex-start; gap: 8px; font-size: .8rem; color: var(--muted); cursor: pointer; }
.newsletter-consent input { accent-color: var(--primary); margin-top: 2px; }
.newsletter-consent a { color: var(--primary-dark); text-decoration: underline; }
.newsletter-message { margin: 8px 0 0; font-size: .9rem; font-weight: 600; }

/* Newsletter-Block (Home) — dunkles Kapitel, warm statt Gradient */
.newsletter-block {
    background: var(--ink); color: #faf9f5;
    padding: 56px 24px; border-radius: var(--radius-lg);
    text-align: center; position: relative; overflow: hidden;
}
.newsletter-block::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 55% 90% at 80% 0%, rgba(201, 100, 66, .18), transparent 70%);
    pointer-events: none;
}
.newsletter-block h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-bottom: 8px; position: relative; }
.newsletter-block p { opacity: .85; margin-bottom: 22px; max-width: 480px; margin-left: auto; margin-right: auto; position: relative; }
.newsletter-block .newsletter-form { max-width: 480px; margin: 0 auto; text-align: left; position: relative; }
.newsletter-block .newsletter-input-group input[type="email"] { background: rgba(250,249,245,.08); border-color: rgba(250,249,245,.25); color: #faf9f5; }
.newsletter-block .newsletter-input-group input[type="email"]::placeholder { color: rgba(250,249,245,.55); }
.newsletter-block .newsletter-input-group input[type="email"]:focus { background: rgba(250,249,245,.14); outline-color: #faf9f5; }
.newsletter-block .newsletter-consent { color: rgba(250,249,245,.75); }
.newsletter-block .newsletter-consent a { color: #faf9f5; text-decoration: underline; }
.newsletter-block .btn-primary { background: var(--primary); color: #faf9f5; }
.newsletter-block .btn-primary:hover { background: #d4754f; }

/* =====================================================================
   404 PAGE
   ===================================================================== */
.error-404 { text-align: center; padding: 80px 20px; }
.error-404__code {
    font-family: var(--font-serif);
    font-size: clamp(5rem, 14vw, 10rem); font-weight: 600; line-height: 1;
    color: var(--primary); margin-bottom: 16px; font-style: italic;
}
.error-404__title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 10px; }
.error-404__text { color: var(--muted); margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }
.error-404__search { max-width: 400px; margin: 0 auto 32px; }
.error-404__search .header-search { width: 100%; }
.error-404__search input { width: 100%; }
.error-404__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.error-404__links a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; text-decoration: none; color: var(--text); font-weight: 500; font-size: .9rem; transition: transform .15s, border-color .2s, color .2s; }
.error-404__links a:hover { transform: translateY(-2px); border-color: var(--primary); color: var(--primary-dark); }

/* =====================================================================
   FAQ PAGE
   ===================================================================== */
.faq-page { max-width: 800px; margin: 0 auto; }
.faq-page h1 { margin-bottom: 8px; }
.faq-page > .muted { margin-bottom: 32px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; background: transparent; border: none; font: inherit; font-size: 1rem; font-weight: 600; text-align: left; cursor: pointer; color: var(--ink); }
.faq-question:hover { background: var(--bg); }
.faq-question:focus { outline: 2px solid var(--primary); outline-offset: -2px; }
.faq-question::after { content: '+'; font-size: 1.25rem; color: var(--primary); transition: transform .2s; flex-shrink: 0; }
.faq-item[open] .faq-question::after { transform: rotate(45deg); }
.faq-answer { padding: 0 20px 18px; color: var(--muted); line-height: 1.7; }
.faq-answer p { margin-bottom: 10px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer a { color: var(--primary-dark); text-decoration: underline; }

/* =====================================================================
   VISUALLY HIDDEN (Accessibility)
   ===================================================================== */
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* =====================================================================
   UTILITIES
   ===================================================================== */
.notice { border-radius: var(--radius); padding: 12px 16px; font-weight: 500; font-size: .9rem; }
.notice-ok { background: #e8f0e4; color: #3d5a3a; }
.notice-err { background: #f6e3df; color: #8f3d2e; }
.designs-header { margin-bottom: 20px; }
.designs-header h1 { font-size: 2rem; }
.designs-header .muted { margin-top: 6px; }

.filter-bar {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr) auto auto;
    gap: 12px;
    align-items: end;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}
.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-group label { font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.filter-group select, .filter-group input { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font: inherit; }
.filter-group select:focus, .filter-group input:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent; }

/* Cards (verfeinert) */
.card { position: relative; }
.card-thumb {
    position: relative;
    aspect-ratio: 4/3;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border-soft);
    overflow: hidden;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-thumb img { transform: scale(1.04); }
.thumb-placeholder, .preview-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: var(--border);
}
.badge { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: 999px; }
.badge-free { background: #e2ead9; color: #44583a; }
.badge-premium { background: var(--accent-soft); color: var(--primary-dark); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.card-body h3 { font-size: 1rem; line-height: 1.3; }
.card-body h3 a { text-decoration: none; color: var(--ink); }
.card-body h3 a:hover { color: var(--primary-dark); }
.cat-link { font-size: .75rem; color: var(--muted); }
.cat-link a { color: var(--muted); text-decoration: none; }
.cat-link a:hover { color: var(--primary-dark); }
.card-meta { font-size: .78rem; color: var(--faint); }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag { font-size: .72rem; color: var(--primary-dark); background: var(--accent-soft); padding: 3px 9px; border-radius: 999px; text-decoration: none; transition: background .2s, color .2s; }
.tag.more { background: var(--surface-2); color: var(--muted); }
.tag:hover { background: var(--primary); color: #faf9f5; }

/* Design Detail */
.design-header { margin-bottom: 24px; }
.design-meta-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.design-description { color: var(--muted); margin-top: 8px; }
.design-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.design-main { display: grid; grid-template-columns: 1fr 360px; gap: 32px; }
.design-preview { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); overflow: hidden; }
.design-preview img { width: 100%; height: auto; display: block; }
.design-files { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 22px; height: fit-content; }
.design-files h2 { font-size: 1.15rem; margin-bottom: 14px; }
.file-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.file-table th, .file-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border-soft); }
.file-table th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.file-type { font-family: ui-monospace, monospace; font-size: .8rem; background: var(--surface-2); padding: 2px 7px; border-radius: 6px; }
.btn-sm { padding: 8px 15px; font-size: .85rem; }
.related-section { margin-top: 48px; }
.related-section h2 { font-size: 1.4rem; margin-bottom: 18px; }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 36px; }
.page-info { color: var(--muted); font-size: .9rem; }

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state a { color: var(--primary-dark); }

/* Breadcrumb */
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary-dark); }
.breadcrumb span { color: var(--ink); }

/* Mobile adjustments for design module */
@media (max-width: 900px) {
    .design-main { grid-template-columns: 1fr; }
    .filter-bar { grid-template-columns: 1fr 1fr; }
    .filter-group:nth-child(1) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .filter-bar { grid-template-columns: 1fr; }
}

/* =====================================================================
   Erweiterung (Suche, Kategorien, statische Seiten, Produkte,
   Bücher, Blog)
   ===================================================================== */

/* Suche im Header */
.header-search { display: flex; align-items: center; gap: 8px; flex: 0 1 280px; margin: 0 16px; }
.header-search--mobile { display: none; }
.card-desc { font-size: .85rem; color: var(--muted); line-height: 1.45; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-body .badge { align-self: flex-start; }
.header-search input {
    width: 100%; padding: 9px 15px; border: 1px solid var(--border); border-radius: 999px;
    font: inherit; background: var(--bg);
}
.header-search input:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent; }
.header-search-btn {
    border: none; background: var(--primary); color: #faf9f5; border-radius: 999px;
    width: 38px; height: 38px; cursor: pointer; font-size: 1rem; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.header-search-btn:hover { background: var(--primary-dark); }

/* Suchseite + Ergebnisgruppen */
.search-form { grid-template-columns: 2fr auto auto; }
.search-group { margin-bottom: 36px; }
.search-group h2 { font-size: 1.3rem; margin-bottom: 14px; }
.result-count { color: var(--muted); font-weight: 500; font-size: .9rem; }

/* Detail-Box + Meta-Tabelle */
.detail-box {
    background: var(--surface); border: 1px solid var(--border-soft);
    border-radius: var(--radius); padding: 24px; margin: 24px 0;
}
.price { font-weight: 600; }
.price-big { font-size: 1.7rem; font-weight: 600; font-family: var(--font-serif); color: var(--primary-dark); margin-bottom: 6px; }
.meta-table { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 0; }
.meta-table dt {
    color: var(--muted); font-weight: 600; font-size: .76rem;
    text-transform: uppercase; letter-spacing: .06em; align-self: center;
}
.meta-table dd { font-weight: 500; }

/* Blog-Artikel */
.post-header h1 { font-size: 2rem; margin-bottom: 8px; }
.post-body { margin-top: 24px; font-size: 1.03rem; }
.post-body p { margin-bottom: 14px; }

/* Statische Seiten */
.static-page h2 { margin: 30px 0 10px; font-size: 1.25rem; }
.static-page p { margin-bottom: 12px; }

/* Mobile: Header-Suche */
@media (max-width: 640px) {
    .header-search { flex: 1 1 auto; margin: 0 8px; }
    .header-search-btn { width: 34px; height: 34px; }
    .search-form { grid-template-columns: 1fr; }
}

/* Respektiere reduzierte Bewegung */
@media (prefers-reduced-motion: reduce) {
    * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* =====================================================================
   ADMIN-CHROME (v0.3.7): Topbar (A1) + Admin-Layout mit Tabs oben (A2)
   ===================================================================== */
.admin-topbar {
    background: var(--ink);
    color: #faf9f5;
    font-size: .85rem;
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: 0 1px 0 rgba(20,20,19,.4);
}
.admin-topbar--public + .site-header { top: 38px; }
.admin-topbar-inner { display: flex; align-items: center; gap: 16px; height: 38px; }
.admin-topbar-brand { font-family: var(--font-serif); font-weight: 600; font-size: 1rem; text-decoration: none; color: #faf9f5; }
.admin-topbar-brand span { color: var(--primary); font-style: italic; }
.admin-topbar-link { color: rgba(250,249,245,.85); text-decoration: none; transition: color .2s; }
.admin-topbar-link:hover { color: #fff; }
.admin-topbar-link strong { font-weight: 600; }
.admin-topbar-flex { flex: 1; }
.admin-topbar-user { color: rgba(250,249,245,.6); }

/* Admin-Layout */
.admin-body { background: var(--bg); }
.admin-main { padding: 28px 0 60px; min-height: 60vh; }
.admin-pagehead { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border-soft); }
.admin-pagetitle { font-size: clamp(1.6rem, 3vw, 2.2rem); font-family: var(--font-serif); font-weight: 600; color: var(--ink); }
.admin-tabsbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 38px;
    z-index: 30;
    overflow-x: auto;
    scrollbar-width: thin;
}
.admin-tabsbar-inner { display: flex; gap: 4px; padding: 8px 20px; flex-wrap: nowrap; white-space: nowrap; }
.admin-tab {
    padding: 8px 14px;
    border-radius: 10px;
    font-size: .88rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}
.admin-tab:hover { background: var(--surface-2); color: var(--ink); }
.admin-tab.active { background: var(--primary); color: #faf9f5; font-weight: 600; }
.admin-footer { border-top: 1px solid var(--border); padding: 18px 0; color: var(--faint); font-size: .85rem; background: var(--surface); }
.admin-footer a { color: var(--muted); }
.admin-footer a:hover { color: var(--primary-dark); }

@media (max-width: 640px) {
    .admin-topbar-inner { gap: 10px; }
    .admin-topbar-link:not(:first-child) { display: none; }
    .admin-tabsbar { top: 38px; }
}

/* =====================================================================
   BLOG SPECIFIC STYLES
   ===================================================================== */

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 12px 0 20px;
    font-size: 0.85rem;
    color: var(--muted);
}
.meta-sep { opacity: 0.5; }
.reading-time { font-weight: 500; color: var(--primary-dark); }
.word-count { color: var(--faint); }

.post-excerpt {
    border-left: 3px solid var(--primary);
    padding-left: 16px;
    margin: 24px 0;
    font-style: italic;
    color: var(--muted);
}

.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.post-tags .tag {
    font-size: 0.75rem;
    color: var(--primary-dark);
    background: var(--accent-soft);
    padding: 3px 9px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.post-tags .tag:hover { background: var(--primary); color: #faf9f5; }
.post-tags .tag.more { background: var(--surface-2); color: var(--muted); }

.post-featured-image { margin: 0 -24px 32px; }
.post-featured-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.table-of-contents {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 32px;
}
.table-of-contents h3 {
    margin: 0 0 12px;
    font-size: 1rem;
}
.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 6px;
}
.table-of-contents li {
    padding-left: 0;
}
.table-of-contents li[style*="20px"] { padding-left: 20px; }
.table-of-contents a {
    text-decoration: none;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}
.table-of-contents a:hover { color: var(--primary-dark); }
.table-of-contents a[style*="font-weight: 700"] { font-weight: 700; color: var(--primary-dark); }

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 24px 0;
    padding: 16px 0;
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}
.share-buttons--top { margin-bottom: 24px; }
.share-buttons--bottom { margin-top: 32px; }
.share-label { font-size: 0.85rem; color: var(--muted); margin-right: 12px; }

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    text-decoration: none;
    color: #fff;
    font-size: 1.1rem;
    transition: transform 0.15s, opacity 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 6px rgba(20,20,19,0.12);
}
.share-btn:hover { transform: translateY(-2px); opacity: 0.9; box-shadow: 0 4px 12px rgba(20,20,19,0.18); }
.share-btn:focus { outline: 2px solid var(--primary); outline-offset: 2px; }
.share-btn--pinterest { background: #e60023; }
.share-btn--whatsapp { background: #25d366; }
.share-btn--telegram { background: #0088cc; }
.share-btn--facebook { background: #1877f2; }
.share-btn--x { background: #000000; }
.share-btn--copy { background: var(--primary); }

.author-bio {
    margin-top: 48px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary);
    color: #faf9f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: var(--font-serif);
    flex-shrink: 0;
}
.author-info h4 { margin: 0 0 4px; font-size: 1rem; }
.author-info p { margin: 0; font-size: 0.9rem; line-height: 1.6; }
.author-info .muted { margin: 0 0 12px; font-size: 0.85rem; }
.author-info .btn { margin-right: 8px; margin-bottom: 8px; }

.related-posts { margin-top: 48px; }
.related-posts h2 { font-size: 1.4rem; margin-bottom: 20px; }
.related-posts .post-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    margin-bottom: 12px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.related-posts .post-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-whisper), var(--shadow-ring);
    border-color: var(--border);
}
.related-posts .post-item h3 { margin: 0 0 6px; font-size: 1.05rem; }
.related-posts .post-item h3 a { text-decoration: none; color: var(--ink); transition: color 0.2s; }
.related-posts .post-item h3 a:hover { color: var(--primary-dark); }
.related-posts .post-item p { margin: 0; font-size: 0.85rem; color: var(--muted); }

.cross-link-cta {
    margin-top: 48px;
    padding: 24px;
    background: linear-gradient(135deg, var(--surface) 0%, var(--bg) 100%);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
}
.cross-link-cta h3 { margin: 0 0 12px; font-size: 1.1rem; }
.cross-link-cta .muted { margin: 0 0 16px; font-size: 0.9rem; }
.cross-link-cta .btn { margin-right: 8px; margin-bottom: 8px; }

/* Blog Index Enhancements */
.post-list .post-item {
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.post-list .post-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-whisper), var(--shadow-ring);
    border-color: var(--border);
}
.post-list .post-item h3 a {
    transition: color 0.2s;
}
.post-list .post-item h3 a:hover {
    color: var(--primary-dark);
}
.post-list .post-tags .tag {
    transition: all 0.2s;
}
.post-list .post-tags .tag:hover {
    background: var(--primary);
    color: #faf9f5;
}
