/* Baby- und Kindertherapie Murnau – static site. Layout and colours follow the former Contao theme: grey bar at the top
   (e-mail, phone, short links), white navigation bar with the logo that stays at the top while scrolling (smaller),
   slider in a frame on the home page, side column with the menu of the section, dark footer.
   Breakpoints: phone < 768px, tablet 768–1024px (menu button instead of the main navigation), desktop from 1025px.

   Font sizes – two fonts, at most four steps each per breakpoint (variables below):
     Raleway (headings, only the weight 900 exists, as on the old site)
       --fs-h1  39px  page titles                                                  (phone 30px)
       --fs-h2  28px  h2, h3, slider title (was 26.7px), name line on the home page (phone 24px)
       --fs-h4  22px  h4, boxes on the home page (were 22.5px)                     (phone 20px)
       --fs-h5  18px  h5, titles of side column and footer (footer was 16.8px)
     Lato (text, only 400 exists; bold is drawn by the browser, as on the old site)
       --fs-xl  34px  slider text (was 37.3px), "Wir sind…" on the home page (was 32px)  (phone 26px)
       --fs-m   15px  running text, forms, side menu (was 14px), footer (was 14px)
       --fs-s   13px  main navigation, dropdowns (were 12px), grey bar at the top (12px), buttons (14px),
                      copyright line (11px), note on the new address in the grey bar
   Icons (sprite in layout.php) are drawn after Font Awesome, which the old site loaded as a font
   (CC BY 4.0, fontawesome.com/license/free). */

@font-face { font-family: 'Lato'; src: url('../fonts/lato-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Raleway'; src: url('../fonts/raleway-900.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }

:root {
    --text: #555;
    --head: #3b3c42;
    --blue: #6e85c0;
    --red: #ff3300;
    --link: #404040;
    --band: #f9f9f9;
    --bar: #f5f5f5;
    --line: #e5e8ee;
    --rule: #eee;
    --footer: #313131;
    --footer-text: #ccc;
    --fs-h1: 39px;
    --fs-h2: 28px;
    --fs-h4: 22px;
    --fs-h5: 18px;
    --fs-xl: 34px;
    --fs-m: 15px;
    --fs-s: 13px;
    --wrap: 1140px;
    --gutter: 30px;
}

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

html { -webkit-text-size-adjust: 100%; overflow-y: scroll; scroll-padding-top: 100px; }
.layout-home { overflow-x: clip; }   /* the grey band reaches to the window edges (100vw includes the scroll bar) */
body { margin: 0; font: 400 var(--fs-m)/1.56 'Lato', Arial, Helvetica, sans-serif; color: var(--text); background: #fff; }

img { max-width: 100%; height: auto; border: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; font-family: 'Raleway', Arial, sans-serif; font-weight: 900; line-height: 1.3; color: var(--head); }
h1 { font-size: var(--fs-h1); color: var(--blue); }
h2, h3 { font-size: var(--fs-h2); }
h4 { font-size: var(--fs-h4); }
h5, h6 { font-size: var(--fs-h5); }
p, ul, ol { margin: 0 0 15px; }
ul, ol { padding-left: 21px; }
strong { font-weight: 700; }
sub { font-size: 75%; }
figure { margin: 0; }

.sprite { display: none; }
.icon { display: inline-block; width: 1em; height: 1em; fill: currentColor; vertical-align: -.125em; flex: none; }

.skip-link { position: absolute; left: 10px; top: -60px; z-index: 600; padding: 8px 14px; background: #fff; color: var(--text); }
.skip-link:focus-visible { top: 10px; }

/* ------------------------------------------------------------------ grey bar at the top */

.topbar { background: var(--bar); font-size: var(--fs-s); line-height: 20px; color: #7f7f7f; }
.topbar__inner { display: flex; align-items: center; gap: 20px; max-width: var(--wrap); min-height: 40px; margin: 0 auto; padding: 0 0; }
.topbar ul { display: flex; gap: 0 14px; margin: 0; padding: 0; list-style: none; }
.topbar a { color: #7f7f7f; }
.topbar a:hover { color: var(--blue); }
.topbar .icon { margin-right: 5px; }
.topbar__notice { flex: 1; margin: 0; padding: 10px 0; color: var(--blue); font-weight: 700; text-align: center; }
.topbar__nav { margin-left: auto; }
.topbar__nav ul { gap: 0 10px; }

/* ------------------------------------------------------------------ navigation bar (stays at the top while scrolling) */

.navbar-wrap { height: 169px; }               /* keeps the place of the bar, so the page does not jump when it gets fixed */
.navbar { position: relative; z-index: 300; background: #fff; border-top: 1px solid var(--line); }
.navbar.is-fixed { position: fixed; top: 0; left: 0; right: 0; border-top: 0; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); animation: navbar-in .4s ease; }
@keyframes navbar-in { from { transform: translateY(-100%); } to { transform: none; } }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; max-width: var(--wrap); margin: 0 auto; padding: 30px 0; }
.navbar.is-fixed .navbar__inner { padding: 10px 0; }

.logo { flex: none; width: 317px; margin: 0 20px 0 0; transition: width .3s ease; }
.logo a, .logo img { display: block; }
.navbar.is-fixed .logo { width: 147px; }

.mainnav__list { display: flex; margin: 0; padding: 0; list-style: none; }
.mainnav__list > li { position: relative; }
.mainnav__list > li > a {
    position: relative;
    display: block;
    padding: 12px;
    font-size: var(--fs-s);
    font-weight: 700;
    line-height: 20px;
    text-transform: uppercase;
    color: var(--blue);
    transition: color .25s ease;
}
.mainnav__list > li:last-child > a { padding-right: 0; }
.mainnav__list > li > a::after {   /* short red line below the current entry */
    content: '';
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 22px;
    height: 2px;
    margin-left: -11px;
    background: var(--red);
    opacity: 0;
    transition: opacity .25s ease;
}
.mainnav__list > li.has-sub > a::after { margin-left: -17px; }
.mainnav__list > li:last-child > a::after { margin-left: -5px; }
.mainnav__list > li:hover > a, .mainnav__list > li > a:focus-visible,
.mainnav__list > li.is-current > a, .mainnav__list > li.is-trail > a { color: var(--red); }
.mainnav__list > li.is-current > a::after, .mainnav__list > li.is-trail > a::after { opacity: 1; }
.icon--down { width: 7px; height: 11px; margin-left: 5px; vertical-align: -1px; }

/* dropdown below "Leistungen" and "Kontakt" */
.mainnav__sub {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    width: 220px;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    visibility: hidden;
    opacity: 0;
    transition: opacity .25s ease, visibility .25s;
}
.mainnav__list > li:last-child > .mainnav__sub { left: auto; right: 0; }
.mainnav__list > li:hover > .mainnav__sub, .mainnav__list > li:focus-within > .mainnav__sub, .mainnav__list > li.is-open > .mainnav__sub { visibility: visible; opacity: 1; }
.mainnav__list > li.is-closed > .mainnav__sub { visibility: hidden; opacity: 0; }   /* closed with Escape (main.js) */
.mainnav__sub a { display: block; padding: 10px 14px; font-size: var(--fs-s); line-height: 18px; color: var(--link); transition: color .25s ease, background-color .25s ease; }
.mainnav__sub a:hover, .mainnav__sub a:focus-visible, .mainnav__sub a[aria-current] { color: var(--red); background: var(--band); }
.mainnav__sub a:focus-visible { outline-offset: -2px; }

.mainnav__toggle { display: none; }

/* ------------------------------------------------------------------ slider (home page): pictures fade into each other */

.slider { max-width: var(--wrap); margin: 60px auto; }
.slider__frame { position: relative; border: 10px solid var(--line); }
.slider__viewport { position: relative; aspect-ratio: 16 / 7; overflow: hidden; background: var(--line); }
.slider__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.5s ease, visibility 0s 1.5s; }
.slider__slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.5s ease, visibility 0s; }
.slider__slide picture, .slider__slide img { display: block; width: 100%; height: 100%; }
.slider__slide img { object-fit: cover; }
.slide__text { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 0 50px; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
.slide__title { margin: 0; padding: 15px 0; font: 900 var(--fs-h2)/1.5 'Raleway', Arial, sans-serif; letter-spacing: 1px; text-transform: uppercase; }
.slide__sub { max-width: 760px; margin: 0; font-size: var(--fs-xl); line-height: 1.5; letter-spacing: 1px; }
.slide__link { margin: 20px 0 0; text-shadow: none; }
.slide__link a { display: inline-block; padding: 8px 20px; border: 4px solid var(--blue); background: #fff; font-size: var(--fs-m); font-weight: 700; text-transform: uppercase; color: var(--blue); transition: background-color .25s ease, color .25s ease; }
.slide__link a::after, .flipbox .btn::after { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 2px 0 9px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); vertical-align: 1px; }
.slide__link a:hover, .slide__link a:focus-visible { background: var(--blue); color: #fff; }
.js .slider__slide.is-active .slide__title { animation: slide-down 2s ease both; }
.js .slider__slide.is-active .slide__sub, .js .slider__slide.is-active .slide__link { animation: zoom-in 2s ease both; }
@keyframes slide-down { from { opacity: 0; transform: translateY(-60px); } to { opacity: 1; transform: none; } }
@keyframes zoom-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.slider__dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 10px; }
.slider__dots[hidden] { display: none; }
.slider__dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 0 2px rgba(0, 0, 0, .4); cursor: pointer; }
.slider__dots button[aria-current] { background: #fff; }
.slider__dots button:hover { background: var(--blue); }
.slider__dots button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
html:not(.js) .slider__slide:first-child { opacity: 1; visibility: visible; }

/* ------------------------------------------------------------------ map (Kontaktanfrage): picture from OpenStreetMap, Google Maps after a click */

.map { position: relative; height: clamp(300px, 34vw, 471px); overflow: hidden; background: var(--line); }
.map__img { display: block; width: 100%; height: 100%; object-fit: none; object-position: 50% 50%; }   /* 1:1, labels stay readable */
@media (min-width: 2400px) { .map__img { object-fit: cover; } }   /* wider than the picture */
.map__pin { position: absolute; left: 50%; top: 50%; color: var(--red); transform: translate(-50%, -100%); filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35)); }
.map__pin .icon { display: block; width: 28px; height: 38px; }
.map__consent {
    position: absolute;
    left: 50%;
    bottom: 30px;
    width: min(560px, calc(100% - 40px));
    padding: 18px 22px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
    text-align: center;
    transform: translateX(-50%);
}
.map__consent p { margin: 0 0 12px; }
.map__credit { position: absolute; right: 0; bottom: 0; margin: 0; padding: 1px 8px; background: rgba(255, 255, 255, .85); font-size: var(--fs-s); line-height: 1.6; color: var(--text); }
.map__credit a { color: var(--text); text-decoration: underline; }
.map.is-loaded iframe { display: block; width: 100%; height: 100%; border: 0; }
.embed-consent.is-loaded > :not(iframe) { display: none; }
html:not(.js) .map__consent { display: none; }

/* ------------------------------------------------------------------ page body: content, side column on the left or right */

.container { display: flex; align-items: stretch; max-width: var(--wrap); margin: 0 auto; }
.main { flex: 1 1 auto; min-width: 0; padding: 30px 0 60px; }
.aside { flex: 0 0 240px; padding: 30px 0 40px; }
.layout-left .aside { order: -1; margin-right: 50px; }
.layout-right .aside { position: relative; margin-left: 50px; padding-left: 0; }
.layout-right .aside::before { content: ''; position: absolute; top: 0; bottom: 0; left: -20px; right: calc(-1 * (100vw - var(--wrap)) / 2); z-index: -1; background: var(--band); }   /* grey up to the window edge */
.layout-right .container { position: relative; z-index: 0; overflow-x: clip; }
.layout-home .main { padding: 0; }
.layout-full .main { padding: 100px 0; }

.aside__title { margin: 0 0 9px; padding-bottom: 10px; border-bottom: 1px solid var(--blue); font-size: var(--fs-h5); line-height: 1.3; }
.submenu ul { margin: 0 0 30px; padding: 0; list-style: none; }
.submenu li { margin-bottom: 10px; }
.submenu a { position: relative; display: block; padding: 10px 12px 10px 26px; background: var(--band); font-size: var(--fs-m); line-height: 1.45; color: var(--link); transition: color .25s ease; }
.layout-right .submenu a { background: #fff; }
.submenu a:hover, .submenu a:focus-visible { color: var(--red); }
.submenu a[aria-current] { color: var(--red); font-weight: 700; box-shadow: inset 0 -2px 0 var(--red); }
.submenu a:focus-visible { outline-offset: -2px; }
.icon--angle { position: absolute; left: 12px; top: 50%; width: 6px; height: 12px; margin-top: -6px; color: var(--head); }
.submenu a[aria-current] .icon--angle { color: var(--red); }

.contact-box { margin-bottom: 30px; }
.contact-box .aside__title { padding-bottom: 0; border-bottom: 0; font-size: var(--fs-h4); }
.contact-box p { margin-bottom: 10px; }
.contact-box .icon, .footer-contact .icon { width: 14px; margin-right: 7px; }

/* note on the new address (until the move) */
.notice { margin: 0 0 12px; padding: 8px 12px; border-left: 3px solid var(--blue); background: #fff; font-weight: 700; color: var(--head); }
.notice--footer { border-left-color: var(--blue); background: rgba(255, 255, 255, .06); color: #fff; }
.notice--map { margin: 0; padding: 12px var(--gutter); border: 0; background: var(--blue); color: #fff; text-align: center; }

/* ------------------------------------------------------------------ building blocks for the content (see src/README.md) */

.article::after, .ce::after { content: ''; display: table; clear: both; }
.title-line { height: 1px; margin: 0 0 40px; border: 0; background: linear-gradient(to right, var(--blue) 0 31.75%, var(--rule) 31.75%); }   /* blue on the first third, as on the old site */
.sep { clear: both; height: 16px; margin: 20px 0 40px; border: 0; border-top: 4px solid var(--rule); border-bottom: 8px solid var(--rule); background: none; }   /* double line */
.ce { margin-bottom: 20px; }
.img--right { float: right; margin: 0 0 20px 30px; }
.img--left { float: left; margin: 0 30px 20px 0; }
.img img { display: block; }
.img a { display: block; overflow: hidden; }
.img a img { transition: transform .4s ease; }
.img a:hover img { transform: scale(1.04); }
.more a { font-weight: 700; }
.heading-line { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; color: var(--blue); }
.heading-line::after { content: ''; flex: 1; height: 8px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

.btn { display: inline-block; padding: 0 15px; border: 0; background: var(--blue); font: 700 var(--fs-s)/42px 'Lato', Arial, sans-serif; text-transform: uppercase; color: #fff; cursor: pointer; transition: background-color .25s ease; }
.btn:hover, .btn:focus-visible { background: var(--head); color: #fff; }

/* home page: grey band with "Wir sind…", intro, three boxes that turn over */
.band { margin: 0 calc(50% - 50vw); padding: 60px var(--gutter); border-top: 8px solid var(--blue); border-bottom: 4px solid var(--blue); background: var(--band); text-align: center; }
.band__lead { margin: 0; font-size: var(--fs-xl); line-height: 1.56; }
.band h2 { margin: 0; }
.band__line { width: 60px; height: 2px; margin: 20px auto; border: 0; background: var(--text); }
.band p:last-child { margin-bottom: 0; }
.intro { padding-top: 30px; text-align: center; }
.intro h1 { margin: 0 0 20px; }
.shadow-line { height: 5px; margin: 10px 0; border: 0; background: radial-gradient(ellipse at 50% 0, rgba(0, 0, 0, .12), transparent 70%); }
.flipboxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 80px 0; }
.flipbox { position: relative; height: 400px; perspective: 1200px; }
.flipbox__inner { position: relative; height: 100%; transition: transform .7s ease; transform-style: preserve-3d; }
.flipbox:focus-within .flipbox__inner, .flipbox.is-flipped .flipbox__inner, html:not(.js) .flipbox:hover .flipbox__inner { transform: rotateY(180deg); }
@media (hover: hover) { .flipbox:hover .flipbox__inner { transform: rotateY(180deg); } }   /* touch screens keep :hover after a tap */
.flipbox__front, .flipbox__back { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 30px; backface-visibility: hidden; -webkit-backface-visibility: hidden; text-align: center; }
.flipbox__front { background: center / cover no-repeat; }
.flipbox__title { margin: 0; font: 900 var(--fs-h4)/1.3 'Raleway', Arial, sans-serif; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.flipbox__back { background: #f4f4f4; transform: rotateY(180deg); }
.flipbox__back h2 { margin: 0 0 .5em; font-size: var(--fs-h4); }
.flipbox__back .btn--red { background: #cf0000; }
.flipbox__back .btn--blue { background: #0096d9; }
.flipbox__back .btn--dark { background: var(--footer); }
.flipbox__back .btn:hover, .flipbox__back .btn:focus-visible { background: var(--blue); }

/* ------------------------------------------------------------------ forms (Kontaktanfrage, Anmeldeformular) */

.form { display: grid; grid-template-columns: repeat(12, 1fr); gap: 15px 30px; margin-bottom: 30px; }
.form > * { grid-column: span 12; min-width: 0; margin: 0; }
.form .w3 { grid-column: span 3; }
.form .w4 { grid-column: span 4; }
.form .w6 { grid-column: span 6; }
.form .w8 { grid-column: span 8; }
.form .w9 { grid-column: span 9; }
.form__group { margin: 10px 0 -5px; font-weight: 700; color: var(--head); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
    display: block;
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #d9d9d9;
    border-radius: 0;
    background: #fff;
    font: inherit;
    color: var(--text);
}
.form textarea { min-height: 3.4em; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue); outline: 0; box-shadow: 0 0 0 1px var(--blue); }
.form ::placeholder { color: #8a8a8a; opacity: 1; }
.form label.form__label { display: block; margin-bottom: 4px; }
.form fieldset { padding: 10px 12px; border: 1px solid #ddd; }
.form legend { padding: 0 4px; }
.choice { display: inline-flex; align-items: flex-start; gap: 6px; margin: 0 20px 4px 0; }
.choice input { flex: none; margin: 4px 0 0; accent-color: var(--blue); }
.form .consent { display: flex; align-items: flex-start; gap: 8px; padding: 10px 15px; border: 1px solid #d9d9d9; }
.form .consent input { flex: none; margin: 4px 0 0; accent-color: var(--blue); }
.form__hint { color: var(--head); font-weight: 700; }
.form__warn { color: #c00; }
.form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }   /* empty field against spam robots */
.form .btn { width: 100%; text-transform: none; font-size: var(--fs-m); line-height: 52px; }
.form .form__submit { grid-column: 7 / span 6; align-self: end; }
.form__compact { display: flex; flex-direction: column; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-result { margin-bottom: 30px; padding: 20px 24px; border-left: 4px solid var(--blue); background: var(--band); }
.form-result--error { border-left-color: #c00; }
.form-result ul { margin-bottom: 0; }

/* ------------------------------------------------------------------ privacy policy and imprint */

.legal h2 { margin-top: 1.4em; font-size: var(--fs-h4); }
.legal h3 { margin-top: 1.2em; font-size: var(--fs-h5); }
.legal h2:first-child { margin-top: 0; }

/* ------------------------------------------------------------------ footer */

.site-footer { background: var(--footer); color: var(--footer-text); }
.site-footer__inner { display: flex; gap: 30px; max-width: var(--wrap); margin: 0 auto; padding: 70px 0 40px; }
.footer-col { flex: 0 0 263px; margin-bottom: 30px; }
.footer-col__title { margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(112, 112, 112, .3); font-size: var(--fs-h5); line-height: 1.3; color: #707070; }
.site-footer p { margin-bottom: 8px; }
.site-footer a { color: var(--footer-text); }
.site-footer a:hover { color: #fff; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.footer-contact li { margin-bottom: 2px; }
.site-footer :focus-visible { outline-color: #fff; }
.footer-bar { background: #f2f2f2; }
.footer-bar p { max-width: var(--wrap); margin: 0 auto; padding: 20px 0; font-size: var(--fs-s); line-height: 1.5; color: var(--text); }
.footer-bar a { color: var(--text); }
.footer-bar a:hover { color: var(--blue); }
.footer-bar :focus-visible { outline-color: var(--blue); }

/* ------------------------------------------------------------------ back to top */

.totop { position: fixed; right: 30px; bottom: 30px; z-index: 200; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: rgba(110, 133, 192, .6); color: #fff; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s, background-color .25s; }
.totop.is-visible { opacity: 1; visibility: visible; }
.totop:hover { background: var(--blue); color: #fff; }
.totop:focus-visible { outline: 2px solid #fff; outline-offset: 0; box-shadow: 0 0 0 4px var(--head); }
.totop .icon { width: 12px; height: 16px; }
html:not(.js) .totop { display: none; }

/* ------------------------------------------------------------------ mobile menu (phone and tablet), slides in from the left */

.mm[hidden] { display: none; }
.mm__blocker { position: fixed; inset: 0; z-index: 400; background: #000; opacity: 0; transition: opacity .4s ease; }
.mm.is-open .mm__blocker { opacity: .5; }
.mm__menu {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 401;
    width: 80%;
    max-width: 440px;
    overflow: hidden;
    background: #fff;
    font-size: var(--fs-m);
    line-height: 22px;
    box-shadow: 0 0 15px rgba(0, 0, 0, .5);
    transform: translate3d(-100%, 0, 0);
    transition: transform .4s ease;
}
.mm.is-open .mm__menu { transform: none; }
.mm__close { position: absolute; top: 0; right: 0; z-index: 2; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--head); cursor: pointer; }
.mm__close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; }
.mm__close:hover, .mm__close:focus-visible { color: var(--red); }
.mm__close:focus-visible { outline-offset: -2px; }
html.mm-open { overflow: hidden; }
.mm a { color: var(--link); }
.mm__panels { position: absolute; inset: 44px 0; overflow: hidden; }
.mm__bar { position: absolute; left: 0; right: 0; z-index: 1; display: flex; justify-content: center; height: 44px; margin: 0; background: #fff; }
.mm__bar--top { top: 0; border-bottom: 1px solid var(--line); }
.mm__bar--bottom { bottom: 0; border-top: 1px solid var(--line); }
.mm__bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 60px; padding: 0 12px; color: var(--blue); }
.mm__bar a:hover { color: var(--red); }
.mm__bar .icon { width: 16px; height: 16px; }
.mm__panel { position: absolute; inset: 0; overflow-y: auto; background: #fff; visibility: hidden; transform: translate3d(100%, 0, 0); transition: transform .4s ease, visibility .4s; }
.mm__panel.is-current { visibility: visible; transform: none; transition: transform .4s ease, visibility 0s; }
.mm__panel.is-parent { transform: translate3d(-100%, 0, 0); }
.mm__head { position: relative; display: flex; align-items: center; justify-content: center; height: 44px; margin: 0; padding: 0 44px; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--head); }
.mm__title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mm__prev { position: absolute; top: 0; left: 0; bottom: 0; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.mm__prev::before { content: ''; position: absolute; top: 0; bottom: 0; left: 20px; width: 9px; height: 9px; margin: auto; border-top: 2px solid var(--blue); border-left: 2px solid var(--blue); transform: rotate(-45deg); }
.mm__list { margin: 0; padding: 0; list-style: none; }
.mm__list li { position: relative; display: flex; border-bottom: 1px solid var(--line); }
.mm__list a { flex: 1; display: block; min-width: 0; padding: 11px 10px 11px 20px; }
.mm__list a[aria-current] { color: var(--red); background: var(--band); }
.mm a:focus-visible, .mm button:focus-visible { outline-offset: -2px; }
.mm__next { position: relative; flex: none; width: 80px; padding: 0; border: 0; border-left: 1px solid var(--line); background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.mm__counter { position: absolute; top: 11px; left: 22px; }
.mm__next::after { content: ''; position: absolute; top: 0; bottom: 0; right: 22px; width: 9px; height: 9px; margin: auto; border-top: 2px solid var(--blue); border-left: 2px solid var(--blue); transform: rotate(135deg); }

/* ------------------------------------------------------------------ lightbox */

.lb { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: 50px 60px; background: rgba(0, 0, 0, .8); opacity: 0; transition: opacity .25s; }
.lb[hidden] { display: none; }
.lb.is-visible { opacity: 1; }
.lb__figure { margin: 0; padding: 10px; background: #fff; box-shadow: 0 5px 20px rgba(0, 0, 0, .5); text-align: left; }
.lb__img { display: block; max-width: calc(100vw - 140px); max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); }
.lb__caption { min-height: 20px; padding-top: 8px; color: #777; font-size: var(--fs-s); line-height: 1.5; }
.lb__caption strong { color: var(--head); }
.lb__btn { position: absolute; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; }
.lb__btn svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.lb__btn[hidden] { display: none; }
.lb__btn:hover, .lb__btn:focus-visible { color: var(--blue); }
.lb__prev { left: 8px; top: 50%; margin-top: -22px; }
.lb__next { right: 8px; top: 50%; margin-top: -22px; }
.lb__close { right: 8px; top: 8px; }
html.lightbox-open { overflow: hidden; }

/* ------------------------------------------------------------------ up to 1170px: side margins */

@media (max-width: 1169.98px) {
    .topbar__inner, .navbar__inner, .container, .site-footer__inner, .footer-bar p { padding-left: var(--gutter); padding-right: var(--gutter); }
    .slider { margin-left: var(--gutter); margin-right: var(--gutter); }
    .layout-right .aside::before { right: calc(-1 * var(--gutter)); }
}

/* ------------------------------------------------------------------ phone and tablet: menu button instead of the main navigation */

@media (max-width: 1024.98px) {
    .navbar-wrap { height: 110px; }
    .navbar__inner { padding-top: 15px; padding-bottom: 15px; }
    .logo { width: 235px; }
    .mainnav { display: none; }
    .mainnav__toggle { display: flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--blue); cursor: pointer; }
    .mainnav__toggle .icon { width: 24px; height: 24px; }
    .mainnav__toggle:hover { color: var(--red); }
    .topbar__nav { display: none; }
    .flipboxes { gap: 20px; }
    /* without JavaScript: the main navigation as a list below the logo, the button would do nothing */
    html:not(.js) .mainnav__toggle { display: none; }
    html:not(.js) .navbar-wrap { height: auto; }
    html:not(.js) .navbar__inner { flex-wrap: wrap; }
    html:not(.js) .mainnav { display: block; flex: 1 1 100%; margin-top: 10px; }
    html:not(.js) .mainnav__list { flex-wrap: wrap; }
    html:not(.js) .mainnav__list > li > a { padding-left: 0; }
    html:not(.js) .mainnav__sub, html:not(.js) .icon--down { display: none; }   /* sub pages: via the side menu and the footer */
}

@media (min-width: 768px) and (max-width: 1024.98px) {
    .aside { flex-basis: 220px; }
    .layout-left .aside { margin-right: 30px; }
    .layout-right .aside { margin-left: 30px; }
    .flipbox { height: 440px; }
    .flipbox__front, .flipbox__back { padding: 20px; }
}

/* ------------------------------------------------------------------ phone: one column, side column below the content */

@media (max-width: 767.98px) {
    :root { --fs-h1: 30px; --fs-h2: 24px; --fs-h4: 20px; --fs-xl: 26px; --gutter: 16px; }
    .topbar .topbar__contact { display: none; }
    .topbar__inner { min-height: 0; }
    .topbar__notice { padding: 8px 0; }
    .navbar-wrap { height: 86px; }
    .navbar__inner { padding-top: 12px; padding-bottom: 12px; }
    .logo { width: 180px; }
    .navbar.is-fixed .logo { width: 130px; }

    .slider { margin-top: 20px; margin-bottom: 20px; }
    .slider__frame { border-width: 5px; }
    .slide__text { display: none; }   /* as on the old site: no text on the pictures on phones */

    .container { display: block; }
    .layout-left .aside, .layout-right .aside { margin: 0; padding-top: 0; }
    .layout-right .aside { margin: 0 calc(-1 * var(--gutter)); padding: 30px var(--gutter) 10px; background: var(--band); }
    .layout-right .aside::before { content: none; }
    .main { padding-bottom: 30px; }

    .img--right, .img--left { float: none; margin: 0 0 20px; }
    .img img { width: 100%; max-width: 400px; }
    .img--left img { max-width: 250px; }

    .band { padding-top: 40px; padding-bottom: 40px; }
    .flipboxes { grid-template-columns: 1fr; padding: 40px 0; }
    .flipbox { height: 360px; }

    .form .w3, .form .w4, .form .w6, .form .w8, .form .w9, .form .form__submit { grid-column: span 12; }

    .map { height: auto; }
    .map__img { height: 280px; }
    .map__pin { top: 140px; }
    .map__consent { position: static; width: auto; padding: 14px var(--gutter); box-shadow: none; transform: none; background: var(--band); }
    .map__credit { top: calc(280px - 1.6em); bottom: auto; }
    .map.is-loaded { height: 380px; }

    .site-footer__inner { display: block; padding-top: 50px; padding-bottom: 20px; }

    .totop { right: 16px; bottom: 16px; }
    .lb { padding: 50px 10px; }
    .lb__img { max-width: calc(100vw - 40px); }
    .lb__prev, .lb__next { top: auto; bottom: 8px; margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
    .topbar, .navbar-wrap, .slider, .map, .aside, .totop, .mm, .footer-bar { display: none !important; }
    .site-footer { background: none; color: #000; }
}
