/*
Theme Name: Omnipress V2
Theme URI: http://example.com/omnipress-v2
Author: BetterAg
Description: Custom theme based on provided HTML design.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: omnipress-v2
*/

/* Tailwind output is built into assets/css/theme.css. */

@font-face {
    font-family: "Spline Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("assets/fonts/SplineSans-400.woff2") format("woff2");
}

@font-face {
    font-family: "Spline Sans";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("assets/fonts/SplineSans-700.woff2") format("woff2");
}

@font-face {
    font-family: "Noto Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("assets/fonts/NotoSans-400.woff2") format("woff2");
}

@font-face {
    font-family: "Noto Sans";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("assets/fonts/NotoSans-700.woff2") format("woff2");
}


/* Keep the WP custom logo within the header height. */
.custom-logo-link {
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.custom-logo {
    display: block;
    max-height: 100%;
    width: auto;
}

/* Footer layout + styling. */
.site-footer {
    margin-top: 3.5rem;
    padding: 3.5rem 1.5rem;
    background: radial-gradient(circle at top, rgba(255, 164, 0, 0.08), transparent 60%), #0f172a;
    color: #e2e8f0;
}

.site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.site-footer__top {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.site-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.site-footer__logo img {
    height: 70px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.site-footer__tagline {
    max-width: 520px;
    color: #cbd5f5;
    font-size: 1rem;
}

.site-footer__grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.site-footer__bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding-top: 1.5rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-widget {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    height: 100%;
}

.footer-widget h3 {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #f8fafc;
    margin-bottom: 0.6rem;
}

.footer-widget p,
.footer-widget li {
    color: #cbd5f5;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-widget .footer-strong {
    color: #fff;
    font-weight: 700;
}

.footer-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-widget a {
    color: #e2e8f0;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.footer-widget a:hover {
    color: #ffa400;
    border-color: rgba(255, 164, 0, 0.5);
}

.footer-widget .footer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.1rem;
    border-radius: 9999px;
    background: #ffa400;
    color: #111827;
    font-weight: 700;
    border: none;
    box-shadow: 0 12px 20px -12px rgba(255, 164, 0, 0.6);
}

.footer-widget .footer-cta:hover {
    background: #e59400;
    color: #111827;
    border-color: transparent;
    transform: translateY(-1px);
}

.footer-cta-wrap {
    margin-top: auto;
    padding-top: 0.75rem;
}

@media (min-width: 768px) {
    .site-footer {
        padding: 4rem 2.5rem;
    }

    .site-footer__top {
        flex-direction: row;
        align-items: flex-start;
        gap: 3rem;
    }

    .site-footer__brand {
        flex: 0 0 260px;
    }

    .site-footer__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {

    .footer-widget a,
    .footer-widget .footer-cta {
        transition: none;
    }
}

/* Pagination touch target sizing. */
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.05);
}

.page-numbers:hover,
.page-numbers:focus {
    border-color: #cbd5f5;
    box-shadow: 0 6px 12px -10px rgba(15, 23, 42, 0.3);
}

.page-numbers.current {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

.page-numbers .lucide-icon {
    font-size: 20px;
}

.lucide-icon {
    display: inline-block;
    vertical-align: middle;
    width: 1em;
    height: 1em;
    stroke: currentColor;
    fill: none;
}

.lucide-icon.is-filled {
    fill: currentColor;
}

/* Emphasize the last link under branded H2 headings. */
.article-content .is-brand-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.55rem 1.1rem;
    border-radius: 9999px;
    background: #ffa400;
    color: #111827;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 18px -12px rgba(255, 164, 0, 0.7);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.article-content .is-brand-cta:hover {
    background: #e59400;
    box-shadow: 0 12px 20px -12px rgba(255, 164, 0, 0.85);
    transform: translateY(-1px);
}

/* Table of contents generated from [toc]. */
.article-content .article-toc {
    margin: 1.75rem 0;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 18px 30px -24px rgba(15, 23, 42, 0.2);
}

.article-content .article-toc-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.article-content .article-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.article-content .article-toc-list li {
    margin: 0.35rem 0;
}

.article-content .article-toc-list a {
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-content .article-toc-list a:hover {
    color: #ffa400;
}

@media (prefers-reduced-motion: reduce) {
    .article-content .is-brand-cta {
        transition: none;
    }

    .article-content .article-toc-list a {
        transition: none;
    }
}

html.js.has-visited body.page-transition {
    opacity: 0;
    transition: opacity 0.15s ease;
}

html.js.has-visited body.page-transition.is-ready {
    opacity: 1;
}

html.js.has-visited body.page-transition.is-leaving {
    opacity: 0;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    html.js.has-visited body.page-transition {
        transition: none;
    }
}

/* ========================================
   Floating Article Buttons (Crossfade)
   ======================================== */
.floating-article-container {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 50;
}

/* Base button styles */
.fab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    outline: none;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        0 20px 25px -5px rgba(0, 0, 0, 0.15);
    transition:
        opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 12px -2px rgba(0, 0, 0, 0.15),
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 25px 35px -5px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.fab-btn:active {
    transform: translateY(-1px) scale(1);
    transition-duration: 0.1s;
}

/* Hidden state for crossfade */
.fab-btn.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ========================================
   Article Button ("Zum Artikel")
   ======================================== */
.fab-article {
    height: 3.25rem;
    padding: 0 1.5rem;
    border-radius: 9999px;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    white-space: nowrap;
}

.fab-article .fab-text {
    display: inline-block;
}

.fab-article .fab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.fab-article .fab-icon svg {
    width: 100%;
    height: 100%;
}

/* ========================================
   Back to Top Button (Circle)
   ======================================== */
.fab-top {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 50%;
    color: #ffa400;
}

.fab-top:hover {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.fab-top .fab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    position: relative;
    z-index: 2;
}

.fab-top .fab-icon svg {
    width: 100%;
    height: 100%;
}

/* Progress Ring */
.fab-top .fab-progress-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%) rotate(-90deg);
    pointer-events: none;
    z-index: 1;
}

.fab-top .fab-progress-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 3;
}

.fab-top .fab-progress-circle {
    fill: none;
    stroke: #ffa400;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-cta {
	color: #000 !important;
	text-decoration: none;
}

/* ========================================
   Mobile Adjustments
   ======================================== */
@media (max-width: 640px) {
    .floating-article-container {
        bottom: 1rem;
        left: 1rem;
    }

    .fab-article {
        height: 2.75rem;
        padding: 0 1.25rem;
        font-size: 0.875rem;
    }

    .fab-top {
        width: 3.25rem;
        height: 3.25rem;
    }
}

/* ========================================
   Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {

    .fab-btn,
    .fab-top .fab-progress-circle {
        transition: none;
    }
}