/* ----------------------------------- */
/* 1. RESET & GLOBALE GRUNDEINSTELLUNGEN */
/* ----------------------------------- */

/* Reset basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global font setting for Nunito Sans */
body {
    font-family: 'Nunito Sans', sans-serif;
    padding-top: 75px; /* Platz für feste Navbar */
}

/* Container-Zentraleinbindung */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* ----------------------------------- */
/* 2. NAVBAR & DROPDOWN-MENÜ           */
/* ----------------------------------- */

.navbar {
    width: 100%;
    height: 75px;
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: fixed; /* Navbar bleibt beim Scrollen fest oben */
    top: 0; /* Fest am oberen Rand */
    z-index: 1000; /* Stellt sicher, dass sie über anderen Elementen bleibt */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optionaler Schatten */
}

.navbar-logo img {
    margin-top: 15px;
    height: 300px;
    position: absolute;
    top: -20px; /* Um das Logo über die Navbar hinausragen zu lassen */
    left: 20px;
}

.navbar-links-wrapper {
    display: flex;
    justify-content: center;
    flex-grow: 1;
}

.navbar-links {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-grow: 1;
    margin-left: 120px; /* Abstand zum Logo */
}

.navbar-links li {
    margin: 0 clamp(10px, 6vw, 120px);
}

.navbar-links a {
    text-decoration: none;
    color: black;
    font-size: 20px;
    font-weight: bold;
}

.navbar-links a:hover {
    color: grey;
}

/* Dropdown-Menü */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%; /* Direkt unter dem Hauptlink */
    left: 0;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 0;
    padding: 5px 20px;
}

.dropdown-menu li a {
    text-decoration: none;
    color: black;
    font-size: 16px;
}

.dropdown-menu li a:hover {
    color: gray;
}

/* Spezielles Styling für das TEAMS-Dropdown */
.dropdown-menu.teams-dropdown {
    min-width: 300px;
    display: none; /* Initial trotzdem verstecken */
    grid-template-columns: repeat(2, 1fr);
    gap: 5px 15px;
    padding: 10px 15px;
}

.dropdown:hover .dropdown-menu.teams-dropdown {
    display: grid; /* Nur beim Hover auf das Dropdown wird es als Grid sichtbar */
}



/* Burger-Menü (wird in den Media Queries bei max-width: 960px aktiviert) */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-right: 20px;
}

.burger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: black;
    margin: 4px 0;
}

/* ----------------------------------- */
/* 3. SLIDESHOW (Startseite)           */
/* ----------------------------------- */

.slideshow-container {
    max-width: 100%;
    position: relative;
    margin: auto;
    overflow: hidden; /* Versteckt das, was außerhalb des Containers liegt */
    
}

/* Jede Slide */
.mySlides {
    position: relative;
}

.slideshow-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Schneidet das Bild zu, um das Seitenverhältnis beizubehalten */
}

/* Container für Text und Subtext */
.text-container {
    position: absolute;
    bottom: 20px;
    left: 20px;
    height: auto;
    min-width: 50%;
    max-width: 90%;
    padding: 12px 18px;
    border-radius: 8px;
    color: #fff;
    z-index: 5;
    box-sizing: border-box;

    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.4) 60%,
        rgba(0, 0, 0, 0.0) 100%
    );
}

.text-container .text {
    font-size: 1.2rem;
    font-weight: bold;
}

.text-container .subtext {
    font-size: 0.9rem;
}

.text {
    color: white;
    font-size: 40px;
    margin-bottom: 5px;
}

.subtext {
    color: white;
    font-size: 20px;
}

/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    transition: 0.6s ease;
    user-select: none;
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

/* Dots */
.dots-container {
    text-align: center;
    position: absolute;
    bottom: 10px;
    width: 100%;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #717171;
}

/* ----------------------------------- */
/* 4. MATCH-CARDS (z.B. Spielübersicht)*/
/* ----------------------------------- */

.match-cards-row {
    display: flex;
    justify-content: space-between;
    margin-top: 5.4vh; /* 5,4% der Höhe des Fensters */
    padding: 0 7vw; /* 7% der Fensterbreite auf beiden Seiten */
    flex-wrap: wrap;
    gap: 20px; /* Abstand zwischen den Karten */
}

.match-card {
    position: relative; /* nötig für das Pseudo-Element */
    background-color: #000000;
    color: white;
    border-radius: 10px;
    overflow: hidden; /* verhindert, dass das ::before rausguckt */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.match-card::before {
    content: "";
    position: absolute;
    inset: 0; /* top: 0; right: 0; bottom: 0; left: 0 */
    background-image: url('../images/textures/Titelbox_weiß.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.4; /* hier kannst du den Wert zwischen 0 und 1 anpassen */
    pointer-events: none; /* verhindert, dass das Overlay Klicks blockiert */
    z-index: 0;
}

/* Inhalte über das ::before legen */
.match-card > * {
    position: relative;
    z-index: 1;
}



.match-card .date {
    font-size: 14px;
    margin-top: 5px;
}

.match-card .team-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
}

.team-placeholder {
    width: 40px;
    height: 40px;
    background-color: grey;
    margin: 0 10px;
}

.team-vs {
    font-size: 24px;
    font-weight: bold;
}

.match-card .team-name {
    font-size: 20px;
    font-weight: bold;
    background-color: #e0e0e0;
    color: #333;
    padding: 5px 0;
    width: 100%;
    text-align: center;
    border-radius: 0 0 10px 10px;
}

.team-logos .team-logo {
    width: 40px;
    height: 40px;
    object-fit: cover;
    margin: 0 10px;
}

/* ----------------------------------- */
/* 5. PREVIEW-SECTION (Startseite)     */
/* ----------------------------------- */

.preview-section {
    display: flex;
    justify-content: space-between;
    margin-top: 5.4vh;
    padding: 0;
    gap: 2.84vw;
}

/* Linke Spalte */
.preview-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 56.25vw;
}

.preview-object-left-top {
    background-color: white; /* Platzhalter auf weiß geändert */
    border: 1px solid #ddd;
    width: 100%;
}

.preview-object-left-top .section-header {
    background-color: black;
    color: white;
    padding: 10px;
    font-size: 18px;
    font-weight: bold;
}

.preview-object-left-top .content {
    padding: 10px;
}

.preview-object-left-bottom {
    background-color: white; /* Platzhalter auf weiß geändert */
    border: 1px solid #ddd;
    width: 100%;
    margin-top: 4.25vh;
}

.preview-object-left-bottom .section-header {
    background-color: black;
    color: white;
    padding: 10px;
    font-size: 18px;
    font-weight: bold;
}

.preview-object-left-bottom .content {
    display: flex;
    justify-content: space-between;
    padding: 10px;
}

.preview-object-left-bottom .trainer {
    text-align: center;
}

.preview-object-left-bottom .trainer img {
    width: 200px;
    height: 200px;
}

.preview-object-left-bottom .trainer p {
    margin: 5px 0;
}

/* Rechte Spalte */
.preview-right {
    width: 26.79vw;
    border: 0.5px solid #dfdfdf;
}

.preview-object-right {
    width: 100%;
}

/* Nur für die Minis-Seite */
.minis-page .preview-section {
    align-items: flex-start;
    height: auto;
}

.minis-page .preview-right {
    width: 26.79vw;
}

.minis-page .preview-object-right {
    height: auto;
}


/* ----------------------------------- */
/* 6. MATCH-REPORTS SECTION            */
/* ----------------------------------- */

.match-reports-section {
    background-color: white;
    margin-top: 5.4vh;
    padding: 0;
    margin-bottom: 20px;
}

.section-header {
    position: relative;
    background-color: black; /* bleibt als Basis bestehen */
    color: white;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    overflow: hidden; /* wichtig für das ::before */
}

.section-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../images/textures/Titelbox_weiß.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1; /* volle Stärke, die Maske steuert die Sichtbarkeit */
    pointer-events: none;
    z-index: 0;

    /* Maske: von 0 (unsichtbar) bis 0.4 (max. sichtbar) nach rechts */
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.05), rgba(0,0,0,0.4));
    mask-image: linear-gradient(to right, rgba(0,0,0,0.05), rgba(0,0,0,0.4));
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

/* Inhalt drüber legen */
.section-header * {
    position: relative;
    z-index: 1;
}


.section-header h2 {
    color: white;
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.match-reports-content {
    padding: 0 0; /* Entferne links/rechts-Padding */
}

/* ----------------------------------- */
/* 7. ABOUT-US SECTION                 */
/* ----------------------------------- */

.about-us-section {
    background-color: white;
    margin-top: 5.4vh;
    padding: 0 0;
    padding-bottom: 20px;
}

.section-header { /* Beachtet: Überschreibt z.T. obigen .section-header */
    background-color: black;
    height: 7.18vh; /* 7,18% der Fensterhöhe */
    display: flex;
    align-items: center;
    padding-left: 20px;
}

.section-header h2 {
    color: white;
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.about-us-content {
    padding: 20px;
}

.about-article {
    font-family: 'Nunito Sans', sans-serif;
}

.about-article h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: black;
}

.about-article p {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

.about-article .article-author {
    font-size: 14px;
    color: #555;
    text-align: left;
}

/* ----------------------------------- */
/* 8. NEWS SECTION                     */
/* ----------------------------------- */

.news-section {
    margin: 5.4vh auto; /* Abstand nach oben wie bei anderen Sektionen */
    padding: 0 7vw; /* Abstand zu den Rändern */
}

.section-header { /* Überschriften-Styling in der News-Section */
    background-color: black;
    color: white;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
}

.news-container {
    background-color: #f9f9f9;
    margin-bottom: 30px;
}

.news-content {
    padding: 10px;
    position: relative;
    padding-bottom: 20px;
}

.news-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
    position: absolute;
    bottom: 10px;
    left: 10px;
}

.news-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}

.author-details p {
    margin: 0;
    font-size: 14px;
    color: #333;
}

.news-article {
    background-color: #f9f9f9;
    padding: 20px;
    margin-bottom: 30px;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.news-header h3 {
    margin: 0;
    font-size: 20px;
    color: black;
}

.news-date {
    font-size: 14px;
    color: gray;
}

.news-text {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.news-author {
    display: block;
    margin-top: 20px;
    font-size: 14px;
    color: #555;
}

.news-preview-text {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.more-link {
    display: inline-block;
    margin-top: 10px;
    color: blue;
    text-decoration: underline;
    font-size: 14px;
}

/* ----------------------------------- */
/* 9. IMPRESSUM SECTION                */
/* ----------------------------------- */

.impressum-section {
    margin: 5.4vh auto;
    padding: 0 7vw;
}

.impressum-container {
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    margin-bottom: 30px;
}

.impressum-content {
    padding: 10px;
}

.section-header { /* Überschriften-Styling im Impressum */
    background-color: black;
    color: white;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
}

/* ----------------------------------- */
/* 10. KONTAKT SECTION                 */
/* ----------------------------------- */

.kontakt-section {
    margin: 5.4vh auto;
    padding: 0;
}

.kontakt-row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.kontakt-container {
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    flex: 1;
}

.kontakt-large {
    flex: 2; /* Doppelte Breite */
}

.kontakt-small {
    flex: 1;
}

.section-header { /* Überschriften-Styling in Kontakt */
    background-color: black;
    color: white;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
}

.kontakt-content {
    padding: 10px;
}

/* Anträge */
.antrag {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.antrag img {
    width: 80px;
    height: 80px;
    margin-right: 10px;
}

.antrag div {
    display: flex;
    flex-direction: column;
}

.antrag p {
    margin: 0;
    font-weight: bold;
}

.download-link {
    color: blue;
    text-decoration: underline;
    font-size: 14px;
    margin-top: 5px;
}

.online-link {
    color: blue;
    font-size: 14px;
    margin-top: -25px;
}

/* ----------------------------------- */
/* 11. INSTAGRAM-FEED                  */
/* ----------------------------------- */

.instagram-feed {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
    padding: 10px;
}

.instagram-feed img {
    width: 340px;
    height: 340px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease-in-out;
}

.instagram-feed img:hover {
    transform: scale(1.1);
}

/* ----------------------------------- */
/* 12. FOOTER SECTION                  */
/* ----------------------------------- */

.footer-section {
    background: #111; /* oder Zebra-Muster später */
    color: #eee;
    font-family: 'Nunito Sans', sans-serif;
    padding: 40px 20px 10px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-block {
    flex: 1;
    min-width: 200px;
}

.footer-logo {
    width: 240px;
}

.footer-logo-block {
    text-align: center;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-logo-block a:hover img {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.footer-nav-group h4 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #ccc;
}

.footer-nav-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-group li {
    margin: 5px 0;
}

.footer-nav-group a {
    color: #eee;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav-group a:hover {
    color: #ffcc00;
}

.footer-block h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

.footer-block p, .footer-block a {
    font-size: 14px;
    color: #ccc;
    line-height: 1.5;
}

.footer-block a:hover {
    color: #fff;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.social-icons img {
    width: 24px;
    height: 24px;
    filter: brightness(1.2);
    transition: transform 0.2s;
}

.social-icons img:hover {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 13px;
    color: #777;
    border-top: 1px solid #333;
    padding-top: 10px;
}

.footer-nav {
    display: flex;
    gap: 40px; /* Abstand zwischen „Teams“ und „Infos“ */
    flex-wrap: wrap; /* Für Mobilgeräte */
}

.footer-nav-group {
    flex: 1;
    min-width: 150px;
}

.fussball-link-text {
    display: block;
    font-size: 14px;
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
}

.fussball-link-text:hover {
    color: #ffcc00;
}


/* ----------------------------------- */
/* 13. SCROLLABLE MATCH-CARDS          */
/* ----------------------------------- */

.scrollable-match-cards {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 7vw;
    scroll-behavior: smooth;
}

.scrollable-match-cards::-webkit-scrollbar {
    height: 8px;
}

.scrollable-match-cards::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 4px;
}

.scrollable-match-cards::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

.match-cards-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px;
    scroll-snap-type: x mandatory;
}

.match-cards-scroll-container .match-card {
    flex: 0 0 auto;
    width: 213px;
    scroll-snap-align: start;
}

/* ----------------------------------- */
/* 14. TABELLEN-STYLING                */
/* ----------------------------------- */

#handball-spielplan {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    border: 2px solid #ddd;
    background-color: #f9f9f9;
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

th {
    background-color: #f4f4f4;
    font-weight: bold;
}

/* ----------------------------------- */
/* 15. TEAM-BILD (falls verwendet)     */
/* ----------------------------------- */

.team-image {
    width: 100vw;
    margin: 0 auto;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ----------------------------------- */
/* 16. SPONSOREN SECTION               */
/* ----------------------------------- */

.sponsoren-section {
    text-align: center;
    padding: 30px 0;
}

.sponsoren-description {
    font-size: 18px;
    color: #333;
    margin-bottom: 30px;
}

.sponsoren-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.sponsoren-logos img {
    max-height: 120px;
    max-width: 200px;
    object-fit: contain;
    transition: transform 0.3s ease-in-out;
}

.sponsoren-logos img:hover {
    transform: scale(1.05);
}

/* ----------------------------------- */
/* 17. TRAININGS-/ÖFFNUNGSZEITEN       */
/* ----------------------------------- */

.zeiten-section {
    padding: 20px 0;
    text-align: center;
}

.zeiten-description {
    font-size: 18px;
    color: #333;
    margin-bottom: 30px;
}

.zeiten-tabelle-wrapper {
    overflow-x: auto;
    padding-bottom: 20px;
}

.zeiten-tabelle {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    font-size: 16px;
}

.zeiten-tabelle th,
.zeiten-tabelle td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: center;
}

.zeiten-tabelle th {
    background-color: #f4f4f4;
    font-weight: bold;
}

.team-description-section {
    background-color: white;
    margin-top: 5.4vh;
    padding: 0;
    border: 2px solid #ddd;
    border-radius: 8px;
}


.team-description-content {
    padding: 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.vorstand-bild {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    flex-shrink: 0;
}

/* ================== TRAINER-KARTE (mit Abstand) ================= */
/* Trainer-Zeile: optischer Abstand nach oben, ohne Bild zu strecken */
.trainer-einzeln{
    display:flex;
    gap:20px;
    padding:10px;          /* nur Gesamtrahmen */
    
    margin-top:0px;      /* ← ersetzt deinen padding-top   */
    /* max-height bleibt unverändert */
}

.trainer-einzeln img{
    flex-shrink:0;
    height:100%;           /* passt sich unverändert an  */
    width:auto;
    object-fit:cover;
    border:2px solid #ddd;
    border-radius:5%;
}



/* Minis behalten ihr quadratisches Format von oben */
.minis-trainer-einzeln img{
    width:260px;
    height:260px;
    object-fit:cover;
    border:2px solid #ddd;
    border-radius:5%;
}

/* Textblock (Name & Nummer) in der Trainer-Zeile vertikal zentrieren */
.trainer-info{
    display:flex;              /* eigene kleine Flex-Spalte           */
    flex-direction:column;
    justify-content:center;    /* vertikal mittig ausrichten          */
}




.trainer-info p {
    margin: 4px 0;
    font-size: 16px;
    color: #333;
}

/* Minis-Trainer einzeln gestylt (zentriert, vertikal) */
.minis-trainer-einzeln {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.minis-trainer-einzeln .trainer-name {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 5px;
    text-align: center;
}

.minis-trainer-einzeln .trainer-phone {
    font-size: 16px;
    color: #333;
    text-align: center;
}

/* Burger-Icon ausblenden bei großem Bildschirm */
.burger-menu {
    display: none;
}

/* ----------------------------------- */
/* 18. MEDIA QUERIES                   */
/* ----------------------------------- */

/* Ab Bildschirmbreite 1921px */
@media screen and (min-width: 1921px) {
    .container {
        margin: 0 auto;
    }
    
}

@media screen and (min-width: 1025px) {
    .preview-left {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .preview-object-left-top,
    .preview-object-left-bottom {
        height: calc(50% - 2.125vh); /* 4.25vh Abstand geteilt durch 2 */
    }

    .preview-object-left-bottom {
        margin-top: 4.25vh;
    }

    .preview-object-right {
        height: auto;
    }

    
}


/* Bis max. 1024px */
@media screen and (max-width: 1024px) {
    .preview-section {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .preview-left,
    .preview-right {
        width: 100%;
        height: auto !important;
        max-height: none !important;
    }

    .preview-object-right,
    .preview-object-left-top,
    .preview-object-left-bottom {
        height: auto !important;
        max-height: none !important;
    }

    #handball-tabelle,
    #handball-spielplan {
        height: auto !important;
        overflow: visible !important;
    }

    .navbar-logo img {
        height: 180px;
    }

    .navbar-links a {
        font-size: 18px;
    }

    .navbar-links li {
        margin: 0 40px;
    }
}

/* ─────────────────────────────────────────────────────────────── */
/*  BIS 768 px                                                    */
/* ─────────────────────────────────────────────────────────────── */
@media screen and (max-width: 768px){

    /* --------- Navigation --------- */
    .navbar{
        flex-direction: row;
        justify-content: space-between;
        padding: 10px;
    }
    .navbar-logo img{ height: 120px; top:-10px; left:10px; }
    .navbar-links{ flex-direction: column; align-items: flex-start; margin-left:0; }
    .navbar-links li{ margin: 5px 0; }

    /* --------- Slideshow --------- */
    .slideshow-container{
      height: auto;          /* Container wächst mit dem Bild */
  }
  .mySlides, .mySlides img{
      width: 100%;
      height: auto;          /* keine feste Höhe mehr           */
      object-fit: contain;   /* zeigt das GANZE Bild            */
      background: #000;      /* optional: schwarze Balken links/rechts */
  }

    /* 1) Titel kleiner  ------------------------------------------------ */
    .text-container{
        left: 8px; right: 8px;
        padding: 8px 10px;
        border-radius: 6px;
    }
    .text-container .text   { font-size: 17px; line-height: 1.2; }
    .text-container .subtext{ font-size: 12px; line-height: 1.2; }

    /* 2) Punkte bleiben auf dem Bild ----------------------------------- */
    .dots-container{
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: 12px;              /* Abstand von der Bildunterkante  */
        pointer-events: none;      /* verhindert versehentliches Klicken */
        z-index: 10;
    }

    .prev, .next{ padding: 10px; font-size: 20px; }

    /* --------- Preview Section --------- */
    .preview-section{
        flex-direction: column;
        gap: 20px;
        height: auto;
        padding: 10px;
    }
    .preview-left, .preview-right{ width: 100%; }
    .preview-object-left-top,
    .preview-object-left-bottom,
    .preview-object-right{ height: auto; }

    .section-header{ font-size: 18px; padding: 10px; }

    /* --------- Instagram --------- */
    .instagram-feed{
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .instagram-feed img{
        width: 90%;
        max-width: 300px;
        height: auto;
    }

    /* 3) Match-Cards kompakter ----------------------------------------- */
    .match-cards-scroll-container .match-card{
        width: 140px;              /* vorher 213 px */
        padding: 6px;
        font-size: 13px;
    }
    .match-card .team-logo{ width: 32px; height: 32px; margin: 0 6px; }
    .match-card .team-vs{ font-size: 20px; }
    .match-card .team-name{ font-size: 16px; }

    /* --------- Tabelle Widget --------- */
    #handball-tabelle{ font-size: 14px; }

    /* --------- Footer --------- */
    .footer-section{
        flex-direction: column;
        height: auto;
        padding: 20px 0;
    }
    .footer-logo, .footer-navigation, .footer-contact{
        width: 100%;
        text-align: center;
    }
    .footer-navigation{
        clip-path: none;
        padding: 20px;
    }
    .footer-navigation .nav-lists{
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .social-icons img{ width: 24px; height: 24px; }

    .kontakt-row{
        flex-direction: column;   /* Boxen untereinander statt nebeneinander */
    }

    .kontakt-container{
        width: 100%;              /* volle Breite nutzen */
        margin: 0 0 20px 0;       /* etwas Abstand untereinander */
    }
}


/* ========================================================= */
/*  BURGER-MENÜ  ≤ 960 px                                    */
/* ========================================================= */
@media screen and (max-width: 960px){

  /* ---------- seitliches Panel (Wrapper) ----------------- */
  .navbar-links-wrapper{
      /* wird per JS .active sichtbar gemacht */
      display: none !important;
      position: fixed;
      top: 75px;                    /* unter der festen Navbar   */
      right: 0;
      width: auto;                 /* nur so breit wie nötig    */
      min-width: 160px;
      max-width: 80vw;             /* Sicherheitsdeckel         */

      height: calc(100vh - 75px);
      padding: 20px;

      flex-direction: column;
      align-items: flex-end;       /* Links rechtsbündig        */
      overflow-y: auto;            /* lange Menüs scrollbar     */
      overflow-x: visible;         /* für saubere Dropdowns     */

      background: #fff;
      border-left: 1px solid #eee;
      box-shadow: -3px 0 10px rgba(0,0,0,.15);

      transform: translateX(100%); /* off-canvas Start          */
      transition: transform .3s ease;
      z-index: 999;
  }
  .navbar-links-wrapper.active{
      display: flex !important;
      transform: translateX(0);     /* hereinschieben            */
  }

  /* ---------- UL der Links -------------------------------- */
  .navbar-links{
      flex-direction: column;
      align-items: flex-end;        /* rechtsbündig              */
      width: 100%;
      margin: 0;
  }

  /* ---------- Listeneinträge ------------------------------ */
  .navbar-links li{
      margin: 8px 0;
      text-align: right;            /* Text rechtsbündig         */
  }

  .navbar-links a{
      display: block;               /* ganze Zeile klickbar      */
      padding: 4px 2px;
      font-size: 18px;
  }

  /* ---------- Burger-Icon --------------------------------- */
  .burger-menu{
      display: flex;
      flex-direction: column;
      cursor: pointer;
      padding: 10px;
  }
  .bar{
      width: 25px;
      height: 3px;
      background: #000;
      margin: 4px 0;
  }

  /* ======================================================= */
  /*  SPEZIAL: «Teams»-Dropdown innerhalb des Panels         */
  /* ======================================================= */

  /* Anker für das Untermenü */
  .navbar-links li.dropdown{
      position: relative;
  }

  /* Untermenü selbst */
  .navbar-links li.dropdown .dropdown-menu{
      position: static;             /* liegt direkt darunter    */
      display: none;                /* bleibt verborgen         */

      width: 100%;                  /* volle Panelbreite        */
      max-width: none;

      /* weiterhin 2-spaltig, kann geändert werden */
      grid-template-columns: repeat(2, 1fr);
      gap: 5px 15px;
      padding: 10px 0;

      background: #fff;             /* benötigt eigene BG       */
      box-shadow: none;
  }

  /* Sichtbar bei Hover oder Tastatur-Fokus */
  .navbar-links li.dropdown:hover            .dropdown-menu,
  .navbar-links li.dropdown:focus-within     .dropdown-menu{
      display: grid;
  }
}




.badge-wrapper {
    position: absolute;
    top: 20px;
    left: 90vw;
    z-index: 10;
    transform: rotate(18deg);
    max-width: 180px; /* <<< Begrenzung der Größe */
}

.badge-image {
    width: 100%; /* Skaliert innerhalb der max-width */
    height: auto;
    opacity: 0.95;
    pointer-events: none; /* verhindert versehentliches Klicken */
}

/* ========================= FOOTER     <= 1024 px ======================= */
@media screen and (max-width: 1024px){

  /* Grund-Layout: immer noch Flex, aber mit kleinerem Abstand
     und flexiblen Breiten pro „Block“ (Logo, Navi, Kontakt, Sponsoren) */
  .footer-container{
      gap: 30px;                    /* vorher 40px */
      justify-content: space-around;
  }
  .footer-block{
      flex: 1 1 45%;                /* 2 Spalten-Layout */
      max-width: 400px;
  }

  /* Logo etwas kleiner */
  .footer-logo{ width: 180px; }

  /* Navi-Gruppen sitzen jetzt nebeneinander innerhalb des Blocks */
  .footer-nav{
      flex-wrap: wrap;
      gap: 20px;
  }
  .footer-nav-group{ min-width: 120px; }
}

/* ========================= FOOTER     <= 768 px ======================= */
@media screen and (max-width: 768px){

  /* Blöcke untereinander stapeln  ----------------------------- */
  .footer-container{
      flex-direction: column;
      align-items: center;
      text-align: center;           /* alles zentrieren */
      gap: 25px;
  }
  .footer-block{
      flex: 1 1 100%;
      max-width: 500px;
  }

  /* Logo mittig & ein Tick kleiner */
  .footer-logo{ width: 160px; margin: 0 auto; }

  /* Navi-Spalten untereinander   ------------------------------- */
  .footer-nav{
      flex-direction: column;
      align-items: center;
      gap: 15px;
  }
  .footer-nav-group{
      min-width: auto;              /* volle Breite */
  }

  /* Kontakt & Social Icons        ------------------------------- */
  .social-icons{
      justify-content: center;
  }
}

/* ============ OPTIONAL: mini-Screens <= 480 px  (falls nötig) ==========
@media screen and (max-width:480px){
  .footer-block p,
  .footer-block a,
  .footer-nav-group a{ font-size: 13px; }
  .footer-logo{ width: 140px; }
}
*/

/* ---------- Slideshow‑Pfeile – Grundgröße ---------- */
.prev img,
.next img{
    width:clamp(32px, 6vw, 64px);   /* 32‑64 px, skaliert mit Viewport */
    height:auto;
}

/* ---------- ≤ 768 px: Pfeile noch etwas kleiner ----- */
@media screen and (max-width:768px){
    .prev img,
    .next img{
        width:clamp(24px, 8vw, 40px);
    }
}




