/*
Theme Name: Dafür
Theme URI: 
Author: Spider Netzer
Author URI: https://spidernet.at/
Description: Dafür Theme
Version: 1.0
License: GPL2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dafuer
Tags: custom-theme, responsive, blog, business

*/

/* Fonts */
@font-face {
    font-family: 'Source Sans 3';
    src: url('assets/fonts/SourceSans3-Bold.woff2') format('woff2'),
        url('assets/fonts/SourceSans3-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Source Sans 3';
    src: url('assets/fonts/SourceSans3-Regular.woff2') format('woff2'),
        url('assets/fonts/SourceSans3-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rock Salt';
    src: url('assets/fonts/RockSalt-Regular.woff2') format('woff2'),
        url('assets/fonts/RockSalt-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}





* {
    box-sizing: border-box;
}

:focus-visible {
    outline: 2px auto orange;
}

html {
	scroll-behavior: smooth;
    scroll-padding-top: 75px;
	padding:0; 
    background: var(--color-white);
}

@media screen and (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

:root {
  color-scheme: light dark;
}

:root {
    --color-primary: rgb(147, 156, 0);
    --color-secondary: rgb(167, 52, 136);
    --color-mute: #1d3654;
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-lightgrey: #F6F5F3;
    --color-border-slight: #E9E9E9;

    --fontsize-xs: 14px;
    --fontsize-s: 18px;
    --fontsize-m: 22px;
    --fontsize-l: 28px;
    --fontsize-xl: 46px;

    --content-size-m: 1600px;
    --content-size-s: 1360px;

    --border-radius-md: 20px;
    --border-radius-sm: 18px;
    --border-radius-s: 5px;

    --border-primary: 5px solid var(--color-primary);
    --border-secondary: 5px solid var(--color-secondary);
    --border-button: 2px solid var(--color-black);
    --border-slight: 1px solid var(--color-border-slight);

    --boxshadow-light: 0px 1px 2px rgb(0 0 0 / 5%);
    --boxshadow: 0px 20px 25px -5px rgb(0 0 0 / 10%), 0px 10px 10px -5px rgb(0 0 0 / 4%);
    --boxshadow-strong: 0px 14px 14px rgba(0, 0, 0, 0.1), 0px 5px 7px rgba(0, 0, 0, 0.06);

    --wp--style--gallery-gap-default: 20px;
    --gallery-block--gutter-size: 20px;
    --wp--style--block-gap: 10px;
}


/* Layout */
.wp-block-column {
    /*max-width: 725px;*/
    margin: 0 auto !important;
}

.wp-block-group, .aktuelles-template-wrapper {
    max-width: var(--content-size-s);
    margin-left: auto;
    margin-right: auto;
}

.wp-block-group {
    margin-bottom: 200px;
}



/* navi */
.navigation ul.menu {
    display: flex;
    gap: 35px;
    list-style: none;
    font-size: var(--fontsize-m);
    font-weight: 600;

    .menu-item.btn_menu a {
        font-size: var(--fontsize-s);
        background: var(--color-black);
        color: var(--color-white);
        padding: 3px 10px;
    }

    /*.btn_menu a:focus-visible {
        outline: 2px solid orange;
    }*/

    .menu-item:focus-within > .sub-menu  {
        opacity: 1 !important;
        pointer-events: auto;
    }

    li.menu-item-has-children {
    padding-right: 15px;
}


}

#hauptmenue_mobile {
    .current-menu-item > a,
    .current-page-ancestor > a,
    .current_page_parent > a {
        text-decoration: underline;
        text-decoration-thickness: 3px;
        text-decoration-color: var(--color-primary);
        text-underline-offset: 5px;
    }
}

#hauptmenue {
    .menu-item:not(.btn_menu):hover, 
    .current-post-parent,
    .current-menu-item, 
    .current-page-ancestor, 
    .current_page_parent > a {
        text-decoration: underline;
        text-decoration-thickness: 5px;
        text-decoration-color: var(--color-primary);
        text-underline-offset: 7px;
    }
}


#hauptmenue > li > .sub-menu {
    position: absolute;
    background: var(--color-white);
    z-index: 9;
    padding: 15px 20px;
    list-style: none;
    box-shadow: var(--boxshadow);
    opacity: 0;
    transform: translateY(30px);
    transition: all .25s ease;
    pointer-events: none;
    display: grid;
    gap: 5px;
}

#hauptmenue > li.menu-item-has-children:hover > .sub-menu, #hauptmenue > li.menu-item-has-children:focus > .sub-menu {
    opacity: 1;
    transform: translateY(-2px) translateX(-1px);
    transition: all .25s ease;
    pointer-events: auto;
}


/* Submenus initially hidden */
#hauptmenue_mobile .sub-menu {
    display: none;
    font-size: var(--fontsize-l);
    list-style: none;
    padding: 0;
}

/* Show when parent has 'open' class */
#hauptmenue_mobile .menu-item.open > .sub-menu {
    display: block;
}

/* Style for the arrow toggle */
.submenu-toggle {
    cursor: pointer;
    margin-left: 8px;

    svg {
        width: 20px;
        height: 20px;
        font-size: 1em;
        transition: all .25s ease;
        position: relative;
        transform: rotate(0deg);
    }
}
.open .submenu-toggle svg {
    transition: all .25s ease;
    top: -5px;
}

/*.submenu-toggle:focus-visible {
    outline: 2px solid orange;
}*/

/* Optional: style arrow to rotate when open */
.menu-item.open > .submenu-toggle {
    transform: rotate(180deg);
}

#hauptmenue_mobile .sub-menu li {
    margin-bottom: 5px;
}

#hauptmenue .submenu-toggle {
    margin-left: 2px;
    position: absolute;
    /*top: 2px;*/
    margin-top: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;

    svg {
        width: 18px;
        height: 18px;
    }
}

#hauptmenue .submenu-toggle.fade-in {
  opacity: 1;
}


/* Resetting heading styles */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: bold;
    line-height: inherit;
    font-family: inherit;
}

/* Resetting heading styles */
h2 {
    font-size: var(--fontsize-xl);
}


/* Alle Serifen Headlines */
/*.call2action_title, .intro-text, .leistungen-intro-text-title, .specialheading_gr, .zitat-text, .zitat-slider-text {
    font-family: "Source Sans 3", Arial, sans-serif;
}*/


button {
    all: unset;  /* Resets all properties */
    display: inline-block;  /* Allows button to behave like an inline element but also accept width, height */
    background: none;  /* Removes the background */
    border: none;  /* Removes the border */
    padding: 0;  /* Removes the padding */
    font-family: inherit;  /* Inherits font from parent element */
    font-size: inherit;  /* Inherits font size from parent */
    text-align: center;  /* Centers text */
    cursor: pointer;  /* Indicates a clickable element */
}

.iconbuttonrow_wrapper {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.job.iconbuttonrow_wrapper {
    margin-top: 50px;
}

.iconbutton_wrapper {
    display: flex;
}

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


#maincontent {
    .maincontent-wrapper  {
        padding-top: 0px;
    } 
}

#maincontent p, .call2action, .wpcf7-list-item {
    a {
        text-decoration: underline;
        text-underline-position: under;
        text-decoration-thickness: 2px;
        text-decoration-color: var(--color-primary);
        font-weight: 600;
    }
}

#maincontent p {
    max-width: 900px;
}



body { 
    margin: 0;
    padding: 0; 
    font-family: "Source Sans 3", "Open Sans", Arial, sans-serif;
}

.container, .header, footer, #maincontent, .socket_content, .container.intro, .job-facts-container {
    max-width: var(--content-size-m);
    margin: 0 auto;
    font-size: var(--fontsize-m);
    padding: 0 30px;
}

.header {
    height: 60px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    margin-bottom: 30px;
    margin-top: 30px;
    align-items: center;
}

.container.intro {
    margin-bottom: 150px;

    .page-intro-container {
        background: var(--color-mute);
        color: var(--color-white);

        .page-intro-wrapper {
            max-width: var(--content-size-s);
            margin: 0 auto;
            display: flex;
            align-items: center;
            padding: 100px 0;
            gap: 100px;

            .page-intro-text-title {
                font-size: var(--fontsize-xl);
                line-height: 1.1em;
            }

            .page-intro-text-wysiwyg {
                margin-top: 20px;
                max-width: 900px;
            }
        }
    }
}

.single-job .container.intro { 
    margin-bottom: 0; 
}

.container.intro, #maincontent, footer { opacity: 1; pointer-events: auto; transition: opacity .5s ease; }
.container.intro.hidden, #maincontent.hidden, footer.hidden { opacity: 0; pointer-events: none; transition: opacity .5s ease; }

/* Intro Startseite */
.container.intro.startseite {
    display: grid;
    grid-template-columns: 1fr minmax(0, 510px);
    grid-template-rows: 1fr auto;
    min-height: 650px;

    .intro-section.left {
        grid-column: 1;
        grid-row: 1;
        position: relative;
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: center;
        justify-content: center;
        background-repeat: no-repeat;
        padding: 50px;
        

        &::before {
            content: '';
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.35);
            z-index: 0;
        }

        .intro-section-left-wrapper {
            /*transform: rotate(0deg);*/
            z-index: 1;

            .intro-section-left-title {
                font-weight: bold;
                color: var(--color-white);
                line-height: 1em;
                /*border-bottom: 25px solid var(--color-primary);*/
                font-size: clamp(var(--fontsize-xl), 1.125rem + 10vw, 12rem);
                position: relative;
                display: inline-block;
                &::after {
                    content: '';
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    width: 0;
                    height: 25px;
                    background: var(--color-primary);
                    animation: underline-grow 0.6s ease forwards;
                    animation-delay: 1s;
                }
            }

            .intro-section-left-subheadline {
                font-size: clamp(1.5rem, 1.1759rem + 1.7284vw, 3.25rem);
                color: var(--color-white);
                font-family: 'Rock Salt', cursive;
                text-align: right;
                transform: rotate(-3deg);
                rotate: -3deg;
                opacity: 0;
            }
        }
    }

    .intro-section.right {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        flex-direction: column;

        .intro-section-right-wrapper {
            display: flex;
            flex-direction: column;
            height: 100%;

            .intro-section-right-introtext {
                flex: 1;
                padding: 50px;
                background: var(--color-white);

                .intro-section-right-title {

                    h1 {
                        font-size: var(--fontsize-xl);
                        font-weight: bold;
                        margin-bottom: 1rem;
                        line-height: 1.15em;
                    }
                }

                .intro-section-right-text {
                    line-height: 1.6;
                }
            }

            .intro-section-right-box {
                padding: 50px;
                background: var(--color-mute);
                color: var(--color-white);
                font-weight: bold;
                position: relative;

                &::before {
                    content: '';
                    position: absolute;
                    left: -8px;
                    top: 50%;
                    transform: translateY(-50%) rotate(45deg);
                    width: 16px;
                    height: 16px;
                    background: var(--color-mute);
                    border-radius: 3px;
                }
            }
        }
    }

    .intro-section.bottom {
        grid-column: 1 / -1;
        display: flex;
        justify-content: center;
        padding: 1rem 0 1.5rem;
        display: none;

        .intro_jump {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.25rem;
            text-decoration: none;
            color: var(--color-black);
            font-size: 0.85rem;

            div {}

            .intro_jump_arrow {}
        }
    }
}

.btn_c2a {
    display: flex;
    gap: 15px;
    padding: 10px 30px;
    align-items: center;
    cursor: pointer;
    transition: all .5s ease-out;
    text-decoration: none !important;
    font-size: var(--fontsize-m);
    height: 58px;
    border: var(--border-button);

    .btn_text {
        font-weight: 600;
        line-height: 1em;
    }
}

.noborder.btn_c2a {
    padding-left: 0;
    border: none;
    gap: 10px;
    padding-top: 0;
    padding-bottom: 0;
    height: auto;
}

.btn_c2a-wrapper {
    display: inline-block;
}


.btn_c2a:hover {
    transition: all .5s ease;
    scale: 1.05;
}

.btn_c2a.btn_small {
    gap: 10px;
    padding: 12px 25px;
    border-radius: var(--border-radius-sm);
    height: 51px;
}

.btn_c2a.btn_small:hover {
    box-shadow: var(--boxshadow);
    scale: 1.04; 
}


.btn_c2a.btn-bg-white {
    background: var(--color-white);
}

.btn_c2a.btn-bg-trans {
    background: transparent;
}

.btn_c2a.btn-bg-trans:hover {
    box-shadow: none;
}

.btn_c2a.btn-bg-black {
    background: var(--color-black);
    color: var(--color-white);

    svg {
        color: var(--color-primary);
    }
}

/*.btn_c2a.btn-bg-black:focus-visible {
    outline: 2px solid orange;
}*/

.btn_c2a.border-btn { 
    border-color: var(--color-white);
}



.container {
  padding:50px 0;
}

/* Leichter lesen */
.leichterlesen_wrapper {
    margin-top: 75px;
    display: grid;
    gap: 20px;

    .leichterlesen_toggle {
        margin-bottom: 80px;
    }

    .leichterlesen_title {
        font-size: var(--fontsize-xl);
    }

    .leichterlesen_wysiwyg {
        max-width: 900px;
        font-size: 32px;
        overflow: hidden;

        ul {
            list-style: none;
            padding-left: 0;
        }

        ul li {
            padding-left: 1.25em;
            text-indent: -1.05em;
            padding-bottom: 10px;
        }

        ul li::before {
            content: "—";
            margin-right: 0.25em;
        }

        p + ul,li {
            margin-top: 0;
        }
    }
}

/* Leichter lesen toggle */
.leichterlesen_toggle {
    display: flex;
    align-items: center;

    a.toggle-btn {
        border: 3px solid var(--color-white);
        padding: 7px 25px;
        font-weight: bold;
    }

    a.toggle-btn.active {
        background: var(--color-white);
        color: var(--color-black);
        padding: 12px 35px;
    }
}

.leichterlesen_wrapper {
    .leichterlesen_toggle {

        a.toggle-btn {
            border: 3px solid var(--color-black);
        }

        a.toggle-btn.active {
            background: var(--color-black);
            color: var(--color-white);
        }
    }
}

.page-intro-text {
    .leichterlesen_toggle { 
        margin-bottom: 50px;
    }
}



/* Sticky Menu 
.sticky_menu {
    display: grid;
    justify-items: end;
    position: fixed;
    right: 50px;
    bottom: 110px;
    gap: 10px;
    pointer-events: none;
    transition: all .5s ease-out;
    z-index: 100;
}

.sticky_menu_toggle:hover:before {
    scale: 1.05;
}
.sticky_menu_toggle:before {
    width: 55px;
    height: 55px;
    background: var(--color-primary);
    display: block;
    position: absolute;
    content: "";
    transition: 0.3s cubic-bezier(.51,.61,0,2.3);
    z-index: -1;
    border-radius: 20px;
}

.sticky_menu_toggle:after {
    content: "Links";
    position: absolute;
    font-size: 12px;
    bottom: 6px;
    font-weight: 600;
    color: var(--color-black);
}

.bottom_out .sticky_menu {
    bottom: 125px;
}

.sticky_menu .btn_c2a {
    opacity: 0;
    transform: translateY(20px);
}

.sticky_menu_toggle {
    display: flex;
    width: 55px;
    height: 55px;
    background: var(--color-primary);
    border-radius: var(--border-radius-md);
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 35px;
    right: 50px;
    cursor: pointer;
    transition: all .5s ease-out;
    z-index: 10;

    svg {
        transform: rotate(45deg);
        transition: transform .5s ease;
        margin-top: -10px;
    }
}

.sticky_menu_toggle:focus-visible { 
    outline: 2px solid var(--color-black);
    transition: none;
}

.bottom_out .sticky_menu_toggle, .bottom_out .announcement {
    bottom: 50px;
}

.sticky_menu_toggle.open {

    svg {
        transform: rotate(0deg);
        transition: transform .25s ease;
    }
}

*/

/* Announcement */
.announcement {
    display: flex;
    background: var(--color-mute);
    align-items: flex-end;
    justify-content: space-between;
    position: fixed;
    bottom: 35px;
    right: 0;
    transition: all .5s ease-out;
    z-index: 10;
    color: var(--color-white);
    padding: 35px;
    left: 0;
    gap: 25px;
    animation: slideUpFadeIn 0.6s ease-out;
    max-width: 900px;
    margin: 0 auto;
    font-size: var(--fontsize-m);

    .announcement-content {
        display: grid;
        gap: 10px;

        .title-wrapper {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .announcement-title {
            font-weight: bold;
            font-size: var(--fontsize-l);
        }

        .announcement-text {
            max-height: 300px;
            overflow: auto;
            scrollbar-width: thin;
            scrollbar-color: var(--color-white) var(--color-mute);
            
            p {
                margin: 0;
            }
        }
    }

    .announcement-close {
        border-bottom: 3px solid var(--color-primary);
        cursor: pointer;
    }
}

/* Footer */
.footer {
    .footer_grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        justify-items: start;
        margin: 0 0 150px 0;
        gap: 50px;
    }
}

.footer_list {
    display: grid;
    gap: 3px;
    justify-items: start;
}

.footer_list_entry {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
}

.footer_logo {
    margin-bottom: 15px;
    display: inline-block;
}

.footer_title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.footer_col ul {
    list-style: none;
    margin: 0 0;
    padding: 0;
    gap: 3px;
    display: grid;

    .current-menu-item, .current-page-ancestor, .current-post-parent {
        font-weight: 600;
    }
}

/* Socket */
.socket {
    background-color: var(--color-lightgrey);

    .socket_content {
        display: flex;
        gap: 50px;
        justify-content: space-between;
        padding-top: 50px;
        padding-bottom: 50px;
        font-size: var(--fontsize-s);

        .socket_col {
            display: flex;
            align-items: center;
            gap: 30px;

            a {
                display: inline-flex;
                img {
                    max-height: 50px;
                }
            }


        }
        
    }
}

/* call2action */
.call2action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 200px 0 200px 0;
    border: var(--border-primary);
    padding: 50px;

    .call2action_col {
        display: grid; 
        gap: 20px;

        .call2action_title {
            font-size: var(--fontsize-xl);
            line-height: 1.25em;
            font-weight: bold;
        }

        .call2action_text {
            font-size: var(--fontsize-m);
            max-width: 400px;
        }

        .call2action_buttons {
            margin-top: 20px;
        }

        .call2action_img_wrapper {
            font-size: var(--fontsize-s);

            .call2action_img_title {
                margin-top: 5px;
            }
        }

    }
}

.call2teilen + .call2action { 
    margin: 50px 0 200px 0;
 }









/* Hamburger */
.hamburger .line {
    width: 33px;
    height: 2px;
    background-color: var(--color-black);
    display: block;
    margin: 7px auto;
    transition: all 0.3s ease-in-out;
}

.hamburger.is-active .line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.is-active .line:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active .line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobilemenu .mobilemenuitem {
    opacity: 0;
    transform: translateY(20px);
}

.hamburger {
    z-index: 99;
    position: relative;
    cursor: pointer;
}

.logo {
    z-index: 99;
    display: inline-flex;
    a {
        display: inline-flex;
    }
}

#hauptmenue_mobile {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 50px;
    font-weight: bold;
}

/* leistungen detail seite */
.leistungen-intro-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 2em;
    align-items: center;

    .leistungen-intro-image img {
        max-width: 100%;
        height: auto;
        max-height: 350px;
        object-fit: contain;
    }

    .leistungen-intro-image img:not([src$=".png.webp"]) { 
        border-radius: var(--border-radius-md);
        object-fit: cover;
    }

    .leistungen-intro-text {
        display: grid;
        align-items: center;
        justify-items: start;
        gap: 4px;
    }

    .leistungen-intro-text-title {
        font-size: clamp(1.5rem, 0.9907rem + 2.716vw, 4.25rem);
        font-weight: bold;
        line-height: 1.1em;
        text-decoration-thickness: 10px;
        text-underline-position: auto;
    }

    .leistungen-intro-text-subheadline {
        font-size: var(--fontsize-m);
        font-weight: 200;
        line-height: 1.25em;
    }

    .leistungen-intro-text-wysiwyg {
        font-size: var(--fontsize-m);
        font-weight: 200;
    }
}

.job-facts-wrapper {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 50px;
    max-width: var(--content-size-s);
    margin: 0 auto;
    padding: 100px 0;

    .job-fact {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        max-width: 350px;

        .job-fact-icon {
            margin-top: 5px;
        }

        .job-fact-text, .job-fact-title {
            font-size: var(--fontsize-s);
        }

        .job-fact-title {
            font-weight: bold;
        }
    }
}


/* Listen */
ul.wp-block-list, .leistungen-long ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
    max-width: 900px;
	
	li {
        margin-bottom: 30px;
        align-items: center;
        padding-left: 25px;
        position: relative;
        line-height: 1.35em;

        a {
            /*text-decoration: underline;
            text-decoration-color: var(--color-secondary);
            text-decoration-thickness: 3px;*/
            text-decoration: underline;
            text-underline-position: under;
            text-decoration-thickness: 1px;
            text-decoration-color: var(--color-primary);
            font-weight: 600;
        }
	}
	li::before {
        content: "—";
        color: var(--color-primary);
        font-size: var(--fontsize-m);
        margin-right: 10px;
        font-weight: bold;
        width: 13px;
        text-align: center;
        height: 13px;
        line-height: 9px;
        border-radius: 3px;
        position: absolute;
        left: 0;
        top: 8px;
        padding-left: 0px;
	}
}
.single-post .wp-block-list {
    margin-bottom: 25px;
}

.single-post .maincontent-wrapper {
    > * {
        margin-bottom: 50px;
    }

    > .wp-block-image {
        margin-left: -50px;
        margin-right: -50px;
    }
}


/* Gutenberg Blocks anpassen */
.subheadline {
    font-weight: bold;
    margin: 0;
    text-decoration: underline;
    text-underline-position: under;
    text-decoration-thickness: 5px;
    text-decoration-color: var(--color-primary);
    margin-bottom: 8px;
}

h2.wp-block-heading {
    font-size: var(--fontsize-xl);
    line-height: 1em;
}

.single-post h2.wp-block-heading {
    font-size: var(--fontsize-l);
}

.wp-block-group {
    .wp-block-heading, p, ul, li {
        overflow-wrap: break-word;
        /*hyphens: auto;*/
        hyphens: manual;
    }
    a { 
        overflow-wrap: break-word;
        hyphens: auto;
    }
}

.wp-block-image {

    figcaption {
        font-size: var(--fontsize-s);
    }
}



:root :where(.wp-block-image.is-style-rounded img,.wp-block-image .is-style-rounded img) {
    border-radius: var(--border-radius-md);
}

.wp-block-details summary {
    font-weight: bold;
    margin-bottom: 15px;
}

.wp-block-gallery figure {
    border-radius: 20px;
    overflow: hidden;
    transform: scale(1);
    transition: all .25s ease;
    box-shadow: var(--boxshadow);
}

.wp-block-gallery figure:hover {
    transform: scale(.95);
    transition: all .5s ease;
    transform-origin: center;
    box-shadow: none;
}

.wp-block-columns {

    .borderbox {
        border: 3px solid var(--color-primary);
        padding: 60px 40px;
        font-size: var(--fontsize-s);
        gap: 15px;
        display: grid;
        align-content: start;

        p { 
            margin: 0;
        }

        h2, h3  {
            font-size: var(--fontsize-l);
            line-height: 1.1em;
        }
    }
}



/* tabelle */
.wp-block-table.is-style-stripes {
    border: 1px solid var(--color-border-slight);
    padding: 25px 25px;
    border-radius: var(--border-radius-md);
    background-color: var(--color-white);
    text-align: left;

    table {
        min-width: 575px;
    }

    tbody tr:nth-child(odd) {
        background-color: #f0f0f04d;
    }

    th:nth-child(1), td:nth-child(1) {
        background: #ffffff;
    }

    th, .wp-block-table tfoot {
        font-size: var(--fontsize-m);
    }

}





/* post detail */
.single-post, .single-casestudy {

    #maincontent {
        max-width: 950px;

        .maincontent-wrapper {
            padding-top: 50px;
        }

        h1 {
            font-size: var(--fontsize-xl);
            font-weight: bold;
            line-height: 1.15em;
        }

        .post-image img {
            object-fit: contain;
            height: auto;
            max-height: 400px;
            object-position: left;
            width: 100%;
        }
    }
}


/* Shortcodes */
.brozeiten-info {
    .brozeiten-titel {
        font-weight: bold;
    }

    p {
        margin: 0;
    }
}

/* CF7 */

.wpcf7-form {
    container-type: inline-size;
    display: grid;
    gap: 20px;

    .cf7-half {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    textarea, input:not([type="checkbox"]), select {
        padding: 7px 15px;
        font-size: var(--fontsize-m);
        border-radius: 4px;
        border: var(--border-slight);
        width: 100%;
        display: block;
        font-family: inherit;
    }

    .wpcf7-acceptance label {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .wpcf7-list-item {
        display: block;
        margin: 0;
    }

    input, select {
        height: 44px;
    }

    .wpcf7-submit {
        background: var(--color-primary);
        color: var(--color-black);
        padding: 10px 30px !important;
        border-radius: var(--border-radius-md) !important;
        align-items: center;
        transition: all .5s ease-out;
        text-decoration: none !important;
        font-size: var(--fontsize-m) !important;
        height: 58px !important;
        border: none !important;
        font-weight: 600;
        font-family: inherit;
        width: auto !important;
        cursor: pointer;
    }

    .wpcf7-submit:disabled {
        background: var(--color-border-slight);
    }

}


/* Container Queries  */
@container (max-width: 550px) {
    .wpcf7-form {
        .cf7-half {
            grid-template-columns: 1fr;
        }
    }
}
  

/* Headroom */
header.headroom {
    height: 100px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    will-change: transform;
    transition: transform 200ms linear;
    transform: translateY(-100%);
    position: fixed;
    padding: 0 30px;
    left: 0px;
    right: 0px;
    top: 0;
    background-color: var(--color-white);
    z-index: 999;
    border-bottom: 1px solid var(--color-border-slight);

    .navigation ul.menu {
        margin: 0;
    }

    .logo {
        svg {
            top: 1px;
            position: relative;
            display: block;
        }
    }

}

.headroom.headroom--unpinned {
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}
.headroom.headroom--pinned {
    transform: translateY(0);
    transition: transform 0.3s ease-in-out;
}

header.headroom.headroom--not-bottom.headroom--pinned.headroom--top {
    transform: translateY(-100%);
}

@keyframes slideUpFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes underline-grow {
    to {
        width: 100%;
    }
}


/* Socials */
.socials {
    margin-top: 25px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;

    a {
        background: var(--color-black);
        width: 28px;
        height: 28px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /*a:focus-visible {
        outline: 2px solid orange;
    }*/
}


/* Swiper allgemein */
.swiper-slide, .slide_navigation_entry {
   user-select: none;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none;     /* IE 10+ */
}


/* Post Archiv */
.post_archiv_wrapper {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 25px;
    margin-bottom: 25px;
 
    .post_archiv_entry {
        width: 100%;
        padding: 25px;
        border: 2px solid var(--color-primary);
        text-decoration: none !important;
        gap: 10px;
        display: grid;
        position: relative;
        transition: all .5s ease;
        height: 100%;
        transition: all .5s ease;
 
        /*&:hover {
            transition: all .5s ease;
            box-shadow: var(--boxshadow);
            scale: 1.05;
        }*/
 
        .post_archiv_entry_wrapper {
            img {
                /*max-width: 100%;
                object-fit: contain;
                height: auto;
                margin-bottom: 10px;
                max-height: 250px;*/

                aspect-ratio: 3 / 2;
                overflow: hidden;
                width: 100%;
                height: auto;
                object-fit: cover;
            }
        }
 
        .post_archiv_entry_content {
            overflow-wrap: break-word;  /* Break long words if needed */
            word-wrap: break-word;      /* Older syntax, same effect */
            word-break: break-word;   

            h2 {
                font-weight: bold;
                font-size: var(--fontsize-l);
                line-height: 1em;
            }

            p {
                display: -webkit-box;       
                -webkit-line-clamp: 3;       
                -webkit-box-orient: vertical;
                overflow: hidden;            
                text-overflow: ellipsis; 
            }
        }
 
    }
}

.archiv_headline {
    font-size: var(--fontsize-xl);
}
 
.archiv_pagination {
    font-size: var(--fontsize-m);
 
    .page-numbers.current {
        font-weight: bold;
        text-decoration: underline;
        text-underline-position: under;
        text-decoration-thickness: 3px;
        text-decoration-color: var(--color-primary);
    }
}

.archiv_button {
    font-size: var(--fontsize-s);
    margin-top: 10px;
    gap: 3px;
    display: flex;
    align-items: center;
}

/* related posts */
.weitere_posts {
    margin-top: 100px;
}

.weitere_posts_titel {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-weight: bold;

    h2 {
        font-size: var(--fontsize-l);
    }

    .related_archive_button {
        gap: 3px;
        display: flex;
        align-items: center;
        font-weight: 600;
        font-size: var(--fontsize-m);
    }

}
.other-posts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 20px;

    .other-post {
        /*border: 1px solid var(--color-border-slight);
        padding: 25px;*/
        background-color: var(--color-white);

        .other-post-title {
            font-weight: bold;
            font-size: var(--fontsize-m);
            line-height: 1em;
            margin-top: 15px;
        }

        .other-post-link {
            margin-top: 10px;
            display: block;
        }

        .other-post-thumbnail {
            width: 100%;
            aspect-ratio: 3 / 2;
            overflow: hidden;

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                object-position: center;
                display: block;
            }
        }



    }
}

/* Blink Animation für beide Augen */
header .eye {
    --loop-duration: 5s;

      /* Anti-Blur Fixes: */
    transform: translateZ(0) scale(1, 1);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    transform-origin: center;
    animation: blink var(--loop-duration) ease-in-out infinite;
}

@keyframes blink { 
    0%, 100% {
    transform: translateZ(0) scale(1, 1);
    }
    
    /* Start des Blinzelns - Auge schließt sich */
    1.5% {
    transform: translateZ(0) scale(1, 0.1);
    }
    
    /* Ende des Blinzelns - Auge öffnet sich */
    5% {
    transform: translateZ(0) scale(1, 1);
    }
}




/* call2teilen */
.call2teilen {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 200px 0 50px 0;
    border: var(--border-secondary);
    padding: 50px;

    .call2teilen_col {
        display: grid; 
        gap: 20px;

        .call2teilen_title {
            font-size: var(--fontsize-xl);
            line-height: 1.25em;
            font-weight: bold;
        }

        .call2teilen_text {
            font-size: var(--fontsize-m);

        }

        .call2teilen_buttons {
            margin-top: 20px;
        }
    }
}

/* Aktuelles */
.aktuelles {

    .aktuelles-post-wrapper {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 50px;
        align-items: start;

        .aktuelles-post {
            display: grid;
            gap: 25px;

            .aktuelles-bild {

                width: 100%;
                aspect-ratio: 3 / 2;
                overflow: hidden;
            
                img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    object-position: center;
                    display: block;
                }
            }


            .aktuelles-text {
                display: grid;
                justify-items: start;
                gap: 5px;


                .aktuelles-titel {
                    font-size: var(--fontsize-l);
                    font-weight: bold;
                    line-height: 1.15em;
                }

                .aktuelles-auszug {
                    line-height: 1.25em;
                    font-weight: 200;
                    font-size: var(--fontsize-s);
                }

                .aktuelles-link {
                    u {
                        font-weight: bold;
                        font-size: var(--fontsize-s);
                    }
                }

                .btn_c2a.aktuelles-button:hover {
                    scale: none;
                    box-shadow: none;
                }

                .btn_c2a.aktuelles-button {
                    margin-top: 25px;
                }
            }

        }

    }
}


/* Skip-Link verstecken, aber für Screenreader zugänglich */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 9999;
    font-weight: bold;
}

/* Sichtbar machen beim Fokus (Tab-Taste) */
.skip-link:focus {
    top: 0;
}

/* Nur für Screenreader */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

