/* =====================
   CSS RESET & NORMALIZE
   ===================== */
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F5F3ED;
  color: #27314A;
  font-family: 'Roboto', Arial, sans-serif;
}
a {
  color: #27314A;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #917139;
  outline-offset: 2px;
}
*:focus {
  outline: 2px solid #917139;
  outline-offset: 2px;
}
hr {
  border: none;
  border-top: 1px solid #C3B89F;
  margin: 24px 0;
}
img {
  max-width: 100%;
  display: block;
  border: 0;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
address {
  font-style: normal;
  color: #43523C;
  margin-top: 8px;
}

/* =====================
   CUSTOM VARIABLES
   ===================== */
:root {
  --color-primary: #27314A;
  --color-secondary: #917139;
  --color-accent: #E6E2D7;
  --color-green: #43523C;
  --color-light: #F5F3ED;
  --color-earth-brown: #A9906E;
  --color-earth-clay: #CCC5B1;

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

  --shadow-card: 0 2px 12px rgba(39,49,74,0.08);
  --shadow-hover: 0 4px 24px rgba(39,49,74,0.18);

  --radius-soft: 18px;
  --radius-full: 48px;
}

/* =====================
   TYPOGRAPHY
   ===================== */
h1, .display {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 18px;
  letter-spacing: 0.5px;
  line-height: 1.18;
}
h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.2;
  color: var(--color-green);
}
h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-primary);
}
.subtitle, .subheadline {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--color-secondary);
  margin-bottom: 14px;
}
p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 14px;
  line-height: 1.62;
}
strong {
  font-weight: 700;
  color: var(--color-green);
}
em {
  color: var(--color-secondary);
  font-style: italic;
  font-family: var(--font-display);
}

/* =====================
   CONTAINERS & LAYOUT
   ===================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-card);
}

/* Semi-organic divider for organic style */
.section:not(:last-child) {
  position: relative;
}
.section:not(:last-child)::after {
  content: '';
  display: block;
  width: 80px;
  height: 8px;
  border-radius: 40px;
  background: var(--color-earth-brown);
  opacity: 0.23;
  margin: 36px auto 0 auto;
}

/* =====================
   FLEXBOX LAYOUTS
   ===================== */
.feature-grid, .card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 260px;
  max-width: 340px;
  flex: 1 1 260px;
}
.card:hover, .card:focus-within {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  transition: box-shadow 0.2s, transform 0.2s;
}

.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius-soft);
  box-shadow: 0 2px 10px rgba(35, 55, 34, 0.07);
  margin-bottom: 20px;
  color: #27314A;
  min-width: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* =====================
   ORGANIC/NATURE BUTTONS
   ===================== */
.cta-btn {
  background: var(--color-green);
  color: #fff;
  border: none;
  padding: 14px 36px;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 500;
  border-radius: 30px 20px 30px 16px / 22px 32px 20px 38px; /* organic asymmetric radius */
  box-shadow: 0 4px 32px rgba(145, 113, 57, 0.07);
  cursor: pointer;
  display: inline-block;
  transition: background 0.22s, box-shadow 0.22s, transform 0.13s;
  margin-top: 8px;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: 0 8px 38px rgba(145, 113, 57, 0.18);
  transform: translateY(-2px) scale(1.025);
}

/* “Mehr erfahren” and similar links */
.feature-grid a,
.text-section a:not(.cta-btn),
.card a:not(.cta-btn) {
  color: var(--color-secondary);
  font-weight: 500;
  font-family: var(--font-body);
  padding-bottom: 2px;
  border-bottom: 2px dotted var(--color-secondary);
  transition: border-bottom 0.15s, color 0.16s;
}
.feature-grid a:hover, .feature-grid a:focus,
.text-section a:not(.cta-btn):hover, .text-section a:not(.cta-btn):focus {
  color: var(--color-green);
  border-bottom: 2px solid var(--color-green);
}

/* =====================
   NAVIGATION
   ===================== */
header {
  background: #fff;
  box-shadow: 0 4px 16px rgba(67, 82, 60, 0.03);
  border-bottom-left-radius: 40px 30px;
  border-bottom-right-radius: 36px 26px;
  margin-bottom: 28px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  justify-content: flex-start;
  padding: 18px 0;
  font-family: var(--font-display);
  font-weight: 600;
}
.main-nav a:first-child {
  margin-right: 16px;
  flex-shrink: 0;
}
.main-nav a {
  color: var(--color-primary);
  transition: color 0.17s;
  font-size: 1.04rem;
  padding: 6px 3px;
  border-radius: 8px;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-earth-clay);
  color: var(--color-green);
}

.mobile-menu-toggle {
  display: none;
  background: var(--color-green);
  color: #fff;
  font-size: 2.2rem;
  padding: 8px 16px;
  border: none;
  border-radius: 28px;
  cursor: pointer;
  margin-left: auto;
  z-index: 1030;
  transition: background 0.16s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-secondary);
}

/* ========== MOBILE NAVIGATION ========== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(39,49,74, 0.98);
  box-shadow: 0 4px 24px rgba(67, 82, 60, 0.13);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transform: translateX(-100vw);
  transition: transform 0.37s cubic-bezier(.69,-0.38,.5,1.5);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
  transition: transform 0.33s cubic-bezier(.55,-0.23,.65,1.2), opacity 0.11s;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #fff;
  padding: 18px 20px 12px 20px;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 24px;
  z-index: 21;
  transition: color 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 18px 44px;
  margin-top: 34px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  transition: background 0.15s, color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary);
  background: rgba(145, 113, 57, 0.11);
}

/* =====================
   FOOTER
   ===================== */
footer {
  background: var(--color-earth-clay);
  border-top-left-radius: 38px 19px;
  border-top-right-radius: 53px 28px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.02rem;
}
.footer-links a {
  color: var(--color-primary);
  transition: color 0.15s;
  font-family: var(--font-display);
  padding: 2px 6px;
  border-radius: 6px;
}
.footer-links a:hover, .footer-links a:focus {
  color: var(--color-secondary);
  background: rgba(145,113,57,0.11);
}
.brand-credits {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.96rem;
  color: var(--color-green);
  margin-bottom: 12px;
}
.brand-credits img {
  width: 40px;
  height: 40px;
  display: block;
}
.social-media {
  display: flex;
  gap: 13px;
  justify-content: center;
  margin-top: 8px;
  margin-bottom: 10px;
}
.social-media a img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(67, 82, 60, 0.08);
  transition: box-shadow 0.16s;
}
.social-media a:hover img, .social-media a:focus img {
  box-shadow: 0 5px 14px rgba(67, 82, 60, 0.23);
  background: var(--color-accent);
}

/* =====================
   ORGANIC STYLING & BACKGROUND ELEMENTS
   ===================== */
section {
  border-radius: var(--radius-soft);
  background: var(--color-accent);
  margin-bottom: 60px;
  padding: 40px 20px;
}
section:last-child {
  margin-bottom: 0;
}

/* Container for grouping (in all .content-wrapper) */
.content-wrapper, .card-container, .card-grid {
  gap: 24px;
}

/* =====================
   CARDS (ORGANIC SHAPES)
   ===================== */
.card, .feature-grid > div {
  background: #fff;
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-card);
  padding: 26px 22px 22px 22px;
  min-width: 220px;
  flex: 1 1 220px;
  transition: box-shadow 0.19s, transform 0.19s;
  margin-bottom: 20px;
  position: relative;
}
.card:hover, .feature-grid > div:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px) scale(1.03);
}
.feature-grid > div img {
  width: 44px;
  height: 44px;
  margin-bottom: 9px;
  filter: drop-shadow(0 2px 1.5px #C3B89F);
}

/* =====================
   TESTIMONIALS
   ===================== */
.testimonial-card {
  background: #fff;
  border-left: 7px solid var(--color-green);
  color: #27314A;
  font-size: 1.08rem;
  border-radius: 15px 22px 18px 25px / 14px 32px 20px 28px;
  box-shadow: 0 3px 17px rgba(39, 49, 74, 0.09);
  font-family: var(--font-body);
  margin-bottom: 20px;
  transition: box-shadow 0.19s, border-color 0.18s;
}
.testimonial-card strong {
  display: block;
  font-size: 1rem;
  color: var(--color-secondary);
  margin-top: 6px;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 8px 34px rgba(67, 82, 60, 0.15);
  border-left: 7px solid var(--color-secondary);
}

/* =====================
   SPECIAL TEXT BLOCKS
   ===================== */
.text-section em, .feature-grid em {
  display: inline-block;
  margin-top: 6px;
  font-size: 1.01rem;
  font-family: var(--font-display);
  color: var(--color-secondary);
}

/* =====================
   RESPONSIVE DESIGN
   ===================== */
@media (max-width: 1200px) {
  .container {
    max-width: 990px;
  }
}
@media (max-width: 1024px) {
  .container {
    max-width: 850px;
  }
  .feature-grid {
    gap: 20px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
  }
  .main-nav {
    gap: 13px;
    font-size: 1rem;
  }
  .brand-credits {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 14px;
    top: 18px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .card-container, .card-grid, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .content-wrapper {
    gap: 18px;
  }
  section {
    padding: 26px 9px;
    margin-bottom: 42px;
  }
  .testimonial-card {
    font-size: 1rem;
    padding: 14px;
    border-left-width: 5px;
  }
  .brand-credits {
    flex-direction: column;
    gap: 7px;
    font-size: 0.93rem;
    text-align: center;
  }
  .footer-links {
    flex-wrap: wrap;
    font-size: 0.96rem;
    justify-content: center;
  }
  h1 {
    font-size: 1.77rem;
  }
  h2 {
    font-size: 1.33rem;
  }
  h3 {
    font-size: 1.06rem;
  }
  .cta-btn {
    font-size: 1rem;
    padding: 11px 24px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
@media (max-width: 600px) {
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  section {
    padding: 17px 3px;
    margin-bottom: 34px;
  }
}

/* =====================
   COOKIE CONSENT BANNER
   ===================== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 2200;
  background: #fffef9;
  box-shadow: 0 -6px 32px rgba(39,49,74,0.11);
  border-top-left-radius: var(--radius-soft);
  border-top-right-radius: 36px 22px;
  padding: 22px 14px 14px 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  animation: cookiebanner-in 0.38s cubic-bezier(.49,1.39,.77,.88);
  font-size: 1.04rem;
}
@keyframes cookiebanner-in {
  from { transform: translateY(100%); opacity:0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner p {
  color: var(--color-primary);
  margin: 0 12px 0 0;
  flex: 1 1 280px;
}
.cookie-buttons {
  display: flex;
  gap: 18px;
}
.cookie-btn-accept, .cookie-btn-decline, .cookie-btn-settings {
  font-family: var(--font-display);
  border: none;
  border-radius: 21px 12px 26px 17px / 19px 18px 29px 11px;
  cursor: pointer;
  font-size: 1rem;
  padding: 9px 21px;
  margin: 0;
  transition: background 0.17s, color 0.16s, box-shadow 0.15s;
}
.cookie-btn-accept {
  background: var(--color-green);
  color: #fff;
}
.cookie-btn-accept:hover, .cookie-btn-accept:focus {
  background: var(--color-secondary);
}
.cookie-btn-decline {
  background: #DFDED9;
  color: var(--color-primary);
}
.cookie-btn-decline:hover, .cookie-btn-decline:focus {
  background: #CCB48B;
  color: var(--color-green);
}
.cookie-btn-settings {
  background: var(--color-accent);
  color: var(--color-primary);
  border: 1px solid #B5B099;
}
.cookie-btn-settings:hover, .cookie-btn-settings:focus {
  background: #F3F1E7;
  color: var(--color-secondary);
  border: 1px solid var(--color-secondary);
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0; width:100vw; height:100vh;
  background: rgba(39,49,74,0.52);
  z-index: 2600;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-modal-in 0.28s cubic-bezier(.53,1.01,.47,.96);
}
@keyframes cookie-modal-in {
  from { opacity:0; }
  to   { opacity:1; }
}
.cookie-modal {
  background: #fffef9;
  border-radius: 30px;
  border: 2.4px solid #DFDED9;
  width: 95vw;
  max-width: 410px;
  box-shadow: 0 8px 50px rgba(39,49,74,0.14);
  padding: 30px 24px 22px 24px;
  font-family: var(--font-body);
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal h2 {
  font-family: var(--font-display);
  font-size: 1.28rem;
  margin-bottom: 10px;
  color: var(--color-green);
}
.cookie-category {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
  background: #F3F1E7;
  padding: 12px 14px;
  border-radius: 15px;
}
.cookie-category label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 3px;
  display: inline-block;
  color: var(--color-primary);
}
.cookie-category input[type=checkbox], .cookie-category input[type=radio] {
  accent-color: var(--color-green);
  width: 19px; height: 19px;
  margin-top: 3px;
}
.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 13px;
  margin-top: 8px;
}
.cookie-modal-close {
  position: absolute;
  top: 11px; right: 15px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--color-secondary);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--color-green);
}

/* =====================
   UTILITY CLASSES & SPACING
   ===================== */
.mt-2 { margin-top: 2px !important; }
.mt-8 { margin-top: 8px !important; }
.mt-16 { margin-top:16px !important; }
.mt-32 { margin-top:32px !important; }
.mb-16 { margin-bottom:16px !important; }
.mb-32 { margin-bottom:32px !important; }
.text-center { text-align: center !important; }
.flex { display: flex !important; }
.flex-col { flex-direction: column !important; }
.align-center { align-items: center !important; }
.align-start { align-items: flex-start !important; }
.gap-8 { gap: 8px !important; }
.gap-20 { gap: 20px !important; }

/* =====================
   FORMS (Kontakt)
   ===================== */
form, .kontakt-formular {
  display: flex;
  flex-direction: column;
  gap: 17px;
  align-items: flex-start;
  margin-top: 16px;
}
input[type="text"], input[type="email"], textarea {
  border: 1.5px solid #C3B89F;
  border-radius: 15px;
  padding: 13px 16px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 1px 3px rgba(39,49,74,0.06);
  transition: border 0.13s, box-shadow 0.13s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 3px 14px rgba(145,113,57,0.07);
}
label {
  color: var(--color-green);
  font-weight: 500;
  font-family: var(--font-display);
  margin-bottom: 5px;
}

/* =====================
   ORGANIC DETAILS
   ===================== */
.card, .feature-grid > div, .testimonial-card, .cta-btn, .cookie-btn-accept, .cookie-btn-decline, .cookie-btn-settings, .cookie-modal, .cookie-category {
  border-radius: 40% 50% 38% 45% / 53% 38% 70% 49%;
  /* organic, but overridden in certain cases */
}

/* More specific shapes for organic sections */
section {
  border-radius: 35px 28px 45px 39px/33px 52px 36px 56px;
  background: var(--color-accent);
}
footer section {
  background: transparent;
}

/* =====================
   ACCESSIBILITY HELPER
   ===================== */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* =====================
   PRINT STYLES (optional)
   ===================== */
@media print {
  header, .main-nav, .mobile-menu, footer, .cookie-consent-banner { display: none !important; }
  body { color: #000; background: #fff; }
  section { background: #fff !important; box-shadow: none !important; }
}
