/* =========================================================
   FOX POST SYSTEM
   Base editorial layout
========================================================== */

.fox-single {
    width: 100%;
    max-width: 780px;
    margin-left: 0;
    margin-right: auto;
    padding-top: 11px;
    padding-bottom: 5rem;
}
/* =========================================================
   HERO
========================================================== */

.fox-post-hero {
    margin-bottom: 4rem;
}

.fox-post-title {
    margin: 0;
    font-size: clamp(2.8rem, 6vw, 5.4rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.005em;
    text-transform: none;
}

.fox-post-subtitle {
    margin-top: 1.5rem;
    margin-bottom: 0;
    font-size: clamp(2.4rem, 6vw, 2.4rem);
    line-height: 2.5rem;
    font-weight: 400;
    color: var(--fox-pink, var(--fox-accent));
}


/* Ensure hero widths override longform defaults from typography.css */
/*.fox-single .fox-post-hero .fox-post-title { max-width: 11ch; }
.fox-single .fox-post-hero .fox-post-subtitle { max-width: 34rem; }*/

.fox-post-kicker {
    margin-bottom: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--fox-pink, var(--fox-accent));
}

/* =========================================================
   IMAGES
========================================================== */

.fox-section-image {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius:  var(--fox-radius);
}

.fox-section-image img,
.fox-post-video video {
    display: block;
    width: 100%;
    height: auto;
}

.fox-section-image.fox-post-method-image {
    margin-bottom: 3rem;
    
}

.fox-section-image.fox-post-dialogue-image {
    max-width: 150px;
}

/* =========================================================
   SECTIONS
========================================================== */

.fox-section {
    margin-bottom: 4rem;
}

.fox-section-title {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 0.95;
    color: var(--fox-pink, var(--fox-accent));
}

.fox-section.fox-post-dialogue, .fox-section.fox-post-meta {
    border-top: 1px solid var(--fox-accent);
    padding-top: 5rem;
    margin-top: 6rem;
}

/* =========================================================
   CONTENT TYPOGRAPHY
========================================================== */
.fox-section-content.fox-post-intro-content p{
    font-weight: 600;
}

.fox-section-content {
    font-size: 1.1rem;
    line-height: 1.65rem;
    text-align: justify;
    hyphens: auto;
    word-break: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: var(--fox-text);
}

.fox-section-content p {
    margin-top: 0;
    margin-bottom: 1rem;
    font-kerning: normal;
    letter-spacing: 0.003em;
}

.fox-section-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 0.7rem;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
}

.fox-section-content h3::before,
.fox-section-content h3::after {
    content: "";
    display: block;
    width: 110px;
}

.fox-section-content h3::before {
padding-bottom: 5px;
border-top: solid 1px var(--fox-accent);
}

.fox-section-content h3::after {
padding: 4px 0 5px;
border-bottom: solid 1px var(--fox-accent);
}

.fox-section-content ol {
    padding-left: 1.6rem;
}

/* =========================================================
   Lists
========================================================== */

.fox-section-content ul
{
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-left: 0;
}

.fox-section-content ul li {
    margin-bottom: 0.4rem;
    padding-left: 2.9rem;
}

.fox-section-content ul li::before {
    top: 0.25em;
}

.fox-section-content blockquote {
    margin: 2rem 0;
    padding-left: 1rem;
    border-left: 3px solid var(--fox-pink, var(--fox-accent));
}

/* =========================================================
   DIALOGUE COLORS
========================================================== */

.fox-section-content .fox {
    color: #ff9a3d;
}

.fox-section-content .lisa {
    color: #31d7ff;
}

/* =========================================================
   META LAYER
========================================================== */

.fox-post-meta {
    padding-top: 1rem;
}

.fox-post-meta-content {
    display: flex;
    flex-direction: column;
    gap: 0rem;
}

.fox-post-meta-item {
    line-height: 1.3rem;
    font-size: 0.85rem;
}

.fox-post-meta-item.fox-post-meta-topic {
    margin-bottom: 1rem;
}

/* =========================================================
   FOX & LISA DIALOGE
 ========================================================== */

.fox-dialog:first-child {
    margin-top: 3.5rem;
}

.fox-dialog {
    position: relative;
    margin-bottom: 2.6rem;
    border-radius: 0 0 0 4px;
    padding-top: 8px;
    padding-left: 12px;
    padding-bottom: 1px;
}

.fox-dialog::before {
    position: absolute;
    top: -1rem;
    left: -0.25rem;
    font-weight: 800;
    font-size: 12px;
    line-height: 1;
    min-width: 50px;
    padding: 3px 3px 3px 18px;
    border-radius: 2px 2px 2px 0;
    letter-spacing: 1px;
}

.fox-dialog p {
margin-bottom: 0;
margin-top: 1rem;
}

/* FOX */

.fox-dialog-fox {
    border-left: 4px solid #e36b00;
}

.fox-dialog-fox::before {
    content: "FOX";
    background-color: #e36b00;
}

/* LISA */

.fox-dialog-lisa {
    border-left: 4px solid #229cb9;
}

.fox-dialog-lisa::before {
    content: "LISA";
    background-color: #229cb9;
}

/* =========================================================
   DOWNLOADS
========================================================== */

.fox-post-downloads {
    margin-top: 4rem;
}

.fox-download-button {
    padding: 0.8rem 1.4rem;
}

.fox-download-button,
.fox-button-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    background: rgba(255,255,255,0.08);
    transition: background 0.2s ease;
    font-size: 1rem;
    line-height: 1rem;
}

.fox-button-back {
    width: 100%;
    padding: 0.6rem 1.4rem;
}

.fox-button-back::before {
    content: "";
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-right: 0.55rem;
    background-image: url(../img/arrow-left-wht.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.fox-download-button:hover,
.fox-button-back:hover {
    background: rgba(255,255,255,0.16);
    border: none;
    border-radius: 999px;
}

.fox-download-button,
.fox-button-back,
.fox-download-button:hover,
.fox-button-back:hover {
    color: #ffffff;
}

/* =========================================================
   TAGS
========================================================== */

.fox-post-tags {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--fox-accent);
    line-height: 1.2rem;
    margin-top: 5rem;
}

/* =========================================================
   Quellen / Sources
========================================================== */

.fox-post-sources-content p {
    line-height: 1.3rem;
    font-size: 0.85rem;
}

.fox-post-sources-content a {
    color: var(--fox-accent);
}

/* =========================================================
   FOOTER ACTIONS
========================================================== */

.fox-post-actions-footer {
    margin-top: 4rem;
    padding-top: 2rem;
}

/* =========================================================
   MOBILE
========================================================== */

@media (max-width: 980px) {

    .fox-single {
        margin-left: auto;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .fox-post-title {
        font-size: clamp(2.4rem, 12vw, 4.2rem);
    }
    
    .fox-post-subtitle {
        font-size: clamp(1.1rem, 6vw, 2.6rem);
        line-height: 1.05;
    }
    
    .fox-section-title {
        font-size: 2rem;
    }
    
    .fox-section-content {
        text-align: left;
    }

}

/* =========================================================
   CLASSIC WORDPRESS GALLERY
   Progressive enhancement for ACF WYSIWYG [gallery] output.
========================================================== */

.fox-single .gallery {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 2.5rem 0;
}

.fox-single .gallery.gallery-columns-1 {
    grid-template-columns: minmax(0, 1fr);
}

.fox-single .gallery.gallery-columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fox-single .gallery.gallery-columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fox-single .gallery > br {
    display: none;
}

.fox-single .gallery-item {
    float: none !important;
    width: auto !important;
    max-width: none;
    margin: 0 !important;
}

.fox-single .gallery-icon {
    overflow: hidden;
    border-radius: var(--fox-radius);
}

.fox-single .gallery-icon a {
    position: relative;
    display: block;
    border-radius: inherit;
    cursor: zoom-in;
}

.fox-single .gallery-icon a::after {
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: inherit;
    content: "";
    pointer-events: none;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.fox-single .gallery-icon a:hover::after,
.fox-single .gallery-icon a:focus-visible::after,
.fox-single .gallery-icon a:active::after {
    border-color: var(--fox-accent);
    box-shadow: inset 0 0 0 1px var(--fox-accent);
}

.fox-single .gallery-icon img {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
    border-radius: inherit;
}

.fox-single .gallery-caption {
    margin: 0.65rem 0.2rem 0;
    color: var(--fox-text);
    font-size: 0.85rem;
    line-height: 1.3;
    text-align: left;
}

/* =========================================================
   FOX GALLERY LIGHTBOX
========================================================== */

body.fox-lightbox-open {
    overflow: hidden;
}

.fox-lightbox {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ffffff;
    overflow: hidden;
}

.fox-lightbox:not([open]) {
    display: none;
}

.fox-lightbox::backdrop {
    background: rgba(1, 5, 20, 0.94);
    backdrop-filter: blur(6px);
}

.fox-lightbox__stage {
    position: relative;
    display: grid;
    width: 100vw;
    height: 100dvh;
    padding: 3.5rem 5.5rem 2.5rem;
    place-items: center;
}

.fox-lightbox__figure {
    display: grid;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    place-items: center;
}

.fox-lightbox__image {
    display: block;
    max-width: calc(100vw - 11rem);
    max-height: calc(100dvh - 8rem);
    width: auto;
    height: auto;
    border-radius: var(--fox-radius);
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.45);
    object-fit: contain;
}

.fox-lightbox__caption-row {
    display: flex;
    width: min(100%, 70rem);
    margin-top: 0.85rem;
    gap: 1.5rem;
    align-items: baseline;
    justify-content: center;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.85rem;
    line-height: 1.35;
    text-align: center;
}

.fox-lightbox__caption:empty,
.fox-lightbox__counter:empty {
    display: none;
}

.fox-lightbox__counter {
    flex: 0 0 auto;
    color: var(--fox-accent);
    font-weight: 700;
}

.fox-lightbox__control {
    position: absolute;
    z-index: 1;
    display: grid;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--fox-radius);
    background: rgba(1, 5, 20, 0.52);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    line-height: 1;
    place-items: center;
    transition: border-color 180ms ease, background-color 180ms ease;
}

.fox-lightbox__control svg {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.25;
    stroke-linecap: square;
    stroke-linejoin: miter;
}

.fox-lightbox__control:hover,
.fox-lightbox__control:focus-visible {
    border-color: var(--fox-accent);
    background: var(--fox-accent);
    outline: none;
}

.fox-lightbox__close {
    top: 1.25rem;
    right: 1.25rem;
}

.fox-lightbox__previous,
.fox-lightbox__next {
    top: 50%;
    transform: translateY(-50%);
}

.fox-lightbox__previous {
    left: 1.25rem;
}

.fox-lightbox__next {
    right: 1.25rem;
}

.fox-lightbox__control[hidden] {
    display: none;
}

@media (max-width: 980px) {
    .fox-single .gallery,
    .fox-single .gallery.gallery-columns-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .fox-single .gallery {
        gap: 0.75rem;
    }

    .fox-lightbox__stage {
        padding: 4.5rem 1rem 5rem;
    }

    .fox-lightbox__image {
        max-width: calc(100vw - 2rem);
        max-height: calc(100dvh - 10rem);
    }

    .fox-lightbox__caption-row {
        padding: 0 0.5rem;
        gap: 0.75rem;
    }

    .fox-lightbox__previous,
    .fox-lightbox__next {
        top: auto;
        bottom: 1rem;
        transform: none;
    }

    .fox-lightbox__previous {
        left: calc(50% - 3.5rem);
    }

    .fox-lightbox__next {
        right: calc(50% - 3.5rem);
    }
}

@media (max-width: 420px) {
    .fox-single .gallery,
    .fox-single .gallery.gallery-columns-2,
    .fox-single .gallery.gallery-columns-3 {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fox-single .gallery-icon a::after,
    .fox-lightbox__control {
        transition: none;
    }
}
