@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
nav {
  display: flex;
  justify-content: center; /* Zentriert die Menüpunkte horizontal */
  align-items: center;     /* Zentriert vertikal in der Höhe */
  background-color: #083A57; /* Hintergrund */
  width: 100%; /* Stelle sicher, dass nav 100% breit ist */
    max-width: 100vw; /* Maximale Breite auf Viewport begrenzen */
}


html, body {
    width:100%;
    overflow-x: hidden;
}

* {
    font-style: Mohave !important;
}


.header {
            background-color: #083A57;
            width: 100%;
            overflow: visible;
        }

        .menu-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 15px;
            position: relative;
        }

        .leftlogo, .rightlogo {
            flex-shrink: 0;
            z-index: 990;
        }

        .leftlogo img, .rightlogo img {
            width: 100px;
            height: auto;
            transition: transform 0.3s ease-in-out;
        }

        .leftlogo img:hover, .rightlogo img:hover {
            transform: scale(1.1);
        }

        .menu-logo {
            flex-shrink: 0;
            z-index: 990;
        }

        .center-logo {
            width: 85px;
            height: auto;
            transition: transform 0.3s ease-in-out;
        }

        .center-logo:hover {
            transform: scale(1.2);
        }

        .nav-menu {
            display: flex;
            list-style: none;
            justify-content: center;
            flex-grow: 1;
            padding: 0 20px;
        }

        .nav-menu li {
            position: relative;
            text-align: center;
        }

        .nav-menu li a {
            display: block;
            padding: 20px 15px;
            color: #F2F2F2;
            text-decoration: none;
            font-size: 18px;
            transition: all 0.3s ease;
            white-space: nowrap;
        }

        .nav-menu li a:hover {
            background-color: #063A56;
            color: #FEC90B;
        }

        .nav-menu li ul.dropdown {
            width: 200px;
            background: #083A57;
            position: absolute;
            z-index: 980;
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all 0.3s ease;
            border-radius: 0 0 8px 8px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            left: 50%;
            transform: translateX(-50%) translateY(10px);
        }

        .nav-menu li ul.dropdown li {
            display: block;
            width: 100%;
            text-align: left;
            margin: 0;
            padding: 0;
            transition: background-color 0.3s;
            border-bottom: 1px solid #0a4b6d;
        }

        .nav-menu li ul.dropdown li a {
            padding: 15px 20px;
            font-size: 16px;
            color: #c3d7e3;
            transition: all 0.2s ease;
        }

        .nav-menu li ul.dropdown li a:hover {
            color: #FEC90B;
        }

        .nav-menu li:hover ul.dropdown {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0);
        }

        .mobile-toggle {
            display: none;
            background: none;
            border: none;
            color: #F2F2F2;
            font-size: 24px;
            cursor: pointer;
            padding: 10px;
        }

        /* Responsive Design */
        @media (max-width: 1200px) {
            .nav-menu li a {
                padding: 20px 10px;
                font-size: 16px;
            }
        }

        @media (max-width: 992px) {
            .menu-container {
                flex-wrap: wrap;
                padding: 10px 15px;
            }
            
            .nav-menu {
                order: 3;
                width: 100%;
                padding: 10px 0 0;
                display: none;
            }
            
            .nav-menu.active {
                display: flex;
                flex-direction: column;
            }
            
            .nav-menu li {
                width: 100%;
            }
            
            .nav-menu li ul.dropdown {
                position: static;
                width: 100%;
                transform: none;
                display: none;
                box-shadow: none;
                border-radius: 0;
            }
            
            .nav-menu li:hover ul.dropdown {
                transform: none;
            }
            
            .mobile-toggle {
                display: block;
                order: 2;
            }
            
            .menu-logo {
                order: 1;
                flex-grow: 1;
                text-align: center;
            }
            
            .leftlogo, .rightlogo {
                display: none;
            }
        }

        @media (max-width: 576px) {
            .nav-menu li a {
                padding: 15px 10px;
                font-size: 16px;
            }
            
            .center-logo {
                width: 70px;
            }
        }
           

.Kader{
   display:flex;
   justify-content: center;
   margin: 50px;
   font-size: 25px;

}

.Mannschaftsfoto {
  display: flex;              /* macht Zentrierung einfach */
  justify-content: center;    /* horizontal zentrieren */
  margin: 2rem 0;             /* Abstand nach oben/unten */
}

.Mannschaftsfoto img {
  max-width: 100%;    /* Bild passt sich dem Bildschirm an */
  width: 1200px;      /* maximale Breite (z. B. 1200px) */
  height: auto;       /* Höhe automatisch */
  border-radius: 8px; /* optional: abgerundete Ecken */
}

.portrait-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.portrait-grid img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.content{
align-items: first baseline;
background-image: url("hintergrund/Hintergrund Textur.webp");
width:100%;
height: fit-content;
min-height: 1300px;
max-width: 100vw;
overflow: hidden;
}

          .news-slider-container {
            position: relative;
            margin: 40px 0;
            overflow: hidden;
            width: 100%;
            max-width: 100vw;
            
        }

        .news-slider {
            display: flex;
            transition: transform 0.5s ease;
            gap: 25px;
             width: 100%;
        }

        .news-card {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            flex-direction: column;
            height: 100%;
            flex: 0 0 calc(100% - 20px);
            min-width: 0;
        }

        .news-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        }

        .news-image {
            width: 100%;
            height: 200px;
            object-fit: cover;
            display: block;
            transition: transform 0.3s ease;
        }

        .news-card:hover .news-image {
            transform: scale(1.05);
        }

        .news-content {
            padding: 20px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .news-title {
            font-size: 1.4rem;
            margin-bottom: 12px;
            color: #1a237e;
            line-height: 1.3;
        }

        .news-excerpt {
            color: #555;
            margin-bottom: 15px;
            line-height: 1.6;
            flex-grow: 1;
        }

        .read-more {
            display: inline-block;
            color: #3949ab;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.9rem;
            margin-top: auto;
        }

        .read-more:hover {
            text-decoration: underline;
        }

        .slider-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: #083A57;
            color: white;
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            font-size: 2rem;
            cursor: pointer;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.3s ease;
        }

        .slider-btn:hover {
            background: #FEC90B;
        }

        .slider-btn.prev {
            left: 5px;
        }

        .slider-btn.next {
           
            right:5px;
        }

        .slider-dots {
            display: flex;
            justify-content: center;
            margin-top: 20px;
            gap: 10px;
        }

        .dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #ccc;
            cursor: pointer;
            transition: background 0.3s ease;
        }

        .dot.active {
            background: #083A57;
        }

        /* Responsive Design */
        @media (min-width: 576px) {
            .news-card {
                flex: 0 0 calc(50% - 20px);
            }

            
        }
        
    
    

        @media (min-width: 768px) {
            .news-card {
                flex: 0 0 calc(33.333% - 20px);
            }
            .logo-item {
    margin: 0 15px;
  }

   .logo-item img {
    max-width: 120px;
    max-height: 60px;
  }








  
  .carousel-track {
    animation: scroll 15s linear infinite;
  }
            
}
        

        @media (min-width: 992px) {
            .news-card {
                flex: 0 0 calc(25% - 20px);
            }
        }

        @media (max-width: 768px) {
            h1 {
                font-size: 2rem;
            }
            
            .news-image {
                height: 180px;
            }
        }

        @media (max-width: 480px) {
            .news-image {
                height: 160px;
            }
            
            .news-content {
                padding: 15px;
            }
            
            .news-title {
                font-size: 1.2rem;
            }

            .slider-btn {
                width: 40px;
                height: 40px;
                font-size: 1.2rem;
            }
             .logo-item {
                margin: 0 10px;
            }
  
        .logo-item img {
            max-width: 100px;
            max-height: 50px;
            }
            
        }

        /* Platzhalter für fehlende Bilder */
        .placeholder-image {
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #3949ab 0%, #1a237e 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
        }



.handball-spielplan{
    width: 100%;
     height: 100%;
    margin-top: 2%;
    margin-bottom: 2%;
    margin-left: 2%;
    margin-right: 2%;
}
.logos {
    width: 100%;
    overflow: hidden;
    background-color: #083A57; /* Gleiche Farbe wie Footer */
    padding: 10px 0;
    position: relative;
    display: flex;
}
/* TABELLEN-BEREICH - VOLLE BREITE MIT ABSTAND */
.tabelle-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 2% auto 0 auto;
    height: auto;
    max-width: 100vw;
    overflow: hidden;
    padding: 0 20px; /* Abstand zu den SeitenrÃ¤ndern */
    box-sizing: border-box;
}

.tabelle-wrapper {
    width: 100%; /* Volle Breite des Containers */
    max-width: none; /* Maximale Breite entfernen */
    min-width: auto;
}

.tabelle {
    border: 3px solid #083A57 !important;
    padding: 20px !important;
    margin: 0 !important;
    width: 100% !important;
    display: block !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
    background: white !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

/* Stil fÃ¼r das Handball.net Widget */
#handball-tabelle {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    min-height: 400px;
}

#handball-tabelle table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
}

/* Responsive Anpassungen */
@media screen and (max-width: 1200px) {
    .tabelle-container {
        padding: 0 15px;
    }
}

@media screen and (max-width: 992px) {
    .tabelle-container {
        padding: 0 15px;
    }
    
    .tabelle {
        font-size: 15px !important;
        padding: 15px !important;
    }
}

@media screen and (max-width: 768px) {
    .tabelle-container {
        margin-top: 3%;
        padding: 0 10px;
    }
    
    .tabelle {
        font-size: 14px !important;
        padding: 12px !important;
        border-width: 2px !important;
    }
}

@media screen and (max-width: 480px) {
    .tabelle-container {
        margin-top: 2%;
        padding: 0 8px;
    }
    
    .tabelle {
        font-size: 13px !important;
        padding: 10px !important;
        border-radius: 8px !important;
    }
    
    #handball-tabelle {
        min-height: 300px;
    }
}
*{
    padding:0;
    margin:0;
    font-family: 'Poppins', monospace;
    box-sizing: border-box;
    
}

/* Container für jede Position */
.KREIS, .TOR, .RÜCKRAUM, .AUSSEN, .TRAINER {
    margin: 1%;
    height: fit-content;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
}

/* Überschriften für Positionen */
.KREIS h2, .TOR h2, .RÜCKRAUM h2, .AUSSEN h2, .TRAINER h2 {
    color: white;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.spieler-container {
    position: relative;
    margin: 20px 0;
    overflow: hidden;
    width: 100%;
}

.spieler-slider {
    display: flex;
    transition: transform 0.5s ease;
    gap: 25px;
    width: 100%;
    flex-wrap: wrap; /* Damit Karten in Zeilen umbrechen */
    justify-content: center; /* Karten zentrieren */
}

.spieler-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 0 0 280px; /* Feste Breite für gleiche Kartengröße */
    min-width: 0;
}

.spieler-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.spieler-image {
    width: 100%;
    height: 250px; /* Feste Höhe für konsistente Darstellung */
    object-fit: cover; /* Wichtig: Bild wird zugeschnitten und füllt den Bereich */
    display: block;
    transition: transform 0.3s ease;
}

.spieler-card:hover .spieler-image {
    transform: scale(1.05);
}

.spieler-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.spieler-content h3 {
    font-size: 1.4rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    color: #0046a0;
}

.spieler-content h4 {
    font-size: 1.6rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: #0046a0;
}

.spieler-content p {
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .spieler-card {
        flex: 0 0 250px; /* Kleinere Karten auf Tablets */
    }
    
    .spieler-image {
        height: 220px;
    }
    
    .KREIS h2, .TOR h2, .RÜCKRAUM h2, .AUSSEN h2, .TRAINER h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .spieler-slider {
        flex-direction: column; /* Stapeln auf Mobilgeräten */
        align-items: center;
    }
    
    .spieler-card {
        flex: 0 0 100%;
        max-width: 300px;
        margin-bottom: 20px;
    }
    
    .spieler-image {
        height: 200px;
    }
}

/* Fallback für fehlende Bilder */
.spieler-image:before {
    content: "Kein Bild";
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #0046a0, #ff0000);
    color: white;
    font-size: 1rem;
    height: 100%;
}


.footer {
    width: 100%;
    background-color: #083A57;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
}

.logos-container {
    width: 100%;
    overflow: hidden;
    background-color: #083A57;
    padding: 20px 0;
    position: relative;
}

.logos-track {
    display: flex;
    width: max-content;
    animation: slide 40s linear infinite;
}

.logos-slide {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 0 20px;
}

.logos-slide img {
    height: 45px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.logos-slide img:hover {
    transform: scale(1.1);
}

/* Spezielle Anpassungen für größere Logos */
.logos-slide img.groeßer {
    height: 45px !important;
    max-width: 140px !important;
}

.footer-bottom {
    background: #06283d;
    padding: 20px 0;
    text-align: center;
    border-top: 2px solid #0a4b6d;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: #c3d7e3;
    font-weight: 300;
}

/* Animation */
@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause Animation on Hover */
.logos-container:hover .logos-track {
    animation-play-state: paused;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .logos-slide {
        gap: 25px;
    }
    
    .logos-slide img {
        height: 40px;
        max-width: 120px;
    }
    
    .logos-slide img.groeßer {
        height: 40px !important;
        max-width: 120px !important;
    }
}

@media screen and (max-width: 992px) {
    .logos-container {
        padding: 15px 0;
    }
    
    .logos-slide {
        gap: 20px;
    }
    
    .logos-slide img {
        height: 35px;
        max-width: 100px;
    }
    
    .logos-slide img.groeßer {
        height: 35px !important;
        max-width: 100px !important;
    }
    
    .footer-bottom {
        padding: 15px 0;
    }
    
    .footer-bottom p {
        font-size: 13px;
    }
}

@media screen and (max-width: 768px) {
    .logos-container {
        padding: 12px 0;
    }
    
    .logos-track {
        animation: slide 30s linear infinite;
    }
    
    .logos-slide {
        gap: 15px;
        padding: 0 15px;
    }
    
    .logos-slide img {
        height: 30px;
        max-width: 80px;
    }
    
    .logos-slide img.groeßer {
        height: 30px !important;
        max-width: 80px !important;
    }
    
    .footer-bottom {
        padding: 12px 0;
    }
    
    .footer-bottom p {
        font-size: 12px;
        padding: 0 10px;
    }
}

@media screen and (max-width: 576px) {
    .logos-container {
        padding: 10px 0;
    }
    
    .logos-track {
        animation: slide 25s linear infinite;
    }
    
    .logos-slide {
        gap: 12px;
        padding: 0 10px;
    }
    
    .logos-slide img {
        height: 25px;
        max-width: 70px;
    }
    
    .logos-slide img.groeßer {
        height: 25px !important;
        max-width: 70px !important;
    }
    
    .footer-bottom {
        padding: 10px 0;
    }
    
    .footer-bottom p {
        font-size: 11px;
    }
}

@media screen and (max-width: 400px) {
    .logos-slide {
        gap: 10px;
    }
    
    .logos-slide img {
        height: 22px;
        max-width: 60px;
    }
    
    .logos-slide img.groeßer {
        height: 22px !important;
        max-width: 60px !important;
    }
}

/* Touch Device Optimierungen */
@media (hover: none) and (pointer: coarse) {
    .logos-slide img:hover {
        transform: none;
    }
    
    .logos-container:hover .logos-track {
        animation-play-state: running;
    }
}

/* Mobile Header wie auf index.php: zentriertes Logo, Hamburger mit Trennstrich, Brand-Schriftzug */
@media (max-width: 768px) {
  .menu-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
  .menu-logo { order: 0; grid-column: 2; justify-self: center; }
  .center-logo { width: 72px; height: 72px; }
  .leftlogo, .rightlogo { display: none !important; }

  .mobile-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    height: 72px;
    display: flex;
    align-items: center;
    border-left: 1px solid #FEC90B;
    font-size: 24px;
    padding: 8px 12px 8px 16px;
  }

  /* Mobiles Menü (aufklappbar) */
  .nav-menu { display: none; }
  .nav-menu.active {
    display: flex;
    flex-direction: column;
    grid-column: 1 / -1;
    gap: 6px;
  }
  .nav-menu.active > li > a { padding: 16px 20px; font-size: 20px; }
  .nav-menu.active .dropdown li a { padding: 14px 20px; font-size: 18px; }
}

/* Mobiler Brand unter dem Logo (falls HTML-Element vorhanden) */
.mobile-brand { display: none; }
@media (max-width: 768px) {
  .mobile-brand {
    display: block;
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 4px;
    color: #F2F2F2;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 0.95rem;
    text-transform: uppercase;
    line-height: 1;
  }
}

/* Fallback-Schriftzug, falls .mobile-brand im HTML fehlt */
@media (max-width: 768px) {
  .menu-logo::after {
    content: 'HC EMPOR ROSTOCK';
    display: block;
    margin-top: 4px;
    color: #F2F2F2;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 0.95rem;
    text-transform: uppercase;
    line-height: 1;
  }
}
@supports selector(.menu-logo:has(+ .mobile-brand)) {
  @media (max-width: 768px) {
    .menu-logo:has(+ .mobile-brand)::after { content: none; }
  }
}


