/* =========================================================================
   Christa-Maria-Stift - Theme-Stylesheet
   Referenz: Stand der Site vom April 2024 (Betheme mit intakten Optionen).
   ========================================================================= */

/* --- Schrift (lokal, keine externen Requests) --------------------------- */

@font-face {
    font-family: "Playfair Display";
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("../fonts/playfair-display-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Playfair Display";
    font-style: italic;
    font-weight: 400 900;
    font-display: swap;
    src: url("../fonts/playfair-display-italic-latin.woff2") format("woff2");
}

/* --- Farben und Masse --------------------------------------------------- */

:root {
    --cms-font: "Playfair Display", Georgia, "Times New Roman", serif;
    --cms-orange: #d69729;
    --cms-text: #444444;
    --cms-text-muted: rgba(68, 68, 68, 0.6);
    --cms-bg: #fcfcfc;
    --cms-bg-grey: #f5f5f5;
    --cms-bg-subheader: #f7f7f7;
    --cms-white: #ffffff;
    --cms-nav-text: #ffffff;
    --cms-dropdown-bg: #f2f2f2;
    --cms-dropdown-text: #2f2828;
    --cms-mobile-nav-bg: #191919;
    --cms-mobile-nav-text: #a6a6a6;
    --cms-footer-bg: #444444;
    --cms-footer-text: #bababa;
    --cms-footer-link: #d1d1d1;
    --cms-container: 1220px;
    --cms-header-height: 90px;
    --cms-header-height-sticky: 60px;
}

/* --- Basis -------------------------------------------------------------- */

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

html {
    background: var(--cms-bg);
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

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

body {
    margin: 0;
    font-family: var(--cms-font);
    font-size: 18px;
    line-height: 24px;
    font-weight: 400;
    color: var(--cms-text);
    background: var(--cms-bg);
    overflow-x: hidden;
    /* Footer bleibt auch bei kurzem Inhalt am unteren Rand */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1 0 auto;
}

/* WordPress schiebt den Inhalt per margin-top am html unter die Admin-Bar */
body.admin-bar {
    min-height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
    body.admin-bar {
        min-height: calc(100vh - 46px);
    }
}

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

a {
    color: var(--cms-orange);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: var(--cms-orange);
    text-decoration: underline;
}

p {
    margin: 0 0 15px;
}

ul,
ol {
    margin: 0 0 15px;
    padding-left: 25px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 15px;
    font-family: var(--cms-font);
    color: var(--cms-text);
    font-weight: 700;
}

h1 {
    font-size: 50px;
    line-height: 60px;
}

h2 {
    font-size: 40px;
    line-height: 50px;
}

h3 {
    font-size: 30px;
    line-height: 40px;
}

h4 {
    font-size: 20px;
    line-height: 30px;
    font-weight: 600;
}

h5 {
    margin-top: 20px;
    font-size: 18px;
    line-height: 30px;
    font-weight: 400;
}

h6 {
    font-size: 16px;
    line-height: 24px;
}

.big,
h2.big,
p.big {
    font-size: 18px;
    line-height: 30px;
    font-weight: 400;
    color: var(--cms-text);
}

h2.big {
    margin-bottom: 15px;
}

strong,
b {
    font-weight: 700;
}

hr {
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin: 30px 0;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin: 0 0 15px;
}

th,
td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    text-align: left;
    vertical-align: top;
}

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

.skip-link:focus {
    position: fixed !important;
    top: 10px;
    left: 10px;
    z-index: 1000;
    width: auto;
    height: auto;
    margin: 0;
    padding: 10px 16px;
    clip: auto;
    background: var(--cms-white);
    color: var(--cms-text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

/* --- Container und Raster ---------------------------------------------- */

.container {
    width: 100%;
    max-width: var(--cms-container);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    width: 100%;
    padding: 0;
}

.section--plain {
    padding-top: 40px;
}

.section--dark,
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--dark p,
.section--dark a {
    color: var(--cms-white);
}

.section--dark h4 {
    font-style: italic;
}

.row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: var(--cms-container);
    margin: 0 auto;
    padding: 0 10px;
}

.col {
    margin: 0 1% 40px;
    min-width: 0;
}

.col-1 { width: 98%; }
.col-1-2 { width: 48%; }
.col-1-3 { width: 31.3333%; }
.col-2-3 { width: 64.6667%; }
.col-1-4 { width: 23%; }
.col-3-4 { width: 73%; }
.col-1-5 { width: 18%; }
.col-2-5 { width: 38%; }
.col-3-5 { width: 58%; }
.col-4-5 { width: 78%; }
.col-1-6 { width: 14.6667%; }
.col-5-6 { width: 81.6667%; }

.col--placeholder {
    min-height: 1px;
}

.col > :last-child,
.box > :last-child {
    margin-bottom: 0;
}

.box {
    height: 100%;
}

/* --- Header ------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 500;
    background: var(--cms-orange);
    transition: box-shadow 0.2s ease;
}

.site-header.is-sticky {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: var(--cms-header-height);
    transition: min-height 0.2s ease;
}

.site-header.is-sticky .site-header__inner {
    min-height: var(--cms-header-height-sticky);
}

.site-header__logo {
    flex: 0 0 auto;
    padding: 15px 0;
}

.site-header__logo a {
    display: block;
    line-height: 0;
}

.site-header__logo img {
    width: auto;
    height: 60px;
    transition: height 0.2s ease;
}

.site-header.is-sticky .site-header__logo {
    padding: 8px 0;
}

.site-header.is-sticky .site-header__logo img {
    height: 44px;
}

/* Hauptmenue (Desktop ab 1240px) */

.site-nav__list,
.site-nav__list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav__list {
    display: flex;
    align-items: center;
}

.site-nav__list > li {
    position: relative;
    margin: 0 0 0 40px;
}

.site-nav__list > li > a {
    display: block;
    padding: 15px 0;
    font-size: 18px;
    line-height: 30px;
    font-weight: 700;
    color: var(--cms-nav-text);
    white-space: nowrap;
}

.site-nav__list > li > a:hover,
.site-nav__list > li > a:focus,
.site-nav__list > li.current-menu-item > a,
.site-nav__list > li.current-menu-ancestor > a,
.site-nav__list > li.current-menu-parent > a,
.site-nav__list > li.current_page_parent > a,
.site-nav__list > li.current_page_ancestor > a {
    color: var(--cms-nav-text);
    text-decoration: none;
    opacity: 1;
}

.site-nav__list > li > a:hover,
.site-nav__list > li > a:focus {
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
}

.site-nav__list .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    min-width: 220px;
    padding: 6px 0;
    background: var(--cms-dropdown-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.site-nav__list > li:hover > .sub-menu,
.site-nav__list > li.is-focus > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-nav__list .sub-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 16px;
    line-height: 24px;
    color: var(--cms-dropdown-text);
    white-space: nowrap;
}

.site-nav__list .sub-menu a:hover,
.site-nav__list .sub-menu a:focus,
.site-nav__list .sub-menu .current-menu-item > a {
    color: var(--cms-orange);
    text-decoration: none;
}

.submenu-toggle {
    display: none;
}

.nav-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: var(--cms-white);
}

.nav-toggle__bar {
    position: absolute;
    left: 10px;
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__bar:nth-child(2) { top: 14px; }
.nav-toggle__bar:nth-child(3) { top: 21px; }
.nav-toggle__bar:nth-child(4) { top: 28px; }

.nav-open .nav-toggle__bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bar:nth-child(3) { opacity: 0; }
.nav-open .nav-toggle__bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

/* --- Subheader ---------------------------------------------------------- */

.subheader {
    padding: 30px 0;
    background: var(--cms-bg-subheader);
    text-align: center;
}

.subheader__title {
    margin: 0;
    font-size: 50px;
    line-height: 60px;
    font-weight: 400;
    color: var(--cms-text);
}

.breadcrumbs {
    margin-top: 10px;
    font-size: 18px;
    line-height: 24px;
}

.breadcrumbs__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumbs__item {
    display: inline;
}

.breadcrumbs__item + .breadcrumbs__item::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin: 0 14px 0 12px;
    border-top: 1px solid var(--cms-text-muted);
    border-right: 1px solid var(--cms-text-muted);
    transform: rotate(45deg);
    vertical-align: middle;
}

.breadcrumbs a,
.breadcrumbs span {
    color: var(--cms-text-muted);
}

.breadcrumbs a:hover,
.breadcrumbs a:focus {
    color: var(--cms-orange);
    text-decoration: none;
}

/* --- Slider (Startseite) ------------------------------------------------ */

.hero-slider {
    position: relative;
    width: 100%;
    height: min(800px, 57.8vw);
    background: #e9e9e9;
}

.hero-slider__slide {
    width: 100%;
    height: 100%;
}

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

.hero-slider__arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    color: var(--cms-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.hero-slider__arrow:hover,
.hero-slider__arrow:focus-visible {
    background: rgba(0, 0, 0, 0.35);
}

.hero-slider__arrow--prev {
    left: 20px;
}

.hero-slider__arrow--prev svg {
    transform: rotate(180deg);
}

.hero-slider__arrow--next {
    right: 20px;
}

.hero-slider .swiper-pagination {
    bottom: 20px;
}

.hero-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 5px !important;
    background: transparent;
    box-shadow: inset 0 0 0 2px var(--cms-white);
    opacity: 1;
    transition: background 0.3s ease;
}

.hero-slider .swiper-pagination-bullet-active {
    background: var(--cms-white);
}

/* --- Inhaltsbausteine --------------------------------------------------- */

/* Button */

.btn,
.btn:visited {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border-radius: 3px;
    background: var(--cms-orange);
    color: var(--cms-white);
    font-size: 16px;
    line-height: 20px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.btn:hover,
.btn:focus {
    background: #c48620;
    color: var(--cms-white);
    text-decoration: none;
}

.btn--icon::before {
    content: "";
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    background: currentColor;
    -webkit-mask: var(--btn-icon) center / contain no-repeat;
    mask: var(--btn-icon) center / contain no-repeat;
}

.btn--doc-line {
    --btn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h6'/%3E%3C/svg%3E");
}

/* Bild */

.image {
    margin: 0;
    line-height: 0;
}

.image--border img {
    border: 8px solid #f8f8f8;
}

/* Photo-Box */

.photo-box__image {
    line-height: 0;
}

.photo-box__image img {
    width: 100%;
}

.photo-box__desc {
    padding: 15px 15px 0;
    text-align: center;
}

.photo-box__desc > :last-child {
    margin-bottom: 0;
}

/* Kontakt-Box */

.contact-box {
    padding: 25px 20px 25px 30px;
    color: var(--cms-text);
}

.contact-box__title {
    font-size: 20px;
    line-height: 30px;
    font-weight: 600;
    margin-bottom: 10px;
}

.contact-box__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-box__item {
    position: relative;
    padding: 13px 0 13px 50px;
    word-wrap: break-word;
}

.contact-box__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.7);
    -webkit-mask: var(--ci) center / 24px 24px no-repeat;
    mask: var(--ci) center / 24px 24px no-repeat;
}

.contact-box__item > :last-child {
    margin-bottom: 0;
}

.contact-box__item--location {
    --ci: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s7-7.1 7-12a7 7 0 1 0-14 0c0 4.9 7 12 7 12z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
}

.contact-box__item--phone {
    --ci: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E");
}

.contact-box__item--print {
    --ci: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9V3h12v6M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/%3E%3Crect x='6' y='14' width='12' height='7'/%3E%3C/svg%3E");
}

.contact-box__item--mail {
    --ci: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
}

.contact-box__item--link {
    --ci: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E");
}

.contact-box__item--text::before {
    display: none;
}

.contact-box__item--text {
    padding-left: 0;
}

/* Sliding-Box (Aufnahmeanfrage): Bild + Titelleiste, auf der Live-Site nur die Leiste (1x1-Platzhalterbild) */

.sliding-box {
    --sliding-box-bg: var(--cms-orange);
    display: block;
    color: var(--cms-white);
    text-decoration: none;
}

.sliding-box__image {
    display: block;
    line-height: 0;
}

.sliding-box__image img {
    width: 100%;
    height: auto;
}

/* 1x1-Platzhalter nicht auf Boxbreite hochskalieren, sonst entsteht ein leeres Quadrat */
.sliding-box__image:has(img[src$="/dummy.gif"]) {
    display: none;
}

.sliding-box__title {
    position: relative;
    display: block;
    padding: 15px 20px;
    font-size: 20px;
    line-height: 30px;
    font-weight: 600;
    text-align: center;
    color: var(--cms-white);
    background: var(--sliding-box-bg);
    transition: background 0.3s ease;
}

/* Zacken wie bei Betheme: liegt verdeckt in der Leiste und faehrt beim Hover nach oben heraus */
.sliding-box__title::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: -8px;
    border-style: solid;
    border-width: 0 8px 8px;
    border-color: transparent transparent var(--sliding-box-bg);
    transition: top 0.5s ease-in-out, border-color 0.3s ease;
}

.sliding-box:hover,
.sliding-box:focus {
    --sliding-box-bg: #c48620;
    color: var(--cms-white);
    text-decoration: none;
}

.sliding-box:hover .sliding-box__title::after,
.sliding-box:focus .sliding-box__title::after {
    top: -8px;
}

/* Zitat */

.quote {
    position: relative;
    margin: 0;
    padding: 10px 0 0 45px;
    font-style: italic;
    color: var(--cms-text);
}

.quote::before {
    content: "\201E";
    position: absolute;
    left: 0;
    top: -14px;
    font-size: 64px;
    line-height: 1;
    color: var(--cms-orange);
    font-style: normal;
}

/* Akkordeon */

.accordion__heading {
    margin-bottom: 15px;
}

.accordion__item {
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--cms-white);
}

.accordion__item + .accordion__item {
    margin-top: 6px;
}

.accordion__title {
    position: relative;
    padding: 12px 20px 12px 48px;
    font-size: 16px;
    line-height: 24px;
    color: var(--cms-text);
    cursor: pointer;
    list-style: none;
}

.accordion__title::-webkit-details-marker {
    display: none;
}

.accordion__title::before,
.accordion__title::after {
    content: "";
    position: absolute;
    left: 20px;
    top: 23px;
    width: 12px;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s ease;
}

.accordion__title::before {
    left: 25px;
    width: 2px;
    height: 12px;
    top: 18px;
}

.accordion__item[open] > .accordion__title {
    color: var(--cms-orange);
}

.accordion__item[open] > .accordion__title::before {
    transform: scaleY(0);
}

.accordion__title:hover {
    color: var(--cms-orange);
}

.accordion__body {
    padding: 5px 20px 20px 48px;
    font-size: 16px;
    line-height: 26px;
}

.accordion__body > :last-child {
    margin-bottom: 0;
}

/* Fluent Forms - Anpassung an das Theme */

.fluentform .ff-el-form-control {
    font-family: var(--cms-font);
    font-size: 16px;
    color: var(--cms-text);
    border-color: #e5e5e5;
    background: var(--cms-white);
    box-shadow: none;
}

.fluentform .ff-el-form-control:focus {
    border-color: var(--cms-orange);
    box-shadow: 0 0 0 2px rgba(214, 151, 41, 0.2);
}

.fluentform .ff-el-input--label label {
    font-weight: 600;
    color: var(--cms-text);
}

.fluentform .ff-btn-submit,
.fluentform .ff-btn-submit:not(:hover) {
    background: var(--cms-orange) !important;
    border-color: var(--cms-orange) !important;
    color: var(--cms-white) !important;
    font-family: var(--cms-font);
    font-size: 18px;
    padding: 12px 28px;
    border-radius: 3px;
}

.fluentform .ff-btn-submit:hover,
.fluentform .ff-btn-submit:focus {
    background: #c48620 !important;
    border-color: #c48620 !important;
}

.fluentform .ff-el-is-error .text-danger {
    color: #b3261e;
}

.fluentform .ff-message-success {
    border-color: var(--cms-orange);
    background: #fff8ec;
}

/* --- Footer ------------------------------------------------------------- */

.site-footer {
    position: relative;
    padding: 70px 0;
    background: var(--cms-footer-bg);
    color: var(--cms-footer-text);
}

.site-footer a {
    color: var(--cms-footer-link);
}

.site-footer a:hover,
.site-footer a:focus {
    color: var(--cms-orange);
    text-decoration: none;
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.site-footer__logo a {
    display: inline-block;
    line-height: 0;
}

.site-footer__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 20px;
    margin: 0;
    padding: 0;
}

.site-footer__list li {
    margin: 0;
}

.site-footer__list a {
    font-size: 16px;
    line-height: 24px;
}

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 5px;
    background: #f7f7f7;
    color: #65666c;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus {
    background: var(--cms-orange);
    color: var(--cms-white);
    text-decoration: none;
}

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 1259px) {
    .subheader__title,
    h1 {
        font-size: 43px;
        line-height: 51px;
    }

    h2 {
        font-size: 34px;
        line-height: 43px;
    }
}

/* Mobile Navigation unterhalb 1240px */

@media (max-width: 1239px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 600;
        width: min(320px, 85vw);
        padding: 80px 0 40px;
        overflow-y: auto;
        background: var(--cms-mobile-nav-bg);
        transform: translateX(100%);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    /* Schatten nur bei offenem Menue, sonst ragt er 20 px in den rechten Rand */
    .nav-open .site-nav {
        transform: translateX(0);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    }

    .nav-open .nav-toggle {
        position: fixed;
        top: 23px;
        right: 20px;
        z-index: 700;
    }

    .site-nav__list {
        display: block;
    }

    .site-nav__list > li {
        margin: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .site-nav__list > li:last-child {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .site-nav__list > li > a {
        padding: 12px 60px 12px 24px;
        font-size: 17px;
        line-height: 24px;
        color: var(--cms-mobile-nav-text);
    }

    .site-nav__list > li > a:hover,
    .site-nav__list > li > a:focus,
    .site-nav__list > li.current-menu-item > a,
    .site-nav__list > li.current-menu-ancestor > a,
    .site-nav__list > li.current_page_ancestor > a {
        color: var(--cms-white);
        text-decoration: none;
    }

    .submenu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 2px;
        right: 12px;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--cms-mobile-nav-text);
        cursor: pointer;
    }

    .submenu-toggle svg {
        transition: transform 0.2s ease;
    }

    .is-open > .submenu-toggle svg {
        transform: rotate(180deg);
    }

    .site-nav__list .sub-menu {
        position: static;
        display: none;
        min-width: 0;
        padding: 0 0 8px;
        background: rgba(255, 255, 255, 0.04);
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
    }

    .site-nav__list > li.is-open > .sub-menu {
        display: block;
    }

    .site-nav__list .sub-menu a {
        padding: 10px 24px 10px 40px;
        font-size: 16px;
        color: var(--cms-mobile-nav-text);
        white-space: normal;
    }

    .site-nav__list .sub-menu a:hover,
    .site-nav__list .sub-menu a:focus,
    .site-nav__list .sub-menu .current-menu-item > a {
        color: var(--cms-white);
    }

    .site-header__logo img {
        height: 50px;
    }
}

@media (max-width: 959px) {
    .subheader__title,
    h1 {
        font-size: 38px;
        line-height: 45px;
    }

    h2 {
        font-size: 30px;
        line-height: 38px;
    }

    h3 {
        font-size: 26px;
        line-height: 34px;
    }

    .hero-slider__arrow {
        width: 34px;
        height: 34px;
        margin-top: -17px;
    }
}

@media (max-width: 767px) {
    body {
        font-size: 16px;
        line-height: 24px;
    }

    .subheader__title,
    h1 {
        font-size: 30px;
        line-height: 36px;
    }

    h2 {
        font-size: 24px;
        line-height: 30px;
    }

    h3 {
        font-size: 22px;
        line-height: 30px;
    }

    .subheader {
        padding: 20px 0;
    }

    .breadcrumbs {
        font-size: 15px;
    }

    .row {
        padding: 0 10px;
    }

    .col,
    .col-1-2,
    .col-1-3,
    .col-2-3,
    .col-1-4,
    .col-3-4,
    .col-1-5,
    .col-2-5,
    .col-3-5,
    .col-4-5,
    .col-1-6,
    .col-5-6 {
        width: 98%;
        margin-bottom: 30px;
    }

    .col--placeholder {
        display: none;
    }

    .box[style*="padding: 150px"] {
        display: none;
    }

    .site-header__logo img {
        height: 42px;
    }

    .site-header__inner {
        min-height: 70px;
    }

    .hero-slider {
        height: 60vw;
    }

    .hero-slider .swiper-pagination {
        bottom: 10px;
    }

    .site-footer {
        padding: 40px 0;
    }

    .site-footer__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .site-footer__list {
        justify-content: flex-start;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
    }

    .contact-box {
        padding: 10px 0 0;
    }
}
