:root {
    --header-height: 70px;
    --mainfont: 'Inter';
    --fade: 700ms;
    --maincolor: #333;
    --dark: #000;
    --headline-size: 60px;
    --headline-lh: 70px;
    --bigweight: 800;
    --subheadline-size: 45px;
    --subheadline-lh: 55px;
    --weight: 600;

    --fg:#fff;
    --muted:rgba(255,255,255,1);
    --err:#ff5a5a;
    --ok:#41d3a2;
    --line:rgba(255,255,255,1);
    --line-focus:#fff;
    --gap:18px;
}

body {
    font-family: var(--mainfont);
    font-size: 16px;
    line-height: 25px;
    background: #000;
    color: #fff;
}

.content-width {
    margin:0 auto;
    width: calc(100% - 80px);

}


.contentboxwrapper {
    display: flex;
    column-gap: 75px;
}

h1 {
    font-size: 65px;
    line-height: 85px;
    text-align: center;
    text-transform: uppercase;
    font-family: var(--mainfont);

}

h2 {
    font-size: var(--headline-size);
    line-height: var(--headline-lh);
    font-weight: var(--bigweight);
    text-transform: uppercase;
}


header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.logo img {
    height: 40px;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    padding: 8px;
    display: inline-block;
}

nav a:link {
    text-decoration: none;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    min-width: 200px;
    z-index: 10;
}

.dropdown-menu a {
    display: block;
    padding: 10px;
    color: #fff;
}

.dropdown:focus-within .dropdown-menu,
.dropdown:hover .dropdown-menu {
    display: block;
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.burger div {
    width: 25px;
    height: 3px;
    background: #fff;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    padding: 40px 20px;
    flex-direction: column;
    gap: 20px;
    z-index: 999;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
}



main {
   /* margin-top: var(--header-height); */
   /* padding: 20px; */
}

.hero-slider{position:relative;height:100vh;min-height:520px;overflow:hidden;isolation:isolate}
/* BACKGROUND slider */
.slides{
    position:absolute; inset:0;
    display:flex; height:100%;
    transform: translateX(calc(-100% * var(--i, 0)));
    transition: transform .7s ease;
}
.slide{
    flex:0 0 100%; height:100%;
    background: var(--bg) center/cover no-repeat;
}


.hero-image {position:relative;height:auto;min-height:100vh;overflow:hidden;isolation:isolate}
.hero-image img {
    position:absolute; inset:0;
    display:flex; height:100%;
    transform: translateX(calc(-100% * var(--i, 0)));
    transition: transform .7s ease;
    z-index: -1;
    object-fit: cover;
    width: 100%;
}

.hero-image:after {
    content: "";
    bottom: 0;
    height: 200px;
    width: 100%;
    position: absolute;
    background: #000;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
}

/* GLASS overlay */
.glass-overlay{
    position:absolute; inset:0;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events:none;
}
/* CONTENT overlay (statisch) */
.hero-content{
    position:absolute; /* vorher: relative */
    inset:0; /* füllt den kompletten Slider aus */
    z-index:1;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center; /* vertikal zentriert */
    text-align:center;
    padding: clamp(16px,4vw,48px);
    color:#fff;
    max-width: 65%;
    margin: 0 auto;
}

.hero-content.sec {
    position: relative;
    max-width: 65%;
    inset:0; /* füllt den kompletten Slider aus */
    z-index:1;
    padding: 175px 0 120px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center; /* vertikal zentriert */
    text-align:center;
}

.hero-content h1{ font-size: 60px; line-height: 70px; margin:0 0 90px; text-transform: uppercase; font-weight: 800; font-style: italic;}
.hero-content .subheadline {font-size: 45px; line-height: 50px; text-transform: uppercase; font-weight: 800; font-style: italic; margin:0}


.hero-content.sec h1 {margin-bottom: 35px;}
.hero-content.sec .subheadline {margin-bottom: 50px;}
.nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,00,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0,0,0,.3); width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: normal; cursor: pointer; font-size: 45px; color:#fff;
    line-height: 35px;
    z-index: 5;
}
.nav:hover { background: rgba(0,0,0,.75); }
.nav.prev { left: 14px; } .nav.next { right: 14px; }

.dots {
    position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35);
    z-index: 5;
}
.dots button[role="tab"] { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.35); cursor: pointer; }
.dots button[aria-selected="true"] { background: #000; }

.pause {
    margin-left: -13px; border: 0; cursor: pointer; height: 26px; min-width: 26px; padding: 0 8px;
    border-radius: 999px; background: rgba(0,0,0,.75); color: #fff; font-size: 14px; line-height: 26px;
    position: absolute;
    z-index: 3;
    bottom: 50px;
    left: 50%;
}
.pause[aria-pressed="true"] { background: #111; }

.next-section {
    display: inline-block;
    margin-top: 40px;
    width: 40px;
    color: #fff;
    z-index: 2;
    position: absolute;
    bottom: 15%;
    left: 50%;
    margin-left: -20px;
    animation: fade_move_down 3s ease-in-out infinite;
}

@keyframes fade_move_down {
    0% {opacity: 0; transform: translateY(-20px);}
    50% {opacity: 1; transform: translateY(0);}
    100% {opacity: 0; transform: translateY(20px);}
}



/* --- Effekt 1: eingekreistes Wort (handgezeichnet + animiert) --- */
.hl-circle{
    position:relative; display:inline-block; padding:0 .2em;
}
.circle-svg{
    position:absolute; inset:50% auto auto 50%;
    transform:translate(-50%,-50%) rotate(-2.5deg);
    width: 110%; height: 175px; pointer-events:none;
}

.circle-svg.sec {
    transform:translate(-50%,-50%) rotate(-9deg);
}

.circle-svg ellipse {
    fill:transparent;
    stroke:#fff;              /* warme Marker-Farbe */
    stroke-width:2;
    stroke-linecap:square;
    filter:drop-shadow(0 1px 0 rgba(0,0,0,.15));
    /* „Zeichnen“-Animation */
    stroke-dasharray:420;
    stroke-dashoffset:450;
    animation:draw 1200ms ease-out forwards 150ms;
}
@keyframes draw{to{stroke-dashoffset:0}}

/* --- Effekt 2: schräg unterstrichen wie mit Stift --- */
.hl-underline{
    position:relative; display:inline-block;
}
.hl-underline::after {
    content:""; position:absolute; left:-6%; right:-4%;
    height:.22em; bottom:-.12em;
    background:linear-gradient(90deg,#fff,#fff 55%,#fff);
    transform:rotate(-4deg) translateY(0);
    border-radius:2px 2px 2px 2px;
    box-shadow:0 1px 0 rgba(0,0,0,.18);
    /* handgezeichnete Kante per mask */
    -webkit-mask:
            radial-gradient(8px 8px at 6px 50%, #000 98%, transparent 101%) left center / 12px 100% repeat-x;
    mask:
            radial-gradient(8px 8px at 6px 50%, #000 98%, transparent 101%) left center / 12px 100% repeat-x;

    /* Draw-in Animation: von kurz -> voll */
    transform-origin:left center;
    animation:underline-in 700ms cubic-bezier(.2,.7,.2,1) forwards;
    scale:0 1; /* startet „ungeschrieben“ */
}

.hl-underline.sec::after,
.hl-underline.third::after {
    display: none;
}
@keyframes underline-in{to{scale:1 1}}


.hl-underline.sec ,
.hl-underline.third {
    position: relative;
    display: inline-flex; /* Text + SVG nebeneinander, gleiche Breite */
    flex-direction: column;
    align-items: center;
}

.hl-underline.third .hl-text,
.hl-underline.sec .hl-text {
    position: relative;
    z-index: 1;
}

.hl-underline.sec .underline ,
.hl-underline.third .underline {
    position: absolute;
    bottom: -0.25em;
    width: 100%; /* passt sich an Textbreite an */
    height: 1em;
    overflow: visible;
}

.hl-underline.sec.bn .underline {
    bottom: 0em;
}

.hl-underline.sec path {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: underline-draw 0.7s cubic-bezier(.2,.7,.2,1) forwards;
}

.hl-underline.third .underline {
    position: absolute;
    bottom: -0.25em;
    width: 100%; /* passt sich an Textbreite an */
    height: 1em;
    overflow: visible;
}
.hl-underline.third path {
    stroke-dasharray: 660;
    stroke-dashoffset: 660;
    animation: underline-draw 0.7s cubic-bezier(.2,.7,.2,1) forwards;
}

@keyframes underline-draw {
    to {
        stroke-dashoffset: 0;
    }
}


/* prefers-reduced-motion respektieren */
@media (prefers-reduced-motion:reduce){
    .circle-svg ellipse{animation:none;stroke-dashoffset:0}
    .hl-underline::after{animation:none;scale:1 1}
}



/* Spirits */

#spirits {
    background: #000;
}

#spirits .wrap {
    margin:0 auto;
    width: 75%;
    padding: 85px 0;
    color: #fff;
}

#spirits .capwrap {
    margin: 65px auto 75px;
    width: 95%;
    position: relative;
}

#spirit-title {
    font-size: 60px;
    line-height: 70px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    width: 100%;
    display: inline-block;
}

.textblock-left {
    width: 100%;
    margin-bottom: 45px;

}

.textblock-right {
    width: 100%;
    margin-bottom: 45px;
}

.cap {
    width: 100%;
    font-size: 45px;
    line-height: 55px;
    font-weight: 600;
    text-transform: uppercase;
}

.textblock-left .cap {

    text-align: left;
}
.textblock-right .cap {

    text-align: right;
}


.detailinfos .content-width {
        margin:0 auto;
        width: 75%;
        padding: 85px 0;
        color: #fff;
}


.detailinfos .capwrap .textblock-left p,
.detailinfos .capwrap .textblock-right p {
    margin-top: 50px;
    width: 65%;
}

.detailinfos .capwrap .textblock-right p {
    text-align: right;
    margin-left: calc(100% - 65%);
}


    /* Handgezeichnete Effekte */
.hl-underline{ position:relative; display:inline-block; }
.hl-underline::after{
    content: "";
    position: absolute;
    left: -6%;
    right: -2%;
    bottom: 2px;
    height: 8px;
    background: linear-gradient(90deg,#fff,#fff 60%,#f8f8f8);
    transform: rotate(2deg);
    border-radius: 0px;
    box-shadow: 0 1px 0 rgba(0,0,0,.25);
    transform-origin: left center;
    scale: 0 1;
    animation: underlineIn 700ms cubic-bezier(.2,.7,.2,1) forwards 150ms;
    -webkit-mask: radial-gradient(8px 8px at 6px 50%, #000 98%, transparent 101%) left/12px 100% repeat-x;
    mask: radial-gradient(8px 8px at 6px 50%, #000 98%, transparent 101%) left/12px 100% repeat-x;
}

.hl-underline.sec::after{

    transform: rotate(-2deg);

}


@keyframes underlineIn { to { scale: 1 1 } }

.hl-strike{ position:relative; }
.hl-strike::after{
    content:""; position:absolute; left:0; right:0; top:50%;
    height:.14em; background:#fff; opacity:.95;
    transform: translateY(-50%) scaleX(0); transform-origin:left;
    animation: strike .5s ease-out forwards 150ms;
}
@keyframes strike{ to { transform: translateY(-50%) scaleX(1); } }

/* Responsive – auf kleineren Screens mittig und gestapelt */
@media (max-width: 820px){
    .block{ justify-self:center; width:min(520px,92vw); }
    .block--side .cap.cap--left{ position: absolute; right:50%; top:0; transform: translate(50%,-110%); text-align:center; }
}

@media (prefers-reduced-motion: reduce){
    .fig img{ transition:none; transform:none }
    .hl-underline::after, .hl-strike::after{ animation:none }
}


/* ENDE LEISTUNGEN HOME */


#leistung {
    margin-top: 180px;
}
#leistung-title {
    font-size: var(--headline-size);
    line-height: var(--headline-lh);

    font-weight: var(--bigweight);
    margin-bottom: 35px;
}
.l__info a, .l__info a:link {
    color: #fff;
    text-align: center;
    display: block;
    text-decoration: none;
}

.l__info img {
    margin: 0 auto;
    text-align: center;
}

.l__info h3 {
    text-transform: uppercase;
    text-align: center;
    margin-top: 15px;
    font-size: 40px;
    line-height: 55px;
    text-decoration: none;

    white-space: nowrap;
}
.l__info h3.typing::after{
    content:"";
    position:absolute;
    right:-2px; top:50%;
    transform: translateY(-50%);
    width:1px; height:1em;
    background: currentColor;
    animation: caretBlink 1s steps(1,end) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }



.hero-content .wrapperinfos {
    display: flex;
    flex-wrap: wrap;
    margin: 50px 0;
    justify-content: center;
    gap: 50px;
    flex-grow: 1;
}

.hero-content .wrapperinfos .infobox {
    flex: 0 1 calc(50% - 25px);
    /* 50% minus halber Gap-Wert, damit 2 pro Reihe passen */
    box-sizing: border-box;
    text-align: left;
}

.hero-content .wrapperinfos .infobox:last-child:nth-child(odd) {
    margin-left: auto;
    margin-right: auto;
}

.hero-content .wrapperinfos .infobox h2 {
    font-size: 35px;
    line-height: 40px;
    font-weight: 700;
}


#details {
    display: inline-block;
    width: 100%;
}
#details .textbox {
    margin-left: 80px;
    float: left;
    width: 60%;
    position: relative;
}

#details h2 {
    margin-bottom: 25px;
}

#details .textbox p {
    text-transform: uppercase;
    font-size: 40px;
    line-height: 55px;
    font-weight: 700;
}


#arbeit-ziel {
    margin-top: 150px;
    display: inline-block;
}

.arbeit h2,
.ziel h2 {
    margin-bottom: 25px;
}

.arbeit {
    margin-left: 80px;
    float: left;
    width: 60%;
    position: relative;
}



.ziel:before {
    content: "";
    background: url('../images/arrow-big.png');

    width: 175px;
    height: 365px;
    position: absolute;
    top: -325px;
    left: 50%;
    background-size: contain;
    background-repeat: no-repeat;
}

.ziel {
    margin-right: 80px;
    float: right;
    width: 45%;
    text-align: center;
    position: relative;
}

.arbeit p,
.ziel p {
    text-transform: uppercase;
    font-size: 40px;
    line-height: 55px;
    font-weight: 700;


}


@media (prefers-reduced-motion: reduce) {
    .txtfaerben { color: #fff; } /* barrierefrei: direkt voll sichtbar */
}

p.txtfaerben  {
    color: rgba(255, 255, 255, 0.3); /* leicht transparent */
    transition: color 0.3s ease;
}


#pagenavigation {
    margin: 100px 0;
    width: 100%;

}


#pagenavigation .contentboxwrapper {
    position: relative;
    display: flex;
}
#pagenavigation .contentboxwrapper .textbox:first-child {
    text-align: left;
}
#pagenavigation .contentboxwrapper .textbox:last-child {
    text-align: right;
}


#pagenavigation .contentboxwrapper .textbox a {
    font-size: 25px;
    line-height: 35px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 25px;
    display: block;
    color: #fff;
}

#pagenavigation .contentboxwrapper .textbox a .hl-circle {
    padding: 0 35px;
}

.hl-circle.link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4em; /* Abstand zwischen Text und Pfeil */
}

.hl-circle.link .circle-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110%;
    height: auto;
    transform: translate(-50%, -50%);
    pointer-events: none;
    overflow: visible; /* verhindert Abschneiden */
}

.hl-circle.link .circle-svg ellipse {
    stroke: currentColor;
    stroke-width: 1;
    fill: transparent;
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: draw 1200ms ease-out forwards 150ms;
}

.hl-circle.link .arrow-icon {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}


#kunden {
    background: url('../images/kundenbackground.jpg');
    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 350px;
    background-position: center;
    padding: 50px 0;
    margin-top: 75px;
}

#kunden h2 {
    text-align: center;
    position: relative;
    z-index: 3;

}


#health-liste {
    background: url('../images/healthcare-listback.jpg');
    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 350px;
    background-position: center;
    padding: 50px 0;
    margin-top: 75px;
}

#health-liste h2 {
    text-align: center;
    position: relative;
    z-index: 3;

}

/* Farben an euer Theme anlehnen */
.silk-timeline{
    --line:#333;
    --accent:#fff;
    --marker-bg:#000;
    --card-bg:#0a0a0a;
    --muted:rgba(255,255,255,.7);

    position:relative;
    max-width:960px;
    margin:60px auto 0;
    padding-left:52px;
    counter-reset: step;
}
.silk-timeline::before{
    content:"";
    position:absolute; top:0; bottom:0; left:22px;
    width:2px; background: linear-gradient(#444,#222);
}

/* ITEM */
.tl-item{
    position:relative;
    margin:0 0 28px 0;
    border-radius:12px;
    background: transparent;
    outline: none;
    opacity:0; transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}
.tl-item.is-in{ opacity:1; transform:none; }

/* SUMMARY (Header) */
.tl-summary{
    list-style:none;
    cursor:pointer;
    display:grid;
    grid-template-columns: 28px 1fr auto;
    align-items:center;
    gap:14px;
    padding:14px 16px;
    border-radius:12px;
    position:relative;
    color:#fff;
    background: rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.08);
}
.tl-summary::-webkit-details-marker{ display:none; }

/* Marker + Nummerierung */
.tl-marker{
    position:relative;
    width:28px; height:28px; border-radius:50%;
    background: var(--marker-bg);
    border:2px solid var(--accent);
    box-shadow: 0 0 0 4px rgba(255,255,255,.05);
}
.tl-summary::after{
    /* Nummer neben Marker */
    content: counter(step, decimal-leading-zero);
    counter-increment: step;
    position:absolute;
    left:-52px; top:14px;
    font: 700 12px/1.2 system-ui, sans-serif;
    color: var(--muted);
}

/* Titel */
.tl-summary h3{
    margin:0; font: 800 22px/1.2 var(--mainfont, Inter), system-ui, sans-serif;
    text-transform: uppercase;
}

/* Panel (animierte Höhe) */
.tl-panel{
    overflow:hidden;
    max-height: 0;
    transition: max-height .5s cubic-bezier(.2,.7,.2,1);
    will-change: max-height;
    background: var(--card-bg);
    border:1px solid rgba(255,255,255,.08);
    border-top: none;
    border-radius: 0 0 12px 12px;
}

/* geöffnet */
.tl-item[open] .tl-panel{ border-top:1px solid rgba(255,255,255,.08); }

/* Liste */
.tl-ul{ padding:14px 18px 18px 18px; margin:0; }
.tl-ul li{
    list-style:none;
    padding:10px 2px;
    border-bottom:1px dashed rgba(255,255,255,.12);
    opacity:0; transform: translateX(8px);
    animation: tl-in .45s ease forwards;
    animation-delay: calc(var(--i, 0) * 80ms);
}
.tl-ul li:last-child{ border-bottom:0; }

/* nur animieren, wenn geöffnet */
.tl-item:not([open]) .tl-ul li{ animation: none; opacity:0; transform:translateX(8px); }

@keyframes tl-in{
    to { opacity:1; transform:none; }
}

/* Hover/Focus-Effekt */
.tl-summary:focus-visible, .tl-summary:hover{
    border-color: rgba(255,255,255,.25);
    box-shadow: 0 0 0 3px rgba(255,255,255,.06) inset;
}

/* Motion-Reduce */
@media (prefers-reduced-motion:reduce){
    .tl-item{ opacity:1; transform:none; }
    .tl-panel{ transition:none; }
    .tl-ul li{ animation:none; opacity:1; transform:none; }
}




#referenzen {
    padding: 85px 0;
}

#referenzen .textbox {
    text-align: center;
}
#referenzen .textbox a {
    font-size: 40px;
    line-height: 55px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 25px;
    display: block;
    color: #fff;
}

#referenzen .textbox a .hl-circle {
    padding: 0 35px;
}

#referenzenhome {
    background: url('../images/referenzenback.jpg');
    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 350px;
    background-position: center;
    padding: 50px 0;
    margin-top: 75px;

}

#referenzenhome .content-width {
    width: 45%;
    text-align: center;
    padding-bottom: 125px;
    position: relative;
    z-index: 2;
}


/* referenzen masonry */
/* Masonry
.masonry-grid {
    column-count: 1;
    column-gap: 20px;
}
@media (min-width: 640px){ .masonry-grid { column-count: 2; } }
@media (min-width: 1024px){ .masonry-grid { column-count: 3; } }

.grid-item {
    break-inside: avoid;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .3s ease, transform .3s ease;
}


.thumb img, .thumb .video-poster-fallback {
    width: 100%;
    display: block;
}
.thumb-16-9 {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    background: #111;
}
.thumb-16-9 > img, .thumb-16-9 > .video-poster-fallback, .thumb-16-9 > video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.video-thumb .play-icon {
    position: absolute; inset: 0;
    margin: auto; width: 64px; height: 64px;
    display: grid; place-items: center;
    font-size: 34px; line-height: 1;
    color: #fff; background: rgba(0,0,0,.45);
    border-radius: 9999px;
    pointer-events: none;
}
.video-poster-fallback {
    background:
            radial-gradient(60% 60% at 50% 50%, #333 0%, #111 100%);
}
*/
.ref-filter { display: flex; gap: 12px; margin: 0 0 18px; flex-wrap: wrap; }
.ref-filter button {
    border: 1px solid #444; background: transparent; color: #fff;
    padding: 8px 14px; border-radius: 999px; cursor: pointer;
}
.ref-filter button.active { background: #fff; color: #000; }


.pswp-branding-scroll{
    overflow:auto;
    max-height:90vh;
    touch-action: pan-y;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
}


#abschluss {
    background: url('../images/footerback.jpg');
    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 350px;
    background-position: center;
    padding: 50px 0;
    margin-top: 75px;

}

#abschluss .content-width {
    width: 45%;
    text-align: center;
    padding-bottom: 425px;
}

#abschluss h2 {
    color: #000;
    margin-bottom: 10px;
}
#abschluss p {
    color: #000;
    font-size: 40px;
    line-height: 55px;
    text-transform: uppercase;
}
#abschluss .hl-underline::after {
    background: linear-gradient(90deg,#000,#000 60%,#000);
}


footer a, footer a:link {
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
}

footer .lo {
    text-align: center;
}

footer .lo .logo {
    display: inline-block;
}

footer .social {
    text-align: right;
}

footer .social a {
    display: inline-block;
    margin: 0 15px;
}
footer .social a img {
    height: 35px;
}





.headercon {

    margin-top: 120px;
}

/* Grund-Setup */
.marquee{
    --gap: 4rem;             /* Abstand zwischen Wiederholungen */
    --speed-top: 28s;        /* Geschwindigkeit obere Zeile */
    --speed-bottom: 36s;     /* Geschwindigkeit untere Zeile */
    line-height: 1.2;
    display: grid;
    gap: 0.6rem;
}
.marquee-row{
    overflow: hidden;
    white-space: nowrap;
}
.marquee .track{
    display: inline-flex;
    gap: var(--gap);
    will-change: transform;
}
.marquee .track > span{
    flex: 0 0 auto;          /* verhindert Umbruch */
}

/* Animationen (2x identischer Text → -50% reicht) */
@keyframes scroll-left  { from{transform:translateX(0)}    to{transform:translateX(-50%)} }
@keyframes scroll-right { from{transform:translateX(-50%)} to{transform:translateX(0)}     }

.dir-left  .track{ animation: scroll-left  var(--speed-top)   linear infinite; }
.dir-right .track{ animation: scroll-right var(--speed-bottom) linear infinite; }

/* Hover pausiert beide Zeilen */
.marquee:hover .track{ animation-play-state: paused; }

/* Fade an den Rändern für die UNTERE Zeile */
.fade-edges{
    /* maskiert den Inhalt zu transparent an den Seiten */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #fff 10%, #fff 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #fff 10%, #fff 90%, transparent 100%);
}

/* Typo/Optik (optional) */
.marquee{ color:#fff; }
.marquee-row{ font-size: 80px; line-height:90px; font-weight:800; letter-spacing:.02em; text-transform: uppercase;}
.marquee-row.dir-left{ font-size: 120px; line-height:120px; }
.marquee-row.dir-right {
    margin-top: -50px;
    width: 75%;
}

/* Barrierefreiheit: reduziert Bewegung */
@media (prefers-reduced-motion: reduce){
    .marquee .track{ animation: none; transform: none; }
    .fade-edges{ -webkit-mask-image: none; mask-image: none; }
}



.logo-marquee{
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;   /* iOS Momentum */
    touch-action: pan-x;                 /* horizontale Gesten */
    overscroll-behavior-x: contain;
    scrollbar-width: none;               /* Firefox: keine Leiste */
}
.logo-marquee::-webkit-scrollbar{ display:none; } /* WebKit */
/* Track ist so breit wie sein Inhalt */
.logo-track{
    display: inline-flex;                /* wichtig für min-width */
    gap: 2rem;
    min-width: max-content;              /* Breite = Summe der Logos */
    padding: 0 16px;
}

/* ---- MOBILE: echtes Wischen statt Animation ---- */
@media (max-width: 900px) {
    /* Der CONTAINER scrollt horizontal */
    .logo-marquee{
        overflow-x: auto;             /* ← horizontal wischbar */
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch; /* Momentum-Scroll auf iOS */
        touch-action: pan-x;          /* explizit horizontale Gesten */
        overscroll-behavior-x: contain;
        scrollbar-width: none;        /* Firefox: keine Leiste */
    }
    .logo-marquee::-webkit-scrollbar{ display: none; } /* WebKit */

    /* Der TRACK ist so breit wie sein Inhalt → wirklich scrollbar */
    .logo-track{
        animation: none !important;   /* ← Animation AUS auf Mobile */
        transform: none !important;
        display: inline-flex;         /* wichtig: zusammen mit min-width */
        min-width: max-content;       /* Breite = Summe aller Logos */
        white-space: nowrap;
    }

    /* Optional: Snap für niceres Stoppen */
    .logo-marquee{ scroll-snap-type: x proximity; }
    .logo-track .logo{ scroll-snap-align: center; }

    /* Touch-Drag fühlt sich besser an, wenn Bilder nicht „greifen“ */
    .logo-track .logo img{
        pointer-events: none;
        user-select: none;
    }
}


/* Formular */

p.lead{color:var(--muted); margin:0 0 2rem}
form{display:grid; gap:clamp(14px,2.2vw,18px); margin: 120px auto; width: 75%;}
.row{display:grid; gap:var(--gap);}
@media (min-width:720px){ .row.cols-2{ grid-template-columns:1fr 1fr; } }
.field{position:relative; display:flex; flex-direction:column; gap:8px;}
.field label{font-size:14px; color:var(--muted)}
.req{font-size:12px; color:var(--muted); margin-left:6px}
.input, textarea{ background:transparent; color:var(--fg); border:0; border-bottom:1.5px solid var(--line); padding:10px 2px 12px; outline:0; width:100%; }
.input::placeholder, textarea::placeholder{color:rgba(255,255,255,.35)}
.input:focus, textarea:focus{border-bottom-color:var(--line-focus)}
.is-invalid{border-bottom-color:var(--err)!important}
.error-msg{font-size:12px; line-height:1.3; color:var(--err); min-height:1.2em;}
.hint{font-size:12px; color:var(--muted);}
.honeypot{position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden;}
.actions{margin-top:6px}

.btn{appearance:none;text-transform: uppercase; border:0px solid var(--line-focus); background:transparent; color:var(--fg); padding:0px;
    border-radius:999px; cursor:pointer; font-size: 40px; line-height: 55px; font-weight:700;}
.btn:hover{background:rgba(255,255,255,.06)}
.btn:disabled{opacity:.5; cursor:not-allowed}



.valid .input{border-bottom-color:var(--ok)}
/* DSGVO Checkbox */
.checkbox{display:flex; align-items:flex-start; gap:12px}
.checkbox input{margin-top:3px; width:18px; height:18px}
.checkbox a{color:#fff; text-decoration:underline}
/* Captcha Row */
#captcha {background:transparent; color:var(--fg); border:0; border-bottom:1.5px solid var(--line); padding:10px 2px 12px; outline:0; width:100%;}
.captcha-row{display:flex; align-items:center; gap:14px; flex-wrap:wrap}
.captcha-row img{display:block; height:48px; border-radius:6px; background:#111; border:1px solid var(--line)}
.icon-btn{border:1px solid var(--line-focus); background:transparent; color:#fff; padding:8px 12px; border-radius:8px; cursor:pointer}
.icon-btn:hover{background:rgba(255,255,255,.06)}
.field a, .field a:link {
    color: #fff;
}


/* Container */
.logo-marquee{
    --gap: clamp(24px, 4vw, 56px);
    --speed: 40s;           /* Gesamtlaufzeit pro Runde (größer = langsamer) */
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-block: 16px;
}

/* Track (wird per JS verdoppelt) */
.logo-track{
    display: inline-flex;
    align-items: center;
    gap: var(--gap);
    white-space: nowrap;
    will-change: transform;
    animation: marquee var(--speed) linear infinite;
    margin-top: 50px;
}

/* Hover pausiert */
.logo-marquee:hover .logo-track{ animation-play-state: paused; }

/* Logos */
.logo-track .logo{ display: inline-flex; align-items: center; justify-content: center; width: 200px;
    height: 130px;}
.logo-track .logo img{
    height: clamp(10px, 5vw, 90px);
    width: auto;
    display: block;
    filter: grayscale(100%) contrast(90%);
    opacity: .9;
    transition: filter .2s ease, opacity .2s ease, transform .2s ease;
}
.logo-track .logo:hover img{ filter:none; opacity:1; transform: translateY(-2px); }

/* Nahtlose Endlos-Animation:
   Wir schieben den verdoppelten Track um die Hälfte seiner Breite. */
@keyframes marquee{
    from{ transform: translateX(0); }
    to  { transform: translateX(-50%); }
}

/* Motion-Preference respektieren */
@media (prefers-reduced-motion: reduce){
    .logo-track{ animation: none; transform: none; }
}

#defaulthome {

    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 350px;
    background-position: center;
    padding: 50px 0;
    margin-top: 75px;

}

#defaulthome.agentur {
    background: url('../images/agenturtop.jpg');
}

#defaulthome.healthcare {
    background: url('../images/healthcaretop.jpg');
    background-size: cover;
    background-position: center;
}


#defaulthome.healthcare::after {
    content: "";
    bottom: 0;
    height: 200px;
    width: 100%;
    position: absolute;
    background: #000;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
}

#defaulthome .content-width {
    width: 45%;
    text-align: center;
    padding-bottom: 125px;
    position: relative;
    z-index: 2;
}

#defaulthome .subheadline {
    font-size: 45px;
    line-height: 50px;
    text-transform: uppercase;
    font-weight: 800;
    font-style: italic;
    margin: 0;
}

#defaulthome p {
    margin-top: 85px;
}

#defaulthome.healthcare .subheadline {
    margin-top: 50px;
    font-size: 35px;
    line-height: 40px;
    font-weight: 700;
}

#defaulthome.healthcare p {
    font-size: 18px;
    line-height: 24px;
    margin-top: 65px;
}

.team { padding: 80px 0; }
.team-title { text-align:center; text-transform:uppercase; font-weight:800; margin-bottom:32px; }

.team-grid {
    display:grid; gap:20px;
    grid-template-columns: repeat(1, minmax(0,1fr));
    width: 75%;
    margin:0 auto;
}
@media (min-width:640px){ .team-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (min-width:1024px){ .team-grid{ grid-template-columns:repeat(3, minmax(0,1fr)); } }

.member{
    position:relative; aspect-ratio: 4/5; overflow:hidden; border-radius:0px;
    background:#111; cursor:pointer; isolation:isolate;
    /* we use CSS variables for the reveal */
    --mx: 50%; --my: 50%; --r: 0%; /* center + radius */
}

/* Base image (img1) as background layer */
.member::before,
.member::after{
    content:""; position:absolute; inset:0; background-size:cover; background-position:center;
    transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .6s, opacity .4s;
    will-change: transform, filter, opacity, clip-path;
}
.member::before{             /* Bild 1 */
    background-image: var(--img1);
    transform: scale(1.02);
}
.member::after{              /* Bild 2 – per „morph“ freigelegt */
    background-image: var(--img2);
    /* organischer Blob via radial-gradient mask (breit unterstützt) */
    -webkit-mask: radial-gradient(closest-side at var(--mx) var(--my), #000 0 var(--r), transparent calc(var(--r) + 1px));
    mask: radial-gradient(closest-side at var(--mx) var(--my), #000 0 var(--r), transparent calc(var(--r) + 1px));
    transform: scale(1.06);
    filter: saturate(1.05) contrast(1.05);
}

/* On hover/tap we expand radius to reveal image 2 */
.member.is-hover::after{
    --r: 120%;
    transform: scale(1.02);
}
.member.is-hover::before{
    transform: scale(1.00);
    filter: brightness(.9) saturate(.95);
}

/* Name + Role overlay */
.member .meta{
    position:absolute; left:14px; right:14px; bottom:14px; z-index:2;
    background: rgba(0,0,0,.45); backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 14px; padding: 10px 14px; color:#fff;
}
.member .meta .name{ font-weight:800; font-size:18px; line-height:1.2; text-transform: uppercase; }
.member .meta .role{ opacity:.8; font-size:13px; text-transform:uppercase; letter-spacing:.04em; }

/* Subtle lift on hover */
.member.is-hover { transform: translateY(-2px); }
.member{ transition: transform .25s ease; }

/* Reduced motion: just crossfade */
@media (prefers-reduced-motion: reduce){
    .member::after{
        -webkit-mask:none; mask:none; opacity:0; transform:none;
    }
    .member.is-hover::after{ opacity:1; }
}



.textblock-left,
.textblock-right {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.textblock-left.is-visible,
.textblock-right.is-visible {
    opacity: 1;
    transform: translateY(0);
}

#textonly {
    margin-top: 120px;
    padding-bottom: 100px;
}

#textonly .content-width {
    width: 75%;
    margin: 0 auto;
}

@media (prefers-reduced-motion: reduce) {
    .textblock-left,
    .textblock-right {
        opacity: 1;
        transform: none;
    }
}


@media (max-width: 1080px) {
    nav {
        display: none;
    }

    .burger {
        display: flex;
    }
}