:root{--accent:#e0c37a;--muted:#6c6c6c;--navbar-initial-height:110px}
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;500;700;900&display=swap');
:root{
  --accent:#e0c37a;
  --muted:#6c6c6c;
  --navbar-height:80px;
  --navbar-mobile-height:64px;
}
*{box-sizing:border-box}
.navbar .nav-link{color:#333}
.navbar .nav-link svg{color:#333}
.navbar .container{position:relative}
.nav-spacer{display:none !important}
/* Make navbar fixed and add body padding to avoid overlap */
body{font-family:'Montserrat',system-ui,-apple-system,Segoe UI,Roboto,'Helvetica Neue',Arial; color:#222; background:#fff; padding-top:var(--navbar-current-height, var(--navbar-initial-height));overflow-x:hidden}
.navbar-brand{font-weight:800;letter-spacing:1px}
.hero{position:relative;overflow:hidden}
.hero .carousel-item{height:64vh;min-height:360px;background-size:cover;background-position:center}
.hero .overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0.35),rgba(0,0,0,0.45));display:flex;align-items:center;justify-content:center}
.hero h1{color:#fff;font-size:2.4rem;letter-spacing:2px;text-transform:uppercase}
.hero p.lead{color:rgba(255,255,255,0.9);max-width:900px}
.btn-appointment{background:linear-gradient(90deg,var(--accent),#d4af37);border:none;color:#fff;border-radius:24px;padding:8px 18px;font-weight:600}
/* button hover */
.btn-appointment:hover{filter:brightness(.97);transform:translateY(-2px);box-shadow:0 8px 28px rgba(0,0,0,0.12)}

.about-card img{max-width:100%}

.contact-on-home .form-control{border-radius:8px;box-shadow:none}
.contact-on-home .btn-appointment{border-radius:8px;padding:8px 18px}

.lead{color:var(--muted)}

.card{border:0}
.card .card-body{padding:1rem}
.card-title{font-weight:700}

.blogs .card {transition:transform .18s ease,box-shadow .18s ease}
.blogs .card:hover{transform:translateY(-6px);box-shadow:0 6px 30px rgba(0,0,0,0.12)}

/* Contact box */
.contact-info p{margin:0 0 .5rem 0;color:var(--muted)}

footer{font-size:.9rem}

/* navbar icons */
.nav-link svg{display:inline-block;vertical-align:middle}
.nav-link{color:inherit}
/* nav links above centered logo */
.navbar .nav-link{position:relative;z-index:1120}
/* ensure alerts are visible and not hidden under navbar */
.alert{margin-top:1.5rem}
.main-content{padding-top:1.5rem}
/* ensure hero doesn't sit under navbar */
.hero{margin-top:0}
.hero .carousel-item{height:calc(100vh - var(--navbar-current-height, var(--navbar-initial-height)));min-height:420px}
.hero .carousel-item img{width:100%;height:100%;object-fit:cover}
/* smooth any height changes to avoid jumpy hero when navbar height changes */
.hero .carousel-item{transition:height .22s ease}

/* carousel fade transition support */
.carousel.carousel-fade .carousel-item{opacity:0;transition:opacity .6s ease}
.carousel.carousel-fade .carousel-item.active{opacity:1}
/* ensure carousel controls are on top and visible */
.carousel-control-prev,.carousel-control-next{z-index:1130}
.carousel-control-prev-icon,.carousel-control-next-icon{filter:invert(1) drop-shadow(0 1px 0 rgba(0,0,0,.35));background-size:100% 100%}
.hero .carousel-inner, .hero .carousel-item{width:100%;left:0;margin-left:0;background-size:cover;background-position:center}
/* smooth slide transitions for carousel items */
.carousel.slide .carousel-item{
  transition:transform .7s cubic-bezier(.2,.9,.2,1);
}
.hero .overlay{align-items:center;justify-content:center;padding-top:0}

/* logo sizing and center */
#navbar .navbar-toggler{position:relative;z-index:1130}
.navbar-brand-center{position:relative;left:auto;top:auto;transform:none;z-index:1150}
/* logo scaling: respect image aspect ratio; force exact size to override browser defaults */
.navbar-brand-center img#site-logo,
.navbar-brand-center > img#site-logo,
#site-logo{
  width:160px !important;
  height:auto !important;
  max-width:180px !important;
  max-height:120px !important;
  object-fit:contain;
  transition:transform .22s ease, opacity .18s ease;
  display:block;
  margin:0 auto;
  background:transparent;
  transform-origin:center center;
}
#site-logo.small{transform:none !important;opacity:1 !important}
/* ensure site logo z-index and positioning */
#site-logo, #site-logo-mobile, #site-logo-inline{z-index:1150;position:relative}
/* ensure site logo always sits above the nav-row */
#site-logo{z-index:4000 !important;position:relative !important}
@media (max-width:991px){
  #site-logo{width:90px !important;height:auto !important;max-height:60px}
}

/* inline small logo shown in navbar on mobile (always visible) */
#site-logo-inline{width:140px;height:auto;max-height:100px;object-fit:contain;display:block;pointer-events:none;z-index:1130}
@media (max-width:576px){
  #site-logo-inline{width:130px;max-height:90px}
}

/* mobile collapsed menu logo */
#site-logo-mobile{width:140px;max-height:80px;object-fit:contain}
@media (max-width:576px){
  #site-logo-mobile{width:120px;max-height:70px}
}

/* ensure desktop brand hidden on small screens respects centering */
.navbar-brand-center{display:block}
.navbar-brand-center.d-none{display:none}

/* tighten navbar link spacing */
.navbar .navbar-nav{gap:.8rem; margin:0 auto !important; justify-content:center !important}
.navbar .nav-link{padding:.25rem .4rem;white-space:nowrap}
*{box-sizing:border-box}

/* small social icon (instagram) in navbar */
.nav-social img{width:20px;height:20px;display:block;object-fit:contain;margin-left:.4rem}
.nav-social img{filter:none}

@media (max-width:576px){
  .nav-social img{width:18px;height:18px}
}

/* Mobile: make the collapsed menu a centered panel under the navbar */
@media (max-width:991px){
  .navbar-collapse{
    position:fixed;
    /* sit exactly under the navbar so no hero sliver appears when opened */
    top:calc(var(--navbar-initial-height));
    left:0;
    right:0;
    background:#fff;
    padding:1rem 0 2rem 0;
    z-index:2140;
    text-align:center;
  }
  .navbar-collapse .navbar-nav{flex-direction:column;gap:1.2rem;align-items:center}
  .navbar-collapse .nav-item .nav-link{padding:.7rem 1rem;font-size:1.05rem}
  /* ensure the mobile logo inside collapse is nicely spaced */
  .d-lg-none.w-100.text-center.mb-2{margin-top:6px}
  /* center instagram in mobile collapse */
  .navbar-collapse .nav-social img{margin:0 auto;display:block}
}

/* hero content slide-in animation */
.carousel-item .hero-content{transform:translateY(18px);opacity:0;transition:transform .6s cubic-bezier(.2,.9,.2,1),opacity .6s ease}
.carousel-item.active .hero-content{transform:none;opacity:1}
.carousel-item .hero-content h1{transition:transform .5s ease,opacity .5s ease}
.carousel-item .hero-content p{transition:transform .55s ease,opacity .55s ease}

/* push desktop left nav items away from centered logo to avoid overlap */
.navbar-nav.d-none.d-lg-flex{margin-right:0}

/* shift right-side actions further left so whole nav appears more left on desktop */
.d-none.d-lg-flex.align-items-center.ms-2{margin-left:0}

/* Desktop: position left nav and right actions absolutely so they sit flush to sides and avoid overlap
   This gives precise control and moves items further left while keeping the logo centered. */
@media (min-width:992px){
  /* hide previous desktop nav (we render a fixed centered desktop nav row instead) */
  .navbar .navbar-nav.d-none.d-lg-flex{display:flex !important}
  /* desktop socials stay pinned top-right */
  .navbar .d-none.d-lg-flex.align-items-center.ms-2{position:absolute;right:-200px;top:50%;transform:translateY(-50%);} /* pulled more inward */
}

/* ensure toggler sits above overlay elements so it's always clickable */
.navbar-toggler{position:relative;z-index:3000}

/* ensure inline logo on mobile sits above the collapse and doesn't overlap hero */
.pointer-events-none{pointer-events:none}

/* ensure appointment button in header looks consistent */
.btn-appointment{padding:8px 16px;border-radius:20px}
.btn-appointment.me-3{margin-right:.8rem}
/* small variant used inline in desktop nav */
.btn-appointment-small{
  background:transparent;
  border:none;
  padding:6px 12px;
  border-radius:0;
  color:inherit;
  font-weight:400;
  box-shadow:none;
}

/* Hero gold button used to match blog 'Lesen' small outline markup but styled gold */
.btn-hero-gold{
  /* gold outlined small button (like the blog 'Lesen' control) */
  background:transparent !important;
  border:1px solid var(--accent) !important;
  color:var(--accent) !important;
  padding:6px 10px !important;
  border-radius:6px !important;
  font-weight:500 !important;
  box-shadow:none !important;
}
.btn-hero-gold:hover{background:var(--accent) !important;color:#fff !important;transform:none}

/* make hero full-bleed */
.hero{position:relative;width:100vw;left:50%;right:50%;margin-left:-50vw;margin-right:-50vw}
.navbar{position:fixed;top:0px;left:0;right:0;z-index:2600;height:var(--navbar-initial-height);padding-top:0px;padding-bottom:20px;background:#fff;border-bottom:0;box-shadow:none;overflow:visible;transition:none}
.navbar.scrolled{ /* scrolled state kept but not animated */ padding-top:22px;padding-bottom:22px}

/* Brand stack: logo with site title underneath (desktop only) */
#site-logo{transition:none;width:180px !important}
#site-logo.small{transform:none;opacity:1}
.navbar-brand-center .brand-stack{display:flex;flex-direction:column;align-items:center;gap:4px}
.site-title{font-size:1.25rem;font-weight:800;letter-spacing:2px;color:#111;text-transform:uppercase;opacity:1;transform:none;transition:none;margin-top:2px}

/* slightly reduce top padding so logo/title sit a bit higher inside the navbar */
.navbar-brand-center{padding-top:4px}

/* shrink logo when scrolled (smooth) */
#site-logo{transition:none;width:180px !important}
#site-logo.small{transform:none;opacity:1}

/* Desktop expanded state: place nav items centered below the brand */
@media (min-width:992px){
  .navbar:not(.scrolled) .container{display:flex;flex-direction:column;align-items:center;gap:4px;padding-top:10px;padding-bottom:10px}
  .navbar:not(.scrolled) .navbar-brand-center{position:relative;left:auto;top:auto;transform:none}
  .navbar:not(.scrolled) .navbar-nav.d-none.d-lg-flex{margin-top:6px;transform:none}
  .navbar:not(.scrolled) .navbar-nav.d-none.d-lg-flex{position:static;transform:none;top:auto;left:auto;display:flex;justify-content:center;margin:0;gap:2.2rem;width:auto;}
  /* pin social icons top-right even in expanded state so they don't affect centering */
  .navbar:not(.scrolled) .d-none.d-lg-flex.align-items-center.ms-2{position:absolute;right:20px;top:18px;transform:none}
  /* place brand above the nav items */
  .navbar:not(.scrolled) .navbar-brand-center{order:1}
  .navbar:not(.scrolled) .navbar-nav.d-none.d-lg-flex{order:2}
}

/* hide the site title when scrolled */
.navbar.scrolled .site-title{opacity:0;transform:translateY(-8px);pointer-events:none}

/* Ensure desktop nav participates in centered column flow and not positioned off-screen */
@media (min-width:992px){
  .navbar .navbar-nav.d-none.d-lg-flex{position:static !important;margin:0 auto !important;display:flex !important;justify-content:center !important;transform:none !important}
  .d-none.d-lg-flex.align-items-center.ms-2{z-index:3200}
}

@media (min-width:992px){
  /* Expanded (top of page) header: taller, brand + title centered, nav row below.
     We operate on the collapse container because the nav lists live inside it. */
  .navbar:not(.scrolled) .collapse.navbar-collapse{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:12px;
    padding-top:18px;
    padding-bottom:12px;
    width:100%;
  }
  .navbar:not(.scrolled) .navbar-brand-center{position:relative;left:auto;top:auto;transform:none;display:block}
  .navbar:not(.scrolled) .navbar-nav.d-none.d-lg-flex{
    position:static;
    transform:none;
    top:auto;
    left:auto;
    display:flex;
    justify-content:center;
    margin:0;
    gap:2.2rem;
    width:auto;
  }

  /* increase click area for desktop nav links so they sit comfortably below the brand */
  .navbar .navbar-nav.d-none.d-lg-flex .nav-link{padding:8px 10px;font-size:1rem}
  .navbar:not(.scrolled) .d-none.d-lg-flex.align-items-center.ms-2{position:static;right:auto;margin:0}
  /* ordering: brand first, nav second, actions third */
  .navbar:not(.scrolled) .navbar-brand-center{order:1}
  .navbar:not(.scrolled) .navbar-nav.d-none.d-lg-flex{order:2}
  .navbar:not(.scrolled) .d-none.d-lg-flex.align-items-center.ms-2{order:3}

  /* Compact (scrolled) header: restore inline desktop layout with smaller padding */
  .navbar.scrolled .collapse.navbar-collapse{
    padding-top:18px;
    padding-bottom:12px;
  }
  /* ensure nav stays in normal flow (centered under brand) when scrolled */
  .navbar.scrolled .navbar-nav.d-none.d-lg-flex{position:static;left:auto;top:auto;transform:none;margin:0 auto}
  /* keep socials pinned to the smaller header */
  .navbar.scrolled .d-none.d-lg-flex.align-items-center.ms-2{position:absolute;right:20px;top:8px;transform:none}
}

/* cleaned up */
/* FINAL OVERRIDES: Ensure socials are pinned top-right in all desktop states and
   the navbar keeps enough vertical padding when scrolled so the centered nav
   buttons fit comfortably. These rules intentionally use higher specificity. */
@media (min-width:992px){
  .desktop-social{
    position:fixed !important;
    /* move further left from the edge so icons sit closer to the logo */
    right:120px !important;
    top:calc(var(--navbar-current-height) / 2) !important;
    transform:translateY(-50%) !important;
    z-index:99999 !important;
    gap:4px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    transition:none !important;
    will-change:auto !important;
    /* top is computed from CSS var set by JS */
  }
  .navbar.scrolled .desktop-social{
    right:18px !important;
  }
  /* increase scrolled header padding slightly so nav buttons do not get clipped */
  .navbar.scrolled .collapse.navbar-collapse{padding-top:16px !important;padding-bottom:12px !important}
}

/* Desktop nav row styling: handled inside desktop media query only (below). */

/* ensure the desktop nav row moves with navbar height changes */
@media (min-width:992px){
  /* enforce centered nav on desktop to ensure buttons sit under the brand */
  .navbar .navbar-nav{margin:0 auto !important;justify-content:center !important;text-align:center}

  .navbar{--_navbar-height-override:var(--navbar-current-height)}
    .desktop-nav-row{
      display:none !important; /* second nav removed — keep rule to avoid unexpected layout */
    }
    /* ensure the nav-row itself doesn't block clicks, but links remain interactive */
    .desktop-nav-row .desktop-nav-list,
    .desktop-nav-row .desktop-nav-list a{pointer-events:auto}
    /* ensure desktop socials are always pinned to the right on desktop */
    .desktop-social{position:fixed !important;right:120px !important;top:calc(var(--navbar-current-height) / 2) !important;transform:translateY(-50%) !important;display:flex !important;gap:4px !important;z-index:99999 !important}

    /* ensure brand is part of normal flow so nav items can sit below it */
    .navbar-brand-center{position:relative;left:auto;top:auto;transform:none;z-index:1150}
    .navbar.scrolled .navbar-brand-center{position:relative}
    /* Strong overrides to ensure desktop nav is perfectly centered under the brand.
       Do not vertically center the column so nav can sit below the brand — use
       top spacing on the nav itself. */
    .navbar{top:-2px !important}
     .navbar .collapse.navbar-collapse{display:flex !important;flex-direction:column !important;justify-content:flex-start !important;align-items:center !important}
  }

    /* Layout change: move brand to the left, keep socials on right and center the nav group horizontally.
      This uses row-flow for the collapse on desktop and absolute centering for the nav list so the brand
      sits left while the nav stays visually centered. */
    .navbar .collapse.navbar-collapse{display:flex !important;flex-direction:row !important;align-items:center !important;justify-content:space-between !important}
    .navbar-brand-center{order:0;margin-left:0;padding-left:0}
    /* center the nav list horizontally within the bar */
    .navbar .navbar-nav.d-none.d-lg-flex{position:absolute !important;left:50% !important;transform:translateX(-50%) !important;margin:0 auto !important;gap:1rem !important}
    /* ensure socials remain at the right edge */
    .navbar .d-none.d-lg-flex.align-items-center.ms-2{position:static !important;order:2;margin-left:auto}

    /* make the navbar visually smaller */
    .navbar{padding-top:6px !important;padding-bottom:6px !important}
    .navbar .collapse.navbar-collapse{padding-top:6px !important;padding-bottom:6px !important}

    /* reduce logo size a touch for a compact header */
    .navbar-brand-center img#site-logo{width:140px !important;max-height:90px !important}

    /* Additional strong centering: force the collapse to act centered even if utility
      class `justify-content-between` is present. Center the desktop nav relative to
      the `.container` so it aligns with the brand (horizontal centering only). */
    .navbar .collapse.navbar-collapse.justify-content-between{justify-content:center !important}
    .navbar .container > .navbar-nav.d-none.d-lg-flex,
    .navbar .container .navbar-nav.d-none.d-lg-flex{
     /* keep layout rules here but allow the explicit centering override below */
     margin:0 auto !important;
     display:flex !important;
     justify-content:center !important;
     transform:none !important;
     top:auto !important;
    }

/* when scrolled reduce nav-row padding slightly so it reads as compact */
  .navbar.scrolled + .desktop-nav-row,
  .navbar.scrolled ~ .desktop-nav-row{
    /* do not set top here (we position with transform in JS) to avoid conflicts that cause jitter */
    padding:6px 0;
  }

/* social icon sizing & centering inside desktop social area */
.desktop-social .nav-link img{width:20px;height:20px;display:block;object-fit:contain}
.desktop-social .nav-link{padding:4px;line-height:1}

  /* desktop-social is intentionally only defined inside the desktop media query above */
/* hide the site title when scrolled */
.navbar.scrolled .site-title{opacity:0;transform:translateY(-8px);pointer-events:none}

/* Reduce sub-pixel jitter by forcing GPU compositing for header elements */
.navbar, .navbar-brand-center{transition:none !important;backface-visibility:unset !important;transform:none !important;will-change:auto !important}

/* small screens */
@media (max-width:768px){
  .hero h1{font-size:1.6rem}
}

/* NAV TIGHTEN OVERRIDES: reduce spacing between desktop nav items and ensure
   the group is compact and horizontally centered under the brand. */
@media (min-width:992px){
  /* reduce gap between items */
  .navbar .navbar-nav.d-none.d-lg-flex{gap:.75rem !important}

  /* neutralize utility margins applied on list items (e.g. `me-3`) */
  .navbar .navbar-nav.d-none.d-lg-flex .nav-item.me-3{margin-right:0 !important}

  /* tighten link padding so items sit closer together without breaking click area */
  .navbar .navbar-nav.d-none.d-lg-flex .nav-link{padding:6px 8px !important;font-size:0.98rem}

  /* slightly reduce vertical space in the collapse column so nav sits closer under brand */
  .navbar .collapse.navbar-collapse{padding-top:0px !important;padding-bottom:24px !important}

  /* ensure the group remains centered */
  .navbar .navbar-nav.d-none.d-lg-flex{margin:0 auto !important;display:flex !important;justify-content:center !important}
}

/* FINAL OVERRIDE: ensure nav list is horizontally centered while brand stays left */
@media (min-width:992px){
  .navbar{padding-top:4px !important;padding-bottom:4px !important}
  .navbar .navbar-nav.d-none.d-lg-flex{position:absolute !important;left:50% !important;transform:translateX(-50%) !important;gap:.75rem !important;top:calc(var(--navbar-current-height, var(--navbar-initial-height)) / 2 + 8px) !important}
  .navbar-brand-center{margin-left:12px !important}
}

/* Compact mobile navbar: reduce height and center the inline logo horizontally and vertically */
@media (max-width:991px){
  :root{ --navbar-initial-height:var(--navbar-mobile-height); }
  .navbar{height:var(--navbar-initial-height) !important;padding-top:6px !important;padding-bottom:6px !important}

  /* center the small inline logo inside the navbar both horizontally and vertically */
  .d-lg-none.position-absolute{left:50% !important;top:50% !important;transform:translate(-50%,-50%) !important}
  #site-logo-inline{width:120px !important;max-height:64px !important}

  /* keep the toggler vertically centered and clickable */
  .navbar-toggler{position:relative;top:0;transform:none}
}

/* error page styles */
.error-card{background:linear-gradient(180deg, #fff, #fff);border-radius:10px;padding:2rem}
.error-card .display-4{font-weight:700;color:var(--muted)}
.error-card p.lead{color:#6c6c6c}
.error-card .btn-appointment{border-radius:24px;padding:8px 18px}

