/* ========================================
   CSS RESET & NORMALIZATION
   ======================================== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  background: transparent;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background: #fff8f3;
  color: #345346;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote::before, blockquote::after,
q::before, q::after {
  content: '';
}
input, button, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  outline: none;
  border: none;
}
th, td {
  padding: 0;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

/* ========================================
   FONT IMPORTS & BASE TYPOGRAPHY
   ======================================== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,400i,500,700&display=swap');

:root {
  --color-primary: #345346;
  --color-primary-dark: #274235;
  --color-secondary: #D6CABB;
  --color-accent: #7EB86F;
  --color-accent-strong: #62a04d;
  --color-bg: #fff8f3;
  --color-bg-card: #fffaf7;
  --color-footer: #ede3d8;
  --color-neutral: #FFFFFF;
  --color-danger: #c24136;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 4px 16px rgba(52,83,70,0.08);
  --shadow-hover: 0 8px 24px rgba(126,184,111,0.16);

  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;

  --transition: 0.2s cubic-bezier(.55,.16,.44,1.02);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-primary);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--color-primary-dark);
  font-weight: 800;
  line-height: 1.14;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.6rem;
}
h3 {
  font-size: 1.25rem;
  color: var(--color-accent-strong);
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, li, blockquote {
  font-size: 1rem;
  line-height: 1.62;
  margin-bottom: 16px;
}
blockquote {
  border-left: 4px solid var(--color-accent-strong);
  background: #f6fdea;
  color: var(--color-primary);
  padding: 16px 24px;
  margin-bottom: 24px;
  border-radius: var(--radius-sm);
  font-style: italic;
}
strong {
  font-weight: bold;
  color: var(--color-primary-dark);
}

/* ========================================
   LAYOUT CONTAINERS & FLEXBOX PATTERNS
   ======================================== */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--color-bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.02);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.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;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
  color: var(--color-primary-dark);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.01);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border-radius: var(--radius-sm);
  background: #fcf9f7;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(52,83,70,0.05);
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.feature-grid li {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: #f7f3ed;
  border-radius: var(--radius-sm);
  padding: 20px 16px 18px;
  box-shadow: 0 2px 10px rgba(126,184,111,0.10);
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-grid li img {
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  border-radius: 10px;
  box-shadow: 0 1px 5px rgba(52,83,70,0.07);
}
.feature-grid li strong {
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--color-primary-dark);
}
.feature-grid li:hover {
  box-shadow: var(--shadow-hover);
  transform: scale(1.03);
}

.newsletter-section, .newsletter-signup, .thankyou-section {
  background: linear-gradient(93deg, #f3efe7 60%, #e7f0e4 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
header {
  background: var(--color-secondary);
  box-shadow: 0 1px 10px rgba(39,66,53,0.03);
  padding-top: 7px;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
}
.container {
  display: flex;
  flex-direction: column;
  gap: 0;
}
header > .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px 12px;
  max-width: 1120px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary);
  padding: 8px 13px;
  border-radius: 20px;
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-accent);
  color: #fff;
}
.main-nav .cta-primary {
  background: var(--color-accent-strong);
  color: #fff;
  padding: 10px 20px;
  margin-left: 10px;
  border-radius: 24px;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(126,184,111,0.09);
  transition: box-shadow var(--transition), background var(--transition), transform var(--transition);
}
.main-nav .cta-primary:hover,
.main-nav .cta-primary:focus {
  background: var(--color-primary-dark);
  color: #fff;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.mobile-menu-toggle {
  display: none;
  background: var(--color-accent-strong);
  color: #fff;
  border: none;
  border-radius: 40px;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), box-shadow var(--transition);
  margin-left: 16px;
  cursor: pointer;
  z-index: 1203;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-accent);
  box-shadow: 0 2px 8px rgba(98,160,77,0.16);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(246,243,236,0.96);
  z-index: 1400;
  display: flex;
  flex-direction: column;
  transform: translateX(-100vw);
  transition: transform 0.30s cubic-bezier(.55,.16,.44,1.02);
  box-shadow: 0 12px 40px rgba(39,66,53,0.11);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--color-accent-strong);
  color: #fff;
  border-radius: 50%;
  border: none;
  width: 40px;
  height: 40px;
  font-size: 2rem;
  margin: 28px 18px 16px 0;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition);
  z-index: 1401;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-primary-dark);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: 24px 32px;
  margin-top: 18px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--color-primary-dark);
  font-size: 1.3rem;
  background: none;
  border-radius: var(--radius);
  padding: 11px 18px;
  transition: background var(--transition), color var(--transition);
  width: 100%;
  display: block;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--color-accent);
  color: #fff;
}

/* =============== HERO SECTION & CTA BUTTONS =============== */
.hero-section {
  padding: 38px 0 28px 0;
  background: #efe6dd;
  border-bottom: 2px solid #ead7c3;
  margin-bottom: 40px;
}
.hero-section .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-section .content-wrapper {
  gap: 28px;
  align-items: flex-start;
}
.cta-primary {
  display: inline-block;
  padding: 13px 26px;
  background: var(--color-accent-strong);
  color: #fff;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.15rem;
  border-radius: 26px;
  box-shadow: 0 2px 12px rgba(62,160,77,0.13);
  margin-top: 16px;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  letter-spacing: .02em;
  border: none;
  cursor: pointer;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--color-primary-dark);
  color: #fff;
  box-shadow: var(--shadow-hover);
  transform: scale(1.04);
}

/* =============== SPECIAL SECTION STYLES =============== */
.text-section {
  background: #fcf7f0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.services-preview {
  background: #f4fdef;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.services-preview ul {
  margin-bottom: 22px;
}
.services-preview a {
  color: var(--color-accent-strong);
  font-weight: 700;
  transition: color var(--transition);
}
.services-preview a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* =============== FOOTER =============== */
footer {
  background: var(--color-footer);
  box-shadow: 0 -1px 11px rgba(39,66,53,0.04);
  padding: 34px 0 18px 0;
  margin-top: 60px;
}
footer .container {
  flex-direction: column;
  gap: 16px;
  max-width: 1080px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  padding-bottom: 14px;
  justify-content: space-between;
}
footer .branding {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--color-primary-dark);
}
footer .branding img {
  height: 36px;
  border-radius: 9px;
  background: #f4fdef;
  padding: 2px;
}
footer .footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
footer .footer-nav a {
  color: var(--color-primary-dark);
  font-size: 0.98rem;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 16px;
  background: transparent;
  transition: background var(--transition);
}
footer .footer-nav a:hover, footer .footer-nav a:focus {
  background: var(--color-accent);
  color: #fff;
}
footer small {
  color: #556359;
  font-size: 0.88rem;
  font-family: var(--font-body);
}
footer small a {
  color: var(--color-accent-strong);
  text-decoration: underline dotted;
  transition: color var(--transition);
}
footer small a:hover {
  color: var(--color-primary-dark);
}

/* =============== ADDRESS/CONTACT ICONS =============== */
img[alt="Adresse"],
img[alt="Telefon"],
img[alt="E-Mail"],
img[alt="Öffnungszeiten"]
{
  width: 20px;
  height: 20px;
  margin-right: 9px;
  vertical-align: middle;
  background: #f7f3ed;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(52,83,70,0.08);
}

/* =============== UTILITY =============== */
img, svg {
  max-width: 100%;
  display: inline-block;
  vertical-align: middle;
}

ul:not(.main-nav):not(.footer-nav):not(.mobile-nav), ol li {
  margin-bottom: 12px;
  list-style-type: disc;
  padding-left: 1.25em;
}
ul:not(.main-nav):not(.footer-nav):not(.mobile-nav) li {
  margin-bottom: 12px;
  line-height: 1.6;
}

/* =============== COOKIE CONSENT BANNER =============== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fffbe8;
  border-top: 2px solid #ead7c3;
  box-shadow: 0 -4px 18px rgba(52,83,70,0.10);
  padding: 24px 20px;
  z-index: 1600;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  font-size: 1rem;
  border-radius: 18px 18px 0 0;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s, transform 0.35s;
}
.cookie-banner.hidden {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 2px;
}
.cookie-btn, .cookie-settings-btn {
  font-family: var(--font-display);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 20px;
  border: none;
  background: var(--color-accent-strong);
  color: #fff;
  font-size: 1rem;
  margin-top: 0;
  transition: background var(--transition), color var(--transition),box-shadow var(--transition);
  box-shadow: 0 2px 6px rgba(98,160,77,0.07);
  cursor: pointer;
}
.cookie-btn:hover, .cookie-settings-btn:hover {
  background: var(--color-primary-dark);
}
.cookie-settings-btn {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  border: 2px solid var(--color-accent-strong);
}
.cookie-settings-btn:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

/* === COOKIE MODAL === */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 2000;
  transform: translate(-50%,-50%) scale(1);
  background: #fff;
  box-shadow: 0 12px 60px rgba(52,83,70,0.15);
  border-radius: 20px;
  padding: 44px 32px 36px 32px;
  min-width: 320px;
  max-width: 95vw;
  max-height: 92vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.33s cubic-bezier(.4,.15,.44,1);
}
.cookie-modal.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%,-50%) scale(0.97);
}
.cookie-modal .modal-close {
  position: absolute;
  top: 16px;
  right: 22px;
  background: var(--color-accent-strong);
  color: #fff;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  border: none;
  font-size: 1.3rem;
  transition: background var(--transition);
  cursor: pointer;
}
.cookie-modal .modal-close:hover {
  background: var(--color-primary-dark);
}
.cookie-modal h2 {
  margin-bottom: 10px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal .category-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #f1ebdf;
}
.cookie-modal .category-item:last-child {
  border-bottom: none;
}
.cookie-modal .category-label {
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.04rem;
}
.cookie-modal .category-desc {
  font-size: .97rem;
  color: #607357;
}
.cookie-modal input[type="checkbox"] {
  width: 21px;
  height: 21px;
  margin-right: 7px;
  accent-color: var(--color-accent-strong);
}
.cookie-modal .cookie-btns {
  display: flex;
  gap: 16px;
  margin-top: 18px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
  header > .container, footer .content-wrapper, .feature-grid, .card-container {
    flex-direction: column;
    gap: 20px !important;
    align-items: flex-start;
  }
  .feature-grid li {
    max-width: 100%;
    width: 100%;
  }
  .footer-nav {
    flex-wrap: wrap;
    gap: 12px;
  }
  .content-wrapper {
    gap: 15px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 97vw;
    padding-left: 6vw;
    padding-right: 6vw;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .container, .content-wrapper {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  .hero-section {
    padding: 30px 0 14px 0;
  }
  .section, .newsletter-section, .newsletter-signup, .thankyou-section, .text-section, .services-preview {
    padding: 26px 7px;
    margin-bottom: 34px;
  }
  .feature-grid, .card-container, .content-grid {
    gap: 16px;
  }
  .feature-grid li {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 15px 9px 13px;
  }
  .testimonial-card, .card {
    padding: 15px 10px;
    margin-bottom: 14px;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 13px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
@media (max-width: 540px) {
  html {
    font-size: 15px;
  }
  .hero-section,
  .section, .newsletter-section, .newsletter-signup, .services-preview, .thankyou-section, .text-section {
    padding: 18px 3px;
  }
  .cookie-modal {
    max-width: 97vw;
    padding: 22px 9px 20px 9px;
    min-width: unset;
  }
}

/* ========================================
   ANIMATIONS (slide/appearance for menus & banners)
   ======================================== */
@keyframes fadeInUp {
  from {opacity:0; transform:translateY(30px);}
  to {opacity:1; transform:translateY(0);}
}
.mobile-menu.open {
  animation: fadeInUp 0.28s cubic-bezier(.42,.27,0,1.03);
}
.cookie-banner {
  animation: fadeInUp 0.34s cubic-bezier(.4,.44,.36,.99);
}

/* ========================================
   MICRO-INTERACTIONS & ACCESSIBILITY
   ======================================== */
a:focus, button:focus, .cta-primary:focus, .cookie-btn:focus, .cookie-settings-btn:focus,
.mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: 2px dashed var(--color-accent-strong);
  outline-offset: 2px;
}
:focus-visible {
  outline: 2px solid var(--color-accent-strong);
  outline-offset: 2px;
}

::-webkit-input-placeholder { color: #aaa; }
::-moz-placeholder { color: #aaa; }
:-ms-input-placeholder { color: #aaa; }
::placeholder { color: #aaa; }

/* ========================================
   MISC UTILITIES FOR SPACING & FLEX LAYOUTS
   ======================================== */
.mb-20 { margin-bottom: 20px!important; }
.mb-32 { margin-bottom: 32px!important; }
.mb-60 { margin-bottom: 60px!important; }
.mt-20 { margin-top: 20px!important; }
.pt-20 { padding-top: 20px!important; }
.pb-20 { padding-bottom: 20px!important; }
.gap-8 { gap: 8px!important; }
.gap-12 { gap: 12px!important; }
.gap-16 { gap: 16px!important; }
.gap-24 { gap: 24px!important; }

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  .main-nav, .footer-nav, .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal {
    display: none !important;
  }
  header, footer {
    box-shadow: none;
    background: none;
  }
  .section, .newsletter-section, .newsletter-signup, .text-section, .thankyou-section {
    box-shadow: none;
    background: #fff;
    border-radius: 0;
  }
}
