@font-face{
    font-family: "Work-Sans";
    src: url("fonts/WorkSans-VariableFont_wght.woff2") format("woff2");
}

html{
    scroll-behavior: smooth;
}

body{
    font-family: "Work-Sans", sans-serif;
    margin: 0;
    
    background-color: #000000;
    color: #ffffff;
}

:root{
 
    /* ============================
       Neutrale Farbe
    ============================ */
    --cl-neutral-100: hsl(0, 0%, 100%);     /* #ffffff */
    --cl-neutral-200: hsl(0, 0%, 93%);      /* #eeeeee */
    --cl-neutral-500: hsl(0, 0%, 16%);      /* #292929 */
    --cl-neutral-900: hsl(0, 0%, 0%);       /* #000000 */
 
    /* ============================
       Primär Farbe (Brand)
    ============================ */
    --cl-primary-100: hsl(341, 100%, 90%);
    --cl-primary-200: hsl(341, 100%, 80%);
    --cl-primary-500: hsl(341, 100%, 70%);   /* #FF79A3 */
    --cl-primary-900: hsl(327, 100%, 45%);
 
    /* ============================
       Akzent Farbe (Soft Rosa)
    ============================ */
    --cl-accent-100: hsl(40, 92%, 90%);
    --cl-accent-200: hsl(40, 92%, 80%);
    --cl-accent-500: hsl(40, 92%, 30%);     /* #FEE0E5 */
    --cl-accent-900: hsl(40, 92%, 10%);
   
}

input, button, textarea, option{
    font-family: "Work-Sans", sans-serif;
}

img{
    display: block;
    max-width: 100%;
}

.btn, nav a, button{
    white-space: nowrap;
}

span{
    margin-bottom: 20px;
}

p{
    line-height: 1.4;
    hyphens: auto;
    max-width: 60ch;
    
      /* clamp(MIN, VARIABLE BREITE, MAX) */
  /* Errechnet für: ~16px Min, ~20px Basis, ~24px Max */
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.5rem);


  /* Dezentes Letter-spacing passend zur Textgröße */
  letter-spacing: clamp(-0.5px, -0.01vw, 0);
    
    
}

h1, h2, h3{
    hyphens: auto;
    max-width: 60ch;
}

/* Größere Typo für Desktop – Headlines werden deutlich prominenter */
/*
    h1 {
        font-size: 5rem;
        line-height: 1.0;
        letter-spacing: -2px;
    }
 
    h2 {
        font-size: 3.812rem;
        line-height: 1.1;
        letter-spacing: -1px;
    }
 
    h3 {
        font-size: 2.938rem;
        line-height: 1.1;
        letter-spacing: -1px;
    }
 
    h4 {
        font-size: 2.25rem;
        line-height: 1.2;
    }
 
    h5 {
        font-size: 1.688rem;
        line-height: 1.3;
    }*/

h1 {
  /* clamp(MIN, VARIABLE BREITE, MAX) */
  font-size: clamp(2.2rem, 1.25rem + 4vw, 5rem);
  
  line-height: 1.1;
  
  /* Letter-spacing verringert sich leicht bei zunehmender Größe */
  letter-spacing: clamp(-2px, -0.05vw, -1px); 
}

h2 {
    /* Startet bei ~24px (Mobile) -> Ziel 32px (Desktop) */
    font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

h3 {
    /* Startet bei ~22px (Mobile) -> Ziel 28px (Desktop) */
    font-size: clamp(1.375rem, 1.1rem + 0.75vw, 1.75rem);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

h4 {
    /* Startet bei ~20px (Mobile) -> Ziel 24px (Desktop) */
    font-size: clamp(1.25rem, 1.05rem + 0.5vw, 1.5rem);
    line-height: 1.3;
}

h5 {
    /* Startet bei ~18px (Mobile) -> Ziel 20px (Desktop) */
    font-size: clamp(1.125rem, 1.05rem + 0.25vw, 1.25rem);
    line-height: 1.4;
}

h1, h2, h3, h4, h5{
    color: var(--cl-primary-900);
    text-transform: uppercase;
}
/* Allgemeine Einstellungen */

.home-page h1{
    margin-top: calc(1.5rem + 2vw);
    margin-bottom: calc(1.5vw + 0.5rem);
    padding: 0;
    white-space: nowrap;
}

.home-page p{
    text-align: center;
    padding-top: calc(50vw - 5vw);
}

.home-page {
    flex-direction: column;
    background-image: url(images/Tarnmuster.svg);
    background-repeat: no-repeat;
    background-position: center -2rem;
    background-size: 100vw;
}

.home-page span{
        font-size: clamp(1.1rem, 1.1rem + 1vw, 2rem);
        line-height: 1.2;
        letter-spacing: -0.5px;
}

.pad{
    margin-top: 3vw;
}

nav{
    background-color: black;
    z-index: 999999;
    position: sticky;
    top: 0;
}

section{
    padding: 40px 0;
}

.flex{
    display: flex;
}

.grid{
    display: grid;
    gap: 20px;
}

.flex, .grid{
    max-width: 1180px;
    padding: 0 10px;
    margin: 0 auto;
}

.btn24{
    display: flex;
    width: 10rem;
    padding: 5px 8px 4px 14px;
    text-decoration: none;
    background-color: #ffffff;
    color: #EFEFEF;
    border-radius: 30px;
    margin-top: 1.5rem;
}

.btn24:hover,
.btn24:active,
.btn24:focus{
    transform: scale(110%);
    transition: 400ms ease-in-out;
}

.btn-card {
    font-size: 20px;
    font-weight: 800;
    color: var(--cl-primary-900);
    background-color: #ffffff;
    border-radius: 20px;
    padding: 10px 20px;
    text-decoration: none;
    display: inline-block;
}

.impressum .flex{
    flex-direction: column;
}

.impressum a{
    color: var(--cl-primary-900);
}

.impressum span{
    line-height: 1.8;
}

header .center .btn24{
    margin-bottom: 40px;
}

header .center{
    place-items: center;
}

li::marker {
  color: var(--cl-primary-900); /* Hier deine gewünschte Farbe einsetzen */
}

/*.paragraph{
    line-height: 160%;
    font-weight: 500;
    font-size: 1.125em;
    margin-bottom: 2em;
}*/

.logo{
    max-width: 10rem; 
}

.col-2{ 
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.full-size{
    width: 100%;
}

.align-center{
    align-items: center;
}


#menu {
    padding: 20px;
    border-radius: 250px 0 0 250px;
    background-color: #ffffff2d;
    list-style: none;
    border: 0;
    backdrop-filter: blur(15px) brightness(0.8);
    
    width: 150px;
    z-index: 99999;
    position: fixed;
    inset: unset;
    top: 50px;
    right: 0;
    margin: unset;

    /* Geschlossener Zustand */
    translate: 100px 0; 
    opacity: 0;
    
    transition: 
        translate 400ms ease-out, 
        opacity 400ms ease-out,
        display 400ms allow-discrete, 
        overlay 400ms allow-discrete;
}

/* Offener Zustand */
#menu:popover-open {
    translate: 0 0;
    opacity: 1;
}

/* Startzustand beim Öffnen */
@starting-style {
    #menu:popover-open {
        translate: 100px 0;
        opacity: 0;
    }
}




#menu ul{
    list-style: none;
    padding: 0;
}

#menu li a{
    text-decoration: none;
    display: flex;
    padding: 10px;
    color: #ffffff;
    justify-content: end;
    font-weight: 800;
    font-size: larger;
} 

#menu li a:hover,
#menu li a:active,
#menu li a:focus{
        color: var(--cl-primary-900);
        transform: scale(120%);
        transition: 200ms ease-in-out;
}

#menu li .current {
    color: var(--cl-primary-900);
    text-decoration: underline;
}

footer{
    background-color: #000000;
    background-image: url(images/Tarnmuster-footer.svg);
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 100%;
}

.flex-nav{
    justify-content: space-between;
    padding: 10px;
}

.icon-menu{
    width: 1.5rem;
}

.flex-footer{
    display: flex;
    flex-direction: column;
    text-align: center;
}

.ft-grid{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    place-items: center;
}

.ft-grid a{
    margin: 0;;
    padding: 0;
}

.item{
    padding-top: 20px;
}

.item ul{
    list-style: none;
    padding: 0;
}

.item li{
    padding: 20px 0;
}

.item a{
    color: #ffffff;
}

footer h5,
h6{
    color: var(--cl-primary-900)
}

#clip{
    width: 150vw;
    position: absolute;
    top: calc(13rem - 5vw);
    left: -10vw;
    z-index: -2;
    filter: brightness(1);
    transform: rotate(10deg);
}

.overlay {
    position: relative; /* Wichtig für die absolute Positionierung des Inhalts */
    width: 100%;
    overflow: hidden;
     background: linear-gradient(90deg , #000000 0%, #ffffff00 100%);
}

#section-history img{
    width: 60%;
    margin: 0 auto;
    padding: 30px 0 0 0;
}

#section-history span{
    text-align: center;
}

#section-history .grid{
    justify-content: center;
}

/* Page Leistungen */

.img-col{
    grid-template-columns: 1fr 1fr
}

.img-col img{
    border-radius: 20px;
}

.img-col-gap{
    display: grid;
    gap: 20px;
}

.scroll-container {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 16px) / 3); /* 3 Karten + 2 Gaps */
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 16px;
  align-items: center;
    height: fit-content;
}


.scroll-container {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, min(32%, 90vw));
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 16px;
  align-items: start;
  scroll-behavior: smooth;

  /* Scrollbar verstecken */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge (Legacy) */
}

.scroll-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 20px;
  color: #fff;
    height: 100%;
}

.card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 30px;
  display: block;
  max-width: 350px;
}

.card h3 {
  margin: 0.75rem 0 0.5rem;
    margin-top: auto;
}

.card p {
  max-width: 25ch;
    margin-top: auto;
}

.card a {
    margin-top: auto;
}

#section2-leistungen img,
#section3-leistungen img{
    border-radius: 30px;
}

.smallimg img{
    width: 70%;
    aspect-ratio: 1;
}

#section2-leistungen .center{
    place-items: center;
}

.hero-leistungen{
    background-image: url(images/leistungen-hero.JPG);
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: top center;
}

.technik h1,
.technik p,
.center h1,
.center p{
    text-align: center;
}

.technik p{
    padding: 10px 0 20px 0;
}

.technik .flex{
    flex-direction: column;
    align-items: center;
}

.technik-background{
    background-image: url(images/technik-hero.jpg);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100%;
}

#section-technik li span,
#section2-technik li span,
#section3-technik li span{
    color: var(--cl-primary-900);
}

#section-technik li,
#section2-technik li,
#section3-technik li{
    list-style: var(--cl-primary-900);
    padding-bottom: 20px;
}

#section-technik img,
#section2-technik img,
#section3-technik img{
    border-radius: 20px;
}

#slid-container {
  overflow: hidden; /* Versteckt alles außerhalb des Rahmens */
  width: 100%;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.slid {
  display: flex; /* Flexbox ist einfacher für endlose Reihen */
  gap: 16px;
  width: max-content; /* Verhindert das Umbrechen der Karten */
    
  /* Die Animation: Name, Dauer, Kurve, Wiederholung */
  animation: scroll-left 20s linear infinite alternate-reverse;
}

@keyframes scroll-left {
  0% {
    transform: translateX(2vw);
  }
  100% {
    /* Bewegt den Inhalt um die Hälfte seiner Breite nach links */
    transform: translateX(-28vw);
  }
}

.slid:hover{
  animation-play-state: paused;
}


.card-portfolio img {
  max-width: 50vw;
    min-width: 15vw;
  aspect-ratio: 1/1;
  object-fit: cover;
    border-radius: 30px;
}

#section3-leistungen {
  padding: 4rem 2rem;
  background-color: #000;
  color: #fff;
}

.portfolio-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.portfolio-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.portfolio-item.reverse {
  grid-template-areas: "image text";
}
.portfolio-item:not(.reverse) {
  grid-template-areas: "text image";
}
.portfolio-text {
  grid-area: text;
}
.portfolio-image {
  grid-area: image;
}
.portfolio-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
  display: block;
}

.portfolio-text p {
  line-height: 1.6;
}

.bold{
    font-size: 4vw;
    font-weight: 800;
}

.bold2{
    font-size: 10vw;
    font-weight: 800;
}

.agb .flex{
    flex-direction: column;
}

.agb span{
    font-size: xx-large;
    font-weight: 500;
    color: var(--cl-primary-900);
}

.agb p{
    font-size: 16px;
}

.agb .grid{
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

@media (max-width: 564px) {
  .portfolio-item {
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  .portfolio-text {
    display: flex;
    flex-direction: column;
  }

  .portfolio-text h4,
  .portfolio-text h5 {
    order: 1;
    margin-bottom: 1rem;
  }

  .portfolio-image {
    order: 2;
    margin-bottom: 1rem;
  }

  .portfolio-text p {
    order: 3;
  }

  .portfolio-image img {
    max-width: 90%;
    height: auto;
    margin-inline: auto;
  }
}


@media screen and (min-width: 650px){
    /**.logo{ 
        height: 80px;
    }
    
    .col-2{
        gap: 20px;
    }
    
    nav button{
        display: none;
    }
    
    #menu{
        all: unset;    
    }
    
    #menu ul{ 
        list-style: none;
        display: flex;
        gap:10px
    }**/
    
    #section3-leistungen .grid {
    grid-template-columns: 1fr; /* Nur 1 Spalte auf Tablets / Mobile */
  }
  #section3-leistungen h4 {
    text-align: center;
  }

}



@media screen and (min-width: 1024px){
   
    .logo{
        max-width: 15rem;
        height: unset;
    }
    
    .col-2{
        gap: 20px;
    }
    
    nav button{
        display: none;
    }
    
    #nav{
        max-width: unset;
        display: flex;
        background-color: #000000;
    }
    
    #menu{
        all: unset;    
        display: flex;
        gap: 20px;
        list-style: none;
    }
    
    .home-page{
        background-image: none;
        margin: unset;
        margin-left: 50px;
    }
    
    .home-page p{
        text-align: right;
        padding-top: calc(30vw - 5vw);
        padding-bottom: calc(10vw - 5vw);
        hyphens: none;
    }
    
    .home-page .flexi{
        display: flex;
        justify-content: end;
    }
    
    
    
    .headerimg{
        background-image: url(images/Tarnmuster.svg);
        background-repeat: no-repeat;
        background-size: 100%;
        background-position: center -8vw;
    
    }
    
    #clip{
        width: 100vw;
        top: calc(18rem - 10vw);
        left: 5vw;
    }
    
    .btn24{
        width: 15rem;
        margin-top: 3rem;
    }
    
    #section-history {
        background-color: #191919;
    }
    
    #section-history .flex{
        justify-content: center;
    }
    
    #section-history .grid{
        grid-template-columns: 1fr 1fr;
    }
    
    .ani1 { opacity: 0; transform: translateX(-200px); transition: opacity 700ms ease, transform 700ms ease; }
    .ani2 { opacity: 0; transform: translateX(200px);  transition: opacity 700ms ease, transform 700ms ease; }
    .ani1.in, .ani2.in { opacity: 1; transform: translateX(0); }
    
.grid img {
    grid-column: 1;
}
.grid p {
    grid-column: 2;
}

.grid img:nth-child(1) { grid-column: 1; grid-row: 1; }
.grid p:nth-child(2)   { grid-column: 2; grid-row: 1; }

.grid img:nth-child(3) { grid-column: 2; grid-row: 2; }
.grid p:nth-child(4)   { grid-column: 1; grid-row: 2; }

.grid img:nth-child(5) { grid-column: 1; grid-row: 3; }
.grid p:nth-child(6)   { grid-column: 2; grid-row: 3; }

.grid img:nth-child(7) { grid-column: 2; grid-row: 4; }
.grid p:nth-child(8)   { grid-column: 1; grid-row: 4; }

.grid img:nth-child(9)  { grid-column: 1; grid-row: 5; }
.grid p:nth-child(10)   { grid-column: 2; grid-row: 5; }

    
        footer#contact {
        padding: 0;
    }

    footer#contact .flex-footer {
        display: grid;
        gap: 0 1rem;
        max-width: 1180px;
        margin: 0 auto;
        padding: 0 10px;
        text-align: left;
        align-items: start;
    }

    /* Spalte 1: Kontakt */
    footer#contact .flex-footer .item:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }

    /* Spalte 2: Schutzfolien + Öffnungszeiten */
    footer#con tact .flex-footer .item:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }

    /* Spalte 3: Follow us + Logos */
    footer#contact .flex-footer .item:nth-child(3) {
        grid-column: 3;
        grid-row: 1;
    }

    /* Impressum/Datenschutz/AGB – unter Spalte 3 */
    footer#con tact .flex-footer .item:nth-child(4) {
        grid-column: 3;
        grid-row: 2;
        text-align: right;
    }

    /* Copyright – unter Spalte 1 oder 2 */
    footer#contact .flex-footer .item:nth-child(5) {
        grid-column: 1 / 3;
        grid-row: 2;
    }

    /* ft-grid: Social Icons + Logos in 3×2 Raster */
    footer#contact .ft-grid {
        display: grid;
        gap: 2rem;
        place-items: center;
        justify-content: start;
        margin-top: 0.5rem;
    }

    footer#contact .ft-grid img {
        object-fit: contain;
    }

    /* Links im Footer */
    footer#contact .item a {
        color: #ffffff;
        font-size: 1.2rem;
    }

    footer#contact .item a:hover {
        color: var(--cl-primary-900);
        transition: color 200ms ease;
    }

    footer#contact .item ul {
        margin-top: 0.5rem;
    }

    footer#contact .item li {
        padding: 6px 0;
    }

    /* Impressum // Datenschutz // AGB */
    footer#contact .flex-footer .item:nth-child(4) a {
        text-decoration: none;
        font-size: 0.85rem;
        color: #ffffff;
    }

    footer#contact .flex-footer .item:nth-child(4) a:hover {
        color: var(--cl-primary-900);
    }

    /* Copyright klein & dezent */
    footer#contact .flex-footer .item:nth-child(5) p {
        font-size: 0.8rem;
        color: #ffffff;
        margin: 0;
    }

    footer#contact .flex-footer .item:nth-child(5) h6 {
        margin-bottom: 0.25rem;
    }

    /* address-Tag normalisieren */
    footer#contact address {
        font-style: normal;
        line-height: 1.6;
        color: #ccc;
        font-size: 1.50rem;
        margin-bottom: 3rem;
    }
    
    footer h5{
        font-size: 1.5rem;
    }
    
    footer{
    background-color: #000000;
    background-image: url(images/Tarnmuster-footer.svg);
    background-repeat: no-repeat;
    background-position: left -13vw;
    background-size: 100%;
}
    
    .hero-leistungen {
        display: grid;
        grid-template-columns: 1fr 1fr;
        background-image: none;
        max-width: 1180px;
        padding: 0 10px;
        margin: 50px auto;
        gap: 20px;
    }
    
    .btn24{
        margin-top: 20px;
    }
    
    .center{
        display: flex;
        flex-direction: column;
    }
    
    .center h1,
    .center p{
        text-align: left;
        margin: 0;
        padding: 0;
    }
    
    .hero-leistungen .center {
        place-items: unset;
    }
    
    .bg-leistungen{
        background-image: url(images/leistungen-hero.JPG);
        background-repeat: no-repeat;
        background-position: top center;
        background-size: 100%;
        background-attachment: fixed;
    }
    
    .img-col {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
}

    .img-col > img:first-child {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
}

    .img-col-gap {
    display: grid;
    gap: 20px;
    grid-template-rows: 1fr 1fr;
}

    .img-col-gap img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
}
    
    
    #section-card .flex{
        justify-content: center;
    }
    
    /* Titel zentriert über allem */
    #section2-leistungen .flex {
        justify-content: center;
        margin-bottom: 0;
    }

    /* 2 Spalten: linke .grid + rechte .smallimg nebeneinander */
    #section2-leistungen {
        display: grid;
        grid-template-columns: 1fr;
        max-width: 1180px;
        margin: 0 auto;
        padding: 40px 10px;
    }

    /* Die zwei .grid Divs als 2-Spalten-Layout */
    #section2-leistungen .grid:not(.smallimg),
    #section2-leistungen .grid.smallimg {
        max-width: 1180px;
        margin: 0 auto;
        width: 100%;
    }

    /* Inneres Layout: großes Bild + Text links, Karten rechts */
    #section2-leistungen {
        display: flex;
        flex-direction: column;
    }

    /* Wrapper für die zwei Grids nebeneinander */
    #section2-leistungen .grid:not(.smallimg) {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: center;
    }

    /* Linker Text */
    #section2-leistungen .grid:not(.smallimg) p {
        margin: 0;
    }

    /* Rechte Spalte: .smallimg als Container der 3 Karten */
    #section2-leistungen .grid.smallimg {
        display: flex;
        flex-direction: column;
        gap: 24px;
        margin-top: 0;
    }

    /* Die section selbst als 2-Spalten-Grid für .grid und .smallimg */
    #section2-leistungen {
        display: grid;
        grid-template-areas:
            "title title"
            "main  cards";
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        max-width: 1180px;
        margin: 0 auto;
        padding: 40px 10px;
        align-items: center;
    }

    #section2-leistungen .flex {
        grid-area: title;
    }

    #section2-leistungen .grid:not(.smallimg) {
        grid-area: main;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    #section2-leistungen .grid.smallimg {
        grid-area: cards;
        display: flex;
        flex-direction: column;
        gap: 60px;
    }

    /* Jede Karte: Bild links, Titel + Text rechts */
    #section2-leistungen .smallimg .center {
        display: grid;
        grid-template-columns: 110px 1fr;
        grid-template-rows: auto auto;
        column-gap: 20px;
        place-items: unset;
    }

    #section2-leistungen .smallimg .center img {
        grid-column: 1;
        grid-row: 1 / 3;
        width: 100%;
        aspect-ratio: 1;
        object-fit: cover;
        border-radius: 12px;
        place-self: center;
    }

    #section2-leistungen .smallimg .center h4 {
        grid-column: 2;
        grid-row: 1;
        margin: 0 0 8px 0;
        text-align: left;
    }

    #section2-leistungen .smallimg .center p {
        grid-column: 2;
        grid-row: 2;
        margin: 0;
        text-align: left;
    }
    
    #section2-leistungen p{
        font-size: 16px;
    }
    
    .technik .flex h1{
        max-width: 17ch;
        text-align: left;
        margin-bottom: 0;
        padding-bottom: 10px;
    }
    
    .technik .flex p{
        max-width: 50ch;
        text-align: left;
    }
    
    .technik .flex{
        align-items: unset;
        max-width: unset;
    }
    
    .technik{
        padding-left: 40px;
    }
    
    #section-technik {
  padding: 5rem 6vw;
}
 
    
    
    
    #section-technik .grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      grid-template-rows: auto 1fr;
      gap: 2.5rem;
      align-items: start;
    }

    #section-technik .grid h2 {
      grid-column: 1 / -1;
    }

    #section-technik .grid img {
      grid-column: 2;
      grid-row: 2;
      width: 100%;
      aspect-ratio: 1 / 1;
      object-fit: cover;
    }

    #section-technik .grid ul {
      grid-column: 1;
      grid-row: 2;
      display: flex;
      flex-direction: column;
      gap: 1.8rem;
    }

    /* =============================================
       SECTION 2 — Präzision am Objekt
       ============================================= */

    #section2-technik {
      padding: 5rem 6vw;
    }

    #section2-technik .grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      grid-template-rows: auto 1fr;
      gap: 2.5rem;
      align-items: start;
    }

    #section2-technik .grid h2 {
      grid-column: 1 / -1;
    }

    #section2-technik .grid h4{
        margin: 2rem 0 1rem 0;
    }
    
    #section2-technik .grid p{
        font-size: 16px;
        margin: 0;
        padding: 0;
    }
    
    #section2-technik .grid img {
      grid-column: 1;
      grid-row: 2;
      width: 100%;
      aspect-ratio: 1 / 1;
      object-fit: cover;
    }

    #section2-technik .grid ul {
      grid-column: 2;
      grid-row: 2;
      display: grid;
      margin: auto 0;
    }

    #section2-technik .grid .m-unset{
        margin-top: 0;
    }
    
    
    /* =============================================
       SECTION 3 — Wirkung & Technik
       ============================================= */

    #section3-technik {
      padding: 5rem 6vw;
    }

    #section3-technik .grid {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 2.5rem;
      align-items: center;
    }

    #section3-technik .grid ul {
      display: flex;
      flex-direction: column;
      gap: 1.8rem;
    }
 
    .portfolio-image img{
        max-width: 500px;
        place-self: center;
    }
    
    .portfolio-text p{
        text-align: left;
    }
    
    #section3-leistungen h4 {
        text-align: left;
    }
    
    .ani3 { opacity: 0; transform: translateY(200px);  transition: opacity 700ms ease, transform 700ms ease; }
    .ani4 { opacity: 0; transform: translateY(-400px); transition: opacity 700ms ease, transform 700ms ease; }
    .ani3.in, .ani4.in { opacity: 1; transform: translateY(0); }  
    
    .border {
    position: relative;
    padding-right: 20px;
    margin-right: 20px;
}

    .border::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;               /* Startpunkt: Mitte */
        transform: translateY(-50%);
        height: 100%;            /* Länge der Linie – anpassen! */
        width: 5px;
        background-color: rgba(142, 142, 142, 0.29);
    }
    
    .border-height::after{
        height: 115%;
        top: 55%;
    }
    
}

/* ============================================
   PORTFOLIO PAGE — Slider & Lightbox
============================================ */

.portfolio-background {
    background-image: url(images/portfolio-hero.jpg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center top;
    background-size: cover;
}

/* Slider Sektionen */
.slider-section {
    padding: 40px 0;
    overflow: hidden;
}

.slider-section .flex {
    margin-bottom: 20px;
}

.slider-track-wrapper {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.slider-track {
    display: flex;
    gap: 16px;
    width: max-content;
    will-change: transform;
}

.slider-track.ltr {
    animation: slide-ltr 30s linear infinite;
}

.slider-track.rtl {
    animation: slide-rtl 30s linear infinite;
}

.slider-track:hover {
    animation-play-state: paused;
}

@keyframes slide-ltr {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes slide-rtl {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Slider Karte */
.slide-card {
    flex-shrink: 0;
    width: 280px;
    cursor: pointer;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: transform 300ms ease, box-shadow 300ms ease;
}

@media (min-width: 768px) {
    .slide-card {
        width: 380px;
    }
}

.slide-card:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 32px rgba(230, 0, 100, 0.25);
}

.slide-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    pointer-events: none;
}

.slide-card .slide-label {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    border-radius: 20px;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    opacity: 0;
    transition: opacity 300ms ease;
}

.slide-card:hover .slide-label {
    opacity: 1;
}

.slide-label span {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Trennlinie zwischen Sektionen */
.section-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin: 0 10px;
}

/* Lightbox */
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
}

#lightbox.open {
    opacity: 1;
    pointer-events: all;
}

#lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 0 60px rgba(230, 0, 100, 0.3);
    transform: scale(0.9);
    transition: transform 300ms ease;
    display: block;
}

#lightbox.open img {
    transform: scale(1);
}

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    opacity: 0.8;
    transition: opacity 200ms, transform 200ms;
}

#lightbox-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

#lightbox-caption {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 2rem;
    padding: 12px 18px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 200ms;
    line-height: 1;
}

.lb-nav:hover {
    background: rgba(230, 0, 100, 0.5);
}

#lb-prev { left: 16px; }
#lb-next { right: 16px; }








/* ============================================
   REVEAL ON SCROLL — alle Bildschirmgrößen
   (wie sascha-riekert.de)
============================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-delay="1"] { transition-delay: 100ms; }
.reveal[data-delay="2"] { transition-delay: 200ms; }
.reveal[data-delay="3"] { transition-delay: 300ms; }
.reveal[data-delay="4"] { transition-delay: 400ms; }

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
