/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/


/*
 * ap35-CI-Palette (Override der Avada-Palette)
 * Gilt vorläufig hier. Wenn sie passt, in Avada unter Global Options > Colors eintragen
 * und diesen Block entfernen. Die -h/-s/-l/-a-Werte braucht Avada für hsla()-Ableitungen.
 *   1 Weiß #FAFAFA | 2 Grau 10 % #E5E5E5 | 3 Grau 62 % #626262 | 4 Grau 38 % #9E9E9E
 *   5 Akzent Gelb (dunkler Grund) #FEFC7B | 6 Akzent Gold (heller Grund) #A69866
 *   7 Grau 62 % (Linien im Dunkelmodus) #626262 | 8 Schwarz #121212
 */
:root {
    --awb-color1: #FAFAFA; --awb-color1-h: 0;  --awb-color1-s: 0%;  --awb-color1-l: 98%; --awb-color1-a: 100%;
    --awb-color2: #E5E5E5; --awb-color2-h: 0;  --awb-color2-s: 0%;  --awb-color2-l: 90%; --awb-color2-a: 100%;
    --awb-color3: #626262; --awb-color3-h: 0;  --awb-color3-s: 0%;  --awb-color3-l: 38%; --awb-color3-a: 100%;
    --awb-color4: #9E9E9E; --awb-color4-h: 0;  --awb-color4-s: 0%;  --awb-color4-l: 62%; --awb-color4-a: 100%;
    --awb-color5: #FEFC7B; --awb-color5-h: 59; --awb-color5-s: 98%; --awb-color5-l: 74%; --awb-color5-a: 100%;
    --awb-color6: #A69866; --awb-color6-h: 47; --awb-color6-s: 26%; --awb-color6-l: 53%; --awb-color6-a: 100%;
    --awb-color7: #626262; --awb-color7-h: 0;  --awb-color7-s: 0%;  --awb-color7-l: 38%; --awb-color7-a: 100%;
    --awb-color8: #121212; --awb-color8-h: 0;  --awb-color8-s: 0%;  --awb-color8-l: 7%;  --awb-color8-a: 100%;
}


/* dark-light-mode */
:root {
    color-scheme: light dark;
    --light-bg: var(--awb-color1);
    --light-color: var(--awb-color8);
    --light-secondary-color: var(--awb-color2);
    --light-hover-color: var(--awb-color6);

    --dark-bg: var(--awb-color8);
    --dark-color: var(--awb-color1);
    --dark-secondary-color: var(--awb-color7);
    --dark-hover-color: var(--awb-color5);
}
  
body, #main, .fusion-fullwidth {
    transition: background-color .5s ease;
    background-color: light-dark(var(--light-bg), var(--dark-bg)) !important;
    color: light-dark(var(--light-color), var(--dark-color)) !important;
}
.transparent {
    background-color: light-dark(transparent, transparent) !important;
}
  
[class^="icon-"], [class*=" icon-"],
.fusion-text, .fusion-text p,
.fusion-text a, .fusion-text a:visited,
h1, h2, h3, h4, h5, h6 {
    transition: color .5s ease;
    color: light-dark(var(--light-color), var(--dark-color)) !important;
}

.menu-toggled .icon-menu::before {
    content: "\e90e" !important;
}
.dark .icon-bright::before {
    content: "\e907" !important;
}

.fusion-footer [class^="icon-"]:hover, .fusion-footer [class*=" icon-"]:hover,
.fusion-footer .fusion-text a:hover {
    color: var(--dark-hover-color) !important;
}
  
.light,
.force-light {
    color-scheme: light;
}
.dark,
.force-dark {
    color-scheme: dark;
}
/* Ohne Klasse folgen Container der Nutzer-Präferenz (bzw. dem Umschalter auf <html>).
   .force-dark / .force-light erzwingen den Modus für einen einzelnen Container (.dark / .light bleiben als Alias wirksam). */


/* CURSOR */
.cursor {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    z-index: 999999;
}
.cursor svg {
    transform-origin: 50%;
    transform: translate3d(-50%, -50%, 0);
}
.cursor .big {
    stroke: light-dark(var(--light-hover-color), var(--dark-hover-color));
    fill: light-dark(var(--light-hover-color), var(--dark-hover-color));
    transition: all 250ms ease;
}
.cursor .pointer {
    fill: light-dark(var(--light-hover-color), var(--dark-hover-color));
    transition: all 250ms ease;
}

/* nojs: 
html {
    cursor: url("data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c!--%20Created%20with%20Inkscape%20(http://www.inkscape.org/)%20--%3e%3csvg%20version='1.1'%20width='26px'%20height='26px'%20viewBox='0%200%2093.217%2093.217'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20transform='translate(-43.406%20-60.657)'%3e%3ccircle%20cx='90.014'%20cy='107.27'%20r='46.608'%20fill='%23bed019'%20stroke-width='.26458'/%3e%3c/g%3e%3c/svg%3e"),auto;
}*/


/* AVADA FIXES */
.awb-menu__main-li_regular.current-menu-item .awb-menu__main-a_regular{
    transition: color .5s ease;
    color: light-dark(var(--light-color), var(--dark-color)) !important;
}
.fusion-sticky-spacer {
    pointer-events: none !important;
}


/* SEPARATOR (CSS Class "seperation" oder "separation" am Avada-Container, beide Schreibweisen gelten): 62 % breite Hairline am oberen Rand, in der Gegenfarbe des Containers.
   Sie liegt innerhalb des Containers (top: 0): bei top: -1px lag sie außerhalb und wurde von Containern mit overflow: hidden abgeschnitten
   (Avada-Option "Überlauf", Effekt-Container ap-lines, limit-canvas-height, Timeline). */
.blankseparator {
    margin: 0 !important;
}
.seperation::before,
.separation::before {
    content: " ";
    position: absolute;
    width: 62%;
    height: 1px;
    top: 0;
    left: 0px;
    z-index: 20; /* über dem Inhalt am Rand (z. B. Canvas, Bilder): Avada legt die Zeilenhülle .fusion-builder-row mit z-index 10 darüber */
    pointer-events: none;
}
.seperation::before,
.separation::before {
    background-color: light-dark(var(--dark-bg), var(--light-bg)); /* Gegenfarbe des wirksamen Modus, auch ohne .dark/.light */
}


/* LOGO & UI */
.apui {
    mix-blend-mode: difference !important;
}

.apui .aplogo, .apui .aplogo .fusion-column-wrapper, 
.apui .apicons, .apui .apicons .fusion-column-wrapper {
    align-items: flex-start !important;
}

.apui [class^="icon-"], .apui [class*=" icon-"] {
    color: #ffffff !important;
}
/*.apui [class^="icon-"]:hover, .apui [class*=" icon-"]:hover {
    color: light-dark(var(--light-hover-color), var(--dark-hover-color)) !important;
}*/

.apui .aplogo polygon, .apui .aplogo path, .apui .aplogo rect {
    fill: #ffffff !important;
}
/*.apui .aplogo svg:hover polygon, .apui .aplogo svg:hover path, .apui .aplogo svg:hover rect {
    fill: light-dark(var(--light-hover-color), var(--dark-hover-color)) !important;
}*/

.apui .apmenu .awb-menu__main-a .menu-text {
    color: #ffffff !important;
}
/*.apui .apmenu .awb-menu__main-a:hover .menu-text {
    color: light-dark(var(--light-hover-color), var(--dark-hover-color)) !important;
}*/

.aplogo svg {
    shape-rendering: auto;
    text-align: left;
    width: 100%;
    min-height: 28px;
    max-height: 32px;
}

.apmenu {
    transition: all 250ms ease;
    transform: translate3d(100%, 0, 0);
    opacity: 0;
}
.menu-toggled .apmenu {
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

.apmenu .awb-menu__main-a .menu-text {
    font-family: var(--nav_typography-font-family);
    font-weight: var(--nav_typography-font-weight);
    font-size: var(--nav_typography-font-size);
    font-style: var(--nav_typography-font-style);
    letter-spacing: var(--nav_typography-letter-spacing);
    text-transform: var(--nav_typography-text-transform);
    text-align: var(--nav_typography-text-align);
    color: var(--nav_typography-txt-color);
}
.apmenu .awb-menu__main-a:hover .menu-text {
    color: light-dark(var(--light-hover-color), var(--dark-hover-color)) !important;
}

.noinput {
    pointer-events: none !important;
}
.noinput a {
    pointer-events: all !important;
}


/* TITLES */
.rotated {
    transform-origin: top left;
    transform: rotate(-90deg) translate3d(-100%, 0, 0);
    /* Die Breite des Elements ist die Länge des gedrehten Texts (translate -100 % bezieht sich darauf). Mit der Spaltenbreite als Breite brach jedes Label,
       das länger war als die schmale Spalte (1_6), um ("was steht an?" in drei Zeilen) und stand falsch. Deshalb Breite = Inhalt, kein Umbruch. */
    width: max-content;
    max-width: none;
}
.rotated .fusion-title-heading {
    white-space: nowrap;
}
.fusion-title.indent {
    text-indent: 3vw;
}


/* TEXT */
.fusion-text.indent {
    text-indent: 1.5vw;
}

.hyphens {
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}


/* HERO-TEXTE (Spalte .apcontentcarousel mit einem Avada-Post-Cards-Element, Layout "Karussell", Navigation "Punkte")
   Jede Aussage ist eine Post Card (Swiper). Die Punkte werden Maßstriche (wie früher in der Positionsleiste des Bild-Bands): ein Strich je Aussage,
   der aktive länger und in der Akzentfarbe. Sie stehen unter den Aussagen statt über ihnen (Avada legt sie absolut an den unteren Rand). */
.apcontentcarousel .awb-swiper:not(.swiper-fade) .swiper-wrapper {
    padding: 0; /* Avada gibt 8 px oben und unten vor */
}
.apcontentcarousel .awb-swiper .swiper-wrapper,
.apcontentcarousel .awb-swiper .swiper-slide {
    height: auto !important; /* alle Aussagen gleich hoch (Höhe der längsten): kein Springen des Heros beim Wechsel; Swiper setzt sonst bei autoHeight die Höhe der aktiven Karte */
}
.apcontentcarousel .awb-swiper .swiper-wrapper {
    align-items: stretch !important; /* Swiper setzt bei autoHeight flex-start, dann blieben die kürzeren Karten kürzer */
}
.apcontentcarousel .awb-swiper .fusion-content-tb .fusion-fullwidth {
    background: transparent !important; /* sonst deckt die Fläche der Karte die Linien des Effekts (ap-lines--flow) im Hero ab */
}
.apcontentcarousel .awb-swiper .swiper-pagination {
    position: relative;
    bottom: auto;
    left: auto;
    width: auto;
    margin-top: 0 !important; /* Avada setzt --awb-dots-margin-top; Abstand zum Text kommt vom Textblock selbst */
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 0;
    text-align: left;
}
.apcontentcarousel .awb-swiper .swiper-pagination-bullet {
    position: relative;
    box-sizing: border-box;
    width: 1.1rem;  /* Trefferfläche, sichtbar bleibt der Strich */
    height: 1.4rem;
    margin: 0 !important;
    border-radius: 0;
    background: none !important;
    opacity: 1;
}
.apcontentcarousel .awb-swiper .swiper-pagination-bullet::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 1px;
    height: .45rem;
    background: light-dark(var(--awb-color4), var(--awb-color7));
    transition: height .3s ease, background-color .3s ease;
}
.apcontentcarousel .awb-swiper .swiper-pagination-bullet-active::before {
    height: 1rem;
    background: light-dark(var(--awb-color6), var(--awb-color5));
}
.apcontentcarousel .awb-swiper .swiper-pagination-bullet:focus-visible {
    outline: 1px solid light-dark(var(--awb-color6), var(--awb-color5));
    outline-offset: -1px;
}
@media (prefers-reduced-motion: reduce) {
    .apcontentcarousel .awb-swiper .swiper-pagination-bullet::before { transition: none; }
}

/* IMAGE CAROUSEL (Avada-Element, CSS Class "ap-carousel" im Element eintragen)
   Die Bilder füllen die Resthöhe des Containers: Das Karussell nimmt in der Spaltenhöhe (Container-Mindesthöhe minus Padding und die anderen Elemente der Spalte, minus
   der eigene Außenabstand unten aus dem Element) den verbleibenden Platz, jedes Bild ist so hoch wie dieser Platz. Das Seitenverhältnis bleibt erhalten (object-fit: cover,
   der Ausschnitt wird zugeschnitten, nichts verzerrt). Der Container braucht eine Mindesthöhe (Avada: Container > Layout > Minimum Height).
   Reines CSS: Der Avada-Swiper (Autoplay, Marquee, Loop, Swipe, Lightbox, Breakpoints) wird nicht angefasst. Die Breite je Bild bleibt die Spaltenbreite aus der Einstellung
   "Columns" des Elements (mehr Spalten = schmalere Bilder). Mit der zusätzlichen CSS Class "ap-carousel--contain" wird das ganze Bild gezeigt (ohne Zuschnitt, mit Rand).
   Solange eine Lightbox offen ist, pausiert der Autolauf (script.js). */
.ap-carousel {
    flex: 1 1 0;
    min-height: 16rem; /* Rückfall, falls der Container keine Mindesthöhe hat */
    position: relative;
}
.ap-carousel > .awb-swiper {
    position: absolute;
    inset: 0;
    height: auto;
}
.ap-carousel .swiper-wrapper { height: 100% !important; } /* Avada setzt die Höhe des höchsten Bildes inline (autoHeight) */
.ap-carousel .swiper-slide,
.ap-carousel .fusion-carousel-item-wrapper,
.ap-carousel .fusion-image-wrapper,
.ap-carousel .fusion-image-wrapper > a {
    display: block;
    height: 100% !important;
}
.ap-carousel .fusion-image-wrapper img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}
.ap-carousel--contain .fusion-image-wrapper img { object-fit: contain; }

.fusion-footer .fusion-title-heading,
.fusion-footer .fusion-text,
.fusion-footer label,
.fusion-footer input::placeholder {
    text-transform: lowercase !important;
}

/* ÜBERSCHRIFTEN-STUFEN
   Die Seite hat eine h1 (Hero), die Abschnitte sind h2, die Subheadings h3, die Textzeilen h4 (Builder: Titel-Größe 1 bis 4).
   Schrift, Zeilenhöhe, Laufweite, Transform und Abstände kommen aus den Avada-Global-Options (Typography, H1 bis H6, Tabelle in docs/AVADA-EINSTELLUNGEN.md, Abschnitt H).
   Hier stehen nur die Schriftgrößen, weil Avada keine responsiven Größen je Breakpoint kennt: feste Stufenleiter nach Major Third (Faktor 1,25) ab 16 px (--ap-step-*).
   Jede Überschrift nimmt je Breakpoint eine Stufe, keine freien vw-Werte (so bleibt die Hierarchie in jeder Breite ein Vielfaches von 1,25).
   Die Werte stehen in den Media Queries weiter unten: --h1 bis --h6_typography-font-size. */
:root {
    --ap-scale: 1.25;
    --ap-step-0: 1rem;                                          /* 16 px  Fließtext, H6 */
    --ap-step-1: calc(var(--ap-step-0) * var(--ap-scale));      /* 20 px */
    --ap-step-2: calc(var(--ap-step-1) * var(--ap-scale));      /* 25 px */
    --ap-step-3: calc(var(--ap-step-2) * var(--ap-scale));      /* 31 px */
    --ap-step-4: calc(var(--ap-step-3) * var(--ap-scale));      /* 39 px */
    --ap-step-5: calc(var(--ap-step-4) * var(--ap-scale));      /* 49 px */
    --ap-step-6: calc(var(--ap-step-5) * var(--ap-scale));      /* 61 px */
    --ap-step-7: calc(var(--ap-step-6) * var(--ap-scale));      /* 76 px */
    --ap-step-8: calc(var(--ap-step-7) * var(--ap-scale));      /* 95 px */
    --ap-step-9: calc(var(--ap-step-8) * var(--ap-scale));      /* 119 px */
}

@media only screen and (max-width: 640px) {
    :root {
        --h1_typography-font-size: var(--ap-step-4) !important;
        --h2_typography-font-size: var(--ap-step-4) !important;
        --h3_typography-font-size: var(--ap-step-1) !important;
        --h4_typography-font-size: var(--ap-step-1) !important;
        --h5_typography-font-size: var(--ap-step-0) !important;
    }

    .rotated {
        transform: rotate(0deg) translate3d(0, 0, 0) !important;
        width: auto;
    }
    .rotated .fusion-title-heading {
        text-align: left !important;
        white-space: normal; /* waagerecht darf das Label umbrechen (vertikale Leiste .rotated--mobile: nowrap, siehe unten) */
    }

    /* Mit Zusatzklasse .rotated--mobile (ab und zu) bleibt das Subheading auch auf dem Handy vertikal: schmale Leiste im linken Rand,
       hängt am oberen Ende seiner Spalte (neben dem Inhalt darunter), Leserichtung von unten nach oben wie am Desktop */
    .fusion-layout-column:has(.rotated--mobile) {
        position: relative;
        margin-bottom: 0 !important; /* ohne Höhe und Abstand: die Leiste steht oben bündig mit dem Inhalt der nächsten Spalte statt ein Loch davor zu lassen (Mindesthöhe: script.js) */
    }
    .rotated.rotated--mobile {
        position: absolute;
        top: 0;
        left: 0; /* wird per script.js auf 10 px vom Bildschirmrand gesetzt */
        writing-mode: vertical-rl;
        transform: rotate(180deg) !important;
        transform-origin: 50% 50%; /* .rotated setzt top left, das würde die Leiste um ihre Breite aus dem Bild schieben */
        margin: 0 !important;
        width: auto !important;
    }
    .rotated.rotated--mobile .fusion-title-heading {
        margin: 0 !important;
        line-height: 1.1 !important;
        white-space: nowrap; /* die Leiste ist absolut, ihre Länge begrenzt nur die (meist kurze) Spalte: Mehrwort-Texte ("was steht an?") brachen sonst pro Wort in mehrere Zeilen um und überlagerten den Inhalt */
    }
    #wrapper #main .fullwidth-box:has(.rotated--mobile) > .fusion-row {
        padding-left: calc(2.2rem + max(env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px))) !important;
    }
}


@media only screen and (min-width: 641px) {
    :root {
        --h1_typography-font-size: var(--ap-step-6) !important;
        --h2_typography-font-size: var(--ap-step-6) !important;
        --h3_typography-font-size: var(--ap-step-1) !important;
        --h4_typography-font-size: var(--ap-step-1) !important;
        --h5_typography-font-size: var(--ap-step-0) !important;
    }
}


@media only screen and (min-width: 799px) {
    :root {
        --h1_typography-font-size: var(--ap-step-7) !important;
        --h2_typography-font-size: var(--ap-step-7) !important;
        --h3_typography-font-size: var(--ap-step-2) !important;
        --h4_typography-font-size: var(--ap-step-2) !important;
        --h5_typography-font-size: var(--ap-step-1) !important;
    }
}


@media only screen and (min-width: 1025px) {
    :root {
        --h1_typography-font-size: var(--ap-step-8) !important;
        --h2_typography-font-size: var(--ap-step-8) !important;
        --h3_typography-font-size: var(--ap-step-2) !important;
        --h4_typography-font-size: var(--ap-step-2) !important;
        --h5_typography-font-size: var(--ap-step-1) !important;
    }
}


@media only screen and (min-width: 1655px) {
    :root {
        --h1_typography-font-size: var(--ap-step-9) !important;
        --h2_typography-font-size: var(--ap-step-9) !important;
        --h3_typography-font-size: var(--ap-step-2) !important;
        --h4_typography-font-size: var(--ap-step-2) !important;
        --h5_typography-font-size: var(--ap-step-1) !important;
    }
}


/* COUNTER (fusion_counters_box): Palette statt Avada-Standardfarben, nur Haarlinie oben statt Rahmenbox.
   Große Zahlen in der Akzentfarbe, Beschriftung gedeckt (Grau 38 % dunkel, Grau 62 % hell). */
.fusion-counters-box .content-box-counter,
.fusion-counters-box .content-box-counter * {
    color: light-dark(var(--awb-color6), var(--awb-color5)) !important; /* große Zahlen in der Akzentfarbe (Gold hell, Gelb dunkel) */
}
.fusion-counters-box .counter-box-content {
    color: light-dark(var(--awb-color3), var(--awb-color4)) !important;
}
.fusion-counters-box .fusion-counter-box .counter-box-container {
    border: 0;
    border-top: 1px solid light-dark(var(--awb-color4), var(--awb-color7));
    padding-left: 0;
    padding-right: 0;
}

/* Querformat (Notch): Hintergründe laufen mit viewport-fit=cover über den ganzen Viewport, der Inhalt bleibt im sicheren Bereich und in der definierten Maximalbreite */
@supports (padding: max(0px)) {
    .fusion-header-wrapper .fusion-row,
    .fusion-footer-widget-area > .fusion-row,
    .fusion-footer-copyright-area > .fusion-row,
    #wrapper #main .fullwidth-box > .fusion-row {
        /* beidseitig der größere Wert, damit der Inhalt symmetrisch bleibt; !important, weil Avada die Rows per #wrapper #main .fullwidth-box .fusion-row auf padding 0 setzt */
        padding-left: max(env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)) !important;
        padding-right: max(env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)) !important;
    }
}

/* OSM-KARTE (Avada Openstreetmap-Element): Graustufen in der Palette, Marker in der Akzentfarbe.
   Die Kartenkacheln sind farbig und lassen sich nur per Filter umfärben. Der Filter hängt am Modus des Containers,
   den script.js als data-ap-scheme (light/dark) auf das Element schreibt. Ohne JS gilt die Systemeinstellung. */
/* Das Avada-Element ist selbst der Leaflet-Container (beide Klassen am selben Element), der Nachfahren-Selektor allein traf nie:
   Leaflets Standardgrau (#ddd) schien beim Nachladen der Kacheln durch. Außerdem: Auf iOS erscheinen beim Tippen graue Tipp-Flächen und Fokus-Rahmen
   (Container und Marker haben tabindex), die bei Tippen nicht, bei Tastaturbedienung aber weiter gezeigt werden. */
.awb-openstreet-map.leaflet-container,
.awb-openstreet-map .leaflet-container {
    background: light-dark(var(--awb-color1), var(--awb-color8));
    font-family: inherit;
    outline: 0;
    -webkit-tap-highlight-color: transparent;
}
.awb-openstreet-map .leaflet-marker-icon,
.awb-openstreet-map .leaflet-interactive,
.awb-openstreet-map a,
.awb-openstreet-map .leaflet-control-zoom a {
    -webkit-tap-highlight-color: transparent;
}
/* Der Container selbst bekommt nie einen Rahmen (Leaflet fokussiert ihn beim Tippen), Marker und Bedienelemente nur bei Tastaturbedienung */
.awb-openstreet-map.leaflet-container,
.awb-openstreet-map.leaflet-container:focus,
.awb-openstreet-map.leaflet-container:focus-visible,
.awb-openstreet-map :focus:not(:focus-visible) {
    outline: 0 !important;
}
.awb-openstreet-map .leaflet-marker-icon:focus-visible,
.awb-openstreet-map a:focus-visible {
    outline: 1px solid light-dark(var(--awb-color6), var(--awb-color5)) !important;
    outline-offset: 2px;
}
.awb-openstreet-map .leaflet-tile-pane {
    filter: grayscale(1) contrast(.82) brightness(1.08);
}
.awb-openstreet-map[data-ap-scheme="dark"] .leaflet-tile-pane {
    filter: grayscale(1) invert(1) contrast(.85) brightness(.66);
}
@media (prefers-color-scheme: dark) {
    .awb-openstreet-map:not([data-ap-scheme]) .leaflet-tile-pane {
        filter: grayscale(1) invert(1) contrast(.85) brightness(.66);
    }
}
/* Hover-Zustand eingeschlossen: Avada färbt Marker beim Hover mit einem dunklen Kreis (--icon_circle_color_hover), auf iOS bleibt Hover nach dem Tippen stehen */
.awb-openstreet-map .leaflet-marker-icon,
.awb-openstreet-map .leaflet-marker-icon *,
.awb-openstreet-map .leaflet-marker-icon:hover,
.awb-openstreet-map .leaflet-marker-icon *:hover,
.awb-openstreet-map .awb-openstreet-map-marker-icon-wrapper:hover {
    color: light-dark(var(--awb-color6), var(--awb-color5)) !important;
    fill: light-dark(var(--awb-color6), var(--awb-color5)) !important;
    background: none !important;
    background-color: transparent !important;
    text-shadow: none;
}
.awb-openstreet-map .leaflet-control-attribution {
    background: light-dark(rgba(250, 250, 250, .8), rgba(18, 18, 18, .8)) !important;
    color: light-dark(var(--awb-color3), var(--awb-color4)) !important;
    font-size: 10px;
}
.awb-openstreet-map .leaflet-control-attribution a {
    color: inherit !important;
}
.awb-openstreet-map .leaflet-popup-content-wrapper,
.awb-openstreet-map .leaflet-popup-tip {
    background: light-dark(var(--awb-color1), var(--awb-color8)) !important;
    color: light-dark(var(--awb-color8), var(--awb-color1)) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.awb-openstreet-map .leaflet-popup-content-wrapper {
    border: 1px solid light-dark(var(--awb-color4), var(--awb-color7));
}
.awb-openstreet-map .leaflet-popup-content,
.awb-openstreet-map .leaflet-popup-content * {
    color: inherit !important;
}

/* LEISTUNGEN MOBIL: "Geschossschnitt" (Container-Klasse .ap-floors)
   Jede Leistung wird ein Geschoss: Deckenlinie mit Kragplatte links, Geschossnummer direkt unter der Linie, Titel und Text linksbündig.
   Tippen öffnet das Geschoss (eines zugleich), die Deckenlinien zeichnen sich beim Einblenden. Am Desktop unverändert, außer mit .ap-floors--cols (siehe unten). */
.ap-floors .ap-floor__no {
    margin-right: .4em; /* am Desktop steht die Nummer wie vorher vor dem Titel */
}
@media only screen and (max-width: 640px) {
    .ap-floors .fusion-builder-row-inner {
        position: relative;
        display: block !important;
        margin: 0 !important;
        padding: 1.5rem 2.4rem 1rem 0 !important; /* oben Platz für die Nummer unter der Deckenlinie, Titel und Text beginnen links bündig */
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .ap-floors .fusion-builder-row-inner .fusion-layout-column {
        width: 100% !important;
        margin: 0 !important;
    }
    .ap-floors .fusion-builder-row-inner .fusion-column-wrapper {
        margin-left: 0 !important; /* Avada setzt hier einen Spaltenabstand, der Text sonst gegenüber Nummer und Kragplatte einrückt */
    }
    /* Deckenlinie, zeichnet sich von links */
    .ap-floors .fusion-builder-row-inner::before {
        content: "";
        display: block; /* Avada setzt hier ein Clearfix mit display: table */
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        height: 1px;
        background: light-dark(var(--awb-color4), var(--awb-color7));
        transform: scaleX(0);
        transform-origin: 0 50%;
        transition: transform .8s cubic-bezier(.2, .7, .2, 1) var(--ap-floor-delay, 0s);
    }
    .ap-floors.ap-floors--in .fusion-builder-row-inner::before {
        transform: scaleX(1);
    }
    /* Kragplatte */
    .ap-floors .fusion-builder-row-inner::after {
        content: "";
        display: block;
        position: absolute;
        left: 0;
        top: -1px;
        width: 2.2rem;
        height: 3px;
        background: light-dark(var(--awb-color8), var(--awb-color1));
        transition: width .35s ease, background-color .35s ease;
    }
    .ap-floors .fusion-builder-row-inner.is-open::after {
        width: 100%;
        background: light-dark(var(--awb-color6), var(--awb-color5));
    }
    /* Geschossnummer unter der Deckenlinie */
    .ap-floors .ap-floor__no {
        position: absolute;
        left: 0;
        top: .5rem; /* direkt unter der Deckenlinie, unter der Kragplatte */
        font-size: .75rem;
        letter-spacing: .08em;
        font-variant-numeric: tabular-nums;
        color: light-dark(var(--awb-color3), var(--awb-color4));
        transition: color .35s ease;
    }
    .ap-floors .is-open .ap-floor__no {
        color: light-dark(var(--awb-color6), var(--awb-color5));
    }
    /* Plus/Minus aus zwei Haarlinien, kein Icon */
    .ap-floors .ap-floor__tg {
        position: absolute;
        right: 0;
        top: 2.55rem; /* Mitte der ersten Titelzeile */
        width: .9rem;
        height: 1rem;
    }
    .ap-floors .ap-floor__tg::before,
    .ap-floors .ap-floor__tg::after {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        width: 100%;
        height: 1px;
        background: currentColor;
        transition: transform .35s ease;
    }
    .ap-floors .ap-floor__tg::after {
        transform: rotate(90deg);
    }
    .ap-floors .is-open .ap-floor__tg::after {
        transform: rotate(0deg);
    }
    /* Text klappt auf (grid-template-rows 0fr -> 1fr, ohne feste Höhe) */
    .ap-floors .fusion-builder-row-inner .fusion-layout-column:last-of-type .fusion-column-wrapper {
        display: grid !important;
        grid-template-rows: 0fr;
        transition: grid-template-rows .4s ease;
    }
    .ap-floors .fusion-builder-row-inner .fusion-layout-column:last-of-type .fusion-text {
        min-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: opacity .3s ease;
    }
    .ap-floors .fusion-builder-row-inner.is-open .fusion-layout-column:last-of-type .fusion-column-wrapper {
        grid-template-rows: 1fr;
    }
    .ap-floors .fusion-builder-row-inner.is-open .fusion-layout-column:last-of-type .fusion-text {
        opacity: 1;
        padding-top: .6rem;
    }
    /* Stütze: durchgehende Linie links durch alle Geschosse */
    .ap-floors .fusion-builder-row-inner > .fusion-layout-column:first-of-type {
        position: static;
    }
}
@media (prefers-reduced-motion: reduce) {
    .ap-floors .fusion-builder-row-inner::before,
    .ap-floors--cols .fusion-builder-row-inner::before { transition: none; transform: scaleX(1); }
    .ap-floors .fusion-builder-row-inner .fusion-column-wrapper,
    .ap-floors .fusion-builder-row-inner .fusion-text,
    .ap-floors--cols .fusion-builder-row-inner .fusion-column-wrapper,
    .ap-floors--cols .fusion-builder-row-inner .fusion-text { transition: none !important; }
}

/* Zweispaltig am Desktop (Zusatzklasse .ap-floors--cols zu .ap-floors): gleiche Geschosse mit Auf-/Zuklappen wie mobil, die Geschosse stehen
   als Raster in zwei Spalten (Reihenfolge zeilenweise 01 02 / 03 04 / ...). Die Deckenlinien liegen je Zeile auf einer Höhe, ein offenes Geschoss
   schiebt nur die folgenden Zeilen nach unten. Texte und Buttons im selben Container spannen über beide Spalten. */
@media only screen and (min-width: 641px) {
    .ap-floors--cols .fusion-builder-row-inner {
        position: relative;
        display: block !important;
        margin: 0 !important;
        padding: 1rem 2.4rem 1rem 3.4rem !important;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .ap-floors--cols .fusion-builder-row-inner .fusion-layout-column {
        width: 100% !important;
        margin: 0 !important;
    }
    /* Deckenlinie, zeichnet sich von links */
    .ap-floors--cols .fusion-builder-row-inner::before {
        content: "";
        display: block; /* Avada setzt hier ein Clearfix mit display: table */
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        height: 1px;
        background: light-dark(var(--awb-color4), var(--awb-color7));
        transform: scaleX(0);
        transform-origin: 0 50%;
        transition: transform .8s cubic-bezier(.2, .7, .2, 1) var(--ap-floor-delay, 0s);
    }
    .ap-floors--cols.ap-floors--in .fusion-builder-row-inner::before {
        transform: scaleX(1);
    }
    /* Kragplatte */
    .ap-floors--cols .fusion-builder-row-inner::after {
        content: "";
        display: block;
        position: absolute;
        left: 0;
        top: -1px;
        width: 2.2rem;
        height: 3px;
        background: light-dark(var(--awb-color8), var(--awb-color1));
        transition: width .35s ease, background-color .35s ease;
    }
    .ap-floors--cols .fusion-builder-row-inner.is-open::after {
        width: 100%;
        background: light-dark(var(--awb-color6), var(--awb-color5));
    }
    /* Geschossnummer in der Leiste */
    .ap-floors--cols .ap-floor__no {
        position: absolute;
        left: 0;
        top: 1.15rem;
        font-size: .75rem;
        letter-spacing: .08em;
        font-variant-numeric: tabular-nums;
        color: light-dark(var(--awb-color3), var(--awb-color4));
        transition: color .35s ease;
    }
    .ap-floors--cols .is-open .ap-floor__no {
        color: light-dark(var(--awb-color6), var(--awb-color5));
    }
    /* Plus/Minus aus zwei Haarlinien, kein Icon */
    .ap-floors--cols .ap-floor__tg {
        position: absolute;
        right: 0;
        top: 1.45rem;
        width: .9rem;
        height: 1rem;
    }
    .ap-floors--cols .ap-floor__tg::before,
    .ap-floors--cols .ap-floor__tg::after {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        width: 100%;
        height: 1px;
        background: currentColor;
        transition: transform .35s ease;
    }
    .ap-floors--cols .ap-floor__tg::after {
        transform: rotate(90deg);
    }
    .ap-floors--cols .is-open .ap-floor__tg::after {
        transform: rotate(0deg);
    }
    /* Text klappt auf (grid-template-rows 0fr -> 1fr, ohne feste Höhe) */
    .ap-floors--cols .fusion-builder-row-inner .fusion-layout-column:last-of-type .fusion-column-wrapper {
        display: grid !important;
        grid-template-rows: 0fr;
        transition: grid-template-rows .4s ease;
    }
    .ap-floors--cols .fusion-builder-row-inner .fusion-layout-column:last-of-type .fusion-text {
        min-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: opacity .3s ease;
    }
    .ap-floors--cols .fusion-builder-row-inner.is-open .fusion-layout-column:last-of-type .fusion-column-wrapper {
        grid-template-rows: 1fr;
    }
    .ap-floors--cols .fusion-builder-row-inner.is-open .fusion-layout-column:last-of-type .fusion-text {
        opacity: 1;
        padding-top: .6rem;
    }
    /* Stütze: durchgehende Linie links durch alle Geschosse */
    .ap-floors--cols .fusion-builder-row-inner > .fusion-layout-column:first-of-type {
        position: static;
    }
    .ap-floors--cols .fusion-column-wrapper:has(> .fusion-builder-row-inner) {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 4%;
        align-content: start;
    }
    .ap-floors--cols .fusion-column-wrapper:has(> .fusion-builder-row-inner)::before,
    .ap-floors--cols .fusion-column-wrapper:has(> .fusion-builder-row-inner)::after {
        display: none; /* Avada-Clearfix wäre sonst ein Rasterfeld */
    }
    .ap-floors--cols .fusion-column-wrapper:has(> .fusion-builder-row-inner) > :not(.fusion-builder-row-inner) {
        grid-column: 1 / -1;
    }
    .ap-floors--cols .fusion-builder-row-inner {
        padding-right: 3.2rem !important;
    }
    /* In halber Breite sind lange Titel ("Veranstaltungsmanagement") sonst breiter als die Spalte */
    .ap-floors--cols .fusion-builder-row-inner .fusion-title-heading {
        font-size: calc(var(--h4_typography-font-size) * .8) !important;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}

/* POST CARDS (Avada-Layout-Elemente in Karten, z. B. Projekte auf der Startseite): Avada färbt Titel-Link, Tags/Skills, Trenner und Text fix mit Color 8 (Schwarz)
   und die Linien (.fusion-meta-tb) fix mit Color 5 (Gelb). Im Dunkelmodus stand damit schwarzer Text auf dunklem Grund, im Hellmodus waren die Linien gelb statt gold.
   Hier wie überall sonst: Text nach Modus, Linien und Hover in der Akzentfarbe des Modus. */
.fusion-post-cards .fusion-title a,
.fusion-post-cards .fusion-meta-tb,
.fusion-post-cards .fusion-meta-tb a,
.fusion-post-cards .fusion-meta-tb-sep,
.fusion-post-cards .fusion-content-tb,
.fusion-post-cards .fusion-content-tb p {
    color: light-dark(var(--light-color), var(--dark-color)) !important;
}
.fusion-post-cards .fusion-title a:hover {
    color: light-dark(var(--light-hover-color), var(--dark-hover-color)) !important;
}
.fusion-post-cards .fusion-meta-tb {
    border-color: light-dark(var(--light-hover-color), var(--dark-hover-color)) !important;
}

/* META-ZEILE der Projekt-Karten (Kunden = .fusion-tb-tags, Leistungen = .fusion-tb-skills): keine Linien oben und unten, Kunden und Leistungen untereinander, Kunden etwas fetter
   (Radikal Medium) als die Leistungen. Die Meta-Links sind nicht unterstrichen und wechseln beim Hover weder Farbe noch Unterstreichung (Verlinkung der Tags ist noch offen). */
.fusion-post-cards .fusion-meta-tb:has(.fusion-tb-tags, .fusion-tb-skills) {
    flex-direction: column;
    align-items: flex-start;
    row-gap: .35rem;
    min-height: 0 !important;
    margin: .7rem 0 .9rem !important;
    padding: 0 !important;
    border: 0 !important;
}
.fusion-post-cards .fusion-meta-tb:has(.fusion-tb-tags, .fusion-tb-skills) .fusion-meta-tb-sep {
    display: none !important;
}
.fusion-post-cards .fusion-meta-tb:has(.fusion-tb-tags, .fusion-tb-skills) a,
.fusion-post-cards .fusion-meta-tb:has(.fusion-tb-tags, .fusion-tb-skills) a:hover {
    color: light-dark(var(--light-color), var(--dark-color)) !important;
    text-decoration: none !important;
}
.fusion-post-cards .fusion-meta-tb .fusion-tb-tags {
    padding: 0 !important; /* Avada setzt Padding der Meta-Elemente mit höherer Spezifität */
    font-family: "Radikal Medium";
}

/* Titel der Projekt-Karten in Radikal Black (Typography 1 aus Avada). Als h4 bekämen sie sonst die Schrift der Textzeilen (H4 = Radikal Light in den Avada-Global-Options). */
.fusion-post-cards .fusion-title .fusion-title-heading {
    font-family: var(--awb-typography1-font-family, "Radikal Black");
    font-weight: var(--awb-typography1-font-weight, 400);
}

/* MARKER-ÜBERSCHRIFT (CSS Class "ap-marker"): Markierbalken hinter der Überschrift, der beim Hover auf die volle Texthöhe aufgeht, dabei wechselt die Schrift auf Schwarz bzw. Weiß
   (je nach Balkenfarbe). Nur der Effekt, Schriftgröße und -art bleiben wie eingestellt. Gilt automatisch für die Titel der Projekt-Karten (Hover über die Karte) und für jedes Element
   mit der Class "ap-marker" (am Avada-Titel-Element oder direkt an einem h1 bis h6; Hover über die Überschrift). Farben über --ap-marker-bg (Balken) und --ap-marker-fg (Schrift beim Hover),
   Standard Gold im Hellmodus bzw. Gelb im Dunkelmodus mit schwarzer Schrift. Auf der Alt-Startseite stehen die Farben der Alternative-Palette (alt-home.css). Ruhezustand: dünne Platte
   (--ap-marker-rest, Lage --ap-marker-pos). Mehrzeilige Überschriften laufen als Fluss (inline), ein h-Element mit der Class steht dafür als Block mit Inhaltsbreite. */
.fusion-post-cards .fusion-title .fusion-title-heading,
.ap-marker.fusion-title-heading,
.ap-marker .fusion-title-heading {
    display: inline;
    padding: 0 .05em;
    background: linear-gradient(var(--ap-marker-bg, light-dark(var(--light-hover-color), var(--dark-hover-color))), var(--ap-marker-bg, light-dark(var(--light-hover-color), var(--dark-hover-color)))) no-repeat 0 var(--ap-marker-pos, 96%) / 100% var(--ap-marker-rest, .1em);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    transition: background-size .5s cubic-bezier(.2, .7, .2, 1), color .3s ease;
}
:is(h1, h2, h3, h4, h5, h6).ap-marker:not(.fusion-title-heading) {
    display: block;
    width: fit-content;
    max-width: 100%;
    padding: 0 .05em;
    background: linear-gradient(var(--ap-marker-bg, light-dark(var(--light-hover-color), var(--dark-hover-color))), var(--ap-marker-bg, light-dark(var(--light-hover-color), var(--dark-hover-color)))) no-repeat 0 var(--ap-marker-pos, 96%) / 100% var(--ap-marker-rest, .1em);
    transition: background-size .5s cubic-bezier(.2, .7, .2, 1), color .3s ease;
}
@media (hover: hover) {
    .fusion-post-cards .post-card:hover .fusion-title .fusion-title-heading,
    .ap-marker.fusion-title-heading:hover,
    .ap-marker:hover .fusion-title-heading,
    :is(h1, h2, h3, h4, h5, h6).ap-marker:not(.fusion-title-heading):hover {
        background-size: 100% 100%;
        color: var(--ap-marker-fg, var(--awb-color8)) !important;
    }
    .fusion-post-cards .post-card:hover .fusion-title a,
    .ap-marker:hover .fusion-title-heading a {
        color: var(--ap-marker-fg, var(--awb-color8)) !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    .fusion-post-cards .fusion-title .fusion-title-heading,
    .ap-marker.fusion-title-heading,
    .ap-marker .fusion-title-heading,
    :is(h1, h2, h3, h4, h5, h6).ap-marker:not(.fusion-title-heading) { transition: none; }
}

/* PROJEKTE mobil (Startseite, #projects, Post Cards): Rhythmus statt Einheitsblock
   Je Projekt eine Haarlinie mit kurzer Platte (Kragplatte) und Projektnummer, darunter Bild, Titel in Medium, Kunde in Versalien, Leistungen gedämpft ohne Unterstreichung.
   Die Goldlinien um die Meta-Zeile entfallen: ein Akzent pro Abschnitt, hier die Platte. Die Nummer zählt per CSS-Counter.
   Das Bild läuft links randlos (unter der Beschriftung "was steht an?") und endet rechts vor der Timeline-Leiste: gleicher Abstand Bild zu Leiste und Leiste zu Rand. */
@media only screen and (max-width: 640px) {
    #projects .fusion-post-cards {
        counter-reset: ap-proj;
        --ap-proj-line: light-dark(var(--awb-color4), var(--awb-color7));
        --ap-proj-soft: light-dark(var(--awb-color3), var(--awb-color4));
    }
    #projects .fusion-post-cards .post-card {
        counter-increment: ap-proj;
        position: relative;
        padding-top: 2.5rem;
        border-top: 1px solid var(--ap-proj-line);
    }
    #projects .fusion-post-cards .post-card::before {
        content: "";
        position: absolute;
        top: -2px;
        left: 0;
        width: 2.2rem;
        height: 3px;
        background: light-dark(var(--light-color), var(--dark-color));
    }
    #projects .fusion-post-cards .post-card::after {
        content: counter(ap-proj, decimal-leading-zero);
        position: absolute;
        top: .9rem;
        left: 0;
        font-family: "Radikal Medium";
        font-size: .8125rem;
        letter-spacing: .06em;
        color: var(--ap-proj-soft);
    }
    /* Links randlos: Die Spalte sitzt wegen der Rails etwa 1,6 px rechts der Viewport-Mitte, 2 px Übermaß links gleichen das aus.
       Rechts: Die fixe Timeline (.ap-spine) liegt 0,9 rem vom Rand, ihre aktive Marke ragt 0,9 rem nach links. Bild-Ende = 100vw - 3 x 0,9 rem (Abstand Rand, Leiste, Abstand Bild).
       Der Spaltenrand des inneren Wrappers (Avada, in Prozent) entfällt. */
    #projects .fusion-post-cards .fusion_builder_column_inner:has(.fusion-featured-slider-tb) {
        width: calc(100vw - 2.7rem) !important;
        max-width: none !important;
        margin-left: calc(50% - 50vw - 2px) !important;
    }
    #projects .fusion-post-cards .fusion_builder_column_inner:has(.fusion-featured-slider-tb) > .fusion-column-wrapper {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    /* Einschieben beim Scrollen (reines CSS, scrollgebunden): Das Bild kommt von links, beim Eintritt in den Viewport sind 38 % sichtbar (translateX -62 %).
       Mit dem Scrollen wandert es auf seine Position, erreicht sie, wenn seine Oberkante im unteren Drittel steht (33,33vh über dem Viewport-Rand), davor und danach geklemmt.
       Ohne Unterstützung (animation-timeline) oder bei reduzierter Bewegung steht das Bild einfach an seiner Position. */
    @supports (animation-timeline: view()) {
        @media (prefers-reduced-motion: no-preference) {
            @keyframes ap-proj-slide {
                from { transform: translateX(-62%); }
                to { transform: translateX(0); }
            }
            #projects .fusion-post-cards .fusion_builder_column_inner:has(.fusion-featured-slider-tb) {
                animation: ap-proj-slide linear both;
                animation-duration: 1ms; /* Firefox und ältere Engines brauchen eine Dauer, die Zeitleiste ersetzt sie */
                animation-timeline: view();
                animation-range: cover 0% cover 33.33vh;
            }
        }
    }
    #projects .fusion-post-cards .fusion-title .fusion-title-heading {
        font-family: "Radikal Medium" !important;
        font-weight: 400 !important;
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
    }
    #projects .fusion-post-cards .fusion-meta-tb {
        font-size: .875rem !important;
        line-height: 1.5;
    }
    #projects .fusion-post-cards .fusion-meta-tb-sep {
        display: none !important;
    }
    #projects .fusion-post-cards .fusion-meta-tb .fusion-tb-tags,
    #projects .fusion-post-cards .fusion-meta-tb .fusion-tb-skills {
        display: block;
    }
    #projects .fusion-post-cards .fusion-meta-tb .fusion-tb-tags,
    #projects .fusion-post-cards .fusion-meta-tb .fusion-tb-tags a {
        font-family: "Radikal Medium";
        font-size: .8125rem;
        letter-spacing: .06em;
        text-transform: uppercase;
    }
    #projects .fusion-post-cards .fusion-meta-tb .fusion-tb-skills,
    #projects .fusion-post-cards .fusion-meta-tb .fusion-tb-skills a {
        color: var(--ap-proj-soft) !important;
    }
    #projects .fusion-post-cards .fusion-meta-tb,
    #projects .fusion-post-cards .fusion-meta-tb * {
        -webkit-hyphens: manual !important;
        hyphens: manual !important; /* .hyphens * (Container) würde sonst auch "Wettbewerb" trennen */
    }
}

/* PROJEKTE: Bild oder Bildband je Projekt (Spalte .ap-media neben Spalte .ap-project__text, Zeilen wechseln Bild links/rechts, 2/3 : 1/3)
   Bilder als fusion_imageframe in die Spalte legen: ein Bild = Einzelbild, ab zwei Bildern ein Band zum Wischen (Scroll-Snap, Maßstrich-Leiste und
   Pfeiltasten per script.js, kein Autolauf). Ohne Bild zeigt die Spalte einen Rahmen als Platzhalter. Mobil steht das Bild immer über dem Text. */
.ap-media {
    position: relative;
    padding-bottom: 1.6rem;
}
.ap-media .fusion-column-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    aspect-ratio: 4 / 3;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.ap-media .fusion-column-wrapper::-webkit-scrollbar {
    display: none;
}
.ap-media .fusion-column-wrapper:focus-visible {
    outline: 1px solid light-dark(var(--awb-color6), var(--awb-color5));
    outline-offset: -1px;
}
.ap-media .fusion-column-wrapper::before,
.ap-media .fusion-column-wrapper::after {
    display: none; /* Avada-Clearfix */
}
.ap-media .fusion-image-element,
.ap-media .fusion-imageframe {
    display: block !important;
    float: none !important;
    flex: 0 0 100%;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    margin: 0 !important;
    scroll-snap-align: start;
}
.ap-media img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    -webkit-user-drag: none;
    user-select: none;
}
.ap-media:not(:has(img)) .fusion-column-wrapper {
    border: 1px solid light-dark(var(--awb-color4), var(--awb-color7));
    box-sizing: border-box;
}
.ap-media .ap-media__ind {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1.2rem;
    display: flex;
    align-items: flex-end;
    gap: .5rem;
}
.ap-media .ap-media__ind button {
    appearance: none;
    border: 0;
    margin: 0;
    padding: 0 .35rem; /* größere Trefferfläche, sichtbar bleibt 1 px */
    height: 1.2rem;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    -webkit-tap-highlight-color: transparent;
}
.ap-media .ap-media__ind button::before {
    content: "";
    display: block;
    width: 1px;
    height: .45rem;
    background: light-dark(var(--awb-color4), var(--awb-color7));
    transition: height .3s ease, background-color .3s ease;
}
.ap-media .ap-media__ind button.is-on::before {
    height: 1rem;
    background: light-dark(var(--awb-color6), var(--awb-color5));
}
.ap-media .ap-media__ind button:focus-visible {
    outline: 1px solid light-dark(var(--awb-color6), var(--awb-color5));
}
.fusion-builder-row-inner:has(> .ap-media) {
    align-items: center;
    margin-bottom: 3rem !important;
}
/* Meta-Zeile eines Projekts (CSS Class "ap-project__tags" am Element, egal ob Span, Text-, Titel- oder Tag-Element): gedämpft, 58 % Tinte auf dem Grund
   (hell etwa #737373, dunkel etwa #999999, beides über 4,5 : 1). !important und "html body", weil die globalen Textfarben (.fusion-text, .fusion-text p, Überschriften)
   sonst auch dann gewinnen, wenn die Klasse am Text-Element selbst sitzt. In der Akzentfläche: Schwarz zu 78 % auf der Flächenfarbe (Gold braucht das für etwa 4,5 : 1). */
.ap-project__tags {
    display: block;
    margin-bottom: .6em;
    font-size: .8em;
    letter-spacing: .04em;
}
html body .ap-project__tags,
html body .ap-project__tags * {
    color: color-mix(in srgb, light-dark(var(--awb-color8), var(--awb-color1)) 58%, light-dark(var(--awb-color1), var(--awb-color8))) !important;
}
html body .accent-container .ap-project__tags,
html body .accent-container .ap-project__tags * {
    color: color-mix(in srgb, var(--ap-on-accent) 78%, var(--ap-accent-bg)) !important;
}
@media only screen and (max-width: 640px) {
    .ap-media {
        order: -1;
    }
    .fusion-builder-row-inner:has(> .ap-media) {
        margin-bottom: 2rem !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    .ap-media .ap-media__ind button::before { transition: none; }
}

/* ACCENT-CONTAINER (CSS Class "accent-container" am Avada-Container, zusätzlich zu "seperation")
   Fläche in der Akzentfarbe des wirksamen Modus (hell: Gold, dunkel: Gelb), Text, Linien und Buttons in Schwarz (Color 8), in beiden Modi. Schwarz hat auf
   Gold etwa 6,4 : 1, auf Gelb etwa 17 : 1. Die Akzentfarben selbst (Hover, Zähler, Platte) wären auf der Fläche unsichtbar, sie werden deshalb durch Schwarz ersetzt.
   Mit .force-dark / .force-light kombinierbar (steuert, ob Gelb oder Gold). Linien-Effekte (ap-lines--*) sind für diesen Container nicht abgestimmt. */
.accent-container {
    --ap-on-accent: var(--awb-color8);
    --ap-accent-bg: light-dark(var(--awb-color6), var(--awb-color5));
}
.fusion-fullwidth.accent-container {
    background-color: var(--ap-accent-bg) !important;
    color: var(--ap-on-accent) !important;
}
.accent-container.seperation::before,
.accent-container.separation::before {
    background-color: var(--ap-on-accent);
}
.accent-container,
.accent-container .fusion-text,
.accent-container .fusion-text p,
.accent-container .fusion-text a,
.accent-container .fusion-text a:visited,
.accent-container .fusion-text a:hover,
.accent-container h1, .accent-container h2, .accent-container h3,
.accent-container h4, .accent-container h5, .accent-container h6,
.accent-container [class^="icon-"], .accent-container [class*=" icon-"],
.accent-container .fusion-counter-box *,
.accent-container [class*="fusion-events"] *,
.accent-container .fusion-events-post * {
    color: var(--ap-on-accent) !important;
}
.accent-container .fusion-text a:hover {
    text-decoration: underline;
}
.accent-container [class*="fusion-events"],
.accent-container .fusion-events-post {
    background: transparent !important;
    border-color: var(--ap-on-accent) !important;
}
/* Separator (Avada-Element) in der Akzentfläche: Linie und Icon in der Textfarbe. Die im Element gesetzte Palettenfarbe (z. B. Akzent) wäre auf der Fläche unsichtbar. */
.accent-container .fusion-separator .fusion-separator-border,
.accent-container .fusion-separator .icon-wrapper {
    border-color: var(--ap-on-accent) !important;
}
.accent-container .fusion-separator .icon-wrapper,
.accent-container .fusion-separator .icon-wrapper i {
    color: var(--ap-on-accent) !important;
}
/* Buttons: Tinte Schwarz, Hover-Platte bleibt Schwarz (Akzent wäre unsichtbar), Kontur-Variante invertiert auf die Flächenfarbe */
#main .accent-container .fusion-button.button-default {
    --ap-btn-ink: var(--ap-on-accent);
    --ap-btn-line: color-mix(in srgb, var(--ap-on-accent) 35%, transparent);
    --ap-btn-accent: var(--ap-on-accent);
}
#main .accent-container .fusion-button.button-default.ap-btn-outline {
    --ap-btn-bg: var(--ap-accent-bg);
}

/* PROJEKTLOGOS (CSS Class "project-logo" am Bild-Element oder an dessen Container)
   Die Logos sind schwarz auf transparent und werden im Dunkelmodus invertiert. Den wirksamen Modus schreibt script.js als data-ap-scheme (Systemeinstellung,
   Umschalter, .force-dark/.force-light), ohne JS gilt die Systemeinstellung. */
.project-logo[data-ap-scheme="dark"] img,
img.project-logo[data-ap-scheme="dark"] {
    filter: invert(1);
}
@media (prefers-color-scheme: dark) {
    .project-logo:not([data-ap-scheme]) img,
    img.project-logo:not([data-ap-scheme]) {
        filter: invert(1);
    }
}

/* ZEITLEISTE (Spalte mit CSS Class "ap-timeline", kein Nesting nötig)
   Jeder Eintrag ist ein einzelnes Text-Element direkt in der Spalte (<h4>Jahr</h4><p>Text</p>). Die Spalte wird ein horizontal scrollender Streifen
   (Wischen, Trackpad, am Desktop mit der Maus ziehen, Pfeiltasten). Über jedem Eintrag liegt die Hairline mit der Kragplatte (wie die Deckenlinien in
   .ap-floors), beim Hover/Fokus läuft die Platte über die ganze Breite in die Akzentfarbe. Darunter zeigt eine Leiste die Position (nur bei Überlauf). */
.ap-timeline {
    position: relative;
    padding-bottom: 1.6rem;
}
.ap-timeline .fusion-column-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
}
.ap-timeline .fusion-column-wrapper::-webkit-scrollbar {
    display: none;
}
.ap-timeline .fusion-column-wrapper::before,
.ap-timeline .fusion-column-wrapper::after {
    display: none; /* Avada-Clearfix */
}
.ap-timeline .fusion-column-wrapper:focus-visible {
    outline: 1px solid light-dark(var(--awb-color6), var(--awb-color5));
    outline-offset: -1px;
}
.ap-timeline .fusion-column-wrapper.is-drag {
    scroll-snap-type: none;
    cursor: grabbing;
    -webkit-user-select: none;
    user-select: none;
}
.ap-timeline .fusion-text {
    position: relative;
    flex: 0 0 clamp(200px, 24vw, 300px);
    box-sizing: border-box;
    margin: 0 !important;
    padding: 1.6rem 2rem 0 0;
    scroll-snap-align: start;
}
.ap-timeline .fusion-text::before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: light-dark(var(--awb-color4), var(--awb-color7));
}
.ap-timeline .fusion-text::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: -1px;
    width: 2.2rem;
    height: 3px;
    background: light-dark(var(--awb-color8), var(--awb-color1));
    transition: width .45s cubic-bezier(.2, .7, .2, 1), background-color .3s ease;
}
@media (hover: hover) {
    .ap-timeline .fusion-text:hover::after {
        width: 100%;
        background: light-dark(var(--awb-color6), var(--awb-color5));
    }
}
.ap-timeline .fusion-text h4 {
    margin: 0 0 .35em;
}
.ap-timeline .fusion-text p {
    margin: 0;
}
/* Positionsleiste: Haarlinie mit Platte, die Platte steht für den sichtbaren Ausschnitt (script.js setzt Breite und Lage) */
.ap-timeline .ap-timeline__bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: light-dark(var(--awb-color4), var(--awb-color7));
    pointer-events: none;
}
.ap-timeline .ap-timeline__bar i {
    position: absolute;
    left: 0;
    top: -1px;
    height: 3px;
    width: 30%;
    background: light-dark(var(--awb-color8), var(--awb-color1));
}
.ap-timeline .ap-timeline__bar[hidden] {
    display: none;
}
@media (prefers-reduced-motion: reduce) {
    .ap-timeline .fusion-text::after { transition: none; }
}

/* Zeitleiste in der Akzentfläche: Hairlines, Platten und Positionsleiste in Schwarz (die Palettenfarben wären grau bzw. im Dunkelmodus weiß auf Gelb, der Hover in Akzent unsichtbar) */
.accent-container .ap-timeline .fusion-text::before,
.accent-container .ap-timeline .ap-timeline__bar {
    background: color-mix(in srgb, var(--ap-on-accent) 45%, var(--ap-accent-bg));
}
.accent-container .ap-timeline .fusion-text::after,
.accent-container .ap-timeline .ap-timeline__bar i,
.accent-container .ap-timeline .fusion-text:hover::after {
    background: var(--ap-on-accent);
}
.accent-container .ap-timeline .fusion-column-wrapper:focus-visible {
    outline-color: var(--ap-on-accent);
}

/* MENÜ: Schriftgröße und Touch-Ziele
   Avada hat die Menüschrift in vw hinterlegt (--nav_typography-font-size: 1vw), das ergibt mobil 4 px und am Tablet 6 bis 10 px. Unter 1025 px deshalb feste Größe,
   mobil mit 48 px hohen Zeilen. Das geschlossene Menü liegt nur außerhalb des Bildes und bleibt sonst antippbar und per Tab erreichbar, daher visibility. */
.apmenu {
    visibility: hidden;
    transition: all 250ms ease, visibility 0s linear 250ms;
}
.menu-toggled .apmenu {
    visibility: visible;
    transition-delay: 0s;
}
@media only screen and (max-width: 1024px) {
    .apmenu .awb-menu__main-a .menu-text {
        font-size: 1.375rem;
        line-height: 1.25;
    }
}
/* Geöffnetes Menü: Seite dahinter zurücknehmen, sonst läuft der Inhalt durch die Menüpunkte (Header und Menü blenden per difference, daher eigene Ebene darunter) */
@media only screen and (max-width: 1024px) {
    body::after {
        content: "";
        position: fixed;
        left: 0;
        right: 0;
        top: -120px;
        height: calc(100vh + 240px);
        height: calc(100lvh + 240px); /* über den sichtbaren Bereich hinaus: iOS Safari verankert fixed-Elemente an der sichtbaren Fläche zwischen Adressleiste und Toolbar, die Fläche darunter/darüber bliebe sonst offen */
        z-index: 100;
        background: light-dark(var(--light-bg), var(--dark-bg));
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 250ms ease, visibility 0s linear 250ms;
    }
    body.menu-toggled::after {
        opacity: .96;
        visibility: visible;
        pointer-events: auto;
        transition-delay: 0s;
    }
}
@media only screen and (max-width: 640px) {
    .apmenu .awb-menu__main-a .menu-text {
        font-size: 1.5rem;
    }
    /* Der Link ist nur so breit wie sein Text (rechtsbündig), sonst löst ein Tipp links daneben den Link aus statt das Menü zu schließen */
    .apmenu .awb-menu__main-li {
        display: flex;
        justify-content: flex-end;
    }
    .apmenu .awb-menu__main-a {
        display: flex;
        align-items: center;
        flex: 0 0 auto;
        width: auto !important;
        min-height: 3rem;
    }
}

/* MOBIL: Formularfelder mit mindestens 16 px, sonst zoomt iOS beim Fokus in die Seite.
   (Zu lange Überschriften wie "Veranstaltungen" verkleinert script.js, bis sie in die Spalte passen.) */
@media only screen and (max-width: 640px) {
    .fusion-footer input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
    .fusion-footer textarea,
    .fusion-footer select,
    .fusion-form-input,
    .fusion-form-textarea {
        font-size: 16px !important;
    }
}

/* TOUCH: Treffer-Flächen von mindestens 44 px, ohne das Layout zu verändern (Fläche per Pseudo-Element bzw. negativem Rand) */
@media (pointer: coarse) {
    .fusion-footer .fusion-text a,
    .fusion-footer .fusion-checkbox label,
    .fusion-footer-copyright-area a {
        display: inline-block;
        padding-block: .85em;
        margin-block: -.85em;
    }
    .fb-icon-element {
        position: relative;
    }
    .fb-icon-element::after {
        content: "";
        position: absolute;
        inset: -6px;
    }
}

/* BUTTONS ("Maßlinie")
   Keine Box: Text in Radikal Medium in Textfarbe, ein dünner Pfeil, darunter eine Haarlinie mit einer kurzen dicken Platte (Kragplatte, wie die Deckenlinien in .ap-floors).
   Hover: Die Platte läuft über die ganze Breite und wechselt in die Akzentfarbe (Gold hell, Gelb dunkel), der Pfeil rückt vor.
   Überschreibt die Avada-Button-Optionen (Farbe, Rahmen, Padding, Hover-Farben), die sonst eine graue Box bzw. im Dunkelmodus eine helle Fläche erzeugen. */
#main .fusion-button.button-default,
.fusion-footer .fusion-button.button-default {
    --ap-btn-ink: light-dark(var(--light-color), var(--dark-color));
    --ap-btn-line: light-dark(var(--awb-color4), var(--awb-color7));
    --ap-btn-accent: light-dark(var(--light-hover-color), var(--dark-hover-color));
    position: relative;
    display: inline-flex !important;
    align-items: center;
    gap: .75rem;
    width: auto;
    padding: 1rem 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--ap-btn-ink) !important;
    font-family: "Radikal Medium" !important;
    font-size: 1rem !important;
    letter-spacing: .01em;
    -webkit-tap-highlight-color: transparent;
}
#main .fusion-button.button-default:hover,
#main .fusion-button.button-default:focus,
.fusion-footer .fusion-button.button-default:hover,
.fusion-footer .fusion-button.button-default:focus {
    background: transparent !important;
    color: var(--ap-btn-ink) !important;
}
#main .fusion-button.button-default .fusion-button-text,
#main .fusion-button.button-default i,
.fusion-footer .fusion-button.button-default .fusion-button-text,
.fusion-footer .fusion-button.button-default i {
    color: inherit !important;
}
/* Haarlinie */
#main .fusion-button.button-default::before,
.fusion-footer .fusion-button.button-default::before {
    content: "";
    display: block; /* Avada setzt hier teils ein Clearfix mit display: table */
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--ap-btn-line);
}
/* Platte */
#main .fusion-button.button-default::after,
.fusion-footer .fusion-button.button-default::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 2.2rem;
    height: 3px;
    background: var(--ap-btn-ink);
    transition: width .45s cubic-bezier(.2, .7, .2, 1), background-color .3s ease;
}
/* Pfeil (Haarlinie mit Spitze, per Maske in der Textfarbe) */
#main .fusion-button.button-default .fusion-button-text::after,
.fusion-footer .fusion-button.button-default .fusion-button-text::after {
    content: "";
    display: inline-block;
    width: 1.6rem;
    height: .55rem;
    margin-left: .75rem;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 12'%3E%3Cpath d='M0 6h31M26 1l5 5-5 5' fill='none' stroke='black' stroke-width='1'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 12'%3E%3Cpath d='M0 6h31M26 1l5 5-5 5' fill='none' stroke='black' stroke-width='1'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
/* Abschnitte mit Welle (ap-lines--merge) und Button: Die Folgefläche steigt bis zu rh + 26 px (lines.js, rh = 16 % der Breite, 112 bis 224 px) in den Abschnitt,
   der Button soll darüber enden statt auf der dunklen Fläche zu liegen (dort wäre der Text unlesbar). Abstand zusätzlich 24 px. */
#wrapper #main .ap-lines--merge.fusion-fullwidth:has(.fusion-button) {
    padding-bottom: calc(clamp(112px, 16vw, 224px) + 26px + 24px) !important;
}
/* Absenden hat schon ein Icon, kein zweiter Pfeil */
.fusion-footer button.fusion-button.button-default .fusion-button-text::after {
    content: none;
}
@media (hover: hover) {
    #main .fusion-button.button-default:hover::after,
    .fusion-footer .fusion-button.button-default:hover::after {
        width: 100%;
        background: var(--ap-btn-accent);
    }
    #main .fusion-button.button-default:hover .fusion-button-text::after,
    .fusion-footer .fusion-button.button-default:hover .fusion-button-text::after {
        transform: translateX(.35rem);
    }
}
#main .fusion-button.button-default:active::after,
.fusion-footer .fusion-button.button-default:active::after {
    width: 100%;
    background: var(--ap-btn-accent);
}
#main .fusion-button.button-default:focus-visible,
.fusion-footer .fusion-button.button-default:focus-visible {
    outline: 1px solid var(--ap-btn-accent);
    outline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
    #main .fusion-button.button-default::after,
    #main .fusion-button.button-default .fusion-button-text::after,
    .fusion-footer .fusion-button.button-default::after,
    .fusion-footer .fusion-button.button-default .fusion-button-text::after { transition: none; }
}

/* BUTTON ALTERNATIVE ("Kontur"): im Button-Element unter CSS Class "ap-btn-outline" eintragen
   Zweitbutton neben dem Maßlinien-Button: schlanker Haarlinien-Rahmen in Textfarbe, Medium-Schrift mit Pfeil, Hover invertiert die Fläche (Textfarbe als Grund, Abschnittsfarbe als Schrift). */
#main .fusion-button.button-default.ap-btn-outline,
.fusion-footer .fusion-button.button-default.ap-btn-outline {
    --ap-btn-bg: light-dark(var(--light-bg), var(--dark-bg));
    padding: .8rem 1.4rem !important;
    border: 1px solid var(--ap-btn-ink) !important;
    font-size: .9375rem !important;
    transition: background-color .3s ease, color .3s ease;
}
#main .fusion-button.button-default.ap-btn-outline::before,
#main .fusion-button.button-default.ap-btn-outline::after,
.fusion-footer .fusion-button.button-default.ap-btn-outline::before,
.fusion-footer .fusion-button.button-default.ap-btn-outline::after {
    display: none;
}
#main .fusion-button.button-default.ap-btn-outline .fusion-button-text::after,
.fusion-footer .fusion-button.button-default.ap-btn-outline .fusion-button-text::after {
    width: 1.4rem;
    margin-left: .6rem;
}
@media (hover: hover) {
    #main .fusion-button.button-default.ap-btn-outline:hover,
    .fusion-footer .fusion-button.button-default.ap-btn-outline:hover {
        background: var(--ap-btn-ink) !important;
        color: var(--ap-btn-bg) !important;
    }
}
#main .fusion-button.button-default.ap-btn-outline:active,
.fusion-footer .fusion-button.button-default.ap-btn-outline:active {
    background: var(--ap-btn-ink) !important;
    color: var(--ap-btn-bg) !important;
}
#main .fusion-button.button-default.ap-btn-outline:hover,
#main .fusion-button.button-default.ap-btn-outline:focus,
.fusion-footer .fusion-button.button-default.ap-btn-outline:hover,
.fusion-footer .fusion-button.button-default.ap-btn-outline:focus {
    text-decoration: none !important;
}
@media (prefers-reduced-motion: reduce) {
    #main .fusion-button.button-default.ap-btn-outline,
    .fusion-footer .fusion-button.button-default.ap-btn-outline { transition: none; }
}

/* "MEHR LADEN" (Portfolio-Archiv, Blog, Post Cards: Avada-Klasse .fusion-load-more-button)
   Optik der Kontur-Variante (ap-btn-outline): Haarlinien-Rahmen in Textfarbe, Medium-Schrift, Pfeil (hier nach unten, weil es nachlädt), Hover invertiert die Fläche.
   Der Text kommt aus functions.php (ap35_load_more_text). Avada blendet den Button am Ende der Liste per Inline-Style (display: none) aus: display daher ohne !important.
   Der Button trägt .fusion-clearfix, dessen ::before/::after (display: table) sonst als Flex-Element bzw. als Pfeil stören. */
#main .fusion-load-more-button {
    --ap-btn-ink: light-dark(var(--light-color), var(--dark-color));
    --ap-btn-bg: light-dark(var(--light-bg), var(--dark-bg));
    --ap-btn-accent: light-dark(var(--light-hover-color), var(--dark-hover-color));
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    width: auto !important;
    height: auto !important;
    padding: .8rem 1.4rem !important;
    border: 1px solid var(--ap-btn-ink) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--ap-btn-ink) !important;
    font-family: "Radikal Medium" !important;
    font-size: .9375rem !important;
    line-height: 1.7 !important;
    font-weight: normal !important;
    letter-spacing: .01em !important;
    text-transform: none !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color .3s ease, color .3s ease;
    -webkit-tap-highlight-color: transparent;
}
#main .fusion-load-more-button::before {
    display: none;
}
#main .fusion-load-more-button::after {
    content: "";
    display: block;
    flex: none;
    clear: none;
    width: .45rem;
    height: 1.1rem;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 32'%3E%3Cpath d='M6 0v31M1 26l5 5 5-5' fill='none' stroke='black' stroke-width='1'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 32'%3E%3Cpath d='M6 0v31M1 26l5 5 5-5' fill='none' stroke='black' stroke-width='1'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
@media (hover: hover) {
    #main .fusion-load-more-button:hover {
        background: var(--ap-btn-ink) !important;
        color: var(--ap-btn-bg) !important;
    }
    #main .fusion-load-more-button:hover::after {
        transform: translateY(.25rem);
    }
}
#main .fusion-load-more-button:active {
    background: var(--ap-btn-ink) !important;
    color: var(--ap-btn-bg) !important;
}
#main .fusion-load-more-button:focus-visible {
    outline: 1px solid var(--ap-btn-accent);
    outline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
    #main .fusion-load-more-button,
    #main .fusion-load-more-button::after { transition: none; }
}

/* KUNDENLOGO-WAND (.logo-wall, Logik in script.js)
   Logos liegen versteckt in der Galerie .logo-source und werden auf die Felder .logo-target (von script.js angelegt) verteilt. Alle Logos sind schwarz auf transparent,
   im Dunkelmodus werden sie invertiert (data-ap-scheme setzt script.js, ohne JS gilt die Systemeinstellung).
   Raster: jedes Feld hat oben eine Linie (4 px, Grau), bei einem Wechsel zieht eine Akzentlinie darüber (auf der Alt-Startseite je Feld Magenta, Grün oder Blau, alt-home.css).
   Die Logo-Dateien sind 256-px-Quadrate, in die das Logo randlos auf die Breite eingepasst ist. Damit Wortmarken und Signets gleich
   schwer wirken, misst script.js je Logo den belegten Bereich (--cw/--ch, Anteil an der Dateigröße). Die Größe folgt einer konstanten Fläche,
   begrenzt durch maximale Breite und Höhe. Ohne Messung gilt ein mittleres Seitenverhältnis. */
.logo-wall {
    --ap-k: 78px;      /* Kantenlänge der Soll-Fläche (Fläche = k²) */
    --ap-wmax: 156px;  /* maximale Logo-Breite */
    --ap-hmax: 72px;   /* maximale Logo-Höhe */
    --ap-cell: 132px;  /* Mindesthöhe eines Felds */
}
@media only screen and (max-width: 1024px) {
    .logo-wall { --ap-k: 68px; --ap-wmax: 132px; --ap-hmax: 64px; --ap-cell: 116px; }
}
@media only screen and (max-width: 640px) {
    .logo-wall { --ap-k: 52px; --ap-wmax: 96px; --ap-hmax: 52px; --ap-cell: 96px; }
}
/* Die Galerie ist nur Bildquelle. script.js legt neben ihr (in derselben Spalte) das Raster .ap-logo-grid mit den Feldern .logo-target an, im Builder braucht es
   dafür keine leeren Spalten. Das Raster liegt damit wie jeder andere Inhalt in einer normalen Spalte und folgt deren Breite und dem Innenabstand des Containers. */
.logo-wall .logo-source {
    display: none !important;
}
.logo-wall .ap-logo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 3.84%;
    row-gap: 1.5rem;
    width: 100%;
}
@media only screen and (max-width: 640px) {
    .logo-wall .ap-logo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 5%;
    }
}
/* Altes Markup (leere Spalten .logo-target direkt in der Builder-Zeile): bleibt bis zur Umstellung auf das Script-Raster wie bisher ein Grid (Titel über die Breite,
   Subheading links, Felder rechts). Entfällt, sobald kein Markup mehr leere Spalten nutzt. */
.logo-wall .fusion-builder-row:has(> .logo-target) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) repeat(4, minmax(0, 1.25fr));
    column-gap: 3.84%;
    align-items: start;
}
.logo-wall .fusion-builder-row:has(> .logo-target) > .fusion-layout-column {
    width: auto !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    min-width: 0;
}
.logo-wall .fusion-builder-row:has(> .logo-target) > .fusion-layout-column:not(.logo-target):not(.hidden):not(:has(.rotated)) {
    grid-column: 1 / -1;
}
.logo-wall .fusion-builder-row:has(> .logo-target) > .fusion-layout-column:has(.rotated) {
    grid-column: 1;
    grid-row: 2 / span 3;
}
@media only screen and (max-width: 640px) {
    .logo-wall .fusion-builder-row:has(> .logo-target) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .logo-wall .fusion-builder-row:has(> .logo-target) > .fusion-layout-column:has(.rotated) {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}
.logo-wall .hidden {
    display: none !important;
}
.logo-wall .logo-target {
    position: relative;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}
@media only screen and (max-width: 640px) {
    .logo-wall .fusion-builder-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .logo-wall .fusion-builder-row > .fusion-layout-column:has(.rotated) {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}
.logo-wall .logo-target::before,
.logo-wall .logo-target::after {
    content: "";
    display: block; /* Avada setzt hier ein Clearfix mit display: table */
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px; /* Linie über jedem Feld, 4 px statt Haarlinie (gilt für Grundlinie und Wechsel-Linie) */
    pointer-events: none;
}
.logo-wall .logo-target::before {
    background: light-dark(var(--awb-color4), var(--awb-color7));
    transition: background-color .35s ease;
}
.logo-wall .logo-target::after {
    background: light-dark(var(--awb-color6), var(--awb-color5));
    transform: scaleX(0);
    transform-origin: 0 50%;
}
.logo-wall .logo-target.is-swap::after {
    animation: ap-logo-sweep 1.3s cubic-bezier(.2, .7, .2, 1);
}
@keyframes ap-logo-sweep {
    0% { transform: scaleX(0); opacity: 1; }
    55% { transform: scaleX(1); opacity: 1; }
    100% { transform: scaleX(1); opacity: 0; }
}
@media (hover: hover) {
    .logo-wall .logo-target:hover::before {
        background: light-dark(var(--awb-color6), var(--awb-color5));
    }
}
.logo-wall .logo-target .fusion-column-wrapper {
    position: relative;
    min-height: var(--ap-cell);
}
.logo-wall .logo-target .fusion-column-wrapper[role="button"] {
    cursor: pointer;
}
.logo-wall .logo-target img {
    position: absolute;
    left: 50%;
    top: 50%;
    margin: 0;
    width: 96px; /* Rückfall ohne sqrt() */
    width: min(
        calc(var(--ap-k) / sqrt(var(--cw, 1) * var(--ch, .3))),
        calc(var(--ap-wmax) / var(--cw, 1)),
        calc(86% / var(--cw, 1)), /* nie breiter als das Feld, sonst stoßen Logos benachbarter Felder aneinander */
        calc(var(--ap-hmax) / var(--ch, .3))
    );
    height: auto;
    max-width: none;
    max-height: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(.94);
    transition: opacity .6s ease, transform .6s ease;
    pointer-events: none;
}
.logo-wall .logo-target img.active {
    opacity: .88;
    transform: translate(-50%, -50%) scale(1);
}
@media (hover: hover) {
    .logo-wall .logo-target:hover img.active {
        opacity: 1;
    }
}
.logo-wall[data-ap-scheme="dark"] .logo-target img {
    filter: invert(1);
}
@media (prefers-color-scheme: dark) {
    .logo-wall:not([data-ap-scheme]) .logo-target img {
        filter: invert(1);
    }
}
.logo-wall .logo-target .fusion-column-wrapper:focus-visible {
    outline: 1px solid light-dark(var(--awb-color6), var(--awb-color5));
    outline-offset: -1px;
}
@media (prefers-reduced-motion: reduce) {
    .logo-wall .logo-target img { transition: none; }
    .logo-wall .logo-target.is-swap::after { animation: none; }
}

/* Utility: Breitenbegrenzung auf Mobil aufheben (CSS-Klasse im Builder) */
@media only screen and (max-width: 640px) {
    .mobile-no-limit { max-width: unset !important; }
}

/* Pre-Footer: Parallax-Hintergrund immer volle Breite */
.pre-footer .parallax-inner,
.pre-footer .fusion-bg-parallax .parallax-inner { background-size: 100% auto !important; }

/* Silbentrennung: alle Fließtexte trennen (html lang="de"), Überschriften nicht. Mit der Klasse .no-hyphens am Element oder Container abschaltbar. */
p, li, dd, blockquote, figcaption, .fusion-text, .fusion-content-tb, .ap-project__text {
    -webkit-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;
}
h1, h2, h3, h4, h5, h6 {
    -webkit-hyphens: manual;
    hyphens: manual;
}
/* Freigabe: Klasse .hyphens trennt auch Überschriften und alles darin; Hero-Karussell (.apcontentcarousel) trennt Titel und Text immer */
.hyphens, .hyphens *, .apcontentcarousel, .apcontentcarousel * {
    -webkit-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;
}
.no-hyphens, .no-hyphens * {
    -webkit-hyphens: none !important;
    hyphens: none !important;
}

/* Schreibweise-Umschalter (m / w / d): Toggle ist das Avada-Icon-Element mit CSS Class "gender-toggle" (Icon wechselt per script.js),
   die Auswahlliste (.ap-gender) erzeugt script.js und hängt am <body>. Farben wie die Icons: light-dark(--light-color, --dark-color). Hairline, keine Rundung/Schatten */
.ap-gender {
    position: fixed;
    z-index: 1000000;
    min-width: 12em;
    color: light-dark(var(--light-color), var(--dark-color));
    background: light-dark(var(--light-bg), var(--dark-bg));
    border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
}
.ap-gender[hidden] { display: none; }
.ap-gender ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.ap-gender [role="option"] {
    display: flex;
    align-items: center;
    gap: .7em;
    padding: .6em .8em;
    border-left: 2px solid transparent;
    cursor: pointer;
    font-size: .875rem;
    line-height: 1.2;
    color: color-mix(in srgb, currentColor 65%, transparent);
}
.ap-gender [role="option"] i { width: 1.25em; text-align: center; font-size: 1.1em; }
.ap-gender [role="option"] + [role="option"] {
    border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}
.ap-gender [role="option"]:hover,
.ap-gender [role="option"][aria-selected="true"] {
    color: inherit;
}
.ap-gender [role="option"][aria-selected="true"] {
    border-left-color: var(--awb-color5, currentColor);
}
.ap-gender [role="option"]:focus-visible,
.gender-toggle:focus-visible {
    outline: 2px solid var(--awb-color5, currentColor);
    outline-offset: 2px;
}

/* Der Toggle ist ein Font-Awesome-Icon (Klasse fa-*), nicht icon-*: Avada färbt es fix mit --awb-iconcolor (color8). Hier dieselbe Regel wie für die icon-*-Elemente (Hell/Dunkel-Toggle, Menü) */
.gender-toggle,
.gender-toggle:hover {
    color: light-dark(var(--light-color), var(--dark-color)) !important;
    transition: color .5s ease;
}

/* Etwas kleiner als die übrigen Header-Icons (32 px): Das Venus-Mars-Zeichen ist breit und wirkt sonst zu schwer. Avada setzt die Größe am Element (28 px), daher !important */
.gender-toggle {
    font-size: 22px !important;
    align-self: center !important; /* Avada richtet das Icon am Boden der Spalte aus (flex-end): bei 22 statt 32 px Höhe saß es dadurch 5 px zu tief gegenüber Sonne und Menü */
}

/* Im Header (.apui, mix-blend-mode: difference) sind alle Icons weiß und werden vom Blend-Modus passend zum Untergrund invertiert (siehe LOGO & UI) */
.apui .gender-toggle,
.apui .gender-toggle:hover {
    color: #ffffff !important;
}

/* Icon des .gender-toggle schon beim ersten Paint passend zur gespeicherten Wahl: functions.php setzt data-gender auf <html>, script.js hält es aktuell.
   Gleiche Zeichen wie die Font-Awesome-Klassen fa-mars / fa-venus / fa-venus-mars, die script.js zusätzlich tauscht. */
html[data-gender="m"] .gender-toggle::before { content: "\f222"; }
html[data-gender="w"] .gender-toggle::before { content: "\f221"; }
html[data-gender="d"] .gender-toggle::before { content: "\f228"; }

/* Wechselnde Begriffe in Überschriften (.title-variations, siehe script.js): ohne Script steht nur der aktive Begriff.
   Mit Script liegen alle übereinander im Raster .title-variations-set (Breite = längster Begriff), der aktive wird eingeblendet. */
.title-variations:not(.active) {
    display: none;
}
.title-variations-set {
    display: inline-grid;
    vertical-align: baseline;
}
.title-variations-set > .title-variations,
.title-variations-set > .title-variations:not(.active) {
    display: block;
    grid-area: 1 / 1;
    opacity: 0;
    transition: opacity var(--tv-fade, .45s) ease; /* script.js verkürzt die Überblendung bei schnellem Takt */
    text-align: left;
}
.title-variations-set > .title-variations.active {
    opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
    .title-variations-set > .title-variations { transition: none; }
}


/* TERMINE ([ap_events] aus dem Plugin ap35 Events Sync)
   Das Plugin liefert nur die Struktur (Raster, Umschalter, Kalender, siehe plugins/ap35-events/assets/events.css). Das gesamte Aussehen kommt von hier:
   Linien Grau 38 % (hell) / Grau 62 % (dunkel), Sekundärtext Grau 62 % / Grau 38 %, Akzent Gold (hell) / Gelb (dunkel) wie bei den Buttons.
   Radikal nur in den definierten Schnitten (Light, Medium), nichts wird synthetisch fett. Der Link „Zur Veranstaltung“ ist ein Secondary-Button (Kontur, wie ap-btn-outline). */
.ap-events.ap-events { /* doppelte Klasse: das Plugin-CSS lädt später und setzt dieselben Variablen, sonst gewinnt es (Akzent bliebe Gelb auf hellem Grund) */
    --ap-ev-ink: light-dark(var(--light-color), var(--dark-color));
    --ap-ev-bg: light-dark(var(--light-bg), var(--dark-bg));
    --ap-ev-soft: light-dark(var(--awb-color3), var(--awb-color4));
    --ap-ev-line: light-dark(var(--awb-color4), var(--awb-color7));
    --ap-ev-accent: light-dark(var(--light-hover-color), var(--dark-hover-color));
    color: var(--ap-ev-ink);
    font-family: "Radikal Light";
    font-synthesis: none;
}
.ap-events .ap-event__day {
    font-family: "Radikal Light";
    font-size: 2.5rem;
}
.ap-events .ap-event__mon,
.ap-events .ap-events__month,
.ap-events .ap-event__status,
.ap-events .ap-cal__month th {
    font-family: "Radikal Medium";
    font-weight: 400;
    letter-spacing: .06em;
}
.ap-events .ap-event__title,
.ap-events .ap-cal__month caption,
.ap-events .ap-cal__day.is-today .ap-cal__num {
    font-family: "Radikal Medium";
    font-weight: 400;
}
.ap-events .ap-event__meta,
.ap-events .ap-events__empty {
    color: var(--ap-ev-soft) !important; /* .fusion-text p setzt die Textfarbe mit !important */
}

/* Umschalter: Text mit Haarlinie, aktiv mit Akzentlinie */
.ap-events .ap-events__toggle {
    gap: 1.75rem;
    margin-bottom: 1.5rem;
}
.ap-events .ap-events__toggle button {
    all: unset;
    box-sizing: border-box;
    cursor: pointer;
    font-size: .875rem;
    line-height: 1;
    color: var(--ap-ev-soft);
    padding: .4em 0 .55em;
    border: 0;
    border-bottom: 1px solid var(--ap-ev-line);
    font-family: "Radikal Medium";
    letter-spacing: .01em;
}
.ap-events .ap-events__toggle button[aria-pressed="true"] {
    color: var(--ap-ev-ink);
    border-bottom: 3px solid var(--ap-ev-accent);
    margin-bottom: -2px;
}
.ap-events .ap-cal__nav button:focus-visible,
.ap-events .ap-events__toggle button:focus-visible {
    outline: 1px solid var(--ap-ev-accent);
    outline-offset: 2px;
}

/* Liste */
.ap-events .ap-events__month {
    padding: 1.5rem 0 .6rem;
    font-size: .875rem;
    text-transform: uppercase;
    color: var(--ap-ev-soft);
    border-bottom: 1px solid var(--ap-ev-line);
}
.ap-events .ap-events__month:first-child {
    padding-top: 0;
}
.ap-events .ap-event {
    column-gap: 1.25rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--ap-ev-line);
}
.ap-events .ap-event__date {
    line-height: 1;
}
.ap-events .ap-event__mon {
    margin-top: .25rem;
    font-size: .8125rem;
    text-transform: uppercase;
    color: var(--ap-ev-soft);
}
.ap-events .ap-event__title {
    line-height: 1.3;
}
.ap-events .ap-event__status {
    display: inline-block;
    margin-left: .75em;
    padding: .1em .5em;
    font-size: .75rem;
    text-transform: uppercase;
    border: 1px solid var(--ap-ev-line);
    color: var(--ap-ev-soft);
}
.ap-events .ap-event__meta {
    font-size: .9375rem;
}
.ap-events .ap-event__partners {
    gap: .6rem 1.4rem;
    margin-top: 1rem;
}
.ap-events .ap-event__partners li {
    margin: 0;
    padding: 0;
}
.ap-events .ap-event__partners img {
    height: 1.6rem;
    width: auto;
    max-width: 7rem;
    object-fit: contain;
}
.ap-events .ap-event__partners a {
    color: inherit;
    text-decoration: none;
}
.ap-events .ap-event--ended,
.ap-events .ap-event--cancelled {
    opacity: .6;
}
.ap-events .ap-event--cancelled .ap-event__title {
    text-decoration: line-through;
}
.ap-events .ap-event:target {
    border-left: 2px solid var(--ap-ev-accent);
    padding-left: .8rem;
}
@media (max-width: 640px) {
    /* Eine Spalte: das Datum steht als Zeile über dem Titel statt links daneben und nimmt dem Text keine Breite mehr */
    .ap-events .ap-event {
        grid-template-columns: minmax(0, 1fr);
        row-gap: .8rem;
    }
    .ap-events .ap-event__date {
        flex-direction: row;
        align-items: baseline;
        gap: .5rem;
    }
    .ap-events .ap-event__mon {
        margin-top: 0;
    }
    .ap-events .ap-event__day {
        font-size: 2rem;
    }
    .ap-events .ap-event__link {
        grid-column: 1;
    }
}

/* Link: Secondary-Button wie ap-btn-outline (Kontur). Die Maßlinie bleibt dem Primärbutton „Alle Veranstaltungen“ unter der Liste vorbehalten, ein Akzent pro Abschnitt */
.ap-events .ap-event__link {
    display: inline-flex;
    align-items: center;
    padding: .8rem 1.4rem;
    border: 1px solid var(--ap-ev-ink);
    background: transparent;
    color: var(--ap-ev-ink);
    font-family: "Radikal Medium";
    font-size: .9375rem;
    letter-spacing: .01em;
    text-decoration: none;
    transition: background-color .3s ease, color .3s ease;
}
.ap-events .ap-event__link:hover,
.ap-events .ap-event__link:focus-visible {
    color: var(--ap-ev-ink);
    text-decoration: none !important; /* Avada unterstreicht Links im Text beim Hover */
}
.ap-events .ap-event__link::after {
    content: "";
    color: inherit; /* Avada setzt "body a::after" fest auf die Linkfarbe: Der Pfeil blieb beim Hover dunkel auf dunkler Fläche und fehlte */
    display: inline-block;
    width: 1.4rem;
    height: .55rem;
    margin-left: .6rem;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 12'%3E%3Cpath d='M0 6h31M26 1l5 5-5 5' fill='none' stroke='black' stroke-width='1'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 12'%3E%3Cpath d='M0 6h31M26 1l5 5-5 5' fill='none' stroke='black' stroke-width='1'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (hover: hover) {
    .ap-events .ap-event__link:hover {
        background: var(--ap-ev-ink);
        color: var(--ap-ev-bg);
    }
}
.ap-events .ap-event__link:active {
    background: var(--ap-ev-ink);
    color: var(--ap-ev-bg);
}
.ap-events .ap-event__link:focus-visible {
    outline: 1px solid var(--ap-ev-accent);
    outline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
    .ap-events .ap-event__link { transition: none; }
}

/* Kalender: keine Rahmen um die Tage, nur waagerechte Haarlinien; Tage mit Termin tragen eine Akzentlinie oben */
.ap-events .ap-cal__nav {
    gap: .5rem;
    margin-bottom: .5rem;
}
.ap-events .ap-cal__nav button {
    all: unset;
    box-sizing: border-box;
    cursor: pointer;
    width: 2.25rem;
    height: 2.25rem;
    text-align: center;
    line-height: 2.1rem;
    font-size: 1.25rem;
    border: 1px solid var(--ap-ev-line);
}
.ap-events .ap-cal__nav button:hover:not(:disabled) {
    border-color: var(--ap-ev-accent);
}
.ap-events .ap-cal__nav button:disabled {
    opacity: .3;
    cursor: default;
}
.ap-events .ap-cal__month {
    margin: 0 0 2rem;
}
.ap-events .ap-cal__month caption {
    text-align: left;
    padding-bottom: .6rem;
}
.ap-events .ap-cal__month th {
    padding: .4rem .3rem .4rem 0;
    font-size: .8125rem;
    text-align: left;
    color: var(--ap-ev-soft);
    border-bottom: 1px solid var(--ap-ev-line);
}
.ap-events .ap-cal__month td {
    height: 4.5rem;
    padding: .3rem .3rem .3rem 0;
    vertical-align: top;
    border: 0;
    border-top: 1px solid var(--ap-ev-line);
}
.ap-events .ap-cal__month .ap-cal__day.has-event {
    border-top: 2px solid var(--ap-ev-accent);
}
.ap-events .ap-cal__num {
    font-size: .8125rem;
    color: var(--ap-ev-soft);
}
.ap-events .ap-cal__day.is-today .ap-cal__num {
    color: var(--ap-ev-ink);
}
.ap-events .ap-cal__event {
    margin-top: .2rem;
    font-size: .8125rem;
    line-height: 1.2;
    color: var(--ap-ev-ink);
    text-decoration: none;
    overflow-wrap: anywhere;
}
.ap-events .ap-cal__event:hover,
.ap-events .ap-cal__event:focus-visible {
    text-decoration: underline;
}
.ap-events .ap-cal__event--ended {
    opacity: .6;
}
@media (max-width: 640px) {
    .ap-events .ap-cal__month td {
        height: 3.4rem;
        padding: .2rem .2rem .2rem 0;
    }
    .ap-events .ap-cal__event {
        font-size: .6875rem;
        hyphens: auto;
    }
}

/* Partnerlogos sind schwarz auf transparent: im Dunkelmodus (Umschalter oder Systemeinstellung) umkehren */
html.dark .ap-events .ap-event__partners img {
    filter: invert(1);
}
@media (prefers-color-scheme: dark) {
    html:not(.light) .ap-events .ap-event__partners img {
        filter: invert(1);
    }
}
/* Im Accent-Container (Fläche in Gold/Gelb, siehe ACCENT-CONTAINER) gilt in beiden Modi Schwarz auf der Fläche: Tinte, Linien und Akzent folgen --ap-on-accent,
   Sekundärtext wie .ap-project__tags (78 % Schwarz auf der Fläche). Die Partnerlogos (schwarz) bleiben unverändert. */
.accent-container .ap-events.ap-events {
    --ap-ev-ink: var(--ap-on-accent);
    --ap-ev-bg: var(--ap-accent-bg);
    --ap-ev-soft: color-mix(in srgb, var(--ap-on-accent) 78%, var(--ap-accent-bg));
    --ap-ev-line: color-mix(in srgb, var(--ap-on-accent) 35%, transparent);
    --ap-ev-accent: var(--ap-on-accent);
}
html body .accent-container .ap-events .ap-event__partners img {
    filter: none;
}
.accent-container .ap-events .ap-event--ended,
.accent-container .ap-events .ap-event--cancelled,
.accent-container .ap-events .ap-cal__event--ended {
    opacity: .75; /* auf Gold sonst zu blass */
}
