:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --muted: #5b5f68;
  --brand: #459223;
  --brand-200: #eaffda;
  --surface: #f7f7f7;
  --card: #ffffff;
  --border: #e5e7eb;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Cabin, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

/* Offset for fixed-top navbar so content isn't hidden underneath */
body {
  padding-top: 54px
}

@media (min-width: 992px) {
  body {
    padding-top: 59.5px
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Raleway, Cabin, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial;
  margin: 0 0 .5rem
}

.fs-5 {
  font-size: 1.1rem !important;
}

.fs-4 {
  font-size: calc(1.2rem + .1vw) !important;
}

.fs-3 {
  font-size: calc(1.3rem + .1vw) !important;
}

@media (min-width: 992px) {
  .fs-5 {
    font-size: 1.2rem !important;
  }
}

p {
  font-weight: 400;
}

.muted {
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0
}

.no-scroll {
  overflow: hidden
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden
}

.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: .5rem 1rem;
  background: #000;
  color: #fff
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem
}

/* Hero */
.hero-simple {
  position: relative;
  display: grid;
  place-items: start center;
  min-height: clamp(45vh, 52vw, 75vh);
  padding: 1rem .5rem 3rem;
  background: url('../images/hero.webp') center/cover no-repeat;
}

/* White gradient overlay covering the top 50% of the hero image */
.hero-simple::before {
  content: "";
  position: absolute;
  inset: 0 0 50% 0; /* top:0; left:0; right:0; bottom:50% */
  background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

/* Ensure hero content (heading) appears above the overlay */
.hero-simple > * {
  position: relative;
  z-index: 2;
}

.hero-simple h1 {
  font-weight: 600;
  font-size: clamp(1.4rem, 4.8vw, 3rem);
  text-align: center;
  color: #0a0a0a;
}

/* Hero alternative layout: logo + opening hours */
.hero-simple .hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-simple .hero-logo {
  max-width: 760px;
  width: clamp(280px, 55vw, 450px);
  height: auto;
  display: block;
}

.hero-simple .hero-hours {
  font-family: 'Raleway', Cabin, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(1rem, 2.8vw, 1.5rem);
  color: #0a0a0a;
  margin: 0;
}

/* Sections */
.section {
  padding: 3rem 0
}

.about-cards .about-card {
  background: #B7BDF5;
  /* updated color */
  border-radius: 12px;
  box-shadow: 0 8px 14px rgba(0, 0, 0, .15);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* equal heights on desktop */
.about-cards .row>div {
  display: flex
}

.about-cards .about-card {
  font-family: Raleway, Cabin, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial;
  flex: 1 1 auto;
}

.about .benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
  margin-top: 1.25rem
}

.about .benefit {
  background: #eef2ff00;
  border: 1px solid var(--border);
  border-radius: .75rem;
  padding: 1rem;
  background: #eef2ff
}

/* Services */
.service-tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, .08);
  display: flex;
  flex-direction: column;
  width: 100%
}

.service-media {
  display: grid;
  place-items: center;
  padding: 1.25rem;
  flex: 1 1 auto
}

.service-media img {
  width: min(160px, 70%);
  height: auto
}

.service-label {
  background: #B7BDF5;
  text-align: center;
  padding: 1rem 1rem;
  font-family: Raleway, Cabin, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial;
  font-weight: 600;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  margin-top: auto
}

.service-info {
  background: #B7BDF5;
  display: flex;
  align-items: center;
  justify-content: center
}

.service-info .service-info-body {
  padding: 1.25rem
}

/* Process flow */
.process-flow {
  margin: 1.25rem auto 0;
  max-width: clamp(320px, 65vw, 800px);
  display: grid;
  gap: 1.75rem
}

.process-step {
  background: #CCE2AC;
  border: 1px solid #c3d79f;
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  font-family: Raleway, Cabin, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial;
  font-weight: 600;
  box-shadow: 0 8px 14px rgba(0, 0, 0, .10);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  width: clamp(300px, 80vw, 86%);
  margin: 0;
}

.process-step:nth-child(2) {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.process-step:nth-child(3) {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.process-step:nth-child(4) {
  padding-bottom: 2.25rem;
  padding-top: 2.25rem;
}


/* Alternate alignment on all viewports */
.process-step:nth-child(odd) {
  margin-right: auto;
}

.process-step:nth-child(even) {
  margin-left: auto;
}

.process-step .step-num {
  font-weight: 600;
  margin-right: .5rem;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: .6;
  padding-bottom: .4rem;
}

@media (min-width: 768px) {
  .process-step {
    width: 75%;
  }

}

@media (min-width: 1024px) {
  .process-step {
    padding: 2rem 2.1rem
  }

  .process-step:nth-child(2) {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .process-step:nth-child(3) {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .process-step:nth-child(4) {
    padding-bottom: 2.75rem;
    padding-top: 2.75rem;
  }

}

.contact-strip {
  background: #f8f9fa;
}

#kontakt h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.contact-logo {
  max-width: 260px;
  height: auto;
  display: block;
}

.contact-info {
  margin-left: 0;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.contact-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  color: #0a0a0a;
  flex-shrink: 0;
}

.contact-text {
  font-size: 1.15rem;
  font-weight: 500;
}

@media (min-width: 768px) {
  .contact-logo {
    max-width: 320px;
  }

  #kontakt .col-md-4:first-child {
    padding-right: 2.5rem;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem
}

/* Footer styles matching provided screenshots */
.site-footer {
  background: #41721F;
}

.site-footer .footer-heading {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: .75rem;
}

.site-footer p {
  color: #f8f9fa;
}

.site-footer .opacity-75 {
  opacity: .9;
}

@media (max-width: 767.98px) {
  .site-footer .footer-heading {
    font-size: 1.6rem;
    margin-top: 1rem;
  }

  .site-footer img {
    display: block;
    margin-bottom: 1rem;
  }
}

/* Footer specific tweaks */
.footer-logo {
  max-width: 220px;
  height: auto;
}

.site-footer a.link-light {
  color: #ffffff;
}

/* Use Raleway for footer links to match design */
.site-footer a,
.site-footer a.link-light,
.site-footer a.link-light.opacity-75 {
  font-family: 'Raleway', Cabin, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
}

.site-footer a.link-light.opacity-75 {
  opacity: .9;
}

/* Make footer content constrained to the container width (already using .container in template) */
.site-footer .container {
  max-width: 1100px;
}

/* Contact links in the contact section: black default, green hover, Raleway font */
#kontakt a {
  color: #000000;
  font-family: 'Raleway', Cabin, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  text-decoration: none;
}

#kontakt a:hover,
#kontakt a:focus {
  color: #41721F;
  text-decoration: none;
}

/* Ensure the smaller inline links inside contact area use proper contrast */
#kontakt .contact-text a {
  color: inherit;
}

/* Footer layout: center content on tablet (md) but keep left alignment on mobile */
@media (min-width: 768px) and (max-width: 991.98px) {
  .site-footer .row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site-footer .col-12.col-lg-4 {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .site-footer .footer-heading {
    text-align: center;
  }
}

@media (max-width: 767.98px) {

  /* keep mobile footer left-aligned */
  .site-footer .row {
    display: block;
    text-align: left;
    align-items: stretch;
  }

  .site-footer .col-12.col-lg-4 {
    text-align: left;
  }
}

/* Force white background for the contact strip (override .bg-light) */
#kontakt,
#kontakt.bg-light {
  background: #ffffff;
}

/* Stack columns vertically and center content for tablet/mobile */
@media (max-width: 991.98px) {
  #kontakt .row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  /* Make each column full width and centered */
  #kontakt .col-md-4 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: .5rem !important;
    padding-right: .5rem !important;
  }

  .contact-logo {
    margin: 0 auto 1.25rem;
    max-width: 320px;
  }

  .contact-line {
    justify-content: center;
  }

  .contact-text {
    display: inline-block;
    font-size: 1.15rem;
  }

  #kontakt h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 1rem 0 .75rem;
  }

  #kontakt p.text-muted {
    text-align: center;
  }

  /* target the left column flex container */
  #kontakt .col-12.col-md-4.d-flex {
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  #kontakt .contact-info {
    text-align: center;
    width: 100%;
  }

  #kontakt .row.g-4>* {
    margin-bottom: 1.25rem;
  }
}

/* On large screens make contact columns align to the top */
@media (min-width: 992px) {
  #kontakt .row {
    align-items: flex-start;
  }
}

/* Make tel links in services section black */
.service-info a[href^="tel:"] {
  color: #000000;
  text-decoration: none;
}

/* Smooth scrolling for navbar anchors and offset for fixed navbar */
html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 72px;
}

@media (min-width: 992px) {
  section {
    scroll-margin-top: 80px;
  }
}

.cta-btn {
  display: inline-block;
  background: #459223; /* requested background */
  color: #ffffff !important;
  padding: 0.7rem 2.4rem;
  min-width: 220px;
  text-align: center;
  border-radius: 12px;
  text-decoration: none;
  font-family: Raleway, Cabin, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial;
  font-weight: 600;
  font-size: 1.4rem;
  box-shadow: 0 8px 14px rgba(0,0,0,.18);
  transition: transform .3s ease, box-shadow .3s ease, background-color .2s linear;
}

.cta-btn:hover,
.cta-btn:focus {
  background: #41721F; /* requested hover color */
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(0,0,0,.2);
  text-decoration: none;
}

/* 404 page layout */
.page-404 {
  min-height: 80vh;
  display: grid;
  place-items: center;
}
