/* ===== allgemein ===== */
.site-main {
    background-color: var(--color-bg);
}

.strich {
    position: relative;
    width: 120px;
    height: 3px;
    background-color: #fff;
    z-index: 3;
    top: 15px;
    left: -60px;
}

/* Overlay */
.block-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.25); /* leichtes dunkles Overlay */
    pointer-events: none; /* Overlay blockiert keine Klicks */
}

/* ===============================
   Glassmorphismus Utility Class
================================= */

.glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 20px 30px;
}

/* **Content, Beschreibungsblock ** */
/* Leistungs-Section */
.leistung {
    display: flex;
    flex-direction: column;
}

/* Grundblock */
.leistung-block {
    position: relative;
    display: flex;
    min-height: 50vh;
  /*  margin-bottom: -10%;  Überlappung ca. 10% */
}

/* Bild links oder rechts optional */
.leistung-block-1 .block-image,
.leistung-block-2 .block-image {
    position: relative;
    max-width: 300px;
    min-width: 150px;
}
.leistung-block-1 { flex-direction: row; }
.leistung-block-2 { flex-direction: row-reverse; }

.block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right;
    display: block;
}

/* Text über dem Bild */
.block-text {
    position: absolute;
    z-index: 2;
    max-width: 550px;
    text-align: left;
}
.block-text.glass {
    padding: 0 30px;
}
/*
.leistung-block-1 .strich {
    top: 15px;
    left: -60px;
}

.leistung-block-2 .strich {
    bottom: 65px;
    right: 120px;
}
*/
.leistung-block-1 .block-text {
    top: 50px;
    left: 100px;
}

.leistung-block-2 .block-text {
    bottom: 50px;
    right: 100px;
    left: auto;
    margin-left: 30px;
}

/* Überlappung */
.leistung-block-2 {
    margin-top: -180px; /* Abschnitt 2 überlappt Abschnitt 1 */
}

/* Responsive */
@media (max-width: 768px) {
    .leistung-block-2 {
        margin-top: 10px;
    }

    .block-text {
        transform: none;
        margin: 20px auto;
        min-width: 280px;
    }

    .leistung-block-1 .block-text {
        left: 25px;
    }
    .leistung-block-2 .block-text {
        right: 25px;
        bottom: 0px;
    }
}

/* ===== Startseite ===== */
/* ** hero-section ** */
.hero {
    position: relative;
    display: flex;
    min-height: 90vh;
    overflow: hidden;
    padding: 0;
}

.hero .glass {
    padding: 30px 40px;
}

/* Hintergrundbild links angedockt */
/* Container für das linke Hero-Bild */
.hero-bg {
    flex-shrink: 0;       /* Container schrumpft nicht */
    max-width: 40%;       /* maximal 50% Breite */
    height: 90vh;        /* volle Höhe */
    overflow: hidden;     /* alles außerhalb wird abgeschnitten */
    position: relative;
}

/* Bild selbst */
.hero-bg img {
    width: 100%;           /* Containerbreite ausfüllen */
    height: 100%;          /* Containerhöhe ausfüllen */
    object-fit: cover;     /* proportional skalieren, Überschuss abschneiden */
    object-position: right; /* Ausschnitt zentrieren, optional ändern */
    display: block;        /* Lücken unter img vermeiden */
}

/* Content-Bereich */
.hero-content {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dekofläche überlappend */
.hero-deco {
    position: absolute;
  width: 250px;
  height: 50vh;
  background: var(--color-bg-verlauf);
  z-index: 1;
  transform: translate(-80%, -25%);
}

/* Kleines Bild mittig über allem */
.hero-small-image {
    position: absolute;
    left: 0;
  transform: translateX(-10%);
    z-index: 2;
    max-width: 350px;      /* optional begrenzen */
}

.hero-small-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Headline */
.hero-headline {
    position: absolute;
    width: 350px;
    min-width: 300px;
    bottom: 10%;
    left: 50%;
    z-index: 3;
    word-wrap: break-word;
}

/* Responsive Hero-Section */
@media (max-width: 1200px) {
    .hero-headline {
        right: 0;
        left: auto;
    }
}
@media (max-width: 768px) {
    .hero {
        position: relative;
        display: block; /* flex deaktivieren */
        height: 100vh; /* oder 80vh */
    }

    .hero-headline{
        bottom: 5%;
    }

    .hero-deco{
        transform: translate(-82%, -32%);
    }

    .hero-bg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-width: 100%;
    }

    .hero-bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hero-content {
        position: absolute;
        inset: 0;
        z-index: 2;

        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;

        padding: 20px;
    }

    .hero-small-image {
        left: auto;
        transform: translate( 0%, -10%);
    }
}

/** Galerie-Teaser-Section **/

.section-deco {
    position: absolute;
    width: 25vw;
    height: 70vh;
    background: var(--color-bg-verlauf);
    transform: translate(0, -120px);
    right: 0
}

.gallery-preview {
    padding: 0;
    max-width: 100%;
}

.gallery-preview h4.text-box {
    right: 0;
    padding: 10px 30px 15px 20px;
    transform: translate(10px, -110px);
}

/* Wrapper */
.gallery-teaser-wrapper {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.gallery-teaser-wrapper.glass {
    padding: 30px 0 10px;
    border-radius: 0;
}

/* Horizontale Reihe */
.gallery-row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    cursor: grab; /* Maus-Cursor Hinweis */
    -webkit-overflow-scrolling: touch;
    overflow: hidden;
    position: relative;
}

.gallery-row:active {
    cursor: grabbing;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;

    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;

    background: rgba(0,0,0,0.5);
    color: white;
    font-size: 20px;
    line-height: 36px;
    text-align: center;

    transition: background 0.3s ease;
}

.gallery-arrow:hover {
    background: rgba(0,0,0,0.8);
}

.gallery-arrow.left {
    left: 10px;
}

.gallery-arrow.right {
    right: 10px;
}

.gallery-track {
    display: flex;
    will-change: transform;
    margin: 0 0 20px;
}

/* Scrollbar ausblenden (optional) */
.gallery-row::-webkit-scrollbar {
    display: none;
}

/* Galerie Item */
.gallery-item {
    flex: 0 0 auto;
    height: 300px; /* gleiche Höhe */
    margin-right: 20px;
}

/* Bild proportional */
.gallery-item img {
    height: 100%;
    width: auto; /* Breite proportional */
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.35);
}

/* Lightbox */
/* Beschreibung unter dem Bild in der Lightbox */
.glightbox-caption {
    color: #fff;
    text-align: center;
    font-size: 16px;
    margin-top: 5px;
    display: block;
}

/* ===============================
   Abschnitt auf Startseite(about), about, Kontakt
================================= */
.abschnitt h4 {
    right: 0;
    position: absolute;
    transform: translateY(-10%);
    align-self: start;
    background-color: var(--color-secondary);
    padding: 10px 30px 15px 20px;
    z-index: 3;
}

.abschnitt-row {
    display: flex;
    gap: 60px;
    align-items: center;
}

.abschnitt-row2 {
    margin-top: -280px;
    margin-left: 100px;
    position: relative;
    z-index: 3
}

/* =========================
   FOTO BEREICH
========================= */

.foto-wrapper {
    position: relative;
    flex: 1;
    height: 500px;
    max-width: 40%;
    margin-top: -150px; /* weil bei .abschnitt.text-box 150py dazukamen */
}

/* Dekobox */
.deko-box {
    position: absolute;
    width: 75%;
    height: 75%;
    top: -40px;
    left: -40px;
    background: var(--color-primary);
    z-index: 1;
}

/* Slider */
.foto-slider {
    position: absolute;
    width: 100%;
    min-width: 300px;
    height: 100%; /* volle Höhe des Wrappers */
    overflow: hidden;
    z-index: 2;
}

/* Bilder */
.foto-slider img {
    position: absolute; /* bleiben übereinander */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

/* =========================
   TEXTBOXEN
========================= */

.abschnitt .text-box {
    flex: 1;
    position: relative;
    background: var(--color-bg-verlauf);
    text-align: left;
    padding: 10px 30px 300px 10px;
    margin-top: 150px;
}

.text-box-full {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

    /* Reihen-Container vertikal */
    .abschnitt-row {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Foto-Wrapper */
    .foto-wrapper {
        position: absolute;
        width: 100%;
        max-width: 80%;
        height: 400px; /* fixe Höhe für mobile */
        margin-top: 100px;
    }

    /* Dekobox */
    .deko-box {
        position: absolute;
        width: 80%;
        height: 60%;
    }

    /* Text-Boxen */
   /* .text-box, */
   .abschnitt .text-box {
        margin-top: 500px;
   }

   .abschnitt-row2 {
        margin-left: 5%;
        margin-right: 5%;
   }
}

/* **************************************** */
/* ===== Verkauf-Seite, Portfolio ===== */
/* **************************************** */
/* =========================
   PORTFOLIO HERO
========================= */
.portfolioHero {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 50vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: left;
}

/* Hintergrundbild */
.portfolioHero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.portfolioHero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Hero Content über BG */
.portfolioHero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Deko-Box leicht versetzt */
.portfolioHero-deco {
    width: 450px;
    height: 200px;
    transform: translate(120px, 20px);
    background: linear-gradient(#0f6171, #a58243);
}

/* Kleines Bild leicht versetzt über Deko */
.portfolioHero-small-image {
    margin-left: 50px;
}

.portfolioHero-small-image img {
    max-height: 35vh;
    width: 400px;
    display: block;
    height: 350px;
    object-fit: cover;
}

/* Text Container */
.portfolioHero-text {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 450px;
    height: 200px;
    transform: translate(90px, -10px);
    z-index: 3;
    background-color: var(--color-primary);
}

/* Zitat-Box */
.portfolioHero-zitat {
    position: relative;
    font-style: italic;
    margin: 20px 20px;
    border-left: 4px solid #fff;
    font-size: 1rem;
}

.portfolioHero-headline {
    font-size: 2.2rem;
    color: #fff;
    font-weight: 700;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 900px) {

    .portfolioHero {
        height: 60vh;
    }

    .portfolioHero-small-image {
        top: 10%;
        left: 50%;
        transform: translateX(-50%);
    }

    .portfolioHero-text {
        max-width: 90%;
        text-align: center;
    }

    .portfolioHero-zitat {
        font-size: 1rem;
    }

    .portfolioHero-headline {
        font-size: 1.6rem;
    }

    .portfolioHero-deco {
        width: 120px;
        height: 120px;
        top: 15%;
        left: 50%;
    }

}

/* =========================
   PORTFOLIO – Atelier Style
========================= */

.portfolio-container {
    max-width: 1400px;
}

.portfolio-filter {
    margin-bottom: 50px;
}
.portfolio-filter button {
    background-color: transparent;
	border: 1px solid #fff;
	color: #fff;
	padding: 5px 15px;
	margin: 4px 2px;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}
.portfolio-filter button:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.portfolio-filter button.active {
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.portfolio-item {
    display: flex;
    align-items: center;
    margin-bottom: 100px;
    justify-content: flex-start;
}

.portfolio-item .portfolio-text {
    text-align: left;
    margin: 0 50px;
    max-width: 35%;
}

.portfolio-item.row-reverse {
    flex-direction: row-reverse;
    justify-content: flex-start; /* wichtig */
}

/* Bild */

.portfolio-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60%;
}

.portfolio-image img {
    max-height: 80vh;
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.8s ease;
}

.portfolio-image:hover img {
    transform: scale(1.04);
}

/* =========================
   EXPAND CARD
========================= */

.expand-card {
    position: relative;
    padding: 20px 40px;
}

.expand-preview {
    font-size: 1.25rem;
}

/* Ausklappbereich */
.expand-full {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease, opacity 0.4s ease;
    opacity: 0;
    margin-top: 20px;
}
.expand-full p {
    font-size: 1rem;
}

.expand-card.is-open .expand-full {
    max-height: 1000px; /* groß genug */
    opacity: 1;
}

/* Button */

.expand-toggle {
    margin-top: 25px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    color: #444;
    padding: 0;
}

.expand-toggle:hover {
    opacity: 0.6;
}
/****** responsive *****/
@media (max-width: 768px) {

    .portfolio-item {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 50px;
    }

    .portfolio-item.row-reverse {
        flex-direction: column;
    }

    .portfolio-image {
        width: 100%;
    }

    .portfolio-item .portfolio-text {
        max-width: 100%;
        text-align: center;
        align-self: end;
        margin: 0;
    }

}

/* **************************************** */
/* =====        Kontakt-Seite         ===== */
/* **************************************** */
.kontakt-page .abschnitt {
    margin: 100px 0 150px;
}
.kontakt-page .abschnitt h4 {
    left: 0;
    width: 280px;
    margin-top: -10px;
}

.kontakt-page .abschnitt .text-box {
    padding: 10px 50px 300px 30px;
}

.kontakt-page .abschnitt-row2 {
    margin-top: -220px;
}

/****** responsive *****/
@media (max-width: 768px) {

}

/* **************************************** */
/* =====    about-Seite, Das bin ich  ===== */
/* **************************************** */
.portfolioHero-small-image img {
    object-position: top;
}

.about-page .abschnitt .text-box {
  padding: 10px 30px 250px 10px;
}

.about-page .abschnitt-row2 {
  margin-top: -180px;
}

.about-page .text-box-full {
  max-width: 600px;
}
