: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;
}

/*Header*/
.headerfront {
    display: flex;
    justify-content: flex-start;
    width: 70%;
    flex-direction: column;
    max-height: 765px;
    height: 686px;
}

.category-header-image {
    width: 100%;
    max-height: 765px;
    height: 700px;
    background-size: cover;
    background-position: 70% 25%;
    z-index: -3;
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%;
    margin-top: 21rem;
}

.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);
}

/*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;
    /* Die Suchpille füllt die Hero-Zeile nicht mehr bis zum Rand aus: sonst
       schiebt sie sich über das Gesicht im Headerbild. Sie endet jetzt kurz
       hinter dem Kategorie-Button, rechts daneben bleibt das Bild frei. */
    max-width: 480px;
}

/* Die Suche steht in der 70 % breiten .headerfront, die Kategorienliste braucht
   aber die volle Inhaltsspalte: 100 / 70 = 142.857 % ergibt exakt deren Breite,
   damit alle drei Spalten nebeneinander passen statt zu scrollen. */
.headerfront .kl-catmenu-panel {
    width: calc(100% / 0.7);
}

.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;
    }

    .imgbox .category-header-image {
        background-image: none !important;
        background-color: var(--hellblau);
        height: clamp(700px, 100%, 900px);
    }

    .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%;
    }

    .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;

    }
}