/* =====================================================
   Mucha Gebäudeservice – Design Tokens
   ===================================================== */
:root {
  --color-navy: #0D1F3D;
  --color-navy-soft: #16305C;
  --color-slate: #5A626B;
  --color-silver: #B0B6BD;
  --color-offwhite: #F2F4F7;
  --color-white: #FFFFFF;

  --font-display: "Montserrat", sans-serif;
  --font-body: "Open Sans", sans-serif;

  --radius: 10px;
  --shadow-soft: 0 4px 24px rgba(13, 31, 61, 0.08);
  --shadow-strong: 0 10px 40px rgba(13, 31, 61, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--color-slate);
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--color-navy);
}

::selection {
  background: var(--color-navy);
  color: var(--color-white);
}

/* visible keyboard focus, kept even though pointer users won't see it */
a:focus-visible,
button:focus-visible,
.scrollto:focus-visible {
  outline: 3px solid var(--color-navy-soft);
  outline-offset: 2px;
}

/* =====================================================
   Back to top
   ===================================================== */
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: var(--color-navy);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 28px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: var(--color-navy-soft);
  color: #fff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/* =====================================================
   Header / Navigation
   ===================================================== */
#header {
  transition: all 0.4s;
  z-index: 997;
  padding: 22px 0;
  background: rgba(13, 31, 61, 0.85);
}

#header.header-transparent {
  background: transparent;
}

#header.header-scrolled {
  background: rgba(13, 31, 61, 0.96);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

#header .logo img {
  max-height: 58px;
  transition: max-height 0.4s;
}

.navbar {
  padding: 0;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
}

.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 10px 30px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: 0.3s;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover>a {
  color: var(--color-silver);
}

.mobile-nav-toggle {
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }

  .navbar ul {
    display: none;
  }
}

.navbar-mobile {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(13, 31, 61, 0.97);
  transition: 0.3s;
  z-index: 999;
  height: 45%;
}

.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 20px;
  right: 15px;
}

.navbar-mobile ul {
  display: block;
  position: absolute;
  top: 55px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  padding: 10px 0;
  background: rgba(13, 31, 61, 0.97);
  overflow-y: auto;
  transition: 0.3s;
}

.navbar-mobile a,
.navbar-mobile a:focus {
  padding: 10px 20px;
  font-size: 15px;
  color: #fff;
}

.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile li:hover>a {
  color: var(--color-silver);
}

/* =====================================================
   Hero
   ===================================================== */
#hero {
  width: 100%;
  min-height: 88vh;
  background: url("../img/hero-bg.jpg") top center;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: center;
}

#hero:before {
  content: "";
  background: linear-gradient(180deg, rgba(13, 31, 61, 0.82) 0%, rgba(13, 31, 61, 0.68) 55%, rgba(13, 31, 61, 0.88) 100%);
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

#hero .container {
  text-align: center;
  padding-top: 40px;
  position: relative;
  z-index: 1;
}

#hero .hero-claim {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 42px;
  line-height: 1.25;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 26px;
  position: relative;
  padding-bottom: 22px;
}

#hero .hero-claim::after {
  content: "";
  position: absolute;
  display: block;
  width: 64px;
  height: 3px;
  background: var(--color-silver);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

#hero h2 {
  color: var(--color-silver);
  margin: 18px 0 0 0;
  font-size: 20px;
  font-family: var(--font-body);
  font-weight: 400;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

#hero .btn-get-started {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  display: inline-block;
  padding: 13px 38px;
  border-radius: 50px;
  transition: 0.35s;
  margin-top: 36px;
  border: 2px solid #fff;
  color: #fff;
}

#hero .btn-get-started:hover {
  background: #fff;
  color: var(--color-navy);
}

/* Compact hero variant used on legal/sub pages */
#hero.hero-sub {
  min-height: 42vh;
}

#hero.hero-sub h1 {
  font-size: 34px;
}

#hero.hero-sub .hero-logo {
  max-width: 150px;
}

@media (max-width: 768px) {
  #hero {
    min-height: 100vh;
  }

  #hero.hero-sub {
    min-height: 46vh;
  }

  #hero .hero-claim {
    font-size: 26px;
    padding-bottom: 18px;
    margin-bottom: 20px;
  }

  #hero h2 {
    font-size: 17px;
  }
}

/* =====================================================
   Signature: skyline divider
   Echoes the building silhouette from the logo, used to
   separate major sections instead of a plain <hr>.
   ===================================================== */
.skyline-divider {
  display: block;
  width: 100%;
  height: 40px;
  margin: 0 0 10px;
}

.skyline-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* =====================================================
   Generic section layout
   ===================================================== */
section {
  padding: 70px 0;
}

.section-bg {
  background-color: var(--color-offwhite);
}

.section-title {
  text-align: center;
  padding-bottom: 30px;
}

.section-title .eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-slate);
  margin-bottom: 10px;
}

.section-title h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 18px;
  position: relative;
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 46px;
  height: 3px;
  background: var(--color-navy);
  bottom: 0;
  left: calc(50% - 23px);
}

.section-title p {
  margin-bottom: 0;
  font-size: 15px;
  color: var(--color-slate);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* =====================================================
   Trust bar (directly under hero)
   ===================================================== */
.trust-bar {
  background: var(--color-navy);
  padding: 34px 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  justify-content: center;
  text-align: left;
}

.trust-item i {
  font-size: 30px;
  color: var(--color-silver);
  flex-shrink: 0;
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.trust-item span {
  font-size: 13px;
  color: var(--color-silver);
}

/* =====================================================
   Leistungen (Services / Featurettes)
   ===================================================== */
.services .service-row {
  align-items: center;
  margin-bottom: 20px;
}

.services .service-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.services .service-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services .service-eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-silver);
  background: var(--color-navy);
  display: inline-block;
  padding: 5px 14px;
  border-radius: 30px;
  margin-bottom: 16px;
}

.services h2 {
  font-weight: 700;
  font-size: 30px;
  margin-bottom: 10px;
}

.services h3 {
  font-weight: 600;
  font-size: 19px;
  color: var(--color-slate);
  margin-bottom: 16px;
}

.services p {
  font-size: 15px;
  color: var(--color-slate);
}

.services h5 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-navy);
  margin-top: 14px;
}

/* =====================================================
   Zielgruppen ("Ihr Gebäude")
   ===================================================== */
.building-card {
  background: var(--color-white);
  border: 1px solid rgba(90, 98, 107, 0.15);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
}

.building-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.building-card .feature {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  font-size: 28px;
  margin-bottom: 18px;
}

.building-card h5 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-navy);
  margin: 0;
}

/* =====================================================
   Wir sind... (About)
   ===================================================== */
#whoweare {
  background: linear-gradient(rgba(13, 31, 61, 0.82), rgba(13, 31, 61, 0.82)), url(../img/weare.jpg) fixed center center;
  background-size: cover;
  padding: 90px 0;
}

@supports (-webkit-touch-callout: none) {
  /* iOS Safari ignores background-attachment: fixed – fall back to scroll
     so the image still renders instead of collapsing. */
  #whoweare {
    background-attachment: scroll;
  }
}

.weare h3 {
  color: #fff;
  font-size: 26px;
  font-weight: 700;
}

.weare p {
  color: var(--color-silver);
  font-size: 15.5px;
}

.weare .cta-btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-block;
  padding: 12px 36px;
  border-radius: 25px;
  transition: 0.35s;
  margin-top: 14px;
  border: 2px solid #fff;
  color: #fff;
}

.weare .cta-btn:hover {
  background: #fff;
  color: var(--color-navy);
}

/* =====================================================
   Zufriedene Kunden
   ===================================================== */
.customer .customer-box {
  margin-bottom: 20px;
  overflow: hidden;
  text-align: center;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
  height: 100%;
}

.customer .customer-box .customer-img {
  position: relative;
  overflow: hidden;
}

.customer .customer-box .customer-info {
  padding: 25px 18px;
}

.customer .customer-box .customer-info h4 {
  font-weight: 600;
  font-size: 16px;
  color: var(--color-navy);
  margin-bottom: 0;
}

/* =====================================================
   Kontakt
   ===================================================== */
.contact .info-box {
  color: var(--color-slate);
  text-align: center;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 28px 20px 32px;
  height: 100%;
}

.contact .info-box i {
  font-size: 30px;
  color: var(--color-navy);
  padding: 8px;
}

.contact .info-box h3 {
  font-size: 18px;
  color: var(--color-navy);
  font-weight: 700;
  margin: 8px 0 10px;
}

.contact .info-box p {
  padding: 0;
  line-height: 1.6;
  font-size: 14px;
  margin-bottom: 0;
}

.contact .info-box.whatsapp i {
  color: #25D366;
}

/* =====================================================
   Footer
   ===================================================== */
#footer {
  color: var(--color-slate);
  font-size: 13px;
  background: var(--color-offwhite);
}

#footer .footer-top {
  padding: 34px 0 24px;
  background: var(--color-white);
  border-top: 3px solid var(--color-navy);
}

.footer-logo {
  max-width: 280px;
  width: 70%;
  margin: 0 auto 22px;
  display: block;
}

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

#footer .footer-top .footer-links ul li {
  display: flex;
  align-items: center;
}

#footer .footer-top .footer-links ul a {
  color: var(--color-slate);
  transition: 0.3s;
  display: inline-block;
  line-height: 1;
}

#footer .footer-top .footer-links ul a:hover {
  text-decoration: none;
  color: var(--color-navy);
}

/* =====================================================
   Impressum / Datenschutz / Haftungsausschluss pages
   ===================================================== */
.impressum .imp-box {
  color: var(--color-slate);
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.impressum .imp-box i {
  font-size: 30px;
  color: var(--color-navy);
  padding: 8px;
}

.impressum .imp-box h2 {
  color: var(--color-navy);
  font-size: 22px;
  margin: 30px 0 12px;
}

.impressum .imp-box h2:first-child {
  margin-top: 0;
}

.impressum .imp-box h3 {
  color: var(--color-navy);
  margin: 20px 0 8px;
  font-size: 18px;
}

.impressum .imp-box h4 {
  color: var(--color-navy);
  margin: 14px 0 6px;
  font-size: 15.5px;
}

.impressum .imp-box p,
.impressum .imp-box li {
  padding: 0;
  line-height: 1.7;
  font-size: 14.5px;
  margin-bottom: 10px;
  color: var(--color-slate);
}

.impressum .imp-box a {
  text-decoration: underline;
}
