/* =====================================================================
   Holzbau Hellenkamp – Ergaenzungen zum Webflow-Stylesheet
   ---------------------------------------------------------------------
   Die Gestaltung kommt unveraendert aus dem Webflow-Export
   (css/holzbau-hellenkamp.webflow.css). Diese Datei ergaenzt nur, was
   Webflow nicht kannte: Absaetze aus dem Editor, Kontaktformular,
   Lightbox, Karte mit Zwei-Klick-Loesung, Stellenanzeigen, KI-Kennzeichnung
   und die Bearbeiten-Leiste fuer angemeldete Personen.

   Farben wie im Webflow-Export (:root dort): --braun, --braun-ii, --beige,
   --orange, --green, --weiss.

   Inhalt
     01  Schriften (lokal, ohne Google)
     02  Texte aus dem Editor
     03  Knoepfe, Hinweise, Kleinkram
     04  Galerie und Lightbox
     05  Kontaktformular
     06  Karte mit Zwei-Klick-Loesung
     07  Stellenanzeigen und Galerie-Uebersicht
     08  KI-Kennzeichnung (Art. 50 EU-KI-Verordnung)
     09  Bearbeiten-Leiste und Stifte (nur angemeldet)
     10  Meldungen
     11  Bewegung reduzieren, Druck
   ===================================================================== */

/* =====================================================================
   01  SCHRIFTEN
   Die Navigation nutzt im Webflow-CSS "Open Sans" (bisher von Google
   geladen). Dieselbe Schrift liegt lokal in fonts/ - kein Abruf bei Google.
   ===================================================================== */
@font-face {
  font-family: "Open Sans";
  src: url("../../fonts/open-sans-v40-latin-regular.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../../fonts/open-sans-v40-latin-700.woff2") format("woff2");
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}

/* =====================================================================
   02  TEXTE AUS DEM EDITOR
   Wf::richtext() setzt die Webflow-Absatzklasse auf jeden Absatz. Listen
   und Zwischenueberschriften bekommen zusaetzlich .hk-rt.
   ===================================================================== */
.wf-rt > p { margin: 0; }
.wf-rt > * + * { margin-top: 1.6em; }
.hk-rt { text-align: left; width: 100%; }
ul.hk-rt, ol.hk-rt { padding-left: 1.4em; }
ul.hk-rt li, ol.hk-rt li { border-bottom: 0; padding-top: 0; margin-bottom: .35em; }
h2.hk-rt, h3.hk-rt, h4.hk-rt {
  font-family: "Open Sans V 40 Latin 700", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.4;
  text-align: center;
}
h2.hk-rt { font-size: 20px; }
h3.hk-rt, h4.hk-rt { font-size: 18px; }
blockquote.hk-rt { border-left: 4px solid var(--orange); font-style: italic; }
.hero-wrapper-two strong, .hero-wrapper-two b { font-family: "Open Sans V 40 Latin 700", Arial, sans-serif; font-weight: 700; }

/* Telefonnummern in der Anschrift: anklickbar, aber wie Text */
.hk-tel { color: inherit; text-decoration: none; }
.hk-tel:hover { text-decoration: underline; }

/* =====================================================================
   03  KNOEPFE, HINWEISE, KLEINKRAM
   ===================================================================== */
button.button-primary { border: 0; cursor: pointer; }
.button-primary.hk-knopf--hell { background-color: var(--beige); color: var(--braun); }
.button-primary.hk-knopf--hell:hover { background-color: var(--orange); color: #fff; }
.hk-knoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 20px 0; }
.hk-klein { color: var(--braun-ii); font-size: 14px; line-height: 1.5; margin: 10px 0 0; }
.hk-zurueck { text-align: center; margin: 50px 0 0; font-size: 16px; }
.hk-hinweis {
  max-width: 750px; margin: 0 auto; padding: 24px 28px;
  background: #fff8ea; border-left: 4px solid var(--orange);
  color: var(--braun-ii); font-size: 17px; line-height: 160%; text-align: center;
}
.hk-hinweis p { margin: 0; }
.hk-band--weiss { background-color: var(--weiss); }
.hk-bildreihe { padding: 40px 0; background: var(--weiss); }
.hk-textblock { background: var(--weiss); }
.hk-redaktion { padding-top: 0; }

/* =====================================================================
   04  GALERIE UND LIGHTBOX
   Raster wie die Webflow-Sammlung (.collection-list-wrapper, .image-5).
   ===================================================================== */
.hk-galerie__link { display: block; position: relative; cursor: zoom-in; line-height: 0; }
.hk-galerie__link .image-5 { transition: opacity .2s ease; }
.hk-galerie__link:hover .image-5, .hk-galerie__link:focus-visible .image-5 { opacity: .85; }
.hk-galerie__link:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.hk-galerie__knopf { margin-top: 30px; }
.collection-list-wrapper .w-dyn-items { display: block; }

.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: clamp(4rem, 8vw, 5.5rem) clamp(4.2rem, 9vw, 7rem); background: rgba(35, 22, 14, .94);
}
.lightbox[hidden] { display: none; }
.lightbox__stage { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-width: 0; min-height: 0; }
.lightbox__stage img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; background: #2a1b12; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .85); }
.lightbox__nav, .lightbox__close {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  border: 2px solid rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .12); color: #fff; padding: 0;
  transition: background .18s, border-color .18s;
}
.lightbox__nav:hover, .lightbox__close:hover { background: var(--orange); border-color: var(--orange); }
.lightbox__nav .icon, .lightbox__close .icon { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.lightbox__nav--prev { left: clamp(.7rem, 2.5vw, 1.8rem); top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev .icon { transform: rotate(180deg); }
.lightbox__nav--next { right: clamp(.7rem, 2.5vw, 1.8rem); top: 50%; transform: translateY(-50%); }
.lightbox__close { right: clamp(.7rem, 2.5vw, 1.8rem); top: clamp(.7rem, 2.5vw, 1.8rem); }
.lightbox__nav[disabled], .lightbox__nav[aria-disabled="true"] { opacity: .35; cursor: default; }
.lightbox__caption {
  position: absolute; left: 50%; bottom: clamp(1rem, 3.5vw, 2.2rem); transform: translateX(-50%);
  max-width: min(70ch, 92%); text-align: center; color: #fff; font-size: 15px; line-height: 1.4;
  background: rgba(0, 0, 0, .45); padding: .5rem 1rem;
}
.lightbox__caption:empty { display: none; }
.lightbox__counter { position: absolute; left: clamp(.7rem, 2.5vw, 1.8rem); top: clamp(1rem, 3vw, 2rem); color: rgba(255, 255, 255, .8); font-size: 14px; }
.lightbox::after {
  content: "Mit ← und → blättern · Esc schließt";
  position: absolute; left: 50%; top: clamp(.9rem, 3vw, 1.9rem); transform: translateX(-50%);
  color: rgba(255, 255, 255, .7); font-size: 13px; white-space: nowrap;
}
@media (max-width: 700px) { .lightbox::after { display: none; } }

/* =====================================================================
   05  KONTAKTFORMULAR
   Markup aus app/Views/frontend/partials/form.php
   ===================================================================== */
.hk-formular { position: relative; z-index: 50; background: var(--weiss); }
.hk-formular__box { max-width: 750px; margin: 0 auto; text-align: left; }
.hk-formular .form { display: grid; gap: 18px; }
.hk-formular .form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hk-formular .field { display: grid; gap: 6px; }
.hk-formular label {
  color: var(--braun); font-family: "Open Sans V 40 Latin 700", Arial, sans-serif; font-weight: 700;
  font-size: 14px; letter-spacing: 1px; text-transform: uppercase; margin: 0;
}
.hk-formular input[type="text"], .hk-formular input[type="email"], .hk-formular input[type="tel"],
.hk-formular input[type="number"], .hk-formular select, .hk-formular textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; margin: 0;
  border: 1px solid #d8c6a6; background: #fff; color: var(--braun-ii);
  font-family: "Open Sans V 40 Latin", Arial, sans-serif; font-size: 17px; line-height: 1.5;
  border-radius: 0; box-shadow: none;
}
.hk-formular textarea { min-height: 170px; resize: vertical; }
.hk-formular input:focus, .hk-formular select:focus, .hk-formular textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(238, 126, 35, .25);
}
.hk-formular .has-error input, .hk-formular .has-error textarea { border-color: #b3261e; }
.hk-formular .field__fehler { color: #b3261e; font-size: 14px; font-weight: 700; }
.hk-formular .check {
  display: flex; gap: 10px; align-items: flex-start; text-transform: none; letter-spacing: 0;
  font-family: "Open Sans V 40 Latin", Arial, sans-serif; font-weight: 400; font-size: 15px; line-height: 1.5; color: var(--braun-ii);
}
.hk-formular .check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--orange); flex: none; }
.hk-formular .check a { color: var(--braun); }
.hk-formular .form p small { color: var(--braun-ii); font-size: 14px; line-height: 1.5; }
.hk-formular .form-note { margin: 0; padding: 14px 18px; background: #e8f3ee; border-left: 4px solid var(--green); color: var(--braun); font-size: 16px; }
.hk-formular .form-note[hidden] { display: none; }
.hk-formular .form-note--fehler { background: #fdecea; border-left-color: #b3261e; color: #7a1c15; }
.hk-formular .form .button-primary { justify-self: start; }
@media (max-width: 767px) {
  .hk-formular .form .row { grid-template-columns: 1fr; }
  .hk-formular .form .button-primary { justify-self: stretch; text-align: center; }
}

/* =====================================================================
   06  KARTE MIT ZWEI-KLICK-LOESUNG
   Ersetzt das bisherige Cookie-Banner: Google Maps laedt erst nach Klick.
   ===================================================================== */
.hk-karte { position: relative; }
.hk-karte iframe { display: block; width: 100%; border: 0; }
.hk-karte--wartet {
  display: flex; align-items: center; justify-content: center; padding: 30px;
  background-color: #efe6d6;
  background-image: url("../../images/background_holz_tag.jpg");
  background-size: auto;
}
.hk-karte__hinweis {
  max-width: 560px; padding: 30px 34px; text-align: center;
  background: rgba(255, 255, 255, .95); box-shadow: 0 0 20px #00000040; color: var(--braun-ii);
  font-size: 16px; line-height: 160%;
}
.hk-karte__hinweis p { margin: 0 0 12px; }
.hk-karte__titel {
  font-family: "Cambo V 18 Latin", "Times New Roman", serif; font-size: 28px; line-height: 1.2;
  letter-spacing: 2px; text-transform: uppercase; color: var(--braun);
}

/* =====================================================================
   07  STELLENANZEIGEN UND GALERIE-UEBERSICHT
   ===================================================================== */
.hk-stellen { position: relative; z-index: 50; background: var(--weiss); }
.hk-stellen__etikett { display: inline-block; margin-bottom: 10px; }
.hk-stellen__knopf { margin-top: 30px; }
.hk-jobs { display: grid; gap: 20px; margin: 30px auto 0; max-width: 940px; text-align: left; }
.hk-jobs--karten { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.hk-job { display: grid; gap: 10px; align-content: start; padding: 26px 26px 28px; background: #fff; border: 1px solid #ecdcbf; border-top: 4px solid var(--orange); }
.hk-job__art { margin: 0; color: var(--orange); font-family: "Open Sans V 40 Latin 700", Arial, sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.hk-job__titel { margin: 0; font-family: "Cambo V 18 Latin", "Times New Roman", serif; font-weight: 400; font-size: 26px; line-height: 1.25; letter-spacing: 1px; }
.hk-job__titel a { color: var(--braun); text-decoration: none; font-family: inherit; }
.hk-job__titel a:hover { color: var(--orange); }
.hk-job__text, .hk-job__meta { margin: 0; color: var(--braun-ii); font-size: 16px; line-height: 160%; }
.hk-job__meta { font-size: 14px; opacity: .85; }
.hk-job .button-primary { justify-self: start; margin-top: 6px; }

.hk-stelle__raster { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 40px; text-align: left; }
.hk-stelle__text h2, .hk-stelle__fakten h2, .hk-stelle__fakten h3 {
  color: var(--braun); font-family: "Open Sans V 40 Latin 700", Arial, sans-serif; font-weight: 700;
  font-size: 18px; line-height: 1.4; letter-spacing: 2px; text-transform: uppercase; margin: 30px 0 10px;
}
.hk-stelle__text h2:first-child { margin-top: 0; }
.hk-stelle__bild { width: 100%; height: auto; margin-bottom: 20px; }
.hk-stelle__fakten { align-self: start; padding: 24px; background: #fff8ea; border-top: 4px solid var(--orange); color: var(--braun-ii); font-size: 16px; line-height: 160%; }
.hk-stelle__fakten h2 { margin-top: 0; }
.hk-stelle__fakten dl { margin: 0; }
.hk-stelle__fakten dl div { padding: 6px 0; border-bottom: 1px solid #ecdcbf; }
.hk-stelle__fakten dt { font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--braun); }
.hk-stelle__fakten dd { margin: 0; }
.hk-stelle__weitere { margin-top: 60px; }
@media (max-width: 767px) { .hk-stelle__raster { grid-template-columns: 1fr; } }

.hk-alben { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 20px; }
.hk-album { display: grid; gap: 8px; text-decoration: none; text-align: center; }
.hk-album__bild { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--beige); }
.hk-album__bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.hk-album:hover .hk-album__bild img { transform: scale(1.04); }
.hk-album__titel { justify-self: center; }

/* =====================================================================
   08  KI-KENNZEICHNUNG (Art. 50 EU-KI-Verordnung)
   img() setzt um KI-Bilder <span class="ki-bild">…<span class="ki-marke">.
   Die Marke sitzt unten rechts im naechsten positionierten Behaelter.
   ===================================================================== */
.ki-bild { display: contents; }
.ki-bild--inline { display: inline-block; position: relative; max-width: 100%; vertical-align: top; }
.ki-bild--inline img { display: block; max-width: 100%; height: auto; }
.ki-marke {
  position: absolute; bottom: .7rem; right: .7rem; z-index: 3;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .28rem .6rem .28rem .28rem; border-radius: 999px;
  background: rgba(30, 20, 13, .84); color: #fff;
  font-family: "Open Sans V 40 Latin", Arial, sans-serif; font-size: 12px; font-weight: 600; line-height: 1;
  font-style: normal; text-transform: none; text-decoration: none; letter-spacing: 0;
  white-space: nowrap; pointer-events: none;
}
.ki-marke__zeichen {
  display: grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: .3rem;
  background: #fff; color: var(--braun); font-size: 10px; font-weight: 800;
}
.img-flex, .w-slide, .hk-galerie__link, .collection-item, .hk-album__bild, .job-detail__image { position: relative; }
.hk-galerie__link .ki-bild { display: block; position: relative; }
.ki-texthinweis {
  display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 1rem;
  padding: .35rem .75rem .35rem .35rem; border-radius: 999px;
  background: #fff; border: 1px solid #ecdcbf; color: var(--braun-ii);
  font-size: 13px; font-weight: 600; line-height: 1.2;
}
.ki-texthinweis .ki-marke__zeichen { background: var(--braun); color: #fff; }

/* =====================================================================
   09  BEARBEITEN-LEISTE UND STIFTE (nur fuer angemeldete Personen)
   ===================================================================== */
.hk-rahmen { position: relative; }
.hk-stift {
  position: absolute; top: 14px; right: 14px; z-index: 90;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px 7px 9px; border-radius: 999px;
  background: var(--orange); color: #fff; text-decoration: none;
  font-family: "Open Sans V 40 Latin 700", Arial, sans-serif; font-size: 13px; font-weight: 700; line-height: 1;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .5);
  opacity: .9; transition: opacity .15s, transform .15s;
}
.hk-stift svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hk-stift:hover, .hk-stift:focus-visible { opacity: 1; transform: translateY(-1px); color: #fff; }
.hk-rahmen--anker > .hk-stift { top: 164px; }
.hk-rahmen--band > .hk-stift { top: 280px; }
.hk-rahmen:hover { outline: 2px dashed rgba(238, 126, 35, .55); outline-offset: -2px; }
body.hk-stifte-aus .hk-stift { display: none; }
body.hk-stifte-aus .hk-rahmen:hover { outline: 0; }
@media (max-width: 767px) { .hk-stift span { display: none; } .hk-stift { padding: 9px; } .hk-rahmen--anker > .hk-stift { top: 214px; } .hk-rahmen--band > .hk-stift { top: 330px; } }

.hk-leiste {
  position: fixed; left: 12px; bottom: 12px; z-index: 950;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: calc(100vw - 24px);
  padding: 6px; background: rgba(40, 26, 17, .94); color: #fff; border-radius: 12px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6);
  font-family: "Open Sans V 40 Latin", Arial, sans-serif; font-size: 13px; line-height: 1;
}
.hk-leiste__name { padding: 0 8px; opacity: .8; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hk-leiste__form { margin: 0; display: inline; }
.hk-leiste__knopf {
  display: inline-block; padding: 8px 11px; border: 0; border-radius: 8px; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none;
  font-family: inherit; font-size: 13px; line-height: 1;
}
.hk-leiste__knopf:hover, .hk-leiste__knopf:focus-visible { background: var(--orange); color: #fff; }
@media (max-width: 767px) {
  .hk-leiste { right: 8px; left: 8px; bottom: 8px; flex-wrap: nowrap; overflow-x: auto; gap: 4px; }
  .hk-leiste__name { display: none; }
  .hk-leiste__knopf { white-space: nowrap; padding: 8px 9px; }
}

/* =====================================================================
   10  MELDUNGEN
   ===================================================================== */
.hk-meldungen { position: relative; z-index: 60; max-width: 940px; margin: 20px auto; padding: 0 20px; }
.hk-meldung { margin: 0 0 10px; padding: 14px 18px; background: #fff8ea; border-left: 4px solid var(--orange); color: var(--braun); font-size: 16px; line-height: 1.5; }
.hk-meldung--success { background: #e8f3ee; border-left-color: var(--green); }
.hk-meldung--error { background: #fdecea; border-left-color: #b3261e; color: #7a1c15; }

/* =====================================================================
   11  BEWEGUNG REDUZIEREN, DRUCK
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  .hk-galerie__link .image-5, .hk-album__bild img, .hk-stift { transition: none; }
}
@media print {
  .hk-leiste, .hk-stift, .hk-karte, .w-slider-arrow-left, .w-slider-arrow-right, .w-slider-nav { display: none !important; }
  .section, .hero-leistunge-submen { position: static !important; }
}
