.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-img {
  height: 600px;
  object-fit: cover;
  filter: brightness(0.75);
}

.hero-overlay {
  background: linear-gradient(rgba(118, 118, 118, 0.5));
  z-index: 1;
}

.hero-text {
  z-index: 2;
  max-width: 90%;
}

/* --- Typing Animation --- */
.typing-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: none;
}

/* Erste Schreibsequenz */
.typing-1 {
  animation: typing 2s steps(20, end);
}

/* Zweite Schreibsequenz startet später */
.typing-2 {
  animation: typing 2s steps(20, end);
  animation-delay: 3s;
  animation-fill-mode: both;
}

/* Schreibanimation */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* --- Logo Animation (kommt in der Mitte) --- */
.logo-img {
  height: 70px;
  width: auto;
  vertical-align: middle;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
  transform: scale(0.8);
  opacity: 0;
  animation: fadeInLogo 1s ease forwards;
  animation-delay: 2s; /* startet zwischen den beiden Wörtern */
}

@keyframes fadeInLogo {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  60% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* --- Fade-In Text --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s forwards;
}

/* --- Button Style (modern gradient) --- */
.btn-primary {
  background: linear-gradient(90deg, #e0b04a, #ebb746);
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px #ebb338;
}

/* =============== CUSTOM NAVBAR =============== */
.custom-navbar {
  transition: background 0.3s ease, padding 0.3s ease;
  padding: 0.8rem 0;
  z-index: 999;
}

.custom-navbar.scrolled {
  background: rgba(233, 233, 233, 0.9);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-size: 1.3rem;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 70px;
  width: auto;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
}

.nav-link {
  color: black !important;
  font-weight: 500;
  margin-left: 1rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #e0b04a;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: #e0b04a !important;
}

/* =============== CUSTOM HAMBURGER =============== */
/* =============== CUSTOM HAMBURGER (Smooth Apple Style) =============== */
.custom-toggler {
  border: none;
  background: transparent;
  width: 35px;
  height: 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.4s ease;
  z-index: 1050;
  position: relative;
}

.toggler-bar {
  width: 26px;
  height: 3px;
  background-color: #e0b04a;
  border-radius: 3px;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55),
    opacity 0.4s ease, background-color 0.3s ease;
  transform-origin: center;
}

.custom-toggler.active .toggler-bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.custom-toggler.active .toggler-bar:nth-child(2) {
  opacity: 0;
}
.custom-toggler.active .toggler-bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Farb- & Hovereffekte */
.custom-toggler:hover .toggler-bar {
  background-color: #e0b04a;
}

.custom-toggler:hover {
  transform: scale(1.05);
}

.custom-toggler:active {
  transform: scale(0.95);
}

/* =============== MOBILE MENU =============== */
@media (max-width: 991px) {
  .navbar-collapse {
    padding: 1rem;
    border-radius: 10px;
    margin-top: 10px;
    background-color: #f4f4f4;
  }

  .nav-link {
    margin: 0.5rem 0;
    text-align: center;
    font-size: 1.1rem;
    color: black !important;
  }
}

/* Einfacher, responsiver Bildblock links */
.feature-visual {
  position: relative;
}

.feature-img {
  display: block;
  width: 100%;
  height: 100vh;
  aspect-ratio: 16 / 9; /* hält das Seitenverhältnis */
  object-fit: cover; /* füllt den Rahmen schön aus */
  border-radius: 1rem; /* rounded-4 Look */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Optional: auf sehr kleinen Screens etwas runder */
@media (max-width: 576px) {
  .feature-img {
    border-radius: 0.75rem;
  }
}

:root {
  --ci: #e0b04a; /* Corporate Gold */
  --ci-dark: #c9962d; /* Hover-Dunkel */
  --ci-shadow: rgba(224, 176, 74, 0.45);
  --btn-text: #1a1a1a; /* dunkle Schrift für Kontrast auf Gold */
}

.btn-cta {
  background: var(--ci);
  color: var(--btn-text);
  border: none;
  border-radius: 0.8rem;
  padding: 0.9rem 1.15rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 8px 22px var(--ci-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background-color 0.18s ease;
  text-decoration: none;
}

.btn-cta:hover {
  background: var(--ci-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px var(--ci-shadow);
  color: var(--btn-text); /* fix für manche Browser-Hover */
}

.btn-cta:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px var(--ci-shadow);
}

.btn-cta:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9),
    0 0 0 6px rgba(224, 176, 74, 0.55);
}

/* Icon erbt Textfarbe */
.btn-cta svg {
  display: inline-block;
}
.btn-cta svg * {
  stroke: currentColor;
}

/* Optional: mobil volle Breite und zentriert */
@media (max-width: 576px) {
  .btn-cta {
    width: 100%;
    justify-content: center;
  }
}

h3 {
  font-size: 24pt !important;
}

/* --- YouSmile Carousel --- */
.why-card {
  border: none;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.why-icon {
  font-size: 2.4rem;
  color: var(--ci);
}

/* Dots */
.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--ci);
  opacity: 0.5;
  transition: opacity 0.3s;
}
.carousel-indicators .active {
  opacity: 1;
}

/* Controls */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1) brightness(0);
}

.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
  opacity: 1;
  transition: opacity 1.2s ease-in-out;
}

.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
  opacity: 0;
}

.yousmile-counter-section {
  background: url("/images/youSMILE.png") center center/cover no-repeat;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.background-overlay {
  background: rgba(0, 0, 0, 0.45);
  position: absolute;
  inset: 0;
  z-index: 1;
}

.yousmile-counter-section .container {
  position: relative;
  z-index: 2;
}

.counter-icon {
  width: 60px;
  height: 60px;
  animation: floatIcon 3s ease-in-out infinite;
}

.highlight {
  color: var(--ci);
  font-weight: 800;
  font-size: 2.5rem;
}

.wave-top-wrapper,
.wave-bottom-wrapper {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 0;
}

.wave-top-wrapper {
  top: 0;
  transform: rotate(180deg);
}

.wave-bottom-wrapper {
  bottom: 0;
}

.wave-top,
.wave-bottom {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes floatIcon {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.booking-steps {
  background-color: #f4f4f4;
}

.booking-steps h2 {
  font-size: 2rem;
  color: #222;
}

.booking-steps .highlight {
  background: linear-gradient(90deg, #e0b04a, #c9962d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.steps {
  gap: 2rem;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 2rem;
  left: 0;
  right: 0;
  height: 3px;
  background: #e0b04a;
  z-index: 1;
}

.step {
  position: relative;
  z-index: 2;
  flex: 1 1 220px;
  min-width: 220px;
}

.icon-wrapper {
  width: 60px;
  height: 60px;
  background-color: #fff;
  border: 3px solid #e0b04a;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  font-size: 1.5rem;
  color: #e0b04a;
  position: relative;
  z-index: 3;
}

.step-card {
  border: 2px solid #e0b04a;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px);
}

.fotobox-text-section {
  background-color: #fff;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.6;
}

.fotobox-text-section h5 {
  color: #e0b04a;
  font-size: 1.1rem;
  font-weight: 700;
}

.fotobox-text-section p {
  font-size: 0.95rem;
  margin-bottom: 0;
  color: #444;
  text-align: justify;
}

@media (max-width: 991.98px) {
  .fotobox-text-section h5 {
    font-size: 1rem;
  }
  .fotobox-text-section p {
    font-size: 0.93rem;
  }
}
