/* 
Theme Name: bits AG
Version: v.1.0
Description: Custom Theme for bits AG
Author: Roman Hospenthal, RHOdesign
Author URI: http://www.rhodesign.ch/
*/

/* reset.css, grid.css, plugins.css und helpers.css werden in header.php verlinkt */

/* ------------------------------------------------------------ *\
	Variables
\* ------------------------------------------------------------ */
:root {  
--fz-html: 62.5%;
--fw-base: 500;
--ff-base: 'Fustat', Arial, sans-serif;
--ff-headlines: 'All Round Gothic', Arial, sans-serif;
    
--c-rot: #93282C;
--c-blau: #006298;
--c-gelb: #F0B323;
--c-weiss: #FFF;
--c-schwarz: #000;
    
/* Font sizes. */
--fontsize-xxs: 1.7rem;
--fontsize-xs: clamp(1.7rem, 0.173vw + 1.617rem, 1.9rem);
--fontsize-sm: clamp(1.9rem, 0.173vw + 1.817rem, 2.1rem);
--fontsize-md: clamp(2.4rem, 0.519vw + 2.151rem, 3rem);;
--fontsize-lg: clamp(2.8rem, 1.038vw + 2.302rem, 4rem);
--fontsize-xl: clamp(3.2rem, 2.768vw + 1.871rem, 6.4rem);
--fontsize-xxl: clamp(4.2rem, 3.287vw + 2.622rem, 8rem);

/* Line heights. */
--line-height-sm: 1.2;
--line-height-md: 1.4;
--line-height-lg: 1.6;
    
--abstand-xs: clamp(2.5rem, 0.865vw + 2.085rem, 3.5rem);
--abstand-sm: clamp(3rem, 1.73vw + 2.17rem, 5rem);
--abstand-md: clamp(4rem, 2.595vw + 2.754rem, 7rem);
--abstand-xl: clamp(6rem, 3.46vw + 4.339rem, 10rem);
--abstand-xxl: clamp(8rem, 4.325vw + 5.924rem, 13rem);
    
}

.font-xs {font-size: var(--fontsize-xs);}
.font-sm {font-size: var(--fontsize-sm);}
.font-md {font-size: var(--fontsize-md);}
.font-lg {font-size: var(--fontsize-lg);}
.font-xl {font-size: var(--fontsize-xl);}
.font-xxl {font-size: var(--fontsize-xxl);}

.text-xs {font-size: var(--fontsize-xs);}
.text-sm {font-size: var(--fontsize-sm);}
.text-md {font-size: var(--fontsize-md);}
.text-lg {font-size: var(--fontsize-lg);}
.text-xl {font-size: var(--fontsize-xl);}
.text-xxl {font-size: var(--fontsize-xxl);}

.bg-rot {background: var(--c-rot); }
.bg-blau {background: var(--c-blau); }
.bg-gelb {background: var(--c-gelb); }
.bg-weiss {background: var(--c-weiss); }
.bg-schwarz {background: var(--c-schwarz); }





/*
 * All Round Gothic Medium – Dharma Type
 * Webfont-Lizenz via Font Bros, Bestellung #FB307172
 * Lizenzinhaberin: Bits AG, max. 10k Pageviews/Monat
 */
@font-face {
  font-family: 'All Round Gothic';
  src: url('fonts/all-round-gothic-medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}


/* fustat-regular - latin */
@font-face {
  font-display: swap; 
  font-family: 'Fustat';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/fustat-v4-latin-regular.woff2') format('woff2'); 
}

/* fustat-500 - latin */
@font-face {
  font-display: swap; 
  font-family: 'Fustat';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/fustat-v4-latin-500.woff2') format('woff2'); 
}

/* fustat-600 - latin */
@font-face {
  font-display: swap;
  font-family: 'Fustat';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/fustat-v4-latin-600.woff2') format('woff2');
}







/* ------------------------------------------------------------ *\
	Base
\* ------------------------------------------------------------ */
html {font-size: var(--fz-html);}
body { 
min-width: 320px; 
background: var(--c-weiss); 
font-family: var(--ff-base); 
font-weight: var(--fw-base);
font-size: var(--fontsize-sm); 
line-height: var(--line-height-md); 
color: var(--c-schwarz); 
    
-webkit-hyphens: auto;
	hyphens: auto;
	overflow-wrap: break-word;
	/* Nur Wörter ab 6 Zeichen trennen, min. 3 Zeichen vor/nach dem Trennstrich */
	hyphenate-limit-chars: 6 3 3;
}

a { color: inherit; text-decoration: none; transition: color .3s; }
a:hover,
a[href^="tel"] { text-decoration: none; }
p,ul,ol,dl,hr,table,blockquote { margin-bottom: 1.5em; }





/* ------------------------------------------------------------ *\
	Wrapper
\* ------------------------------------------------------------ */
.wrapper {display: flex;flex-direction: column;min-height: 100vh; padding-top: 160px; box-sizing: border-box; }
.main {flex: 1 0 auto;}

@media (max-width: 767px) {
.main {padding-top: 0px; }
}
@media (max-width: 575px) {
.main {padding-top: 0px; }
}

.header,
.footer {
  flex-shrink: 0;
}



.container { 
--container-max-width: 163.6rem;
--container-gutter: 2rem;
max-width: calc(var(--container-max-width) + var(--container-gutter) * 2); 
padding-inline: var(--container-gutter); 
margin-inline: auto;  
width: 100%;
}

.container--fluid { max-width: none;}

.container a {color: var(--c-purple); }
.container a:hover {color: var(--c-schwarz);}




/* ------------------------------------------------------------ *\
	Miscs
\* ------------------------------------------------------------ */
.text-center {text-align: center;}
.textright { text-align: right; }
.relative {position: relative; }

small {font-size: 0.8em; line-height: 0.7em;}
strong { font-weight:600;}

.section {display: block; clear: both; position: relative; width: 100%; }
.section p:last-of-type {margin-bottom: 0; }

.section:first-of-type {margin-top: 100px }
.section:last-of-type {}







/* ------------------------------------------------------------ *\
	Margins / Paddings
\* ------------------------------------------------------------ */
.abstand-kein { margin-bottom: 0;}
.abstand-xs { margin-bottom: var(--abstand-xs);}
.abstand-sm { margin-bottom: var(--abstand-sm);}
.abstand-md { margin-bottom: var(--abstand-md);}
.abstand-xl { margin-bottom: var(--abstand-xl);}
.abstand-xxl { margin-bottom: var(--abstand-xxl);}

.abstand-oben-xs { margin-top: var(--abstand-xs);}
.abstand-oben-sm { margin-top: var(--abstand-sm);}
.abstand-oben-md { margin-top: var(--abstand-md);}
.abstand-oben-xl { margin-top: var(--abstand-xl);}
.abstand-oben-xxl { margin-top: var(--abstand-xxl);}


.padding-top-xs { padding-top: var(--abstand-xs);}
.padding-top-sm { padding-top: var(--abstand-sm);}
.padding-top-md { padding-top: var(--abstand-md);}
.padding-top-xl { padding-top: var(--abstand-xl);}
.padding-top-xxl { padding-top: var(--abstand-xxl);}

.padding-bottom-xs { padding-bottom: var(--abstand-xs);}
.padding-bottom-sm { padding-bottom: var(--abstand-sm);}
.padding-bottom-md { padding-bottom: var(--abstand-md);}
.padding-bottom-xl { padding-bottom: var(--abstand-xl);}
.padding-bottom-xxl { padding-bottom: var(--abstand-xxl);}




/* ------------------------------------------------------------ *\
	Headings
\* ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {  font-family: var(--ff-headlines); font-weight:500; -webkit-transition: all .2s; -moz-transition: all .2s; -o-transition: all .2s; -ms-transition: all .2s; transition: all .2s; }
h1 { color: var(--c-schwarz); font-size: var(--fontsize-xxl); line-height: var(--line-height-sm); margin-bottom: 30px; }
h2 { color: var(--c-schwarz); font-size: var(--fontsize-xl); line-height: var(--line-height-sm); margin-bottom: 45px; }
h3 { color: var(--c-schwarz); font-size: var(--fontsize-lg); line-height: var(--line-height-sm); margin-bottom: 30px; }
h4 { color: var(--c-schwarz); font-size: var(--fontsize-md); line-height: var(--line-height-sm); margin-bottom: 20px; }
h5 { color: var(--c-schwarz); font-size: var(--fontsize-sm); line-height: var(--line-height-sm); margin-bottom: 20px; }



/* ------------------------------------------------------------ *\
	Hintergrundfarben
\* ------------------------------------------------------------ */
.hintergrundfarbe1 {background-color: var(--c-purple); color:  var(--c-weiss) }
.hintergrundfarbe1 h1, .hintergrundfarbe1 h2, .hintergrundfarbe1 h3 {color:  var(--c-weiss)}

.hintergrundfarbe2 {background-color: var(--c-purple-light) }
.hintergrundfarbe2 h1, .hintergrundfarbe2 h2, .hintergrundfarbe2 h3 {color:  var(--c-schwarz)}

.hintergrundfarbe3 {background-color: var(--c-sand); }
.hintergrundfarbe4 {background-color: var(--c-sand-light) }



/* ------------------------------------------------------------ *\
	Listen
\* ------------------------------------------------------------ */
/*
.section-text ul{ list-style: none; padding:0;  margin:0 0 25px 0;  }
.section-text ul li{ padding-left: 1.3em; text-indent: -1em; padding-bottom: 15px   }
.section-text ul li:before { content: "\2013"; padding-right:0.5em; }
*/

.section-text ul{ list-style: none; padding:0; margin:0 0 30px 0; }
.section-text ul:not(.liste-icons) li{ position: relative; padding: 0 0 5px 18px; }
.section-text ul:not(.liste-icons) li::before{ content: ''; position: absolute; left: 0; top: 0.5em; width: 6px; height: 6px; border-radius: 50%; background: var(--c-schwarz); }

.section-text ol { list-style: none; counter-reset: my-awesome-counter; margin:0 0 30px 0;}
.section-text ol li { counter-increment: my-awesome-counter; padding-bottom: 5px; }
.section-text ol li::before { content: counter(my-awesome-counter) ". ";  }




/* ------------------------------------------------------------ *\
	Header
\* ------------------------------------------------------------ */

/* Header ist immer fixed: Höhenwechsel (sticky) verschieben so den Inhalt nicht. Den Platz reserviert .wrapper (padding-top). */
.header { background: var(--c-rot); height: 160px; width: 100%; border-bottom-left-radius: 30px; border-bottom-right-radius: 30px; position: fixed; top: 0; left: 0; z-index: 99990; }
.header.header-overlay {background:transparent;}

.header-inner { height: 100%; display: flex; align-items: flex-start; justify-content: space-between; }

.logo { background-image: url(images/logo.svg); background-size: contain; background-repeat: no-repeat; background-position: center; width: 178px; height: 80px; display: block; margin-top: 45px; font-size: 0; flex-shrink: 0; transition: all .4s;}


.header {
  transition: transform .3s ease, height .4s ease, background-color .4s ease;
}
.header.header--notrans { transition: none; }

.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }

.header.header--hidden {
  transform: translateY(-100%);
}


@media (max-width:1199px) {
 .wrapper { padding-top: 104px; }
 .header { height: 104px; }
 .logo { width: 128px; height: 58px; margin-top: 25px; }
}


/* ===========================
 NAVIGATION
=========================== */
#hauptnavigation { margin-top:64px; margin-left:auto; display:flex; justify-content:flex-end; transition: all .4s; }
.menu, .menu ul { margin: 0; padding: 0; list-style: none; }
.menu { display: flex; gap: 20px; align-items: flex-start; }

/* HAUPTMENÜ PILLEN (Desktop) */
.menu > li { position: relative; }
.menu > li::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 25px; }
.menu > li > a { display: block; padding: 15px 25px 12px; border: 1px solid #fff; border-radius: 999px; color: #fff; font-size: var(--fontsize-sm); line-height: 1; text-decoration: none; white-space: nowrap; transition: background-color .3s ease, color .3s ease; }
.menu > li:hover > a { background: #A95659 }
.menu > li.current-menu-parent > a,
.menu > li.current-menu-item > a { background: #FFF; color: #93282C }

.menu > li > .sub-menu { position: absolute; top: calc(100% + 15px); left: 50%; width: 220px; padding: 20px; box-sizing: border-box; background: #A95659; border: 1px solid #fff; border-radius: 25px; transform: translateX(-50%) translateY(10px); opacity: 0; visibility: hidden; transition: opacity .3s ease, transform .3s ease; }
.menu > li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.sub-menu li { text-align: center; }
.sub-menu a { display: block; padding: 8px 5px; color: #fff; font-size: var(--fontsize-sm); line-height: var(--line-height-md); text-decoration: none; white-space: normal; transition: opacity .25s ease; }
.sub-menu a:hover { opacity: .7; }

/* Submenu-Toggle-Pfeil auf Desktop ausblenden */
.submenu-toggle { display: none; }



/* ------------------------------------------------------------ *\
	HAMBURGER → X ANIMATION
\* ------------------------------------------------------------ */
.nav-trigger { position: relative; z-index: 100001; width: 30px; height: 22px; display: none; top: 25px; padding: 0; border: 0; background: none; cursor: pointer; transition: all .4s;}
.nav-trigger span { position: absolute; left: 0; width: 100%; height: 2px; background: #fff; border-radius: 2px; transition: transform .35s ease, opacity .25s ease, top .35s ease; }
.nav-trigger span:nth-child(1) { top: 0; }
.nav-trigger span:nth-child(2), .nav-trigger span:nth-child(3) { top: 10px; }
.nav-trigger span:nth-child(4) { top: 20px; }
.nav-trigger.open span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.nav-trigger.open span:nth-child(2) { transform: rotate(45deg); }
.nav-trigger.open span:nth-child(3) { transform: rotate(-45deg); }
.nav-trigger.open span:nth-child(4) { top: 10px; transform: rotate(-45deg); }



/* ------------------------------------------------------------ *\
	MOBILE MENU — Vollbild-Overlay
\* ------------------------------------------------------------ */
@media (max-width:1199px) {

    .nav-trigger { display: block; }

    /* Logo bleibt über dem Overlay sichtbar */
    .logo { position: relative; z-index: 100001; }

    /* Overlay: oben ausgerichtet (kein Springen beim Aufklappen), scrollbar bei wenig Höhe */
    #hauptnavigation {
        position: fixed;
        inset: 0;
        height: 100vh;
        height: 100dvh;
        width: 100%;
        margin: 0;
        padding: 130px 0 40px;
        box-sizing: border-box;
        background: var(--c-rot);
        z-index: 100000;
        display: block;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        opacity: 0;
        visibility: hidden;
        transition: opacity .4s ease, visibility .4s ease;
    }
    #hauptnavigation.open {
        opacity: 1;
        visibility: visible;
    }

    .menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        max-width: 540px;
        margin: 0 auto;
        padding: 0 24px;
        box-sizing: border-box;
        text-align: left;
    }

    /* Gestaffelte Eingangsanimation der Menüpunkte */
    .menu > li {
        border-bottom: 1px solid rgba(255,255,255,.25);
        opacity: 0;
        transform: translateY(20px);
        transition: opacity .4s ease, transform .4s ease;
    }
    #hauptnavigation.open .menu > li {
        opacity: 1;
        transform: translateY(0);
    }
    #hauptnavigation.open .menu > li:nth-child(1) { transition-delay: .05s; }
    #hauptnavigation.open .menu > li:nth-child(2) { transition-delay: .1s; }
    #hauptnavigation.open .menu > li:nth-child(3) { transition-delay: .15s; }
    #hauptnavigation.open .menu > li:nth-child(4) { transition-delay: .2s; }
    #hauptnavigation.open .menu > li:nth-child(5) { transition-delay: .25s; }
    #hauptnavigation.open .menu > li:nth-child(6) { transition-delay: .3s; }

    .menu > li::after { content: none; }

    .menu > li > a {
        flex: 1;
        border: none;
        border-radius: 0;
        padding: 18px 0 16px;
        font-family: var(--ff-headlines);
        font-size: var(--fontsize-lg);
        line-height: 1.1;
        white-space: normal;
        background: none !important;
        color: #fff !important;
        cursor: pointer;
    }
    .menu > li.current-menu-item > a,
    .menu > li.current-menu-parent > a { color: var(--c-schwarz) !important; }

    /* Link + Toggle-Pfeil nebeneinander, Submenu darunter */
    .menu-item-has-children {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }
    .menu-item-has-children > a { order: 1; }
    .menu-item-has-children > .submenu-toggle { order: 2; }
    .menu-item-has-children > .sub-menu {
        order: 3;
        flex-basis: 100%; /* erzwingt sauberen Umbruch NACH Link+Pfeil */
    }

    .submenu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin-right: -10px;
        cursor: pointer;
    }
    .submenu-toggle i {
        width: 10px;
        height: 10px;
        margin-top: -5px;
        border-right: 2px solid #fff;
        border-bottom: 2px solid #fff;
        transform: rotate(45deg); /* zeigt nach unten */
        transition: transform .3s ease, margin .3s ease;
    }
    .sub-open > .submenu-toggle i {
        margin-top: 5px;
        transform: rotate(-135deg); /* zeigt nach oben, wenn offen */
    }

    /* Submenu Accordion — Desktop-Positionierung komplett neutralisieren */
    .menu > li > .sub-menu {
        position: static !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100%;
        opacity: 1;
        visibility: visible;
        margin: 0;
        padding: 0 0 14px;
        background: transparent;
        border: none;
        border-radius: 0;
        display: none;
    }
    .menu > li:hover > .sub-menu {
        transform: none !important;
    }
    .sub-menu li { text-align: left; }
    .sub-menu a {
        color: #fff;
        font-size: var(--fontsize-sm);
        line-height: var(--line-height-sm);
        padding: 9px 0 9px 16px;
        border-left: 2px solid rgba(255,255,255,.35);
        opacity: .9;
    }
    .sub-menu .current-menu-item > a { color: var(--c-schwarz); border-left-color: var(--c-schwarz); opacity: 1; }

    /* Scroll-Lock, solange das Menü offen ist */
    body.menu-open { overflow: hidden; }
}



/* ****************************************************************************************************
			    		HEADER STICKY
**************************************************************************************************** */
.header.sticky { height: 76px; }
.header.sticky .logo { width: 100px; height: 46px; margin-top: 15px;}
.header.sticky nav#hauptnavigation {margin-top: 15px; }

.header.sticky.header-overlay {
  background: var(--c-rot);
} 
/* Mobile: anzeigen */
@media (max-width: 1199px) {
.header.sticky {height: 56px;}
.header.sticky .logo { width: 80px; height: 36px; margin-top: 10px;}
.header.sticky .nav-trigger {top: 15px}
}







/* Optional: Scroll Lock */
body.body-fixed { overflow: hidden;}







/* ------------------------------------------------------------ *\
	M O D U L E - Alle Inhaltsmodule
\* ------------------------------------------------------------ */





/* ------------------------------------------------------------ *\
	HERO
\* ------------------------------------------------------------ */
.hero { min-height: max(100svh, 700px); display: flex; position: relative; overflow: hidden; margin-top: -160px; border-bottom-left-radius: 30px; border-bottom-right-radius: 30px;}
.hero-home { background: var(--c-rot); }

.hero-background, .hero-animation { position: absolute; inset: 0; z-index: 1; }
/* Inhalt im Fluss: wird er höher als der Viewport (z.B. zweizeiliger Titel auf Notebooks), wächst der Hero mit, statt unter das Logo zu rutschen */
.hero-content { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 180px; }
.hero-content .row { align-items: flex-end; padding-bottom: 90px; }
.hero-title { max-width: 700px; }
.hero-title h1 { margin: 0; color: var(--c-weiss) }
.hero-title p { margin: 0; }
.hero-teaser { margin-left: auto; color: var(--c-weiss); font-size: var(--fontsize-md); text-align: right }
.hero-teaser p:last-of-type { margin: 0; }

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 1;
}
.hero-video-fallback {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 1;
}

.hero-leistungen-background {
    position:absolute;
    inset:0;
    z-index:1;
    background-image:url(images/herobild.png);
    background-size:cover;
    background-position:center center;
    background-repeat:no-repeat;
}


/* ------------------------------------------------------------ *\
	HERO LEISTUNGEN TEST – CSS-Verlauf + Lottie-Icon
\* ------------------------------------------------------------ */
.hero-leistungen .hero-leistungen-background {
    background-image: none;
    background-color: #4E2B6A;
    overflow: hidden;
    isolation: isolate;
}
.hero-leistungen .hero-leistungen-background::before,
.hero-leistungen .hero-leistungen-background::after {
    content: "";
    position: absolute;
    inset: -20%;
    z-index: -1;
    pointer-events: none;
    will-change: transform;
}
/* Blau */
.hero-leistungen .hero-leistungen-background::before {
    background:
        radial-gradient(50% 60% at 82% 18%, rgba(0,65,129,1) 0%, rgba(0,65,129,.88) 18%, rgba(0,65,129,.62) 36%, rgba(0,65,129,.34) 54%, rgba(0,65,129,.13) 72%, rgba(0,65,129,.03) 90%, rgba(0,65,129,0) 100%),
        radial-gradient(48% 65% at 14% 76%, rgba(0,65,129,1) 0%, rgba(0,65,129,.88) 18%, rgba(0,65,129,.62) 36%, rgba(0,65,129,.34) 54%, rgba(0,65,129,.13) 72%, rgba(0,65,129,.03) 90%, rgba(0,65,129,0) 100%);
    animation: heroDriftB 18s ease-in-out infinite alternate;
}
/* Rot */
.hero-leistungen .hero-leistungen-background::after {
    background:
        radial-gradient(52% 48% at 28% 26%, rgba(200,17,23,1) 0%, rgba(200,17,23,.88) 18%, rgba(200,17,23,.62) 36%, rgba(200,17,23,.34) 54%, rgba(200,17,23,.13) 72%, rgba(200,17,23,.03) 90%, rgba(200,17,23,0) 100%),
        radial-gradient(50% 50% at 70% 74%, rgba(200,17,23,1) 0%, rgba(200,17,23,.88) 18%, rgba(200,17,23,.62) 36%, rgba(200,17,23,.34) 54%, rgba(200,17,23,.13) 72%, rgba(200,17,23,.03) 90%, rgba(200,17,23,0) 100%);
    animation: heroDriftA 14s ease-in-out infinite alternate;
}
@keyframes heroDriftA { to { transform: translate(3%,2%); } }
@keyframes heroDriftB { to { transform: translate(-3%,-2%); } }

/* Lottie-Icon: Bild als Fallback, SVG liegt darüber */
.hero-leistungen .hero-leistungen-icon { position: relative; }
.hero-leistungen .hero-leistungen-icon img { display: block; width: 100%; height: 100%; }
.hero-leistungen .hero-leistungen-icon svg { position: absolute; inset: 0; display: block; }
.hero-leistungen .hero-leistungen-icon.is-lottie img { visibility: hidden; }

.hero-leistungen-icon {
width: min(clamp(15rem, 13.378vw + 8.579rem, 31rem), 26svh);
height: min(clamp(15rem, 13.378vw + 8.579rem, 31rem), 26svh);
margin-bottom: clamp(4rem, 3.46vw + 2.339rem, 8rem);}


/* ------------------------------------------------------------ *\
	HERO – Responsive / Reduced Motion
\* ------------------------------------------------------------ */
@media (max-width: 1199px) {
    .hero { margin-top: -104px; }
    .hero-content { padding-top: 130px; }
}
@media (max-width: 767px) {
    .hero-content .row { align-content: flex-end; padding-bottom: 40px; }
    .hero-title { margin-bottom: var(--abstand-sm); }
    .hero-teaser { margin-left: 0; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-video { display: none; }
    .hero-video-fallback { display: block; }
    .hero-leistungen .hero-leistungen-background::before,
    .hero-leistungen .hero-leistungen-background::after { animation: none; }
}




/* ****************************************************************************************************
 LEISTUNGEN GRID
**************************************************************************************************** */

/* GRID */
.leistungen-grid-wrapper { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(6, 1fr); gap: 20px; }

/* CARDS */
.leistungen-card { padding: 30px; border-radius: 30px; background: var(--c-rot); color: #fff !important; text-decoration: none; position: relative; display: flex; flex-direction: column; min-height: 320px; }
.leistungen-card h4 { color: #fff; }

/*  POSITIONEN GRID  */
/* linke Spalte */
.card-1 { grid-column: 1; grid-row: 1 / span 2; }
.card-2 { grid-column: 1; grid-row: 3 / span 2; }
.card-3 { grid-column: 1; grid-row: 5 / span 2; }

/* rechte Spalte */
.card-4 { grid-column: 2; grid-row: 1 / span 3; }
.card-5 { grid-column: 2; grid-row: 4 / span 3; }


/* ICON */
.leistungen-card-icon { width: 56px; height: 56px; margin-bottom: 30px; }
.leistungen-card-icon img { display: block; width: 100%; height: auto; }

/* CONTENT */
.leistungen-card-content { display: flex; flex-direction: column; }

/* ARROW */
.leistungen-card-arrow { position: absolute; }



/* KARTEN VARIANTEN */

.card-1,
.card-2,
.card-3 { justify-content: flex-start; }
.card-1 .leistungen-card-arrow,
.card-2 .leistungen-card-arrow,
.card-3 .leistungen-card-arrow { right: 30px; top: 30px; }

.card-4 { justify-content: flex-end; }
.card-4 .leistungen-card-arrow { right: 30px; top: 30px; }

.card-5 .leistungen-card-arrow { right: 30px; bottom: 30px; }

/* HOVER  */

.leistungen-card { transition: transform .3s ease; }
.leistungen-card:hover { transform: translateY(-5px); }

.leistungen-card:hover .icon-circle svg:first-child { opacity: 0; }
.leistungen-card:hover .icon-circle svg:last-child { opacity: 1; }

@media(max-width:575px) {
 .leistungen-grid-wrapper { display: flex; flex-direction: column; gap: 20px; }
 .leistungen-card { min-height: unset; }
    
.card-1,
.card-2,
.card-3 { justify-content: unset; }
    
.card-4 { justify-content: unset; }
.card-5 .leistungen-card-arrow { right: 30px; top: 30px; }
}




/* ****************************************************************************************************
 LEISTUNGEN GRID – 4 ELEMENTE
**************************************************************************************************** */

.leistungen-grid-wrapper--4 { grid-template-rows: repeat(5, minmax(90px, 1fr)); }
.leistungen-grid-wrapper--4 .leistungen-card { min-height: 0; }

/* linke Spalte: kurz / hoch */
.lg4-card-1 { grid-column: 1; grid-row: 1 / span 2; justify-content: flex-start; }
.lg4-card-2 { grid-column: 1; grid-row: 3 / span 3; justify-content: flex-end; }

/* rechte Spalte: hoch / kurz */
.lg4-card-3 { grid-column: 2; grid-row: 1 / span 3; justify-content: flex-end; }
.lg4-card-4 { grid-column: 2; grid-row: 4 / span 2; justify-content: flex-start; }

/* Pfeil überall oben rechts */
.leistungen-grid-wrapper--4 .leistungen-card-arrow { right: 30px; top: 30px; }

/* Platz für den Pfeil bei den kurzen Karten (Icon kollidiert sonst) */
.lg4-card-1 .leistungen-card-icon,
.lg4-card-4 .leistungen-card-icon { margin-bottom: 30px; }

@media(max-width:575px) {
 .lg4-card-1,
 .lg4-card-2,
 .lg4-card-3,
 .lg4-card-4 { justify-content: unset; }
}





/* ------------------------------------------------------------ *\
	Section Foto - Text
\* ------------------------------------------------------------ */
.section-foto_text {}
.section-foto_text img {border-radius: 30px}
.section-foto_text .first-col {}
@media (max-width: 767px) {
.section-foto_text .first-col {margin-bottom: 40px}
}

.section-foto_text .btn-pill {
  margin-top: clamp(2.5rem, 0.865vw + 2.085rem, 3.5rem);
}




/* ****************************************************************************************************
                                    BLOCKQUOTE
**************************************************************************************************** */
.blockquote {font-family: var(--ff-headlines);}

/* BOX */
.blockquote-box { padding:var(--abstand-md) 0; position:relative; border-top-right-radius: 30px; border-bottom-right-radius: 30px;}

/* Hintergrund nach links erweitern */
.blockquote-box::before {content:"";position:absolute;top:0;bottom:0;right:100%;width:100vw;}

.blockquote-box.bg-blau::before {background:var(--c-blau);}
.blockquote-box.bg-rot::before {background:var(--c-rot);}

/* TEXT */
.blockquote-box blockquote {position:relative; margin:0;color: var(--c-weiss);font-size: var(--fontsize-lg)}
.blockquote-box blockquote .autor {font-size: var(--fontsize-md)}
.blockquote-box blockquote p {margin-bottom: 30px;}

/* ICON */
.blockquote-icon { position:absolute; right:-128px; top:50%; transform:translateY(-50%); z-index:5;}
.blockquote-icon svg {}

.bg-blau .blockquote-icon svg {color: var(--c-blau);}
.bg-rot .blockquote-icon svg {color: var(--c-rot);}


@media (max-width:767px) {
.blockquote-icon { left:50%; bottom:-75px;top:auto; right:auto;transform:translateX(-50%);}
.blockquote-box { padding-bottom:120px;}
.blockquote-box blockquote { padding-right: 3rem;}
}

:root {
  --blockquote-icon-overflow: 100px; /* 75px bottom-offset + halbe Icon-Höhe, anpassen */
}

/* Nur dort nötig, wo das Icon unten übersteht (mobile Position) */
@media (max-width: 767px) {
  .blockquote.abstand-kein { margin-bottom: var(--blockquote-icon-overflow); }
  .blockquote.abstand-xs   { margin-bottom: calc(var(--abstand-xs) + var(--blockquote-icon-overflow)); }
  .blockquote.abstand-sm   { margin-bottom: calc(var(--abstand-sm) + var(--blockquote-icon-overflow)); }
  .blockquote.abstand-md   { margin-bottom: calc(var(--abstand-md) + var(--blockquote-icon-overflow)); }
  .blockquote.abstand-xl   { margin-bottom: calc(var(--abstand-xl) + var(--blockquote-icon-overflow)); }
  .blockquote.abstand-xxl  { margin-bottom: calc(var(--abstand-xxl) + var(--blockquote-icon-overflow)); }
}






/* ****************************************************************************************************
                                    INFO BOX
**************************************************************************************************** */
.info-box { overflow:hidden;color: var(--c-weiss); font-size: var(--fontsize-lg); font-family: var(--ff-headlines);}
.info-box h3 { color: var(--c-weiss); }
.info-box p:last-of-type { margin-bottom: 0;}

/* BLUE AREA */
.info-box-blue { background:var(--c-blau); padding:var(--abstand-md) var(--abstand-sm) var(--abstand-md) 0; position:relative;height:100%; border-top-right-radius: 30px; border-bottom-right-radius: 30px; display: flex; flex-direction: column; justify-content: space-between;}
.info-box-blue::before {content:""; position:absolute;top:0;bottom:0;right:100%;width:100vw;background:var(--c-blau);}

/* RED AREA */
.info-box-red { background:var(--c-rot); padding:var(--abstand-md) 0 var(--abstand-md) var(--abstand-sm); position:relative; height:100%;border-top-left-radius: 30px; border-bottom-left-radius: 30px; }
.info-box-red::after { content:""; position:absolute; top:0; bottom:0; left:100%; width:100vw; background:var(--c-rot);}

.info-box-content {display: flex; flex-direction: column; justify-content: space-between;}

@media (max-width:991px) {
.info-box-blue-col {margin-bottom: var(--abstand-sm)}
}


.info-box-single {  font-size: var(--fontsize-sm); font-family: var(--ff-base);}
.info-box-single .info-box-content {display: block}
.info-box-single a.btn-pill + a.btn-pill {margin-top: 20px}

a.projektlink {}
a.projektlink:hover {color: var(--c-weiss); text-decoration: underline}






/* ****************************************************************************************************
                                    KONTAKT AUFNEHMEN
**************************************************************************************************** */
.kontakt-aufnehmen { overflow: hidden; }

/* PERSON WRAPPER
   Das Foto ragt um (Bildhöhe − Cardhöhe) über die Card hinaus. Genau dieser Platz wird oben reserviert,
   damit der Kopf nie von overflow:hidden abgeschnitten wird. --img-luft = transparenter Rand oben im Foto (Anteil).
   Mind. 130px, damit Funktion + zweizeiliger Name darin Platz haben. */
.kontakt-person {
	--img-h: clamp(360px, 42vw, 640px);
	--card-h: clamp(220px, 30vw, 360px);
	--img-luft: .06;
	display: flex;
	flex-direction: column;
	position: relative;
	padding-top: max(130px, calc(var(--img-h) * (1 - var(--img-luft)) - var(--card-h)));
}

/* NAME / FUNKTION — links im Freiraum über der Card, neben dem Kopf.
   Name immer ein Wort pro Zeile (ohne Silbentrennung). Achtung: sehr lange Vor-/Nachnamen können auf Mobile in den Kopf laufen. */
.kontakt-person-meta {
	position: absolute;
	left: 0;
	bottom: calc(var(--card-h) + 20px);
	color: var(--c-blau);
	z-index: 5;
}
.kontakt-person-meta h4 { width: min-content; color: var(--c-blau); margin: 0; -webkit-hyphens: none; hyphens: none; }
.kontakt-person-meta .funktion { display: block; margin-bottom: 6px; font-size: var(--fontsize-xs); }

/* Mobile/Tablet: Abstand zu den Buttons der Spalte davor */
@media (max-width: 991px) {
	.kontakt-person { margin-top: var(--abstand-sm); }
}

/* BLAUE CARD */
.kontakt-person-card {
	position: relative;
	height: var(--card-h);
	background: var(--c-blau);
	border-radius: 30px;
}

/* FOTO */
.kontakt-person-image {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
}
.kontakt-person-image img {
	display: block;
	width: auto;
	height: var(--img-h);
	max-width: none;
}







/* ****************************************************************************************************
                                    LOGO KARUSSELL
**************************************************************************************************** */
.section-logo-karussell {
    overflow: hidden;
    background: var(--c-blau);
    padding: var(--abstand-sm) 0;
}

.logo-karussell {
    width: 100%;
}

.logo-karussell-track {
    display: flex;
    width: max-content;
    opacity: 0; /* verhindert Sprung/Flackern vor JS-Setup */
}

.logo-karussell-track.is-ready {
    opacity: 1;
    animation: logo-marquee var(--marquee-duration, 30s) linear infinite;
}

.logo-karussell-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-karussell-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 40px;
}

.logo-karussell-item img {
    display: block;
    width: auto;
    max-width: none;
    height: var(--logo-hoehe, 40px);
}

.logo-karussell-item a {
    display: flex;
}

@keyframes logo-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-1 * var(--marquee-width, 0px))); }
}

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

@media (prefers-reduced-motion: reduce) {
    .logo-karussell-track.is-ready {
        animation: none;
        opacity: 1;
    }
}


@media (max-width: 991px) {
    .logo-karussell-item img {
        height: calc(var(--logo-hoehe, 40px) * 2 / 3);
    }
}
@media (max-width: 767px) {
    .logo-karussell-item img {
        height: calc(var(--logo-hoehe, 40px) / 2);
    }
}







/* ------------------------------------------------------------ *\
	Kunden
\* ------------------------------------------------------------ */

.row-kunden {--bs-gutter-y: 40px;}
.kundencol {overflow: visible;}
.kundencol_inner {overflow: hidden;}

@media (max-width: 991px) {
.row-kunden {--bs-gutter-y: 30px;}
}
@media (max-width: 575px) {
.row-kunden {--bs-gutter-y: 2rem;}
}









/* ------------------------------------------------------------ *\
	Section Titel mit Lead
\* ------------------------------------------------------------ */
.section-titel-mit-lead { font-size: var(--fontsize-lg); line-height: var(--line-height-sm);}
.section-titel-mit-lead p:last-of-type {margin-bottom: 0;}
.section-titel-mit-lead .newsdatum { font-size: var(--fontsize-sm); margin-bottom: 15px;}





/* ------------------------------------------------------------ *\
	Section Text-Module (100, 50, 75-25)
\* ------------------------------------------------------------ */
.section-text {}
@media (max-width: 767px) {
}



.section-action {display: flex; gap: 2rem; margin-top: 5rem}
@media (max-width: 767px) {
.section-action {flex-direction: column; align-items: flex-start;  gap: 1.5rem;}
}






/* ------------------------------------
   Liste mit Icon-Bullets
------------------------------------ */
.liste-icons { list-style: none; margin: 0; padding: 0;}

.liste-icons__item { font-size: var(--fontsize-md); font-family: var(--ff-headlines);
    display: flex;
    align-items: center;
    gap: clamp(2rem, 1.298vw + 1.377rem, 3.5rem);
    margin-bottom: clamp(1.5rem, 3.028vw + 0.047rem, 5rem);
    
padding-bottom: 0 !important;
}
ul.liste-icons li + li {padding-top: 0 !important;}

.liste-icons__item .icon-circle { flex-shrink: 0;}

.liste-icons__text { flex: 1 1 auto;}

.liste-icons__item svg { color: var(--c-weiss); }








/*
Icons Verwendung im Template
<svg class="ico ico-<?php echo esc_attr($ext ?: 'other'); ?>"><use href="#ico-file-<?php echo esc_attr($ext ?: 'other'); ?>"></use></svg>

<svg class="ico ico-download"><use href="#ico-download"></use></svg>
<svg class="ico ico-web"><use href="#ico-web"></use></svg>
*/

/* ------------------------------------------------------------ *\
   Icons
\* ------------------------------------------------------------ */
.ico svg { stroke: currentColor; fill: none; display: block;}

.ico-linkedin,
.ico-facebook, 
.ico-instagram { display: inline-block;vertical-align: middle; width:33px; height:33px}

.ico-zitat {display: inline-block;vertical-align: middle; width:256px; height:256px}

.ico-listenpunkt {display: inline-block;vertical-align: middle; width:40x; height:28px}

@media (max-width: 767px) {
.ico-zitat {width:150px; height:150px}
}








/* ------------------------------------------------------------ *\
   ICON-KREIS (Basis, wird solo UND in der Pill verwendet)
\* ------------------------------------------------------------ */
:root {
    --btn-icon-size: 56px;
    --btn-icon-svg-size: 24px;
}

.icon-circle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--btn-icon-size);
    height: var(--btn-icon-size);
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--c-schwarz);
    color: var(--c-weiss);
}
.icon-circle--weiss {  background: var(--c-weiss);  color: var(--c-schwarz);}
.icon-circle--rot {  background: var(--c-rot);  color: var(--c-rot);}

.icon-circle svg {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: var(--btn-icon-svg-size);
    max-height: var(--btn-icon-svg-size);
    width: auto;
    height: auto;
    fill: currentColor;
    transition: opacity .2s ease;
    transform: translate(-50%, -50%);
}
/* Hover-Swap – greift nur, wenn zwei SVGs vorhanden sind */
.icon-circle svg:first-child { opacity: 1; }
.icon-circle svg:last-child:not(:only-child) { opacity: 0; }
.btn-pill:hover .icon-circle svg:first-child { opacity: 0; }
.btn-pill:hover .icon-circle svg:last-child { opacity: 1; }

/* Farbige Icons je nach Kontext */
.icon-blau .icon-circle--weiss svg { color: var(--c-blau); }
.icon-rot  .icon-circle--weiss svg { color: var(--c-rot); }

/* Pfeil-Rotation */
.icon-circle svg.rotate-rechts      { transform: translate(-50%, -50%) rotate(0deg); }
.icon-circle svg.rotate-oben-rechts { transform: translate(-50%, -50%) rotate(-45deg); }
.icon-circle svg.rotate-oben        { transform: translate(-50%, -50%) rotate(-90deg); }
.icon-circle svg.rotate-unten       { transform: translate(-50%, -50%) rotate(90deg); }
.icon-circle svg.rotate-links       { transform: translate(-50%, -50%) rotate(180deg); }



/* ------------------------------------------------------------ *\
   BUTTON PILL
\* ------------------------------------------------------------ */
.btn-pill {
font-family: var(--ff-base);
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    height: var(--btn-icon-size);
    padding-left: 24px;
    border: 1px solid var(--c-schwarz);
    border-radius: calc(var(--btn-icon-size) / 2);
    text-decoration: none;
    color: var(--c-schwarz);
    transition: background-color .25s ease, color .25s ease;
    text-align: left
}
.btn-pill--weiss { border: 1px solid var(--c-weiss); color: var(--c-weiss);}
.btn-pill--schwarz  { border: 1px solid var(--c-schwarz); color: var(--c-schwarz);}

.btn-pill-label { white-space: nowrap;  font-size: var(--fontsize-xs); font-weight: 500;  min-width: 172px;}

.btn-pill-small {  --btn-icon-size: 42px;  --btn-icon-svg-size: 20px; padding-left: 20px;}
.btn-pill-small .btn-pill-label { min-width: 150px; font-size: var(--fontsize-xxs);}

.btn-pill:hover { color: inherit !important;}

.slider-projekte-text .btn-pill-small {margin-top: clamp(2.5rem, 0.865vw + 2.085rem, 3.5rem)}
.section-projekt_auswahl .btn-pill-small {margin-top: clamp(2.5rem, 0.865vw + 2.085rem, 3.5rem)}
.section-projekte_uebersicht  .btn-pill-small {margin-top: clamp(2.5rem, 0.865vw + 2.085rem, 3.5rem)}

@media (max-width: 767px) {
    :root {
        --btn-icon-size: 42px;
        --btn-icon-svg-size: 20px;
    }
    .btn-pill { padding-left: 20px; }
    .btn-pill-label { min-width: 150px; }
}







/* ------------------------------------------------------------ *\
	Section Tabelle
\* ------------------------------------------------------------ */
.section-tabelle table { width: 100% !important; border-spacing: 0 !important; margin: 0;  table-layout: auto;}
.section-tabelle table td{border-spacing:0px !important; vertical-align:top; padding: 2px 10px 2px 0;}
.section-tabelle table th {padding: 0px 10px 5px 0; text-align: left;}

.section-tabelle table td:first-child,
.section-tabelle table th:first-child { width: 1%; white-space: nowrap; padding-right: 30px;}

@media (max-width: 767px) {
.table-container{width: 100%;overflow-y: auto;_overflow: auto;margin: 0 0 1em;}
.table-container::-webkit-scrollbar{-webkit-appearance: none;width: 14px;height: 14px;}
.table-container::-webkit-scrollbar-thumb{border-radius: 8px;border: 3px solid #fff;background-color: rgba(0, 0, 0, .3);}
}












/* ------------------------------------------------------------ *\
	Slider
\* ------------------------------------------------------------ */
.slick-track {}
.slider-images { position:relative }
.slider-images .slider__slide { position: relative; }
.slider-images .slider__clip { overflow: visible; }
.slider-images .slider__clip img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
	border-radius: 20px;
	overflow: hidden; /* nötig, damit border-radius bei object-fit greift */
}
.slider-images .slider__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.slider-images .slider__prev { left: -28px; }
.slider-images .slider__next { right: -28px; }

.slider-projekte { position:relative }
.slider-projekte .slider__slide { position: relative; height: 100%; }
.slider-projekte .slider__clip { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; }
.slider-projekte .slider__clip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slider-projekte .slider__arrow { position: absolute; top: 50%; right: -28px; transform: translateY(-50%); z-index: 2; }
.slider-projekte-text .slider-text__slide { }


/* ------------------------------------------------------------ *\
	Slick Slider Navigations
\* ------------------------------------------------------------ */

/* DOTS */
.slick-dots { list-style-type: none;  margin: 15px auto 0 auto; 
display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack:center;-ms-flex-pack:center;justify-content:center; width: 100%;}
.slick-dots li { display: inline-block; width: 18px; height: 18px; border-radius:50%;-moz-border-radius:50%; -webkit-border-radius:50%; background: var(--c-weiss); border: 2px solid var(--c-sand); padding: 0; }
.slick-dots li:hover { border: 2px solid var(--c-sand-light)}
.slick-dots li + li { margin-left: 15px; }
.slick-dots button { background: transparent; border: 0; font-size: 0; }
.slick-dots .slick-active {  background: var(--c-sand); }

/* Hide dot when only one slide*/
.slick-dots li:only-child { display: none; }

@media (max-width: 767px),screen and (max-width: 812px) and (orientation: landscape) {
.slick-dots{margin-top:10px}
.slick-dots li{width:12px;height:12px;}
.slick-dots li + li{margin-left:12px}
}


/* ARROW BASIS 
.slider__arrow { position: absolute; top: 50%; left: 2.5rem; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; background: var(--c-sand-light); cursor: pointer; transition: all .3s ease; display: flex; align-items: center; justify-content: center; box-shadow: 0 5px 15px rgba(0,0,0,0.15);  }
.slider__arrow:hover { background: var(--c-sand);  }
.slider__arrow::before { content: ""; width: 16px; height: 16px; border-right: 2px solid var(--c-schwarz); border-bottom: 2px solid var(--c-schwarz); transform: rotate(135deg); transition: all .3s ease;  }
.slider__arrow:hover::before { border-color: var(--c-schwarz);  }

.slider__next { left: auto; right: 2.5rem;  }
.slider__next::before { transform: rotate(-45deg); margin-left: -5px;  }
.slider__prev::before { margin-right: -5px;  }

@media (max-width: 575px) {
  .slider__arrow { display: none !important; }
}
*/







.section-projekt_vorschau_startseite {}
.section-head {display: flex; justify-content: space-between; }

@media (max-width: 768px) {
.section-head {flex-direction: column; }
}




/*------------------------------------------------------------ *\
	News Card
\* ------------------------------------------------------------ */

.news-ubersicht {--bs-gutter-y: 5rem;}

.news-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-card__inner {
    position: relative;
    overflow: hidden;
    border-radius: 2rem;
}

.news-card__img {
    display: block;
    width: 100%;
    height: auto;
}

.news-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(147, 40, 44, 0.5);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.news-card:hover .news-card__overlay { opacity: 0;}

.news-card__title {
    position: absolute;
    left: 3rem;
    right: 3rem;
    bottom: var(--abstand-md);
    margin: 0;
    color: var(--c-weiss);
    z-index: 2;
    font-size: var(--fontsize-md)
}

/* ARROW */
.news-card-arrow {
    position: absolute;
    right: 3rem;
    top: 3rem;
    z-index: 3;
}


.news-card { transition: transform .3s ease; }
.news-card:hover { transform: translateY(-5px); }

.news-card:hover .icon-circle svg:first-child { opacity: 0; }
.news-card:hover .icon-circle svg:last-child { opacity: 1; }





/*------------------------------------------------------------ *\
	Projekte Card
\* ------------------------------------------------------------ */
.projekte-grid { --bs-gutter-y: 4rem;}

.projekte-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform .3s ease;
}
.projekte-card:hover {
    transform: translateY(-5px);
}

.projekte-card__inner {
    position: relative;
    overflow: hidden;
    border-radius: 2rem;
    margin-bottom: 2rem;
}

.projekte-card__img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .4s ease;
}
.projekte-card:hover .projekte-card__img {
    transform: scale(1.05);
}

.projekte-card__title {
    font-size: var(--fontsize-md);
    transition: color 0.2s ease;
}
.projekte-card:hover .projekte-card__title {
    color: var(--c-blau, #000);
}

@media (max-width: 768px) {
.projekte-grid { --bs-gutter-y: 2rem;}
}




/* ------------------------------------------------------------ *\
	Team Card
\* ------------------------------------------------------------ */

.row.team-cards { --bs-gutter-y: 4rem;}

.team-card {
	position: relative;
	transition: transform .3s ease;
}
.team-card:hover { transform: translateY(-5px); }

.team-card__inner {
	position: relative;
	overflow: hidden;
	border-radius: 2rem;
}
.team-card__img {
	display: block;
	width: 100%;
	height: auto;
}
.team-card__overlay {
	position: absolute;
	inset: 0;
	background: rgba(147, 40, 44, 0.5);
	opacity: 0;
	transition: opacity 0.3s ease;
}
.team-card:hover .team-card__overlay { opacity: 1; }

.team-card__content {
	position: absolute;
	left: 3rem;
	right: 3rem;
	bottom: var(--abstand-md);
	z-index: 2;
	color: var(--c-weiss);
}
.team-card__name {
	margin: 0;
	font-size: var(--fontsize-md);
    color: var(--c-weiss)
}
.team-card__funktion {
	font-size: var(--fontsize-xs);
}

/* ACTIONS (Tel/Mail) */
.team-card__actions {
	position: absolute;
	right: 3rem;
	top: 3rem;
	z-index: 3;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}
.team-card:hover .team-card__actions {
	opacity: 1;
	pointer-events: auto;
}

.team-card__actions .icon-circle:hover svg:first-child { opacity: 0; }
.team-card__actions .icon-circle:hover svg:last-child { opacity: 1; }


@media (max-width: 768px) {
.row.team-cards { --bs-gutter-y: 2rem;}
.team-card__overlay {opacity: 0;}
.team-card:hover .team-card__overlay { opacity: 0; }
.team-card__actions {opacity: 1;pointer-events: auto;}
}












/* ------------------------------------------------------------ *\
	Section Accordion
\* ------------------------------------------------------------ */
.accordion { border-bottom: 1px solid var(--c-rot); margin-top: -20px}

.accordion-trigger {font-size: var(--fontsize-md);
color: var(--c-schwarz);  padding: var(--abstand-xs) 0; border-top: 1px solid var(--c-rot);
display: table !important; table-layout: fixed !important; cursor: pointer; display: block; width: 100%; clear: both; position: relative; 
-webkit-transition: all .3s; -moz-transition: all .3s; -o-transition: all .3s; -ms-transition: all .3s; transition: all .3s;}
.accordion-trigger:first-of-type { border-top: none;}

.accordion-trigger:hover { color: var(--c-schwarz);}
.accordion-trigger-active { border-bottom: none; color: var(--c-schwarz);}

.accordion-trigger-open:before, .accordion-trigger-open:after {border-top: 2px solid var(--c-rot)}
.accordion-trigger-open:before {content: "";position: absolute;display: block;right: 0px; top: 50%; width: clamp(2rem, 0.865vw + 1.585rem, 3rem); height: 0;transform: rotate(0deg);transform-origin: center;-webkit-transition: all .5s ease;transition: all .5s ease;}
.accordion-trigger-open:after {content: "";position: absolute;display: block;margin: auto; right: 0px; top: 2px; bottom: 0;width: clamp(2rem, 0.865vw + 1.585rem, 3rem); height: 0; transform: rotate(90deg);transform-origin: center;transition: all .5s ease;}

.accordion-trigger:hover .accordion-trigger-open:before {border-top: 2px solid var(--c-schwarz); }
.accordion-trigger:hover .accordion-trigger-open:after {border-top: 2px solid var(--c-schwarz); }

.accordion-trigger-active .accordion-trigger-open:before {border-top: 2px solid var(--c-schwarz);transform: rotate(45deg);}
.accordion-trigger-active .accordion-trigger-open:after {border-top: 2px solid var(--c-schwarz);transform: rotate(-45deg); }

.accordion-content {padding: 0 0 var(--abstand-xs) 0; -webkit-animation:fadeOut .8s ease-out;animation:fadeOut .8s ease-out;  }
.accordion-content.open {-webkit-animation:fadeIn .8s ease-out;animation:fadeIn .8s ease-out}


















/* ------------------------------------------------------------ *\
	Section News
\* ------------------------------------------------------------ */
.section-news {}
.singlenews {}
.singlenews .newsdatum {margin-bottom: 20px}
.singlenews .lead { font-size: var(--fontsize-md); line-height: var(--line-height-md); margin-bottom: 30px}







/* ------------------------------------------------------------ *\
	Projekt Pagination
\* ------------------------------------------------------------ */
.project-pagination {  justify-content: space-between; gap: 2rem;}

.project-pagination__item { flex: 0 1 45%; text-decoration: none; color: inherit; gap: 1.5rem;}
.project-pagination__item--next { flex-direction: row-reverse; margin-left: auto;}
.project-pagination__image {  position: relative;  flex: 0 0 256px;}
.project-pagination__image-inner {  aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden;}
.project-pagination__image-inner img { width: 100%; height: 100%; object-fit: cover; display: block;}
.project-pagination__arrow {  position: absolute;  top: 50%;  transform: translateY(-50%); z-index: 2;position: absolute !important}

.project-pagination__item--prev .project-pagination__image {margin-right: var(--abstand-md)}
.project-pagination__item--next .project-pagination__image {margin-left: var(--abstand-md)}

.project-pagination__item--prev .project-pagination__arrow { right: -28px; }
.project-pagination__item--next .project-pagination__arrow { left: -28px;}

.project-pagination__text h5 { margin-bottom: 0.5rem;}
.project-pagination__text p { font-size: var(--fontsize-xxs); margin: 0;}


.icon-circle.project-pagination__arrow svg:first-child { opacity: 1; }
.icon-circle.project-pagination__arrow svg:last-child:not(:only-child) { opacity: 0; }

@media (max-width: 767px) {
.icon-circle.project-pagination__arrow svg:first-child { opacity: 0; }
.icon-circle.project-pagination__arrow svg:last-child:not(:only-child) { opacity: 1; }
    
.project-pagination__item--next { display: none !important; }

.project-pagination__item--prev { flex-direction: column; align-items: stretch; flex: 0 1 100%; gap: 1rem;}
.project-pagination__item--prev .project-pagination__image { flex: 0 0 auto; width: 100%; margin-right: 0; margin-bottom: 35px}

.project-pagination__item--prev .project-pagination__arrow { top: auto; bottom: 0; left: 50%; right: auto; transform: translate(-50%, 50%);}
}





/* ========================================
   SINGLE PAGINATION
======================================== */
.single-pagination { justify-content: space-between; gap: 2rem;  }

.single-pagination__item { flex: 0 1 45%; text-decoration: none; color: inherit; gap: 1.5rem; }
.single-pagination__item--next { flex-direction: row-reverse; margin-left: auto; }
.single-pagination__image { position: relative; flex: 0 0 256px; }
.single-pagination__image-inner { aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; }
.single-pagination__image-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.single-pagination__arrow { position: absolute !important; top: 50%; transform: translateY(-50%); z-index: 2; }
.single-pagination__item--prev .single-pagination__image { margin-right: var(--abstand-md); }
.single-pagination__item--next .single-pagination__image { margin-left: var(--abstand-md); }
.single-pagination__item--prev .single-pagination__arrow { right: -28px; }
.single-pagination__item--next .single-pagination__arrow { left: -28px; }
.single-pagination__text h4 { margin-bottom: 0.5rem; }
.single-pagination__text p { font-size: var(--fontsize-xxs); margin: 0; }
.icon-circle.single-pagination__arrow svg:first-child { opacity: 1; }
.icon-circle.single-pagination__arrow svg:last-child:not(:only-child) { opacity: 0; }

@media (max-width: 767px) {
    .single-pagination { margin: 20px 0 60px; padding: 20px 0; }
    .icon-circle.single-pagination__arrow svg:first-child { opacity: 0; }
    .icon-circle.single-pagination__arrow svg:last-child:not(:only-child) { opacity: 1; }
    .single-pagination__item--next { display: none !important; }
    .single-pagination__item--prev { flex-direction: column; align-items: stretch; flex: 0 1 100%; gap: 1rem; }
    .single-pagination__item--prev .single-pagination__image { flex: 0 0 auto; width: 100%; margin-right: 0; margin-bottom: 35px; }
    .single-pagination__item--prev .single-pagination__arrow { top: auto; bottom: 0; left: 50%; right: auto; transform: translate(-50%, 50%); }
}






/* ==========================================================================
   Scroll-Reveal: Elemente von unten einblenden
   ========================================================================== */
.js-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  transition-delay: var(--reveal-delay, 0s);
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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









/* ------------------------------------------------------------ *\
	Footer
\* ------------------------------------------------------------ */
.footer { background: var(--c-rot); color: var(--c-weiss); 
margin: 0 auto; padding: var(--abstand-md) 0; font-size: var(--fontsize-sm); line-height: var(--line-height-md); 
border-top-left-radius: 30px; border-top-right-radius: 30px;
position: relative; width: 100%; 
}

.footer a{ color: var(--c-weiss) }
.footer a:hover{ color: var(--c-weiss) ; opacity: .7  }

.footer-logo {}
.footer-logo img {max-height: 80px;}

.footer-social-media { display: flex; gap: 1rem;}


.footer .footer-nav ul { display: flex; flex-direction: column; align-items: flex-start;justify-content: flex-start;  gap: -0.2em; }
.footer .footer-nav li { list-style: none; }
.footer .footer-nav a {font-size: var(--fontsize-sm);line-height: var(--line-height-sm);text-decoration: none; color: var(--c-purple);}
.footer .footer-nav a:hover { color: var(--c-purple-light); text-decoration: none;}
.footer .footer-nav li.current_page_item a {color: var(--c-purple-light);text-decoration: none;}


.footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    column-gap: 3rem;
    row-gap: var(--abstand-md);
}
.footer-logo         { flex: 0 0 auto; margin-right: var(--abstand-xl); }
.footer-logo img     { display: block; max-height: 80px; width: auto;}

.footer-adresse,
.footer-contact {
    flex: 0 0 auto;
    margin-right: var(--abstand-xs);
    line-height: var(--line-height-sm);
    margin-bottom: calc(var(--fontsize-sm) * (var(--line-height-sm) - .5) / -2);
}

.footer-social-media { flex: 0 0 auto; }

.footer-nav {
    flex: 0 0 auto;
    margin-left: auto;
    margin-bottom: calc(var(--fontsize-sm) * (var(--line-height-md) - .5) / -2);
}

@media (max-width: 767px) {
.footer-row { flex-direction: column; align-items: flex-start }
.footer-nav { margin-left: 0; }
    
.footer-logo,
.footer-adresse,
.footer-contact { margin-right: 0; }
.footer-logo img { max-height: 58px; }
}







