:root {
  --bs-body-bg: #f6f8fb;
  --custom-dark: #0f172a;
  --custom-text: #1e293b;
  --custom-muted: #222222;
  --custom-accent: #198754;
  --custom-accent-light: #34d399;
  --custom-radius: 1.25rem;
  --custom-shadow: 0 14px 35px rgba(0, 0, 0, 0.10);
}

html {
  font-size: 18px;
}

body {
  color: var(--custom-text);
  background: var(--bs-body-bg);
}
@media (min-width: 1400px) {
.container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
   max-width: 1420px !important;
}
}

.hero-header {
  position: relative;
  min-height: 460px;
  height: 58vh;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 10px 20px 110px 20px;
  transform: none !important;
}

.hero-content .container {
  width: 100%;
}

.hero-txt {
  margin-top: 0 !important;
  transform: none !important;
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: clamp(1.05rem, 2.2vw, 1.55rem);
  line-height: 1.45;
  max-width: 820px;
  margin: 0 auto 1.6rem;
}

.hero-content .btn {
  margin: 0.25rem 0.35rem;
}

.hero-slider,
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
}

.hero-slide:nth-child(1) img,
.hero-slide:nth-child(2) img,
.hero-slide:nth-child(3) img {
  transform: scale(1.08) translate(0, 0);
}

.hero-slide:nth-child(1).active img {
  animation: move1 5s linear forwards;
}

.hero-slide:nth-child(2).active img {
  animation: move2 5s linear forwards;
}

.hero-slide:nth-child(3).active img {
  animation: move3 5s linear forwards;
}

@keyframes move1 {
  from {
    transform: scale(1.08) translateX(0);
  }

  to {
    transform: scale(1.15) translateX(-40px);
  }
}

@keyframes move2 {
  from {
    transform: scale(1.08) translateX(0);
  }

  to {
    transform: scale(1.16) translateX(40px);
  }
}

@keyframes move3 {
  from {
    transform: scale(1.08) translate(0, 0);
  }

  to {
    transform: scale(1.18) translate(-30px, 15px);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.hero-content h1 {
  /*font-size: clamp(2.2rem, 2vw, 2.9rem);*/
  font-size: clamp(2.0rem, 2.9rem, 3.9rem);
  line-height: 1.08;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  max-width: 760px;
  margin: 0 auto 1.5rem;
  opacity: 0.95;
}

/* Contact Form */
.contact-form .form-check-input {
  background-color: #fff !important;
}

.contact-form .form-check-input:checked {
  background-color: #7ed957 !important;
  border-color: #7ed957;
}

/* Back to top */
#backToTop {
  position: fixed !important;
  right: 30px !important;
  bottom: 30px !important;
  left: auto !important;
  z-index: 9999;
  background-color: #2e8b57;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

#backToTop:hover {
  background-color: #3cb371;
  transform: translateY(-3px);
}
.navbar { position: relative !important; }
/* Navbar */
.navbar-overlay {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.42),
    rgba(0, 0, 0, 0)
  );
}

.navbar-overlay .navbar-brand,
.navbar-overlay .nav-link {
  color: #fff !important;
}

.navbar-overlay .nav-link:hover {
  opacity: 0.8;
}

.navbar-nav .nav-link {
  position: relative;
  white-space: nowrap;
  font-weight: 500;
  transition: 0.3s ease;
}

.navbar-nav .nav-link.nav-active {
  color: #ffffff !important;
  font-weight: 700;
}

.navbar-nav .nav-link.nav-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 3px;
  border-radius: 30px;
  background: linear-gradient(90deg, var(--custom-accent), var(--custom-accent-light));
}

.navbar-nav .nav-link:hover {
  color: #d8ffe7 !important;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.45);
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

/* Sections */
.section-space {
  padding: 5rem 0;
}

.section-title {
  margin-bottom: 2.5rem;
}

.section-title p {
  color: var(--custom-muted);
  max-width: 760px;
  margin: 0 auto;
}

.container-wide {
  max-width: 1600px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Highlights */
.highlights-premium {
  position: relative;
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}

.highlights-premium .row {
  row-gap: 3rem;
}

.highlights-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top center,
    rgba(25, 135, 84, 0.08),
    transparent 35%
  );
  pointer-events: none;
}

.premium-title-wrap {
  position: relative;
  z-index: 2;
  margin-bottom: 3rem;
}

.premium-eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  background: rgba(25, 135, 84, 0.10);
  color: var(--custom-accent);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.premium-title-wrap h2 {
  color: var(--custom-dark);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}

.premium-title-wrap p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--custom-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.premium-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 1.4rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.7) inset;
  backdrop-filter: blur(6px);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  position: relative;
}

.premium-card::after {
  content: "";
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  top: 0;
  height: 4px;
  border-radius: 0 0 1rem 1rem;
  background: linear-gradient(90deg, var(--custom-accent), var(--custom-accent-light));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.premium-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 18px 44px rgba(15, 23, 42, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  border-color: rgba(25, 135, 84, 0.14);
}

.premium-card:hover::after {
  opacity: 1;
}

.premium-card-image-wrap {
  position: relative;
  overflow: hidden;
}

.premium-card-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.16),
    rgba(15, 23, 42, 0.02)
  );
  pointer-events: none;
}

.premium-card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}



.premium-card:hover .premium-card-image {
  transform: scale(1.04);
}

.premium-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.6rem 1.5rem 1.5rem;
}

.premium-card-title {
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--custom-dark);
  margin-bottom: 0.9rem;
  font-weight: 700;
}

.premium-card-text {
  color: var(--custom-muted);
  line-height: 1.75;
  font-size: 1rem;
  margin-bottom: 1.4rem;
  flex-grow: 1;
}

.premium-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--custom-accent);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: color 0.25s ease;
}

.premium-card-link::after {
  content: "→";
  transition: transform 0.25s ease;
}

.premium-card-link:hover {
  color: #146c43;
}

.premium-card-link:hover::after {
  transform: translateX(4px);
}

/* CTA Luxury */
.cta-luxury {
  position: relative;
  padding: 3rem 0 5.5rem;
  background:
    radial-gradient(circle at top left, rgba(25, 135, 84, 0.12), transparent 35%),
    linear-gradient(180deg, #f6f8fb 0%, #eef5f0 100%);
  overflow: hidden;
}

.cta-luxury::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  top: -200px;
  right: -200px;
  background: radial-gradient(circle, rgba(25, 135, 84, 0.18), transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.cta-luxury-box {
  position: relative;
  max-width: 950px;
  margin: 0 auto;
  padding: 3.5rem 2.5rem;
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 25px 60px rgba(15, 23, 42, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  overflow: hidden;
}

.cta-luxury-box::after {
  content: "";
  position: absolute;
  left: 2rem;
  right: 2rem;
  top: 0;
  height: 4px;
  border-radius: 0 0 1rem 1rem;
  background: linear-gradient(90deg, var(--custom-accent), var(--custom-accent-light));
}

.cta-luxury-eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(25, 135, 84, 0.12);
  color: var(--custom-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cta-luxury-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 1.2rem;
  color: var(--custom-dark);
  letter-spacing: -0.03em;
}

.cta-luxury-text {
  max-width: 720px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--custom-muted);
}

.cta-luxury-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-luxury .btn {
  min-width: 230px;
  transition: all 0.25s ease;
}

.cta-luxury .btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(25, 135, 84, 0.35);
}

.cta-luxury .btn-outline-light {
  border-color: rgba(15, 23, 42, 0.15);
  color: var(--custom-dark);
  background: rgba(255, 255, 255, 0.6);
}

.cta-luxury .btn-outline-light:hover {
  background: var(--custom-dark);
  color: #fff;
  border-color: var(--custom-dark);
}

/* Footer */
.footer-luxury {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background:
    radial-gradient(circle at top right, rgba(25, 135, 84, 0.10), transparent 28%),
    linear-gradient(180deg, #1b2430 0%, #111827 100%);
  color: #e5e7eb;
  position: relative;
  overflow: hidden;
}

.footer-accent-line {
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--custom-accent) 0%,
    var(--custom-accent-light) 50%,
    var(--custom-accent) 100%
  );
  opacity: 0.95;
}

.footer-luxury-inner {
  padding-top: 4.5rem;
  padding-bottom: 2rem;
}

.footer-title {
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.4rem;
  letter-spacing: -0.02em;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #86efac;
  margin-bottom: 1.2rem;
}

.footer-contact p,
.footer-note {
  font-size: 1.02rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
}

.footer-contact a,
.footer-bottom a,
.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  transition: all 0.25s ease;
}

.footer-contact a:hover,
.footer-bottom a:hover,
.footer-links a:hover {
  color: #86efac;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer-links a {
  position: relative;
  padding-left: 0;
  font-size: 1rem;
}

.footer-links a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.18rem;
  width: 0;
  height: 2px;
  background: var(--custom-accent-light);
  transition: width 0.25s ease;
}

.footer-links a:hover::before {
  width: 34px;
}

.footer-social {
  margin-top: 1.5rem;
}

.footer-social-link {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 1.15rem;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: all 0.28s ease;
}

.footer-social-link:hover {
  background: var(--custom-accent);
  border-color: var(--custom-accent);
  color: #fff;
  transform: translateY(-2px);
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 2.75rem 0 1.4rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.55);
}
.navbar-brand {
  display: flex;
  align-items: center;
  width: 430px;
  min-height: 80px;
  flex: 0 0 430px;
  margin-right: 40px;
}

.navbar-brand img {
  display: block;
  width: 430px;
  height: auto;
  aspect-ratio: 430 / 80;
}

/* Desktop Anpassungen */
@media (min-width: 1100px) {
  .page-geschaeftsfuehrung .hero-content,
  .page-kontakt .hero-content,
  .page-personaladministration .hero-content {
    transform: translateY(0);
  }
	
  .navbar-brand img {
    max-width: 430px;
    margin-left: 0;
    margin-right: 0;
  }
.navbar-brand {
    margin-right: 40px;
	transform: translateX(-25px);
  }
}

@media (min-width: 1200px) {
  .highlights-premium .row > div:nth-child(4),
  .highlights-premium .row > div:nth-child(5) {
    margin-top: 0.35rem;
  }
}

/* Tablet / kleinere Desktops */
@media (max-width: 1399.98px) {
  .hero-header:has(.navbar-collapse.show) {
    overflow: visible;
  }

  .navbar {
    position: relative;
  }

  .navbar-collapse {
    position: absolute;
    top: 100%;
    right: 20px;
    left: auto;
    width: 340px;
    max-width: calc(100vw - 40px);
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(14px);
    padding: 1.4rem;
    margin-top: 14px;
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    z-index: 999;
  }

  .navbar-nav {
    gap: 0.5rem !important;
    align-items: flex-start !important;
  }

  .navbar-nav .nav-link {
    padding: 0.55rem 0;
    width: 100%;
  }
}

@media (max-width: 1199.98px) {
  .premium-card-image {
    height: 220px;
  }
}

@media (max-width: 1000px) {
  img.img-fit {
    width: 260px;
    height: auto;
  }
}

@media (max-width: 991.98px) {
   .hero-header {
    height: auto;
    min-height: 120px;
  }
  .highlights-premium {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .premium-title-wrap {
    margin-bottom: 2.4rem;
  }

  .premium-card-title {
    font-size: 1.22rem;
  }

  .premium-card-text {
    font-size: 0.98rem;
  }

  .footer-luxury-inner {
    padding-top: 3.5rem;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
   .hero-header {
    height: auto;
    min-height: 120px;
  }

  .hero-content {
    min-height: 120px;
    padding: 120px 20px 60px;
    align-items: center;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .hero-content p {
    font-size: 1.08rem;
    line-height: 1.45;
  }

  .hero-content .btn {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 0.75rem auto 0;
  }

  .highlights-premium {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .premium-card {
    border-radius: 1.15rem;
  }

  .premium-card-image {
    height: 210px;
  }

  .premium-card-body {
    padding: 1.35rem 1.2rem 1.25rem;
  }

  .premium-title-wrap p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .cta-luxury {
    padding: 2rem 0 4rem;
  }

  .cta-luxury-box {
    padding: 2.2rem 1.4rem;
  }

  .cta-luxury-text {
    font-size: 1rem;
  }

  .cta-luxury .btn {
    width: 100%;
    min-width: 0;
  }

  .footer-title {
    margin-bottom: 1rem;
  }

  .footer-heading {
    margin-bottom: 0.9rem;
  }

  .footer-contact p,
  .footer-note {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
	
  .navbar-brand {
    width: 290px;
    max-width: calc(100vw - 110px);
    flex: 0 1 290px;
    margin-right: 10px;
  }

  .navbar-brand img {
    width: 290px;
    max-width: 100%;
    height: auto;
  }

  .navbar-toggler {
    flex: 0 0 auto;
    margin-left: auto;
  }
}

@media (max-width: 520px) {
  .navbar-overlay {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .hero-header,
  .hero-slider,
  .hero-slide,
  .hero-content {
    min-height: 120px;
  }

  .hero-content {
    padding: 0 20px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
    line-height: 1.15;
    margin-bottom: 1rem;
  }

  .hero-content p {
    font-size: 1.05rem;
    margin-bottom: 1.8rem;
  }

  .hero-content .btn {
    display: block;
    width: 100%;
    max-width: 230px;
    margin: 0 auto;
  }

  .hero-content .btn + .btn {
    margin-top: 14px;
  }

  .hero-slide img {
    object-position: center 60%;
  }
  .navbar-brand {
    width: 230px;
    max-width: calc(100vw - 130px);
    flex: 0 1 230px;
    margin-right: 10px;
  }

  .navbar-brand img {
    width: 230px;
    max-width: 100%;
    height: auto;
  }
}