/* Naturruhestätte Mailsberg – Theme nrs */

@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/roboto-300.woff2') format('woff2'); }
@font-face { font-family: 'Roboto Slab'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/robotoslab-400.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/montserrat-400.woff2') format('woff2'); }

:root {
    --c-bg: #c5d8c5;
    --c-text: #1f1f26;
    --c-head: #2d2d2e;
    --c-dark: #002301;
    --c-green: #004901;
    --c-header: #97b56e;
    --c-nav: #f8f8f8;
    --c-gold: #c9ac75;
    --f-body: 'Roboto', sans-serif;
    --f-slab: 'Roboto Slab', serif;
    --f-mont: 'Montserrat', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--c-bg);
    color: var(--c-text);
    font: 300 17px/1.45 var(--f-body);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--c-green); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
.icon { display: inline-block; vertical-align: -.125em; }

.screen-reader-text {
    position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; padding: 8px 14px; }
.skip-link:focus { left: 10px; top: 10px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* ---------- Kopfzeile ---------- */
.top-panel { background: var(--c-dark); color: var(--c-nav); font-size: 14px; line-height: 20.3px; }
.top-panel__wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 24px; padding: 15px 30px 13px 46px; }
.top-panel__wrap > div { line-height: 23px; }
.top-panel a { color: inherit; }
.top-panel__phone .icon { font-size: 18px; vertical-align: -.22em; }

.site-header { position: relative; z-index: 20; background: var(--c-header); padding: 9px 21px 15px 96px; }
.site-header__wrap { display: flex; align-items: center; justify-content: space-between; min-height: 39px; }
.site-header__logo { font: 400 22px/31.9px var(--f-slab); color: #fff; margin-top: 3px; }
.site-header__logo:hover { text-decoration: none; }

.site-nav .menu { display: flex; list-style: none; margin: 0 -10px 0 0; padding: 0; font: 400 17px/24.65px var(--f-mont); }
.site-nav .menu li { margin: 0 1px; }
.site-nav .menu a { display: block; padding: 7px 11px; border-radius: 30px; color: var(--c-nav); transition: .4s all ease; }
.site-nav .menu a:hover, .site-nav .menu a:focus-visible, .site-nav .menu .current-menu-item > a { color: var(--c-green); text-decoration: none; }

.site-header__toggle { display: none; width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; position: relative; }
.site-header__toggle span { position: absolute; left: 11px; width: 22px; height: 2px; background: #fff; transition: transform .25s, opacity .25s; }
.site-header__toggle span:nth-child(1) { top: 14px; }
.site-header__toggle span:nth-child(2) { top: 21px; }
.site-header__toggle span:nth-child(3) { top: 28px; }
.site-header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
    .top-panel__wrap { flex-direction: column; align-items: flex-start; padding: 12px 30px 12px 30px; }
    .site-header { padding: 9px 20px 9px 30px; }
    .site-header__wrap { flex-wrap: wrap; }
    .site-header__logo { font-size: 20px; max-width: calc(100% - 56px); }
    .site-header__toggle { display: block; }
    .js .site-nav { display: none; flex: 0 0 100%; order: 3; padding: 6px 0 8px; }
    .js .site-nav.is-open { display: block; }
    .site-nav .menu { flex-direction: column; margin: 0; }
    .site-nav .menu li { margin: 0; }
    .site-nav .menu a { padding: 11px 0; border-radius: 0; border-top: 1px solid rgba(0, 0, 0, .12); }
}

/* ---------- Startseite ---------- */
.hero { position: relative; display: flex; align-items: center; justify-content: center; height: 38.25vw; min-height: 300px; max-height: 545px; overflow: hidden; background: #6f8a52; text-align: center; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hero__text { position: relative; padding: 0 20px 50px; color: #fff; }
.hero__head { margin: 0; font-size: clamp(24px, 3.1vw, 44px); line-height: 1.36; letter-spacing: 2px; font-weight: 300; }
.hero__sub { margin: 15px 0; font: 400 clamp(19px, 2.4vw, 34px)/1.3 var(--f-slab); }
@media (max-width: 600px) { .hero__text { padding-bottom: 20px; } }

.boxes { padding: 44px 0 21px; }
.boxes__grid { display: grid; grid-template-columns: 1fr 1fr; }
.box { display: block; position: relative; margin: 26px; overflow: hidden; color: #fff; background: #1d3a1f; }
.box:hover { text-decoration: none; }
.box__in { display: flex; flex-direction: column; justify-content: center; min-height: 339px; padding: 79px 80px 30px 28px; position: relative; transition: .4s all ease; }
.box:hover .box__in, .box:focus-visible .box__in { transform: scale(1.05); }
/* Hover: Bild vergrößert sich, zwei helle Lichtstreifen laufen über die Kachel, Knopf wird heller */
.box::before, .box::after { content: ''; position: absolute; top: 0; z-index: 2; width: 50%; height: 100%; left: -100%; pointer-events: none;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .1) 10%, rgba(255, 255, 255, 0) 100%); transform: skewX(45deg); }
.box:hover::before, .box:focus-visible::before { left: 0; animation: shine 1s; }
.box:hover::after, .box:focus-visible::after { left: 50%; animation: shine .8s .25s; }
@keyframes shine { 100% { left: 160%; transform: skewX(45deg); } }
.box:hover .box__button, .box:focus-visible .box__button { background: #6a9a6b; border-color: #6a9a6b; }
.box__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.box__title, .box__text, .box__button { position: relative; }
.box__title { margin: 0; font: 400 19px/20.9px var(--f-mont); letter-spacing: -.5px; text-transform: uppercase; color: #fff; }
.box__text { display: block; margin: 17px 0 25px; font-weight: 700; line-height: 24px; opacity: .6; }
.box__button { transition: .4s all ease; align-self: flex-start; margin-top: 27px; padding: 2px 9px; border: 2px solid var(--c-green); background: var(--c-green); color: #fff; font-size: 14px; line-height: 25px; font-weight: 500; letter-spacing: .5px; text-transform: uppercase; }
@media (max-width: 900px) {
    .boxes__grid { grid-template-columns: 1fr; }
    .box { margin: 14px 0; }
    .box__in { min-height: 286px; padding: 50px 40px 30px 28px; }
}

.mensch-tier { background: var(--c-dark); color: #fff; padding: 59px 0 58px; }
.mensch-tier__grid { display: grid; grid-template-columns: minmax(0, 870px) 270px; gap: 30px; justify-content: space-between; align-items: start; }
.mensch-tier__text p { margin: 0 0 17px; }
.mensch-tier__img img { display: block; width: 270px; height: 180px; object-fit: cover; }
@media (max-width: 900px) {
    .mensch-tier { padding: 30px 0; }
    .mensch-tier__grid { grid-template-columns: 1fr; }
    .mensch-tier__img img { width: 100%; max-width: 270px; }
}

.anfrage { background: #7a6a3d url('../../../../uploads/2016/05/bg_contact.webp') center / cover no-repeat; padding: 52px 0 65px; }
.anfrage__title { margin: 15px 0 34px; text-align: center; color: #fff; font: 400 clamp(24px, 2.4vw, 34px)/1.3 var(--f-slab); }
.anfrage__title strong { font-weight: 700; }
@media (max-width: 900px) { .anfrage { padding: 35px 0; } .anfrage__title { margin-bottom: 20px; } }

/* ---------- Formular ---------- */
.nrs-form {
    --f-bg: #fff; --f-border: #cfdccb; --f-field: #f5f9f3; --f-text: #1f1f26; --f-label: #3d4a3a; --f-accent: #004901;
    max-width: 820px; margin: 0 auto; padding: 34px 38px 38px; border-radius: 12px;
    background: #fff; color: var(--f-text); box-shadow: 0 10px 34px rgba(0, 35, 1, .14), 0 1px 3px rgba(0, 35, 1, .1);
}
.nrs-form form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.nrs-form p { margin: 0; grid-column: 1 / -1; max-width: none; }
.nrs-form form > p:nth-of-type(1), .nrs-form form > p:nth-of-type(2) { grid-column: auto; }
.nrs-form label { display: block; margin: 0 0 8px; font-size: 13px; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; color: var(--f-label); }
.nrs-form .req { color: #b4452f; margin-left: 2px; }
.nrs-form input[type=text], .nrs-form input[type=email], .nrs-form input[type=tel], .nrs-form textarea {
    display: block; width: 100%; margin: 0; padding: 13px 16px; border: 1px solid var(--f-border); border-radius: 8px; background: var(--f-field);
    color: var(--f-text); font: 300 16px/1.5 var(--f-body); transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.nrs-form textarea { height: 170px; min-height: 120px; resize: vertical; }
.nrs-form input::placeholder, .nrs-form textarea::placeholder { color: #8d9a8a; opacity: 1; }
.nrs-form input:hover, .nrs-form textarea:hover { border-color: #9fb59a; }
.nrs-form input:focus, .nrs-form textarea:focus { outline: 0; border-color: var(--f-accent); background: #fff; box-shadow: 0 0 0 4px rgba(0, 73, 1, .16); }
.nrs-form__privacy { font-size: 14px; line-height: 1.55; color: #55624f; }
.nrs-form__submit { margin-top: 4px !important; text-align: center; }
.nrs-form button {
    display: inline-flex; align-items: center; gap: 12px; padding: 16px 46px; border: 0; border-radius: 999px; cursor: pointer;
    background: linear-gradient(135deg, #0a6a0d, var(--f-accent)); color: #fff; font: 400 15px/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(0, 73, 1, .35); transition: transform .2s, box-shadow .2s, filter .2s;
}
.nrs-form button::after { content: '\2192'; font-size: 20px; line-height: 1; transition: transform .2s; }
.nrs-form button:hover, .nrs-form button:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 73, 1, .42); filter: brightness(1.1); }
.nrs-form button:hover::after { transform: translateX(4px); }
.nrs-form button:focus-visible { outline: 3px solid rgba(0, 73, 1, .35); outline-offset: 3px; }
.nrs-form__error { grid-column: 1 / -1; margin: 0 0 18px; padding: 14px 18px; border-radius: 8px; background: #fdecea; border-left: 4px solid #b32d2e; color: #5c1a17; }
.nrs-form__error p { max-width: none; }
.nrs-form--done { text-align: center; padding: 44px 38px; }
.nrs-form--done::before { content: '\2713'; display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; background: #e7f1e2; color: var(--f-accent); font-size: 32px; }
.nrs-form--done p { margin: 0 0 6px; font-size: 18px; }

/* Variante auf dem Hintergrundbild: dunkles Milchglas */
.nrs-form--hell {
    --f-label: #fff; --f-border: rgba(255, 255, 255, .55); --f-field: #fff;
    background: rgba(0, 35, 1, .62); border: 1px solid rgba(255, 255, 255, .22); color: #fff;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 14px 40px rgba(0, 0, 0, .3);
}
.nrs-form--hell .req { color: #f0c27a; }
.nrs-form--hell input:focus, .nrs-form--hell textarea:focus { border-color: #97b56e; box-shadow: 0 0 0 4px rgba(151, 181, 110, .4); }
.nrs-form--hell .nrs-form__privacy { color: rgba(255, 255, 255, .88); }
.nrs-form--hell .nrs-form__privacy a { color: #fff; text-decoration: underline; }
.nrs-form--hell button { background: linear-gradient(135deg, #a8c77f, #8fb061); color: #0b2a0c; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.nrs-form--hell button:focus-visible { outline-color: rgba(255, 255, 255, .7); }
.nrs-form--hell.nrs-form--done { color: #fff; }
.nrs-form--hell.nrs-form--done::before { background: rgba(255, 255, 255, .18); color: #fff; }
@media (max-width: 640px) {
    .nrs-form { padding: 24px 20px 28px; border-radius: 10px; }
    .nrs-form form { grid-template-columns: 1fr; gap: 16px; }
    .nrs-form form > p:nth-of-type(1), .nrs-form form > p:nth-of-type(2) { grid-column: 1 / -1; }
    .nrs-form button { width: 100%; justify-content: center; padding: 16px 20px; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .nrs-form--hell { background: rgba(0, 35, 1, .85); } }

.btn {
    display: inline-block; padding: 15px 40px; border: 2px solid var(--c-green); border-radius: 0; background: var(--c-green); color: #fff; cursor: pointer;
    font: 500 14px/25px var(--f-body); letter-spacing: .5px; text-transform: uppercase; transition: .4s all ease;
}
.btn:hover, .btn:focus-visible { background: #006b02; border-color: #006b02; text-decoration: none; }

/* ---------- Unterseiten ---------- */
.site-main { padding-bottom: 40px; }
.site-main--home { padding-bottom: 0; }
.crumbs { margin: 20.4px 0 0; font-size: 14px; line-height: 21px; padding: 4.5px 0; }
.crumbs a { color: var(--c-green); }
.entry { margin-top: 20.4px; }
.entry__content > :first-child { margin-top: 0; }
.entry h1, .entry h2, .entry h3, .entry h4, .entry h5, .entry h6 { color: var(--c-head); font-weight: 400; }
.entry h2 { font: 400 34px/44.2px var(--f-slab); margin: 24px 0 15px; }
.entry h3 { font: 400 44px/52.8px var(--f-mont); letter-spacing: .2px; margin: 0 0 15px; }
.entry h4 { font: 400 34px/44.2px var(--f-slab); margin: 24px 0 15px; }
.entry h5 { font: 400 24px/38px var(--f-mont); margin: 15px 0 9px; }
.entry h6 { font: 400 18px/25px var(--f-mont); margin: 15px 0 9px; }
.entry p { margin: 0 0 17px; }
.entry strong, .entry b { font-weight: 700; }
.entry .has-medium-font-size { font-size: 20px; line-height: 29px; }
.entry img { display: block; max-width: 100%; height: auto; margin: 0 auto 15px; }
.entry .aligncenter { margin-left: auto; margin-right: auto; }
.entry ul { list-style: none; margin: 0 0 25.5px 10.2px; padding: 0; }
.entry ul li { position: relative; line-height: 32px; }
.entry ul li::before { content: ''; position: absolute; left: -12px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--c-green); }
.entry ol { margin: 0 0 25.5px 24px; padding: 0; }

/* FAQ-Seite: etwas größerer Zeilenabstand */
.page-faqs .entry p { margin: 10px 0 17px; line-height: 30px; color: var(--c-head); }
.page-faqs .entry img { margin: 0 0 15px; width: 100%; }

/* Kontakt */
.entry--kontakt { margin-top: 20.4px; }
.kontakt__title { margin: 0 0 20px !important; }
.kontakt__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; margin: 60px 0 20px; }
.kontakt__cols h5 { font-size: 28px; line-height: 39.2px; margin: 15px 0; }
.kontakt__list { margin: 0 !important; font: 400 18px/25px var(--f-mont); }
.kontakt__list li { margin: 10px 0 0; line-height: 25px !important; overflow-wrap: anywhere; }
.kontakt__list li::before { content: none !important; }
.kontakt__list .icon { color: var(--c-head); margin-right: 4px; }
@media (max-width: 900px) {
    .entry h3, .kontakt__title { font-size: 30px; line-height: 1.2; }
    .kontakt__cols { grid-template-columns: minmax(0, 1fr); margin-top: 30px; }
    .entry h4, .entry h2 { font-size: 26px; line-height: 1.3; }
}

/* ---------- Galerie ---------- */
.gallery { column-count: 4; column-gap: 10px; margin: 0 0 20px; }
.gallery__item { display: block; margin: 0 0 10px; break-inside: avoid; overflow: hidden; background: #b8ccb8; }
.gallery__item img { display: block; width: 100%; height: auto; margin: 0; transition: transform .35s, opacity .35s; }
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.05); opacity: .92; }
@media (max-width: 900px) { .gallery { column-count: 3; } }
@media (max-width: 600px) { .gallery { column-count: 2; } }

.lb { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; background: rgba(0, 0, 0, .92); }
.lb.is-open { display: flex; }
.lb img { max-width: 94vw; max-height: 88vh; width: auto; height: auto; object-fit: contain; margin: 0; }
.lb button { position: absolute; width: 48px; height: 48px; background: none; border: 0; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; opacity: .8; }
.lb button:hover, .lb button:focus-visible { opacity: 1; }
.lb__close { top: 10px; right: 10px; }
.lb__prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 6px; top: 50%; transform: translateY(-50%); }
.lb__count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #ccc; font: 400 14px var(--f-mont); }

/* ---------- Karte ---------- */
.map { position: relative; margin: 0; }
.map__canvas { height: 648px; background: #e4e3df; z-index: 1; }
.map__canvas[hidden] { display: none; }
.map__consent { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 648px; padding: 30px 40px; background: #e4e3df; color: var(--c-head); }
.map__consent[hidden] { display: none; }
.map__consent p { margin: 0 0 .6em; max-width: 520px; line-height: 1.6; }
.map__consent .btn { margin-top: 10px; }
.map__link { font-size: 14px; }
@media (max-width: 900px) { .map__canvas, .map__consent { height: 420px; min-height: 420px; } }

/* ---------- Fuß ---------- */
.site-footer { background: linear-gradient(to right, var(--c-dark) 40%, #123513 100%); color: #fff; line-height: 20px; }
.site-footer__wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; width: 100%; max-width: 1200px; margin: 0 auto; padding: 31px 15px 28px; }
.site-footer a { color: var(--c-gold); }
.site-footer__copy { flex: 1; margin: 0; text-align: center; }


.to-top { position: fixed; right: 40px; bottom: 40px; z-index: 50; display: flex; align-items: center; justify-content: center; width: 55px; height: 55px; border-radius: 50%; background: #fff; color: var(--c-green); font-size: 34px; box-shadow: 0 1px 6px rgba(0, 0, 0, .25); }
.to-top[hidden] { display: none; }
.to-top:hover { text-decoration: none; background: #f0f0f0; }
@media (max-width: 600px) { .to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; } .site-footer__copy { flex-basis: 100%; text-align: left; } }

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