/* ==========================================================================
   Susi Fux – site styles
   Migrated from the old ww_template (TYPO3 v8): styles.css, content.css,
   mobile.css, print.css. Desktop layout: 608px content column, navigation
   fixed on the left, meta navigation fixed on the right, impressum line in
   the bottom right corner, fox animations beside the content.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts (MyFonts webfont kit 2775E8 from the old site)
   -------------------------------------------------------------------------- */
@font-face {
    font-family: 'AvenirLT-Roman';
    src: url('../Fonts/AvenirLT-Roman.woff') format('woff'), url('../Fonts/AvenirLT-Roman.ttf') format('truetype');
    font-display: swap;
}
@font-face {
    font-family: 'AvenirLT-Heavy';
    src: url('../Fonts/AvenirLT-Heavy.woff') format('woff'), url('../Fonts/AvenirLT-Heavy.ttf') format('truetype');
    font-display: swap;
}
@font-face {
    font-family: 'Blu-Opposite';
    src: url('../Fonts/Blu-Opposite.woff') format('woff'), url('../Fonts/Blu-Opposite.ttf') format('truetype');
    font-display: block;
}
@font-face {
    font-family: 'Blu-Regular';
    src: url('../Fonts/Blu-Regular.woff') format('woff'), url('../Fonts/Blu-Regular.ttf') format('truetype');
    font-display: block;
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
    --sf-teal: #86CCC6;
    --sf-teal-soft: rgba(134, 204, 198, 0.8);
    --sf-magenta: #D02B6E;
    --sf-pink: #FF7A9F;
    --sf-text: #69889B;
    --sf-link-line: #ABBFC6;
    --sf-box: rgba(255, 255, 255, 0.71);
    --sf-submenu-bg: #343434;

    --sf-font: 'AvenirLT-Roman', Arial, Helvetica, sans-serif;
    --sf-font-bold: 'AvenirLT-Heavy', Arial, Helvetica, sans-serif;
    --sf-font-opposite: 'Blu-Opposite', Arial, Helvetica, sans-serif;
    --sf-font-regular: 'Blu-Regular', Arial, Helvetica, sans-serif;

    --sf-column: 608px;
    --sf-box-pad-x: 80px;
    --sf-nav-width: 185px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
}

body {
    margin: 0;
    padding: 0;
    overflow-y: scroll;
    overflow-x: hidden;
    font-family: var(--sf-font);
    font-size: 14px;
    line-height: 19px;
    color: var(--sf-text);
    background: #e9edee url('../Images/background.jpg');
}

input, select, textarea, button {
    font: inherit;
    color: inherit;
}

input, select, textarea {
    border: 1px solid #666;
}

fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    outline: none;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--sf-magenta);
    outline-offset: 2px;
}

strong, b {
    font-family: var(--sf-font-bold);
    font-weight: normal;
}

h1, h2, h3, h4, h5, h6 {
    font-size: 14px;
    line-height: 19px;
    font-weight: normal;
    margin: 1.33em 0;
}

p {
    margin: 9px 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100001;
    padding: 6px 10px;
    background: var(--sf-magenta);
    color: #fff;
}
.skip-link:focus {
    left: 0;
}

/* --------------------------------------------------------------------------
   Two-tone "Blu" lettering (logo + headings)
   Blu-Opposite and Blu-Regular are drawn on top of each other.
   -------------------------------------------------------------------------- */
.layered {
    display: inline-grid;
}
.layered > span {
    grid-area: 1 / 1;
}
.layered__base {
    font-family: var(--sf-font-opposite);
    color: var(--sf-teal);
}
.layered__top {
    font-family: var(--sf-font-regular);
    color: var(--sf-text);
    pointer-events: none;
}

/* Content heading (header layout 0/1) – old h3.opposite */
.heading-layered {
    max-width: 448px;
    margin: 0 0 11px;
    font-size: 32px;
    line-height: 35px;
    hyphens: auto;
}
.heading-layered a {
    display: block;
    border: 0;
}
.heading-layered a:hover .layered__base,
.heading-layered a:focus-visible .layered__base {
    color: var(--sf-magenta);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
    position: relative;
    width: var(--sf-column);
    max-width: 100%;
    height: 74px;
    margin: 0 auto;
    padding-top: 16px;
    background: var(--sf-box);
}

.site-logo {
    display: block;
    padding-left: var(--sf-box-pad-x);
    font-size: 65px;
    line-height: 50px;
    white-space: nowrap;
}
.site-logo .layered__top {
    color: var(--sf-magenta);
}

/* --------------------------------------------------------------------------
   Navigation – desktop: main nav fixed left, meta nav fixed right
   -------------------------------------------------------------------------- */
.hamburger {
    display: none;
}

.main-nav {
    position: fixed;
    top: 20%;
    left: 0;
    z-index: 10000;
}

.meta-nav {
    position: fixed;
    right: 0;
    bottom: 15%;
    z-index: 1;
}

.nav-list,
.nav-list-meta,
.nav-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list > .nav-item,
.nav-list-meta > .nav-item {
    position: relative;
    width: var(--sf-nav-width);
    margin-bottom: 2px;
    background: var(--sf-teal-soft);
}

.nav-list > .nav-item:hover,
.nav-list > .nav-item:focus-within,
.nav-list > .nav-item.active,
.nav-list-meta > .nav-item:hover,
.nav-list-meta > .nav-item:focus-within,
.nav-list-meta > .nav-item.active {
    background: var(--sf-magenta);
}

.nav-link,
.nav-spacer {
    display: block;
    padding: 0 10px;
    font-family: var(--sf-font-bold);
    line-height: 23px;
    color: #fff;
    text-align: right;
}

.nav-list-meta .nav-link {
    text-align: left;
}

/* Submenu (the old site only used one level; kept for pages with children) */
.nav-indicator {
    display: none;
}

.nav-submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    z-index: 100000;
}

.nav-item:hover > .nav-submenu,
.nav-item:focus-within > .nav-submenu,
.nav-submenu.active {
    display: block;
}

.nav-submenu-item {
    width: 158px;
    padding: 0 2px 0 12px;
    border-top: 1px solid #fff;
    background: var(--sf-submenu-bg);
}
.nav-submenu-item:first-child {
    border-top: 0;
}

.nav-submenu-link {
    display: block;
    padding: 5px 0;
    font-size: 11px;
    line-height: 15px;
    color: #fff;
}

.nav-submenu-link:hover,
.nav-submenu-item.active > .nav-submenu-link {
    color: #ff0099;
}

/* --------------------------------------------------------------------------
   Content column + boxes
   -------------------------------------------------------------------------- */
.content-column {
    position: relative;
    z-index: 1;
    max-width: var(--sf-column);
    min-height: 585px;
    margin: 0 auto;
    padding-top: 25px;
}

.content-main {
    position: relative;
}

/* Every top-level content element is a translucent white box */
.content-main > .frame {
    margin: 0 0 6px;
    padding: 18px var(--sf-box-pad-x) 11px;
    background: var(--sf-box);
}

.content-main > .frame > :first-child,
.content-main > .frame > header:first-child > :first-child {
    margin-top: 0;
}

/* Anriss (teaser): NEU badge, thumbnail, "+"/"−" corner – old .new, .anrissimage, .mehr */
.content-main .frame {
    position: relative;
}

.badge-new {
    position: absolute;
    top: 0;
    right: 0;
    width: 47px;
    height: 23px;
    line-height: 23px;
    text-align: center;
    color: #fff;
    background: var(--sf-teal-soft);
}

.teaser-media {
    margin: 0 0 11px;
}
.teaser-media__image {
    display: block;
    width: 77px;
    height: auto;
}
.teaser-media__caption {
    margin: 5px 0;
    font-family: var(--sf-font-bold);
}

.teaser-text > :first-child {
    margin-top: 0;
}

.teaser-toggle {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: url('../Images/Ecke_plus_normal.png') no-repeat 0 0;
}
.teaser-toggle:hover,
.teaser-toggle:focus-visible {
    background-image: url('../Images/Ecke_plus_aktiv.png');
}
.is-open > .teaser-toggle {
    background-image: url('../Images/Ecke_minus_normal.png');
}
.is-open > .teaser-toggle:hover,
.is-open > .teaser-toggle:focus-visible {
    background-image: url('../Images/Ecke_minus_aktiv.png');
}

/* Links in running text */
.content-main p a,
.content-main li a,
.content-main td a,
.site-footer a {
    border-bottom: 1px solid var(--sf-link-line);
}
.content-main p a:hover,
.content-main li a:hover,
.content-main td a:hover {
    color: var(--sf-magenta);
    border-bottom-color: var(--sf-pink);
}

.content-main ul,
.content-main ol {
    padding-left: 20px;
}

/* Images (fluid_styled_content) */
.ce-gallery figure {
    margin: 0;
}
.ce-gallery img {
    height: auto;
}
.image-caption {
    padding-top: 3px;
}

/* Tables – old .contenttable */
.ce-table {
    margin: 14px 0;
    padding: 0;
    border-collapse: collapse;
}
.ce-table th,
.ce-table td {
    padding: 0 30px 0 0;
    vertical-align: top;
    text-align: left;
    font-size: 12px;
    line-height: 16px;
}
.ce-table th:last-child,
.ce-table td:last-child {
    padding-right: 0;
}
.ce-table p {
    margin: 0;
}

/* Table class "Spielplan (grosse Schrift)" – old .pid6/.pid12 .contenttable */
.ce-table-spielplan th,
.ce-table-spielplan td {
    font-size: 14px;
    line-height: 19px;
}
.ce-table-spielplan td {
    padding-bottom: 14px;
}
.ce-table-spielplan p + p {
    margin-top: 14px;
}


table td {
    padding: 0;
    vertical-align: top;
    padding-right: 30px;
}

/* Container grids (EXT:container, Resources/Private/Container) */
.grid-2-cols,
.grid-3-cols,
.grid-2-cols-sidebar {
    display: grid;
    gap: 12px;
}
.grid-2-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-2-cols-sidebar {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

/* Audio links (audio.js) – old SoundManager2 inline player */
a.sm2_link::before {
    content: '\25B6\FE0E';
    display: inline-block;
    margin-right: 0.35em;
    font-size: 0.8em;
}
a.sm2_link.sm2_playing {
    color: var(--sf-teal);
}
a.sm2_link.sm2_playing::before {
    content: '\275A\275A';
    letter-spacing: -0.15em;
}

/* --------------------------------------------------------------------------
   Footer / impressum – small line fixed bottom right
   -------------------------------------------------------------------------- */
.site-footer {
    position: fixed;
    right: 10px;
    bottom: 10px;
    z-index: 10;
    text-align: right;
    font-size: 10px;
    line-height: 19px;
    color: var(--sf-teal-soft);
}
.site-footer .frame {
    margin: 0;
    padding: 0;
    background: none;
}
.site-footer p {
    margin: 0;
}
.site-footer a {
    border-bottom-color: var(--sf-teal-soft);
}
.site-footer a:hover {
    color: var(--sf-magenta);
}

/* --------------------------------------------------------------------------
   Fox animations (desktop only, see animations.js)
   Positions relative to the left edge of the 608px content column,
   values taken from the old per-page CSS.
   -------------------------------------------------------------------------- */
.anim {
    position: fixed;
    z-index: 2;
    max-width: none;
    pointer-events: none;
    --x: 0px;
    left: calc(50% - var(--sf-column) / 2 + var(--x));
}

/* left side */
.anim--Animation_Fux_Figurentheater_02 { --x: -149px; top: 41%; }
.anim--Animation_Fux_Faehnchen         { --x: -83px;  top: 43%; }
.anim--Animation_Fux_Schreiben         { --x: -188px; top: 260px; }
.anim--Animation_Fux_Winkend           { --x: -107px; top: 49%; }
.anim--Animation_Fux_Buecherbalance {
    /* scrolls with the page, like on the old site */
    position: absolute;
    left: -159px;
    top: 18%;
}

/* right side */
.anim--Animation_JungFux_02         { --x: 624px; top: 30%; z-index: -1; }
.anim--Animation_JungFux_01         { --x: 644px; top: calc(30% + 110px); }
.anim--Animation_Fux_Lesend         { --x: 565px; top: 100px; }
.anim--Animation_Fux_Hoergeschichten { --x: 555px; top: 30%; }
.anim--Animation_Fux_Megafon        { --x: 550px; top: 30px; }

/* --------------------------------------------------------------------------
   Homepage – no header and navigation, transparent boxes, centered teasers
   -------------------------------------------------------------------------- */
.page-home .content-column {
    padding-top: 200px;
}

.page-home .content-main > .frame {
    background: transparent;
    padding-top: 0;
    padding-bottom: 0;
}

.page-home .content-main header,
.page-home .heading-layered {
    max-width: none;
    text-align: center;
}

.page-home .heading-layered a:hover .layered__top,
.page-home .heading-layered a:focus-visible .layered__top {
    color: var(--sf-magenta);
}

/* Content element layout "Schriftzug gross (Startseite)" – the big "Susi Fux" */
.frame-layout-10 .heading-layered {
    font-size: 65px;
    line-height: 50px;
    text-align: center;
}

#c11 .heading-layered .layered {
    color: #D02B6E;
    font-size: 65px;
    line-height: 50px;
    margin-top: 30px;
}

#c11 .layered__top {
    color: var(--sf-magenta);
}

.page-uid-1 .grid-2-cols > div {
    display: flex;
    flex-flow: column;
    justify-content: space-between;
}

/* --------------------------------------------------------------------------
   Mobile (old mobile.css, max-width 990px)
   -------------------------------------------------------------------------- */
@media (max-width: 990px) {
    .anims {
        display: none;
    }

    /* header */
    .site-header {
        width: 100%;
        max-width: var(--sf-column);
    }

    .site-logo {
        width: 80%;
        padding-left: 40px;
        font-size: 35px;
    }

    /* navigation button */
    .hamburger {
        position: absolute;
        top: 25px;
        right: 35px;
        z-index: 99999;
        display: block;
        width: 30px;
        height: 24px;
        padding: 0;
        border: 0;
        background: none;
        cursor: pointer;
    }

    .hamburger span,
    .hamburger span::before,
    .hamburger span::after {
        position: absolute;
        left: 0;
        width: 100%;
        height: 3px;
        background: var(--sf-magenta);
    }

    .hamburger span {
        top: 50%;
        margin-top: -2px;
        transition: background-color 0s 75ms;
    }

    .hamburger span::before,
    .hamburger span::after {
        content: '';
        top: 0;
        transition: transform 125ms 125ms;
    }
    .hamburger span::before {
        transform: translateY(10px);
    }
    .hamburger span::after {
        transform: translateY(-10px);
    }

    .hamburger.active span {
        background: transparent;
    }
    .hamburger.active span::before {
        transform: rotate(45deg);
    }
    .hamburger.active span::after {
        transform: rotate(-45deg);
    }

    /* navigation panel: hidden until the hamburger is clicked */
    .nav-panel {
        display: none;
        position: fixed;
        top: 20%;
        left: 0;
        z-index: 10000;
        max-height: 75vh;
        overflow-y: auto;
    }

    .menu-open .nav-panel {
        display: block;
    }

    .main-nav,
    .meta-nav {
        position: static;
    }

    .meta-nav {
        margin-top: 20px;
    }

    .nav-list-meta .nav-link {
        text-align: right;
    }

    .nav-indicator {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 23px;
        height: 23px;
        padding: 0;
        border: 0;
        background: none;
        cursor: pointer;
    }
    .nav-indicator-icon::before {
        content: '+';
        color: #fff;
    }
    .nav-indicator[aria-expanded="true"] .nav-indicator-icon::before {
        content: '\2212';
    }

    .nav-item:hover > .nav-submenu,
    .nav-item:focus-within > .nav-submenu {
        display: none;
    }
    .nav-submenu,
    .nav-submenu.active {
        position: static;
    }
    .nav-submenu.active {
        display: block;
    }
    .nav-submenu-item {
        width: auto;
        text-align: right;
    }

    /* content */
    .content-column {
        max-width: 618px;
        padding-left: 5px;
        padding-right: 5px;
    }

    .content-main > .frame {
        padding: 18px 30px 11px;
    }

    .heading-layered {
        font-size: 25px;
        white-space: normal;
    }

    /* tables: cells below each other */
    .ce-table,
    .ce-table tbody,
    .ce-table tr,
    .ce-table th,
    .ce-table td {
        display: block;
        width: auto !important;
    }
    .ce-table th,
    .ce-table td {
        padding-right: 0;
    }
    .ce-table tr {
        margin-bottom: 19px;
    }

    .grid-2-cols-sidebar,
    .grid-3-cols {
        grid-template-columns: minmax(0, 1fr);
    }

    /* footer: in the page flow instead of fixed */
    .site-footer {
        position: static;
        padding: 20px 10px 10px;
    }

    /* homepage */
    .page-home .content-column {
        padding-top: 100px;
    }
    .page-home .content-main > .frame {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-home .heading-layered {
        font-size: 25px;
    }
    .page-home .frame-layout-10 .heading-layered {
        font-size: 65px;
    }
}

/* --------------------------------------------------------------------------
   RTE: text alignment (classes set by the CKEditor alignment button)
   -------------------------------------------------------------------------- */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

/* --------------------------------------------------------------------------
   Page search (Content Block sesamnet/content-search, content-search.js)
   -------------------------------------------------------------------------- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.content-search {
    margin: 0;
}

.content-search__input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--sf-teal);
    border-radius: 0;
    background: #fff;
    color: var(--sf-text);
    font: inherit;
    font-size: 15px;
}

.content-search__input:focus {
    outline: 2px solid var(--sf-magenta);
    outline-offset: 1px;
    border-color: var(--sf-magenta);
}

.content-search__input::placeholder {
    color: var(--sf-link-line);
}

.content-search__status {
    margin: 6px 0 0;
    font-size: 12px;
}

.content-search__status:empty {
    display: none;
}

.content-main .frame.is-filtered,
.frame-search[hidden] {
    display: none;
}

/* --------------------------------------------------------------------------
   Print (old print.css)
   -------------------------------------------------------------------------- */
@media print {
    body {
        background: none;
    }

    .nav-panel,
    .hamburger,
    .anims,
    .site-footer,
    .skip-link,
    .frame-search {
        display: none !important;
    }

    .site-header,
    .content-main > .frame {
        background: none;
    }

    .content-column {
        max-width: none;
        min-height: 0;
    }

    .content-main > .frame {
        padding-left: 0;
        padding-right: 0;
        break-inside: avoid;
    }

    .site-logo {
        padding-left: 0;
    }
}
