/* ================== CSS RESET & BASE ================== */
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;
  box-sizing: border-box;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #f8f7f5;
  color: #1B2838;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  min-height: 100vh;
  font-size: 16px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #228B22;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #FFDB00;
  outline-offset: 2px;
}
a:hover {
  color: #B29643;
}
ul, ol {
  list-style: none;
}
button, input[type="button"], input[type="submit"], .cta-primary {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  cursor: pointer;
  border: none;
  outline: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.18s;
}

/* ================== BRAND COLOR PALETTE ================== */
:root {
  --primary: #228B22;
  --primary-dark: #166c16;
  --secondary: #1B2838;
  --base-dark: #222222;
  --accent: #FFDB00;
  --accent-gold: #B29643;
  --background: #f8f7f5;
  --white: #fff;
  --gray-light: #e5e5e5;
  --gray-mid: #b9b9b9;
  --gray-dark: #555;
  --success: #1BA966;
}

/* ================== TYPOGRAPHY & HEADINGS ================== */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #1B2838;
  font-weight: 600;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  line-height: 1.18;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.42rem;
  line-height: 1.22;
  margin-bottom: 14px;
}
h4, h5 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
p, ul, ol, .text-section {
  font-size: 1rem;
  color: #222;
  margin-bottom: 14px;
}
@media (max-width: 768px) {
  h1 {
    font-size: 1.7rem;
  }
  h2 {
    font-size: 1.3rem;
  }
  h3 {
    font-size: 1.05rem;
  }
}
strong, b {
  font-weight: 700;
}
small {
  font-size: 0.88em;
  color: var(--gray-dark);
}

/* ================== LUXURY PREMIUM DETAILS ================== */
.cta-primary, .cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border-radius: 28px;
  font-weight: 600;
  padding: 13px 38px;
  font-size: 1.1rem;
  margin-top: 16px;
  margin-bottom: 16px;
  text-decoration: none;
  background: linear-gradient(90deg, #FFDB00 30%, #B29643 100%);
  color: #1B2838;
  box-shadow: 0 2px 16px 0 rgba(34, 139, 34, 0.06);
  border: 0.5px solid #B29643;
  letter-spacing: 0.02em;
  transition: box-shadow 0.2s, background 0.24s, color 0.18s;
}
.cta-primary:hover, .cta-primary:focus {
  background: linear-gradient(90deg, #B29643 20%, #FFDB00 80%);
  color: #228B22;
  box-shadow: 0 2px 28px 0 rgba(178, 150, 67, 0.14);
}
.cta-link {
  background: transparent;
  font-size: 1rem;
  color: #B29643;
  border: 1.5px solid #B29643;
  box-shadow: none;
  padding: 11px 28px;
  margin-top: 10px;
  margin-bottom: 10px;
  transition: background 0.2s, color 0.15s;
}
.cta-link:hover, .cta-link:focus {
  background: #fffbec;
  color: #1B2838;
  border-color: #FFDB00;
}
.badge {
  background: #FFDB00;
  color: #1B2838;
  border-radius: 12px;
  padding: 6px 16px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  display: inline-block;
  margin-top: 8px;
  box-shadow: 0 2px 8px 0 rgba(255,219,0,.07);
}

/* ================== CONTAINER & LAYOUT ================== */
.container {
  width: 100%;
  max-width: 1200px;
  padding-left: 20px;
  padding-right: 20px;
  margin-left: auto;
  margin-right: auto;
}
.content-wrapper {
  margin: 0 auto;
  background: var(--white);
  border-radius: 28px;
  box-shadow: 0 4px 28px 0 rgba(34, 139, 34, 0.09);
  padding: 48px 38px 36px;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (max-width: 768px) {
  .content-wrapper {
    border-radius: 18px;
    padding: 28px 12px 24px;
  }
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ========== FLEXBOX LAYOUTS (MANDATORY PATTERNS) ========== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 6px 32px 0 rgba(34, 139, 34, 0.068);
  padding: 28px 24px;
  flex: 1 1 280px;
  min-width: 260px;
  transition: box-shadow 0.18s, transform 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 12px 44px 0 rgba(178, 150, 67, 0.13);
  transform: translateY(-3px) scale(1.015);
}
.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 !important;
    gap: 18px;
    align-items: flex-start;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fffbe9;
  border-radius: 16px;
  box-shadow: 0 2px 18px 0 rgba(178, 150, 67, 0.09);
  margin-bottom: 20px;
  font-style: italic;
  position: relative;
  flex: 1 1 320px;
  min-width: 240px;
  color: #1B2838;
}
.testimonial-card p {
  font-size: 1.09rem;
  color: #111;
  margin-bottom: 10px;
}
.testimonial-card span {
  color: #B29643;
  font-weight: 600;
  font-style: normal;
  font-size: 1rem;
  margin-left: 8px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ================== HOMEPAGE FEATURE GRID ================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 18px;
}
.feature-grid li {
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #166c16;
  font-weight: 600;
  font-size: 1rem;
  padding: 7px 16px;
  background: #fffdef;
  border-radius: 11px;
  box-shadow: 0 2px 8px 0 rgba(255,219,0,0.07);
  margin-bottom: 0;
}
.feature-grid img {
  width: 28px;
  height: 28px;
}
@media (max-width: 700px) {
  .feature-grid {
    gap: 13px;
    flex-direction: column;
  }
}

/* ================== SERVICES OVERVIEW & LISTS ================== */
.services-overview, .service-list, .workshop-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
  margin-bottom: 18px;
}
.services-overview > div, .service-list > div, .workshop-list > div {
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 2px 15px 0 rgba(34,139,34,0.07);
  padding: 26px 22px 22px;
  min-width: 220px;
  flex: 1 1 300px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: box-shadow 0.2s, transform 0.21s;
  border: 1px solid #f6e6b4;
}
.services-overview > div:hover, .service-list > div:hover, .workshop-list > div:hover {
  box-shadow: 0 8px 36px 0 rgba(178, 150, 67, 0.11);
  transform: translateY(-2px) scale(1.015);
  border-color: #FFDB00;
}
@media (max-width:900px) {
  .services-overview, .service-list, .workshop-list {
    flex-direction: column;
    gap: 18px;
  }
}
.benefits-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 12px;
}
.benefits-grid li {
  background: #fff;
  border-left: 6px solid #B29643;
  padding: 12px 16px;
  border-radius: 9px;
  color: #166c16;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
}
@media (max-width:700px) {
  .benefits-grid {
    flex-direction: column;
  }
}

/* ================== BLOG TEASERS & GRIDS ================== */
.blog-teasers, .blog-posts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.blog-teasers > div, .blog-posts-grid > div {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(34,139,34, 0.07);
  padding: 23px 19px 16px;
  min-width: 200px;
  flex: 1 1 250px;
  transition: box-shadow 0.2s, transform 0.19s;
  border: 1px solid #f6e6b4;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.blog-teasers > div a, .blog-posts-grid > div a {
  margin-top: 6px;
  color: #B29643;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.97rem;
  transition: color 0.16s;
}
.blog-teasers > div a:hover, .blog-posts-grid > div a:hover {
  color: #228B22;
}

/* ================== FOOTER STYLES ================== */
footer {
  background: #1B2838;
  color: #fff;
  padding: 64px 0 24px;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-navigation, .footer-legal, .footer-contact, .footer-social {
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-width: 160px;
}
.footer-navigation a, .footer-legal a {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 5px;
  font-weight: 500;
  opacity: .9;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.footer-navigation a:hover, .footer-legal a:hover {
  color: #FFDB00;
}
.footer-social {
  align-items: flex-start;
  gap: 8px;
}
.footer-social a img {
  width: 32px;
  height: 32px;
  opacity: .86;
  transition: opacity 0.16s;
}
.footer-social a:hover img {
  opacity: 1;
}
.footer-contact strong {
  color: #FFDB00;
  font-family: 'Montserrat', sans-serif;
}
.footer-contact a {
  color: #FFDB00;
  font-weight: 600;
  text-decoration: underline;
  font-size: 1rem;
}
@media (max-width:950px) {
  footer .container {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}

/* ================== HEADER & NAVIGATION ================== */
header {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 20px 0 rgba(178,150,67,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  padding: 10px 0 0 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 65px;
}
header img[alt="BriskWagon Leben"] {
  height: 50px;
  margin-right: 28px;
  margin-left: 5px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1 1;
}
.main-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.08rem;
  color: #222222;
  font-weight: 500;
  opacity: .97;
  padding: 9px 14px;
  border-radius: 8px;
  transition: background 0.17s, color 0.17s;
}
.main-nav a:hover, .main-nav a.active {
  background: #fffbe9;
  color: #B29643;
}
.main-nav .cta-primary {
  margin-left: 16px;
  font-size: 1.03rem;
  padding: 10px 25px;
  background: linear-gradient(90deg, #FFDB00 20%, #B29643 100%);
  color: #1B2838;
  border: 1px solid #B29643;
  box-shadow: 0 1px 6px 0 rgba(178, 150, 67, 0.07);
  transition: background 0.18s, color 0.17s;
}
.main-nav .cta-primary:hover, .main-nav .cta-primary:focus {
  background: #fffbe9;
  color: #166c16;
}
/* ----------- MOBILE NAVIGATION ----------- */
.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  color: #B29643;
  background: none;
  border: none;
  padding: 6px 12px;
  z-index: 3002;
  transition: color 0.18s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #FFDB00;
}
@media (max-width: 990px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,34,34,0.97);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 30px;
  padding-left: 0;
  transform: translateX(-100vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(.19,1,.22,1), opacity 0.16s;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 30px;
  font-size: 2.3rem;
  color: #FFDB00;
  background: none;
  border: none;
  z-index: 3100;
  cursor: pointer;
  font-weight: 700;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  margin-top: 60px;
  margin-left: 30px;
  width: 85vw;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  border-radius: 8px;
  padding: 13px 22px;
  margin-bottom: 3px;
  transition: background 0.19s;
  width: 100%;
  background: none;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #FFDB00;
  color: #1B2838;
}
.mobile-nav a:last-child {
  color: #FFDB00;
  margin-top: 12px;
  border: 1px solid #FFDB00;
}

@media (min-width: 991px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ================== COOKIE CONSENT BANNER ================== */
#cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fffef6;
  color: #1B2838;
  box-shadow: 0 -2px 17px 0 rgba(178, 150, 67, 0.11);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 22px 30px;
  font-size: 1rem;
  opacity: 1;
  transition: transform 0.28s cubic-bezier(.19,1,.22,1), opacity 0.15s;
  gap: 28px;
}
#cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120px);
}
#cookie-banner p {
  margin: 0;
  color: #1B2838;
  flex: 1 1 60%;
  max-width: 540px;
}
.cookie-actions {
  display: flex;
  gap: 18px;
  flex: 0 0 auto;
}
.cookie-btn, .cookie-settings-btn {
  font-family: 'Montserrat', sans-serif;
  border: none;
  border-radius: 23px;
  padding: 10px 23px;
  font-size: 1rem;
  font-weight: 600;
  margin-left: 0;
  background: #FFDB00;
  color: #1B2838;
  box-shadow: 0 0px 8px 0 rgba(255,219,0,.08);
  cursor: pointer;
  transition: background 0.19s, color 0.15s;
}
.cookie-btn.reject {
  background: #fffbe9;
  color: #B29643;
  border: 1.5px solid #B29643;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #B29643;
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #f6e6b4;
  color: #228B22;
}
.cookie-settings-btn {
  background: #fffbe9;
  color: #1B2838;
  border: 1.5px solid #FFDB00;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #FFDB00;
  color: #1B2838;
}
@media (max-width:700px) {
  #cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 13px;
    padding: 22px 8px 22px 8px;
  }
  .cookie-actions {
    justify-content: flex-end;
  }
}

/* ============= COOKIE MODAL ============= */
#cookie-modal {
  display: none;
  position: fixed;
  z-index: 10005;
  left: 0; right: 0;
  top: 0; bottom: 0;
  background: rgba(34,34,34,0.56);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.32s ease forwards;
}
#cookie-modal.active {
  display: flex;
}
.cookie-modal-content {
  background: #fffefc;
  border-radius: 18px;
  box-shadow: 0 8px 44px 0 rgba(178, 150, 67, .13);
  padding: 38px 28px;
  width: 95vw;
  max-width: 490px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 10px;
}
.cookie-modal-content h2 {
  font-size: 1.38rem;
  color: #1B2838;
  margin-bottom: 12px;
}
.cookie-category {
  margin-bottom: 18px;
  background: #fffbe9;
  padding: 15px 18px;
  border-radius: 10px;
  box-shadow: 0 2px 6px 0 rgba(255,219,0,0.07);
}
.cookie-category label {
  font-size: 1.08rem;
  font-family: 'Montserrat',sans-serif;
  font-weight: 600;
  color: #B29643;
}
.cookie-switch {
  margin-left: 10px;
  accent-color: #B29643;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  right: 22px;
  top: 22px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #B29643;
  font-weight: bold;
  cursor: pointer;
}
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity:1; }
}

/* ================== GENERAL UTILITIES ================== */
.mt-0    { margin-top: 0 !important; }
.mt-20   { margin-top: 20px !important; }
.mt-40   { margin-top: 40px !important; }
.mb-0    { margin-bottom: 0 !important; }
.mb-20   { margin-bottom: 20px !important; }
.mb-40   { margin-bottom: 40px !important; }
.pt-0    { padding-top: 0 !important; }
.pb-0    { padding-bottom: 0 !important; }
.text-center { text-align: center !important; }

/* ================== FORM ELEMENTS ================== */
input, textarea, select {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid var(--gray-light);
  padding: 11px 13px;
  margin-bottom: 14px;
  background: #fff;
  color: #1B2838;
  transition: border 0.2s;
}
input:focus, textarea:focus, select:focus {
  border-color: #FFDB00;
  outline: 1.1px solid #FFDB00;
}
label {
  font-family: 'Montserrat', sans-serif;
  color: #222;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}

/* ================== ACCESSIBILITY ================== */
:focus {
  outline: 2px solid #FFDB00;
  outline-offset: 2px;
}

/* ================== MISC & REFINED DETAILS ================== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.text-section {
  background: #fff;
  border-radius: 13px;
  padding: 18px 18px 18px 24px;
  box-shadow: 0 2px 12px 0 rgba(34,139,34,0.06);
  color: #1B2838;
  margin-bottom: 10px;
}
@media (max-width: 768px) {
  section {
    padding: 24px 7px;
    margin-bottom: 38px;
  }
  .text-section {
    padding: 13px 7px 14px 12px;
  }
}

/* ================== THANK YOU & SUCCESS PAGES ================== */
.success-msg {
  background: #fffbe6;
  color: #228B22;
  border: 2px solid #FFDB00;
  padding: 12px 24px;
  border-radius: 14px;
  font-size: 1.14rem;
  margin-bottom: 22px;
  font-family: 'Montserrat',sans-serif;
  box-shadow: 0 2px 18px 0 rgba(255,219,0,.12);
}

/* ================== RESPONSIVE DESIGN ================== */
@media (max-width: 700px) {
  h1,h2,h3 { word-break: break-word; }
  .card, .testimonial-card, .feature-grid li, .benefits-grid li,
  .services-overview > div, .service-list > div, .workshop-list > div,
  .blog-teasers > div, .blog-posts-grid > div {
    min-width: 85vw !important;
    max-width: 100vw;
    flex: 1 1 95vw !important;
  }
  .container {
    padding: 0 5px;
  }
}

/* =============== REFINED MICRO-INTERACTIONS =============== */
.card, .testimonial-card, .services-overview > div,
.service-list > div, .workshop-list > div, .blog-teasers > div, .blog-posts-grid > div,
.cta-primary, .card-container .card,
.feature-grid li, .benefits-grid li {
  transition: box-shadow 0.18s, transform 0.16s;
}
.cta-primary:active, .cta-link:active {
  transform: scale(.99);
  box-shadow: 0 0 0 rgba(0,0,0,0.01);
}
input[type="checkbox"], input[type="radio"] {
  accent-color: #B29643;
}

/* ================== CUSTOM SCROLLBAR ================== */
::-webkit-scrollbar {
  width: 12px;
  background: #fffbe9;
}
::-webkit-scrollbar-thumb {
  background: #B29643;
  border-radius: 8px;
  border: 3px solid #fffbe9;
}
::-webkit-scrollbar-thumb:hover {
  background: #FFDB00;
}

/* ================== PRINT ================== */
@media print {
  header, footer, #cookie-banner, #cookie-modal { display: none !important; }
  body { background: #fff !important; }
  section { margin: 0; padding: 0; }
}
