/* ==========================================================================
   Barrierefreiheit (Accessibility) & visueller Feinschliff
   WCAG 2.1 AA Konformitaet
   ========================================================================== */

/* Skip-Navigation
   ========================================================================== */

.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: #866843;
  color: #fff;
  padding: 8px 16px;
  z-index: 10000;
  font-weight: bold;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid #1a1a1a;
  outline-offset: 2px;
}

/* Focus-Styles
   ========================================================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #866843;
  outline-offset: 2px;
}

.uk-navbar-nav li a:focus-visible {
  outline: 3px solid #866843;
  outline-offset: 2px;
}

.uk-offcanvas-bar a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* Kontrast-Fixes
   #989796 -> #757474 (4.6:1 auf weiss, 4.6:1 weiss auf diesem Grau)
   ========================================================================== */

#home_behandlungen {
  background: #757474;
}

#jetpeel_gallerie {
  background: #757474;
}

.boxen .box {
  background: #757474;
}

footer .facebook a {
  color: #757474;
}

/* DSGVO "mehr erfahren" Kontrast-Fix */
#cookie_banner-wrapper .switches .mehrerfahren {
  color: #b0b0b0;
}

/* Bild Aspect-Ratios & Konsistenz
   ========================================================================== */

/* Gallery: einheitliches 4:3 Format */
figure [uk-lightbox] img,
figure [uk-lightbox] .uk-inline img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  height: auto;
}

/* Jetpeel Gallery: 1:1 Format */
#jetpeel_gallerie figure img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  height: auto;
}

/* Headerbild: volle Breite, konsistentes Seitenverhaeltnis */
.headerbild .bild {
  width: 100%;
  height: auto !important;
  aspect-ratio: 16 / 5;
  min-height: 250px;
  max-height: 450px;
  background-size: cover !important;
  background-position: center !important;
}

@media (max-width: 959px) {
  .headerbild .bild {
    height: auto !important;
    aspect-ratio: 16 / 6;
    min-height: 200px;
    max-height: 350px;
  }
}

@media (max-width: 760px) {
  .headerbild .bild {
    height: auto !important;
    aspect-ratio: 16 / 9;
    min-height: 180px;
    max-height: 300px;
  }
}

/* Heading-Fixes (fuer umgestellte Tags)
   ========================================================================== */

/* Boxen: h3 ohne uk-h1, aber visuell gross */
.boxen .box .box-titel {
  font-size: 1.8rem;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 300;
}

/* Headerbild h1 behaelt gleichen Style wie vorher als p.titel */
.headerbild .overlay h1.titel {
  font-size: 1.7rem;
  line-height: 1.2;
  margin-bottom: 40px;
  margin-top: 0;
  font-weight: normal;
}

/* Overlay: sauber innerhalb des Headerbilds positionieren */
.headerbild .overlay {
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 600px;
  width: 90%;
  padding: 20px;
}

@media (max-width: 959px) {
  .headerbild .overlay {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    max-width: 100%;
    width: 100%;
    padding: 30px;
    text-align: center;
    background: #f8f8f8;
  }
}

/* Preise h2.titel behaelt gleichen Style */
#preise .bereich h2.titel {
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: normal;
}

/* ==========================================================================
   Visueller Feinschliff
   ========================================================================== */

/* Sanfte Uebergaenge auf allen interaktiven Elementen
   ========================================================================== */

a,
button,
.uk-button,
.uk-input,
.uk-textarea,
.uk-select,
.uk-checkbox,
.uk-radio {
  transition: all 0.2s ease;
}

/* ==========================================================================
   Header & Navigation -- Premium Redesign
   ========================================================================== */

header {
  background: #fff;
  border-bottom: none !important;
  height: auto !important;
  box-shadow: 0 1px 15px rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 100;
}

header .uk-padding-large {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

header .logo {
  height: 100px !important;
  width: auto;
  padding: 10px 0;
  transition: opacity 0.3s ease;
}

header .logo:hover {
  opacity: 0.8;
}

/* Desktop Navigation */
.uk-navbar-nav {
  margin-top: 0 !important;
  height: 100px;
  align-items: center;
}

.uk-navbar-nav li a {
  color: #1a1a1a !important;
  font-size: 13px !important;
  letter-spacing: 0.12em;
  text-transform: uppercase !important;
  padding: 0 18px !important;
  min-height: auto !important;
  border-bottom: 2px solid transparent !important;
  transition: all 0.3s ease;
  position: relative;
}

.uk-navbar-nav li a:hover {
  color: #866843 !important;
  border-bottom-color: #866843 !important;
}

.uk-navbar-nav li.is-active a {
  color: #866843 !important;
  border-bottom-color: #866843 !important;
}

/* Dropdown: zartes Gold-Glass -- hohe Spezifitaet noetig */
header .uk-navbar-dropdown,
.uk-navbar-container .uk-navbar-dropdown {
  background: rgba(255, 253, 248, 0.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 0 !important;
  box-shadow: 0 10px 40px rgba(134, 104, 67, 0.1), 0 1px 3px rgba(134, 104, 67, 0.08);
  border: 1px solid rgba(134, 104, 67, 0.12);
  border-top: 2px solid #866843;
  border-radius: 0 0 6px 6px;
  margin-top: 0;
}

header .uk-navbar-dropdown li,
header .uk-navbar-nav li .uk-navbar-dropdown li {
  padding: 0 !important;
  margin: 0 !important;
  transition: all 0.25s ease;
  background: transparent;
}

header .uk-navbar-dropdown li:hover,
header .uk-navbar-nav li .uk-navbar-dropdown li:hover {
  background: rgba(134, 104, 67, 0.08) !important;
}

header .uk-navbar-dropdown li a,
header .uk-navbar-nav li .uk-navbar-dropdown li a,
header .uk-navbar-nav > li .uk-navbar-dropdown .uk-nav li a {
  color: #555 !important;
  font-size: 12px !important;
  letter-spacing: 0.1em;
  text-transform: uppercase !important;
  padding: 11px 28px !important;
  border-bottom: none !important;
  border-color: transparent !important;
  display: block;
  min-height: auto !important;
  transition: color 0.25s ease;
}

header .uk-navbar-dropdown li a:hover,
header .uk-navbar-nav li .uk-navbar-dropdown li a:hover {
  color: #866843 !important;
}

/* Mobile Toggle */
header .uk-navbar-right .uk-hidden\@m a {
  color: #866843;
}

/* Mobile Menu (Off-Canvas) */
.uk-offcanvas-bar {
  background: #1a1a1a !important;
  border-left: none !important;
  padding: 40px 30px !important;
}

.uk-offcanvas-bar .uk-nav-primary li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.uk-offcanvas-bar .uk-nav-primary li:last-child {
  border-bottom: none;
}

.uk-offcanvas-bar .uk-nav-primary li a {
  color: #fff !important;
  font-size: 13px !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 0 !important;
  transition: color 0.2s ease;
}

.uk-offcanvas-bar .uk-nav-primary li a:hover {
  color: #866843 !important;
}

.uk-offcanvas-bar .uk-nav-primary li.is-active a {
  color: #866843 !important;
}

/* Mobile Sub-Menu */
.uk-offcanvas-bar .uk-nav-sub {
  padding-left: 20px;
}

.uk-offcanvas-bar .uk-nav-sub li {
  border-bottom: none;
}

.uk-offcanvas-bar .uk-nav-sub li a {
  font-size: 11px !important;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6) !important;
  padding: 10px 0 !important;
}

.uk-offcanvas-bar .uk-nav-sub li a:hover {
  color: #866843 !important;
}

/* Gallery: saubere Bild-Karten mit sanftem Hover
   ========================================================================== */

figure [uk-lightbox] .uk-inline {
  display: block;
  overflow: hidden;
  border-radius: 3px;
}

figure [uk-lightbox] .uk-inline img {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

figure [uk-lightbox] .uk-inline:hover img {
  transform: scale(1.03);
  opacity: 0.92;
}

/* Galerie-Grid: gleichmaessige Abstaende */
figure [uk-grid] {
  margin-top: 0;
}

figure [uk-grid] > div {
  margin-bottom: 15px;
}

/* Boxen: dezente Tiefe und abgerundete Ecken
   ========================================================================== */

.boxen .box {
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.boxen .box:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

/* Formulare: bessere Fehler-Darstellung
   ========================================================================== */

.uk-input.error,
.uk-textarea.error,
.uk-checkbox.error {
  border-color: #c33 !important;
  box-shadow: 0 0 0 2px rgba(204, 51, 51, 0.15);
}

p.error[role="alert"] {
  color: #c33;
  margin-top: 4px;
  font-size: 0.8rem;
}

/* Erfolgs-/Fehlerbalken: dezenterer Schatten, abgerundet */
.form_bar {
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.form_bar .closebtn {
  transition: opacity 0.2s ease;
}

.form_bar .closebtn:hover {
  opacity: 0.7;
}

/* Buttons: Hover-Effekt
   ========================================================================== */

.uk-button-primary {
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.uk-button-primary:hover {
  box-shadow: 0 2px 8px rgba(134, 104, 67, 0.3);
}

.uk-button-default {
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.uk-button-default:hover {
  background: #866843 !important;
  color: #fff !important;
  border-color: #866843 !important;
}

/* Preise: Tabellen-Feinschliff
   ========================================================================== */

#preise table {
  border-collapse: separate;
  border-spacing: 0;
}

#preise table thead th {
  border-bottom: 2px solid #866843;
  padding-bottom: 10px;
}

#preise .bereich {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid #ddd;
}

#preise .bereich:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

/* ==========================================================================
   Footer -- Premium Redesign
   ========================================================================== */

footer {
  background: #f7f6f4 !important;
  color: #1a1a1a !important;
  border-top: none !important;
  position: relative;
}

footer .uk-padding-large {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
}

/* Goldene Trennlinie oben */
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: #866843;
}

footer p,
footer li {
  color: #555;
  font-size: 0.9rem;
}

footer a {
  color: #866843 !important;
  transition: color 0.25s ease;
}

footer a:hover {
  color: #1a1a1a !important;
  opacity: 1;
}

/* Partner-Logos: individuell behandeln */
footer .elitelingerist {
  height: 55px;
  width: auto;
  object-fit: contain;
  margin-right: 15px;
  margin-bottom: 10px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

/* Logos: kein Filter noetig auf hellem Hintergrund */

footer .elitelingerist:hover {
  opacity: 1;
}

/* Facebook + Footermenu: sauber uebereinander rechtsbuendig */
footer .facebook {
  font-size: 1.6rem !important;
  margin-bottom: 12px;
  text-align: right;
}

footer .facebook a {
  color: #999 !important;
  transition: color 0.25s ease;
}

footer .facebook a:hover {
  color: #866843 !important;
}

/* Footer-Menu: direkt unter FB-Icon */
footer .footermenu {
  margin-top: 0;
  text-align: right;
}

footer .footermenu li {
  list-style: none;
  display: inline;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

footer .footermenu li a {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888 !important;
  position: relative;
  padding: 0 10px;
  transition: color 0.25s ease;
}

footer .footermenu li:first-child a {
  padding-left: 0;
}

footer .footermenu li a:hover {
  color: #866843 !important;
}

footer .footermenu li a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 10px;
  right: 10px;
  height: 1px;
  background: #866843;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

footer .footermenu li:first-child a::after {
  left: 0;
}

footer .footermenu li a:hover::after {
  transform: scaleX(1);
}

/* Branding-Ecke */
footer .afecke {
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

footer .afecke:hover {
  opacity: 0.8;
}

/* Kontaktleiste -- Dunkles Gold gewoelbt
   ========================================================================== */

.kontaktleiste {
  background: linear-gradient(180deg, #7a5f3a 0%, #866843 40%, #96784d 100%) !important;
  color: #fff !important;
  box-shadow:
    0 4px 15px rgba(134, 104, 67, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  border-top: none;
  border-bottom: none;
  position: relative;
}

.kontaktleiste .uk-padding-large {
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}

.kontaktleiste p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin: 0 !important;
}

.kontaktleiste i {
  color: rgba(255, 255, 255, 0.7);
  margin-right: 4px;
}

.kontaktleiste a {
  color: #fff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: border-color 0.2s ease;
}

.kontaktleiste a:hover {
  border-bottom-color: #fff;
  opacity: 1;
}

/* Anfahrt-Pfeil dezenter */
.kontaktleiste a span {
  font-size: 0.7rem !important;
  color: rgba(255, 255, 255, 0.7);
  position: static !important;
  left: auto !important;
  transform: none !important;
  top: auto !important;
  line-height: 1 !important;
}

/* ==========================================================================
   Behandlungen-Bereich -- Premium Glass
   ========================================================================== */

#home_behandlungen {
  background: rgba(134, 104, 67, 0.04) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #1a1a1a !important;
  border-top: 1px solid rgba(134, 104, 67, 0.1);
  border-bottom: 1px solid rgba(134, 104, 67, 0.1);
}

#home_behandlungen .uk-padding-large {
  padding-top: 80px !important;
  padding-bottom: 80px !important;
}

#home_behandlungen h2 {
  color: #866843 !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

/* Zentrierte Ueberschrift mit Linien */
#home_behandlungen .uk-text-center {
  position: relative;
}

#home_behandlungen h2::before,
#home_behandlungen h2::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40px;
  height: 1px;
  background: rgba(134, 104, 67, 0.4);
}

#home_behandlungen h2::before {
  right: calc(100% + 15px);
}

#home_behandlungen h2::after {
  left: calc(100% + 15px);
}

#home_behandlungen .behandlungen {
  max-width: 1000px;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
  column-gap: 40px;
}

#home_behandlungen .behandlungen p {
  color: #444 !important;
  font-size: 0.95rem !important;
  padding: 9px 0;
  margin: 0;
  border-bottom: 1px solid rgba(134, 104, 67, 0.08);
  transition: all 0.2s ease;
  white-space: nowrap;
  text-align: left;
  break-inside: avoid;
}

#home_behandlungen .behandlungen p:hover {
  color: #866843 !important;
  padding-left: 5px;
}

#home_behandlungen .behandlungen i {
  color: #866843;
  font-size: 0.8rem;
  margin-right: 6px;
  opacity: 0.7;
}

/* Accordion: sanfter Uebergang
   ========================================================================== */

.uk-accordion-title {
  transition: color 0.2s ease;
}

.uk-accordion-content {
  transition: opacity 0.2s ease;
}

/* Map-Hinweis: sauberer
   ========================================================================== */

.map_disabled_text {
  border-radius: 4px;
  border-color: #b0b0b0;
}

/* Downloads: Icon-Farbe passend zum Theme
   ========================================================================== */

ul.downloads li a {
  transition: color 0.2s ease;
}

ul.downloads li a:hover {
  color: #866843;
}

/* Slideshow: Navigation sichtbarer
   ========================================================================== */

[uk-slidenav-previous],
[uk-slidenav-next] {
  transition: opacity 0.25s ease;
}

/* Bilder generell: sanftes Einblenden beim Lazy-Load
   ========================================================================== */

img[loading="lazy"] {
  opacity: 0;
  animation: fadeInImg 0.4s ease forwards;
}

@keyframes fadeInImg {
  to {
    opacity: 1;
  }
}

/* Ueber Mich: Bild links, Text rechts
   ========================================================================== */

.ueber-mich {
  background: #fff;
}

.ueber-mich .uk-padding-large {
  padding-top: 80px;
  padding-bottom: 80px;
}

.ueber-mich-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 60px;
  align-items: start;
}

.ueber-mich-bild img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.ueber-mich-text {
  padding-top: 10px;
}

.ueber-mich-text p:first-child strong {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #866843;
  margin-bottom: 8px;
}

.ueber-mich-text h2 {
  font-size: 1.6rem;
  line-height: 1.35;
  color: #866843;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 20px;
}

.ueber-mich-text h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background: #866843;
}

.ueber-mich-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 1em;
}

.ueber-mich-text p:last-child {
  font-style: italic;
  color: #866843;
}

@media (max-width: 959px) {
  .ueber-mich-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ueber-mich-bild {
    max-width: 400px;
    margin: 0 auto;
  }

  .ueber-mich .uk-padding-large {
    padding-top: 50px;
    padding-bottom: 50px;
  }
}

@media (max-width: 640px) {
  .ueber-mich-bild {
    max-width: 300px;
  }

  .ueber-mich-text h2 {
    font-size: 1.3rem;
  }
}

/* Responsive Feinschliff
   ========================================================================== */

@media (max-width: 959px) {
  .uk-padding-large {
    padding-left: 25px;
    padding-right: 25px;
  }

  /* Header: kompakter auf Mobil */
  header .logo {
    height: 55px !important;
  }

  /* Footer responsive */
  footer .elitelingerist {
    height: 45px;
    margin-bottom: 10px;
  }

  footer .facebook {
    text-align: left !important;
    margin-bottom: 8px;
  }

  footer .footermenu {
    text-align: left !important;
  }

  footer .footermenu li a {
    padding: 0 8px 0 0 !important;
  }

  footer .footermenu li a::after {
    left: 0 !important;
    right: 0;
  }

  /* Kontaktleiste responsive */
  .kontaktleiste {
    text-align: center;
  }
}

@media (max-width: 640px) {
  figure [uk-lightbox] .uk-inline img {
    border-radius: 2px;
  }

  footer .footermenu li {
    display: block !important;
    margin-bottom: 8px;
  }

  footer .footermenu li a {
    font-size: 11px;
  }
}
