/* ----------------------------------------------------
   CSS RESET & NORMALIZE (Mobile-first)
----------------------------------------------------- */
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;
  font-size: 100%;
  font: inherit;
  box-sizing: border-box;
  vertical-align: baseline;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #F3F1ED;
  color: #37434F;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg {
  display: block;
  max-width: 100%;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
button, input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-sizing: border-box;
}

/* ----------------------------------------------------
   VARIABLES & TYPOGRAPHY
----------------------------------------------------- */
:root {
  --primary: #37434F;
  --secondary: #CDA274;
  --accent: #F3F1ED;
  --accent-light:#F8F6F2;
  --error: #A94442;
  --success: #588157;

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-md: 0 4px 16px rgba(205, 162, 116, 0.10);
  --shadow-lg: 0 8px 36px rgba(55, 67, 79, 0.13);

  /* Font weights */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
}

h1, h2, h3, h4,
h1 *, h2 *, h3 *, h4 * {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: var(--fw-bold);
  color: var(--primary);
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.125rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}
p, li, ul, ol {
  font-size: 1rem;
  color: var(--primary);
}
p {
  margin-bottom: 1em;
}
strong {
  font-weight: var(--fw-bold);
}

/* SCALING FONTS RESPONSIVELY (WITHOUT clamp) */
@media (min-width: 540px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
}
@media (min-width: 900px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.25rem; }
}

/* ----------------------------------------------------
   LAYOUT CONTAINERS
----------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section, section {
  margin-bottom: 60px;
  padding: 40px 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.text-section {
  background: var(--accent-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 32px 20px;
  margin-bottom: 32px;
}
.cta-bg {
  background: var(--secondary);
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 36px 20px 36px 20px;
  align-items: center;
  text-align: center;
}

@media (min-width: 850px) {
  .content-wrapper {
    padding: 0 16px;
  }
}

/* -----------------------------------------------------
   NAVIGATION & HEADER
------------------------------------------------------ */
header {
  background: #fff;
  box-shadow: 0 2px 18px rgba(205,162,116,0.07);
  position: sticky;
  top: 0;
  z-index: 1040;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 12px;
}
.logo img {
  height: 48px;
  border-radius: var(--radius-lg);
}
header nav {
  display: none;
}
header nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  margin: 0 8px;
  color: var(--primary);
  font-weight: var(--fw-medium);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}
header nav a:hover, header nav a:focus {
  background: var(--accent-light);
  color: var(--secondary);
}

.cta.primary {
  background: var(--secondary);
  color: #fff;
  border-radius: var(--radius-lg);
  font-family: 'Montserrat', sans-serif;
  font-weight: var(--fw-semibold);
  padding: 12px 28px;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  margin-left: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.20s, color 0.20s, box-shadow 0.20s, transform 0.13s;
  outline: none;
  text-align: center;
  display: inline-block;
}
.cta.primary:active {
  transform: scale(0.97);
}
.cta.primary:hover, .cta.primary:focus {
  background: #b99161;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta.secondary {
  background: #fff;
  color: var(--secondary);
  border: 2px solid var(--secondary);
  border-radius: var(--radius-lg);
  font-family: 'Montserrat', sans-serif;
  font-weight: var(--fw-semibold);
  padding: 12px 28px;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  margin-top: 16px;
  margin-left: 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
  display: inline-block;
  text-align: center;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--secondary);
  color: #fff;
}

/* Burger menu for mobile NAV */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  color: var(--primary);
  font-size: 2rem;
  border-radius: var(--radius-lg);
  cursor: pointer;
  margin-left: 8px;
  border: none;
  transition: background .18s, color .18s;
  z-index: 1061;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--secondary);
  color: #fff;
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(55, 67, 79, 0.97);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.4s cubic-bezier(.81,.23,.46,1.14);
  z-index: 1060;
  padding: 0 32px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2rem;
  margin-top: 32px;
  margin-bottom: 24px;
  border-radius: var(--radius-lg);
  padding: 8px 14px;
  align-self: flex-end;
  cursor: pointer;
  transition: background .16s;
  border: none;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(205,162,116,0.20);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  color: #fff;
  font-weight: var(--fw-semibold);
  background: transparent;
  padding: 12px 8px 12px 0;
  border-radius: var(--radius-md);
  margin: 0;
  transition: background 0.16s, color 0.16s;
  min-width: 44px;
  min-height: 44px;
  outline: none;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--secondary);
  color: #fff;
}

@media (min-width: 1080px) {
  .mobile-menu-toggle {
    display: none;
  }
  header nav {
    display: flex !important;
    flex-direction: row;
    gap: 0.5em;
    margin-left: 24px;
    align-items: center;
  }
}

/* Hide mobile menu when not open */
@media (max-width: 1079px) {
  header nav {
    display: none !important;
  }
}

/* -----------------------------------------------------
   HERO SECTIONS
------------------------------------------------------ */
.hero {
  padding: 56px 0 40px 0;
  background: linear-gradient(180deg, #F3F1ED 85%, #CDA274 170%);
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
  padding: 0 0;
  width: 100%;
  gap: 18px;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.25rem;
  margin-bottom: 8px;
}
.hero p {
  color: var(--primary);
  font-size: 1.2rem;
}
.hero .cta {
  margin-top: 24px;
}
@media (min-width: 900px) {
  .hero {
      padding: 84px 0 60px 0;
  }
  .hero h1 { font-size: 2.7rem; }
}

/* -----------------------------------------------------
   FLEXBOX GRIDS & CARD CONTAINERS
------------------------------------------------------ */
/* universal card/flex spacing patterns as required */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: box-shadow 0.15s, transform 0.13s;
}
.card:hover, .card:focus {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px) scale(1.01);
}
.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: 24px;
  }
}

/* Feature cards */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px 22px 18px 22px;
  flex: 1 1 260px;
  max-width: 325px;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow .18s, transform .15s;
}
.feature-card img {
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
}
.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--primary);
}
.feature-card:hover, .feature-card:focus {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

/* Services / Leistungen */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 12px;
  margin-bottom: 16px;
}
.service-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 20px 18px;
  min-width: 210px;
  transition: box-shadow .16s, transform .12s;
}
.service-item strong {
  color: var(--secondary);
}
.service-item:hover, .service-item:focus {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

@media (min-width: 720px) {
  .service-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
  }
  .service-item {
    flex: 1 1 280px;
    max-width: 385px;
  }
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 18px 16px;
  margin-bottom: 0;
  transition: box-shadow .13s;
  position: relative;
}
.faq-item h3 {
  font-size: 1.1rem;
  color: var(--secondary);
  margin-bottom: 6px;
}
.faq-item p {
  margin-bottom: 0;
}
.faq-item:hover, .faq-item:focus {
  box-shadow: var(--shadow-lg);
}

/* Testimonial cards */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 15px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px 24px 23px 24px;
  flex: 1 1 280px;
  min-width: 210px;
  max-width: 420px;
  transition: box-shadow .15s, transform .12s;
  margin-bottom: 8px;
}
.testimonial-card p {
  font-size: 1.02rem;
  color: var(--primary);
  margin-bottom: 0;
}
.testimonial-meta {
  font-size: 0.97rem;
  color: var(--secondary);
  font-weight: var(--fw-semibold);
  margin-top: 4px;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

@media (max-width: 600px) {
  .testimonial-slider {
    flex-direction: column;
    gap: 18px;
  }
}

/* CTA thank you */
.cta-thankyou {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  margin-top: 32px;
}

/* --------------------------------------------------
   LISTS, LINKS, TABLES
--------------------------------------------------- */
ul, ol {
  list-style: none;
  margin: 0 0 0.5em 0;
  padding: 0;
}
ul li, ol li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: 1rem;
}
ul li::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--secondary);
  position: absolute;
  left: 0;
  top: 8px;
}
a {
  color: var(--secondary);
  transition: color .16s;
}
a:hover, a:focus {
  color: var(--primary);
  text-decoration: underline;
}

/* --------------------------------------------------
   FOOTER
--------------------------------------------------- */
footer {
  background: var(--primary);
  color: #fff;
  padding: 48px 0 38px 0;
  margin-top: 48px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
.footer-brand img {
  height: 39px;
  margin-bottom: 10px;
  border-radius: var(--radius-lg);
}
.footer-brand p {
  font-size: 1.05rem;
  color: #fff;
  opacity: 0.82;
}
.footer-links, .footer-legal, .footer-contact, .footer-social {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 15px 22px;
  align-items: center;
}
.footer-links a, .footer-legal a {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.99rem;
  font-weight: var(--fw-medium);
  opacity: 0.88;
  transition: color 0.17s, opacity 0.14s;
  border-radius: var(--radius-sm);
  padding: 4px 7px;
}
.footer-links a:hover, .footer-legal a:hover, .footer-links a:focus, .footer-legal a:focus {
  color: var(--secondary);
  opacity: 1;
  background: #fff1ee18;
}
.footer-contact a {
  color: var(--secondary);
  font-weight: var(--fw-semibold);
}
.footer-social a {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 5px 5px 2px 5px;
  margin-right: 3px;
  box-shadow: 0 1px 6px rgba(205, 162, 116, 0.13);
  transition: background 0.15s, transform .13s;
  border: none;
}
.footer-social a img {
  width: 22px;
  height: 22px;
}
.footer-social a:hover, .footer-social a:focus {
  background: var(--secondary);
  transform: scale(1.08);
}

@media (min-width: 750px) {
  footer .container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 32px;
    align-items: flex-start;
  }
  .footer-brand {
    flex: 1 1 250px;
    min-width: 220px;
  }
  .footer-links, .footer-legal {
    flex: 1 1 180px;
    min-width: 140px;
    flex-wrap: wrap;
  }
  .footer-contact {
    flex: 1 1 260px;
    min-width: 180px;
  }
  .footer-social {
    margin-left: auto;
  }
}

/* --------------------------------------------------
   MISCELLANEOUS / UTILITIES
--------------------------------------------------- */
.contact-hint {
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 10px rgba(205, 162, 116, 0.09);
  padding: 16px 14px;
  margin-top: 18px;
  font-size: 1.01rem;
}
.text-section a { text-decoration: underline; }
strong { color: var(--primary);}

/* --------------------------------------------------
   COOKIE CONSENT BANNER & MODAL
--------------------------------------------------- */
#cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  z-index: 12000;
  background: #fff;
  border-top: 3px solid var(--secondary);
  box-shadow: 0 -2px 32px rgba(55, 67, 79, .08);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px 16px 16px;
  gap: 12px;
  font-size: 1rem;
  transition: transform 0.38s cubic-bezier(.7,.1,.28,1.01);
  transform: translateY(200%);
  opacity: 0;
  pointer-events: none;
}
#cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
#cookie-banner .cookie-actions {
  display: flex;
  gap: 18px;
  margin-top: 5px;
}
#cookie-banner button {
  padding: 10px 22px;
  font-family: 'Montserrat',sans-serif;
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-md);
  border: none;
  background: var(--secondary);
  color: #fff;
  cursor: pointer;
  transition: background .17s, color .17s;
}
#cookie-banner button:hover, #cookie-banner button:focus {
  background: var(--primary);
  color: #fff;
}
#cookie-banner .cookie-settings-btn {
  background: #fff;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}
#cookie-banner .cookie-settings-btn:hover,
#cookie-banner .cookie-settings-btn:focus {
  background: var(--secondary);
  color: #fff;
}

/* Cookie modal */
#cookie-modal {
  position: fixed;
  left: 0; right: 0;
  top: 0; bottom: 0;
  z-index: 12010;
  background: rgba(55, 67, 79, 0.92);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(.7,.1,.28,1.01);
}
#cookie-modal.show {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 34px 26px 20px 26px;
  max-width: 430px;
  width: 93vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.cookie-modal-content h2 {
  margin-bottom: 7px;
  color: var(--secondary);
}
.cookie-modal-content ul {
  width: 100%;
}
.cookie-modal-content li {
  margin-bottom: 12px;
  font-size: 1.01rem;
  padding-left: 9px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 9px;
}
.cookie-category input[type=checkbox] {
  width: 1.35em;
  height: 1.35em;
  accent-color: var(--secondary);
}
.cookie-category input[type=checkbox][disabled] {
  accent-color: var(--accent);
  opacity: 0.7;
}
.cookie-actions-modal {
  display: flex;
  gap: 18px;
  margin-top: 9px;
}
.cookie-modal-content button,
.cookie-modal-content .modal-close-btn {
  padding: 10px 20px;
  font-family: 'Montserrat',sans-serif;
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-sm);
  border: none;
  background: var(--secondary);
  color: #fff;
  cursor: pointer;
  transition: background .17s;
}
.cookie-modal-content .modal-close-btn {
  background: #fff;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}
.cookie-modal-content .modal-close-btn:hover { background: var(--secondary); color: #fff; }

@media (max-width: 600px) {
  .cookie-modal-content{
    padding: 17px 5vw 15px 5vw;
    max-width: 98vw;
  }
}

/* ---------------------------------------------------
   ANIMATIONS & MICRO-INTERACTIONS
----------------------------------------------------- */
.cta, .card, .service-item, .feature-card, .testimonial-card, .faq-item, .footer-social a {
  transition: box-shadow .15s, background .15s, color .14s, transform .12s;
}
button:active, .cta:active {
  transform: scale(0.98);
}

/* Soft fade-in for major content blocks */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}
section, .hero, .feature-grid, .testimonial-card, .service-list, .faq-list {
  animation: fadeInUp 0.7s cubic-bezier(.84,.23,.17,.91) both;
}

/* ---------------------------------------------------
   RESPONSIVENESS
------------------------------------------------------ */
@media (max-width: 1079px) {
  .container {
    max-width: 98vw;
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-width: 720px) {
  section, .section {
    padding: 24px 0;
    margin-bottom: 40px;
  }
  .card-container, .feature-grid, .content-grid, .testimonial-slider, .service-list {
    flex-direction: column;
    gap: 16px;
  }
  .card, .feature-card, .service-item, .testimonial-card {
    min-width: 0;
    max-width: 100%;
  }
  .cta-bg {
    padding: 20px 8px;
    margin-bottom: 24px;
  }
}

/* Utility class for hiding (eg. mobile menu when not open) */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}
