/* =========================================
   SPORTFOTODIENST.COM
   Hauptdesign – Version 1.1
   ========================================= */

:root {
    --hintergrund: #180909;
    --hauptrot: #9b0707;
    --kartenrot: #4d0808;
    --bildrot: #650e0e;
    --schrift: #e6dcdc;
    --weiss: #ffffff;
}

/* =========================================
   GRUNDEINSTELLUNGEN
   ========================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--hintergrund);
    color: var(--schrift);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
}

/* =========================================
   KOPFBEREICH
   ========================================= */

.site-header {
    background: var(--hintergrund);
    border-bottom: 5px solid var(--hauptrot);
}

.header-inner {
    max-width: 1200px;
    margin: auto;
    padding: 24px 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

/* Original-Logo und Schriftzug */

.site-header .logo {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
}

.logo-image {
    width: 85px;
    height: 85px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.logo-name {
    color: var(--weiss);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.logo-slogan {
    color: var(--schrift);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* =========================================
   NAVIGATION
   ========================================= */

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.main-nav a,
.footer-nav a {
    color: var(--schrift);
    text-decoration: none;
}

.main-nav a:hover,
.footer-nav a:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* =========================================
   HAUPTINHALT
   ========================================= */

.main-content {
    max-width: 1200px;
    min-height: 500px;
    margin: auto;
    padding: 35px 20px;
}

/* =========================================
   STARTSEITE – EINLEITUNG
   ========================================= */

.news-intro {
    padding: 18px 0 24px;
    border-bottom: 1px solid var(--hauptrot);
    margin-bottom: 28px;
}

.news-intro h1 {
    color: var(--schrift);
    font-size: clamp(30px, 3.6vw, 44px);
    margin: 10px 0;
}

.news-intro p {
    color: var(--schrift);
    line-height: 1.6;
}

.eyebrow {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
}

/* =========================================
   NACHRICHTENBEREICH
   ========================================= */

.section-heading span {
    color: var(--schrift);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
}

.section-heading h2 {
    color: var(--schrift);
    margin-top: 8px;
    font-size: 28px;
}

/* =========================================
   NACHRICHTENKACHELN
   ========================================= */

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.news-card {
    background: var(--kartenrot);
    border: 1px solid var(--hauptrot);
    overflow: hidden;
}

/* Neuester Artikel als große Titelgeschichte */

.lead-story {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
}

/* Platzhalter für spätere Fotos */

.news-image-placeholder {
    min-height: 210px;
    background: var(--bildrot);

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--schrift);
    font-size: 13px;
    letter-spacing: 3px;
}

.lead-story .news-image-placeholder {
    min-height: 350px;
}

/* Artikelinhalt */

.news-card-content {
    padding: 28px;
}

.news-category {
    color: var(--schrift);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
}

.news-card h2,
.news-card h3 {
    color: var(--schrift);
    line-height: 1.25;
    margin: 15px 0;
}

.news-card h2 {
    font-size: clamp(25px, 3vw, 36px);
}

.news-card h3 {
    font-size: 23px;
}

.news-card p {
    color: var(--schrift);
    line-height: 1.7;
}

.artikel-termine {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    color: #dbc9c9;
    font-size: 13px;
    line-height: 1.45;
}

.artikel-termine time {
    white-space: nowrap;
}

.news-card .artikel-termine {
    margin-top: 25px;
}

/* =========================================
   FUSSBEREICH
   ========================================= */

.site-footer {
    background: var(--hintergrund);
    border-top: 2px solid var(--hauptrot);
    padding: 30px 20px;
}

.footer-inner {
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.footer-slogan {
    color: var(--schrift);
    font-size: 13px;
}

/* =========================================
   SMARTPHONE-ANSICHT
   ========================================= */

@media (max-width: 700px) {

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-header .logo {
        gap: 10px;
    }

    .logo-image {
        width: 60px;
        height: 60px;
    }

    .logo-name {
        font-size: 17px;
    }

    .main-nav {
        gap: 15px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .lead-story {
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .lead-story .news-image-placeholder {
        min-height: 230px;
    }

    .news-card-content {
        padding: 20px;
    }
}

/* =========================================
   ARTIKELSEITEN UND LINKS
   ========================================= */

.artikel-link {
    color: var(--schrift);
    text-decoration: none;
}

.artikel-link:hover,
.weiterlesen:hover,
.artikel-zurueck:hover,
.artikel-abschluss a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.weiterlesen {
    display: inline-block;
    margin-top: 22px;
    color: var(--schrift);
    font-weight: bold;
    text-decoration: none;
}

.artikel-detail {
    max-width: 900px;
    margin: 20px auto 70px;
}

.artikel-zurueck,
.artikel-abschluss a {
    color: var(--schrift);
    text-decoration: none;
}

.artikel-kopf {
    margin-top: 45px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--hauptrot);
}

.artikel-kategorie {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
}

.artikel-kopf h1 {
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.2;
    margin: 15px 0;
}

.artikel-datum {
    font-size: 13px;
}

.artikel-einleitung {
    font-size: 21px;
    font-weight: bold;
    line-height: 1.6;
    margin: 35px 0;
}

.artikel-inhalt {
    font-size: 17px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.artikel-abschluss {
    margin-top: 55px;
    padding-top: 25px;
    border-top: 1px solid var(--hauptrot);
}

/* =========================================
   TITELBILDER
   ========================================= */

.news-image-link {
    display: block;
    width: 100%;
    overflow: hidden;
    background: var(--bildrot);
}

.news-image {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.lead-story .news-image {
    height: 350px;
}

.artikel-titelbild {
    margin: 35px 0;
}

.artikel-titelbild img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 650px;
    object-fit: contain;
}

@media (max-width: 700px) {
    .lead-story .news-image {
        height: 230px;
    }
}

/* =========================================
   FOTOSTRECKEN
   ========================================= */

.artikel-galerie {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid var(--hauptrot);
}

.galerie-kopf {
    margin-bottom: 25px;
}

.galerie-kopf h2 {
    color: var(--schrift);
    font-size: 28px;
    margin: 0 0 8px;
}

.galerie-kopf p {
    color: var(--schrift);
    font-size: 14px;
    margin: 0;
}

.galerie-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.galerie-bild {
    display: block;
    background: var(--bildrot);
    overflow: hidden;
    aspect-ratio: 3 / 2;
}

.galerie-bild img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.galerie-bild:hover img {
    transform: scale(1.04);
}

@media (max-width: 700px) {
    .galerie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

@media (max-width: 420px) {
    .galerie-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   NACH-OBEN-SCHALTFLÄCHE
   ========================================= */

.nach-oben {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 48px;
    height: 48px;
    border: none;;
    border-radius: 50%;
    background: var(--hauptrot);
    color: var(--weiss);
    font-size: 26px;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s, visibility 0.25s;
}

.nach-oben.sichtbar {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nach-oben:hover {
    background: var(--kartenrot);
}

.nach-oben:focus-visible {
    outline: 3px solid var(--schrift);
    outline-offset: 3px;
}

@media (max-width: 700px) {
    .nach-oben {
        right: 15px;
        bottom: 15px;
    }
}

/* =========================================
   GROSSBILDANSICHT / LIGHTBOX
   ========================================= */

body.lightbox-offen {
    overflow: hidden;
}

.foto-lightbox[hidden] {
    display: none;
}

.foto-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hintergrund);
    padding: 65px 75px;
}

.lightbox-inhalt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
}

.lightbox-foto {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 145px);
    width: auto;
    height: auto;
    object-fit: contain;
}

.lightbox-zaehler {
    margin-top: 15px;
    color: #e6dcdc;
    font-size: 14px;
}

.lightbox-schliessen,
.lightbox-zurueck,
.lightbox-weiter {
    position: absolute;
    z-index: 1;
    border: none;
    background: rgba(155, 7, 7, 0.8);
    color: #ffffff;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-schliessen {
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    font-size: 32px;
}

.lightbox-zurueck,
.lightbox-weiter {
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    font-size: 25px;
}

.lightbox-zurueck {
    left: 15px;
}

.lightbox-weiter {
    right: 15px;
}

.lightbox-schliessen:hover,
.lightbox-zurueck:hover,
.lightbox-weiter:hover {
    background: #650e0e;
}

.lightbox-schliessen:focus-visible,
.lightbox-zurueck:focus-visible,
.lightbox-weiter:focus-visible {
    outline: 3px solid #e6dcdc;
    outline-offset: 3px;
}

@media (max-width: 700px) {
    .foto-lightbox {
        padding: 65px 12px;
    }

    .lightbox-foto {
        max-height: calc(100vh - 150px);
    }

    .lightbox-zurueck,
    .lightbox-weiter {
        top: auto;
        bottom: 15px;
        transform: none;
    }

    .lightbox-zurueck {
        left: 20px;
    }

    .lightbox-weiter {
        right: 20px;
    }
}
/* Bildunterschriften in der Großbildansicht */

.lightbox-bildtext {
    margin-top: 14px;
    max-width: 850px;
    color: #e6dcdc;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}

.lightbox-bildtext[hidden] {
    display: none;
}
/* Kompakter Einstieg auf schmalen Bildschirmen */
@media (max-width: 700px) {
    .news-intro { padding: 12px 0 20px; margin-bottom: 24px; }
    .news-intro h1 { font-size: clamp(28px, 7vw, 38px); line-height: 1.12; }
}

/* =========================================
   STARTSEITE – AUTOMATISCHER BILDERSLIDER
   ========================================= */

.start-slider {
    width: 100%;
    margin: 0 0 35px;
    border: 2px solid #9b0707;
    background: #180909;
    overflow: hidden;
}

.slider-buehne {
    position: relative;
    width: 100%;
    height: 480px;
}


.slider-slide {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.8s ease-in-out,
        visibility 0s linear 0.8s;
}

.slider-slide.aktiv {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transition:
        opacity 0.8s ease-in-out,
        visibility 0s;
}


.slider-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-ohne-bild {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4d0808;
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
}


.slider-beschriftung {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    padding: 25px 30px 45px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.9),
        rgba(0, 0, 0, 0.65) 60%,
        transparent
    );
}


.slider-kategorie {
    display: inline-block;
    padding: 6px 12px;
    background: #9b0707;
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
}

.slider-top {
    display: inline-block;
    padding: 6px 12px;
    margin-right: 8px;
    background: #ffffff;
    color: #9b0707;
    font-size: 13px;
    font-weight: bold;
}

.slider-beschriftung h2 {
    margin: 15px 0 0;
    font-size: clamp(23px, 3.5vw, 38px);
    line-height: 1.2;
}

.slider-beschriftung h2 a {
    color: #ffffff;
    text-decoration: none;
}

.slider-beschriftung h2 a:hover {
    text-decoration: underline;
}

/* Smartphone-Ansicht */

@media (max-width: 700px) {
    .slider-buehne {
        height: 300px;
    }

    .slider-beschriftung {
        padding: 35px 15px 18px;
    }

    .slider-ohne-bild {
        font-size: 16px;
    }
}

/* =========================================
   SLIDER – NAVIGATIONSPFEILE
   ========================================= */

.slider-pfeil {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;

    width: 48px;
    height: 60px;

    border: none;
    background: rgba(24, 9, 9, 0.55);
    color: #ffffff;

    font-size: 30px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: background 0.2s ease;
}

.slider-pfeil:hover {
    background: rgba(155, 7, 7, 0.95);
}

.slider-pfeil:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: -3px;
}

.slider-zurueck {
    left: 0;
    border-radius: 0 6px 6px 0;
}

.slider-weiter {
    right: 0;
    border-radius: 6px 0 0 6px;
}

/* Smartphone */
@media (max-width: 700px) {
    .slider-pfeil {
        width: 36px;
        height: 48px;
        font-size: 23px;
    }
}

/* =========================================
   STARTSEITE – ARTIKELRASTER 3 × 3
   ========================================= */

.news-grid.modern-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    margin: 0;
}

/* Alle Artikelkacheln gleichmäßig anordnen */
.news-grid.modern-grid > * {
    min-width: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

/* Tablet: zwei Spalten */
@media (max-width: 900px) {
    .news-grid.modern-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

/* Smartphone: eine Spalte */
@media (max-width: 600px) {
    .news-grid.modern-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* =========================================
   ARTIKELKACHELN – BILDER UND KATEGORIEN
   ========================================= */

.modern-grid .news-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #4d0808;
}

.modern-grid .news-image-link {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.modern-grid .news-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

/* Leichter Zoom beim Darüberfahren */
.modern-grid .news-card:hover .news-image {
    transform: scale(1.05);
}

/* Kategorie direkt auf dem Bild */
.modern-grid .news-category-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;

    display: inline-block;
    padding: 6px 12px;

    background: #9b0707;
    color: #ffffff;

    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;

    pointer-events: none;
}

/* Platzhalter für Artikel ohne Foto */
.modern-grid .news-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    background: #650e0e;
    color: #e6dcdc;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Artikelkacheln */
.modern-grid .news-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #4d0808;
}

.modern-grid .news-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px;
}

/* Weiterlesen am unteren Kartenrand */
.modern-grid .weiterlesen {
    margin-top: auto;
    padding-top: 16px;
}

.modern-grid .artikel-termine {
    margin-top: auto;
    padding-top: 25px;
}

.modern-grid .artikel-termine + .weiterlesen {
    margin-top: 0;
}

/* Pfeile nur anzeigen, wenn mehrere Slides vorhanden sind */
.start-slider:not(:has(.slider-slide:nth-child(2))) .slider-pfeil {
    display: none;
}
/* Bilder innerhalb importierter Artikel */
.artikel-inhalt img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    margin: 20px auto;
    border-radius: 6px;
}
/* =========================================
   MOBILE NAVIGATION – Logo, Lupe und Menü
   ========================================= */
@media (min-width: 701px) {
    .site-header .header-inner { gap: 0; }
    .site-header .main-nav { margin-left: auto; align-items: center; }
    .site-header .header-bedienung { margin-left: 14px; }
}
@media (max-width: 700px) {
    .site-header .header-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 0 8px;
        padding: 14px 15px;
    }
    .site-header .logo { min-width: 0; gap: 9px; }
    .site-header .logo-image { width: 48px; height: 48px; }
    .site-header .logo-text { min-width: 0; }
    .site-header .logo-name { font-size: clamp(12px, 3.6vw, 17px); letter-spacing: 0; overflow-wrap: anywhere; }
    .site-header .logo-slogan { font-size: 11px; letter-spacing: 0; }
    .site-header .header-bedienung { grid-column: 2; grid-row: 1; gap: 2px; }
    .site-header .header-menue-knopf { display: inline-flex; }
    .site-header .main-nav {
        display: none;
        grid-column: 1 / -1;
        grid-row: 2;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        margin-top: 12px;
        border-top: 1px solid #9b0707;
    }
    .site-header .main-nav.mobil-offen { display: flex; }
    .site-header .main-nav a {
        display: block;
        padding: 13px 10px;
        border-bottom: 1px solid rgba(255,255,255,.12);
    }
    .site-header .main-nav a:hover, .site-header .main-nav a:focus-visible { background: #650e0e; }
}
@media (max-width: 360px) {
    .site-header .logo-image { width: 38px; height: 38px; }
    .site-header .logo-name { font-size: 12px; }
    .site-header .logo-slogan { font-size: 10px; }
    .site-header .header-suche-knopf, .site-header .header-menue-knopf { width: 36px; height: 40px; }
}
.visuell-versteckt,
.sprunglink:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.sprunglink:focus {
    position: fixed;
    z-index: 10000;
    top: 12px;
    left: 12px;
    padding: 12px 16px;
    background: #fff;
    color: #180909;
}

.info-seite {
    width: min(860px, calc(100% - 36px));
    margin: clamp(24px, 5vw, 56px) auto;
    padding: clamp(18px, 4vw, 42px);
    border: 1px solid #6b2929;
    border-top: 4px solid #9b0707;
    border-radius: 6px;
    background: #180909;
    color: #f7f1f1;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.info-seite h1 {
    margin: 0 0 12px;
    font-size: clamp(1.8rem, 5vw, 3rem);
    line-height: 1.15;
}

.info-seite p {
    margin: 0 0 16px;
    max-width: 65ch;
}

.info-einleitung {
    color: #f2d2d2;
    font-size: 1.15rem;
}

.info-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 24px;
    margin-top: 18px;
}

.info-links a {
    padding: 9px 0;
    color: #ffd0d0;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 700;
}

.info-links a:hover,
.info-links a:focus-visible {
    color: #fff;
}

.akkreditierungen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 18px;
    margin-top: 24px;
}

.akkreditierung {
    padding: 16px;
    border: 1px solid #6b2929;
    border-radius: 6px;
    background: #240d0d;
}

.akkreditierung h2 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    line-height: 1.35;
}

.akkreditierung img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 8px 0 14px;
}
