:root {
  --accent: #8a4a32;
  --accent-hover: #6d3827;
  --focus: #6745a5;
  --logo-green: #49d522;
  --forest: #2e671f;
  --forest-deep: #20392c;
  --sage: #edf5e9;
  --cream: #f5f9f0;
  --ink: #25332a;
  --muted: #59665d;
  --white: #fff;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

.skip-link {
  display: block;
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1100;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--forest-deep);
  border: 2px solid var(--forest);
  border-radius: 0.5rem;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

body.readable-mode {
  font-size: 1.25rem;
  line-height: 1.9;
  --ink: #17231b;
  --muted: #39483e;
  --sage: #e4f0df;
  --cream: #f1f7eb;
}

body.readable-mode p,
body.readable-mode li {
  max-width: 75ch;
}

body.readable-mode a:not(.btn-green) {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

body.readable-mode .card-text {
  color: #39483e;
  font-size: 1.15rem;
}

body.readable-mode .navbar .nav-link {
  color: var(--forest-deep);
  font-size: 1.1rem;
}

body.readable-mode .card-title {
  font-size: 1.35rem;
}

body.readable-mode .btn-green {
  font-size: 1.1rem;
}

body {
  background-color: var(--white);
  color: var(--ink);
  font-family: Tahoma, Arial, sans-serif;
  font-size: 1.1rem;
  line-height: 1.75;
}

h1, h2, h3 {
  color: var(--forest-deep);
  letter-spacing: -0.025em;
}

h2 {
  font-weight: 700;
  margin-bottom: 1.5rem !important;
}

.navbar {
  background-color: var(--white);
  padding: 0.8rem 0;
  border-top: 0;
  border-bottom: 1px solid #e7eee3;
  box-shadow: 0 4px 18px rgba(34, 63, 42, 0.06);
}

.navbar > .container {
  gap: 1.25rem;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  padding: 0;
  margin-right: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  flex-shrink: 0;
}

.navbar-brand img {
  display: block;
  width: clamp(230px, 24vw, 290px);
  height: auto;
}

.navbar .navbar-nav {
  gap: 0.15rem;
}

.navbar .nav-link {
  color: var(--forest-deep);
  font-size: 1.05rem;
  font-weight: 600;
  transition: color 180ms ease, background-color 180ms ease;
  border-radius: 999px;
  padding: 0.6rem 0.72rem !important;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus-visible {
  color: var(--accent);
  background-color: var(--sage);
}

.navbar .navbar-toggler {
  border-color: var(--accent);
}

.navbar .navbar-toggler-icon {
  filter: brightness(0) saturate(100%) invert(34%) sepia(20%) saturate(1094%) hue-rotate(65deg) brightness(91%) contrast(88%);
}

.navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(103, 69, 165, 0.24);
}

.hero-section {
  background-color: var(--cream);
  padding: clamp(4rem, 8vw, 7rem) 0;
  overflow: hidden;
}

.hero-section h1 {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 700;
  line-height: 1.08;
  max-width: 12ch;
  margin-bottom: 1.25rem;
}

.hero-section .lead {
  color: var(--muted);
  max-width: 34rem;
  font-size: 1.2rem;
}

.ai-image-figure {
  position: relative;
  margin: 0;
}

.ai-image-label {
  display: inline-block;
  margin: 0.55rem 0.15rem 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.hero-image {
  width: 100%;
  max-height: 490px;
  object-fit: cover;
  border-radius: 1.5rem 1.5rem 1.5rem 5rem;
  box-shadow: 0 22px 55px rgba(40, 62, 46, 0.16);
}

.btn-green {
  background-color: var(--accent);
  color: var(--white);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.75rem 1.4rem;
  font-weight: 600;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.btn-green:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(32, 63, 48, 0.18);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.section-dark {
  background-color: var(--sage);
}

#about p,
#kontakt > .container > p:first-of-type,
#oeffnungszeiten p {
  max-width: 850px;
}

#leistungen {
  background-color: #fff;
}

#leistungen .card {
  border: 1px solid #e6eee1;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(35, 57, 42, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

#leistungen .card:hover {
  transform: translateY(-6px);
  border-color: #cfe5c6;
  box-shadow: 0 16px 32px rgba(35, 57, 42, 0.12);
}

#leistungen .card-img-top {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 350ms ease;
}

#leistungen .card:hover .card-img-top {
  transform: scale(1.035);
}

#leistungen .card-body {
  padding: 1.5rem 1.25rem;
}

.card-body i {
  display: inline-grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background-color: var(--sage);
  color: var(--forest);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  transition: background-color 180ms ease, color 180ms ease;
}

#leistungen .card:hover .card-body i {
  background-color: var(--forest);
  color: var(--white);
}

.card-text {
  color: var(--muted);
  font-size: 1rem;
}

#kontakt a:not(.btn-green),
#datenschutz a {
  color: var(--forest);
  text-underline-offset: 3px;
}

#oeffnungszeiten {
  background-color: var(--cream);
}

#datenschutz .container {
  max-width: 900px;
}

#datenschutz h3 {
  margin-top: 2rem;
  font-size: 1.05rem;
}

#datenschutz p {
  color: var(--muted);
}

footer {
  background-color: var(--sage);
  color: var(--forest-deep);
  border-top: 1px solid #e0eadb;
  padding: 1.5rem 0;
}

footer p {
  margin: 0;
}

footer a {
  color: var(--forest) !important;
  text-underline-offset: 3px;
}

@media (max-width: 1199.98px) {
  .navbar .nav-link {
    font-size: 1rem;
    padding: 0.55rem 0.55rem !important;
  }

  .navbar-brand img {
    width: 225px;
  }
}

@media (max-width: 991.98px) {
  .navbar .navbar-collapse {
    padding-top: 0.75rem;
  }

  .navbar .navbar-nav {
    align-items: stretch !important;
  }

  .navbar .nav-link {
    border-radius: 0.5rem;
    font-size: 1.1rem;
    padding: 0.65rem 0.8rem !important;
  }
}

@media (max-width: 767.98px) {
  .navbar-brand img {
    width: min(62vw, 250px);
  }

  .hero-section {
    text-align: center;
  }

  .hero-section h1,
  .hero-section .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image {
    max-height: 360px;
    border-radius: 1.25rem 1.25rem 1.25rem 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
