/*
==================
= PAGE STRUCTURE =
==================
*/

/* Basic Page Structure (Container and Frame Sizes, standard-Padding etc...)

/*PAGE-SEGMENTS
**************************************************************/

/*contains the whole Page */
.container {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.content {
    position: relative;
    flex-grow: 1;
}
section {
    position: relative;
    padding-bottom: 50px;
    background-color: #fff;
    padding-bottom: 3.741149158vw;
    padding-top: 60px;
    padding-bottom: 68px;
}
section:first-child {
    padding-top: 120px;
}
@media screen and (min-width: 768px) {
    section,
    section:first-child {
        padding-top: 180px;
        padding-bottom: 100px;
    }
}
.anchor {
    position: absolute;
    top: 0;
}
section:before,
footer:before {
    content: "";
    display: block;
    width: 100%;
    height: 3.741149158vw;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    background-image: url(../images/ui/wave-white.svg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

section:before,
footer:before {
    content: "";
    display: block;
    width: calc(100% + 6px);
    height: 3.84vw;
    position: absolute;
    left: -5px;
    right: -2px;
    bottom: calc(100% - 0.5px);
    background-image: url(../images/ui/wave-white.svg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

section.is_hidden_from_fe {
    opacity: 0.75;
    border: 5px dashed #aaa;
}
.padded {
    padding-left: 12px;
    padding-right: 12px;
}
/*frame, contains Content-Modules, no padding! Values come from the settings.css file*/
.frame,
[class*=" frame-"],
[class^="frame-"] {
    position: relative;
    width: 100%;
    max-width: var(--grid-width);
    margin: 0 auto;
}

.frame-2,
.width-2 {
    width: 100%;
    max-width: calc((var(--grid-col) + var(--grid-gap)) * 2 - var(--grid-gap));
}

.frame-3,
.width-3 {
    width: 100%;
    max-width: calc((var(--grid-col) + var(--grid-gap)) * 3 - var(--grid-gap));
}

.frame-4,
.width-4 {
    width: 100%;
    max-width: calc((var(--grid-col) + var(--grid-gap)) * 4 - var(--grid-gap));
}
.frame-5,
.width-5 {
    width: 100%;
    max-width: calc((var(--grid-col) + var(--grid-gap)) * 5 - var(--grid-gap));
}
.frame-6,
.width-6 {
    width: 100%;
    max-width: calc((var(--grid-col) + var(--grid-gap)) * 6 - var(--grid-gap));
}
.frame-7,
.width-7 {
    width: 100%;
    max-width: calc((var(--grid-col) + var(--grid-gap)) * 7 - var(--grid-gap));
}
.frame-8,
.width-8 {
    width: 100%;
    max-width: calc((var(--grid-col) + var(--grid-gap)) * 8 - var(--grid-gap));
}
.frame-9,
.width-9 {
    width: 100%;
    max-width: calc((var(--grid-col) + var(--grid-gap)) * 9 - var(--grid-gap));
}
.frame-10,
.width-10 {
    width: 100%;
    max-width: calc((var(--grid-col) + var(--grid-gap)) * 10 - var(--grid-gap));
}
.frame-11,
.width-11 {
    width: 100%;
    max-width: calc((var(--grid-col) + var(--grid-gap)) * 11 - var(--grid-gap));
}
.frame-12,
.width-12 {
    width: 100%;
    max-width: calc((var(--grid-col) + var(--grid-gap)) * 12 - var(--grid-gap));
}
.frame-13,
.width-13 {
    width: 100%;
    max-width: calc((var(--grid-col) + var(--grid-gap)) * 13 - var(--grid-gap));
}
.frame-14,
.width-14 {
    width: 100%;
    max-width: calc((var(--grid-col) + var(--grid-gap)) * 14 - var(--grid-gap));
}
.frame-15,
.width-15 {
    width: 100%;
    max-width: calc((var(--grid-col) + var(--grid-gap)) * 15 - var(--grid-gap));
}
.frame-16,
.width-16 {
    width: 100%;
    max-width: calc((var(--grid-col) + var(--grid-gap)) * 16 - var(--grid-gap));
}
.frame-17,
.width-17 {
    width: 100%;
    max-width: calc((var(--grid-col) + var(--grid-gap)) * 17 - var(--grid-gap));
}
.frame-18,
.width-18 {
    width: 100%;
    max-width: calc((var(--grid-col) + var(--grid-gap)) * 18 - var(--grid-gap));
}
.frame-19,
.width-19 {
    width: 100%;
    max-width: calc((var(--grid-col) + var(--grid-gap)) * 19 - var(--grid-gap));
}
.frame-20,
.width-20 {
    width: 100%;
    max-width: calc((var(--grid-col) + var(--grid-gap)) * 20 - var(--grid-gap));
}

/* Utility */

.sans {
    font-family: var(--sans);
}

.serif {
    font-family: var(--serif);
}

.mono {
    font-family: courier, monospace;
}

.fancy {
    font-family: "Didot", "Times New Roman", Georgia, Times, serif;
    font-feature-settings: "liga" 1;
}

.circle {
    border-radius: 50%;
}

.mask-circle {
    border-radius: 50%;
    overflow: hidden;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.small {
    font-size: 0.75em;
}

/*alignment*/

.align-center {
    text-align: center;
}

.align-justify {
    text-align: justify;
}

.align-right {
    text-align: right;
}

.align-left {
    text-align: left;
}

[data-bg="transparent"] {
    background-color: transparent;
}
[data-bg="blue"] {
    background-color: var(--blue);
    color: var(--white);
}

[data-bg="orange"] {
    background-color: var(--orange);
}
section[data-bg="blue"]:before,
footer[data-bg="blue"]:before {
    background-image: url(../images/ui/wave-blue.svg);
}
section[data-bg="orange"]:before,
footer[data-bg="orange"]:before {
    background-image: url(../images/ui/wave-orange.svg);
}
/*
 Main Content Styles 
*/

.animation-forms-m [id^="character-"] {
    transform-box: fill-box;
    transform-origin: center;
}

/* Wiggle = 4 Rotationen in 1 Sekunde */
@-webkit-keyframes wiggle {
    0% {
        transform: rotate(0deg);
    }

    1% {
        transform: rotate(3deg);
    }

    2% {
        transform: rotate(-3deg);
    }

    3% {
        transform: rotate(3deg);
    }

    4% {
        transform: rotate(-3deg);
    }

    5% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(0deg);
    }
}
@keyframes wiggle {
    0% {
        transform: rotate(0deg);
    }

    1% {
        transform: rotate(3deg);
    }

    2% {
        transform: rotate(-3deg);
    }

    3% {
        transform: rotate(3deg);
    }

    4% {
        transform: rotate(-3deg);
    }

    5% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

/* Shake = 6 kleine Bewegungen in 1 Sekunde */
@-webkit-keyframes shake {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    1% {
        transform: translate(-4px, 0) rotate(-5deg);
    }

    2% {
        transform: translate(4px, 0) rotate(5deg);
    }

    3% {
        transform: translate(-3px, 0) rotate(-5deg);
    }

    4% {
        transform: translate(3px, 0) rotate(5deg);
    }

    5% {
        transform: translate(-2px, 0) rotate(-1deg);
    }

    6% {
        transform: translate(2px, 0) rotate(1deg);
    }

    7% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}
@keyframes shake {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    1% {
        transform: translate(-4px, 0) rotate(-5deg);
    }

    2% {
        transform: translate(4px, 0) rotate(5deg);
    }

    3% {
        transform: translate(-3px, 0) rotate(-5deg);
    }

    4% {
        transform: translate(3px, 0) rotate(5deg);
    }

    5% {
        transform: translate(-2px, 0) rotate(-1deg);
    }

    6% {
        transform: translate(2px, 0) rotate(1deg);
    }

    7% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* Hop = kurzer Sprung */
@-webkit-keyframes hop {
    0% {
        transform: translateY(0);
    }

    1% {
        transform: translateY(-15px);
    }

    3% {
        transform: translateY(0);
    }

    5% {
        transform: translateY(-8px);
    }

    7% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(0);
    }
}
@keyframes hop {
    0% {
        transform: translateY(0);
    }

    1% {
        transform: translateY(-15px);
    }

    3% {
        transform: translateY(0);
    }

    5% {
        transform: translateY(-8px);
    }

    7% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(0);
    }
}

/* Figuren individuell – 30s Gesamtzeitraum, 1–3s aktive Phase */
#character-1,
#character-1-dt {
    -webkit-animation: wiggle 1s ease-in-out 5s infinite;
    animation: wiggle 1s ease-in-out 5s infinite;
    -webkit-animation-delay: 5s;
    animation-delay: 5s;
    /* startet bei Sekunde 5 */
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    -webkit-animation-duration: 15s;
    animation-duration: 15s;
    /* Gesamtloop */
}

#character-2,
#character-2-dt {
    -webkit-animation: hop 2s ease-in-out 8s infinite;
    animation: hop 2s ease-in-out 8s infinite;
    -webkit-animation-delay: 8s;
    animation-delay: 8s;
    /* startet bei Sekunde 11 */
    -webkit-animation-duration: 15s;
    animation-duration: 15s;
}

#character-3,
#character-3-dt {
    -webkit-animation: shake 1s ease-in-out 2s infinite;
    animation: shake 1s ease-in-out 2s infinite;
    -webkit-animation-delay: 2s;
    animation-delay: 2s;
    -webkit-animation-duration: 15s;
    animation-duration: 15s;
}

#character-4,
#character-4-dt {
    -webkit-animation: hop 1s ease-in-out 11s infinite;
    animation: hop 1s ease-in-out 11s infinite;
    -webkit-animation-delay: 11s;
    animation-delay: 11s;
    -webkit-animation-duration: 15s;
    animation-duration: 15s;
}

#character-5,
#character-5-dt {
    -webkit-animation: wiggle 3s ease-in-out 13s infinite;
    animation: wiggle 3s ease-in-out 13s infinite;
    -webkit-animation-delay: 13s;
    animation-delay: 13s;
    -webkit-animation-duration: 15s;
    animation-duration: 15s;
}

#character-6,
#character-6-dt {
    -webkit-animation: shake 1s ease-in-out 15s infinite;
    animation: shake 1s ease-in-out 15s infinite;
    -webkit-animation-delay: 15s;
    animation-delay: 15s;
    -webkit-animation-duration: 15s;
    animation-duration: 15s;
}

.diff-bg:not(.ignore-diff-bg) {
    padding-top: 50px;
}
@media screen and (min-width: 768px) {
    .diff-bg:not(.ignore-diff-bg) {
        padding-top: 180px;
    }
}
.roof {
    font-family: VAR(--sans);
    font-weight: 600;
    font-size: 15px;
    line-height: 17px;
    letter-spacing: 0.002em;
    color: var(--middleblue);
    margin-bottom: 0;
}
[data-bg="blue"] .roof {
    color: var(--lightblue);
}
@media screen and (min-width: 768px) {
    .roof {
        font-size: 34px;
        line-height: 33px;
    }
}

.sublay {
    position: relative;
    margin-bottom: 19px;
}
@media screen and (min-width: 768px) {
    .sublay {
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        margin-bottom: 120px;
        gap: 0 var(--grid-gap);
    }
}
/* Sublayout 2/3 */
.subimg-2-3,
.subimg-4-2 {
    position: relative;
    width: 100%;
    margin-bottom: 36px;
    max-width: 364px;
}
@media screen and (min-width: 768px) {
    .subimg-2-3,
    .subimg-4-2 {
        width: 100%;
    }
}
.subtxt,
.roof,
.section-hl {
    padding-right: 50px;
}
@media screen and (min-width: 768px) {
    .subtxt,
    .roof,
    .section-hl {
        padding-right: 0;
    }
}
@media screen and (min-width: 768px) {
    .subtxt-2-3 {
        width: 100%;
        max-width: 554px;
    }
    .subtxt-4-2 {
        width: 100%;
        max-width: 745px;
    }
}
.subimg {
    width: 100%;
}
div#erfahrung_fachkompetenz + .frame .subimg-2-3 img {
    max-width: 150px;
    margin-left: 0;
    margin-right: auto;
}

@media screen and (min-width: 768px) {
    div#erfahrung_fachkompetenz + .frame .subimg-2-3 img {
        max-width: 282px;
        margin-left: auto;
        margin-right: auto;
    }
}
/* Optional: globale Dauer steuerbar */
:root {
    --spin-l: 72s; /* große langsame Rotation */
    --spin-s: 48s; /* kleine etwas schnellere Rotation */
}

/* wichtig für SVG: Drehzentrum korrekt setzen */
.rotate-l,
.rotate-s {
    transform-box: fill-box; /* benutze die BBox des Elements */
    transform-origin: center; /* drehe um die Mitte der Gruppe */
    will-change: transform;
    -webkit-animation-timing-function: linear;
    animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
}

@-webkit-keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Uhrzeigersinn */
.rotate-l {
    -webkit-animation-name: spin;
    animation-name: spin;
    -webkit-animation-duration: var(--spin-l);
    animation-duration: var(--spin-l);
}

/* Gegen den Uhrzeigersinn */
.rotate-s {
    -webkit-animation-name: spin;
    animation-name: spin;
    -webkit-animation-duration: var(--spin-s);
    animation-duration: var(--spin-s);
    animation-direction: reverse; /* drehe rückwärts */
}

/* Respektiert reduzierte Bewegungen */
@media (prefers-reduced-motion: reduce) {
    .rotate-l,
    .rotate-s {
        -webkit-animation: none;
        animation: none;
    }
}

.animation-forms-m {
    display: block;
    max-width: 257px;
}

.animation-forms-dt {
    display: none;
}

@media screen and (min-width: 768px) {
    .animation-forms-m {
        display: none;
    }

    .animation-forms-dt {
        display: block;
    }
}
.animation-forms-dt svg,
.animation-forms-m svg {
    overflow: visible;
}
.sticky-contact {
    z-index: 5;
    display: block;
    position: fixed;
    right: 0;
    top: 110px;
    text-decoration: none;
    transition: all 0.2s ease-out;
}
@media (hover: hover) {
    .sticky-contact:hover rect {
        fill: var(--lightblue);
    }
}
.contact-svg-dt {
    display: none;
}
@media screen and (min-width: 768px) {
    .sticky-contact {
        top: 520px;
    }
    .contact-svg-dt {
        display: block;
    }
    .contact-svg-m {
        display: none;
    }
}

.row-reverse {
    flex-direction: row-reverse !important;
    justify-content: flex-end;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    font-family: var(--sans);
    padding: 6px;
    background-color: var(--lightblue);
    border: none;
    border-bottom: 3px solid var(--blue);
    display: block;
    width: 100%;
    outline: none;
    color: #fff;
    font-weight: 600;
}
@media screen and (min-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea {
        font-family: var(--sans);
        padding: 10px;
        background-color: var(--lightblue);
        border: none;
        border-bottom: 4px solid var(--blue);
        display: block;
        width: 100%;
    }
}
label {
    font-family: var(--sans);
    font-weight: var(--semibold);

    font-size: 9px;
    line-height: 14px;
    letter-spacing: 0;
}
.label {
    display: block;
    margin-bottom: 1px;
}
@media screen and (min-width: 768px) {
    label {
        font-size: 14px;
        line-height: 100%;
    }
}
.wpcf7-not-valid-tip {
    color: var(--orange);
    margin-top: 10px;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
    border-color: var(--orange);
    margin-left: 0 !important;
    color: var(--orange);
}
.form-group,
.form-item {
    width: 100%;
}

@media screen and (min-width: 768px) {
    .form-group-dbl {
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 20px;
    }
}
.form-item {
    margin-bottom: 12px;
}
.form-group-dbl .form-item {
    flex: 0 0 calc(50% - 10px);
}
span.wpcf7-quiz-label {
    display: block;
    margin-bottom: 10px;
}
input[type="checkbox"] {
    appearance: none; /* Standard-Design entfernen */
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #000; /* 2px Border */
    border-radius: 0; /* kein Radius */
    display: inline-block;
    position: relative;
    cursor: pointer;
    vertical-align: middle;
}

input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 0px;
    width: 6px;
    height: 12px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.wpcf7-list-item {
    padding-left: 0;
    margin-left: 0;
}

.wpcf7-acceptance input[type="checkbox"] {
    display: block;
}

.wpcf7-list-item-label {
    font-weight: 600;
    font-size: 9px;
    line-height: 11px;
    letter-spacing: 0;
    display: inline-block;
    line-height: 15px;
}

@media screen and (min-width: 768px) {
    .wpcf7-list-item-label {
        font-size: 15px;
        line-height: 24px;
    }
}

.required-hint {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 9px;
    line-height: 14px;
    letter-spacing: 0;
}

@media screen and (min-width: 768px) {
    .required-hint {
        font-size: 14px;
        line-height: 100%;
    }
}

textarea {
    margin-bottom: 10px;
}

input[type="submit"] {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 11px;
    line-height: 17px;
    letter-spacing: 0.03em;
    text-decoration: underline;
    -webkit-text-decoration-style: wavy;
    text-decoration-style: wavy;
    text-decoration-offset: 25%;
    text-decoration-thickness: 18.5%;
    background-color: transparent;
    color: var(--orange) !important;
    border: none !important;
    padding-bottom: 10px;
}
@media screen and (min-width: 768px) {
    input[type="submit"] {
        font-size: 22px;
        line-height: 33px;
    }
}

.section-mixed ul {
    list-style: none; /* Standard-Punkte entfernen */
    margin-left: 7px;
}
.section-mixed ul li {
    margin-bottom: 0;
    padding-bottom: 0;
    position: relative;
}
/* .section-mixed li::marker {
    content: "· "; 
    font-size: 1.2em; 
} */
.section-mixed li::before {
    content: "·";
    font-size: 1.2em;
    position: absolute;
    left: -10px;
}
.section-mixed a {
    font-weight: 600;
    font-family: var(--sans);
    text-decoration: underline;
}

.section-mixed p > a {
    font-size: 12px;
    line-height: 17px;
}
@media screen and (min-width: 768px) {
    .section-mixed p > a {
        font-size: 20px;
        line-height: 33px;
    }
}
.mobile-rotator {
    max-width: 200px;
    overflow: visible;
}
.dt-rotator {
    position: absolute;
    display: none;
    overflow: visible;
}
[data-bg="white"] .dt-rotator path,
[data-bg="white"] .mobile-rotator path {
    fill: var(--orange);
}
@media screen and (min-width: 768px) {
    .dt-rotator {
        display: block;
    }
    .mobile-rotator {
        display: none;
    }
    .subimg-2-3 .dt-rotator {
        transform: translateX(-100px) scaleX(-1);
        max-width: 300px;
        margin-left: 0;
    }
}

@media screen and (min-width: 1000px) {
    .dt-rotator {
        transform: translateX(100px);
        max-width: 300px;
        margin-left: auto;
    }
}
.mobile-rotator svg,
.dt-rotator svg {
    overflow: visible;
}
.section-mixed .cta {
    font-family: var(--sans);
    background-color: transparent;
    color: var(--orange);
    font-weight: 600;
    font-size: 13px;
    line-height: 19px;
    letter-spacing: 0.03em;
    -webkit-text-decoration-line: underline;
    text-decoration-line: underline;
    -webkit-text-decoration-style: wavy;
    text-decoration-style: wavy;
    text-decoration-thickness: 0.14em;
    text-underline-offset: 0.25em;
    padding-left: 0 !important;
}

@media screen and (min-width: 768px) {
    .section-mixed .cta {
        font-weight: 600;
        font-size: 22px;
        line-height: 33px;
        letter-spacing: 0.03em;
    }
}
.section-mixed a {
    transition: color 0.2s ease-in-out;
}
@media (hover: hover) {
    .section-mixed .cta:hover {
        color: var(--lightblue) !important;
    }
    .section-mixed a:hover {
        color: var(--orange);
    }
}
/* Sonderformate */

img[src*="dgsf-siegel-mitglied-rgb.png"] {
    max-width: 125px;
    margin-left: auto;
}

@media screen and (min-width: 768px) {
    img[src*="dgsf-siegel-mitglied-rgb.png"] {
        max-width: 100%;
        margin-left: 0;
    }
}

img[src*="stadtplan-anfahrt-petra-egl.png"] {
    max-width: 182px;
}

@media screen and (min-width: 768px) {
    img[src*="stadtplan-anfahrt-petra-egl.png"] {
        max-width: 100%;
    }
}
.mobile-rotator.rotator-even {
    margin-left: auto;
    transform: rotate(180deg);
}

#erfahrung_fachkompetenz + .frame .subimg-2-3:after {
    content: "";
    position: absolute;
    bottom: -17px;
    left: 100px;
    z-index: 11;
    width: 69px;
    height: 69px;
    background-image: url(../images/content/rotator-custom-img.svg);
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    -webkit-animation-name: spin;
    animation-name: spin;
    -webkit-animation-duration: var(--spin-s);
    animation-duration: var(--spin-s);
    animation-direction: reverse;
    transform-box: fill-box; /* benutze die BBox des Elements */
    transform-origin: center; /* drehe um die Mitte der Gruppe */
    will-change: transform;
    -webkit-animation-timing-function: linear;
    animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
}

@media screen and (min-width: 768px) {
    #erfahrung_fachkompetenz + .frame .subimg-2-3:after {
        width: 157px;
        height: 157px;
        bottom: -55px;
        left: -40px;
    }
}

@media screen and (max-width: 767px) {
    #rahmenbedingungen + .frame .row-reverse {
        justify-content: flex-end;
        display: flex;
        flex-direction: column-reverse !important;
    }
}

.area-arbeitsgrundlage {
    flex-direction: column-reverse !important;
    display: flex;
    margin-top: 70px;
}
@media screen and (min-width: 768px) {
    .area-arbeitsgrundlage {
        margin-top: 0;
        flex-direction: row-reverse !important;
    }
}
