/* =====================
   CSS Reset & Normalize
   ===================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #f8fafc;
  color: #243143;
  min-height: 100vh;
  line-height: 1.6;
  font-size: 1rem;
  -webkit-text-size-adjust: 100%;
}
img {
  max-width: 100%;
  display: block;
}
input, button, textarea, select {
  font: inherit;
}
a {
  color: #264D2C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #558D5A;
}
:focus {
  outline: 2px solid #7DA869;
  outline-offset: 2px;
}

/* =======================
   Brand Fonts & Headings
   ======================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  color: #264D2C;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 14px;
}
p, ul, ol {
  margin-bottom: 18px;
  color: #243143;
}
ul, ol {
  padding-left: 24px;
}
strong {
  font-weight: 700;
  color: #264D2C;
}

/* =====================
   Container & Structure
   ===================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(38,77,44,0.04), 0 0.5px 1.5px rgba(38,77,44,0.06);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
@media (max-width: 768px) {
  .section {
    padding: 24px 10px;
    margin-bottom: 32px;
  }
}

/* ==========================
   Header / Navigation Styles
   ========================== */
header {
  background: #f5f5ec;
  padding: 0;
  border-bottom: 1px solid #e0e1e7;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 18px;
  padding: 0 20px;
}
header a img {
  height: 48px;
}
nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}
nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: #264D2C;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 5px;
  transition: background 0.2s, color 0.2s;
}
nav a:hover, nav a.active {
  background: #e8f5e9;
  color: #243143;
}

/* ========================
   Mobile Navigation Styles
   ======================== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #264D2C;
}
@media (max-width: 1024px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    z-index: 1041;
    margin-left: auto;
  }
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(38,77,44, 0.98);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.77,0,0.175,1);
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  border: none;
  font-size: 2rem;
  margin: 20px 0 0 20px;
  align-self: flex-start;
  cursor: pointer;
  z-index: 1102;
  transition: color 0.15s;
}
.mobile-menu-close:hover {
  color: #7DA869;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 48px;
  width: 100vw;
  padding-left: 32px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 12px 0;
  transition: color 0.15s, background 0.2s;
  border-radius: 6px;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a.active {
  color: #7DA869;
  background: rgba(245,245,236, 0.12);
}
@media (min-width: 1025px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
  overflow: hidden;
}

/* ========================
   Main Button/Call-To-Action
   ======================== */
.cta-primary {
  background: #264D2C;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 14px 34px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(38,77,44,0.08);
  transition: background 0.2s, color 0.2s, box-shadow 0.23s;
  display: inline-block;
  text-align: center;
  margin-top: 8px;
}
.cta-primary:hover, .cta-primary:focus {
  background: #558D5A;
  color: #fff;
  box-shadow: 0 4px 18px rgba(38,77,44,0.14);
}

/* ===================
   Card & List Styles
   =================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(38,77,44,0.06);
  margin-bottom: 20px;
  padding: 32px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 260px;
  flex: 1 1 270px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 4px 18px rgba(38,77,44,0.16);
}
@media (max-width: 900px) {
  .card-container {
    flex-direction: column;
    gap: 18px;
  }
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 16px 0;
}

/* ===============
   List stylings
   =============== */
ul li, ol li {
  position: relative;
  margin-bottom: 14px;
  padding-left: 0.4em;
  color: #264D2C;
  font-size: 1rem;
}
ul li img {
  margin-right: 10px;
  vertical-align: middle;
  height: 24px;
  width: 24px;
  display: inline-block;
}

/* ================
   Testimonials
   ================ */
.testimonial-card {
  display: flex;
  align-items: center;
  background: #f5f5ec;
  border-radius: 10px;
  box-shadow: 0 1.5px 9px rgba(38,77,44,0.07);
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  color: #243143;
  font-size: 1.07rem;
  font-style: italic;
  transition: box-shadow 0.2s;
}
.testimonial-card strong {
  color: #264D2C;
  font-size: 1.09rem;
}
.testimonial-card span {
  color: #7DA869;
  font-style: normal;
  margin-left: 8px;
  font-size: 0.98rem;
}
.testimonial-card:hover {
  box-shadow: 0 4px 18px rgba(38,77,44,0.16);
}

/* ==============
   Footer Styles
   ==============
*/
footer {
  background: #f5f5ec;
  border-top: 1px solid #e4e6ed;
  margin-top: 64px;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  justify-content: space-between;
  padding: 24px 20px 16px 20px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
}
footer nav a {
  color: #264D2C;
  font-size: 1rem;
  font-weight: 600;
  padding: 7px 0;
  transition: color 0.15s;
}
footer nav a:hover {
  color: #7DA869;
  text-decoration: underline;
}
footer .text-section {
  font-size: 0.97rem;
  color: #243143;
  line-height: 1.5;
  text-align: right;
}
@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    gap: 20px;
    padding: 16px 8px 14px 8px;
    text-align: left;
  }
  footer .text-section {
    text-align: left;
  }
}

/* ==============
   Miscellaneous
   ==============
*/
.text-section {
  margin-bottom: 18px;
  color: #264D2C;
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ==============
   Forms (Kontakt)
   ==============
*/
input, textarea {
  font-size: 1rem;
  border: 1px solid #d9e3d5;
  border-radius: 6px;
  padding: 12px;
  width: 100%;
  background: #f9fafb;
  transition: border 0.2s;
  margin-bottom: 18px;
}
input:focus, textarea:focus {
  border: 1.5px solid #7DA869;
  background: #fff;
}
label {
  font-family: 'Montserrat', sans-serif;
  color: #264D2C;
  font-size: 1.05rem;
  margin-bottom: 8px;
  display: block;
}
button, .btn, input[type="submit"] {
  background: #264D2C;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 12px 26px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 1.5px 6px rgba(38,77,44,0.09);
  margin-top: 7px;
  transition: background 0.18s, box-shadow 0.18s;
}
button:hover, .btn:hover, input[type="submit"]:hover {
  background: #7DA869;
  color: #243143;
}

/* For inline SVG icons */
img[alt^="Telefon"],
img[alt^="Adresse"],
img[alt^="E-Mail"],
img[alt^="Öffnungszeiten"] {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  vertical-align: middle;
}

/* ===========================
   Cookie Consent Banner Styles
   =========================== */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 1600;
  background: #fff;
  color: #243143;
  border-top: 2.5px solid #7DA869;
  box-shadow: 0 -2px 16px rgba(38,77,44,0.10);
  padding: 24px 20px 24px 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  justify-content: center;
  animation: cookieBarFadeIn 0.48s cubic-bezier(0.67,0.16,0.49,0.97);
}
@keyframes cookieBarFadeIn {
  from { transform: translateY(30px); opacity:0; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-consent-banner p {
  margin: 0;
  font-size: 1rem;
  color: #264D2C;
}
.cookie-banner-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-btn {
  background: #7DA869;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 26px;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, box-shadow 0.17s;
  box-shadow: 0 1px 4px rgba(38,77,44,0.08);
}
.cookie-btn.accept {
  background: #264D2C;
  color: #fff;
}
.cookie-btn.reject {
  background: #e74c3c;
  color: #fff;
}
.cookie-btn.settings {
  background: #f5f5ec;
  color: #264D2C;
  border: 1.5px solid #7DA869;
}
.cookie-btn:hover {
  opacity: 0.95;
  background: #558D5A;
  color: #fff;
}
.cookie-btn.reject:hover {
  background: #ab291a;
}
.cookie-btn.settings:hover {
  background: #fff;
  color: #264D2C;
  border-color: #264D2C;
}
@media (max-width: 600px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 10px 18px 10px;
  }
  .cookie-banner-buttons {
    width: 100%;
    justify-content: flex-start;
    gap: 9px;
  }
}

/* ===============================
   Cookie Modal (Preferences Panel)
   =============================== */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 1700;
  background: rgba(36,49,67,0.22);
  justify-content: center;
  align-items: center;
  animation: modalFadeIn 0.35s cubic-bezier(0.65, 0.16, 0.48, 0.92);
}
.cookie-modal.open {
  display: flex;
}
@keyframes modalFadeIn {
  from { opacity:0; }
  to { opacity:1; }
}
.cookie-modal-content {
  background: #fff;
  border-radius: 14px;
  max-width: 430px;
  width: 95vw;
  box-shadow: 0 10px 40px rgba(38,77,44,0.12);
  padding: 38px 24px 22px 24px;
  color: #264D2C;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: modalScaleIn 0.33s cubic-bezier(0.78,0,0.24,1);
}
@keyframes modalScaleIn {
  from { transform: scale(0.88); opacity:0; }
  to { transform: scale(1); opacity:1; }
}
.cookie-modal-content h2 {
  font-size: 1.32rem;
  margin-bottom: 10px;
}
.cookie-modal-content ul {
  list-style: none;
  padding: 0;
}
.cookie-modal-content li {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 17px;
  color: #264D2C;
  font-size: 1rem;
}
.cookie-modal-content label {
  cursor: pointer;
  font-weight: 500;
  color: #264D2C;
}
.cookie-toggle {
  width: 44px;
  height: 26px;
  border-radius: 16px;
  background: #e1e9e1;
  position: relative;
  margin-right: 9px;
  transition: background 0.21s;
  display: inline-flex;
  align-items: center;
}
.cookie-toggle input {
  display: none;
}
.cookie-toggle span {
  display: block;
  width: 22px;
  height: 22px;
  background: #7DA869;
  border-radius: 50%;
  position: absolute;
  left: 3px; top: 2px;
  transition: left 0.21s, background 0.21s;
  box-shadow: 0 1px 3px rgba(38,77,44,0.09);
}
.cookie-toggle input:checked + span {
  background: #264D2C;
  left: 19px;
}
.cookie-modal-close {
  position: absolute;
  top: 18px; right: 20px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #7DA869;
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal-close:hover {
  color: #264D2C;
}

.cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 16px;
}
@media (max-width: 600px) {
  .cookie-modal-content {
    padding: 22px 7px 14px 10px;
    max-width: 95vw;
  }
}

/* ================================
   Responsive & Flex Adjustments
   ================================ */
@media (max-width: 1024px) {
  .container {
    padding: 0 10px;
  }
}
@media (max-width: 900px) {
  .footer .container, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px !important;
  }
}
@media (max-width: 768px) {
  h1 {font-size: 1.65rem;}
  h2 {font-size: 1.24rem;}
  .card {
    padding: 18px 12px;
    min-width: 0;
  }
}

/* ==============
   Utility Classes
   ==============
*/
.gap-20 { gap: 20px; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.flex-row { display: flex; flex-direction: row; }
.flex-col { display: flex; flex-direction: column; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.text-center { text-align: center; }

/* =============
   Animations
   ============= */
.fade-in {
  animation: fadeIn1 0.6s cubic-bezier(0.68, 0.23, 0.31, 0.91) both;
}
@keyframes fadeIn1 {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* =============
   Accessibility
   ============= */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 0;
  width: auto;
  height: auto;
  background: #7DA869;
  color: #fff;
  padding: 8px 20px;
  z-index: 10000;
}

/* =====================
   Custom Scrollbar
   ===================== */
::-webkit-scrollbar {
  width: 10px;
  background: #f5f5ec;
}
::-webkit-scrollbar-thumb {
  background: #d1dee5;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b1c8b6;
}

/* ===================
   End Of Styles
   =================== */
