/*
Theme Name: SR26
Theme URI: https://der-grilli.at
Author: Gerhard mit KI-Hilfe
Description: Sauberes, modernes Sportreport-Theme 2026 – Modern Premium Edition
Version: 1.1
*/

/* ---------------------------------------------------------
   1) GLOBAL
--------------------------------------------------------- */

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: #000;
    background: linear-gradient(#0157aa, #ffffff, #D2D1CF);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

a {
    color: #000;
    font-weight: 700;
    text-decoration: none;
    transition: color .15s ease;
}

a:hover {
    color: #444;
}

/* Wrapper */
#wrapper {
    width: 1400px;
    margin: 0 auto;
}

/* ---------------------------------------------------------
   2) HEADER
--------------------------------------------------------- */

#sr-header {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
}

#sr-header .sr-header-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    margin: 0;
    padding: 0;
    line-height: 0;
}

/* ---------------------------------------------------------
   3) NAVIGATION
--------------------------------------------------------- */

#sr-nav {
    background: #003366;
    margin: 0 0 20px 0;
    padding: 0;
}

#sr-nav ul {
    list-style: none;
    margin: 0;
    padding: 0 20px;
    display: flex;
    gap: 22px;
}

#sr-nav a {
    display: block;
    padding: 12px 10px;
    color: #fff;
    font-weight: 600;
    transition: background .15s ease, opacity .15s ease;
}

#sr-nav a:hover {
    background: #0055aa;
    opacity: .9;
}

/* ---------------------------------------------------------
   4) LAYOUT (Main + Sidebar)
--------------------------------------------------------- */

#sr-content {
    width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
}

#sr-main {
    width: 1000px;
    background: rgba(255, 255, 255, 0.88);
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

#sr-sidebar {
    width: 300px;
    background: #f7f7f7 !important;
    padding: 22px !important;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ---------------------------------------------------------
   5) KATEGORIE-BLÖCKE
--------------------------------------------------------- */

.sr-category-block {
    margin-bottom: 45px;
    background: rgba(255,255,255,0.92);
    padding: 24px;
    border-radius: 14px;
    backdrop-filter: blur(6px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.10);
}

.sr-category-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 22px;
    background: #0157aa;
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.sr-category-title:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.20),
                0 0 14px rgba(1,87,170,0.35);
}

/* ---------------------------------------------------------
   6) TEASER
--------------------------------------------------------- */

.sr-teaser {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    position: relative;
}

.sr-teaser .sr-article-image-wrapper {
    width: 220px;
    flex-shrink: 0;
}

.sr-teaser .sr-article-image-wrapper img {
    width: 220px;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: -3px 3px 8px rgba(0,0,0,0.25);
}

.sr-teaser-content h3 {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.15;
}

.sr-teaser-content p {
    margin: 0;
    font-size: 16px;
    line-height: 1.45;
}

.sr-teaser-nopic h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    line-height: 1.15;
}

/* Glow-Line */
.sr-teaser::after,
.sr-teaser-nopic::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: rgba(0,0,0,0.12);
    box-shadow:
        0 0 4px rgba(1, 87, 170, 0.35),
        0 0 8px rgba(1, 87, 170, 0.25);
}

.sr-category-block .sr-teaser:last-of-type::after,
.sr-category-block .sr-teaser-nopic:last-of-type::after {
    display: none;
}

/* ---------------------------------------------------------
   7) ARTIKELSEITEN
--------------------------------------------------------- */

.sr-article-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 12px 0;
}

.sr-article-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 22px;
}

.sr-page-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 26px;
}

.sr-article-content {
    font-size: 19px;
    line-height: 1.65;
}

.sr-article-content p {
    margin-bottom: 20px;
}

/* ---------------------------------------------------------
   8) SIDEBAR
--------------------------------------------------------- */

.widget {
    margin-bottom: 32px;
}

.widget-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 14px;
}

/* ---------------------------------------------------------
   9) HERO-BILD IM ARTIKEL
--------------------------------------------------------- */

.sr-article-hero {
    width: 100%;
    height: 320px;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 10px;
}

.sr-article-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ---------------------------------------------------------
   10) IFRAMES
--------------------------------------------------------- */

#sr-main .sr-article-content iframe {
    display: block;
    margin: 20px auto;
    width: 100%;
    max-width: 620px;
    aspect-ratio: 16 / 9;
    height: auto;
    border: none;
}

/* ---------------------------------------------------------
   11) SAFARI FIX
--------------------------------------------------------- */

html {
    background: linear-gradient(#0157aa, #ffffff, #D2D1CF);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

body {
    background: transparent !important;
}

/* ---------------------------------------------------------
   12) FOOTER
--------------------------------------------------------- */

#sr-footer {
    background: #003366;
    color: #fff;
    padding: 28px 0;
    text-align: center;
    font-size: 15px;
    border-radius: 10px;
    margin-top: 45px;
    margin-bottom: 35px;
}

#sr-footer a {
    color: #fff !important;
    font-weight: 700;
}

#sr-footer a:hover {
    color: #e6e6e6 !important;
}

/* ---------------------------------------------------------
   13) RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 1024px) {
    #sr-sidebar {
        display: none !important;
    }

    #sr-content {
        flex-direction: column;
        width: 100% !important;
        gap: 22px;
    }

    #sr-main {
        width: 100% !important;
        padding: 22px;
    }

    #sr-header {
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    .sr-teaser {
        flex-direction: column;
        gap: 12px;
    }

    .sr-teaser .sr-article-image-wrapper,
    .sr-teaser .sr-article-image-wrapper img {
        width: 100% !important;
        height: auto !important;
    }
}

/* SR26 – Copyright unter dem Beitragsbild (Hero) */
.sr-article-copy {
    font-size: 10px;
    color: #777;
    margin-top: 4px;
    text-align: right;
    font-weight: 500;
    opacity: 0.75;
    letter-spacing: 0.15px;
    line-height: 1.2;
}

/* ---------------------------------------------------------
   1x) STYLE FÜR KLICKBAREN KATEGORIENLINK
--------------------------------------------------------- */

.sr-cat-link {
    color: inherit;
    text-decoration: none;
}

.sr-cat-link:hover {
    color: inherit;
    text-decoration: none;
}

/* ---------------------------------------------------------
   1x) CSS FÜR LAZY VIDEO
--------------------------------------------------------- */

.sr-video-lazy {
    position: relative;
    cursor: pointer;
    width: 100%;
}

.sr-video-thumb-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    overflow: hidden;
}

.sr-video-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sr-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.sr-video-play::after {
    content: "";
    position: absolute;
    left: 23px;
    top: 18px;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent white;
}
