@font-face { font-family: 'Inter'; src: url('../webfonts/Inter-VariableFont_opsz,wght.ttf') format('truetype'); font-weight: 100 900; font-style: normal; }
:root {
  --brand: #78a934;
  --brand-dark: #35551f;
  --brand-soft: #eef5e4;
  --ink: #1f2a1a;
  --header-h: 35px;
  --bs-body-font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bs-body-color: var(--ink);
  color-scheme: light;
}

@media (max-width: 992px) {
  :root { --header-h: 140px; }
}

html {
  scroll-padding-top: var(--header-h);
}

section[id] {
  scroll-margin-top: var(--header-h);
}

body {
  background: #fff;
}

.section-space {
  padding: 4.5rem 0;
}

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

a:hover {
  color: var(--brand);
}

.navbar-brand span {
  font-weight: 700;
}

.logo {
  width: 44px;
  height: 44px;
}

.navbar-banner {
  display: block;
  height: 46px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.navbar .nav-link {
  color: #000 !important;
  position: relative;
  transition: color .15s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--brand-dark) !important;
}

@media (min-width: 992px) {
  .navbar .nav-link::after {
    content: "";
    position: absolute;
    left: .5rem;
    right: .5rem;
    bottom: .2rem;
    height: 2px;
    background: var(--brand-dark);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .16s ease;
  }

  .navbar .nav-link:hover::after,
  .navbar .nav-link:focus::after {
    transform: scaleX(1);
  }
}

@media (max-width: 991.98px) {
  .navbar .nav-link:hover,
  .navbar .nav-link:focus {
    text-decoration: underline;
    text-underline-offset: .25rem;
  }
}

.hero {
  background: linear-gradient(180deg, #fff, #f7fbf0);
}

.hero h1 {
  font-weight: 800;
  letter-spacing: .2px;
}

.hero-photo {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.badge {
  font-weight: normal !important;
}

.badge-brand {
  background: var(--brand);
}

.text-brand {
  color: var(--brand-dark);
}

.btn-brand {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--brand-dark);
  --bs-btn-border-color: var(--brand-dark);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #263e17;
  --bs-btn-hover-border-color: #263e17;
  --bs-btn-focus-shadow-rgb: 53, 85, 31;
}

.shadow-soft {
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.card {
  border-color: rgba(0,0,0,.08);
}

.product-card img.icon {
  width: calc(100% - 2rem);
  height: 220px;
  object-fit: cover;
  display: block;
  margin: 1rem;
  border: 1px solid rgba(0,0,0,.16);
  border-radius: .5rem;
  cursor: pointer;
}

.product-card h5 {
  margin-top: .25rem;
}

.contact-card {
  font-size: .93rem;
}

.contact-card .btn-info {
  --bs-btn-color: #000;
  --bs-btn-bg: #d9edc6;
  --bs-btn-border-color: #c4dfa8;
  --bs-btn-hover-color: #000;
  --bs-btn-hover-bg: #cbe6af;
  --bs-btn-hover-border-color: #b8d69b;
}

.btn-fixed {
  min-width: 126px;
  min-height: 40px;
}

.form-control:focus,
.form-check-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 .25rem rgba(120, 169, 52, .18);
}

.form-check-input:checked {
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
}

footer a {
  color: inherit;
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1040;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--brand-dark);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.legal-page .navbar {
  min-height: var(--header-h);
}

.legal-card {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: .5rem;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.py-lg-6 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (max-width: 575.98px) {
  .product-card img.icon {
    height: 190px;
  }
}


.map-card iframe {
  display: block;
}

.modal-body h2 {
  color: var(--brand-dark);
}

.hero-banner {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  background: #fff;
  padding: 1rem;
}

.image-modal-content {
  align-items: center;
  width: fit-content;
  max-width: calc(100vw - 2rem);
  margin-left: auto;
  margin-right: auto;
}

.image-modal-img {
  max-width: min(100%, 760px);
  max-height: 65vh;
  object-fit: contain;
}

.location-section .container {
  max-width: 1140px;
}

.address-block a {
  color: #0d6efd;
  font-weight: 500;
}

.opening-list {
  border: 1px solid rgba(0,0,0,.14);
  border-radius: .5rem;
  overflow: hidden;
}

.opening-list .list-group-item {
  padding: .85rem 1rem;
}

.calendar-button {
  min-width: 124px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  line-height: 1.05;
  text-align: left;
  white-space: nowrap;
}

.map-frame {
  border: 3px solid #222;
  background: #f7f7f7;
  overflow: hidden;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

.reservation-fields {
  border: 0;
  padding: 0;
  margin: 0;
  transition: opacity .15s ease;
}

.reservation-fields.is-disabled {
  opacity: .45;
}

.reservation-fields legend {
  display: none;
}

@media (max-width: 575.98px) {
  .calendar-button {
    min-width: auto;
    padding-inline: .85rem;
  }

  .map-frame iframe {
    height: 300px;
  }
}

.image-modal-close {
  width: 100%;
}


/* Korrektur: Anreise und Kontakt wieder näher an der Westermayer-Seite, aber ohne harte Rahmen. */
.location-address a {
  color: #0d6efd;
  font-weight: 500;
  text-decoration: none;
}

.location-address a:hover {
  text-decoration: underline;
}

.opening-list {
  border: 0;
  border-radius: .5rem;
  overflow: hidden;
}

.opening-list .list-group-item {
  padding: .9rem 1rem;
  border-color: rgba(0,0,0,.08);
}

.calendar-link {
  text-decoration: none;
}

.calendar-badge {
  min-width: 126px;
  font-size: .78rem;
  font-weight: 400;
}

.map-frame {
  border: 2px solid rgb(0, 0, 0);
  background: #f7f7f7;
  overflow: hidden;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
}

.contact-form-card {
  border-color: rgba(0,0,0,.08);
}

.contact-form .form-label {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .35rem;
}

.contact-form .form-control {
  min-height: 44px;
  font-size: 1rem;
}

.contact-form textarea.form-control {
  min-height: 150px;
}

.reservation-check {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 600;
  color: var(--brand-dark);
  cursor: pointer;
  user-select: none;
}

.reservation-check .form-check-input {
  float: none;
  margin: 0;
  width: 1.15rem;
  height: 1.15rem;
  cursor: pointer;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding-left: 0;
}

.consent-check .form-check-input {
  float: none;
  margin-left: 0;
  margin-top: .2rem;
  flex: 0 0 auto;
}

.consent-check .form-check-label {
  cursor: pointer;
}

.reservation-fields {
  transition: opacity .15s ease;
}

.reservation-fields.is-disabled {
  opacity: .55;
}

.reservation-fields.is-disabled .form-label {
  color: #6c757d;
}

@media (max-width: 575.98px) {
  .calendar-badge {
    min-width: auto;
    padding-inline: .75rem !important;
  }

  .map-frame iframe {
    height: 320px;
  }
}

/* Neuaufbau Kontaktformular: gleiche Feldhöhen, Standard-Bootstrap-Checkboxen, bessere Klickfläche. */
.contact-form-card .card-body {
  padding: 2rem;
}

.contact-form-grid {
  align-items: start;
}

.contact-form .form-label {
  display: block;
  min-height: 1.35rem;
  margin-bottom: .45rem;
  font-size: .96rem;
  font-weight: 700;
  color: var(--ink);
}

.contact-form .form-control {
  width: 100%;
  min-height: 40px;
  padding: .55rem .75rem;
  font-size: 1rem;
  line-height: 1.4;
  border-color: #d8dee4;
  box-sizing: border-box;
}

.contact-form textarea.form-control {
  resize: vertical;
}

.reservation-toggle,
.consent-check {
  min-height: 1.75rem;
  padding-left: 1.85rem;
}

.reservation-toggle .form-check-input,
.consent-check .form-check-input {
  width: 1.15rem;
  height: 1.15rem;
  margin-left: -1.85rem;
  margin-top: .18rem;
  cursor: pointer;
}

.reservation-toggle .form-check-label,
.consent-check .form-check-label {
  cursor: pointer;
  user-select: none;
}

.reservation-toggle .form-check-label {
  font-weight: 700;
  color: var(--brand-dark);
}

.consent-check .form-check-label {
  line-height: 1.45;
}

.reservation-fields {
  transition: opacity .15s ease;
}

.reservation-fields.is-disabled {
  opacity: .55;
}

.reservation-fields.is-disabled .form-label {
  color: #6c757d;
}

@media (max-width: 575.98px) {
  .contact-form-card .card-body {
    padding: 1.25rem;
  }
}

/* Bootstrap-Icons als Webfont: kein SVG-Breiten-/Höhen-Styling auf .bi setzen. */
.bi {
  line-height: 1;
}

.contact-card .bi,
.text-brand.bi {
  color: var(--brand-dark);
}

#cf-submit,
#cf-submit .label,
#cf-submit .submit-icon {
  line-height: 1;
}

#cf-submit .submit-icon {
  display: inline-block;
  font-size: 1.15em;
  margin-left: .1rem;
}

.back-to-top .bi {
  font-size: 1.1rem;
}

/* Feinschliff Kontaktformular: Feldbeschriftungen normalgewichtig und Reservierungsfelder exakt auf Gridbreite. */
.contact-form .form-label,
.reservation-toggle .form-check-label {
  font-weight: 400;
}

.contact-form-grid > .reservation-fields {
  padding-left: calc(var(--bs-gutter-x) * .5);
  padding-right: calc(var(--bs-gutter-x) * .5);
}

.contact-form-grid > .reservation-fields > .row {
  margin-left: calc(var(--bs-gutter-x) * -.5);
  margin-right: calc(var(--bs-gutter-x) * -.5);
}

/* Kleiner Hover-Effekt für Hero-Bild und die vier Infoboxen */
.hero-photo {
  transition: transform .22s ease, box-shadow .22s ease;
  transform-origin: center;
}

.hero a:hover .hero-photo,
.hero a:focus-visible .hero-photo,
.hero-photo:hover {
  transform: scale(1.025);
  box-shadow: 0 14px 34px rgba(0,0,0,.14);
}

#about .card {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  transform-origin: center;
}

#about .card:hover,
#about .card:focus-within {
  transform: scale(1.025);
  box-shadow: 0 14px 34px rgba(0,0,0,.14);
  border-color: rgba(53, 85, 31, .22);
  z-index: 2;
}

/* Barrierefreiheit: Animationen reduzieren, wenn im System so eingestellt */
@media (prefers-reduced-motion: reduce) {
  .hero-photo,
  #about .card {
    transition: none;
  }

  .hero a:hover .hero-photo,
  .hero a:focus-visible .hero-photo,
  .hero-photo:hover,
  #about .card:hover,
  #about .card:focus-within {
    transform: none;
  }
}

.desktop-break {
  display: none;
}

@media (min-width: 900px) {
  .desktop-break {
    display: inline;
  }
}
