/* your styles go here */
/* Example site test */

.box-image-text .image {
    min-height: 190px;
    max-height: 190px;
}

.box-image-text .image img {
    max-height: 190px;
    margin: auto;
}

.box-simple {
    min-height: 230px;
}

/* Kundenlogos: ganze Karte klickbar, einheitlicher Look, Logo groß und mittig */
/* Owl Carousel erzeugt zur Laufzeit einen .owl-wrapper-outer mit overflow:hidden,
   der exakt auf die Höhe der Items zugeschnitten ist. Padding auf der <ul> selbst
   bringt nichts, da es außerhalb dieses Clip-Containers liegt - der Hover-Lift-
   Effekt (transform + box-shadow) wird daher oben abgeschnitten. Fix: Platz direkt
   im .owl-wrapper-outer schaffen. */
.customers .owl-wrapper-outer {
    padding-top: 10px;
    margin-top: -10px;
}

.customers .item {
    padding: 0;
}

.client-card {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

a.client-card:hover,
a.client-card:focus {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-accent, #2c8a9c);
    transform: translateY(-2px);
}

/* Graustufen-Effekt: Farbe beim Hover über die ganze Karte zeigen, nicht nur über dem Bild
   (überschreibt die Theme-Regel .customers .item img:hover, die nur beim direkten
   Hover auf das <img> greift). */
.client-card img {
    max-height: 80px;
    max-width: 85%;
    width: auto !important;
    filter: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grayscale'><feColorMatrix type='matrix' values='0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0'/></filter></svg>#grayscale");
    filter: gray;
    -webkit-filter: grayscale(100%);
    transition: -webkit-filter 0.3s ease-in, filter 0.3s ease-in;
}

.client-card:hover img,
.client-card:focus img {
    filter: none;
    -webkit-filter: none;
}

/* Carousel-Bilder auf einheitliche Höhe begrenzen, unabhängig vom Seitenverhältnis */
.home-carousel .item img {
    max-height: 260px;
    width: auto !important;
    max-width: 100%;
    margin: 0 auto;
    display: block;
}

/* Foto-Slides im Carousel (z.B. "Persönlich"): rundes Bild mit Ring statt hartem Rechteck */
.home-carousel .item-photo .col-sm-7 {
    /* Der Rahmen klebt sonst oben an der vom Carousel fixierten Slide-Höhe
       (.owl-wrapper-outer, overflow:hidden) statt vertikal zentriert zu sein.
       Beim Hover-Zoom wächst er dann nur nach oben aus dem Rahmen. */
    display: flex;
    align-items: center;
    height: 260px;
}

.home-carousel .item-photo .photo-frame {
    /* etwas kleiner als die vom Carousel fixierte Slide-Höhe (260px),
       damit beim Hover-Zoom (scale 1.04) nichts am äußeren
       .owl-wrapper-outer (overflow:hidden) abgeschnitten wird */
    width: 220px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    border-radius: 50%;
    padding: 6px;
    border: 3px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
    flex-shrink: 0;
}

.home-carousel .item-photo .photo-frame img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 20%;
    display: block;
    margin: 0;
}

/* Ganze Slide klickbar machen, ohne den Linktext-Look zu übernehmen */
.home-carousel .carousel-slide-link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.home-carousel .carousel-slide-link:hover,
.home-carousel .carousel-slide-link:focus {
    color: inherit;
    text-decoration: none;
}

.home-carousel .carousel-slide-link:hover .photo-frame {
    transform: scale(1.04);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Sichtbarer CTA-Hinweis unter dem Text, auch ohne Hover erkennbar (wichtig für Mobile) */
.home-carousel .carousel-cta {
    display: inline-block;
    margin-top: 18px;
    padding: 10px 22px;
    border: 2px solid #ffffff;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: background 0.2s ease, color 0.2s ease;
}

.home-carousel .carousel-slide-link:hover .carousel-cta {
    background: #ffffff;
    color: #1a1a1a;
}

/* Geometrisches Low-Poly-Muster (aus dem Theme, wie im Seiten-Header
   "#heading-breadcrumbs" verwendet) statt der Theme-Demo-Stockfoto-Collage
   (photogrid.jpg) als Hintergrund für den Homepage-Carousel */
.home-carousel,
.jumbotron {
    background: url('../img/texture-bw.png') center center repeat !important;
    background-size: 600px !important;
}

/* Der dunkle Teal-Overlay (.dark-mask, 90% Deckkraft) verschluckt sonst
   das helle Low-Poly-Muster fast vollständig. Deckkraft reduzieren, damit
   das Muster erkennbar bleibt, Text/Buttons aber weiterhin lesbar sind. */
.home-carousel .dark-mask {
    opacity: 0.55 !important;
}

/* Kennzahlen-Leiste auf der Startseite */
.stats-row {
    display: flex;
    flex-wrap: wrap;
    text-align: center;
}

.stat-item {
    padding: 15px 20px;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-accent, #2c8a9c);
    line-height: 1.2;
}

.stat-label {
    margin-top: 6px;
    font-size: 14px;
    color: #666666;
    line-height: 1.4;
}

/* "See more" CTA background: eigenes Bild statt Theme-Platzhalter */
.bar.background-image-fixed-2 {
    background-image: url('../img/see-more-bg.jpg');
}


/* ==========================================================================
   Leistungen-Detailseiten (z.B. /leistungen/erp-integration/)
   ========================================================================== */

.leistung-detail {
    padding-top: 10px;
    padding-bottom: 20px;
}

.leistung-intro p {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
}

.leistung-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0 40px;
}

.leistung-benefit {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1 1 calc(50% - 20px);
    min-width: 260px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    padding: 18px 20px;
}

.leistung-benefit-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary-accent, #2c8a9c);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.leistung-benefit-text h4 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
}

.leistung-benefit-text p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.leistung-freetext {
    margin-bottom: 30px;
    line-height: 1.7;
    color: #444;
}

.leistung-systems {
    margin: 30px 0;
}

.leistung-systems h4 {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 14px;
}

.leistung-systems-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.leistung-system-tag {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 20px;
    background: #f2f2f2;
    color: #555;
    font-size: 14px;
}

a.leistung-system-tag-link {
    background: #eaf6f8;
    color: var(--primary-accent, #2c8a9c);
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

a.leistung-system-tag-link:hover,
a.leistung-system-tag-link:focus {
    background: var(--primary-accent, #2c8a9c);
    color: #fff;
}

.leistung-cta {
    margin-top: 40px;
    padding: 24px;
    background: #f7fafb;
    border-left: 3px solid var(--primary-accent, #2c8a9c);
}

.leistung-cta p {
    margin-bottom: 14px;
    font-size: 16px;
}

/* ==========================================================================
   Systeme-Detailseiten (z.B. /systeme/weclapp/)
   ========================================================================== */

.system-detail {
    padding-top: 10px;
    padding-bottom: 20px;
}

.system-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.system-logo {
    max-width: 220px;
}

.system-logo img {
    max-height: 70px;
    max-width: 100%;
    width: auto;
}

.system-logo-dark-bg {
    background: #2b2b2b;
    padding: 10px 16px;
    border-radius: 4px;
}

.system-category-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    background: #f2f2f2;
    color: #666;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.system-modules {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.system-module-tag {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 20px;
    background: #eaf6f8;
    color: var(--primary-accent, #2c8a9c);
    font-size: 14px;
    font-weight: 600;
}

.system-freetext {
    line-height: 1.7;
    color: #444;
    margin-bottom: 20px;
}

.system-cta {
    margin-top: 30px;
    padding: 24px;
    background: #f7fafb;
    border-left: 3px solid var(--primary-accent, #2c8a9c);
}

.system-cta p {
    margin-bottom: 14px;
    font-size: 16px;
}

.system-manufacturer-note {
    margin-top: 30px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #999;
}

.system-manufacturer-note a {
    color: #999;
    text-decoration: underline;
}

.system-external-hint {
    display: inline-block;
    margin-left: 2px;
}

/* ==========================================================================
   Navigation: Dropdown-Elternpunkt als echter Link + separater Caret-Toggle
   ========================================================================== */

#navbar .dropdown > a:not(.dropdown-toggle) {
    display: inline-block;
}

#navbar .dropdown-caret-toggle {
    display: inline-block;
    padding-left: 4px;
    padding-right: 10px;
}

#navbar .dropdown-caret-toggle .caret {
    margin-left: 2px;
}
