/* Karens Waldschweine – Nachbau der Wix-Seite (Maße aus original/measure, original/extract).
   Desktop: 980-px-Raster, absolut gesetzt. Mobil: 320-px-Layout (html.mobile, viewport=320). */
@import url(fonts/fonts.css);

html, body { margin: 0; padding: 0; }
body { background: rgb(122, 143, 86); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* Bildlaufleiste immer zeigen wie bei Wix – sonst springt die Seite zwischen kurzen und langen Seiten seitlich */
html:not(.mobile) body { min-width: 980px; overflow-x: hidden; overflow-y: scroll; }
*, *::before, *::after { box-sizing: border-box; }

/* Hintergrundfoto, fest stehend wie bei Wix */
.bgimg { position: fixed; inset: 0; z-index: -1; background: rgb(122, 143, 86) url(img/wald-1920.jpg) center / cover no-repeat; }
@media (min-width: 1921px) { .bgimg { background-image: url(img/wald-2880.jpg); } }
html.mobile .bgimg { background-image: url(img/wald-1000.jpg); bottom: auto; height: calc(100vh + 80px); }  /* wie Wix: Bildschirmhöhe + 80 px */

.m { display: none; }
html.mobile .d { display: none; }
html.mobile .m { display: block; }

/* ---------- Desktop-Kopf ---------- */
.hd { position: relative; height: 100px; }
/* Wix: 1547 px breit, links abgeschnitten, sobald das Fenster schmaler ist. Hier mittig und mit mind. 30 px
   Abstand zum Rand (+ 20 px für die Bildlaufleiste): Schrift und Breiten schrumpfen gemeinsam, ab 1627 px Originalgröße. */
.hd ul { position: absolute; top: 19px; left: 50%; transform: translateX(-50%); height: 50px; margin: 0; padding: 0; list-style: none;
  font-size: min(20px, calc((100vw - 80px) * 0.012928));
  display: flex; background: rgb(238, 232, 216); }
.hd li { flex: none; height: 50px; text-align: center; }
.hd li + li { border-left: 1px solid rgb(215, 211, 198); }
.hd a { display: block; height: 50px; font: 1em/50px 'futura-lt-w01-book', sans-serif; color: rgb(105, 105, 105);
  text-decoration: none; white-space: nowrap; }
.hd a:hover, .hd a[aria-current] { color: rgb(0, 0, 0); }

/* ---------- Leinwand ---------- */
.cv { position: relative; margin: 0 auto; }
.cv-d { width: 980px; }
.cv-m { width: 320px; }
.cv > * { position: absolute; }
.clip { overflow: hidden; }
.clip > * { position: absolute; }
.fbox { z-index: 1; }
.rt, .kform, .ico { z-index: 2; }

.box .l1, .box .l2, .box .dv, .fbox .f1, .fbox .f2 { position: absolute; left: 0; right: 0; }
.box .l1, .box .l2, .fbox .f1, .fbox .f2 { top: 0; bottom: 0; }
.box .l1 { background: rgba(230, 222, 202, 0.25); }
.box .l2 { background: rgba(230, 222, 202, 0.81); }
.box .dv { background-size: 100% 100%; background-repeat: no-repeat; background-position: 50% 100%; }
.box .dv-top { top: 0; transform: scale(1, -1); }
.box .dv-bot { bottom: 0; }
.fbox .f1 { background: rgba(0, 108, 109, 0.55); }
.fbox .f2 { background: rgba(230, 222, 202, 0.89); }

/* Rich Text: Grundstil wie der Wix-Textcontainer, Absätze tragen ihre Stile inline */
.rt { font: 10px/normal Arial, Helvetica, sans-serif; color: #000; overflow-wrap: break-word; word-wrap: break-word; }
.rt p, .rt ul, .rt ol { margin: 0; }
.rt ul, .rt ol { padding-left: 1.3em; }
.rt a { color: inherit; text-decoration: none; cursor: pointer; }

.pic { display: block; object-fit: cover; }
.ico svg { display: block; width: 100%; height: 100%; }

/* Galerie */
.gal { display: block; overflow: hidden; transition: transform .4s ease; }
.gal img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gal:hover, .gal:focus-visible { transform: scale(0.985); }

/* Leuchtkasten wie die Wix-Vollbildansicht */
.lb { position: fixed; inset: 0; z-index: 100; background: rgb(246, 249, 245); }
.lb[hidden] { display: none; }
.lb img { position: absolute; top: 74px; bottom: 74px; left: 80px; right: 80px; width: calc(100% - 160px); height: calc(100% - 148px); object-fit: contain; }
.lb button { position: absolute; z-index: 1; background: none; border: 0; padding: 0; cursor: pointer; }
.lb svg { display: block; width: 100%; height: 100%; fill: none; stroke: rgb(9, 20, 5); stroke-width: 1.4; }
.lb-x { top: 40px; right: 36px; width: 28px; height: 28px; }
.lb-fs { top: 36px; left: 40px; width: 28px; height: 28px; }
.lb-prev { left: 36px; top: calc(50% - 14px); width: 14px; height: 28px; }
.lb-next { right: 36px; top: calc(50% - 14px); width: 14px; height: 28px; }
html.mobile .lb img { top: 60px; bottom: 60px; left: 10px; right: 10px; width: calc(100% - 20px); height: calc(100% - 120px); }
html.mobile .lb-prev { left: 8px; }
html.mobile .lb-next { right: 8px; }
html.mobile .lb-x { top: 16px; right: 16px; width: 22px; height: 22px; }
html.mobile .lb-fs { display: none; }

/* Kontaktformular */
.kform .fld { position: absolute; }
.kform label { position: absolute; top: 0; left: 0; display: block; padding: 0 20px 0 2px;
  font: 14px/14px 'avenir-lt-w01_35-light1475496', sans-serif; color: rgb(9, 20, 5); }
.kform input, .kform textarea { position: absolute; left: 0; bottom: 0; width: 100%; margin: 0; border-radius: 0;
  background: rgb(246, 249, 245); border: 1px solid rgb(9, 20, 5); color: rgb(9, 20, 5);
  font: 14px/19.6px 'avenir-lt-w01_35-light1475496', sans-serif; -webkit-appearance: none; appearance: none; }
.kform input { height: 37px; padding: 3px 3px 3px 10px; }
.kform textarea { height: 86px; padding: 10.5px 10px 3px; resize: none; }
.kform button { position: absolute; background: rgb(3, 87, 114); border: 1px solid rgb(3, 87, 114); border-radius: 0; cursor: pointer;
  color: rgb(246, 249, 245); font: 14px/19.6px 'avenir-lt-w01_35-light1475496', sans-serif; padding: 0; }
.kform button[disabled] { opacity: .6; cursor: default; }
.kform .hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.kform .fmsg { position: absolute; margin: 0; font: 15px/18px 'avenir-lt-w01_35-light1475496', sans-serif; color: rgb(3, 87, 114); }
/* Desktop: links neben dem Send-Knopf (Knopf bei left 322 / top 286, 117×36) */
.cv-d .kform .fmsg { left: 18px; top: 286px; width: 290px; min-height: 36px; display: flex; align-items: center; }
.kform .fmsg.err { color: rgb(160, 30, 30); }
.kform .fdone { display: none; position: absolute; inset: 0; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px; text-align: center; background: rgba(246, 249, 245, 0.7); border: 1px solid rgba(9, 20, 5, 0.3);
  font: 16px/1.5 'poppins-extralight', poppins, sans-serif; color: rgb(9, 20, 5); }
.kform .fdone p { margin: 0 0 14px; }
.kform .fdone .fdone-t { font-size: 24px; line-height: 1.3; color: rgb(3, 87, 114); }
.kform .fdone .fdone-new { position: static; width: auto; height: auto; padding: 8px 18px; font-size: 14px; }
.kform.sent .fld, .kform.sent > button[type="submit"], .kform.sent .fmsg { display: none; }
.kform.sent .fdone { display: flex; }
.cv-m .kform .fdone { bottom: 40px; }
.cv-m .kform label { font-size: 16px; line-height: 16px; }
.cv-m .kform input, .cv-m .kform textarea { font-size: 15px; line-height: 21px; }
.cv-m .kform input { height: 39px; }
.cv-m .kform textarea { height: 85px; padding-top: 11.25px; }
.cv-m .kform .fmsg { left: 10px; right: 10px; top: 346px; font-size: 14px; line-height: 18px; text-align: center; }  /* Mobil: zwischen Nachrichtenfeld (bis 342) und Knopf (ab 392) */

/* ---------- Mobilkopf und Menü ---------- */
.mh { position: relative; height: 70px; }
.burger { position: absolute; left: 259px; top: 10px; width: 50px; height: 50px; padding: 0; border: 0; border-radius: 40px;
  background: rgb(230, 222, 202); cursor: pointer; z-index: 60; }
.burger span { position: absolute; height: 2px; background: rgb(46, 37, 31); transition: transform .3s ease, opacity .2s ease; }
.burger .b1 { left: 14px; top: 15px; width: 11px; }
.burger .b2 { left: 25px; top: 15px; width: 11px; }
.burger .b3, .burger .b4 { left: 14px; top: 24px; width: 22px; }
.burger .b5 { left: 14px; top: 33px; width: 11px; }
.burger .b6 { left: 25px; top: 33px; width: 11px; }
.menu-open .burger { position: fixed; }
.menu-open .burger .b1, .menu-open .burger .b2, .menu-open .burger .b5, .menu-open .burger .b6 { opacity: 0; }
.menu-open .burger .b3 { transform: rotate(45deg) scaleX(.77); }
.menu-open .burger .b4 { transform: rotate(-45deg) scaleX(.77); }
.mmenu { position: fixed; inset: 0; z-index: 50; background: rgb(246, 249, 245); overflow-y: auto; }
.mmenu[hidden] { display: none; }
.mmenu ul { margin: 58px 0 0 20px; padding: 0; width: 285px; list-style: none; }
.mmenu a { display: block; height: 56px; font: 700 16px/56px 'poppins-extralight', poppins, sans-serif; color: rgb(9, 20, 5);
  text-align: center; text-decoration: none; }
.mmenu a[aria-current] { color: rgb(3, 87, 114); }
.menu-open { overflow: hidden; }

/* ---------- Textseiten ohne Wix-Vorlage (Impressum, Datenschutz): Kasten wächst mit dem Inhalt ---------- */
.cv.doc { height: auto; }
.cv.doc > * { position: relative; }
.dbox { width: 100%; }
.dbox .dlogo { position: absolute; z-index: 1; }
.doctext { position: relative; z-index: 1; color: rgb(9, 20, 5); font-family: 'poppins-extralight', poppins, sans-serif; overflow-wrap: break-word; }
.doctext h1 { margin: 0 0 30px; font-weight: 400; text-align: center; }
.doctext h2 { margin: 28px 0 6px; font-weight: 700; }
.doctext p { margin: 0 0 12px; }
.doctext a { color: inherit; text-decoration: underline; }
.doctext strong { font-weight: 700; }
.doctext .stand { margin-top: 28px; font-size: .9em; }
.cv-d .doctext { padding: 277px 60px 140px; font-size: 18px; line-height: 1.6; }
.cv-d .doctext h1 { font-size: 27px; line-height: 37.8px; }
.cv-d .doctext h2 { font-size: 20px; line-height: 1.4; }
.cv-m .doctext { padding: 191px 20px 70px; font-size: 15px; line-height: 1.55; }
.cv-m .doctext h1 { font-size: 20px; line-height: 28px; margin-bottom: 20px; }
.cv-m .doctext h2 { font-size: 16px; line-height: 1.4; }
.ffl { width: 100%; }
.ffl > .rt { position: absolute; }
.cv-m .ffl { margin-left: 10px; width: 300px; }
.cv-d.doc { padding-bottom: 1px; }
