/* ==========================================================================
   FONT FACES
   ========================================================================== */

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/barlow-condensed/barlow-condensed-latin-600-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/barlow-condensed/barlow-condensed-latin-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter/inter-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter/inter-latin-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter/inter-latin-600-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter/inter-latin-700-normal.woff2') format('woff2');
}

/* ==========================================================================
   CSS CUSTOM PROPERTIES
   ========================================================================== */

:root {
  --clr-blue-dark: #0a2342;
  --clr-blue-mid: #1b3a5c;
  --clr-blue-steel: #2e6e9e;
  --clr-blue-light: #4a90c4;
  --clr-green: #3aaa35;
  --clr-green-dark: #006633;
  --clr-gray-dark: #706f6f;
  --clr-gray-mid: #9d9d9c;
  --clr-gray-light: #f5f7fa;
  --clr-white: #ffffff;
  --clr-text: #1a1a2e;
  --clr-text-light: #4a4a5a;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --topbar-height: 38px;
  --navbar-height: 76px;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(80px + var(--topbar-height));
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  color: var(--clr-text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ==========================================================================
   TYPOGRAFIE
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--clr-blue-dark);
}

h1, h2 {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

p {
  color: var(--clr-text-light);
}

img {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   LAYOUT & SECTIONS
   ========================================================================== */

.section-padding {
  padding: 5rem 0;
}

.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--clr-green), var(--clr-blue-steel));
  border: none;
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn-primary-custom {
  background: var(--clr-green);
  color: var(--clr-white);
  border: none;
  padding: 0.85rem 2rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-primary-custom:hover {
  background: var(--clr-green-dark);
  color: var(--clr-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(58, 170, 53, 0.35);
}

.btn-outline-custom {
  background: transparent;
  color: var(--clr-white);
  border: 2px solid var(--clr-white);
  padding: 0.85rem 2rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-outline-custom:hover {
  background: var(--clr-white);
  color: var(--clr-blue-dark);
}

/* ==========================================================================
   TOPBAR
   ========================================================================== */

#topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  z-index: 1200;
  background: var(--clr-blue-dark);
  display: flex;
  align-items: center;
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  overflow: hidden;
  min-width: 0;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.2s ease;
  min-width: 0;
  white-space: nowrap;
}

.topbar-item i {
  color: var(--clr-green);
  font-size: 0.78rem;
}

.topbar-item:hover {
  color: var(--clr-white);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.navbar {
  top: var(--topbar-height);
  padding: 1rem 0;
  transition: all 0.3s ease;
  background: var(--clr-white);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.navbar.scrolled {
  background: var(--clr-white);
  backdrop-filter: blur(10px);
  padding: 0.6rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
  height: 44px;
  width: auto;
  transition: height 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
  height: 36px;
  width: auto;
}

.navbar .navbar-nav .nav-link {
  color: var(--clr-text);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: var(--clr-green);
}

.nav-burger {
  background: transparent;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.nav-burger .burger-line {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--clr-blue-dark);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

@media (min-width: 992px) {
  .nav-burger { display: none; }
}

.nav-burger:hover .burger-line,
.nav-burger[aria-expanded="true"] .burger-line {
  background: var(--clr-green);
}

.nav-burger[aria-expanded="true"] .burger-line:first-child {
  transform: translateY(7px) rotate(45deg);
  width: 100%;
}

.nav-burger[aria-expanded="true"] .burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-burger[aria-expanded="true"] .burger-line:last-child {
  transform: translateY(-7px) rotate(-45deg);
  width: 100%;
}

.navbar .btn-cta {
  background: var(--clr-green);
  color: var(--clr-white);
  border: none;
  padding: 0.55rem 1.5rem;
  font-weight: 600;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.navbar .btn-cta:hover {
  background: var(--clr-green-dark);
  transform: translateY(-1px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

#start {
  position: relative;
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: calc(var(--topbar-height) + var(--navbar-height));
}

#start .hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#start video,
#start .hero-fallback-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#start .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(46, 110, 158, 0.82) 0%, rgba(10, 35, 66, 0.92) 100%);
  z-index: 1;
}

#start .hero-content {
  position: relative;
  z-index: 3;
  color: var(--clr-white);
}

.hero-skyline {
  position: absolute;
  bottom: 0;
  right: 2rem;
  width: 35%;
  z-index: 2;
  line-height: 0;
  pointer-events: none;
}

.hero-skyline img {
  width: 100%;
  height: auto;
  display: block;
}

#start h1 {
  color: var(--clr-white);
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.2);
}

#start .hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

#start .hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   LEISTUNGEN SECTION
   ========================================================================== */

#leistungen {
  background: var(--clr-white);
}

.service-card {
  background: var(--clr-white);
  border: 1px solid #e8ecf1;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.35s ease;
  height: 100%;
}

.service-card:hover {
  box-shadow: 0 8px 24px rgba(10, 35, 66, 0.09);
  border-color: var(--clr-green);
}

.service-card .icon-wrap {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(58, 170, 53, 0.1), rgba(46, 110, 158, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.service-card .icon-wrap i {
  font-size: 1.75rem;
  color: var(--clr-green);
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 0;
}

/* ==========================================================================
   WARUM ZAJON (USP) SECTION
   ========================================================================== */

#warum-zajon {
  background: linear-gradient(135deg, var(--clr-blue-dark) 0%, var(--clr-blue-mid) 100%);
  color: var(--clr-white);
}

#warum-zajon h2,
#warum-zajon h3 {
  color: var(--clr-white);
}

#warum-zajon p {
  color: rgba(255, 255, 255, 0.85);
}

.usp-item {
  text-align: center;
  padding: 2rem 1rem;
}

.usp-item .usp-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(58, 170, 53, 0.15);
  border: 2px solid rgba(58, 170, 53, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.usp-item .usp-icon i {
  font-size: 2rem;
  color: var(--clr-green);
}

.usp-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--clr-green);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.feature-row {
  margin-top: 3rem;
}

.feature-row .feature-text h3 {
  margin-bottom: 1rem;
}

.feature-row .feature-text p {
  font-size: 1.05rem;
  line-height: 1.75;
}

.feature-img-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.feature-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   ÜBER UNS SECTION
   ========================================================================== */

#ueber-uns {
  background: var(--clr-gray-light);
}

.team-card {
  background: var(--clr-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.35s ease;
  height: 100%;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.team-card img {
  width: 100%;
  height: 580px;
  object-fit: cover;
  object-position: top center;
}

.team-row .col-12 .team-card img {
  height: 420px;
}

.team-card .card-body {
  padding: 1.5rem;
  text-align: center;
}

.team-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.team-card .position {
  color: var(--clr-green);
  font-weight: 600;
  font-size: 0.92rem;
}

/* ==========================================================================
   KONTAKT SECTION
   ========================================================================== */

#kontakt {
  background: linear-gradient(135deg, var(--clr-blue-mid) 0%, var(--clr-blue-dark) 100%);
  color: var(--clr-white);
}

#kontakt h2 {
  color: var(--clr-white);
}

#kontakt p {
  color: rgba(255, 255, 255, 0.85);
}

.contact-form .form-control {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--clr-white);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.contact-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.contact-form .form-control:focus {
  border-color: var(--clr-green);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(58, 170, 53, 0.2);
  color: var(--clr-white);
}

.contact-form .form-label {
  font-weight: 500;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.btn-submit-contact {
  width: auto;
  min-width: 220px;
}

.form-feedback {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  animation: feedbackIn 0.35s ease;
}

.form-feedback.success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(58, 170, 53, 0.15);
  border: 1px solid rgba(58, 170, 53, 0.45);
  color: #c6f0c2;
}

.form-feedback.error {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.45);
  color: #f5b8be;
}

.form-feedback i {
  font-size: 1.3rem;
  flex-shrink: 0;
}

@keyframes feedbackIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-item i {
  font-size: 1.35rem;
  color: var(--clr-green);
  margin-top: 0.15rem;
}

.contact-info-item strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--clr-white);
}

.contact-info-item span,
.contact-info-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-info-item a:hover {
  color: var(--clr-green);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

#footer {
  background: #060d18;
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 0;
}

#footer h5 {
  color: var(--clr-white);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

#footer a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.92rem;
}

#footer a:hover {
  color: var(--clr-green);
}

#footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer ul li {
  margin-bottom: 0.6rem;
}

#footer .footer-brand img {
  height: 60px;
  width: auto;
  margin-bottom: 1rem;
}

#footer .footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 1rem;
}

/* ==========================================================================
   UNTERSEITEN (Impressum, Datenschutz)
   ========================================================================== */

.page-header {
  background: var(--clr-blue-dark);
  padding-top: calc(var(--topbar-height) + var(--navbar-height) + 2.5rem);
  padding-bottom: 2.5rem;
  text-align: center;
}

.page-header h1 {
  color: var(--clr-white);
  margin-bottom: 0;
}

.legal-content {
  padding: 3rem 0 5rem;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-content h3 {
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content p,
.legal-content li {
  color: var(--clr-text-light);
  line-height: 1.8;
}

.legal-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-content ul li {
  margin-bottom: 0.35rem;
}

.legal-content a {
  color: var(--clr-blue-steel);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--clr-green);
}

/* ==========================================================================
   ANIMATIONEN (Scroll-Reveal)
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ==========================================================================
   SCROLL-TO-TOP
   ========================================================================== */

#scrollTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--clr-green);
  color: var(--clr-white);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  pointer-events: none;
}

#scrollTop.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#scrollTop:hover {
  background: var(--clr-green-dark);
  box-shadow: 0 6px 20px rgba(58, 170, 53, 0.4);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 991.98px) {
  .section-padding {
    padding: 3.5rem 0;
  }

  #start {
    min-height: calc(100vh - 100px);
    align-items: center;
    padding-top: calc(var(--topbar-height) + var(--navbar-height) + 3.5rem);
    padding-bottom: 7rem;
  }

  #start .hero-content {
    text-align: center;
  }

  .hero-skyline {
    width: calc(100% - 2rem);
    left: 1rem;
    right: 1rem;
  }

  #start .hero-buttons {
    justify-content: center;
  }

  .navbar-collapse {
    background: var(--clr-white);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 0.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  }

  .feature-row .col-lg-6:first-child {
    margin-bottom: 2rem;
  }
}

@media (max-width: 991.98px) and (max-height: 799px) {
  #start {
    padding-top: calc(var(--topbar-height) + var(--navbar-height) + 2rem);
  }
}

@media (max-width: 991.98px) and (max-height: 700px) {
  #start h1 {
    margin-bottom: 0.6rem;
  }

  #start .hero-lead {
    margin-bottom: 1rem;
  }

  #start .hero-buttons {
    gap: 0.5rem;
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 3rem 0;
  }

  .team-card img,
  .team-row .col-12 .team-card img {
    height: 420px;
  }
}

@media (max-width: 575.98px) {
  .team-row > [class*="col-"] {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .btn-submit-contact {
    width: 100%;
    min-width: unset;
  }
}

@media (max-width: 349px) {
  #start h1 {
    font-size: 1.75rem;
  }
}

@media (orientation: landscape) and (max-height: 600px) {
  .hero-skyline {
    width: 45%;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}
