/* GEMEINSAME BASIS FÜR ALLE HEXAGONE */

.hexagon-container {
    width: 100%;
    padding: 0;
    overflow: visible;
}

.hexagon-grid {
    position: relative;
    margin: 0 auto;
    padding: 0;
}

.hexagon-wrapper {
    position: absolute;
    transition: transform 0.3s ease;
    z-index: 1;
}

.hexagon-wrapper.active {
    z-index: 1001;
}

.hexagon {
    position: relative;
    width: 100%;
    height: 100%;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hexagon:hover {
    transform: scale(1.05);
}

@media (max-width: 767px) {
    .hexagon:hover {
        transform: none;
    }
}

.hexbox {
    background: rgba(169, 186, 214, 0.5);
}

/* VARIANTE 1: MIT EXPANDER */

.hexagon-v1 {
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hexagon-v1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.8s ease;
    z-index: 1;
}

.hexagon-v1:hover::before,
.hexagon-v1.active::before {
    background: rgba(0, 0, 0, 0.4);
}

.hexagon-title,
.hexagon-subtitle {
    position: relative;
    z-index: 2;
    line-height: 1.2;
    color: white;
    text-align: center;
    margin: 0;
    word-wrap: break-word;
    max-width: 100%;
}

.hexagon-title {
    font-weight: bold;
    font-size: clamp(20px, 5vw, 24px);
    padding-top: 0;
}

.hexagon-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(16px, 3.5vw, 20px);
}

.expand-content hr {
    border: 1px solid;
    border-color: #fff;
    margin: 0 0 1.2rem 0;
}

.hexagon-expand {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 3px 5px 10px hsla(0, 0%, 0%, 0.5);
    border-radius: 10px;
}

.hexagon-wrapper.active .hexagon-expand {
    width: 100%;
    height: auto;
    min-height: 200px;
    pointer-events: auto;
}

.expand-trapezoid {
    position: relative;
    clip-path: polygon(22.5% 0%, 77.5% 0%, 100% 40px, 0% 40px);
    width: 100%;
    height: 40px;
}

.hexgruen {
    background: #b3ad00;
}

.hexgruen-dark {
    background: #b3ad00;
}

.hexblau {
    background: #102c68;
}

.hextuerkis {
    background: #004a5b;
}

.hexrot {
    background: #bc0d0c;
}

.hexdunkelrot {
    background: #890f01;
}

.hexlila {
    background: #640082;
}

.hexgelb {
    background: #f7a600;
}

.hexorange {
    background: #e9550c;
}

.expand-content {
    padding: 20px 10px 30px 10px;
    width: 100%;
    border-radius: 0 0 10px 10px;
}

.expand-content h3 {
    margin: 0 0 15px 0;
    color: #fff;
    font-size: 21px;
    padding-bottom: 20px;
    line-height: 1.4;
    font-family: 'RotisSansSerifW02-Bold', sans-serif
}

.expand-content p {
    margin: 0;
    color: #fff;
    font-size: 19px;
    line-height: 1.6;
}

.expand-content li {
    margin: 0;
    color: #fff;
    font-size: 19px;
    line-height: 1.2;
    padding: 5px 0 0 0;
}

/* Top-Bereich mit dunklem Overlay */
.hex-expander-top {
    position: relative;
    padding: 30px 30px 15px 30px;
    margin: -30px -30px 0 -30px;
    overflow: hidden;
}

/* Dunkles Overlay über dem Hintergrundbild */
.hex-expander-top::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0); /* Schwarz mit 60% Deckkraft */
    z-index: 0;
}

.hex-expander-top-content {
    position: relative;
    z-index: 1;
}

.hex-expander-top-content h3,
.hex-expander-top-content a {
    color: #fff;
    margin: 0;
}

/* Helles Overlay über dem Hintergrundbild */
.hex-expander-middle {
    position: relative;
    padding: 15px 30px;
    margin: 0 -30px -15px -30px;
}

.hex-expander-middle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.4); /* Schwarz mit 60% Deckkraft */
    z-index: 0;
}

.hex-expander-middle-content {
    position: relative;
    z-index: 1;
}

.hex-expander-middle-content p,
.hex-expander-middle-content a {
    color: #000;
    margin: 0;
}

.hex-expander-fuss,
.hex-expander-fuss a {
    color: #fff;
    padding: 15px 30px 30px 30px;
    margin: 15px -30px -30px -30px;
}

.hex-expander-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2); /* Schwarz mit 60% Deckkraft */
    z-index: 0;
}

.hex-expander-link,
.hex-expander-link a {
    position: relative;
    color: #fff;
    padding: 15px 30px;
    margin: 15px -30px -30px -30px;
    border-radius: 0 0 10px 10px;
}

/* Referenzen überschriften */

.hex-expander-referenz-top {
    position: relative;
    padding: 15px 30px 8px 30px;
    margin: -30px -30px 0 -30px;
    overflow: hidden;
}

.hex-expander-referenz-middle {
    position: relative;
    padding: 7px 30px 7px 30px;
    margin: 0 -30px 0 -30px;
    overflow: hidden;
}

.hex-expander-referenz-middle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.4); /* Schwarz mit 60% Deckkraft */
    z-index: 0;
}

/* schaltet das milchige über den h3 Streifen aus */
.hexagonbg_leistung_A34.hex-expander-referenz-middle::after {
    background: rgba(255, 255, 255, 0);
}

.hexagonbg_leistung_A35.hex-expander-referenz-middle::after {
    background: rgba(255, 255, 255, 0);
}

.hexagonbg_leistung_A36.hex-expander-referenz-middle::after {
    background: rgba(255, 255, 255, 0);
}

.hexagonbg_leistung_A37.hex-expander-referenz-middle::after {
    background: rgba(255, 255, 255, 0);
}

/* ENDE  */

.hex-expander-referenz-fuss {
    position: relative;
    padding: 7px 30px 7px 30px;
    margin: 0 -30px -30px -30px;
    overflow: hidden;
}

.hex-expander-referenz-top-content {
    position: relative;
    z-index: 1;
}

.hex-expander-referenz-top-content h3 {
    color: #fff;
    margin: 0;
}

.hex-expander-referenz-middle-content {
    position: relative;
    z-index: 1;
}

.hex-expander-referenz-middle-content p {
    color: #000;
    margin: 0;
}

.hex-expander-referenz-content {
    position: relative;
    z-index: 1;
}

.hex-expander-referenz-content h3 {
    color: #fff;
    font-size: 13px;
    margin: 0;
    padding: 0;
}

.hex-expand-referenz-content p {
    margin: 0 0 20px 0;
    color: #000;
    font-size: 19px;
    line-height: 1.3;

}

/* ========================================
   VARIANTE 2: MIT OVERLAY
======================================== */

.hexagon-v2 {
    overflow: hidden;
}

.hexagon-v2 .hex-bg-default,
.hexagon-v2 .hex-bg-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 0.6s ease;
}

.hexagon-v2 .hex-bg-hover {
    opacity: 0;
}

.hexagon-v2.active .hex-bg-default {
    opacity: 0;
}

.hexagon-v2.active .hex-bg-hover {
    opacity: 1;
}

.hexagon-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.6s ease;
    z-index: 1;
}

.hexagon-v2:hover::before,
.hexagon-v2.active::before {
    background: rgba(0, 0, 0, 0.1);
}

.hex-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8% 13%;
}

.hex-title {
    color: white;
    font-weight: bold;
    text-align: center;
    margin: 0;
    word-wrap: break-word;
    max-width: 100%;
    line-height: 1.2;
    font-size: clamp(24px, 5vw, 26px);
    transition: opacity 0.3s ease, transform 0.4s ease;
}

.hex-subtitle {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin: 10px 0 0 0;
    word-wrap: break-word;
    max-width: 100%;
    font-size: clamp(16px, 3.5vw, 22px);
    transition: opacity 0.3s ease, transform 0.4s ease;
}

.hex-hover-content {
    position: absolute;
    top: 60%;
    left: 0;
    right: 0;
    padding: 0 13%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(-50%) translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 3;
    pointer-events: none;
}

.hexagon-v2.active .hex-title,
.hexagon-v2.active .hex-subtitle {
    opacity: 0;
    transform: translateY(-10px);
}

.hexagon-v2.active .hex-hover-content {
    opacity: 1;
    transform: translateY(-50%);
    pointer-events: auto;
}

.hex-text {
    color: white;
    font-size: clamp(14px, 3vw, 16px);
    line-height: 1.5;
    margin: 0;
    text-align: center;
}

.hex-link-fixed {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    font-size: clamp(14px, 3vw, 16px);
    font-weight: 600;
    color: #fff !important;
    text-decoration: none;
    z-index: 4;
    opacity: 0;
    transition: opacity 0.4s ease 0.2s;
    pointer-events: none;
}

.hexagon-v2.active .hex-link-fixed {
    opacity: 1;
    pointer-events: auto;
}

.hex-link-fixed:hover {
    text-decoration: none;
    color: #fff;
}

.hex-link-fixed:visited {
    color: #fff;
}

.hexagon-v2.active .hex-link-fixed {
    opacity: 1;
}

.hexlogo img {
    position: absolute;
    top: 30%;
    left: 20%;
    right: 20%;
    max-width: 60%;
    max-height: 60%;
}

/* ========================================
   BACKGROUND-KLASSEN
======================================== */

/* Variante 1 - direkte Backgrounds */
.hexagonbg_01 {
    background-image: url("/images/hexagonbg/hexagonbgin62.jpg");
}

.hexagonbg_01:hover {
    background-image: url("/images/hexagonbg/hexagonbgin63.jpg");
}

.hexagonbg_02 {
    background-image: url("/images/hexagonbg/hexagonbg_blauverlauf.jpg");
}

.hexagonbg_02:hover {
    background-image: url("/images/hexagonbg/hexagonbg_bogenpunkteblau.jpg");
}

.hexagonbg_03 {
    background-image: url("/images/hexagonbg/hexagonbg_rotverlauf.jpg");
}

.hexagonbg_03:hover {
    background-image: url("/images/hexagonbg/hexagonbg_airot.jpg");
}

.hexagonbg_ins_white {
    background-color: #fff;
}

.hexagonbg_motiv01 {
    background-image: url("/images/hexagonleistung/hexagonbg_motiv.jpg");
}

.hexagonbg_motiv02 {
    background-image: url("/images/hexagonleistung/hexagonbg_motiv2.jpg");
}

.hexagonbg_motiv03 {
    background-image: url("/images/hexagonleistung/hexagonbg_motiv3.jpg");
}

.hexagonbg_ins04 {
    background-image: url("/images/hexagonbg/hexagonbgin18.jpg");
}

.hexagonbg_ins05 {
    background-image: url("/images/hexagonbg/hexagonbgin19.jpg");
}

.hexagonbg_ins06 {
    background-image: url("/images/hexagonbg/hexagonbgin20.jpg");
}

.hexagonbg_ins07 {
    background-image: url("/images/hexagonbg/hexagonbgin21.jpg");
}

.hexagonbg_ins08 {
    background-image: url("/images/hexagonbg/hexagonbgin22.jpg");
}

.hexagonbg_ins09 {
    background-image: url("/images/hexagonbg/hexagonbgin23.jpg");
}

.hexagonbg_ins10 {
    background-image: url("/images/hexagonbg/hexagonbgin24.jpg");
}

.hexagonbg_ins11 {
    background-image: url("/images/hexagonbg/hexagonbgin25.jpg");
}

.hexagonbg_ins12 {
    background-image: url("/images/hexagonbg/hexagonbgin26.jpg");
}

.hexagonbg_ins13 {
    background-image: url("/images/hexagonbg/hexagonbgin27.jpg");
}

.hexagonbg_ins14 {
    background-image: url("/images/hexagonbg/hexagonbgin28.jpg");
}

.hexagonbg_ins15 {
    background-image: url("/images/hexagonbg/hexagonbgin29.jpg");
}


.hexagonbg_leistung_Amiddle {
    background-image: url("/images/hexagonleistung/hexagonbginleistung_v03_ick42.jpg");
}

.hexagonbg_leistung_Areferenzmiddle {
    background-image: url("/images/hexagonleistung/hexagonbginleistung_v03_ick42.jpg");
}

.hexagonbg_leistung_Afoot {
    background-image: url("/images/hexagonleistung/hexagonbginleistung_v03_ick43.jpg");
}

.hexagonbg_leistung_A00 {
    background-image: url("/images/hexagonleistung/hexagonbginleistung_v03_ick31.jpg");
}

.hexagonbg_leistung_A01 {
    background-image: url("/images/hexagonleistung/hexagonbginleistung_v03_ick1.jpg");
}

.hexagonbg_leistung_A02 {
    background-image: url("/images/hexagonleistung/hexagonbginleistung_v03_ick2.jpg");
}

.hexagonbg_leistung_A03 {
    background-image: url("/images/hexagonleistung/hexagonbginleistung_v03_ick3.jpg");
}

.hexagonbg_leistung_A04 {
    background-image: url("/images/hexagonleistung/hexagonbginleistung_v03_ick4.jpg");
}

.hexagonbg_leistung_A05 {
    background-image: url("/images/hexagonleistung/hexagonbginleistung_v03_ick5.jpg");
}

.hexagonbg_leistung_A06 {
    background-image: url("/images/hexagonleistung/hexagonbginleistung_v03_ick6.jpg");
}

.hexagonbg_leistung_A07 {
    background-image: url("/images/hexagonleistung/hexagonbginleistung_v03_ick7.jpg");
}

.hexagonbg_leistung_A08 {
    background-image: url("/images/hexagonleistung/hexagonbginleistung_v03_ick8.jpg");
}

.hexagonbg_leistung_A09 {
    background-image: url("/images/hexagonleistung/hexagonbginleistung_v03_ick9.jpg");
}


.hexagonbg_leistung_A10 {
    background-image: url("/images/hexagonleistung/hexagonbginleistung_v03_ick32.jpg");
}

.hexagonbg_leistung_A11 {
    background-image: url("/images/hexagonleistung/hexagonbginleistung_v03_ick31.jpg");
}

.hexagonbg_leistung_A12 {
    background-image: url("/images/hexagonleistung/hexagonbginleistung_v03_ick12.jpg");
}

.hexagonbg_leistung_A13 {
    background-image: url("/images/hexagonleistung/hexagonbginleistung_v03_ick13.jpg");
}

.hexagonbg_leistung_A20 {
    background-image: url("/images/hexagonleistung/hexagonbginleistung_v03_ick33.jpg");
}

.hexagonbg_leistung_A21 {
    background-image: url("/images/hexagonleistung/hexagonbginleistung_v03_ick21.jpg");
}

.hexagonbg_leistung_A22 {
    background-image: url("/images/hexagonleistung/hexagonbginleistung_v03_ick22.jpg");
}

.hexagonbg_leistung_A23 {
    background-image: url("/images/hexagonleistung/hexagonbginleistung_v03_ick23.jpg");
}

.hexagonbg_leistung_A34 {
    background-image: url("/images/hexagonleistung/hexagonbginleistung_v03_ick34.jpg");
}

.hexagonbg_leistung_A35 {
    background-image: url("/images/hexagonleistung/hexagonbginleistung_v03_ick35.jpg");
}

.hexagonbg_leistung_A36 {
    background-image: url("/images/hexagonleistung/hexagonbginleistung_v03_ick36.jpg");
}

.hexagonbg_leistung_A37 {
    background-image: url("/images/hexagonleistung/hexagonbginleistung_v03_ick37.jpg");
}

.hexagonbg_leistung_A38 {
    background-image: url("/images/hexagonleistung/hexagonbginleistung_v03_ick38.jpg");
}

.hexagonbg_leistung_A39 {
    background-image: url("/images/hexagonleistung/hexagonbginleistung_v03_ick39.jpg");
}

.hexagonbg_leistung_A40 {
    background-image: url("/images/hexagonleistung/hexagonbginleistung_v03_ick40.jpg");
}


/* Variante 2 - Backgrounds für hex-bg DIVs */
.hexagonbg_ins01 .hex-bg-default {
    background-image: url("/images/hexagonbg/hexagonbgin58.jpg");
}

.hexagonbg_ins01 .hex-bg-hover {
    background-image: url("/images/hexagonbg/hexagonbgin59.jpg");
}

.hexagonbg_ins02 .hex-bg-default {
    background-image: url("/images/hexagonbg/hexagonbgin60.jpg");
}

.hexagonbg_ins02 .hex-bg-hover {
    background-image: url("/images/hexagonbg/hexagonbgin61.jpg");
}

.hexagonbg_ins03 .hex-bg-default {
    background-image: url("/images/hexagonbg/hexagonbgin62.jpg");
}

.hexagonbg_ins03 .hex-bg-hover {
    background-image: url("/images/hexagonbg/hexagonbgin63.jpg");
}

.hexagonbg_ins04 .hex-bg-default {
    background-image: url("/images/hexagonbg/hexagonbgin64.jpg");
}

.hexagonbg_ins04 .hex-bg-hover {
    background-image: url("/images/hexagonbg/hexagonbgin65.jpg");
}

.hexagonbg_ins05 .hex-bg-default {
    background-image: url("/images/hexagonbg/hexagonbgin66.jpg");
}

.hexagonbg_ins05 .hex-bg-hover {
    background-image: url("/images/hexagonbg/hexagonbgin67.jpg");
}

.hexagonbg_ins06 .hex-bg-default {
    background-image: url("/images/hexagonbg/hexagonbgin68.jpg");
}

.hexagonbg_ins06 .hex-bg-hover {
    background-image: url("/images/hexagonbg/hexagonbgin69.jpg");
}


/*   Newsgrid  */

.news-container {
    width: 100%;
    padding: 40px 20px;
}

.news-grid {
    display: grid;
    gap: 20px;
    max-width: 1320px;
    margin: 0 auto;
}

/* Responsive Grid */
@media (min-width: 1040px) {
    .news-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 900px) and (max-width: 1199px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 600px) and (max-width: 899px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 599px) {
    .news-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
    }
}

.news-item {
    position: relative;
    width: 100%;
    aspect-ratio: 320 / 500;
    max-width: 320px;
    margin: 0 auto;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 0.4s ease;
}

.news-background.bg-default {
    opacity: 1;
}

.news-background.bg-hover {
    opacity: 0;
}

.news-item.active .news-background.bg-default {
    opacity: 0;
}

.news-item.active .news-background.bg-hover {
    opacity: 1;
}

.news-content {
    position: relative;
    height: 100%;
    padding: 25px;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.news-category {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    transition: color 0.3s ease;
    padding-bottom: 0;
}

.news-headline {
    margin: 0;
    transition: color 0.3s ease;
    padding-bottom: 0;
}

.news-headline h3 {
    font-size: 22px;
    text-shadow: 1px 1px 2px #000;
    font-family: 'RotisSansSerifW02-Extra', sans-serif;
    line-height: 1.1;
}


.news-white h3 {
    color: #fff;
}

.news-text {
    margin: 0;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-width 0.5s ease, opacity 0.4s ease 0.1s;
    white-space: normal;
}

.news-text p {
    font-size: 18px;
    line-height: 1.4;
}

.news-item.active .news-text {
    max-width: 100%;
    opacity: 1;
}

.news-more {
    position: absolute;
    bottom: 0;
    right: 25px;
    font-size: 16px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease 0.3s;
    pointer-events: none;
    text-decoration: none;
    display: inline-block;

    z-index: 10;
}


.news-item.active .news-more {
    opacity: 1;
    pointer-events: auto;
}

/* Text-Farben basierend auf Hintergrund */
.news-item.dark-bg .news-category, .news-item.dark-bg .news-category a,
.news-item.dark-bg .news-headline,
.news-item.dark-bg .news-text,
.news-item.dark-bg .news-more {
    color: white;
}

.news-item.light-bg .news-category,
.news-item.light-bg .news-headline,
.news-item.light-bg .news-text,
.news-item.light-bg .news-more {
    color: black;
}

/* Touch-Geräte */
@media (max-width: 1024px) {
    .news-item:hover {
        transform: none;
    }
}

/*  Ende Newsgrid */
        