@font-face {
    font-family: 'Ubuntu-Light';
    src: url('../../Fonts/Ubuntu-Light.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Ubuntu-Light-italic';
    src: url('../../Fonts/Ubuntu-LightItalic.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Ubuntu-Regular';
    src: url('../../Fonts/Ubuntu-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Ubuntu-Italic';
    src: url('../../Fonts/Ubuntu-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Ubuntu-Medium';
    src: url('../../Fonts/Ubuntu-Medium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Ubuntu-Medium-italic';
    src: url('../../Fonts/Ubuntu-MediumItalic.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Ubuntu-Bold';
    src: url('../../Fonts/Ubuntu-Bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Ubuntu-Bold-italic';
    src: url('../../Fonts/Ubuntu-BoldItalic.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Stereo-Gothic';
    src: url('../../Fonts/R400.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

.reveal {
    opacity: 0;
    transform: translateY(3rem);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

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

/* --- Allgemeine Einstellungen und Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

[class*="jmb-btn"]:hover {
    background-color: inherit;
}

html {
    font-family: var(--font-primary);
    font-variation-settings: "wght" 375;
    word-break: break-word;
    white-space: normal;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bodyBg);
    color: var(--txtColor);
    line-height: 1.6;
}

main {
    padding-top: var(--headerHeight);
}

.label-font {
    font-family: var(--font-secondary);
}

a {
    color: var(--color-accent-green);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--color-accent-hover);
}

ul {
    padding-left: 1.2rem;
}

.logo {
    display: inline-block;
    height: 100%;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-accent-green);
}

.logo img {
    height: 100%;
    max-width: 20vw;
    object-fit: contain;
    display: block;
}

.jmb-field input, .jmb-field textarea, .jmb-field select {
    order: 2;
}

.jmb-field label {
    order: 1;
}

.jmb-field input[required] + label::after {
    content: " *";
    color: var(--primaryColor);
}

#contactMessage {
    min-height: 12rem;
}

.serviceDetail:has(.jmb-ifl-r) {
    background-color: var(--secBodyBg);
}

.priBg {
    background-color: var(--primaryColor);
}

.secBg {
    background-color: var(--secBodyBg);
}

.jmb-text-color-primary {
    color: var(--primaryColor);
}

.jmb-text-color-secondary {
    color: var(--secondaryColor);
}

/** Sportsclub Unterseiten */

.variantImage {
    display: flex;
    align-items: flex-start;
}

.borderBox {
    display: flex;
    border: 0.2rem solid var(--primaryColor);
    box-shadow: rgba(0, 0, 0, 0.24) 0 3px 8px;
    aspect-ratio: 4 / 3;
}

.imageBox {
    display: flex;
    overflow: hidden;
    width: 100%;
    box-shadow: rgba(0, 0, 0, 0.24) 0 3px 8px;
}

.imageBox img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #fff;
    transition: transform 0.3s ease;
}

.imageBox img:hover {
    transform: scale(1.05);
}

.variantSection:nth-of-type(odd) {
    background-color: var(--secBodyBg);
}

/** Counter */

.counter-box {
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--primaryColor);
}

.counter-box i {
    font-size: 2.5rem;
    color: var(--primaryColor);
    margin-bottom: 1rem;
}

.counter {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primaryColor);
}

.counter-text {
    font-size: 1.25rem;
}

/** Compare-Boxen **/

.compareBox {
    /* Stellschrauben */
    --gap: 1.5rem;
    --frame-w: 0.2rem;
    --overlap: 4rem;
    --ratio: 4 / 3;

    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
}

/* ================================================= */
/* Ebene 3: Rahmen (liegt über allem) */
/* ================================================= */

.compareFrame {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    aspect-ratio: var(--ratio);                      /* immer quadratisch */

    z-index: 3;                               /* höchste Ebene */
    border: var(--frame-w) solid var(--primaryColor);

    pointer-events: none;                     /* blockiert keine Klicks */
    box-shadow: rgba(0, 0, 0, 0.24) 0 3px 8px;
}

/* ================================================= */
/* Ebene 1: Bild Wrapper mit Abstand zum Rahmen */
/* ================================================= */

.compareImageWrapper {
    position: relative;
    flex-shrink: 0;
    z-index: 1;
    width: 100%;
    aspect-ratio: var(--ratio);
    padding: var(--gap);
    overflow: hidden;
}

/* ================================================= */
/* Das eigentliche Bild */
/* ================================================= */

.compareImageBox {
    width: 100%;
    height: 100%;

    position: relative;
    box-shadow: rgba(0, 0, 0, 0.24) 0 3px 8px;
}

.compareImage {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;

    filter: grayscale(100%) contrast(1.2);
    transition:
            filter 0.2s ease,
            transform 0.3s ease;

    transform: scale(1); /* Ausgangszustand */
}

/* ================================================= */
/* Overlay für Bild */
/* ================================================= */

.compareImageBox::after {
    content: "";
    position: absolute;
    inset: 0;

    background: var(--primaryColor);
    opacity: 0.35;

    mix-blend-mode: multiply;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* ================================================= */
/* Hover-Effekt */
/* ================================================= */

.compareBox:hover .compareImage {
    filter: none;
    transform: scale(1.05);
}

.compareBox:hover .compareImageBox::after {
    opacity: 0;
}

/* ================================================= */
/* Ebene 2: Textblock (überlappt Bild) */
/* ================================================= */

.compareDetailsBox {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    flex-grow: 1;
    z-index: 2;                               /* über Bild, unter Rahmen */

    margin-top: calc(var(--overlap) * -1);    /* zieht Text ins Bild hinein */

    background-color: var(--bodyBg);
    color: var(--txtColor);

    width: calc(100% - (calc(3.5 * var(--gap))));
    margin-left: auto;
    margin-right: auto;
    box-shadow: rgba(0, 0, 0, 0.24) 0 3px 8px;
}

.compareDetails h3 {
    font-size: 1.3rem;
}

/* ================================================= */
/* Checklist
/* ================================================= */

.list {
    list-style: none;        /* Standard-Bullets entfernen */
    padding-left: 0;
    margin: 0;
}

.verticalList {
    display: flex;
}

.list li {
    position: relative;
    margin-bottom: 0.75em;    /* Abstand zwischen Punkten */
    line-height: 1.5;
}

.list li:last-of-type {
    margin-bottom: 0;
}

.list li [class^="icon-"]:before {
    width: auto;
    text-align: left;
    margin-left: 0;
    margin-right: 0.5em;
}

.list li a {
    padding-left: 0;
    transition: padding-left 0.3s ease;
}

.list li a .icon-only:before {
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.list li a:hover {
    color: var(--primaryColor);
    padding-left: 0.5rem;
}

.list.verticalList li,
.list[class*="verticalList-"] li {
    margin-bottom: 0;
}

.list.verticalList li a:hover,
.list[class*="verticalList-"] li a:hover {
    padding-left: 0;
}

.list.verticalList li a:hover .icon-only:before,
.list[class*="verticalList-"] li a:hover .icon-only:before {
    transform: translateY(-0.25rem);
}

.list li .icon-only[class^="icon-"]:before, .icon-only[class*=" icon-"]:before {
    margin-right: 0;
}

.icon-big {
    font-size: 2rem;
}

.arrowList li {
    padding-left: 1em;
}

.checkList li, .wynnerList li {
    padding-left: 1.5em;
}

/* ✅ Häkchen als Marker */
.checkList li::before {
    font-family: 'fontello';
    content: "\e822";
    width: 1.15em;
    height: 1.15em;

    font-size: 0.8rem;
    line-height: 1rem;
    text-align: center;
    border: 1px solid var(--secondaryColor);
    border-radius: 50%;
    color: var(--secondaryColor);  /* passt zu deinem Design */

    position: absolute;
    left: 0;
    top: 0.2em;
}

.wynnerList li::before {
    content: "";
    width: 1em;
    height: 1em;

    background-color: var(--secondaryColor);

    -webkit-mask: url("../../Icons/wynner-logo.svg") no-repeat center;
    -webkit-mask-size: contain;

    mask: url("../../Icons/wynner-logo.svg") no-repeat center;
    mask-size: contain;

    position: absolute;
    left: 0;
    top: 0.2em;
}

.arrowList li::before {
    content: ">";
    line-height: 1rem;

    position: absolute;
    left: 0;
    top: 0.2em;
}

.pointList {
    list-style: disc;
    padding-left: 1rem;
}

.checkList.primaryColor li::before {
    border: 1px solid var(--primaryColor);
    color: var(--primaryColor);
}

.wynnerList.primaryColor li::before {
    background-color: var(--primaryColor);
}