:root {
    --dorange: #FFB424;
    --hellblau: #EDF5FF;
    --dunkelblau: #2C5669;
    --mblau: #1A6D93;
    --morange: #FFC85E;
    --horange: #FFEEC4;
    --cgreen: #7DE85E;
    --cred: #FF6E6E;
    --wblack: #1c1b1b;
}

/* Homepage relaunch*/

.maincontainer {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--seitenrand);
    padding-right: var(--seitenrand);

}

.h1front {
    font-size: 44px;
    margin-top: 2rem;
    margin-bottom: 1rem;
    max-width: 474px;
}

/* Hero */
.hero-front {
    position: relative;
    width: 100%;
}

.hero-front .category-header-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: 70% 25%;
    pointer-events: none;
}

.hero-front .maincontainer {
    position: relative;
    z-index: 1;
}

.headerfront {
    display: flex;
    justify-content: flex-start;
    width: 70%;
    flex-direction: column;
    min-height: 720px;
    height: auto;
    padding-bottom: 3rem;
    position: relative;
}

.facetwp-facet input.facetwp-search {
    width: clamp(100px, 40vw, 400px) !important;
    height: 50px;
    border-radius: 12px;
}

/*Quicklinks unter der Suche ("Beliebte Kategorien")*/
.kl-popular {
    width: 100%;
    margin-top: 2.5rem;
}

.kl-popular h2 {
    font-size: 1.8rem;
    margin: 0 0 20px;
}

.kl-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.kl-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 18px 0 14px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 23px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    color: var(--dunkelblau);
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.2s, border-color 0.2s, color 0.2s, background 0.2s,
        box-shadow 0.2s;
}

.kl-category-pill img {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
}

.kl-category-pill:hover {
    transform: translateY(-3px);
    border-color: var(--mblau);
    color: var(--mblau);
    background: var(--hellblau);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.14);
}

/*Kategorien-Band (volle A-Z-Liste, unter der Offerbox)*/
.kl-category-band {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background-color: #C5EDFF;
    /* Unten viel Luft: die fraulapi des Folgeabschnitts ragt hier herein und
       soll die Kategorienliste nicht überdecken. */
    padding: 4rem 0 7rem;
}

/* Der Überstand der Grafik wird auf einen festen Wert begrenzt, der kleiner ist
   als das Bodenpolster des Bands — sonst wandert er mit der Abschnittshöhe. */
.kl-category-band + .headermid3 .fraulapi {
    top: -100px;
}

.kl-category-band-inner {
    padding: 30px 34px 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(44, 86, 105, 0.12);
}

.kl-category-band-inner .kl-catmenu-columns {
    padding-right: 0;
}

.kl-category-band-all {
    display: inline-block;
    margin-top: 20px;
    color: var(--mblau);
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.kl-category-band-all:hover {
    color: var(--dunkelblau);
}

/*Pillar-Karte im Kategorien-Band: Hub-Seite E-Learning-Plattformen samt ihrer
  Cluster-Seiten. Die orange Kante setzt sie von der Kategorienliste ab.*/
.kl-pillar-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 26px;
    padding: 26px 30px;
    background: #fff;
    border-left: 5px solid var(--dorange);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(44, 86, 105, 0.12);
}

.kl-pillar-card > img {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
}

.kl-pillar-card h3 {
    margin: 0 0 6px;
    font-size: 1.25rem;
}

.kl-pillar-card h3 a {
    color: var(--dunkelblau);
    text-decoration: none;
}

.kl-pillar-card h3 a:hover {
    color: var(--mblau);
    text-decoration: underline;
}

.kl-pillar-card p {
    margin: 0 0 14px;
    color: var(--wblack);
}

.kl-pillar-cluster {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kl-pillar-cluster a {
    display: inline-block;
    padding: 5px 13px;
    background: var(--hellblau);
    border-radius: 14px;
    color: var(--mblau);
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.kl-pillar-cluster a:hover {
    background: var(--mblau);
    color: #fff;
}

/*Anbieterband: Zwischentext, Link auf die Anbieter-Übersicht und der
  Pillar-Hinweis auf die E-Learning-Plattformen darunter.*/
.kl-section-lead {
    max-width: 760px;
    margin: -1.5rem auto 2.5rem;
    color: var(--dunkelblau);
    text-align: center;
}

.kl-section-all {
    display: block;
    margin-top: 2.5rem;
    color: var(--mblau);
    font-weight: bold;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.kl-section-all:hover {
    color: var(--dunkelblau);
}

.kl-pillar-link {
    margin-top: 1rem;
    color: var(--dunkelblau);
    text-align: center;
}

.kl-pillar-link a {
    color: var(--mblau);
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.kl-pillar-link a:hover {
    color: var(--dunkelblau);
}

/* Anbieter-Grid auf der Startseite */
.kl-home-providers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    margin: 0 auto;
}

.kl-home-provider-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    padding: 1.5rem 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.kl-home-provider-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
    text-decoration: none;
}

.kl-home-provider-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    width: 100%;
    margin-bottom: 0.75rem;
}

.kl-home-provider-logo img {
    max-height: 48px;
    max-width: 130px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

.kl-home-provider-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.kl-home-provider-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dunkelblau);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.kl-home-provider-desc {
    font-size: 0.88rem;
    color: #4b5563;
    line-height: 1.45;
    margin: 0;
    max-width: 280px;
}

.kl-home-provider-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 7px 18px;
    background-color: var(--dunkelblau);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.kl-home-provider-card:hover .kl-home-provider-btn {
    background-color: var(--mblau);
    color: #fff;
}

/*Suche */

/* Rahmen, Rundung und Schatten der Suche sitzen jetzt am Formular, damit Feld
   und Such-Button eine gemeinsame Pille bilden (siehe ai-search.css) — hier
   bleibt nur die Höhe der Startseiten-Suche. */
.headerfront .frontsearch-form {
    height: 68px;
    max-width: 620px;
    width: 100%;
}

.headerfront .kl-catmenu-panel {
    width: calc(100% / 0.7);
}

.headerfront .kl-catmenu-panel-clusters {
    width: min(1180px, calc(100vw - 48px));
    max-width: 1180px;
}

.frontsearch {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 25px;
    font-size: 16px;
    box-shadow: 0 0.5px 22px 2px rgba(124, 158, 172, 0.5);
}

.frontsearch button {
    all: unset;
    /* Entfernt Standard-Button-Styling */
}

.frontsearch button img {
    display: block;
}

.category-box img {
    margin-left: 5px;
}

/*Mitte*/
.headermid {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--mblau);
    position: relative;
    min-height: 783px;
    padding-top: 4rem;
}
.offerbox-text {
    color:var(--mblau)
}
.offerbox-text:hover {
    color:#F88400;
}
.manlapi {
    position: absolute;
    top: -13%;
    transform-origin: 60% 100%;
    animation: manlapi-typing 3.2s ease-in-out infinite;
}

@keyframes manlapi-typing {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-3px) rotate(-1.2deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(-3px) rotate(1.2deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .manlapi {
        animation: none;
    }
}

.fraulapi {
    position: absolute;
top: -26%;
    width: 254px;
    left: 53%;
}

.pfrontblue {
    color: white;
    margin-bottom: 2rem;
    margin-top: 14%;
    font-size: clamp(1rem, 1.5rem, 4vw);
    text-align: center;
    word-wrap: break-word;
}


.h2frontblue {
    color: white;
    margin-bottom: 3rem;
    text-align: center;
}

.h2frontwhite {
    margin-bottom: 3rem;
    color: var(--dunkelblau);
    text-align: center;
}

.headermid {
    color: white;
}

/*Offerbox*/

.offerbox-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.offerbox-link {
    display: block;
    width: 48%;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.offerbox-link:hover {
    transform: translateY(-3px);
}

.offerbox-item {
    display: flex;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.offerbox-image {
    width: 120px;
    min-width: 48px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 10vw;
    border-width: 4px !important;
    border-color: rgb(219, 219, 219) !important;
    border-right: solid;
}

.offerbox-image img {
    max-width: 80%;
    max-height: 80%;
}

.offerbox-text {
    display: flex;
    align-items: center;
    padding: 0 15px;
    font-weight: bold;
    flex-grow: 1;
    font-size: clamp(14px, 1rem, 4vw);
}

.offerbox-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
}

.offerbox-white,
.offerbox-blue {
    background-color: white;
    color: black;
}

.offerbox-white .offerbox-arrow,
.offerbox-blue .offerbox-arrow {
    color: #0c6a94;
}

.headermid3 {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-items: center;
    padding-top: 4rem;
    padding-bottom: 7rem;
    background-color: #FFF6ED;
}
.headermid4{
        display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--hellblau);
    position: relative;
    padding-top: 4rem;
    padding-bottom: 3rem;
}
.headermid5 {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    min-height: 783px;
    padding-top: 4rem;
}

.entry.content-bg.loop-entry.post.type-post.status-publish.format-standard.has-post-thumbnail.hentry {

    border-radius: 8px;
    border-color: #c5edff;
    border-style: solid;
    padding: 10px;
}

.kb-posts-id-3919_21eff3-4f .entry.loop-entry .entry-header .entry-title {
    margin-top: 1rem;
}

/*Kategorie*/
.latest-categories-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.category-box {
    flex: 1 1 calc(33.333% - 30px);
    min-width: 200px;
    max-width: 300px;
    text-decoration: none;
    display: block;
    /* Macht das gesamte Element klickbar */
    border-radius: 8px;
    padding: 25px 0px 25px 0px;
}

.category-contentlink {
    border: 2px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    background: #f9f9f9;
    text-align: center;
    transition: background 0.3s, box-shadow 0.3s;
}

.category-box:hover .category-contentlink {
    background: #eee;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.category-contentlink span {
    font-weight: bold;
}

/*kostenlos*/
.imgcontainerfree {
    display: flex;
    gap: 4rem;
      margin-top: 5rem;
}

.pfrontwhite {
    margin-bottom: 2rem;
    font-size: clamp(1rem, 1.5rem, 4vw);
    text-align: center;
    word-wrap: break-word;
}
.page-id-7816 .headerbox {
    border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1) !important;
  padding: 1rem;
  margin: 0rem;
  background-color:white; 
flex-grow: 2;
  flex-basis: 30vw;
}
.freebox-image{
    transition: transform 0.3s ease;
}              
.freebox-image:hover {
 
    transform: translateY(-3px);
}
.learnappscont {
    flex-wrap: wrap;
  gap: 20px;
  display: flex;
  justify-content: center;
}
.imgfilter {
    width: 100%;
  height: auto;
}
.headerboxspec .imgfilter {
    max-width: 132px;
}
.headerbox .imgfilter{
    width: 100px;
}



@media (max-width: 768px) {

    /*Relaunch*/
    .h1front h1 {
        font-size: 1.7rem;
    }

    .headerfront {
        width: 100%;
    }

    /* Mobil steht der Kategorie-Button über der Suche und das Headerbild ist
       ausgeblendet — die Pille darf die volle Breite nutzen. */
    .headerfront .frontsearch-form {
        max-width: none;
    }

    .hero-front .category-header-image,
    .imgbox .category-header-image {
        background-image: none !important;
        background-color: var(--hellblau);
    }

    .kl-popular {
        margin-top: 1.8rem;
    }

    .kl-popular h2 {
        font-size: 1.4rem;
        text-align: center;
    }

    .kl-category-pills {
        justify-content: center;
        gap: 8px;
    }

    .kl-category-pill {
        height: 40px;
        gap: 8px;
        padding: 0 14px 0 11px;
        font-size: 12px;
    }

    .kl-category-pill img {
        width: 22px;
        height: 22px;
    }

    .kl-category-band {
        padding: 3rem 0;
    }

    .kl-category-band-inner {
        padding: 20px 14px 16px;
    }

    .kl-pillar-card {
        flex-direction: column;
        gap: 12px;
        padding: 20px 16px;
    }

    /* Auf schmalen Screens ist .headerfront voll breit — das Panel darf dann
       nicht über die Inhaltsspalte hinauswachsen. */
    .headerfront .kl-catmenu-panel {
        width: 100%;
    }

    /* Diese Regel ist spezifischer als die mobile Breite in ai-search.css und
       würde sie sonst überstimmen — deshalb hier dieselbe schmale Breite. */
    .headerfront .kl-catmenu-panel-clusters {
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
    }

    .manlapi {
        width: 37%;
        top: -21%;
    }

    .offerbox-container {
        gap: 8px;
    }

    .offerbox-arrow {
        display: none;
    }

    .h1front {
        text-align: center;
    }

    .offerbox-text {
        padding: 5px;
    }

    .headermid {
        min-height: 682px;
    }
.headermid3 {
  padding-bottom:3rem;   
}
    .category-box {
        padding: 0px;
    }

    .imgcontainerfree {
        flex-wrap: wrap;
    }
    .fraulapi{
        left: -21%;
 top: -171px;

    }

    /* Anbieter auf dem Smartphone kompakter und kleiner verlinkt */
    .headermid5 {
        min-height: auto;
        padding-top: 2.5rem;
        padding-bottom: 2rem;
    }

    .headermid5 .wp-block-spacer {
        height: 32px !important;
    }

    .kl-home-providers {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0;
    }

    .kl-home-provider-card {
        padding: 12px 8px;
        border-radius: 10px;
        border: 1px solid #e5e7eb;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
        min-height: 80px;
        justify-content: center;
    }

    .kl-home-provider-card:active {
        transform: scale(0.98);
        background: #f8fafc;
    }

    .kl-home-provider-logo {
        height: 36px;
        margin-bottom: 6px;
    }

    .kl-home-provider-logo img {
        max-height: 32px;
        max-width: 88px;
    }

    .kl-home-provider-title {
        font-size: 0.85rem;
        font-weight: 600;
        margin: 0;
        line-height: 1.25;
        text-align: center;
    }

    /* Auf dem Smartphone Teasertext und Button ausblenden für kompakte, saubere Kacheln */
    .kl-home-provider-desc,
    .kl-home-provider-btn {
        display: none;
    }
}