/* ------------------------- 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;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  background: #FFFFFF;
  font-size: 16px;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #244029;
  background: #FFFFFF;
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: 0.005em;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
a {
  color: #244029;
  text-decoration: none;
  transition: color 0.18s cubic-bezier(0.4,0,0.2,1);
}
a:hover, a:focus {
  color: #9A5500;
  outline: none;
}
ol, ul {
  list-style: none;
}
strong, b {
  font-weight: bold;
  color: #244029;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  box-sizing: border-box;
}
button {
  cursor: pointer;
  background: none;
  padding: 0;
}
*:focus {
  outline: 2px solid #AF7B44;
  outline-offset: 2px;
}

/* ------ GEOMETRIC STRUCTURED TYPOGRAPHY --------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #244029;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
h1 { font-size: 2.2rem; margin-bottom: 22px; }
h2 { font-size: 1.5rem; margin-bottom: 20px; }
h3 { font-size: 1.22rem; margin-bottom: 14px; }
h4, h5, h6 { font-size: 1.05rem; margin-bottom: 10px; }
p, ul, ol { margin-bottom: 14px; }

@media (min-width: 600px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2rem; }
}
@media (min-width: 900px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.3rem; }
}

.section {
  margin-bottom: 60px !important;
  padding: 40px 20px;
  background: #FFF;
  border-radius: 20px;
  box-shadow: 0 2px 16px 0 rgba(53,82,60, 0.05);
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ----------------- HEADER & NAVIGATION ---------------------- */
header {
  background: #E7DED0;
  box-shadow: 0 2px 10px 0 rgba(36,64,41,0.08);
  padding: 0;
  position: sticky; top: 0; z-index: 30;
}
header .container {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
}
header img {
  height: 48px;
  margin-right: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #244029;
  padding: 4px 4px;
  position: relative;
  transition: color 0.15s;
  border-radius: 4px;
}
.main-nav a:not(.button-primary):hover,
.main-nav a:not(.button-primary):focus {
  color: #9A5500;
  background: #E7DED0;
}

.button-primary {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: #244029;
  color: #fff !important;
  padding: 10px 26px;
  font-weight: 700;
  font-size: 1.02rem;
  border-radius: 28px;
  border: none;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px 0 rgba(36,64,41,0.08);
  margin-left: 22px;
  transition: background 0.15s, color 0.15s, box-shadow 0.2s;
  display: inline-block;
  position: relative;
}
.button-primary:hover, .button-primary:focus {
  background: #9A5500;
  color: #FFFFFF !important;
  box-shadow: 0 4px 18px 0 rgba(154,85,0,0.12);
}
.button-secondary {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: #E7DED0;
  color: #244029 !important;
  padding: 10px 26px;
  font-weight: 700;
  font-size: 1.02rem;
  border-radius: 28px;
  border: 2px solid #244029;
  letter-spacing: 0.04em;
  margin-top: 14px;
  transition: background 0.15s, color 0.15s, border 0.2s, box-shadow 0.2s;
  display: inline-block;
  position: relative;
}
.button-secondary:hover, .button-secondary:focus {
  background: #AF7B44;
  color: #FFFFFF !important;
  border: 2px solid #9A5500;
  box-shadow: 0 4px 18px 0 rgba(175,123,68,0.08);
}

/* ---------- MOBILE MENU -------------- */
.mobile-menu-toggle {
  display: none;
  background: #244029;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: none;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  z-index: 51;
  position: relative;
  transition: background 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #AF7B44;
  color: #fff;
}

.mobile-menu {
  position: fixed;
  top: 0; right: 0; left: 0; bottom: 0;
  background: rgba(36,64,41,0.98);
  color: #fff;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  padding: 0;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 22px;
  background: #9A5500;
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition: background 0.19s;
  z-index: 110;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #AF7B44;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: center;
  margin-top: 50px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  padding: 18px 0;
  border-radius: 6px;
  width: 100vw;
  text-align: center;
  transition: background 0.12s, color 0.12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #AF7B44;
  color: #FFF;
}

/* --- Responsive Hide/Show for nav --- */
@media (max-width: 968px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
}
@media (min-width: 969px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* -------- HERO / SECTION LAYOUTS --------- */
.hero {
  background: linear-gradient(135deg, #E7DED0 55%, #AF7B44 100%);
  border-radius: 0 0 52px 52px/0 0 18px 18px;
  min-height: 335px;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 20px 0 rgba(36,64,41,0.06);
  position: relative;
}
.hero .container {
  padding: 40px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 220px;
}
.hero .content-wrapper {
  gap: 18px;
}
.hero h1 {
  font-size: 2rem;
  color: #244029;
  text-shadow: none;
}
.hero p {
  color: #244029;
  font-size: 1.12rem;
}
@media (min-width: 650px) {
  .hero {
    min-height: 340px;
  }
  .hero .container {
    padding-top: 62px;
    padding-bottom: 46px;
    min-height: 270px;
  }
  .hero h1 {
    font-size: 2.6rem;
  }
}
@media (min-width: 900px) {
  .hero {
    min-height: 420px;
  }
  .hero .container {
    padding-top: 100px;
    padding-bottom: 60px;
    min-height: 320px;
  }
  .hero h1 {
    font-size: 3.2rem;
  }
}


/* -------- FLEXBOX UTILITY LAYOUTS (MANDATORY) ------------ */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #FFF;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(36,64,41,0.06);
  padding: 24px 20px;
  flex: 1 1 240px;
  min-width: 240px;
  transition: box-shadow 0.18s, transform 0.18s;
  border: 2px solid #E7DED0;
}
.card:hover {
  box-shadow: 0 6px 26px 0 rgba(154,85,0,0.14);
  transform: translateY(-4px) 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;
  margin-bottom: 32px;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; }
}

/* --- Features / Icon Section --- */
.icon-features {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}
.icon-features > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: #E7DED0;
  border-radius: 14px;
  padding: 18px 20px 14px 20px;
  box-shadow: 0 2px 10px 0 rgba(175,123,68,0.05);
  min-width: 110px;
}
.icon-features img {
  height: 38px;
  width: 38px;
}
.icon-features span {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #244029;
}

/* --------- TESTIMONIALS ------------ */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #FFFFFF;
  border-radius: 18px;
  box-shadow: 0 2px 18px 0 rgba(36,64,41,0.09);
  margin-bottom: 24px;
  border: 2px solid #E7DED0;
  min-width: 240px;
  max-width: 750px;
  transition: box-shadow 0.18s, border 0.18s;
}
.testimonial-card p, .testimonial-card strong {
  color: #244029;
}
.testimonial-card strong {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #AF7B44;
}
.testimonial-card:hover {
  border-color: #AF7B44;
  box-shadow: 0 4px 24px 0 rgba(154,85,0,0.14);
}

/* ----------- FEATURES LIST ------------ */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ------- BASIC LAYOUTS for .footer, etc. --------- */
footer {
  background: #244029;
  color: #fff;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -2px 20px 0 rgba(53,82,60, 0.08);
  margin-top: 60px;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0 18px 0;
}
.footer-content img {
  height: 46px;
  margin-bottom: 8px;
  background: #FFF;
  border-radius: 12px;
  padding: 6px;
}
.footer-brand {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #E7DED0;
  letter-spacing: 0.07em;
  margin-top: 8px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-nav a {
  color: #E7DED0;
  font-size: 1rem;
  opacity: 0.96;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  transition: color 0.14s, opacity 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #AF7B44;
  opacity: 1;
}

@media (max-width: 800px) {
  .footer-content { flex-direction: column; align-items: center; gap: 20px; }
  .footer-nav { align-items: center; }
}

/* -------- CARDS ----------- */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* ---------- SECTION SPACING (MANDATORY) ------------ */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
@media (max-width: 700px) {
  section { padding: 34px 0; margin-bottom: 42px; }
}

/* ----------- FORM STYLE (for kontakt.html, if form added in future) ---------- */
form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
input, textarea, select {
  background: #F8F6F1;
  border: 2px solid #E7DED0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 1rem;
  color: #244029;
  transition: border 0.14s;
}
input:focus, textarea:focus, select:focus {
  border: 2px solid #AF7B44;
}
label {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #244029;
  margin-bottom: 6px;
}

/* ----------- RESPONSIVE FLEX-DIRECTION CORRECTIONS ----------- */
@media (max-width: 768px) {
  .content-grid, .card-container, .footer-content {
    flex-direction: column !important;
    align-items: stretch;
    gap: 20px;
  }
  .main-nav { display: none !important; }
}

/* ----------- RESPONSIVE GENERAL ------------ */
@media (max-width: 700px) {
  .container { padding: 0 8px; }
  .section { padding: 28px 4px; }
  .hero .container { padding: 22px 8px; }
}

/* --------- COOKIE CONSENT BANNER ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #E7DED0;
  color: #244029;
  border-top: 3px solid #AF7B44;
  box-shadow: 0 -2px 24px 0 rgba(36,64,41,0.06);
  z-index: 200;
  padding: 20px 12px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  transition: transform 0.4s;
  font-size: 0.98rem;
}
.cookie-banner.hide {
  transform: translateY(110%);
  pointer-events: none;
  opacity: 0;
}
.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}
.cookie-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.cookie-actions button {
  background: #244029;
  color: #fff;
  border-radius: 22px;
  padding: 8px 22px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border: none;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
  margin-bottom: 5px;
}
.cookie-actions button.cookie-settings {
  background: #E7DED0;
  color: #AF7B44;
  border: 2px solid #AF7B44;
}
.cookie-actions button.cookie-settings:hover, .cookie-actions button.cookie-settings:focus {
  background: #AF7B44;
  color: #fff;
}
.cookie-actions button.cookie-accept-all {
  background: #AF7B44;
  color: #fff;
}
.cookie-actions button.cookie-accept-all:hover, .cookie-actions button.cookie-accept-all:focus {
  background: #244029;
  color: #fff;
}
.cookie-actions button.cookie-reject-all {
  background: #35523C;
  color: #fff;
}
.cookie-actions button.cookie-reject-all:hover, .cookie-actions button.cookie-reject-all:focus {
  background: #9A5500;
}

/* ---------- COOKIE PREFERENCES MODAL ---------- */
.cookie-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(1);
  background: #FFF;
  color: #244029;
  border-radius: 18px;
  box-shadow: 0 6px 34px 0 rgba(36,64,41,0.16);
  z-index: 300;
  max-width: 390px;
  width: 96%;
  padding: 34px 30px 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.22s, transform 0.22s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%,-40%) scale(0.95);
}
.cookie-modal.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal h3 {
  color: #AF7B44;
  font-size: 1.14rem;
  font-weight: 700;
  margin-bottom: 7px;
}
.cookie-modal .cookie-cat {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 9px;
}
.cookie-modal .cookie-cat input[type="checkbox"] {
  accent-color: #AF7B44;
  width: 18px;
  height: 18px;
  margin-right: 3px;
}
.cookie-modal .cookie-cat label {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
}
.cookie-modal .cookie-cat.essential label:after {
  content: " (Erforderlich)";
  color: #AF7B44;
  font-size: 0.95em;
  font-style: italic;
  font-weight: 500;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 14px;
  flex-wrap: wrap;
}
.cookie-modal-actions button {
  background: #244029;
  color: #FFF;
  border-radius: 18px;
  padding: 8px 22px;
  border: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
}
.cookie-modal-actions button:hover, .cookie-modal-actions button:focus {
  background: #AF7B44;
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 18px;
  background: #E7DED0;
  color: #AF7B44;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #AF7B44;
  color: #fff;
}

/* ------- GEOMETRIC STRUCTURED DETAILS ------- */
.section, .card, .testimonial-card, .icon-features > div {
  border-radius: 18px;
}
.button-primary, .button-secondary, .mobile-menu-toggle, .mobile-menu-close {
  border-radius: 14px;
}
hr {
  border: none;
  border-top: 2px solid #E7DED0;
  margin: 24px 0;
}

/* ------- VISUAL HIERARCHY/SHADOWS ------- */
.card, .testimonial-card, .icon-features > div, .section, .cookie-modal {
  box-shadow: 0 2px 16px 0 rgba(36,64,41,0.05);
}

/* ------ MICROINTERACTIONS / TRANSITIONS ------ */
a, .button-primary, .button-secondary,
.card, .testimonial-card, .footer-nav a,
.mobile-menu-toggle, .mobile-menu-close, .cookie-banner, .cookie-actions button, .cookie-modal {
  transition: all 0.17s cubic-bezier(0.4,0,0.2,1);
}

/* ------- GEOMETRIC ELEMENTS DECORATION (EXAMPLES) ------ */
.section h2::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 6px;
  background: #AF7B44;
  margin-right: 14px;
  border-radius: 3px;
  vertical-align: middle;
}

/* --- For more geometric visual cues (optional): --- */
.section h2 {
  position: relative;
  padding-left: 0.2em;
}

/* ------- MISC SPACING ------- */
li + li { margin-top: 7px; }
ul, ol {
  padding-left: 24px;
}

/* --------- UTILITIES -------- */
.m-0 { margin: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.p-0 { padding: 0 !important; }
.rounded-lg { border-radius: 18px !important; }
.shadow-sm { box-shadow: 0 2px 10px rgba(36,64,41,0.04) !important; }

/* ---------- PRINT ---------- */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  main { padding: 0 !important; }
}

/* ---------- FONTS - IMPORT --------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500&display=swap');
