﻿/*
    Colors:
    Black - #222831
    Grey - #393e46
    Teal - #00adb5
    White - #eeeeee
    Blue - #4484c4
*/

html {
    scroll-behavior: smooth;
}

body {
    text-align: center;
    background-color: #f9f9f9;
    font-family: 'Baloo 2', sans-serif;
    padding: 0;
}

h1 {
    font-size: 60px;
    font-weight: 800;
    color: #393e46;
    text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
}

.background {
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 90vh;
    margin-top: 75px;
    position: relative;
    z-index: -1;
}

.hidden {
    display: none;
}

.highlight {
    font-family: 'Segoe Script', 'Snell Roundhand', cursive;
    color: #393e46;
    text-shadow: 2px 2px 0px #fff, -2px -2px 0px #fff, -2px 2px 0px #fff, 2px -2px 0px #fff, 4px 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
    margin-top: 350px;
}

p {
    font-size: 24px;
    color: #777;
    font-weight: 600;
}

.container {
    display: flex;
    justify-content: space-between;
    height: 100%;
    padding: 5%;
    position: relative;
    z-index: 1;
}

.left-section {
    flex: 1;
    max-width: 50%;
    z-index: 2;
}

.logo {
    width: 150px;
    margin-bottom: 20px;
}

.subtitle {
    color: #4484c4;
    font-size: 16px;
    z-index: 2;
}

.hero-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.hero-image.show {
    opacity: 1;
    transform: translateX(0);
}

.scroll-preview {
    text-align: center;
    margin-top: -40px;
    font-size: 14px;
    color: #393e46;
    font-weight: 600;
    cursor: pointer;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

header {
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 75px;
    z-index: 1000;
}

.header-text {
    position: absolute;
    top: 15px;
    left: 30px;
    font-size: 15px;
    font-weight: 700;
    line-height: 100%;
    color: #4484c4;
}

.hamburger {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 30px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger div {
    width: 100%;
    height: 4px;
    background-color: #4484c4;
    margin: 4px;
    transition: all 0.3s ease;
}

.hamburger.active div:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active div:nth-child(2) {
    opacity: 0;
}

.hamburger.active div:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transform: translateY(-100%);
    transition: transform 0.5s ease;
    z-index: 1000;
}

.overlay.active {
    transform: translateY(0);
}

.overlay ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.overlay ul li {
    margin: 20px 0;
}

.overlay ul li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.overlay ul li a:hover {
    color: #4484c4;
}

.menu-columns {
    display: flex;
    gap: 100px; /* Abstand zwischen den Spalten */
    justify-content: center;
    align-items: flex-start;
}

.main-menu, .bottom-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.main-menu li,
.bottom-menu li {
    margin: 20px 0;
}

.main-menu a,
.bottom-menu a {
    text-decoration: none;
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.main-menu a:hover,
.bottom-menu a:hover {
    color: #4484c4;
}

.section-ueberuns {
    padding: 50px;
}

.team-section {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 40px;
    margin-bottom: 100px;
}

.team-member {
    background-color: #eeeeee;
    border-radius: 12px;
    padding: 20px;
    width: 40%;
    text-align: center;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 3s ease-out, transform 1s ease-out;
}

.team-member:nth-child(odd) { /* Linke Sektion */
    transform: translateX(-100px);
}

.team-member:nth-child(even) { /* Rechte Sektion */
    transform: translateX(100px);
}

.team-member.show {
    opacity: 1;
    transform: translateX(0);
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #4484c4;
    object-fit: cover;
    margin-bottom: 15px;
}

.team-member h3 {
    font-size: 22px;
    margin: 10px 0;
    color: #4484c4;
}

.team-member h3 span {
    color: #393e46;
}

.team-member p {
    font-size: 16px;
    line-height: 1.5;
    color: #393e46;
}

h1 a {
    text-decoration: none; /* Entfernt die Unterstreichung */
    color: inherit; /* Behält die normale Textfarbe der Überschrift */
}

h1 a:hover {
    text-decoration: none; /* Auch beim Hover keine Unterstreichung */
}

.section-konzerte {
    padding: 50px;
}

.km-list-frame {
    border: none;
    display: block;
    height: 50vh;
    width: 100%;
    margin-bottom: 100px;
    box-sizing: border-box;
    border: solid 1px #4484c4;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.km-list-frame.animate {
    opacity: 1;
    transform: translateY(0);
}

.toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-label {
    font-weight: bold;
    margin: 0 10px;
}

.toggle-container {
    display: flex;
    align-items: center;
    background-color: #4484c4;
    padding: 5px;
    border-radius: 20px;
    width: 75px;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-container.active {
    background-color: yellow;
}

.toggle-switch {
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-container.active .toggle-switch {
    transform: translateX(35px);
}

iframe {
    width: 100%;
    height: 600px;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.amount {
    text-align: center;
    font-weight: bold;
    margin-bottom: 15px;
}

.submit-btn {
    display: inline-flex;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #eeeeee;
    color: #4484c4;
    text-decoration: none;
    border: 2px solid #4484c4;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    justify-content: center;
}

.submit-btn:hover {
    background: #4484c4;
    color: #eeeeee;
    border: 2px solid #eeeeee;
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.section-hoerprobe {
    padding: 50px;
}

.players-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap; /* optional für kleinere Bildschirme */
    padding: 40px;
}

.modern-player {
    background-color: #eeeeee;
    border-radius: 12px;
    padding: 20px;
    width: 25%;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cover {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
}

.info h4 {
    margin: 0;
    font-size: 18px;
}

.info p {
    margin: 0;
    font-size: 14px;
    color: #aaa;
}

.play-btn {
    font-size: 24px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.progress-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bar-bg {
    flex: 1;
    background: #444;
    height: 6px;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

.bar {
    background: #4484c4;
    height: 100%;
    width: 0%;
    border-radius: 3px;
}

.controls {
    display: flex;
    gap: 20px;
    align-items: center;
}

.controls button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.section-mitgliedschaft {
    padding: 50px;
}

.form-description {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 30px auto 0 auto;
    font-family: Arial, sans-serif;
    color: #333;
    max-width: 800px;
    text-align: left;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.form-description h2 {
    margin-top: 0;
    font-size: 1.5em;
    color: #222;
}

.form-description ul {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.form-description li {
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
    line-height: 1.5;
}

.form-description li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #007BFF;
    font-size: 1.2em;
}

.form-description a {
    color: #007BFF;
    text-decoration: none;
}

.form-description a:hover {
    text-decoration: underline;
}

.mitglieder {
    position: relative;
    overflow: hidden;
    background-color: #eeeeee;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    z-index: 1;
    margin-bottom: 20px;
    aspect-ratio: 3 / 2;
}

.mitglieder::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    z-index: 0;
}

.mitglieder.floete::before {
    background-image: url('../images/floete.jpg');
}

.mitglieder.schlagwerk::before {
    background-image: url('../images/schlagzeug.jpg');
}

.mitglieder.klarinette::before {
    background-image: url('../images/klarinette.jpg');
}

.mitglieder.posaune::before {
    background-image: url('../images/posaune.jpg');
}

.mitglieder.tuba::before {
    background-image: url('../images/tuba.jpg');
}

.mitglieder.tenorhorn::before {
    background-image: url('../images/tenorhorn.jpg');
}

.mitglieder.fluegelhorn::before {
    background-image: url('../images/fluegelhorn.jpg');
}

.mitglieder.trompete::before {
    background-image: url('../images/trompete.jpg');
}

.mitglieder.ehrenmitglieder::before {
    background-image: url('../images/anton_maskottchen.jpg');
}

.mitglieder.erinnerung::before {
    background-image: url('../images/logobunt.jpg');
    background-size: 170px;
    background-repeat: no-repeat;
}

.mitglieder.horn::before {
    background-image: url('../images/horn.jpg');
}

.mitglieder.marketenderin::before {
    background-image: url('../images/marketenderin.jpg');
    background-size: 200px auto;
    background-repeat: no-repeat;
    background-position: center top;
}

.mitglieder-container {
    column-count: 4;
    column-gap: 20px;
    padding: 50px;
}

.section-mitglieder {
    padding: 50px;
}

.mitglieder.show {
    opacity: 1;
    transform: translateX(0);
}

.mitglieder:hover {
    transform: translateY(-5px);
}

.mitglieder h3 {
    font-size: 22px;
    margin: 10px 0;
    color: #4484c4;
}

.mitglieder p {
    font-size: 16px;
    line-height: 1.5;
    color: #393e46;
}

.mitglieder > * {
    position: relative;
    z-index: 1;
}

.section-news {
    padding: 50px;
}

.news-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px;
    margin-bottom: 100px;
}

.news {
    background-color: #eeeeee;
    border-radius: 12px;
    padding: 20px;
    width: 40%;
    text-align: center;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 3s ease-out, transform 1s ease-out;
}

.news.show {
    opacity: 1;
    transform: translateX(0);
}

.news:hover {
    transform: translateY(-5px);
}

.section-dzsponsoren {
    padding: 50px;
    text-align: center;
}

.dachmuster {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.reihe {
    display: flex;
    gap: 5px;
}

.reihe.versetzt {
    margin-left: 50px;
}

.ziegel {
    background: linear-gradient(to bottom, #c1440e 0%, #8b2e0e 100%);
    color: white;
    font-weight: bold;
    padding: 15px 25px;
    border-radius: 5px 5px 15px 15px;
    box-shadow: inset 0 -2px 4px rgba(0,0,0,0.2), 0 3px 6px rgba(0,0,0,0.3);
    min-width: 120px;
    text-align: center;
    font-size: 16px;
    position: relative;
    opacity: 1;
    transform: translateY(0);
}

.ziegel::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 40%;
    width: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
    border-radius: 5px 5px 0 0;
    pointer-events: none;
}

.ziegel:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.4);
    transition: 0.3s ease;
}

.btn {
    display: inline-flex;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #eeeeee;
    color: #4484c4;
    text-decoration: none;
    border: 2px solid #4484c4;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    justify-content:center;
}

.btn:hover {
    background: #4484c4;
    color: #eeeeee;
    border: 2px solid #eeeeee;
}

/* Footer Container */
.footer {
    background: linear-gradient(to bottom, #4484c4 0%, #7aafd8 30%, #d1dff2 70%, #eeeeee 100%);
    color: #4484c4;
    padding: 50px 20px;
    text-align: center;
    position: relative;
}

/* Zentrierter Inhalt */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo */
.footer-logo {
    width: 150px;
    margin-bottom: 20px;
}

.footer-partner {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 2rem 0;
}

.logo-wrapper {
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%) brightness(80%);
    transition: filter 0.3s ease;
}

.footer-partner a:hover img {
    filter: none;
}

/* Social Icons Container */
.social-icons {
    margin: 20px 0;
}

/* Einzelne Social Icons */
.social-icons a {
    display: inline-block;
    margin: 0 10px;
    color: #393e46;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #4484c4;
}

.footer-links {
    margin-top: 20px;
}

.footer-links a {
    color: #393e46;
    text-decoration: none;
    font-weight: 500;
    margin: 0 5px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4484c4;
}

.footer-credits {
    color: #393e46;
    text-decoration: none;
    transition: color 0.3s ease;
}

.heart {
    color: red;
}

.music-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    opacity: 1;
}

.music-bg .note {
    position: absolute;
    bottom: -50px;
    color: #4484c4;
    font-size: 40px;
    animation: float 10s linear infinite;
    opacity: 0;
    padding: 5px;
    text-shadow: 1px 1px 0px black, -1px -1px 0px black, 1px -1px 0px black, -1px 1px 0px black;
}

@keyframes float {
    0% {
        transform: translateY(120vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-120vh) rotate(360deg);
        opacity: 0;
    }
}

.music-bg .note:nth-child(1) {
    left: 10%;
    animation-duration: 5s;
    animation-delay: 0s;
    font-size: 40px;
}

.music-bg .note:nth-child(2) {
    left: 20%;
    animation-duration: 5.2s;
    animation-delay: 2s;
    font-size: 60px;
    color: yellow;
}

.music-bg .note:nth-child(3) {
    left: 30%;
    animation-duration: 5.4s;
    animation-delay: 4s;
    font-size: 50px;
}

.music-bg .note:nth-child(4) {
    left: 40%;
    animation-duration: 5.6s;
    animation-delay: 6s;
    font-size: 70px;
    color: yellow;
}

.music-bg .note:nth-child(5) {
    left: 50%;
    animation-duration: 5.8s;
    animation-delay: 8s;
    font-size: 36px;
}

.music-bg .note:nth-child(6) {
    left: 60%;
    animation-duration: 6s;
    animation-delay: 1s;
    font-size: 56px;
    color: yellow;
}

.music-bg .note:nth-child(7) {
    left: 70%;
    animation-duration: 6.2s;
    animation-delay: 3s;
    font-size: 62px;
}

.music-bg .note:nth-child(8) {
    left: 80%;
    animation-duration: 6.4s;
    animation-delay: 5s;
    font-size: 48px;
    color: yellow;
}

.music-bg .note:nth-child(9) {
    left: 90%;
    animation-duration: 6.6s;
    animation-delay: 7s;
    font-size: 72px;
}

.music-bg .note:nth-child(10) {
    left: 100%;
    animation-duration: 6.8s;
    animation-delay: 9s;
    font-size: 38px;
    color: yellow;
}

input:required:invalid {
    border: 2px solid red;
    background-color: #ffe6e6;
}

input:required:valid {
    border: 2px solid green;
    background-color: #e6ffe6;
}

input {
    transition: border-color 0.3s, background-color 0.3s;
}

.impressum,
.datenschutz,
.kontakt {
    background-color: #eeeeee;
    color: #393e46;
    padding: 60px 30px;
    max-width: 900px;
    margin: 100px auto;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    text-align: left;
    font-size: 18px;
    line-height: 1.7;
}

.impressum h2,
.datenschutz h2,
.kontakt h2 {
    font-size: 32px;
    color: #4484c4;
    margin-bottom: 30px;
    border-bottom: 2px solid #4484c4;
    padding-bottom: 10px;
}

.impressum p,
.datenschutz p
.kontakt p {
    margin: 10px 0;
}

.impressum string,
.datenschutz strong
.kontakt strong {
    color: #222831;
}

.impressum a,
.datenschutz a,
.kontakt a {
    color: #4484c4;
    text-decoration: none;
}

.impressum a:hover,
.datenschutz a:hover
.kontakt a:hover {
    text-decoration: underline;
}

.chronik {
    padding: 75px;
}

.chronik-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 60px;
    background-color: #eeeeee;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 3s ease-out, transform 1s ease-out;
    transform: translateX(-100px);
}

.chronik-entry.show {
    opacity: 1;
    transform: translateX(0);
}

.chronik-image img {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid #4484c4;
}

.chronik-text {
    flex: 1;
    color: #393e46;
    font-size: 16px;
    line-height: 1.6;
}

.memorial-header {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #2b2b2b;
    color: white;
    margin-top: 75px;
    width: 100%;
}

.memorial-h1 {
    font-size: 2.5rem;
    margin-bottom: 0.3rem;
}

.memorial-p {
    margin-top: 0;
}

#music-toggle {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    background: #ffffff22;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 5px;
}

#memorial-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 2rem 1rem;
}

.memorial-card {
    background: #ffffff22;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 1rem;
    width: 400px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
    padding-top: 10px;
}

.memorial-card img {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid #4484c4;
}

.memorial-card h3 {
    font-size: 22px;
    margin: 10px 0;
    color: #4484c4;
}

.memorial-card p {
    color: grey;
    font-size: 22px;
}

/* Candle animation */
.candle-container {
    margin: auto;
    margin-bottom: 1rem;
    width: 30px;
    height: 60px;
    background: #fff8dc;
    border-radius: 5px;
    position: relative;
}

.flame {
    position: absolute;
    top: -20px;
    left: 50%;
    width: 10px;
    height: 20px;
    margin-left: -5px;
    background: radial-gradient(ellipse at center, #ff9900 0%, #ff3300 70%);
    border-radius: 50%;
    animation: flicker 1s infinite;
    opacity: 0.8;
}

@keyframes flicker {
    0%, 100% {
        transform: scaleY(1);
        opacity: 0.9;
    }

    50% {
        transform: scaleY(1.2);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.image-container {
    position: relative;
    display: inline-block;
    margin-left: 100px;
}

.image-container img {
    display: block;
    max-width: 100%;
    height: auto;
}

.person-overlay {
    position: absolute;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0);
    transition: background-color 0.3s;
    pointer-events: all;
}

.person-overlay:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.person-overlay.active {
    background-color: rgba(255, 255, 0, 0.4);
}

.vorstand {
    margin-top: 90px;
}

.vorstandanleitung {
    font-style: italic;
    font-size: 20px;
    margin-bottom: 1rem;
    color: #4484c4;
}

/* Bild + Karte nebeneinander */
.wrapper {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap; /* mobil bricht das um */
}

/* Overlay‑Flächen wie gehabt */
.person-overlay {
    position: absolute;
    cursor: pointer;
    background-color: rgba(255,255,255,0);
    transition: background-color .3s;
}

.person-overlay:hover {
    background-color: rgba(255,255,255,.4);
}

/* Karte */
.profile-card {
    min-width: 240px;
    max-width: 500px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0,0,0,.15);
    padding: 1.5rem 1.25rem 1rem;
    position: relative;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity .3s ease, transform .3s ease;
}

.profile-card.show {
    opacity: 1;
    transform: translateX(0);
}

.profile-card h3 {
    margin-top: 0;
    margin-bottom: .75rem;
    font-size: 1.25rem;
    color: #4484c4;
}

.profile-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 1.5;
}

.profile-card li strong {
    display: inline-block;
    width: 7.2rem;
    font-weight: 600;
    text-shadow: 1px 1px 0px black, -1px -1px 0px black, 1px -1px 0px black, -1px 1px 0px black;
}

.profile-card li:nth-child(odd) strong {
    color: yellow; /* Gelb */
}

.profile-card li:nth-child(even) strong {
    color: #4484c4; /* Blau */
}

#close-card {
    background: none;
    border: none;
    font-size: 1.5rem;
    position: absolute;
    top: .5rem;
    right: .75rem;
    cursor: pointer;
    line-height: 1;
}

@media (max-width: 768px) {
    body {
        padding: 0 10px;
    }

    h1 {
        font-size: 36px;
    }

    p {
        font-size: 18px;
    }

    .background {
        height: 100vw;
        width: 100%;
        margin-top: 60px;
    }

    .highlight {
        margin-top: 250px;
    }

    /* Container und Abschnitte einspaltig */
    .container {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .left-section,
    .team-member,
    .news,
    .modern-player,
    .profile-card {
        max-width: 100%;
        width: 100%;
    }

    /* Team-Section untereinander */
    .team-section {
        flex-direction: column;
        padding: 20px;
    }

    /* Menü in Overlay zentriert */
    .menu-columns {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }

    .mitglieder-container {
        column-count: 1;
        padding: 20px;
        column-gap: 10px;
    }

    .mitglieder {
        aspect-ratio: auto; /* Optional: je nach Wunsch, sonst kannst du es so lassen */
        margin-bottom: 15px;
    }

    /* News-Container einspaltig */
    .news-container {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    /* Audio-Player untereinander */
    .players-wrapper {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    /* Chronik-Entries einspaltig */
    .chronik-entry {
        flex-direction: column;
        text-align: center;
    }

    .chronik-image img {
        width: 120px;
        height: 120px;
    }

    /* Vorstand Bild + Karte untereinander */
    .wrapper {
        flex-direction: column;
        align-items: center;
    }

    /* Footer-Logos verkleinern */
    .footer-partner {
        gap: 1rem;
    }

    .logo-wrapper {
        width: 120px;
        height: auto;
    }

    .footer-logo {
        width: 120px;
    }

    .section-dzsponsoren {
        padding: 20px;
    }

    .dachmuster {
        gap: 8px;
    }

    .reihe {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-left: 0 !important;
    }

    .reihe.versetzt {
        margin-left: 0 !important;
    }

    .ziegel {
        min-width: 100px;
        padding: 10px 15px;
        font-size: 14px;
        flex: 1 1 45%;
        max-width: 45%;
    }

    .toggle-wrapper {
        flex-direction: column;
        justify-content: flex-start;
        gap: 8px;
        padding: 10px;
    }

    .toggle-label {
        margin: 0;
        font-size: 1rem;
        text-align: center;
    }

    .toggle-container {
        width: 60px;
        padding: 4px;
    }

    .toggle-switch {
        width: 25px;
        height: 25px;
    }

    .toggle-container.active .toggle-switch {
        transform: translateX(30px);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 28px;
    }

    p {
        font-size: 16px;
    }

    .subtitle {
        font-size: 14px;
    }

    .submit-btn,
    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}
