:root {
  --main-color: #f27405;
  --hover-color: #ff9456;
  --white: #fff;
  --dark-grey-accent-color: #0d0d0d;
  --grey-accent-color: #444;
  --light-grey-accent-color: #969494;
  --light-grey: #e6e6e6;
  --background-navbar: #fff;
  --background-wrapper: #fff;
  --background-wrapper-transparent: #dd1414be;
  --background-wrapper-transparent-hover: #eeeeeef1;
  --backround-body: #eeeeee;
  --headline-color: var(--dark-grey-accent-color);
  --headline-background: #fff;
  --nav-link-color: var(--dark-grey-accent-color);
  --schema-orange: var(--main-color);
  --schema-orange-2: #f25c05;
  --schema-brown: #592b02;
  --schema-red: #f20505;
  --schema-dark-grey: var(--dark-grey-accent-color);
  --tile-color: var(--grey-accent-color);
  --tile-highlight-color: var(--main-color);
  --tile-text-color: var(--white);
  --footer-background-color: #2b2a2a;
  --footer-text-color: var(--light-grey-accent-color);
}

html {
  scroll-padding-top: 10vh;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6,
.nav-item,
p {
  font-family: "Roboto";
}

a {
  color: var(--main-color);
  text-decoration: none;
}
a:hover {
  color: var(--hover-color);
}

h1 {
  font-size: 1.75rem;
}
h2 {
  font-size: 1.5rem;
}
h3 {
  font-size: 1.2rem;
}
h4 {
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--main-color);
  border-color: #ffffff;
}
.btn-primary:hover {
  background-color: var(--hover-color);
  border-color: #ffffff;
}
.color-main {
  color: var(--main-color);
}

/* Buttons */
.btn-outline-primary {
  --bs-btn-color: var(--main-color);
  --bs-btn-border-color: var(--main-color);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--main-color);
  --bs-btn-hover-border-color: var(--main-color);
  --bs-btn-focus-shadow-rgb: 25, 135, 84;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--main-color);
  --bs-btn-active-border-color: var(--main-color);
  --bs-btn-disabled-color: var(--main-color);
  --bs-btn-disabled-border-color: var(--main-color);
}

/* Navbar */
.navbar {
  transition: all 0.3s ease-in-out;
  background-color: var(--background-navbar);
  margin: 0;
  padding: 0;
  height: 8vh;
  min-height: 100px;
}

.navbar-brand {
  width: 30%;
}

.navbar-logo {
  width: 100%;
  height: auto;
  min-height: 50px;
  object-fit: contain;
  transition: all 0.3s ease-in-out;
}

.navbar-nav {
  white-space: nowrap;
}

.nav-item {
  align-self: center;
  display: inline-block;
}

.nav-link {
  font-weight: 500;
  font-size: larger;
  color: var(--nav-link-color);
  margin: 10px 15px;
  /* display: inline-block; */
}

.nav-link:hover {
  color: var(--hover-color);
}

.active-link {
  color: var(--main-color);
}

.navbar-toggler {
  margin-right: 3%;
  border: none;
  color: var(--main-color);
}

.navbar-toggler:hover {
  color: var(--hover-color);
}

.navbar-toggler i {
  font-size: 3vw;
}

.navbar-collapse {
  flex: 1 1 100%;
  align-items: center;
  background-color: var(--white);
}

#navbarNavDropdown > ul > li.nav-item.dropdown > a {
  text-align: center;
}

.nav-icon {
  display: inline-block;
  width: 1.1em; /* oder 2em je nach Bedarf */
  text-align: center;
  margin-right: 10px;
}

.dropdown-item {
  font-size: 1.25rem;
  vertical-align: middle;
}

.dropdown .dropdown-menu {
  border: 0;
  border-radius: 0;
  background-color: #ffffff;
  animation: 0.5s slideup;
  box-shadow: 0 10px 8px 0 rgba(0, 0, 0, 0.2), 0 10px 20px 0 rgba(0, 0, 0, 0.19);
  animation: 0.5s slideup;
  margin-top: 23px;
}

@keyframes slideup {
  from {
    opacity: 0;
    transform: translateY(10%);
  }
  to {
    opacity: 1;
    transform: translateY(0%);
  }
}

@media (max-width: 991px) {
  .navbar-brand {
    width: 50%;
  }

  .navbar-brand img {
    width: 90%;
    /* height: auto; */
  }

  .navbar-collapse .dropdown-menu {
    box-shadow: none;
    width: 100%;
  }
}

/* Banner */
.container-banner,
.container-banner-downloads,
.container-banner-objekte,
.container-banner-kontakt {
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 200px;
}

.container-banner-home {
  height: 82vh;
}

.container-banner-downloads {
  height: 50vh;
}

.container-banner-objekte {
  height: 50vh;
}

.container-banner-kontakt {
  height: 50vh;
  background-position: bottom;
}

.container-banner-faq {
  height: 50vh;
  background-position: center;
  background-position-y: 40%;
}

@media (max-width: 991px) {
  .container-banner-home {
    height: 60vh;
  }
  .container-banner-faq {
    height: 40vh;
  }
}
@media (max-width: 767px) {
  .container-banner-faq {
    height: 30vh;
  }
}

/* Headline */
.container-headline {
  position: relative;
  height: 100%;
}

.container-headline-box {
  position: absolute;
  bottom: 20%;
  right: 2%;
  width: fit-content;
}

.headline-box-element {
  background-color: var(--headline-background);
  padding: 1%;
  width: fit-content;
}

.headline-box-element h2 {
  font-size: clamp(32px, 3vw, 50px);
  color: var(--headline-color);
  margin: 0;
  white-space: nowrap;
}

@media (max-width: 991px) {
  .headline-box-element h2 {
    font-size: 20px;
  }
}

/* Welcome */
#welcome {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 10vh;
  min-height: 100px;
}

.container-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#welcome h1 {
  font-size: clamp(25px, 1.25vw, 46px);
  color: var(--main-color);
}

#welcome h2 {
  font-size: clamp(16px, 1vw, 32px);
}

@media (max-width: 991px) {
  #welcome {
    height: 20vh;
  }
}

/* Hero */
.img-fluid {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (max-width: 767px) {
  #hero > div > div > div {
    width: 100%;
  }
}

/* Tiles */
#tiles {
  background-color: var(--light-grey);
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 175px;
  gap: 10px;
  justify-content: center;
}

.tile {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tile-color);
  color: #fff;
  text-align: center;
  text-decoration: none;
  padding: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: var(--white);
}

.tile-large {
  grid-column: span 2;
}

.tile-highlight {
  background: var(--tile-highlight-color);
  color: var(--tile-text-color);
  text-align: left;
  display: flex;
  padding: 20px;
}

.tile-text-only {
  background: var(--tile-highlight-color);
  color: var(--tile-text-color);
  align-items: flex-start;
  justify-content: flex-start;
  pointer-events: none;
  cursor: default;
}

.tile-text-only:hover {
  transform: none;
  box-shadow: none;
}

.tile-text-only .tile-content {
  align-items: flex-start;
  text-align: left;
  width: 100%;
}

.tile-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tile-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.tile-title {
  font-size: 1.2rem;
  font-weight: bold;
}

.tile-hr {
  border-top: 3px solid var(--tile-text-color);
  width: 50px;
  opacity: 0.9;
}

.tile-text {
  color: var(--tile-text-color);
  font-size: 1rem;
  margin-top: 5px;
  text-align: left;
}

@media (max-width: 1199px) {
  .tile-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
  }
}

@media (max-width: 767px) {
  .tile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .tile-text {
    color: var(--tile-text-color);
    font-size: 1rem;
    margin-top: 5px;
    text-align: left;
  }
}

/* Objekt-Bereich */
.border-wohnungen {
  border: var(--bs-border-width) var(--bs-border-style) var(--main-color) !important;
}

.img-objekt {
  min-height: 300px;
}

.container-etage-text {
  justify-content: flex-end;
}

@media (max-width: 767px) {
  .container-etage-text {
    justify-content: flex-start;
  }
}

/* Geschichte */
#timeline {
  background-color: #f1f1f1;
  min-height: 30vh;
}

.full-image {
  width: 100%;
  height: auto;
  min-height: 800px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

.carousel-control-next {
  justify-content: right;
}
.carousel-control-prev {
  justify-content: left;
}

@media (max-width: 991px) {
  .article-image {
    height: auto;
  }

  .article-image img {
    height: auto;
    max-height: 400px;
  }
}

/* Über Uns */
#ansprechpartner {
  background-color: var(--light-grey);
}

#partner img {
  object-fit: contain;
}

.rewo-link {
  color: #145272;
  text-decoration: none;
}

.rewo-link:hover {
  text-decoration: underline;
}

.btn-rewo {
  background-color: #145272;
  color: #fff;
  border: none;
}

.btn-rewo:hover {
  background-color: #0e364b;
  color: #fff;
}

/* Kontakt */
/* #contact {
  background-color: var(--light-grey);
} */

.img-contact-us {
  aspect-ratio: 1/1;
}

/* FAQs */
#faq-accordion {
  display: none;
}
@media (max-width: 767px) {
  #faq-scrollspy {
    display: none;
  }
  #faq-accordion {
    display: block;
  }
}

/* Footer */
footer {
  background: var(--footer-background-color);
}

.footer-logo {
  max-height: 70px;
  margin-bottom: 10px;
}

@media (max-width: 767px) {
  .footer-logo {
    max-height: 50px;
  }
}

.text-footer,
footer a,
footer p {
  font-size: 0.9rem;
  color: var(--footer-text-color);
  text-align: start;
}

.text-footer a {
  text-decoration: none;
  transition: all 0.3s;
}

footer h5 {
  color: var(--footer-text-color);
  text-align: start;
}

.footer-sections {
  gap: 1.5rem; /* Für sauberen Abstand auf kleinen Screens */
}

.footer-logo {
  max-height: 70px;
  margin-bottom: 10px;
}

@media (max-width: 767px) {
  .footer-logo {
    max-height: 50px;
  }
}

.text-footer,
footer a,
footer p {
  font-size: 0.9rem;
  color: var(--footer-text-color);
  text-align: start;
}

.text-footer a {
  text-decoration: none;
  transition: all 0.3s;
}

footer h5 {
  color: var(--footer-text-color);
  text-align: start;
}

/* Animations */
.fade-in-section,
.fade-in-left,
.fade-in-right,
.fade-in-up {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section {
  transform: translateY(20px);
}

.fade-in-left {
  transform: translateX(-50px);
}

.fade-in-right {
  transform: translateX(50px);
}

.fade-in-up {
  transform: translateY(50px);
}

.fade-in-section.show,
.fade-in-left.show,
.fade-in-right.show,
.fade-in-up.show {
  opacity: 1;
  transform: translate(0, 0);
}
