/* Grundlegende Farbvariablen Simon Luthe*/
:root {
    --yellow: #ffff00;
    --black: #1a1a1a;
    --white: #ffffff;
    --dark-gray: #2a2a2a;
    --medium-gray: #3a3a3a;
}

/* Schriftarten-Definitionen */
@font-face {
    font-family: 'Matter';
    src: url('/fonts/Matter-Heavy.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Theodor';
    src: url('/fonts/Teodor-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Grundlegende Seitenstruktur */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Theodor', sans-serif;
    background-color: var(--black);
    color: var(--white);
    height: 100%;
    transition: background-color 0s ease, color 0.8s ease;
}
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Überschriften und Textformatierung */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Matter', sans-serif;
    font-weight: 400;
}

p, .content {
    font-family: 'Theodor', serif;
}

/* Header und Logo */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.logo-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--black); /* Hintergrundfarbe hinzugefügt */
    background-image: url('/images/background.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.4s ease-in-out, background-color 0.4s ease;
    z-index: 10; /* Erhöhter z-index */
}

.logo-image.slide-out {
    transform: translateY(-100%);
}

.logo-image.slide-down {
    transform: translateY(100%);
}

body.light-mode .logo-image {
    background-color: var(--white);
}

@keyframes slideInFade {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Navigation */
nav {
    position: fixed;
    bottom: 5vh;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 2vw;
    z-index: 10;
}

nav a, .legal-link {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease;
    font-family: 'Matter', sans-serif;
    font-weight: bold;
    border-radius: 5px;
    transition: color 0.8s ease, background-color 0.8s ease;
    padding: 10px 10px 5px 10px;
}

.legal-link {
    padding: 5px 10px;
    font-size: 0.8vw;
}

nav a {
    font-size: 1.5vw;
    white-space: nowrap;
}

nav a:hover, nav a.active, .legal-link:hover, .legal-link.active {
    background-color: var(--yellow);
    color: var(--black);
}

.legal-links {
    position: fixed;
    top: 2vh;
    right: 2vw;
    z-index: 10;
}

/* Hauptinhalt */
main {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
    align-items: center;
    z-index: 5;
}

.content-wrapper {
    position: absolute;
    width: 100%;
    height: calc(100% - 25vh); /* Höhe abzüglich der Navighöhe */
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transition: transform 0.4s ease, opacity 0.8s ease;
    transform: translateY(0);
    opacity: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20vh; /* Abstand für Navigation unten */
    box-sizing: border-box; /* Wichtig, damit padding nicht zur Gesamthöhe addiert wird */
}

.content-wrapper.slide-up {
    transform: translateY(-100%);
    opacity: 0;
}

.content-wrapper.slide-down {
    transform: translateY(100%);
    opacity: 0;
}

h1 {
    font-family: 'Matter', sans-serif;
    font-size: 5vw;
    margin-bottom: 5vh;
    font-weight: bold;
    text-align: center;
    line-height: 0px;
}

.section-heading {
    font-family: 'Matter', sans-serif;
    font-size: 3vw;
    font-weight: bold;
    text-align: center;
    color: var(--yellow);
    margin: 3rem 0 2rem 0;
    text-transform: uppercase;
}

body.light-mode .section-heading {
    color: var(--black);
}

.content {
    width: 80%;
    margin: 0 auto;
    padding: 2rem;
}

p {
    font-size: 1.2vw;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

/* Kleines Logo */
.logo-small {
    position: fixed;
    bottom: 2vh;
    right: 2vw;
    width: 60px;
    height: 60px;
    transition: opacity 0.3s ease;
    z-index: 1000;
    display: none;
}

.logo-small a {
    display: block;
    padding: 15px;  /* Vergrößert den Klickbereich */
    margin: -15px;  /* Kompensiert das Padding, damit die Position gleich bleibt */
}

.logo-small.visible {
    display: block;
}

.logo-small img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Light Mode */
body.light-mode {
    background-color: var(--white);
    color: var(--black);
}

body.light-mode nav a, 
body.light-mode .legal-link {
    color: var(--black);
}

body.light-mode nav a:hover, 
body.light-mode nav a.active, 
body.light-mode .legal-link:hover,
body.light-mode .legal-link.active {
    background-color: var(--black);
    color: var(--white);
}

/* Burger Menü für mobile Ansicht */
.burger-menu {
    top: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
    
        position: absolute;
        display: none;
}

.burger-icon {
    width: 30px;
    height: 20px;
    position: relative;
}

.burger-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
    background: var(--white);
    z-index: 10000;
}

.burger-icon span:nth-child(1) { top: 0px; }
.burger-icon span:nth-child(2),
.burger-icon span:nth-child(3) { top: 10px; }

.burger-menu.open .burger-icon span:nth-child(1) {
    top: 10px;
    width: 0%;
    left: 50%;
}

.burger-menu.open .burger-icon span:nth-child(2) {
    transform: rotate(45deg);
}

.burger-menu.open .burger-icon span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.4s ease-in-out;
    transform: translateY(-100%);
}

.mobile-nav.open {
    transform: translateY(0);
}

.mobile-nav.slide-up {
    transform: translateY(-100%);
}

body.menu-open {
    overflow: hidden;
}

.mobile-nav a {
    font-size: 24px;
    margin: 10px 0;
    color: var(--white);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.mobile-nav a.active,
.mobile-nav a:hover {
    background-color: var(--yellow);
    color: var(--black) !important;
    padding-top: 10px;
}

body.light-mode .mobile-nav {
    background-color: var(--white);
}

body.light-mode .mobile-nav a {
    color: var(--black);
}

body.light-mode .mobile-nav a.active,
body.light-mode .mobile-nav a:hover {
    background-color: var(--black);
    color: var(--white) !important;
    padding-top: 10px;
}

/* Grundlegende Styles */
.team-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.team-member {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: start;
    width: 100%;
}

.image-container {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.team-member img {
    width: 200px;
    height: auto;
    object-fit: contain;
    border-radius: 0%;
    transition: transform 0.3s ease;
}

.team-member:hover img {
    transform: scale(1.05);
}

.team-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.team-text h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--yellow);
    text-transform: uppercase;
    text-align: left;
}

body.light-mode .team-text h2 {
    color: var(--black);
}

.team-text h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: normal;
    font-family: "Theodor";
    text-align: left;
}

.team-text p {
    text-align: justify;
    line-height: 1.5;
    font-size: 1.2rem;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    margin-bottom: 1rem;
}

.team-text img {
    width: 30%;
    height: auto;
    object-fit: cover;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.text-content {
    max-height: 0px;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    text-align: justify;
    margin-bottom: 2rem;
}

.text-content.expanded {
    max-height: 1000px;
}

.toggle-text {
    background: none;
    border: 2px solid var(--yellow);
    color: var(--yellow);
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-family: 'Matter', sans-serif;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: inline-block;
    width: auto;
    align-self: flex-start;
}

.toggle-text:hover {
    background: var(--yellow);
    color: var(--black);
}

body.light-mode .toggle-text {
    border-color: var(--black);
    color: var(--black);
}

body.light-mode .toggle-text:hover {
    background: var(--black);
    color: var(--white);
}

.team-footer {
    text-align: center;
    margin-top: 4rem;
    font-size: 1.2rem;
    line-height: 1.6;
}

.footer {
    text-align: center;
    font-size: 1rem;
    line-height: 1.6;
}

/* Kontakt Styles */
.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem 15vh 2rem; /* Weniger Padding oben */
    box-sizing: border-box;
    min-height: calc(100vh - 25vh); /* Mindesthöhe minus Navigationsbereich */
    max-height: calc(100vh - 25vh); /* Maximale Höhe begrenzen */
    overflow-y: auto; /* Scrollen falls nötig */
}

.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px; /* Kleinere maximale Breite */
    width: 100%;
    gap: 1rem; /* Weniger Abstand */
}

.contact-image {
    width: 100%;
    max-width: 400px; /* Kleineres Bild */
    height: auto;
    border-radius: 0px;
}

.contact-email {
    font-size: 1.8rem; /* Etwas kleiner */
    color: var(--yellow);
    text-align: center; 
    margin: 0;
    word-break: break-word; /* Verhindert Überlauf bei langen E-Mails */
    z-index: 100; /* Stellt sicher, dass die E-Mail über anderen Elementen liegt */
}

.image-grid, .cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cases-grid {
    grid-template-columns: repeat(2, 1fr);
}
.image-grid {
    grid-template-rows: repeat(2, 1fr);
}

.cases-grid {
    grid-template-rows: repeat(2, 1fr);
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-item h3 {
    margin-bottom: 10px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


.legal h1, .legal h2, .legal h3 {
    color: var(--yellow);
}

body.light-mode .legal h1, 
body.light-mode .legal h2, 
body.light-mode .legal h3 {
    color: var(--black);
}

.content a {
    color: var(--yellow);
}

body.light-mode .legal a {
    color: var(--black);
}

.legal a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .image-grid, .cases-grid {
        grid-template-columns: 1fr;
    }
}

/* Light Mode Styles */
body.light-mode {
    background-color: var(--white);
    color: var(--black);
}

body.light-mode .team-text h2 {
    color: var(--black);
}

body.light-mode .toggle-text {
    border-color: var(--black);
    color: var(--black);
}

body.light-mode .footer {
    border-color: var(--black);
    color: var(--black);
}

body.light-mode .toggle-text:hover {
    background: var(--black);
    color: var(--white);
}

body.light-mode .contact-email {
    color: var(--black);
}

/* Spezielle Regel für Sound-Seite Link */
.contact-email a {
    color: inherit;
    text-decoration: none;
}

body.light-mode .contact-email a {
    color: var(--black) !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .team-container {
        gap: 4rem;
    }
    
    .team-member {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-height: auto;
        position: relative;
        grid-template-columns: none; /* Überschreibt das Grid-Layout */
        gap: 0;
    }
    
    .team-member img {
        width: 150px;
        height: auto;
        object-fit: cover;
    }
    
    .image-container {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        margin-bottom: 2rem;
        position: static;
        width: 100%;
    }
    
    .team-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 100%;
        width: 100%;
        margin: 0;
    }
    
    .team-text h2 {
        font-size: 1.5rem;
        text-align: center;
        color: var(--yellow);
    }
    
    body.light-mode .team-text h2 {
        color: var(--black);
    }
    
    .team-text h3 {
        font-size: 1.3rem;
        text-align: center;
    }
    
    .team-text p {
        font-size: 1rem;
        line-height: 1.6;
        text-align: justify;
        -webkit-hyphens: auto;
        -moz-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
    }
    
    .text-content {
        text-align: justify;
        width: 100%;
        max-width: 90%;
        margin: 0 auto;
    }
    
    .toggle-text {
        font-size: 1.2rem;
        align-self: center;
    }
    
    .team-footer {
        font-size: 1rem;
    }
    
    .contact-email {
        font-size: 1.5rem;
        margin-bottom: 2rem; /* Extra Abstand zur Navigation */
    }
    
    .contact-content {
        padding: 1rem 1rem 20vh 1rem; /* Mehr Platz unten auf Mobile */
        justify-content: flex-start;
    }
    
    .contact-container {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .team-container {
        gap: 3rem;
    }
    
    .team-member img {
        width: 120px;
    }
    
    .team-text h2 {
        font-size: 1.3rem;
    }
    
    .team-text h3 {
        font-size: 1.2rem;
    }
    
    .team-text p {
        font-size: 1.2rem;
    }
    
    .toggle-text {
        font-size: 1.2rem;
    }
    
    .contact-email {
        font-size: 1.2rem;
        margin-bottom: 3rem; /* Noch mehr Abstand auf sehr kleinen Screens */
    }
    
    .contact-content {
        padding: 1rem 1rem 25vh 1rem; /* Noch mehr Platz unten */
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .content-wrapper {
        padding-top: 0px;
    }
    .content{
        padding-top: 0px;
    }
    h1 {
        font-size: 8vw;
        line-height: 1.5rem;
    }
    
    .section-heading {
        font-size: 6vw;
        margin: 2rem 0 1.5rem 0;
    }
    
    p {
        font-size: 4vw;
    }
    
    .mobile-nav a {
        font-size: 6vw;
    }

    .logo-image {
        display: block;
        background-image: url('/images/logo-small.png');
        background-size: 80% auto;
        transform: translateY(0);
        opacity: 1;
        transition: transform 0.4s ease-in-out, opacity 0.8s ease-in-out;
    }
    
    .logo-image.slide-in {
        transform: translateY(0);
        opacity: 1;
    }
    
    .logo-image.slide-out {
        transform: translateY(-100%);
        opacity: 0;
    }
    
    .mobile-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 60px; /* Anpassen nach Bedarf */
        background-color: white;
        z-index: 1000;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
    }
    
    .logo-small {
        position: static; /* Entfernt die absolute Positionierung */
        width: 40px;
        height: 40px;
    }
    
    .logo-small.home {
        display: none !important;
    }
    
    .legal-links {
        display: none;
    }
    
    nav {
        display: none;
    }

    .mobile-nav {
        display: flex;
        top: 60px; /* Beginnt unterhalb der Kopfzeile */
        height: calc(100% - 60px); /* Volle Höhe minus Kopfzeile */
    }
    
    .logo-small, .burger-menu {
        left: auto;
        bottom: auto;
        display: inline;
        z-index: 10;
    }
    
    body.light-mode .mobile-header {
        background-color: white;
    }
    
    body:not(.light-mode) .mobile-header {
        background-color: var(--black);
    }
    
    .content-wrapper {
        margin-top: 60px; /* Gleiche Höhe wie die Kopfzeile */
        height: calc(100% - 60px); /* Volle Höhe minus Kopfzeile */
        overflow-y: auto;
    }

    .team-container {
        flex-direction: column;
        align-items: center;
        gap: 4rem;
    }
    
    .team-member {
        width: 100%;
        max-width: 100%;
    }
    
    .team-member img {
        max-width: 200px;
        margin: 0 auto;
    }
}
@media (max-width: 900px) and (orientation: landscape) {
    .content {
        height: auto;
        padding: 10px 2rem; /* Weniger Padding */
    }
    
    .content-wrapper {
        padding-top: 0px;
    }
    
    .contact-content {
        padding: 0.5rem 2rem 10vh 2rem; /* Noch weniger Padding auf Laptop */
        justify-content: center;
    }
    
    .contact-container {
        gap: 0.5rem; /* Minimaler Abstand */
    }
    
    .contact-image {
        max-width: 300px; /* Noch kleineres Bild auf Laptop */
    }
    
    .contact-email {
        font-size: 1.5rem; /* Kleinere Schrift auf Laptop */
    }
    
    h1 {
        font-size: 5vw;
    }
    
    p {
        font-size: 2.5vw;
    }
    
    .logo-image {
        background-size: 40% auto;
    }
    
    /* Navigation im Original-Style, aber zweizeilig */
    .mobile-nav {
        padding: 20px;
        display: flex;
        flex-wrap: wrap;
        gap: 2vw; /* Gleicher Abstand wie in der Desktop-Navigation */
        justify-content: center;
        align-items: center;
    }
    .mobile-nav {
        top: 40px;
    }
    .mobile-nav a {
        font-size: 3.5vw;
        color: var(--white);
        text-decoration: none;
        padding: 5px 10px;
        border-radius: 5px;
        transition: background-color 0.3s ease, color 0.3s ease;
    }
    
    .mobile-nav a.active,
    .mobile-nav a:hover {
        background-color: var(--yellow);
        color: var(--black) !important;
        padding-top: 10px;
    }
}

@media (max-width: 900px) and (orientation: landscape) and (max-height: 450px) {
    .logo-image {
        background-size: 30% auto;
    }
    
    .mobile-nav {
        padding: 15px;
    }
}

/* Audio Playlist Styles */
.audio-playlist-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.audio-player {
    background: var(--dark-gray);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Light mode audio player styles */
body.light-mode .audio-player {
    background: #f0f0f0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.now-playing {
    padding: 30px;
    background: linear-gradient(135deg, var(--medium-gray) 0%, var(--dark-gray) 100%);
    border-bottom: 2px solid var(--yellow);
}

body.light-mode .now-playing {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    border-bottom: 2px solid var(--black);
}

.now-playing h3 {
    margin: 0 0 20px 0;
    color: var(--yellow);
    font-size: 1.4em;
    font-family: 'Matter', sans-serif;
}

body.light-mode .now-playing h3 {
    color: var(--black);
}

#audio-player {
    width: 100%;
    height: 54px;
    background: transparent;
    border-radius: 8px;
    filter: invert(1) hue-rotate(180deg) saturate(2);
}

body.light-mode #audio-player {
    filter: none;
}

.playlist {
    max-height: 400px;
    overflow-y: auto;
    background: var(--black);
}

body.light-mode .playlist {
    background: #fafafa;
}

.playlist::-webkit-scrollbar {
    width: 8px;
}

.playlist::-webkit-scrollbar-track {
    background: var(--dark-gray);
}

body.light-mode .playlist::-webkit-scrollbar-track {
    background: #e0e0e0;
}

.playlist::-webkit-scrollbar-thumb {
    background: var(--yellow);
    border-radius: 4px;
}

body.light-mode .playlist::-webkit-scrollbar-thumb {
    background: var(--black);
}

.playlist-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--dark-gray);
    gap: 15px;
}

body.light-mode .playlist-item {
    border-bottom: 1px solid #e0e0e0;
    color: var(--black);
}

.playlist-item:hover {
    background: var(--dark-gray);
}

body.light-mode .playlist-item:hover {
    background: #f0f0f0;
}

.playlist-item.active {
    background: var(--medium-gray);
    border-left: 4px solid var(--yellow);
}

body.light-mode .playlist-item.active {
    background: #e8e8e8;
    border-left: 4px solid var(--black);
}

.playlist-item.playing {
    background: var(--yellow);
    color: var(--black);
}

body.light-mode .playlist-item.playing {
    background: var(--black);
    color: var(--white);
}

.track-number {
    font-family: 'Matter', sans-serif;
    color: var(--yellow);
    font-size: 0.9em;
    min-width: 25px;
}

body.light-mode .track-number {
    color: #666;
}

.playlist-item.playing .track-number {
    color: var(--black);
}

body.light-mode .playlist-item.playing .track-number {
    color: var(--white);
}

.track-title {
    flex: 1;
    font-family: 'Theodor', serif;
    font-size: 1.1em;
}

body.light-mode .track-title {
    color: var(--black);
}

body.light-mode .playlist-item.playing .track-title {
    color: var(--white);
}

.track-duration {
    font-family: 'Matter', sans-serif;
    font-size: 0.9em;
    color: #888;
}

body.light-mode .track-duration {
    color: #666;
}

.playlist-item.playing .track-duration {
    color: var(--black);
}

body.light-mode .playlist-item.playing .track-duration {
    color: var(--white);
}

/* Responsive Audio Player */
@media (max-width: 768px) {
    .audio-playlist-container {
        padding: 0 10px;
    }
    
    .now-playing {
        padding: 20px;
    }
    
    .now-playing h3 {
        font-size: 1.2em;
    }
    
    .playlist {
        max-height: 300px;
    }
    
    .playlist-item {
        padding: 12px 15px;
    }
    
    .track-title {
        font-size: 1em;
    }
}

