/* ===================================================
   13. GENERIC PAGES & POSTS
   =================================================== */

.content-block {
    position: relative;
    background: var(--color-surface);
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    padding: var(--s5) var(--s6) var(--s4);
    min-height: calc(100vh - 240px);
}

/* Konkave Bögen: Content-Block läuft in den Footer über */
.content-block::before,
.content-block::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: var(--s4);
    height: var(--s4);
    background: var(--color-surface);
    pointer-events: none;
}

.content-block::before {
    right: 100%;
    -webkit-mask: radial-gradient(circle at top left, transparent var(--s4), #000 calc(var(--s4) + 1px));
            mask: radial-gradient(circle at top left, transparent var(--s4), #000 calc(var(--s4) + 1px));
}

.content-block::after {
    left: 100%;
    -webkit-mask: radial-gradient(circle at top right, transparent var(--s4), #000 calc(var(--s4) + 1px));
            mask: radial-gradient(circle at top right, transparent var(--s4), #000 calc(var(--s4) + 1px));
}

.content-block h1 { font-size: 32px; margin-bottom: var(--s3); }
.content-block h2 { font-size: 24px; margin: var(--s3) 0 var(--s2); }
.content-block p  { color: var(--color-text-muted); margin-bottom: var(--s2); }
.post-date        { font-size: 12px; color: var(--color-text-faint); margin-bottom: var(--s3); }

/* Blog-Index: einzelne Beiträge */
.post-entry {
    padding-bottom: var(--s4);
    margin-bottom: var(--s4);
    border-bottom: 1px solid var(--color-border);
}

.post-entry:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.post-entry__title {
    font-size: 24px;
    margin: 0 0 6px;
}

.post-entry__title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s;
}

.post-entry__title a:hover { color: var(--color-accent-light); }

.post-entry__excerpt { color: var(--color-text-muted); margin-bottom: var(--s2); }

.post-entry__more {
    display: inline-flex;
    margin-top: var(--s1);
}

/* Pagination */
.pagination .nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--s1);
    margin-top: var(--s4);
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--r-sm);
    border: 1px solid var(--color-border);
    background: var(--color-surface-alt);
    color: var(--color-text);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.pagination .page-numbers:hover {
    border-color: var(--color-border-hover);
}

.pagination .page-numbers.current {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

/* ===================================================
   14. WOOCOMMERCE NOTICES
   =================================================== */

.woocommerce-message { display: none !important; }

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-accent);
    border-radius: var(--r-md);
    padding: 14px 20px;
    margin-bottom: var(--s3);
    color: var(--color-text);
    list-style: none;
}

.woocommerce-error {
    border-left-color: #ef4444;
}

/* ===================================================
   15. LEERER WARENKORB (custom template)
   =================================================== */

.woocommerce-cart .content-block {
    background: var(--color-surface);
    backdrop-filter: none;
    min-height: 0;
    padding: var(--s4) var(--s4) var(--s5);
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    border-bottom: none;
}

/* Einzelprodukt (ohne Content-Block): Abstand vor dem Footer */
body.single-product .main-content {
    padding-bottom: var(--s5);
}

/* ===================================================
   16. FOOTER
   =================================================== */

.footer {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: var(--color-surface);
    padding: var(--s3) var(--s2);
    flex-shrink: 0;
}

.footer-content {
    width: 98%;
    max-width: 1760px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s3);
}

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

.footer-social {
    display: flex;
    align-items: center;
    gap: var(--s1);
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--r-sm);
    color: var(--color-text-muted);
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    transition: all 0.2s;
}

.footer-social-link:hover {
    color: var(--color-text);
    border-color: var(--color-border-hover);
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        gap: var(--s2);
        text-align: center;
    }
}


/* ===================================================
   FUCHS-MASKOTTCHEN (Warenkorb)
   =================================================== */

.fox-mascot {
    flex: 1;
    min-width: 0;
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--s2);
    padding: var(--s3) var(--s2);
    text-align: center;
}

.fox-bubble {
    position: relative;
    max-width: 340px;
    background: var(--color-surface-alt2);
    border: 1px solid var(--color-accent-muted);
    border-radius: var(--r-lg);
    padding: 14px 20px;
    color: var(--color-text-secondary, var(--color-text));
    font-size: 14px;
    line-height: 1.5;
    box-shadow: var(--shadow-sm);
    overflow: visible;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.fox-bubble::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -9px;
    transform: translateX(-50%) rotate(45deg);
    width: 16px;
    height: 16px;
    background: var(--color-surface-alt2);
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.fox-svg-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 0;
    transition: transform 0.2s ease;
}

.fox-svg-btn:hover { transform: translateY(-3px) rotate(-3deg); }
.fox-svg-btn:active { transform: scale(0.95); }
.fox-svg-btn.fox-thinking { animation: fox-wiggle 0.5s ease; }

.fox-svg-btn svg { display: block; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.35)); }

@keyframes fox-wiggle {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.fox-name {
    font-size: 12px;
    color: var(--color-text-faint);
    font-style: italic;
}

.fox-credit {
    font-size: 10px;
    color: var(--color-text-faint);
    opacity: 0.7;
}

.fox-credit a {
    color: inherit;
    text-decoration: underline;
}

.fox-credit a:hover { color: var(--color-text-muted); }

@media (max-width: 768px) {
    .cart-collaterals {
        flex-direction: column-reverse;
        gap: var(--s3);
    }
    .fox-mascot { padding: var(--s2) 0; }
}

/* ===================================================
   LEISTUNG (Detailseite)
   =================================================== */

.leistung-back {
    display: inline-block;
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: var(--s2);
}
.leistung-back:hover { color: var(--color-accent-light); }

.leistung-head h1 {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: var(--s4);
}

.leistung-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-muted);
    max-width: 760px;
}

.leistung-content h2 { font-size: 22px; margin: var(--s4) 0 var(--s2); }
.leistung-content h3 { font-size: 18px; margin: var(--s3) 0 var(--s1); color: var(--color-text); }
.leistung-content ul, .leistung-content ol { margin: 0 0 var(--s2) var(--s3); }
.leistung-content li { margin-bottom: 6px; }

/* Anfrage-Bereich */
.leistung-anfrage {
    margin-top: var(--s5);
    padding-top: var(--s4);
    border-top: 1px solid var(--color-border);
}

.leistung-anfrage h2 { font-size: 22px; margin-bottom: var(--s2); }

.leistung-anfrage__intro,
.leistung-anfrage__hint {
    color: var(--color-text-muted);
    margin-bottom: var(--s3);
    max-width: 640px;
}

.leistung-anfrage__admin {
    font-size: 13px;
    color: var(--color-text-faint);
    background: var(--color-surface-alt);
    border: 1px dashed var(--color-border);
    border-radius: var(--r-sm);
    padding: 12px 16px;
}
.leistung-anfrage__admin code {
    background: var(--color-surface-alt2);
    padding: 1px 6px;
    border-radius: 4px;
}

/* ===================================================
   WPFORMS – an das dunkle Theme angepasst
   =================================================== */

.wpforms-container {
    max-width: 640px;
}

.wpforms-form .wpforms-field-label {
    color: var(--color-text-secondary, var(--color-text));
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.wpforms-form input[type="text"],
.wpforms-form input[type="email"],
.wpforms-form input[type="tel"],
.wpforms-form input[type="url"],
.wpforms-form input[type="number"],
.wpforms-form select,
.wpforms-form textarea {
    background: var(--color-surface-alt) !important;
    border: 1px solid var(--color-border) !important;
    color: var(--color-text) !important;
    border-radius: var(--r-sm) !important;
    padding: 10px 14px !important;
    box-shadow: none !important;
    transition: border-color 0.2s;
}

.wpforms-form input:focus,
.wpforms-form select:focus,
.wpforms-form textarea:focus {
    border-color: var(--color-border-hover) !important;
    outline: none !important;
}

.wpforms-form ::placeholder { color: var(--color-text-faint); }

.wpforms-form .wpforms-field-description {
    color: var(--color-text-faint);
    font-size: 12px;
}

.wpforms-form .wpforms-submit {
    background: var(--color-accent) !important;
    border: none !important;
    color: #fff !important;
    border-radius: var(--r-sm) !important;
    padding: 12px 26px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all 0.25s;
}

.wpforms-form .wpforms-submit:hover {
    background: var(--color-accent-light) !important;
    box-shadow: 0 4px 16px rgba(75, 45, 152, 0.4);
}

.wpforms-confirmation-container-full {
    background: var(--color-surface-alt) !important;
    border: 1px solid var(--color-border) !important;
    border-left: 4px solid var(--color-accent) !important;
    color: var(--color-text) !important;
    border-radius: var(--r-md) !important;
}
