@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --main-brand-color: #b12222;
  --main-brand-hover: #8e1a1a;
  --primary-color: #ffffff;
  --secondary-color: #5b6168;
  --light-secondary-color: #f3f4f6;
  --text-color: #1f2933;
  --text-color-ImpressumDatenschutz: #556070;
  --secondary-text-color: #7b8794;
  --footer-background-color: #333;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 14px 34px rgba(15, 23, 42, 0.14);
  /* Goldener Schnitt Abstände (φ = 1.618) */
  --space-sm: 0.618rem;
  --space-md: 1rem;
  --space-lg: 1.618rem;
  --space-xl: 2.618rem;
  --space-2xl: 4.236rem;
}

* {
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  min-height: 100vh;
  background-color: var(--primary-color);
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  line-height: 1.618;
  color: var(--text-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-color);
  line-height: 1.25;
}

/* Screenreader */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================
   HERO SECTION
========================= */

#home_section {
  margin-top: 0;
  padding: 0;
  position: relative;
  z-index: 100;
}

.hero-banner {
  width: 100%;
  height: 61.8vh;
  background-image: url("images/Hero-Banner.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.hero-content {
  width: 100%;
  padding: 3rem 1.5rem;
  text-align: center;
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 2.618rem);
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.hero-content h2 {
  font-size: clamp(1.1rem, 2.2vw, 1.618rem);
  margin-bottom: 1.15rem;
  color: var(--secondary-text-color);
  font-weight: 500;
}

.hero-content p {
  font-size: 1rem;
  line-height: 1.618;
  color: var(--secondary-text-color);
  margin-bottom: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   GOLDEN RATIO UTILITIES
========================= */

/* Bildformat φ:1 (1.618:1) für Bootstrap ratio-Komponente */
.ratio-golden {
  --bs-aspect-ratio: 61.8%;
}

/* Kontakt-Spalten 38.2% / 61.8% statt Bootstrap 33% / 67% */
@media (min-width: 992px) {
  .golden-split > .col-lg-4 {
    flex: 0 0 38.2%;
    max-width: 38.2%;
  }
  .golden-split > .col-lg-8 {
    flex: 0 0 61.8%;
    max-width: 61.8%;
  }
}

/* =========================
   BUTTONS
========================= */

.contact-btn {
  display: inline-block;
  margin-top: 1.5rem;
  min-width: 170px;
  padding: 0.85rem 2.4rem;
  background: var(--main-brand-color);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 4px;
  text-align: center;
  transition:
    background 0.3s ease,
    transform 0.2s ease;
}

.contact-btn:hover,
.contact-btn:focus {
  background: var(--main-brand-hover);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

/* =========================
   BOOTSTRAP CARDS
========================= */

.card-hover {
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.card-img-top {
  height: 10rem;
  object-fit: cover;
}

/* =========================
   BACK TO TOP
========================= */

#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1050;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background-color: var(--main-brand-color);
  color: white;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    bottom 0.2s ease;
  box-shadow: var(--shadow-soft);
}

#backToTop.show {
  opacity: 1;
  pointer-events: auto;
}

#backToTop:hover {
  background-color: var(--main-brand-hover);
}

.lightbox-open #backToTop {
  opacity: 0 !important;
  pointer-events: none !important;
}

.lightbox-open {
  overflow: hidden;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
  .hero-banner {
    height: 38.2vh;
  }

  .hero-content {
    padding: 2rem 1rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content h2 {
    font-size: 1.1rem;
  }

  .hero-content p {
    font-size: 0.875rem;
  }

  .contact-btn {
    width: 100%;
    padding: 0.75rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero-banner {
    height: 38.2vh;
  }

  .hero-content {
    padding: 2.5rem 2rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content h2 {
    font-size: 1.618rem;
  }
}
