:root {
    --green: #228B22;
    --light-green: #66cc33;
    --white: #ffffff;
}

:focus-visible {
  outline: 10px solid black; /* ein gut sichtbarer Grünton */
  outline-offset: 2px;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: var(--light-green);
    /* Seite ist weiß */
    color: #111;
    overflow-x: hidden;
    /* Hide scrollbars */
}

.example::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.example {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.header-v {
    background-color: var(--green);
    clip-path: polygon(0 0, 100% 0, 100% 50%, 50% 100%, 0 50%);
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-v .logo {
    height: 100px;
}

.v-bottom-nav {
    background-color: var(--light-green);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
    height: 80px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin-top: -1px;
    position: relative;
    z-index: 1;
}

.v-bottom-nav a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    margin: 0 1rem;
    position: relative;
    z-index: 2;
}

.v-bottom-nav a:hover {
    color: var(--green)
}

main {
    padding: 2rem;
    background-color: var(--white);
}

footer {
    background-color: var(--green);
    color: var(--white);
    text-align: center;
    padding: 1rem;
    padding-bottom: 5rem;
}

.bottom-nav {
    display: none;
}

.v-top-login-bar {
    background-color: rgb(60, 60, 60);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 1rem;
    font-size: 0.9rem;
}

.v-login-left,
.v-login-center,
.v-login-right {
    display: flex;
    align-items: center;
}

.v-login-link {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    padding: 0.25rem 0.5rem;
}

.v-login-link:hover {
    text-decoration: underline;
}

.v-login-username {
    font-weight: bold;
}

.v-login-form {
    margin: 0;
}

.v-login-button {
    background-color: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    padding: 0.25rem 0.6rem;
    font-size: 0.85rem;
    border-radius: 4px;
    cursor: pointer;
}

.v-login-button:hover {
    background-color: var(--white);
    color: var(--green);
    transition: all 0.3s ease;
}

.v-login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.v-login-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.v-login-logo {
    height: 70px;
    margin-bottom: 1rem;
}

.v-login-card h2 {
    margin-bottom: 1rem;
    color: var(--green);
}

.v-login-field {
    margin-bottom: 1rem;
    text-align: left;
}

.v-login-field label {
    display: block;
    margin-bottom: 0.2rem;
    font-weight: bold;
}

.v-login-field input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.v-login-submit {
    background-color: var(--green);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    font-weight: bold;
    font-size: 1.5rem;
    border-radius: 4px;
    cursor: pointer;
}

.v-login-submit:hover {
    background-color: #1c741c;
}

.v-login-error {
    margin-top: 1rem;
    color: red;
    font-weight: bold;
}

.vorstand-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem 0;
}

.vorstand-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    gap: 1.5rem;
    flex-wrap: wrap;
}

.vorstand-bild img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.vorstand-info {
    flex: 1;
    min-width: 200px;
}

.vorstand-info h3 {
    margin-top: 0;
    color: var(--green);
}

.vorstand-info p {
    margin: 0.3rem 0;
}

.vorstand-info a {
    color: var(--green);
    text-decoration: none;
}

.vorstand-info a:hover {
    text-decoration: underline;
}

.vorstand-email a {
    color: black;
}

.verein-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    padding: 0 1rem;
}

.verein-tile {
    text-decoration: none;
    background-color: var(--white);
    border: 2px solid var(--green);
    border-radius: 10px;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: inherit;
}

.verein-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 100, 0, 0.25);
}

.tile-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tile-inner img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.tile-inner h3 {
    margin: 0;
    color: var(--green);
}

.tile-inner p {
    margin-top: 0.5rem;
    color: #333;
    font-size: 0.9rem;
    line-height: 1.3;
    text-align: center;
}

.geschichte-headline {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--green);
}

.geschichte-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.geschichte-eintrag {
    display: flex;
    flex-wrap: wrap;
    border-left: 4px solid var(--green);
    padding-left: 1rem;
    background-color: #f9f9f9;
    border-radius: 6px;
    padding: 1.5rem;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}

.geschichte-jahr {
    flex: 0 0 100px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--green);
    padding-right: 1rem;
}

.geschichte-inhalt {
    flex: 1;
    min-width: 250px;
}

.geschichte-inhalt h3 {
    margin-top: 0;
    color: var(--green);
}

.geschichte-inhalt img {
    width: 100%;
    max-width: 500px;
    border-radius: 6px;
    margin: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.history-block {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-align: justify;
    line-height: 1.6;
}

.history-block h3 {
    color: var(--green);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.history-block img {
    max-width: 100%;
    border-radius: 5px;
    margin-top: 1rem;
}

.anfahrt-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2rem;
    margin: 2rem 0;
}

.anfahrt-container img {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.qr-code {
    text-align: center;
    max-width: 400px;
}

h1.text-center {
    text-align: center;
    margin-top: 2rem;
    color: black;
}

.doc-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem auto;
    max-width: 1000px;
    padding: 0 1rem;
}

.doc-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s;
}

.doc-card:hover {
    transform: scale(1.02);
}

.doc-card h3 {
    margin-top: 0;
    color: black;
}

.doc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.btn {
    background: var(--green);
    color: white;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}

.btn:hover {
    background: #1a701a;
}

.logo-preview {
    margin-top: 1rem;
    max-width: 150px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* genau 5 Spalten */
    gap: 2rem;
    margin-bottom: 3rem;
}

.gallery-tile {
    text-align: center;
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 8px;
    transition: transform 0.3s;
    background-color: white;
    text-decoration: none;
    color: black;
}

.gallery-tile a {
    text-decoration: none;
    color: black;
}

.gallery-tile:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gallery-tile img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
}

.slideshow img {
    width: 100%;
    max-width: 700px;
    margin: auto;
    display: block;
    border-radius: 10px;
}

.team-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.team-links .btn {
    background-color: var(--green);
    color: white;
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.team-links .btn:hover {
    background-color: #1c741c;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    gap: 1rem;
}

.tab-button {
    padding: 0.7rem 1.5rem;
    border: none;
    background-color: #e6e6e6;
    color: black;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
}

.tab-button.active {
    background-color: var(--green);
    color: white;
    font-size: 1.5rem;
}

.tab-content {
    margin-top: 2rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.mannschaft-header {
    text-align: center;
    margin-bottom: 2rem;
}

.mannschaft-header img {
    max-width: 100px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.spieler-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.spieler-kachel {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    text-align: center;
    background-color: #f9f9f9;
}

.spieler-bild-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
}

.spieler-bild-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.spieler-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: black;
    color: white;
    padding: 0.4rem;
}

.spieler-vorname {
    font-weight: bold;
    font-size: 1rem;
}

.spieler-nachname {
    font-size: 0.85rem;
    opacity: 0.9;
}

.spielplan-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 1rem;
}

.spiel-card {
    background-color: white;
    border: 2px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

.spiel-kopf {
    text-align: center;
    margin-bottom: 1rem;
}

.spiel-datum {
    font-weight: bold;
    color: #444;
}

.spiel-info-wettbewerb {
    font-size: 0.9rem;
    color: black;
}

.spiel-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    text-align: center;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    flex: 1;
    min-width: 100px;
}

.team img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.team-name {
    font-weight: bold;
    font-size: 1rem;
    color: #111;
}

.team-name.highlight {
    color: var(--green);
}

.spiel-ergebnis {
    font-size: 1.5rem;
    font-weight: bold;
    flex: 0 0 auto;
    margin: 0 1rem;
    color: black;
}

.spiel-color {
    color: white;
}

.statistik-headline {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--green);
}

.statistik-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: auto;
}

.stat-box {
    background-color: #f5f5f5;
    border: 2px solid var(--green);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.stat-box:hover {
    transform: scale(1.02);
}

.stat-box h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.1rem;
}

.stat-box p {
    font-size: 2rem;
    font-weight: bold;
    color: black;
}

.trainingszeiten-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.training-card {
    background-color: var(--white);
    border: 1px solid #ddd;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.training-tag {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--green);
}

.training-zeit {
    margin-top: 0.3rem;
    font-size: 1rem;
    color: #333;
}

.training-ort {
    margin-top: 0.3rem;
    font-size: 0.9rem;
    color: #777;
}

.news-highlight {
    display: block;
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.news-highlight-container {
    position: relative;
    width: 100%;
    transition: background 0.3s, transform 0.2s;
}

.news-highlight-container:hover {
    background: #e6f4ff;
    transform: scale(1.01);
}

.news-highlight-img {
    width: 100%;
    height: 600px;
    display: block;
    object-fit: contain;
}

/* Overlay, das ab 75% beginnt */
.news-highlight-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.85) 25%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0) 75%);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
    box-sizing: border-box;
}

.news-highlight-overlay h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
}

.news-highlight-overlay p {
    margin-top: 0.5rem;
    font-size: 1rem;
}

.news-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    width: 100%;
}

.news-card {
    width: 40%;
    transition: background 0.3s, transform 0.2s;
}

.news-card:hover {
    background: #e6f4ff;
    transform: scale(1.01);
}

.news-card-img-wrapper {
    position: relative;
    height: 300px;
    /* Einheitliche Höhe */
    overflow: hidden;
    border-radius: 12px;
}

.news-card-img-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Overlay auf unterem Teil */
.news-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 30%, rgba(0, 0, 0, 0) 75%);
    color: white;
    box-sizing: border-box;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.news-card-overlay h3 {
    margin: 0;
    font-size: 1.4rem;
}

.news-card-overlay p {
    margin-top: 0.3rem;
    font-size: 1rem;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.news-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    background: #f8f8f8;
    border-radius: 10px;
    padding: 1rem;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    color: inherit;
}

.news-row:hover {
    background: #e6f4ff;
    transform: scale(1.01);
}

.news-row img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.news-row h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
}

.news-row p {
    margin: 0.3rem 0 0;
    font-size: 0.95rem;
    color: #333;
}

.news-responsive {
    display: none;
}

.news-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
    line-height: 1.7;
    font-size: 1rem;
    color: #222;
}

.news-detail-image-wrapper {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-detail-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.news-detail-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.news-meta {
    color: black;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.news-detail-content p {
    margin-bottom: 1rem;
    color: #333;
}

.news-detail-content a {
    color: black;
    text-decoration: underline;
}

.news-detail-link {
    margin-top: 1rem;
}

.news-footer-image {
    margin-top: 2rem;
    text-align: center;
}

.news-footer-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.sponsoren-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.sponsor-card {
    width: 180px;
    padding: 1rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
    text-align: center;
}

.sponsor-card:hover {
    transform: scale(1.05);
    background: #f4fdf4;
}

.sponsor-card img {
    width: 100%;
    height: 100px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.sponsor-name {
    font-weight: bold;
    font-size: 0.95rem;
    margin: 0;
}

.footer-sponsoren-section {
    padding: 2rem 1rem;
    color: white;
    text-align: center;
}

.footer-sponsoren-section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
}

.footer-sponsoren-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-sponsoren-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    justify-items: center;
    align-items: center;
}

.footer-sponsor-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    transition: transform 0.2s ease;
    background-color: white;
    padding: 0.5rem;
    border-radius: 6px;
}

.sponsoren-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    background: white;
    padding: 1rem 0;
}

.sponsoren-carousel-track {
    display: flex;
    animation: scroll 40s linear infinite;
    width: max-content;
}

.sponsor-slide {
    flex: 0 0 auto;
    margin: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-slide img {
    max-height: 60px;
    max-width: 120px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.sponsor-slide img:hover {
    transform: scale(1.05);
}

.sponsoren-fixiert-wrapper {
    background: white;
    padding: 1rem 0 2rem;
    display: flex;
    justify-content: center;
}

.sponsoren-fixiert-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

.sponsor-fixiert img {
    max-height: 60px;
    max-width: 140px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.sponsor-fixiert img:hover {
    transform: scale(1.05);
}

.footer-socials {
    padding: 2rem 1rem;
    text-align: center;
}

.footer-socials h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
}

.footer-socials a {
    display: inline-block;
    margin: 0 1rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-socials a:hover {
    transform: scale(1.1);
    opacity: 0.85;
}

.footer-socials img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-copyright {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.5rem;
    color: white;
    text-align: center;
    font-weight: bold;
}

.footer-links {
    margin-top: 1.5rem;
}

.footer-links a {
    color: white;
    margin: 0 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ccc;
}

.footer-partner-logos {
    margin-top: 2rem;
    padding-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-partner-logos img {
    height: 40px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.footer-partner-logos img:hover {
    transform: scale(1.1);
}

.top-news-wrapper {
    overflow-x: hidden;
    aspect-ratio: 3 / 1;
}

.top-news-container {
    display: flex;
    width: 100%;
    height: 100%;
}

.top-news-item {
    flex: 1;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: flex 0.5s ease-in-out;                                                                  }

.top-news-item a {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
}

.top-news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-in-out;
}

.top-news-item.top-news-featured {
    flex: 3;
}

.top-news-item.top-news-featured .top-news-image {
    transform: scale(1);
}
.top-news-container .top-news-item:not(.top-news-featured) {
    flex: 1;
}

.top-news-title {
    position: absolute;
    bottom: 5%;
    left: 5%;
    color: white;
    font-size: 1.6rem;
    font-weight: bold;
    z-index: 2;
    margin: 0;
    background-color: black;
}

.top-news-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Kein Overlay auf dem aktiven Bild */
.top-news-item.top-news-featured .top-news-overlay {
    opacity: 0;
}

.top-news-responsive {
    display: none;
}

.spiel-overview-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
}

.spiel-box {
    flex: 1;
    padding: 1rem;
    color: white;
    text-align: center;
    border-radius: 10px;
}

.spiel-box-last {
    background-color: #2f2f2f;
}

.spiel-box-next {
    color: black;
    background-color: #999;
}

.spiel-box-upcoming {
    background-color: #bfbfbf;
    color: black;
}

.spiel-teams {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.spiel-info-wettbewerb,
.spiel-info-small {
    font-size: 1rem;
    line-height: 1.5;
}

.spiel-info {
    color: white;
}

.spiel-info-next,
.spiel-info-small {
    color: black;
}

.spiel-logo {
    height: auto;
    max-width: 60px;
    object-fit: contain;
}

.tabelle-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 40px 0;
}

.tabelle-box {
    flex: 1;
    min-width: 300px;
    background: #f4f4f4;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.tabelle-box h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #222;
}

.membership-form {
    max-width: 700px;
    margin: auto;
    padding: 2rem;
    background: #f5f5f5;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

.membership-form h1,
.membership-form h3 {
    text-align: center;
}

.membership-form input[type="text"],
.membership-form input[type="email"],
.membership-form input[type="date"],
.membership-form input[type="tel"],
.membership-form input[type="file"],
.membership-form select {
    width: 100%;
    padding: 10px;
    margin: 6px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.membership-form button {
    background-color: green;
    color: white;
    padding: 10px 20px;
    margin: 10px 5px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.membership-form button:hover {
    background-color: darkgreen;
}

.hidden {
    display: none;
}

.information_container {
    display: flex;
    align-items: flex-start;
    background-color: #e1f5e9;
    border-left: 5px solid green;
    padding: 10px;
    border-radius: 6px;
}

.information_icon {
    font-size: 24px;
    margin-right: 10px;
    color: green;
}

.mitgliedschaft-hinweis {
    background-color: #f4f4f4;
    padding: 2rem;
    margin: 2rem auto;
    border-radius: 12px;
    max-width: 700px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    font-family: 'Arial', sans-serif;
}

.mitgliedschaft-hinweis h2 {
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.mitgliedschaft-hinweis p {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
}

.mitgliedschaft-hinweis a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.mitgliedschaft-hinweis a:hover {
    text-decoration: underline;
    color: #0056b3;
}

.adsbygoogle {
    min-width: 300px;
    display: block;
    margin: auto;
    text-align: center;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 1400px) {
    .spieler-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .top-news-wrapper {
        display: none;
    }

    .top-news-responsive {
        display: block;
        overflow: hidden;
        padding: 1rem 0;
    }

    .top-news-scroll-container {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-left: 1rem;
        scrollbar-width: none; /* Firefox */
    }

    .top-news-scroll-container::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }

    .top-news-card {
        flex: 0 0 80%;
        scroll-snap-align: start;
        position: relative;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        background-color: #000;
    }

    .top-news-card img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        display: block;
    }

    .top-news-card-title {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 1rem;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 80%);
        color: #fff;
        font-size: 1.2rem;
        font-weight: bold;
        text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
    }

    .spiel-overview-wrapper {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding: 1rem;
    }

    .spiel-box {
        border-radius: 12px;
        padding: 1.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .spiel-box-last {
        background-color: #2f2f2f;
        color: #fff;
    }

    .spiel-box-next {
        background-color: #999;
        color: #000;
    }

    .spiel-box-upcoming {
        background-color: #e5e5e5;
        color: #000;
    }

    .spiel-teams {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .spiel-logo {
        height: 40px;
    }

    .spiel-ergebnis {
        font-size: 1.4rem;
        font-weight: bold;
    }

    .spiel-info,
    .spiel-info-small {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .spiel-info-small hr {
        margin: 1rem 0;
        border: none;
        border-top: 1px solid rgba(0, 0, 0, 0.2);
        width: 70%;
    }

    .footer-copyright {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .news-detail {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .news-detail-header h1 {
        font-size: 1.5rem;
    }

    .news-footer-image img {
        border-radius: 8px;
    }

    .news-std {
        display: none;
    }

    .news-responsive {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .news-responsive .news-card {
        width: 100%;
        border-radius: 12px;
        overflow: hidden;
        text-decoration: none;
        color: inherit;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
        transition: background 0.3s, transform 0.2s;
    }

    .news-responsive .news-card-img-wrapper {
        position: relative;
        height: 250px;
    }

    .news-responsive .news-card-img-wrapper img {
        width: 100%;
        height: 100%;
        display: block;
    }

    .news-responsive .news-card-overlay h3 {
        font-size: 1.2rem;
        margin: 0;
    }

    .news-responsive .news-card-overlay p {
        display: none;
    }

    .v-bottom-nav {
        display: none;
    }

    .bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: var(--white);
        padding: 0.5rem 0;
        box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
        border-top-left-radius: 1rem;
        border-top-right-radius: 1rem;
        z-index: 999;
    }

    .bottom-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: gray;
        font-size: 0.8rem;
    }

    .bottom-nav .icon-circle {
        background-color: transparent;
        border-radius: 50%;
        padding: 0.5rem;
        margin-bottom: 0.25rem;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: background-color 0.3s ease;
    }

    .bottom-nav .nav-item i {
        font-size: 1.2rem;
    }

    .bottom-nav .nav-item.active {
        color: var(--green);
        font-weight: bold;
    }

    .bottom-nav .nav-item.active .icon-circle {
        background-color: var(--green);
    }

    .bottom-nav .nav-item.active i {
        color: var(--white);
    }

    .bottom-nav .nav-item:not(.active) i {
        color: gray;
    }

    .top-bar {
        background-color: var(--green);
        color: var(--white);
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.25rem 1rem;
        font-size: 0.85rem;
    }

    .top-bar a {
        color: var(--white);
        text-decoration: none;
        font-weight: bold;
        margin: 0 0.5rem;
    }

    .top-left,
    .top-center,
    .top-right {
        flex: 1;
        text-align: center;
    }

    .top-left {
        text-align: left;
    }

    .top-right {
        text-align: right;
    }

    .vorstand-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .vorstand-bild img {
        width: 120px;
        height: 120px;
    }

    .vorstand-info {
        margin-top: 1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .spiel-teams {
        flex-direction: column;
        gap: 1rem;
    }

    .team-name {
        display: none;
    }

    .spiel-ergebnis {
        font-size: 1.2rem;
        margin: 0;
    }

    .spiel-card {
        padding: 1rem;
    }

    .tab-buttons {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
        margin: 1.5rem 0;
    }

    .tab-button {
        flex: 1 1 calc(50% - 1rem);
        /* Zwei Buttons pro Zeile */
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
        text-align: center;
    }

    .trainingszeiten-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 600px) {
    .footer-socials img {
        width: 32px;
        height: 32px;
    }

    .footer-socials a {
        margin: 0 0.6rem;
    }

    .footer-socials h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .tab-button {
        flex: 1 1 100%;
        /* Jeder Button volle Breite */
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}

@media (min-width: 769px) {
    .news-responsive {
        display: none;
    }

    .news-std {
        display: block;
    }
}