/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #ffffff;
    justify-content: center; /* Center content vertically */
	padding-top: 70px;
	align-items: flex-start; /* Align content to the left */
    
}


input[type="message"], textarea {
            width: 100%; /* Ensures it takes full width on mobile */
        }
#toggle-view {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1500;
        opacity: 0.55;
    background: #fff;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

@media (max-width: 768px) and (orientation: landscape) {
    #toggle-view {
        top: 80px;          /* unter dem fixed Header */
        bottom: auto;
        right: 50%;
        transform: translateX(50%);
        font-size: 1.5rem;
		        opacity: 0.55;
    }
}


.view {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.view.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}



.page-grid {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-grid .content {
    flex: 1;
}
.artist-blocks {
    max-width: 80%;
    margin: 80px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
	font-family: Arial, sans-serif;
}

.artist-block {
    background: #fff;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
	font-family: Arial, sans-serif;
}

.image-block {
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-block img {
    width: 100%;
    max-width: 420px;   /* kontrollierte Bildgröße */
    height: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 900px) {

    .artist-blocks {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 100%;
        margin: 40px auto;
		 font-family: Arial, sans-serif;
    }

    /* Bild & Text werden visuell getrennt */
    .image-block {
        padding: 20px;
        box-shadow: none;
        background: transparent;
    }

    .text-block {
        padding: 30px 25px;
		 font-family: Arial, sans-serif;
    }

    .image-block img {
        max-width: 100%;
    }
}



		
.impressum
{
 margin: 0; /* Removes default margin to prevent spacing issues */
 line-height: 1.5; /* Ensures 1.5 line spacing for headings and paragraphs */
 padding-left: 40px; /* Adds space on the left side */
 padding-right: 40px; /* Adds space on the right side */
}

.datenschutz {
 all: unset;
 margin: 0; /* Removes default margin to prevent spacing issues */
 line-height: 1.5; /* Ensures 1.5 line spacing for headings and paragraphs */
 padding-left: 40px; /* Adds space on the left side */
 padding-right: 40px; /* Adds space on the right side */
}

/* Navigation Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.box {
    -webkit-box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.5); /* Chrome, Safari */
    -moz-box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.5);    /* Firefox */
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.5);         /* Standard */
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #333;
}

/* Hamburger Icon */
.menu-icon {
    font-size: 2rem;
    cursor: pointer;
    display: none; /* Hidden by default for larger screens */
}

/* Navigation Links */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    text-decoration: none;
    font-size: 1.1rem;
    color: #333;
}

nav ul li a:hover {
    color: #ff9900;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .menu-icon {
        display: block; /* Show hamburger icon on smaller screens */
    }


    nav ul {
        display: none; /* Hide the menu initially on smaller screens */
        flex-direction: column; /* Stack items vertically */
        position: absolute;
        top: 70px;
        right: 0;
        background-color: #fff;
        width: 100%;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
		gap: 10px;
   }

    nav ul li {
        padding: 10px 15px;
        text-align: center;
		display: inline;

    }
	nav ul li a {
    text-decoration: none;
    font-size: 1.4rem;
    color: #333;	
	display: flex;
	flex-wrap: wrap; 
	white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure long words wrap */
}
    nav ul#nav-links {
        display: none; /* Initially hidden */
    }
}

/* Grid Layout for the 4 Blocks */
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns */
    gap: 20px;
    width: auto; /* Remove fixed width to keep the grid size tight */
    max-width: 600px; /* Limit the maximum width */
       margin: 120px auto max(12vh, 80px);
    height: auto; /* Let the content determine height */
    justify-items: center; /* Items */
    align-self: center;    /* Container */
}

/* Each grid item remains square */
.grid-item {
    position: relative;
    width: 40vw; /* Set the width relative to viewport to ensure proportion */
    height: 40vw; /* Keep the height and width equal for square ratio */
    max-width: 250px; /* Set a maximum size to prevent overly large blocks */
    max-height: 250px;
}

.grid-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fits without distortion */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 0; /* No rounded corners */
}

#grid-view {
    align-self: center;
    width: 100%;
}

/* Hide the title initially */
.grid-item .title {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.grid-item:hover .title {
    opacity: 1; /* Show title on hover */
}

.grid-item .title h2 {
    color: #fff;
    font-size: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */

#footer {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
	min-height: clamp(60px, 10vh, 120px);
    box-sizing: border-box;
	margin-top: auto;
}

footer {
display: flex;
   width: 100%;
   max-width: none;
   display: flex;
    justify-content: center; /* Center the links and distribute space evenly */
    align-items: center;
    gap: 10px; /* Space between links and separators */
    padding: 20px;
    background-color: #333;
    color: #fff;
    text-align: center;
    position: relative;
    bottom: 0;
    margin-top: auto;
   flex-wrap: wrap; 
}

.footer a {
    color: #fff; /* Link color */
    text-decoration: none;
   padding: 0 5px;
}

.footer a:hover {
     color: #fff; /* Hover color */
    text-decoration: underline; /* Optional: underline on hover */
}

.footer a:visited {
    color: #fff; /* Same color as default */
}
.footer a:active {
    color: #fff; /* Active link color */
}

footer p {
    margin: 0;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .footer {
        gap: 6px; /* Adjust spacing for mobile */
        padding: 8px; /* Reduce padding on mobile */
    }

    .footer a {
        font-size: 12px;
    }
 /* Full width for the first item */
    .footer-text {
        flex-basis: 100%; /* Make the first item span full width */
        text-align: center;
        margin-bottom: 5px; /* Space below the line break */
        order: -1; /* Keep it as the first item */
  }}

 
  



/* Gallery Grid Layout */
.gallery-grid {
   grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive columns */
    gap: 20px;
    width: 90%;
    margin: 150px auto;
	 display: flex;
	flex-wrap: wrap; /* Allows images to wrap to the next line */
 
}

.gallery-grid img {
    width: 100%;
    height: 100%; /* Maintain original aspect ratio */
    max-width: 300px; /* Set a maximum width */
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    object-fit: cover; /* Ensures the image fits without distortion */
    transition: transform 0.3s ease;
}

.gallery-item {
  position: relative;  
  cursor: pointer;
  display: flex;
  justify-content: center; /* Center images horizontally */
}

.gallery-item img {
  max-height: 200px; /* Maximum height for all images */
  width: auto; /* Maintain aspect ratio */
  height: auto; /* Scale proportionally without stretching */
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05); /* Zoom effect on hover */
      opacity: 1;
}

.overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    word-break: break-word; /* Breaks long words onto a new line */
    overflow-wrap: break-word; /* Ensures long words break within the box */
}

.gallery-item:hover .overlay-text {
    opacity: 1;
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sold Image Styles */
.gallery-item.sold {
    overflow: hidden;
}

.gallery-item.sold img {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.gallery-item.sold::after {
    content: "SOLD \00a0\00a0 SOLD \00a0\00a0 SOLD \00a0\00a0 SOLD \00a0\00a0 SOLD \00a0\00a0 SOLD \00a0\00a0 SOLD \00a0\00a0 SOLD \00a0\00a0 SOLD \00a0\00a0 SOLD";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    transform: translate(-50%, -50%) rotate(-35deg);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
    background-color: rgba(200, 30, 30, 0.55);
    padding: 8px 0;
    pointer-events: none;
    z-index: 10;
}

.gallery-item.sold:hover img {
    filter: grayscale(100%);
    transform: none;
}

.gallery-item.sold:hover .overlay-text {
    opacity: 0;
}

/* Lightbox Styles */
.lightbox {
	display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 25px;
    width: 100%;
    height: 100vh; /* Full-screen height */
    background-color: rgba(255, 255, 255, 0.9);
}

/* Lightbox Image */
.lightbox-content {
  margin: 0 auto;
  max-width: 100%; /* Allow the image to scale up to 100% of the viewport width */
  max-height: 80vh; /* Allow the image to scale up to 100% of the viewport height */
  display: block; /* Center the image horizontally */
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.5); /* Add drop shadow */
  margin-bottom: 0px; /* Space between image and description */
}

.lightbox-content-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Center both vertically and horizontally */
  width: 100%; /* Allow content to fill the width */
  text-align: center; /* Center text horizontally */
}

/* Lightbox Description Below the Image */
.lightbox-description {
    color: #000;
  font-size: 1.2rem;
  text-align: center;
  line-height: 1.5;
  max-width: 80%; /* Same width as the image */
  margin-left: auto; /* Center the description horizontally */
  margin-right: auto;
}


/*Mobile Gallery Grid */
@media (max-width: 768px)
{
.gallery-grid {

    justify-content: center;
    align-items: center;  
	flex-direction: column;      
    gap: 20px;
    width: 90%;
    margin: 4.0vh auto;                /* Adjust margin for smaller screens */
	display: flex;
	flex-wrap: wrap; /* Allows images to wrap to the next line */
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}
}

@media (max-width: 768px) {
    .lightbox-content {
        max-width: 90%; /* Larger image on smaller screens */
        max-height: 60%; /* Reduce image height to leave space for description */
display: flex;
      justify-content: center;
    align-items: center;
    }

    .lightbox-description {
    max-width: 90%; /* Ensure description fits within mobile width */
    text-align: center;
    line-height: 1.5; /* Improve readability for multiline descriptions */
    }
}

@media (max-width: 480px) {
    .lightbox-content {
        max-width: 95%; /* Almost full width on very small screens */
        max-height: 55%; /* Ensure description is visible on small screens */
display: flex;
      justify-content: center;
    align-items: center;
    }
}

/* Close Button */
.close {
    position: fixed; /* Stay fixed in top right */
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: #000;
    cursor: pointer;
    z-index: 2001;
}

/* Lightbox Arrows */
.left-arrow-lightbox, .right-arrow-lightbox {
    font-size: 3rem;
    color: #000;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.left-arrow-lightbox {
    left: 20px;
}

.right-arrow-lightbox {
    right: 20px;
}

.left-arrow-lightbox:hover, .right-arrow-lightbox:hover {
    color: #ff9900; /* Highlight color on hover */
}

@media (max-width: 768px) {
    .left-arrow-lightbox, .right-arrow-lightbox {
    display: none;
    }

    .left-arrow-lightbox {
        left: 5vw;  /* Position left arrow with some space from the left */
    }

    .right-arrow-lightbox {
        right: 5vw;  /* Position right arrow with some space from the right */
    }
}

.cv-section {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 20px;
}

.cv-section h2 {
    margin: 10px 0 25px;
    font-size: 1.8rem;
}

/* Tabelle ohne Rahmen */
.cv-table {
    width: 100%;
    border-collapse: collapse;
}

.cv-table td {
    padding: 6px 0;
    vertical-align: top;
    font-size: 1.05rem;
    line-height: 1.5;
}

/* Jahres-Spalte */
.cv-table .year {
    width: 90px;
    font-weight: 600;
    padding-right: 20px;
    white-space: nowrap;
}

/* Mobile: untereinander */
@media (max-width: 700px) {

    .cv-table tr {
        display: block;
        margin: 0;              /* kein extra Abstand */
    }

    .cv-table td {
        display: block;
        padding: 0;
        line-height: 1.4;       /* Lesbarkeit ohne Luft */
    }

    .cv-table .year {
        font-size: 1.15rem;   /* etwas größer als Text */
        font-weight: 700;     /* klar fett */
        opacity: 1;           /* volle Präsenz */
        margin-bottom: 2px;   /* leichte Trennung zum Inhalt */
    }

    .cv-table td:not(.year) {
        font-size: 1.05rem;
    }
}



.top-banner {
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;   /* verhindert Bild-Leerraum */
}

.top-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain; /* ganzes Bild sichtbar */
}

@media (max-width: 900px) {

    .top-banner img {
        width: 100%;
        height: auto;          /* ← entscheidend */
        object-fit: contain;   /* ← KEIN Abschneiden */
    }

}
