/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Roboto */
@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Black.woff2') format('woff2'),
        url('fonts/Roboto-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-BlackItalic.woff2') format('woff2'),
        url('fonts/Roboto-BlackItalic.woff') format('woff');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-BoldItalic.woff2') format('woff2'),
        url('fonts/Roboto-BoldItalic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Italic.woff2') format('woff2'),
        url('fonts/Roboto-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Bold.woff2') format('woff2'),
        url('fonts/Roboto-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Light.woff2') format('woff2'),
        url('fonts/Roboto-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-LightItalic.woff2') format('woff2'),
        url('fonts/Roboto-LightItalic.woff') format('woff');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-MediumItalic.woff2') format('woff2'),
        url('fonts/Roboto-MediumItalic.woff') format('woff');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Medium.woff2') format('woff2'),
        url('fonts/Roboto-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-ThinItalic.woff2') format('woff2'),
        url('fonts/Roboto-ThinItalic.woff') format('woff');
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Thin.woff2') format('woff2'),
        url('fonts/Roboto-Thin.woff') format('woff');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Regular.woff2') format('woff2'),
        url('fonts/Roboto-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}





/* Globale Anwendung auf die gesamte Seite */
html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #FFEFDB;
    background-color: #778899;
}




/* Standard-Linkfarbe */
a {
    color: #161c29; /* Goldfarbener Link */
    font-weight: 400px;
    text-decoration: none; /* Entfernt die Unterstreichung */
}

/* Farbe beim Hover (wenn der Benutzer mit der Maus Ã¼ber den Link fÃ¤hrt) */
a:hover {
    color: #161c29; /* Dunklerer Goldton beim Hover */
    text-decoration: underline; /* Optional: unterstreicht den Link beim Hover */
}

/* Farbe fÃ¼r besuchte Links */
a:visited {
    color: #161c29; /* Etwas dunklerer Farbton fÃ¼r besuchte Links */
}

/* Farbe fÃ¼r aktive Links (wenn der Link geklickt wird) */
a:active {
    color: #161c29; /* Orangefarbener Ton beim Klicken */
}

/* Globale Ãœberschrift-Styles fÃ¼r H2 */
h2 {
    font-size: 3em; /* Einheitliche GrÃ¶ÃŸe fÃ¼r alle `h2` */
    font-weight: 400;
    color: #ffffff;
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

/* Globale Ãœberschrift-Styles fÃ¼r H3 */
h3 {
    font-size: 2em; /* Stufe unter H2 */
    font-weight: 300;
    text-align: center;
    margin: 5px 0;
    color: #ffffff;
    background-clip: text;
}

/* Globale Ãœberschrift-Styles fÃ¼r H4 */
h4 {
    font-size: 1.4em; /* Stufe unter H3 */
    font-weight: 300;
    text-align: center;
    margin: 5px 0;
    color: #fff;
}

/* ZeilenabstÃ¤nde fÃ¼r H2, H3, und H4 */
h2, h3, h4 {
    line-height: 1.4;
}

/* Medienabfragen fÃ¼r Tablets und mittlere Bildschirme */
@media (max-width: 1024px) {
    h2 {
        font-size: 2.5em;
    }
    h3 {
        font-size: 1.75em;
    }
    h4 {
        font-size: 1.2em;
    }
    h2, h3, h4 {
        line-height: 1.3;
    }
}

/* Medienabfragen fÃ¼r Smartphones und kleine Bildschirme */
@media (max-width: 768px) {
    h2 {
        font-size: 2em;
    }
    h3 {
        font-size: 1.5em;
    }
    h4 {
        font-size: 1em;
    }
    h2, h3, h4 {
        line-height: 1.2;
    }
}

/* StandardgrÃ¶ÃŸe und Zeilenabstand fÃ¼r P */
p {
    font-weight: 300;
    font-size: 1em;
    line-height: 1.6;
    margin: 5px 0;
    color: #fff;
}

/* Medienabfragen fÃ¼r Tablets und mittlere Bildschirme */
@media (max-width: 1024px) {
    p {
        font-size: 0.95em;
    }
}

/* Medienabfragen fÃ¼r Smartphones und kleine Bildschirme */
@media (max-width: 768px) {
    p {
        font-size: 0.9em;
    }
}


/* Header-Bereich */
#header {
    background-image: url('img/header-background480.jpg');
    background-position: center top; /* Versucht das Bild weiter oben auszurichten */
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    position: relative;
    padding: 20px 0;
}

/* Parallax-Effekt fÃ¼r grÃ¶ÃŸere Bildschirme */
#header {
    background-image: url('img/header-background1920.jpg');
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax-Effekt */
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    position: relative;
    padding: 20px 0;
}
/* Header-Styling ohne `background-attachment` */
#header {
    position: relative;
    background-image: url('img/header-background960.jpg');
    background-position: center center;
    background-size: cover;
    height: 100vh;
    overflow: visible;
}


/* Parallax-Effekt deaktivieren fÃ¼r kleine Bildschirme */
@media (max-width: 767px) {
    #header {
        background-attachment: scroll; /* Statisches Bild */
        background-position: center top; /* Fokussiert die obere Mitte */
    }
}
/* FÃ¼r sehr kleine Bildschirme (bis 480px) */
@media (max-width: 480px) {
    #header {
        background-image: url('img/header-background480.jpg');
        background-position: center center; /* Passt die Positionierung des Autos fÃ¼r MobilgerÃ¤te an */
        background-size: cover;
    }
}

/* FÃ¼r Bildschirme zwischen 481px und 767px (kleinere Tablets) */
@media (min-width: 481px) and (max-width: 767px) {
    #header {
        background-image: url('img/header-background960.jpg');
        background-position: center right;
        background-size: cover;
    }
}

/* FÃ¼r mittlere Bildschirme (z. B. iPads) */
@media (min-width: 768px) and (max-width: 1024px) {
    #header {
        background-image: url('img/header-background960.jpg');
        background-position: center center;
        background-size: contain;
        background-attachment: scroll; /* Verhindert Parallax auf Tablets */
    }
}

/* FÃ¼r grÃ¶ÃŸere Bildschirme */
@media (min-width: 1280px) {
    #header {
        background-image: url('img/header-background1920.jpg');
    }
}

/* FÃ¼r sehr groÃŸe Bildschirme */
@media (min-width: 1920px) {
    #header {
        background-image: url('img/header-background3000.jpg');
    }
}



/* FÃ¼r sehr groÃŸe Bildschirme */
@media (min-width: 1920px) {
    #header {
        background-image: url('img/header-background3000.jpg');
    }
}



/* Standard-Stil für große Bildschirme (Desktop) */
.logo-container {
    position: fixed; /* Wichtig: fixed statt absolute */
    top: 20px; /* Abstand nach oben */
    right: 20px; /* Abstand nach rechts */
    width: 200px; /* Breite des Containers */
    height: 100px; /* Höhe des Containers */
    overflow: hidden;
    z-index: 1000; /* Stelle sicher, dass das Logo über anderen Elementen liegt */
}

.logo-container img {
    width: 100%; /* Füllt die Breite des Containers */
    height: 100%; /* Füllt die Höhe des Containers */
    object-fit: contain; /* Behält das Seitenverhältnis bei */
    opacity: 1; /* Standard-Opazität */
    transition: opacity 0.3s ease; /* Sanfter Übergang für die Transparenz */
}



/* Media Query für Tablets */
@media (max-width: 1024px) {
    .logo-container {
        width: 180px;
        height: 90px;
        margin-top: 15px;
    }
    .logo-container img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

/* Media Query für Smartphones */
@media (max-width: 768px) {
    .logo-container {
        width: 170px;
        height: 85px;
        margin-top: 10px;
    }
    .logo-container img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}





.hero-text {
    position: absolute;
    left: 5%;
    right: auto;
    top: 30%;
    transform: translateY(-50%);
    text-align: left;
    width: auto;
    max-width: 90%; /* Begrenzt die Breite, um Abschneiden zu vermeiden*/
    z-index: 10;
}








/* Smartphones (bis 768px) */
@media (max-width: 768px) {
    #header {
        overflow: visible !important;
    }

    .hero-text {        
        left: 0 !important;
        right: 0 !important;
        top: 30% !important;
        transform: none !important;
        width: auto !important;
        max-width: calc(100% - 40px) !important;
        padding: 0 20px !important; /* 20px Abstand von links und rechts */
        box-sizing: border-box !important;
        text-align: left !important;
    }




    .hero-subline {
        position: relative !important;
        text-align: left !important;
        margin-top: 10px !important;
        width: 100%;
        padding: 0 !important;
    }


}
.hero-subline p {
    margin: 0;
     line-height: 1.2;
}


/* Standard (Desktop) */
.slogan {
    font-size: clamp(3rem, 8vw, 10rem); /* Basisgröße für Desktop , Maximale Schriftgröße auf 10rem*/
    color: #fff;
    line-height: 1.1;
    margin: 0;
    white-space: pre-line;
    animation: slideFadeIn 1.5s ease-out;
    transition: opacity 1.5s ease, transform 0.5s ease;
}

.name {
    font-size: 2.5rem; /* Schriftgröße für den Namen */
    color: #fff;
    margin: 0;
}

.title {
    font-size: 1.5rem; /* Schriftgröße für den Titel */
    color: #fff;
    
}

/* Mobilansicht (max-width: 768px) */
@media (max-width: 768px) {
    .slogan {
        font-size: 3.5rem; /* Kleinere Schrift auf Mobilgeräten */
    }
    .name {
        font-size: 1.6rem; /* Kleinere Schrift für den Namen */
    }
    .title {
        font-size: 1.2rem; /* Kleinere Schrift für den Titel */
    }
}



.slogan.animate {
    opacity: 1;
    transform: translateY(0);
}



@keyframes slideFadeIn {
    0% {
        opacity: 0;
        transform: translateY(100px); /* Startet weiter unten */
    }
    50% {
        opacity: 0.5; /* Teilweise sichtbar auf halbem Weg */
        transform: translateY(50px); /* Halb hochgefahren */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* Endposition */
    }
}






/* Keyframes fÃ¼r die verbesserte Animation */
@keyframes fadeInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-250px); /* Startpunkt noch hÃ¶her */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* Endposition */
    }
}







/* Scroll Icon Styling */
.scroll-icon {
    position: absolute;
    bottom: 30px;   /* Abstand vom unteren Rand */
    left: 50%;
    transform: translateX(-50%);    
    width: 40px;
    height: 60px;
    cursor: pointer;
    animation: bounce 2s infinite;
}

/* Hover-Effekt fÃ¼r das Scroll-Icon */
.scroll-icon img {
    transition: filter 0.3s ease, transform 0.3s ease;
}

.scroll-icon:hover img {
    filter: brightness(0.2); /* Verringert die Helligkeit beim Hover */
    transform: scale(1.1); /* VergrÃ¶ÃŸert das Icon leicht */
}



.scroll-down {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #444;
    color: #f0f0f0;
    border: none;
    cursor: pointer;
    animation: bounce 2s infinite;
}




/* Hamburger MenÃ¼ */
.hamburger-menu {
    position: fixed;
    top: 20px; /* Setzt das MenÃ¼ direkt an die obere Kante */
    left: 20px; /* Linke Positionierung */
    display: flex;
    flex-direction: column;
    cursor: pointer;
    z-index: 2000; /* Hoher Z-Index, damit es Ã¼ber anderen Elementen liegt */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Dunkler Schatten fÃ¼r mehr Tiefe */
    background-color: rgba(34, 34, 34, 0.8); /* Leichter, dunkler Hintergrund fÃ¼r zusÃ¤tzliche Sichtbarkeit */
    padding: 10px;
    border-radius: 8px; /* Abgerundete Ecken */
}

.hamburger-menu span {
    height: 4px;
    width: 25px;
    background: #fff;
    margin: 3px 0;
}





/* Off-Canvas Navigation */
.off-canvas-menu {
    position: fixed;
    top: 0;
    left: -250px; /* MenÃ¼ startet auÃŸerhalb des Bildschirms */
    width: 200px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border-right: 1px solid rgba(255,255,255,0.1);
    padding-top: 60px;
    transition: left 0.4s ease; /* Sanftes Ein- und Ausfahren */
    z-index: 1500; /* Sicherstellen, dass es unter dem Hamburger-MenÃ¼-Icon liegt */
}


/* Off-Canvas geÃ¶ffnet */
.off-canvas-menu.open {
    left: 0; /* MenÃ¼ wird sichtbar nach links eingefahren */
}

.off-canvas-menu nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: start; /* LinksbÃ¼ndig ausrichten */
    padding-left: 20px; /* Abstand links fÃ¼r Lesbarkeit */
}

.off-canvas-menu nav ul li {
    margin: 20px 0; /* Abstand zwischen den Links */
}

.off-canvas-menu nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.off-canvas-menu nav ul li a:hover {
    color: #778899; /* Farbe beim Hover-Effekt auf Gold Ã¤ndern */
}

/* Close Button (X) */
.close-btn {
position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem; /* ErhÃ¶ht die SchriftgrÃ¶ÃŸe des X */
    color: #AFCDEB;
    background: none;
    border: none;
    cursor: pointer;
}





/* Nach oben Icon Styling */
.scroll-to-top {
    position: fixed;
    bottom: 40px; /* Abstand vom unteren Rand */
    right: 40px; /* Abstand vom rechten Rand */
    width: 50px;
    height: 50px;
    background-image: url('img/nach-oben.svg'); /* Dein benutzerdefiniertes Icon */
    background-size: 100%; /* GrÃ¶ÃŸe des Icons anpassen */
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%; /* Rundes Icon */
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000; /* Hoher Z-Index, um Ã¼ber anderen Elementen zu liegen */
}

/* Sichtbar, wenn aktiv */
.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}





/* Content Sections */
section {
    padding: 0 20px 10px 20px;
    text-align: center;
}


/* Abstände zwischen Sections auf Mobilgeräten verkleinern */
@media (max-width: 768px) {
    .project-section + .project-section,
    .project-section + .gallery,
    .gallery + .project-section {
        margin-top: 5px !important; /* Reduzierter Abstand */
    }
}





/* ============================================
   EINHEITLICHE ABSTÄNDE ZWISCHEN ALLEN SECTIONS
   ============================================ */

/* 1. RESET: Alle Margins/Paddings für Sections und Bilder zurücksetzen */
section,
.project-section,
#print,
#website-gallery,
#Cloudfest-gallery,
.gallery-item,
.gallery-grid,
img[src*="Galerie"] { /* Alle Galerie-Bilder */
    margin: 0 auto 30px auto !important; /* Standard-Abstand UNTEN: 20px (Desktop) */
    padding: 0 !important;
}

/* 2. Abstände zwischen Sections und Bildern (Desktop) */
section + section,
section + .project-section,
.project-section + section,
.project-section + .project-section,
#website-gallery + *,
#Cloudfest-gallery + *,
* + #website-gallery,
* + #Cloudfest-gallery,
.gallery-item + .gallery-item {
    margin-top: 0 !important; /* Verhindert doppelte Abstände */
}

/* 3. Mobilansicht: Abstände verkleinern */
@media (max-width: 768px) {
    section,
    .project-section,
    #print,
    #website-gallery,
    #Cloudfest-gallery,
    .gallery-item,
    img[src*="Galerie"] {
        margin-bottom: 10px !important; /* 10px Abstand auf Mobilgeräten */
    }
}









/* Container fÃ¼r die zwei Spalten/Ãœber uns */
.projekte-content {
    display: flex;
    gap: 40px; /* Abstand zwischen den Spalten */
    text-align: justify; /* Blocksatz fÃ¼r den Text */
}

/* Styling fÃ¼r jede Spalte */
.projekte-column {
    flex: 1; /* Gleiche Breite fÃ¼r beide Spalten */
}

/* Anpassung fÃ¼r kleinere Bildschirme */
@media (max-width: 768px) {
    .projekte-content {
        flex-direction: column;
    }
}
/* Standard-Stil für alle Projekt-Sections */
.project-section {
    width: 85%;
    max-width: 1100px;
    margin: 0 auto;
    
}


/* Anpassung für mobile Geräte */
@media (max-width: 768px) {
    .project-section {
        margin: 0 auto; /* Reduzierter Abstand auf mobilen Geräten */
    }
}

/* Spezifische Anpassung für die Überschrift in der Section */
.project-section h2 {
    margin-top: 5px;
}

.project-section h4 {
    margin: 0 0 5px 0;
}


/* Galerie Layout */
.gallery {
    margin: 0;
    padding: 0;
    width: 100%; /* Bildbreite auf volle Bildschirmbreite setzen */
    overflow: hidden;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* ðŸ‘ˆ 2 Kacheln */
    gap: 0; /* optional: ohne Abstand */
}


.gallery-grid picture {
    width: 100%;
    display: block;
}

.gallery-grid img {
    width: 100%; /* Bild fÃ¼llt die gesamte Breite der Spalte */
    height: auto;
    border-radius: 0;
    margin: 0;
    padding: 0;
    display: block;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
     filter: brightness(0.85);
}

.gallery-grid img.show {
    opacity: 1;
    transform: translateY(0);
}
.gallery-item {
    position: relative;
    overflow: hidden;
}
.gallery-item img {
    filter: none;
    transform: none;
    image-rendering: auto;
  
}
.gallery-item:hover img {
    filter: brightness(0.95);
    transform: scale(1.15);
}

.gallery-item:hover .overlay {
    background: linear-gradient(
        to top,
        rgba(255,255,255,0.95),
        rgba(255,255,255,0.6),
        rgba(255,255,255,0.2),
        rgba(255,255,255,0)
    );
}


.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.75),
        rgba(0,0,0,0.3),
        rgba(0,0,0,0)
    );
}


.gallery-item:hover .overlay {
    background: linear-gradient(
        to top,
        rgba(255,255,255,0.65) 0%,
        rgba(255,255,255,0.35) 15%,
        rgba(255,255,255,0.1) 30%,
        rgba(255,255,255,0) 55%
    );
}
.gallery-item.active .overlay {
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.6),
        rgba(0,0,0,0.2),
        rgba(0,0,0,0)
    );
}
.gallery-item:hover img {
    filter: brightness(0.9);
}
.gallery-item.active img {
    filter: none !important;
}

.overlay h3 {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
    text-align: left;
}
.gallery-item:hover .overlay h3 {
    color: #111;  /* nicht 100% schwarz */
}

.gallery-item:hover .overlay p {
    color: #222;
}


.overlay p {
    font-size: 1rem;
    margin-top: 2px;
    opacity: 0.85;
    text-align: left;
}
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.8),
        rgba(0,0,0,0.3),
        rgba(0,0,0,0)
    );
}



.gallery-item:hover .project-text {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}


.project-text {
    list-style: disc;
    padding-left: 50px;
    margin: 0;
    color: #fff;
    text-align: left;
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;   /* ðŸ‘ˆ wichtig! */
    transition: all 0.35s ease;
    
    background: rgba(0,0,0,0.8);
    padding: 20px 25px 20px 35px; 
    border-radius: 4px;
    ackdrop-filter: blur(3px);
}


.project-text ul {
    margin: 0;
    padding-left: 15px;
    list-style-position: insi
}

.project-text li {
    margin-bottom: 10px;
    opacity: 0.9;
}
.project-text li::marker {
    color: rgba(255,255,255,0.7);
}



@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* Eine Spalte auf kleineren Bildschirmen */
    }
}





/* ===== GLEICHMÄSSIGE ABSTÄNDE ZWISCHEN ALLEN SECTIONS (DESKTOP & MOBIL) ===== */

/* Standard-Abstand für Desktop */
section + section,
section + .project-section,
.project-section + section,
.project-section + .project-section,
#website-gallery + *,
#Cloudfest-gallery + *,
* + #website-gallery,
* + #Cloudfest-gallery {
    margin-top: 20px !important; /* 20px Abstand auf Desktop */
}

/* Reduzierter Abstand für Mobilgeräte */
@media (max-width: 768px) {
    section + section,
    section + .project-section,
    .project-section + section,
    .project-section + .project-section,
    #website-gallery + *,
    #Cloudfest-gallery + *,
    * + #website-gallery,
    * + #Cloudfest-gallery {
        margin-top: 10px !important; /* 10px Abstand auf Mobilgeräten */
    }
}





/* Grundlayout fÃ¼r die Kachel-Sektion */
.kachel-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    margin-top: 80px;
}

/* Styling fÃ¼r die Ãœberschrift innerhalb der Kachel-Sektion */
.kachel-section h2 {
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(160deg, #bd6b15, #fbf2a2, #B8860B, #bd6b15);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Kachel-Grid fÃ¼r das Raster */
.kachel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Kacheln pro Reihe auf Desktop */
    gap: 25px;
    width: 80%;
    max-width: 1200px;
}


/* Kachel-Styling */
.kachel {
    padding: 20px;
    text-align: center;
    background-color: #333;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 180px; /* Gleiche HÃ¶he fÃ¼r alle Kacheln */
    gap: 10px; /* Abstand zwischen Icon und Text */
    border: 1px solid;
    border-color: #fff;
}

/* Styling fÃ¼r das Icon */
.kachel-icon {
    margin-bottom: 5px; /* Leichter Abstand zwischen Icon und Text */
}

/* Styling fÃ¼r den Text */
.kachel p {
    margin: 0;
    font-size: 1em; /* Konsistente TextgrÃ¶ÃŸe */
}



/* Responsive Anpassung fÃ¼r Tablets */
@media (max-width: 1024px) {
    .kachel-grid {
        grid-template-columns: repeat(2, 1fr); /* Zwei Kacheln pro Reihe */
        width: 90%; /* Leicht verbreitert auf Tablets */
    }
}

/* Responsive Anpassung fÃ¼r Smartphones */
@media (max-width: 768px) {
    .kachel-grid {
        grid-template-columns: 1fr; /* Eine Kachel pro Reihe */
        width: 95%; /* Fast volle Breite auf kleinen Bildschirmen */
    }
}



/* Mini-Galerie: Responsives Grid */
.mini-gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin: 20px auto;
    max-width: 1200px;
}

.gallery-item {
    width: 100%;
    height: auto;
}

.mini-gallery-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mini-gallery-img:hover {
    transform: scale(1.05);
}

/* Modal-Stile */
/* Modal: Vollflächiger dunkler Hintergrund mit Blur */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    border: none;
    overflow: hidden;
}

/* Modal-Bild-Container: Kein weißer Hintergrund */
.modal-picture {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    max-width: 90vw;
    max-height: 90vh;
    background: transparent;
    margin: 0;
    padding: 0;
    border: none;
}

/* Modal-Bild: Vollflächig, ohne weißen Hintergrund */
.modal-content {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    background: transparent;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
}

/* Schließ-Button: Weiß, damit er auf dem dunklen Hintergrund sichtbar ist */
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: red;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}



.close:hover {
    color: green;
}




/* Media Queries für kleinere Bildschirme */
@media (max-width: 1024px) {
    .mini-gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .mini-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}







/* Testimonial Slider Styling */
.testimonial-slider {
    background: url('img/testimonial-3000.jpg') center/cover no-repeat;
 background-attachment: fixed; /* Parallax-Effekt */
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 300px; /* HÃ¶he des Testimonial-Bereichs */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white; /* Textfarbe, damit sie auf dem Hintergrund gut sichtbar ist */
    margin: 0;
}



/* Wrapper fÃ¼r alle Testimonials */
.testimonial-wrapper {
    display: flex;
    transition: transform 0.8s ease;
    width: 100%;
}

/* Einzelnes Testimonial */
.testimonial {
    min-width: 100%; /* Nimmt die gesamte Bildschirmbreite ein */
    padding: 20px;
    box-sizing: border-box;
    text-align: center; /* Zentriert den Text fÃ¼r bessere Lesbarkeit */
    color: white; /* Sicherstellen, dass der Text lesbar ist */
	max-width: 450px; /* Maximale Breite des Textblocks */
    margin: 0 auto; /* Zentriert den Textblock innerhalb des Bildschirms */
}

.testimonial-slider {
    background-image: url('img/testimonial-3000.jpg');
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax-Effekt */
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

/* Parallax-Effekt fÃ¼r kleine Bildschirme deaktivieren */
@media (max-width: 767px) {
    .testimonial-slider {
        background-attachment: scroll; /* Statisches Bild */
        background-position: center top;
    }
}
	
@media (min-width: 768px) and (max-width: 1024px) {
    .testimonial-slider {
        background-position: center center; /* Zentriert das Bild fÃ¼r iPad-GrÃ¶ÃŸen */
        background-size: cover;
    }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .testimonial-slider {
        background-attachment: scroll; /* Deaktiviert Parallax auf Tablets */
    }
}


/* Mobil-Ansicht (eine Spalte) */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* Eine Spalte auf kleineren Bildschirmen */
    }
}









/* Footer Styling */
.footer {
    background-color: #121212;
	font-size: 0.8em;
    color: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Adressbereich */
.footer-address {
    max-width: 50%;
    margin-bottom: 10px;
	color:#999;
}

/* Social Media Icons */
.footer-social {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

/* Standard Icon-Styling */
.footer-social .social-icon {
    position: relative; /* Wichtig fÃ¼r absolut positionierte Hover-Icons */
    width: 25px;
    height: 25px;
}

.footer-social .social-icon img {
    width: 100%; /* Passt die GrÃ¶ÃŸe an die Elternbreite an */
    height: 100%;
    transition: opacity 0.3s ease;
}

/* Standard-Icon sichtbar */
.icon-default {
    opacity: 1;
}

/* Hover-Icon unsichtbar und absolut positioniert */
.icon-hover {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
}

/* Bildaustausch beim Hover */
.footer-social .social-icon:hover .icon-default {
    opacity: 0; /* Versteckt das Standard-Icon */
}

.footer-social .social-icon:hover .icon-hover {
    opacity: 1; /* Zeigt das Hover-Icon */
}



/* Modal-Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    width: 60%;
    max-height: 80vh; /* Begrenzung der HÃ¶he */
    overflow-y: auto; /* ErmÃ¶glicht das Scrollen bei Bedarf */
    color: #161c29;
    border-radius: 8px;
    max-width: 100%;
}
.modal p {
    color: #161c29;
}
.modal h2 {
    color: #161c29;
}



/* Spezifische Farben fÃ¼r Impressum und DatenschutzerklÃ¤rung */
.footer-legal-link {
    color: #999;
    text-decoration: none;
}

.footer-legal-link hover {
    color: #fff; 
    text-decoration: underline;
}



/* Copyright-Bereich */
.footer-copyright {
    font-size: 0.95em;
    margin-top: 50px;
    color: #aaa;
}

/* Anpassung fÃ¼r kleinere Bildschirme */
@media (max-width: 600px) {
    .footer-address, .footer-social {
        max-width: 100%;
        margin: 10px 0;
    }
}


/* Cookie-Banner Styling */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px;
    text-align: center;
    z-index: 1000;
    display: none; /* Anfangs nicht sichtbar */
}
.cookie-button {
    margin: 5px;
    padding: 8px 15px;
    background-color: #FFA500;
    color: #fff;
    border: none;
    cursor: pointer;
}





