/* =========================== Allgemeine Einstellungen =========================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    background: url('/bilder/klaviersaiten.jpg') center center / cover no-repeat fixed;
    line-height: 1.6;
}


/* =========================== Header =========================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to bottom, #2f8391, #000000);
    color: #fafafa;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

/* Logo */
header .header-logo img {
    height: 40px; /* Höhe des Logos */
    width: auto;
}

/* Hamburger-Icon für Mobilgeräte */
.hamburger {
    display: none;     /* Desktop nicht sichtbar */
    font-size: 28px;
    cursor: pointer;
    color: #fafafa;
}

/* Navigation */
header nav {
    display: flex;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

header nav ul li a {
    color: #fafafa;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: #fa0202;
}

/* =========================== Main Container / universelle Alphabox =========================== */
.main-container {
    position: fixed;    /* Box fixiert */
    height: calc(100vh - 180px);    
    height: calc(100dvh - 180px);    
    top: 100px;         /* Abstand vom Header */
    left: 50%;          /* horizontal zentrieren */
    transform: translateX(-50%);
    width: 80%;            /* Breite */
    max-width: 1500px;
    background-color: rgba(255, 250, 230, 0.7); /* leicht gelblich */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);    
    border-radius: 5px;             /* fast eckig */
    z-index: 900; 
    display: flex;
    flex-direction: column;
    padding: 40px 110px 40px 110px;  /* Abstand innen, im Uhrzeigersinn: oben, rechts, unten, links */   
    overflow-y: auto;                       /* Text scrollbar */  
    overscroll-behavior: contain;
    color: #000000;         /* schwarz */   
}

.main-container * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Text */
.main-container p {
    max-width: 100%;        /* Textblock kleiner als Box */
    margin: 0 0 20px 0;    
    padding-left: 0;
    padding-right: 0;
    line-height: 1.6;       /* angenehmes Lesen */
    text-align: justify;    /* Blocksatz */
    hyphens: auto;          /* automatische Silbentrennung */
    word-spacing: 0.05em;   /* minimaler Zusatzabstand zwischen Wörtern */
}
.main-container h1,
.main-container h2,
.main-container h3 {
    text-align: left;
    hyphens: none;
}


/* Überschriften */
.main-container h1 {
    font-size: 2rem; /* Größe für h1 */
    font-weight: bold;
    line-height: 1.6;
    color: #fa0202;
    text-shadow: 3px 3px 4px gray;
    margin-top: 0px; /* Abstand oben */ 
    margin-bottom: 5px; /* Abstand unten */
}

.main-container h2 {
    font-size: 1.6rem; /* Größe für h2 */    
    font-weight: bold;
    font-style: italic;
    margin: 5px 0;
    line-height: 1.6;
    color: #000000;
    text-shadow: 4px 4px 6px gray;
}
.main-container h3 {
    font-size: 1.2rem; /* Größe für h3 */
    font-weight: bold;
    margin: 5px 0;
    line-height: 1.6;
    color: #000000;
    text-shadow: 4px 4px 6px gray;
}

.text-flow {
    hyphens: auto;           /* Silbentrennung */
    -webkit-hyphens: auto;   /* Safari */
    -ms-hyphens: auto;       /* IE */
}

.text-flow p {
    text-align: justify;      /* Blocksatz */
    line-height: 1.6;         /* angenehmer Zeilenabstand */
    margin-bottom: 1em;       /* Abstand zwischen Absätzen */
}
.text-flow blockquote {
    text-align: justify;
    hyphens: auto;
}
/* =========================== Buttons =========================== */
.btn {
    display: inline-flex;
	 align-items: center;           /* vertikal zentriert */
    justify-content: center;    
    padding: 8px 18px;
	 line-height: 1;    
    font-weight: bold;
    font-size: 0.75em;
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(to bottom, #2f8391, #000000);
    border-radius: 3px;
    border: 1px solid #222;
    box-shadow: 4px 4px 8px gray;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:hover {
    color: #c00000;
    filter: brightness(1.3);
}

button.btn {
    appearance: none;
    -webkit-appearance: none;
}

/* =========================== Sections & Grid =========================== */
section h1, section h2 {
    margin-bottom: 20px;
    text-align: left; }

.service-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.service {
    background: linear-gradient(to top, rgba(255, 248, 220, 0.9), rgba(255, 255, 255, 0.95));
    padding: 15px;
    width: 250px;
    text-align: center;
    border-radius: 3px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service img {
    max-width: 100%;
    border-radius: 5px; }

.service:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

/* =========================== Media =========================== */
.media-grid { 
    display: flex;
    flex-wrap: wrap;
    justify-content: center; gap: 20px; }

.media-item {
    text-align: center;
}

.media-item iframe,
.media-item audio {
     width: 100%;
     max-width: 300px; }

/* =========================== Kontaktformular =========================== */
.contact-form {
    max-width: 600px; /* 🔥 begrenzt die Breite */
    margin: 0; /* linksbündig */
    display: flex;
    flex-direction: column; gap: 15px; }

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    box-shadow: 4px 4px 8px gray;
} 

.kontakt-seite .content-narrow {
    max-width: 600px;
    width: 100%; }

/* =========================== Referenzen =========================== */
.auftritte-liste ul {
    list-style-type: none; /* keine Punkte */
    padding-left: 0;
} 

.auftritte-liste li {
    margin-bottom: 15px;
    line-height: 1.6;
    text-align: left; /* linksbündig */
} 

.auftritte-liste strong {
    color: #fa0202; /* rötlich für Datum */
    text-shadow: 4px 4px 6px gray; 
    text-align: justify
}



/* =========================== Responsive / Mobilgeräte =========================== */
/* =========================== Mobilgeräte: Hochformat ============================ */
@media (max-width: 900px) and (orientation: portrait) {
    .main-container {
        width: 90%;
        top: 80px; /* Abstand vom Header */
        bottom: 113px; /* genug Platz für Footer Hochformat */
        padding: 20px 30px 20px 30px; /* Innenabstand kleiner */
           }

header .header-logo img {
        height: 30px; /* kleineres Logo auf Mobil */
    }
    /* Navigation auf Mobilgeräte */ 
    .hamburger {
        display: block; /* Hamburger sichtbar */
    }

    .hamburger:hover {
        color: #fa0202; 
    }

    header nav {
        position: absolute; 
        top: 70px;  
        right: 20px; 
        background: linear-gradient(to bottom, #2f8391, #000000); 
        flex-direction: column; 
        width: 200px; 
        display: none; 
        border-radius: 5px; 
        padding: 10px; 
    }

    header nav.show {
        display: flex; 
    }

    header nav ul { 
        flex-direction: column; gap: 10px; 
    }

    header nav ul li a {
        font-size: 16px;
    }

    header nav ul li a:hover { 
        color: #fa0202; 
    }

    .service-grid, .media-grid {
        flex-direction: column; 
        align-items: center; 
    }
}


/* ===================== Mobilgeräte: Querformat ===================== */
@media (max-width: 900px) and (orientation: landscape) {
    .main-container {
        width: 90%;
        top: 75px; /* Header bleibt gleich */
        bottom: 90px;
        padding: 20px 30px 20px 30px; 
    }

    /* Navigation bleibt gleich */
    .hamburger { display: block; }
    .hamburger:hover { color: #fa0202; }
    header nav {
        position: absolute; 
        top: 70px;  
        right: 20px; 
        background: linear-gradient(to bottom, #2f8391, #000000); 
        flex-direction: column; 
        width: 200px; 
        display: none; 
        border-radius: 5px; 
        padding: 10px; 
    }
    header nav.show { display: flex; }
    header nav ul { flex-direction: column; gap: 10px; }
    header nav ul li a { font-size: 16px; }
    header nav ul li a:hover { color: #fa0202; }
    .service-grid, .media-grid { flex-direction: column; align-items: center; }
}

/* =========================== kleine Handys ================================= */
@media (max-width: 500px) {
    .main-container {
        width: 95%;
        top: 75px;
        bottom: 90px;
        padding: 15px 20px;
    }
}


/* ================= YouTube Thumbnails + Lightbox & Soundcloud ======================== */

/* SoundCloud optisch sauber */
.soundcloud-container iframe {
    width: 100%;
    border-radius: 5px;
}

.soundcloud-container {
    width: 90%;
    margin: 20px 0;
}

/* Soundcloud Preview */
.sc-preview {
    display: block;
    width: 90%;
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.sc-preview:hover {
    transform: scale(1.02);
}

/* YouTube Thumbnail */
.youtube {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    border-radius: 5px;
    overflow: hidden;
}

/* Play-Button */
.youtube::after {
    content: "▶";
    font-size: 30px;
    color: white;
    width: 70px;
    height: 70px;
    line-height: 70px;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* Hover Effekt */
.youtube:hover::after {
    background: rgba(255,0,0,0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Optional: leichter Zoom beim Hover */
.youtube:hover {
    transform: scale(1.02);
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

/* 👉 NEU: Container für Bild + Text */
.lightbox-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    position: relative;
    width: 80%;
    max-width: 900px;
    animation: zoomIn 0.3s ease;
}

/* Zoom Animation */
@keyframes zoomIn {
    from { transform: scale(0.9); }
    to { transform: scale(1); }
}

.lightbox-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 5px;
}

/* Close Button */
.close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover {
    color: #fa0202;
}

/* =========================== Social Media Icons =========================== */

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.social-links img {
    width: 70px;
    height: 70px;
    transition: transform 0.3s, opacity 0.3s;
    cursor: pointer;
}

.social-links img:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

/* Überschrift + Social Icons in einer Zeile */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

/* Überschrift ohne extra Abstand */
.section-header h2 {
    margin: 0;
}

/* Icons rechts daneben */
.section-header .social-links {
    display: flex;
    gap: 15px;
}

/* Icons etwas kleiner für Header */
.section-header .social-links img {
    width: 70px;
    height: auto;
}

.link-liste li a {
    text-decoration: none;
    font-weight: bold;
}

.link-liste li a:hover {
    color: #fa0202;
}

.link-liste a {
    color: #000000;
    text-decoration: none;
}

.link-liste a:visited {
    color: #444444;
}

.link-liste a:hover {
    color: #fa0202;
}

a:hover {
    color: #fa0202;
}

/* =========================== Kalender Layout =========================== */

/* Monatsüberschrift */
#kalender-liste h2 {
    color: #fa0202;
    margin-top: 40px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
}

/* einzelne Termin-Kachel */
.kalender-event {
    background: linear-gradient(to bottom, #fffde7, #ffffff);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.1s;
}

/* Datum */
.kalender-datum {
    font-weight: bold;
    line-height: 0.9;
    color: #fa0202;
}

/* Titel */
.kalender-titel {
    font-size: 1.4em;
    margin: 0;
    line-height: 1.2;
}

/* Ort */
.kalender-ort {
    color: #444;
}

/* Beschreibung */
.kalender-beschreibung {
    font-size: 0.9em;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}

#kalender-liste {
    max-width: 500px;
    margin: 0;
}

/* DSGVO YouTube Hinweis */
.yt-consent-box {
    background: linear-gradient(to bottom, #000000, #1a1a1a);
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.yt-consent-box p {
    margin-bottom: 20px;
    font-size: 1em;
    max-width: 500px;
    line-height: 1.4;
}

.yt-consent-btn {
    padding: 10px 20px;
    background: linear-gradient(to bottom, #fa0202, #a00000);
    color: #fff;
    border: none;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.yt-consent-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* dunkler Overlay für Lesbarkeit */
.yt-overlay {
    background: rgba(0,0,0,0.75);
    padding: 40px 20px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.sc-consent-box {
    background: linear-gradient(to bottom, #222, #000);
    color: #fff;
    padding: 30px;
    text-align: center;
    border-radius: 5px;
}

.sc-consent-btn {
    margin-top: 10px;
    padding: 8px 16px;
    background: #fa0202;
    color: #fff;
    border: none;
    font-weight: bold;
    cursor: pointer;
    border-radius: 3px;
}

.sc-consent-btn:hover {
    filter: brightness(1.2);
}


.kontakt-seite p {
    max-width: 600px;
    text-align: justify;
    hyphens: auto;
}

/* =========================== Galerie Grid =========================== */

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

.galerie-item {
    overflow: hidden;
    border-radius: 5px;
    cursor: pointer;
}

.galerie-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s, filter 0.3s;
}

/* Hover Effekt */
.galerie-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* smoothe bildwechsel */

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 3px solid rgba(255,235,200,0.3);
    box-shadow: 0 0 70px rgba(255,220,110,0.4);
    border-radius: 5px;

    opacity: 1;
    transform: scale(1);

    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Startzustand beim Bildwechsel */
.lightbox-img.zoom-start {
    opacity: 0;
    transform: scale(0.91);
}

/* Fade-out beim Wechsel (JS nutzt das kurz) */
.lightbox-img.fade-out {
    opacity: 0;
}

/* 👉 NUR für Galerie – beeinflusst nichts anderes */
.gallery-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
}

/* Galerie-Bilder Tablet */
@media (min-width: 701px) and (max-width: 1500px) {

    .lightbox-img {
        max-width: 88vw;
        max-height: 80vh;
}

    .gallery-lightbox {
        align-items: center; /* bleibt immer sauber zentriert */
    }

    .lightbox-inner {
        transform: translateY(-7vh);
    }

}

/* Galerie Bilder Handy */
@media (max-width: 700px) {
    .gallery-lightbox img {
        max-height: 85vh;
    }
   .gallery-lightbox {
        align-items: center; /* bleibt immer sauber zentriert */
    }

    .lightbox-inner {
        transform: translateY(2vh);
    }
}

/* Pfeile links/rechts */
.arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 25px;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 10px;
    transition: 0.3s;
    z-index: 10000;
}

.arrow:hover {
    color: #fa0202;
}

/* links */
.arrow.left {
    left: 30px;
}

/* rechts */
.arrow.right {
    right: 30px;
}

/* Texte unter den Fotos */
.lightbox-caption {
    color: #fff;
    text-align: center;
    margin-top: 5px;
    font-size: 16px;
}

/* Index-Seite */

.about {
    max-width: 700px;
    margin: 20px 0 40px 0;
    padding: 0 20px 0 0;
}

.about blockquote {
    margin: 30px 0;
    padding-left: 20px;
    border-left: 2px solid #333;
    font-style: italic;
    line-height: 1.6;
    color: #222;
}



/* =========================== Footer gesamt =========================== */

footer {

    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    
    text-align: center;    
    padding: 7px 7px;
    background: linear-gradient(to top, #000000, #2f8391);
    color: #fafafa;
    z-index: 950;
}

.footer-left,
.footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Alle Logos klein halten */
footer img {
    height: 24px;
    width: auto;
}

/* Mitgliedstext links */
.footer-left .footer-membership {
    font-size: 0.65em;
    font-style: italic;
    color: #9adfe6;
    margin-left: 5px;
}

/* Copyright mittig */
.footer-center {
    text-align: center;
}

/* Footer-Link (Impressum etc.) */
footer a.footer-link {
    color: #fafafa; /* Weiss passend zum Footer */
    text-decoration: none;
    margin-left: 15px;
    font-weight: bold;
    transition: color 0.3s; }
    footer a.footer-link:hover {
    color: #fa0202; /* rötlich beim Hover */ }


/* =========================== Footer Mobil =========================== */

@media (max-width: 700px) {
    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1px;
    }

    .footer-left,
    .footer-right {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    .footer-left .footer-membership {
        display: none;
    }

    footer img {
        height: 21px;
        width: auto;
    }

    .footer-center {
        margin-top: 1px;
        margin-bottom: 0;
    }
}

/* ============================= Index-Seite (=.home): ABOUT + SLIDER LAYOUT ============================= */

/* Layout */
.home .about-row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap; /* wichtig für kleinere Screens */
}

/* Text */
.home .about {
    flex: 1 1 500px;
}

/* Slider */
.home .about-slider {
    flex: 1 1 300px;        /* wächst mit Platz */
    max-width: 380px;       /* verhindert zu klein */
    width: 100%;
    margin: 0 auto;

    aspect-ratio: 4 / 5;    /* DEIN Bildformat */
    overflow: hidden;
    position: relative;
}

/* Slides Container */
.slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 6s ease-in-out;
}

/* Einzelne Bilder */
.slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;

    object-fit: contain;  /* 🔥 GANZES BILD IMMER SICHTBAR */
    background: transparent;
}

/* ============================= MOBILE FEINSCHLIFF ============================= */
@media (max-width: 900px) {
    .home .about-row {
        flex-direction: column;
        gap: 0px;
    }

    .home .about-slider {
        order: -1;
        max-width: 240px;
    }

    .slides {
        transition: transform 2s ease-in-out;
    }
}
/* =========================== Unterricht =========================== */

.unterricht-seite .unterricht-hero img {
    width: 100%;
    height: auto; 
    margin-bottom: 30px;
}

.unterricht-text {
    max-width: 1500px;
    text-align: justify;
    hyphens: auto;
}

.unterricht-footerbild img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-top: 30px;
    opacity: 1;
    margin-bottom: 30px;
}
   
.dtkv-logo {
    height: 80px;
    margin-top: 10px;
}

/* ============================= Bands ==================================*/
.ensemble-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.ensemble-card {
    background: linear-gradient(to top, rgba(255, 248, 220, 0.9), rgba(255, 255, 255, 0.95));
    padding: 15px;
    width: 250px;
	 height: 410px;    
    text-align: center;
    border-radius: 3px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s ease;
	 transform: translateZ(0);
    will-change: transform;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.ensemble-card img {
    max-width: 100%;
    border-radius: 5px;
    height: auto;
}

.ensemble-link:hover .ensemble-card {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.ensemble-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.ensemble-link h3,
.ensemble-link p {
    text-decoration: none;
    color: inherit;
}

.ensemble-link:hover {
    color: inherit;
}


/* ========================= piano solo & stolen moments ==================================== */
.ensemble-video {
    max-width: 800px;
    margin: 20px 0;
}

.ensemble-detail-page .youtube {
    width: 60%;
    max-width: 600px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    position: relative;
    margin: 20px 0;          /* kein auto → bleibt linksbündig */
}
/* ganze Videobreite in Mobilansicht */
@media (max-width: 700px) {
    .ensemble-detail-page .youtube {
        width: 100%;   /* auf Handy wieder volle Breite */
    }
}

.ensemble-detail-page .soundcloud-container {
    width: 60%;
    max-width: 600px;
}

@media (max-width: 700px) {
    .ensemble-detail-page .soundcloud-container {
        width: 100%;
    }
}

/* ====================== Firefox mobile Override fix ===================== */
@supports (-moz-appearance: none) {
   html, body {
        font-size: 13px !important;
    }
}

