/* ==================================================
   AfB Design System
================================================== */

:root {
  --afb-blue: #3a6685;
  --afb-light: #eceef3;

  --text-color: #111111;
  --border-color: #d9d9d9;

  --space-xs: 1rem;
  --space-sm: 2rem;
  --space-md: 4rem;
  --space-lg: 8rem;
  --space-xl: 12rem;

  --container-width: 1320px;
}

/* ==================================================
   Base
================================================== */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  color: var(--text-color);

  font-size: 18px;
  line-height: 1.8;

  font-weight: 300;

  overflow-x: hidden;
}

html,
body {
  overflow-x: hidden;
}

/* Bootstrap Container etwas breiter */

.container {
  max-width: var(--container-width);
}

/* ==================================================
   Typography
================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 300;

  line-height: 1.2;

  color: #000;
}

h1 {
  font-size: clamp(2.8rem, 4vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
}

p {
  font-size: 1rem !important;
  margin-bottom: 1.5rem;
}

/* ==================================================
   Sections
================================================== */

.page-header {
  padding-top: 170px;
  padding-bottom: 30px;
}

.section {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.bg-blue10 {
  background: var(--afb-light);
}

.section-title {
  margin-bottom: var(--space-md);

  letter-spacing: 2px;

  text-transform: uppercase;
}

.section-title::after {
  content: "";

  display: block;

  width: 80px;

  height: 2px;

  background: var(--afb-blue);

  margin-top: 1rem;
}

/* ==================================================
   Navigation
================================================== */

.afb-navbar {
  background: rgba(255, 255, 255, 0.95);

  backdrop-filter: blur(10px);

  border-bottom: 1px solid #ddd;

  padding: 1.5rem 0;

  transition: 0.3s;
}

.afb-navbar .navbar-brand img {
  width: 130px;
}

.afb-navbar .nav-link {
  color: #000;

  text-transform: uppercase;

  font-size: 0.9rem;

  letter-spacing: 1px;

  padding-left: 1rem;
  padding-right: 1rem;

  position: relative;
}

.afb-navbar .nav-link::after {
  content: "";

  position: absolute;

  left: 1rem;
  right: 1rem;

  bottom: 0.3rem;

  height: 1px;

  background: var(--afb-blue);

  transform: scaleX(0);

  transition: 0.3s;
}

.afb-navbar .nav-link:hover::after {
  transform: scaleX(1);
}

.navbar-toggler {
  border: 0;
  padding: 0.4rem;
  box-shadow: none !important;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: none;
  width: 28px;
  height: 20px;
  position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon {
  border-top: 2px solid #000;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
}

.navbar-toggler-icon::before {
  top: 7px;
}

.navbar-toggler-icon::after {
  top: 16px;
}

/* ==================================================
   Buttons
================================================== */

.btn-blue {
  border: 1px solid var(--afb-blue);

  background: transparent;

  color: var(--afb-blue);

  border-radius: 0;

  padding: 1rem 2rem;

  text-transform: uppercase;

  letter-spacing: 1px;

  transition: 0.3s;
}

.btn-blue:hover {
  background: var(--afb-blue);

  color: #fff;
}

/* ==================================================
   Images
================================================== */

.bwFade {
  transition: 0.7s ease;

  filter: grayscale(100%) brightness(1.12) contrast(0.95);
}

.bwFade:hover {
  filter: grayscale(0%) brightness(1) contrast(1);

  transform: scale(1.02);
}

img {
  max-width: 100%;

  height: auto;
}

/* ==================================================
   Hero
================================================== */

.hero-slider {
  padding-top: 120px;
}

.hero-container {
  max-width: 1600px;
}

/* ==================================================
   Welcome
================================================== */

.welcome-content {
  border-left: 2px solid var(--afb-blue);

  padding-left: 4rem;
}

.welcome-content h1 {
  margin-bottom: 3rem;
}

/* ==================================================
   Leistungen
================================================== */

.leistungsliste {
  list-style: none;

  padding: 0;

  margin: 0;
}

.leistungsliste li {
  padding: 1rem 0;

  border-bottom: 1px solid #d9d9d9;

  font-size: 1.05rem;
}

/* ==================================================
   Overlap Images
================================================== */

.image-overlap {
  position: relative;
}

.image-overlap img {
  margin-top: -100px;

  margin-bottom: -100px;

  position: relative;

  z-index: 5;
}

/* ==================================================
   Partner
================================================== */

.partner-card {
  border: 1px solid var(--border-color);

  padding: 4rem 2rem;

  min-height: 220px;

  display: flex;

  align-items: center;
  justify-content: center;

  text-align: center;

  transition: 0.3s;
}

.partner-card:hover {
  transform: translateY(-6px);

  border-color: var(--afb-blue);
}

/* ==================================================
   Team
================================================== */

.team-panorama {
  margin-bottom: var(--space-lg);
}

.team-panorama img {
  width: 100%;

  display: block;
}

#team .container {
  position: relative;
}

#team .col-lg-6 {
  padding-left: 4rem;
}

/* ==========================================
   Anspruch
========================================== */

#anspruch {
  position: relative;
}

.anspruch-intro {
  position: sticky;

  top: 140px;
}

#anspruch .accordion-item {
  padding: 0 10px;
  border: 0;

  border-bottom: 1px solid #dcdcdc;
}

#anspruch .accordion-button {
  background: transparent;

  box-shadow: none;

  padding: 2rem 0;

  font-size: 1.15rem;

  font-weight: 300;
}

#anspruch .accordion-button:not(.collapsed) {
  color: var(--afb-blue);
}

#anspruch .accordion-body {
  padding: 0 0 2rem 4rem;

  line-height: 1.8;
}

.accordion-number {
  min-width: 50px;

  margin-right: 1rem;

  color: #999;

  font-size: 0.9rem;

  letter-spacing: 2px;

  transition: 0.3s;
}

#anspruch .accordion-button:not(.collapsed) .accordion-number {
  color: var(--afb-blue);
}

#anspruch .accordion-button::after {
  transform: scale(0.8);
}

/* ==================================================
   Projekte
================================================== */

#werke {
  overflow: hidden;
}

.werkeSwiper {
  padding-left: calc((100vw - 1320px) / 2);

  padding-bottom: 2rem;
}

.werkeSwiper img {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.swiper-slide {
  transition: 0.4s;
}

.swiper-slide a {
  color: inherit;

  text-decoration: none;
}

.swiper-slide img {
  width: 100%;

  display: block;
}

.projekt-info {
  padding-top: 1.5rem;
}

.projekt-info h3 {
  margin-bottom: 0.3rem;

  font-size: 1.1rem;
}

.projekt-info p {
  color: #666;

  margin-bottom: 0;
}

.project-header img {
  height: 700px;

  object-fit: cover;
}

.project-gallery-image {
  aspect-ratio: 3/2;

  object-fit: cover;

  transition: 0.3s;
}

.project-gallery-image:hover {
  transform: scale(1.02);
}

.project-facts table {
  margin-bottom: 0;
}

.project-facts th {
  width: 35%;

  font-weight: 600;

  color: #444;
}

.project-facts td {
  color: #666;
}

/* ==================================================
   Slider Navigation
================================================== */

.swiper-navigation {
  display: flex;

  justify-content: flex-end;

  gap: 1rem;

  margin-top: 3rem;
}

.werke-prev,
.werke-next {
  width: 60px;

  height: 60px;

  border: 1px solid #d9d9d9;

  display: flex;

  align-items: center;

  justify-content: center;

  cursor: pointer;

  transition: 0.3s;
}

.werke-prev:hover,
.werke-next:hover {
  background: var(--afb-blue);

  color: white;
}

/* ==================================================
   News
================================================== */

.news-image img {
  width: 100%;

  display: block;
}

.news-content h3 {
  margin-bottom: 2rem;
}

/* ==================================================
   Kontakt
================================================== */

.afb-input {
  border-radius: 0;

  border: 1px solid #d8d8d8;

  padding: 0.9rem 1rem;

  transition: 0.2s;

  box-shadow: none;
}

.afb-input:focus {
  border-color: var(--green);

  box-shadow: none;
}

.form-label {
  font-weight: 500;

  margin-bottom: 0.5rem;
}

textarea.afb-input {
  resize: vertical;

  min-height: 180px;
}

/* -------------------------------------------------
   FOOTER
-------------------------------------------------- */

.footer {
  background: #fafafa;

  color: #555;

  font-size: 0.95rem;
}

.footer-logo {
  max-width: 120px;
  height: auto;
}

.footer h5 {
  font-size: 1rem;

  font-weight: 600;

  margin-bottom: 1.4rem;

  color: #222;
}

.footer ul {
  margin: 0;
  padding: 0;
}

.footer li {
  margin-bottom: 0.1rem;
}

.footer a {
  color: #555;

  text-decoration: none;

  transition: all 0.2s ease;
}

.footer a:hover {
  color: var(--green);
}

.footer-social {
  display: flex;

  gap: 18px;

  margin-top: 5px;
}

.footer-social a {
  font-size: 1.1rem;
}

.footer-bottom {
  border-top: 1px solid #dddddd;

  padding: 22px 0;

  font-size: 0.88rem;

  color: #777;
}
.footer-bottom a {
  font-size: 12px;
}

.footer-nav .nav-link {
  padding: 0.3rem 0;
  color: #555;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.footer-nav .nav-link:hover {
  color: var(--green);
}

.footer-nav .nav-link.active {
  color: var(--green);
}

/*.contact-box {
  border-left: 2px solid var(--afb-blue);

  padding-left: 3rem;
}

.contact-box h2 {
  margin-bottom: 3rem;
}*/

/* ==================================================
   Footer
================================================== */

/*footer {
  background: #222;

  color: white;

  padding: 5rem 0;
}

footer a {
  color: white;

  text-decoration: none;
}*/

/* ==================================================
   Scroll Up
================================================== */

#scrollTop {
  position: fixed;

  right: 30px;

  bottom: 30px;

  width: 40px;

  height: 40px;

  border: 1px solid var(--afb-blue);

  background: white;

  color: var(--afb-blue);

  text-decoration: none;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 1.2rem;

  opacity: 0;

  visibility: hidden;

  transition: 0.3s;

  z-index: 999;
}

#scrollTop.show {
  opacity: 1;

  visibility: visible;
}

#scrollTop:hover {
  background: var(--afb-blue);

  color: white;
}

/*
Projects
*/

.project-item {
  display: block;

  text-decoration: none;

  color: #222;
}

.project-image {
  width: 100%;

  aspect-ratio: 3/2;

  object-fit: cover;

  transition: 0.35s;
}

.project-item:hover .project-image {
  transform: scale(1.02);
}

.project-item h3 {
  margin-top: 22px;

  font-size: 1.2rem;

  font-weight: 600;
}

.project-item p {
  color: #666;

  margin-top: 12px;
}

.project-item:hover {
  color: inherit;
}

.project-item:hover h3 {
  color: var(--green);
}

/* ==================================================
   Responsive
================================================== */

@media (max-width: 1200px) {
  .image-overlap img {
    margin-top: 0;
    margin-bottom: 0;
  }
}

@media (max-width: 991px) {
  .section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .welcome-content {
    padding-left: 2rem;
  }

  #team .col-lg-6 {
    padding-left: 1rem;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 2.5rem;
  }

  .section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .swiper-navigation {
    justify-content: center;
  }
}

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 99999;

  max-width: 760px;
  margin: 0 auto;

  border: 1px solid var(--afb-blue);
  color: var(--afb-blue);

  border-radius: 12px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);

  font-family: Arial, sans-serif;
  font-size: 14px;
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 18px;
}

.cookie-banner__text {
  flex: 1;
  line-height: 1.5;
}

.cookie-banner a {
  color: var(--afb-blue);
  font-size: 14px;
  text-decoration: underline;
}

.cookie-banner__button {
  border: 0;
  border-radius: 8px;
  padding: 10px 18px;

  background: var(--afb-blue);
  color: #fff;

  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-banner__button:hover {
  background: #eaeaea;
}

@media (max-width: 600px) {
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .cookie-banner__button {
    width: 100%;
  }
}
