:root {
  --sand: #f4dfb8;
  --mint: #d9efe5;
  --shore: #1985a1;
  --leaf: #3f7d58;
  --coffee: #b7791f;
  --snack: #d45d2f;
  --drink: #168aad;
  --sun: #f2c14e;
  --ink: #1f2933;
  --deep: #17242b;
  --soft: #f7f8f5;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
}

.site-header {
  box-shadow: none;
}

.site-header .navbar {
  background-color: rgba(255, 255, 255, 0.82) !important;
  border-bottom: 1px solid rgba(31, 41, 51, 0.08) !important;
  box-shadow: 0 10px 30px rgba(31, 41, 51, 0.08);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}

.navbar-brand {
  color: var(--deep);
}

.logo-brand {
  display: inline-flex;
  align-items: center;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 160ms ease, transform 220ms ease;
}

.site-header.nav-logo-hidden .logo-brand {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

.logo-brand img {
  display: block;
  width: 240px;
  height: auto;
}

.hero-logo {
  display: block;
  width: 340px;
  max-width: min(70vw, 420px);
  height: auto;
  margin: 0 0 1.75rem;
}

.nav-link {
  font-weight: 600;
  border-radius: var(--bs-border-radius-lg);
  padding: 0.5rem 0.9rem;
  color: rgba(23, 36, 43, 0.86);
  transition: color 140ms ease, background-color 180ms ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus-visible {
  color: var(--deep);
  background-color: rgba(25, 133, 161, 0.08);
}

.navbar .nav-link.active,
.navbar .nav-link[aria-current="page"] {
  color: var(--shore);
  background-color: rgba(25, 133, 161, 0.14);
}

.btn-primary {
  --bs-btn-bg: var(--shore);
  --bs-btn-border-color: var(--shore);
  --bs-btn-hover-bg: #126c84;
  --bs-btn-hover-border-color: #126c84;
  --bs-btn-active-bg: #105f74;
  --bs-btn-active-border-color: #105f74;
}

.hero-section {
  position: relative;
  min-height: 760px;
  padding: 7rem 0 6rem;
  background:
    linear-gradient(90deg, rgba(247, 248, 245, 0.98) 0%, rgba(247, 248, 245, 0.9) 38%, rgba(247, 248, 245, 0.42) 62%, rgba(247, 248, 245, 0.08) 100%),
    url("../assets/img/automaten-hero.png") center right / cover no-repeat;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-section h1,
.section-pad h2,
.contact-section h2 {
  color: var(--deep);
  font-weight: 800;
  letter-spacing: 0;
}

.hero-section h1 {
  max-width: 760px;
  font-size: 3.4rem;
  line-height: 1.08;
}

.hero-lead {
  max-width: 680px;
  color: var(--deep);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.45;
}

.hero-checks {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-checks span {
  opacity: 0;
  transform: translateY(26px) scale(0.96);
  transition: opacity 520ms ease, transform 620ms cubic-bezier(0.2, 0.9, 0.2, 1.05);
  will-change: opacity, transform;
}

.hero-checks span.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-list span {
  opacity: 0;
  transform: translateY(26px) scale(0.96);
  transition: opacity 520ms ease, transform 620ms cubic-bezier(0.2, 0.9, 0.2, 1.05);
  will-change: opacity, transform;
}

.service-list span.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero-checks span,
.feature-item,
.service-list span {
  border: 1px solid rgba(31, 41, 51, 0.12);
  border-left: 4px solid var(--shore);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 0.8rem 0.9rem;
  font-weight: 700;
}

.hero-checks span:nth-child(2) {
  border-left-color: var(--leaf);
}

.hero-checks span:nth-child(3) {
  border-left-color: var(--sun);
}

.hero-checks span:nth-child(4) {
  border-left-color: var(--drink);
}

.section-pad {
  padding: 5.5rem 0;
}

.section-kicker {
  margin-bottom: 0.75rem;
  color: var(--shore);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 4rem;
  align-items: start;
}

.about-intro {
  position: sticky;
  top: 6rem;
}

.about-intro h2 {
  max-width: 520px;
}

.about-content {
  border-left: 1px solid rgba(31, 41, 51, 0.14);
  padding-left: 2.5rem;
}

.about-content .lead {
  color: var(--deep);
  font-weight: 650;
}

.about-facts {
  display: grid;
  max-width: 420px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.about-facts div {
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(217, 239, 229, 0.95), rgba(255, 255, 255, 0.96));
  padding: 1.15rem;
}

.about-facts div:nth-child(2) {
  background: linear-gradient(135deg, rgba(244, 223, 184, 0.95), rgba(255, 255, 255, 0.96));
}

.about-facts strong {
  display: block;
  color: var(--shore);
  font-size: 1.65rem;
  line-height: 1;
}

.about-facts span {
  display: block;
  margin-top: 0.45rem;
  color: rgba(31, 41, 51, 0.68);
  font-weight: 700;
}

.service-area {
  margin: 1.5rem 0 0;
  border-left: 3px solid var(--shore);
  padding-left: 1rem;
  color: rgba(31, 41, 51, 0.72);
  font-size: 0.95rem;
}

.bg-soft {
  background: var(--soft);
}

.bg-deep {
  background: var(--deep);
}

.card {
  border-radius: 8px;
}

.service-card {
  border: 1px solid rgba(31, 41, 51, 0.1);
  overflow: hidden;
  min-height: 470px;
  border: 0;
  background-position: center;
  background-size: cover;
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(31, 41, 51, 0.08);
}

.service-card::before {
  content: "";
  display: block;
  height: 6px;
}

.service-card-coffee::before {
  background: var(--coffee);
}

.service-card-snack::before {
  background: var(--snack);
}

.service-card-drinks::before {
  background: var(--drink);
}

.service-card .card-body {
  display: flex;
  min-height: 470px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.6rem;
  background: linear-gradient(180deg, rgba(23, 36, 43, 0.08) 0%, rgba(23, 36, 43, 0.58) 42%, rgba(23, 36, 43, 0.9) 100%);
}

.service-card-coffee {
  background-image: url("../assets/img/kaffeeautomat-bg.png");
  --card-icon-bg: rgba(183, 121, 31, 0.88);
}

.service-card-snack {
  background-image: url("../assets/img/snackautomat-bg.png");
  --card-icon-bg: rgba(212, 93, 47, 0.88);
}

.service-card-drinks {
  background-image: url("../assets/img/getraenkeautomat-bg.png");
  --card-icon-bg: rgba(22, 138, 173, 0.88);
}

.service-card .text-body-secondary {
  color: rgba(255, 255, 255, 0.78) !important;
}

.card-icon {
  display: inline-grid;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  place-items: center;
  border-radius: 8px;
  background: var(--card-icon-bg, rgba(25, 133, 161, 0.88));
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.card-icon svg {
  width: 1.7rem;
  height: 1.7rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.service-list span:nth-child(2) {
  border-left-color: var(--leaf);
}

.service-list span:nth-child(3) {
  border-left-color: var(--sun);
}

.service-list span:nth-child(4) {
  border-left-color: var(--drink);
}

.service-list span:nth-child(5) {
  border-left-color: var(--snack);
}

.info-panel {
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(244, 223, 184, 0.95), rgba(217, 239, 229, 0.78) 54%, #ffffff 100%);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 20px 52px rgba(31, 41, 51, 0.1);
}

.audience-item {
  height: 100%;
  border-left: 3px solid var(--sand);
  padding-left: 1rem;
}

.audience-icon {
  display: inline-grid;
  width: 3.8rem;
  height: 3.8rem;
  margin-bottom: 1.25rem;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--sand);
}

.audience-icon svg {
  width: 2.25rem;
  height: 2.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.audience-accent-sun .audience-item {
  border-left-color: var(--sun);
}

.audience-accent-sun .audience-icon {
  color: var(--sun);
}

.audience-accent-leaf .audience-item {
  border-left-color: var(--leaf);
}

.audience-accent-leaf .audience-icon {
  color: #7ac597;
}

.audience-accent-drink .audience-item {
  border-left-color: var(--drink);
}

.audience-accent-drink .audience-icon {
  color: #5dc4df;
}

.audience-accent-snack .audience-item {
  border-left-color: var(--snack);
}

.audience-accent-snack .audience-icon {
  color: #f08a67;
}

.audience-item p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.contact-section {
  background:
    linear-gradient(135deg, rgba(217, 239, 229, 0.58), rgba(244, 223, 184, 0.46) 48%, rgba(255, 255, 255, 1) 100%),
    #ffffff;
}

.contact-address {
  color: var(--deep);
  line-height: 1.7;
}

.contact-address a {
  color: var(--shore);
  font-weight: 700;
}

.contact-form {
  border: 1px solid rgba(31, 41, 51, 0.1);
  border-radius: 8px;
  background: #ffffff;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 18px 44px rgba(31, 41, 51, 0.08);
}

.form-control {
  min-height: 3rem;
  border-radius: 8px;
}

textarea.form-control {
  min-height: 11rem;
}

.legal-page {
  min-height: calc(100vh - 142px);
}

.legal-page section + section {
  padding-top: 0.5rem;
}

.legal-page h2 {
  margin-bottom: 0.75rem;
}

@media (max-width: 991.98px) {
  .hero-section {
    min-height: auto;
    padding: 4rem 0;
    background:
      linear-gradient(180deg, rgba(247, 248, 245, 0.96) 0%, rgba(247, 248, 245, 0.92) 52%, rgba(247, 248, 245, 0.7) 100%),
      url("../assets/img/automaten-hero.png") center right / cover no-repeat;
  }

  .section-pad {
    padding: 4rem 0;
  }

  .hero-section h1 {
    font-size: 2.75rem;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-intro {
    position: static;
  }

  .about-content {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 575.98px) {
  .logo-brand img {
    width: 200px;
  }

  .hero-logo {
    width: 240px;
    margin-bottom: 1.25rem;
  }

  .hero-checks {
    grid-template-columns: 1fr;
  }

  .hero-section h1 {
    font-size: 2.25rem;
  }

  .about-facts {
    grid-template-columns: 1fr;
  }
}
