/* Custom styles for Chris Perschke's website */

/* Import local fonts */
@import url('../fonts/fonts.css');

/* General styles */
body {
    font-family: 'Raleway', sans-serif; /* Changed to Europa font */
    background-color: #ffffff;
    position: relative;
    margin: 0;
    overflow-x: hidden;
    overflow-y: scroll;
height: 100%;
    scroll-behavior: smooth;
}

/* Typography styles */
h1, h2 {
    font-family: 'Permanent Marker', sans-serif;
    font-weight: 400 !important;
    text-transform: uppercase;
}

h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
}

/* Header styles */
.navbar-brand {
    font-weight: bold;
}

/* Custom navbar background */
.bg-dark {
    background-color: #2a3a6a !important; /* Very dark blue */
}

/* Adjust text color for better contrast */
.navbar-light .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    color: rgba(255, 255, 255, 1);
}

/* Navbar collapse styles for mobile menu toggle without Bootstrap JS */
.navbar-collapse {
    display: none;
}

.navbar-collapse.show {
    display: block;
}

@media (min-width: 992px) {
    .navbar-collapse {
        display: flex !important;
    }

    .navbar-toggler {
        display: none;
        color: white !important;
    }
}



.colorBurger {
    border-color: white;

    color: white !important;
}

/* Navbar toggler icon - white color */
.navbar-toggler-icon {
    filter: invert(1) brightness(200%);
}

/* Menu separator styles */
.menu-separator {
    position: relative;
    padding-left: 15px;
}

.menu-separator::before {
    content: "|";
    color: #6c757d; /* Bootstrap secondary color */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Fix for spacing issues */
html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #ffffff;
    scroll-behavior: smooth;
    overflow-y: scroll;


}

body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #ffffff;
}

/* Add padding to account for fixed navbar */
body {
    padding-top: 0;
}

@media (min-width: 992px) {
    body {
        padding-top: 0;
    }
}

/* Section styles */
section {
    padding: 70px 0; /* Add padding to account for fixed navbar */
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #ffffff;
    scroll-margin-top: 70px; /* Add scroll margin for modern browsers */
}

section h2 {
    margin-bottom: 20px;
    font-weight: bold;
}

/* Home section */
#home {
    background-color: #ffffff;
    min-height: 60vh; /* 60% of the viewport height */
}

#home .bassist-image {
    max-width: 100%;
    height: auto;
}

/* Bands section */
#bands {
    background-color: #2a3a6a; /* Very dark blue, same as navbar */
    position: relative;
    min-height: 50vh; /* 50% of the current height */
    margin-left: -15px;
    margin-right: -15px;
    padding: 70px 0; /* Match the general section padding */
    padding-left: 15px;
    padding-right: 15px;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    scroll-margin-top: 70px; /* Add scroll margin for modern browsers */
}


#bands .container {
    position: relative;
    background-color: transparent;
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
    margin-bottom: 30px;
    color: #ffffff; /* White text for better readability on dark background */
}

#bands h2 {
    color: #ffffff; /* White text for better readability on dark background */
}

/* Masonry layout for bands */
#bands .masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-gap: 25px;
    grid-auto-rows: minmax(100px, auto);
    grid-auto-flow: dense;
    padding: 15px;
}

#bands .card {
    background-color: #ffffff;
    color: #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    break-inside: avoid;
    margin-bottom: 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

#bands .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
}

#bands .band-logo {
    height: 180px;
    object-fit: contain;
    padding: 15px;
    background-color: #f8f9fa;
    transition: transform 0.3s ease;
}

#bands .card:hover .band-logo {
    transform: scale(1.05);
}

#bands .card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

#bands .card-title {
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 1.25rem;
}

#bands .card-text small {
    color: #6c757d;
    font-style: italic;
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* Hide lorem ipsum by default */
#bands .card .lorem-text {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    margin-top: 0;
    margin-bottom: 0;
}

/* Show lorem ipsum on hover */
#bands .card:hover .lorem-text {
    /*max-height: 100%;*/
    max-height: 100%;
    opacity: 1;
    margin-top: 10px;
}

/* Responsive adjustments for masonry grid */
@media (max-width: 768px) {
    #bands .masonry-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        grid-gap: 15px;
    }
}

@media (max-width: 576px) {
    #bands .masonry-grid {
        grid-template-columns: 1fr;
    }
}

/* Bio section */
#bio {
    padding: 0; /* No padding for smaller screens */
    position: relative;
    min-height: 50vh; /* 50% of the viewport height */
    margin-left: -15px;
    margin-right: -15px;
    padding-left: 15px ;
    padding-right: 15px;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw ;
    margin-right: -50vw;
    overflow: hidden;
    scroll-margin-top: 70px; /* Add scroll margin for modern browsers */
}

@media (min-width: 993px) {
        #bio {
            background-image: url('../images/ich_horizont.png');
            background-size: cover; /* Cover the entire section */
            background-position: center left; /* Center the background image */
            background-repeat: no-repeat;
            padding: 70px 0; /* No padding for smaller screens */
            position: relative;
            min-height: 50vh; /* 50% of the viewport height */
            margin-left: -15px;
            margin-right: -15px;
            padding-left: 15px;
            padding-right: 15px;
            width: 100vw;
            left: 50%;
            right: 50%;
            margin-left: -50vw;
            margin-right: -50vw;
            overflow: hidden;
            scroll-margin-top: 70px; /* Add scroll margin for modern browsers */
        }
}





#bio .container {
    position: relative;
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
    margin-bottom: 30px;
    z-index: 1; /* Ensure content is above the background */
}

#bio .container .milch {
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white background */
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
    margin-bottom: 30px;
}

#bio .col-md-4 {
    background-color: transparent;
}

/* Center the text container when there's no background image (viewport width < 993px) */
@media (max-width: 992px) {
    #bio .col-md-4 {
        display: none; /* Hide the empty column */
    }

    #bio .col-md-8.milch {
        width: 100%; /* Make the text container take full width */
        max-width: 100%;
        flex: 0 0 100%;
        margin-left: auto;
        margin-right: auto;
    }

    #bio .row {
        justify-content: center; /* Center the row content */
    }
}


/* Trenner Pic section */
#trenner_pic {
    background-image: url('../images/ich_horizont.png');
    background-size: cover; /* Cover the entire section */
    background-position: center left; /* Center the background image */
    background-repeat: no-repeat;
    padding: 30px 0; /* Less padding than bio section as it's just a divider */
    position: relative;
    min-height: 60vh; /* Shorter than bio section */
    margin-left: -15px;
    margin-right: -15px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    scroll-margin-top: 70px; /* Add scroll margin for modern browsers */
}

/* Hide trenner_pic section at 992px or more */
@media (min-width: 992px) {
    #trenner_pic {
        display: none;
    }
}

/* Discografie section */
#discografie {
    background-image: url('../images/ich_sw.jpeg');
    background-size: cover; /* Cover the entire section */
    background-position: center center; /* Center the background image */
    background-repeat: no-repeat;
    padding: 70px 0; /* Match the general section padding */
    position: relative;
    min-height: 50vh; /* 50% of the viewport height */
    margin-left: -15px;
    margin-right: -15px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden; /* Prevent scrolling within the section */
    scroll-margin-top: 70px; /* Add scroll margin for modern browsers */
}

#discografie .container {
    position: relative;
    z-index: 1;
}

#discografie h2 {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 30px;
}

#discografie .card {
    height: 100%;
    transition: 0.3s;
    background-color: rgba(255, 255, 255, 0.9);
}

#discografie .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

#discografie .card-title {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

#discografie .card-text {
    color: #666;
    font-size: 0.9rem;
}

#discografie .card-body {
    padding: 12px;
}

#discografie .cd-style {
    font-style: italic;
    color: #888;
    font-size: 0.9rem;
}

#discografie .cd-cover {
    height: 160px;
    object-fit: contain;
    padding: 10px;
    background-color: #f8f9fa;
    background-color: rgba(255, 255, 255, 0);
}

@media (max-width: 768px) {
    #discografie .cd-cover {
        height: 140px;
    }
}

@media (max-width: 576px) {
    #discografie .cd-cover {
        height: 180px;
    }
}

#discografie .cd-badges {
    margin-top: 10px;
    margin-bottom: 10px;
}

#discografie .badge {
    font-weight: normal;
    padding: 5px 10px;
}

/* Kontakt section */
#kontakt {
    background-color: #343a40;
    color: #fff;
}

#kontakt address {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Card styles */
.card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    height: 100%;
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-header {
    background-color: #f8f9fa;
}

/* Footer styles */
footer {
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
    min-height: 125px; /* Default height */
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 10;
}

footer a:hover {
    text-decoration: underline;
}

/* Footer sections styles */
.footer-section {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #343a40; /* Same as footer */
    z-index: 50;
    overflow-y: auto;
    padding: 40px 0;
}

/* Show footer section when targeted */
#impressum:target, #datenschutz:target {
    display: block;
}

/* Style for the back button */
.footer-section .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    padding: 8px 20px;
    margin-top: 20px;
}

.footer-section .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Headings in footer sections */
.footer-section h3 {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.footer-section h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* Paragraphs in footer sections */
.footer-section p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: hotpink; /* Slightly lighter */
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 60;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
}

.scroll-to-top:hover {
    color: white;
    text-decoration: none;
    background-color: blueviolet; /* Slightly lighter */
}

.scroll-to-top i {
    font-size: 1.5rem;
}

.show {
    opacity: 1 !important;;
    visibility: visible !important;
}

.hidden {
    opacity: 0 !important;;
    visibility: hidden !important;;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .scroll-to-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
    }

    .scroll-to-top i {
        font-size: 1.2rem;
    }
}
