/* ======================
   CSS RESET & NORMALIZE
======================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body, html { height: 100%; }
body {
  min-height: 100vh;
  color: #233348;
  background: #F2E9DE;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.2s; cursor: pointer; }
ul, ol { list-style: none; }
button { font-family: inherit; font-size: 1rem; border: none; background: none; cursor: pointer; }

/* ======================
   GEOMETRIC STRUCTURED DESIGN BASE
======================== */
:root {
  --primary: #233348;
  --secondary: #849C6B;
  --accent: #F2E9DE;
  --white: #fff;
  --black: #191d24;
  --muted: #D8D5CA;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', 'Arial', sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-rendering: geometricPrecision;
}
h1 { font-size: 2.4rem; margin-bottom: 16px; line-height: 1.1; }
h2 { font-size: 2rem; margin-bottom: 18px; line-height: 1.15; }
h3 { font-size: 1.35rem; margin-bottom: 12px; letter-spacing: 0.03em; line-height: 1.18; }
p, li, ul {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 12px;
}
.subheadline {
  font-size: 1.25rem;
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

strong { font-weight: 700; }

/* ======================
       LAYOUT CONTAINERS
======================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background-color: var(--accent);
  border-radius: 18px;
}

/* HERO SECTION */
.hero {
  background: var(--white);
  padding: 40px 0 32px;
  margin-bottom: 36px;
  box-shadow: 0 6px 36px 0 rgba(35,51,72,0.03);
  border-radius: 0 0 40px 40px;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
}
.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 14px;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.02em;
}
.hero p { color: var(--secondary); }

/* ======================
       NAVIGATION
======================== */
header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(35,51,72,0.07);
  position: relative;
  z-index: 1100;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
}
.main-nav > a {
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 12px 4px;
  border-radius: 7px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  transition: background 0.18s, color 0.18s;
}
.main-nav > a:hover, .main-nav > a:focus {
  background: var(--secondary);
  color: var(--white);
}
.main-nav img {
  height: 38px;
  padding: 0 10px 0 0;
}
.primary-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  display: inline-block;
  background: var(--secondary);
  color: var(--white);
  padding: 10px 26px;
  border-radius: 36px;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-left: 10px;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 4px 18px rgba(35,51,72, 0.08);
  border: 2.5px solid var(--secondary);
  outline: none;
}
.primary-btn:hover, .primary-btn:focus {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--accent);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 26px rgba(35,51,72,.18);
}
/* Hide mobile menu toggle on desktop */
.mobile-menu-toggle {
  display: none;
}

/* ======================
    MOBILE MENU
======================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: var(--white);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.5, 0, 0.05, 1);
  box-shadow: -8px 0 28px -6px rgba(35,51,72,0.16);
  padding: 36px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  visibility: hidden;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
}
.mobile-menu-close {
  font-size: 2em;
  color: var(--primary);
  align-self: flex-end;
  background: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.12s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--muted);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-top: 20px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
  padding: 12px 5px;
  border-radius: 7px;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--secondary);
  color: var(--white);
}

/* Burger menu button */
@media (max-width: 1080px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    font-size: 2.2em;
    background: var(--white);
    color: var(--primary);
    border: none;
    padding: 8px 10px;
    margin-left: auto;
    border-radius: 7px;
    box-shadow: 0 2px 10px rgba(35,51,72, .11);
    transition: background 0.15s;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: var(--muted);
  }
}

/* ======================
    FEATURE GRID (FLEXBOX ONLY)
======================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
}
.feature-item {
  background: var(--white);
  border: 2.5px solid var(--secondary);
  border-radius: 18px;
  box-shadow: 0 3px 14px rgba(35,51,72,0.08);
  flex: 1 1 210px;
  min-width: 210px;
  max-width: 320px;
  padding: 28px 22px 22px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.19s, border 0.19s;
  position: relative;
}
.feature-item img {
  height: 44px;
  width: 44px;
  margin-bottom: 7px;
}
.feature-item h3 {
  font-size: 1.11rem;
  color: var(--primary);
  font-family: 'Montserrat',Arial,sans-serif;
  letter-spacing: 0.03em;
}
.feature-item p { color: var(--primary); }
.feature-item:hover,
.feature-item:focus-within {
  box-shadow: 0 8px 36px rgba(35,51,72,0.13);
  border-color: var(--primary);
}

/* ======================
    CARD & SECTION PATTERNS
======================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(35,51,72,0.08);
  border: 2.5px solid var(--muted);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 20px;
  transition: box-shadow 0.19s, border 0.19s;
}
.card:hover {
  border-color: var(--secondary);
  box-shadow: 0 8px 36px rgba(35,51,72,0.13);
}

.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;
}

/* ======================
    TESTIMONIALS SECTION
======================== */
.testimonials {
  background: #F2E9DE;
  border-radius: 24px;
  margin-bottom: 52px;
  padding: 30px 0 40px 0;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border-left: 12px solid var(--secondary);
  box-shadow: 0 2px 16px rgba(35,51,72,0.07);
  border-radius: 18px;
  padding: 20px 28px;
  margin-bottom: 20px;
  color: var(--primary);
  font-size: 1.08rem;
  line-height: 1.5;
  font-family: 'Open Sans', Arial, sans-serif;
  min-width: 220px;
  transition: box-shadow 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 36px rgba(132,156,107,0.16);
}
.testimonial-card span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--secondary);
  margin-top: 2px;
}

/* ===========
  TABLES
============ */
table {
  width: 100%;
  background: var(--white);
  border-radius: 11px;
  border-collapse: collapse;
  margin-bottom: 24px;
  box-shadow: 0 1px 9px rgba(35,51,72,0.08);
  overflow-x: auto;
}
th, td {
  padding: 13px 18px;
  text-align: left;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
}
th {
  background: var(--secondary);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.04em;
}
tr:nth-child(even) td {
  background: #f6f2ec;
}
td { color: var(--primary); }

/* =============
 GENERAL LISTS
============== */
ul, ol {
  margin-bottom: 16px;
  margin-left: 25px;
  color: var(--primary);
}
ul li, ol li {
  padding-bottom: 9px;
  position: relative;
}
ul li::before {
  content: '';
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 2px;
  background: var(--secondary);
  margin-right: 10px;
  vertical-align: middle;
  margin-left: -20px;
}

/* =============
  SECTIONS
============== */
/* Section already handled via utility pattern! */

/* =============
  MAP LOCATION (Kontakt)
=============== */
.map-location {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 22px 0 30px 0;
}
.map-location img {
  max-width: 420px;
  min-width: 220px;
  border-radius: 18px;
  border: 2.5px solid var(--secondary);
  box-shadow: 0 2px 12px rgba(35,51,72,0.08);
}

/* =============
  CATEGORIES MENU (Blog)
=============== */
.categories-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-top: 18px;
  margin-bottom: 12px;
}
.categories-menu span {
  color: var(--primary);
  font-size: 1rem;
}
.categories-menu a {
  padding: 7px 19px;
  background: var(--white);
  border: 2.5px solid var(--secondary);
  color: var(--primary);
  border-radius: 13px;
  font-size: 1rem;
  transition: background 0.16s, color 0.16s;
}
.categories-menu a:hover, .categories-menu a:focus {
  background: var(--secondary);
  color: var(--white);
}

/* ======================
    FOOTER
======================== */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 55px 0 30px;
  border-radius: 32px 32px 0 0;
  margin-top: 40px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
footer nav.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 13px 0 7px;
}
.footer-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  border-radius: 7px;
  padding: 6px 8px;
  transition: background 0.17s, color 0.14s;
}
.footer-nav a:hover {
  background: var(--secondary);
  color: var(--primary);
}
footer .social-links {
  display: flex;
  align-items: center;
  gap: 15px;
}
footer .social-links a {
  display: flex;
  background: var(--white);
  border-radius: 50%;
  width: 37px; height: 37px;
  justify-content: center;
  align-items: center;
  transition: background 0.16s, transform 0.14s;
  border: 2.5px solid var(--secondary);
}
footer .social-links a:hover {
  background: var(--secondary);
  transform: scale(1.08);
}
footer .contact-brief {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--accent);
  font-size: 1rem;
}
footer .contact-brief img {
  width: 19px; height: 19px; vertical-align: middle; margin-right: 6px;
}
footer .legal-links {
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 9px;
}
footer .legal-links a {
  color: var(--accent);
  text-decoration: underline;
  margin: 0 2px;
  font-size: 0.98em;
  font-weight: 500;
}

footer p {
  color: #e4e6e9;
  font-size: 0.98em;
  margin-bottom: 2px;
}

/* ============
  COOKIE BANNER
============ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 4px solid var(--secondary);
  box-shadow: 0 -4px 26px rgba(35,51,72,0.13);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 30px;
  padding: 22px 30px;
  font-size: 1.03rem;
  font-family: 'Open Sans', Arial, sans-serif;
  animation: bannerSlideIn 0.35s cubic-bezier(.6,.24,.35,1);
  transform: translateY(0%);
}
@keyframes bannerSlideIn {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0%); opacity: 1; }
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 28px;
  font-size: 1rem;
  padding: 8px 26px;
  margin: 0 0 0 0;
  transition: background 0.17s, color 0.13s;
}
.cookie-banner .accept {
  background: var(--secondary);
  color: var(--white);
}
.cookie-banner .accept:hover { background: var(--primary); }
.cookie-banner .reject {
  background: var(--muted);
  color: var(--primary);
}
.cookie-banner .reject:hover { background: var(--secondary); color: var(--white); }
.cookie-banner .settings {
  background: #f6f2ec;
  color: var(--primary);
}
.cookie-banner .settings:hover { background: var(--secondary); color: var(--white); }

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(1);
  z-index: 2500;
  background: var(--white);
  border: 3.5px solid var(--secondary);
  box-shadow: 0 14px 60px rgba(35,51,72,0.32);
  border-radius: 18px;
  width: 98%;
  max-width: 430px;
  padding: 36px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  animation: modalPop .34s cubic-bezier(.58,-0.12,.58,1.35);
}
@keyframes modalPop {
  0% { transform: translate(-50%,-48%) scale(0.93); opacity: 0; }
  100% { transform: translate(-50%,-50%) scale(1); opacity: 1; }
}
.cookie-modal .modal-header {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.18rem;
  margin-bottom: 11px;
  color: var(--primary);
}
.cookie-modal .modal-close {
  position: absolute;
  top: 17px;
  right: 21px;
  background: none;
  font-size: 1.35em;
  border-radius: 6px;
  color: var(--secondary);
  transition: background 0.13s;
}
.cookie-modal .modal-close:hover { background: #f2f2ef; }
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 0;
  background: none;
  border-bottom: 1.5px solid #efe8dd;
}
.cookie-category label {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  color: var(--primary);
}
.cookie-category input[type=checkbox] {
  accent-color: var(--secondary);
  width: 22px; height: 22px;
}
.cookie-category.essential label {
  color: var(--secondary);
  font-weight: 700;
  opacity: 1.0;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.cookie-modal .modal-actions button {
  padding: 8px 20px;
  border-radius: 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
}
.cookie-modal .modal-actions .accept {
  background: var(--secondary);
  color: var(--white);
}
.cookie-modal .modal-actions .reject {
  background: var(--muted);
  color: var(--primary);
}
.cookie-modal .modal-actions .accept:hover { background: var(--primary); }
.cookie-modal .modal-actions .reject:hover { background: var(--secondary); color: var(--white); }

/* Hide modal by default */
.cookie-banner, .cookie-modal {
  display: none;
}
.cookie-banner.show, .cookie-modal.show {
  display: flex;
}

/* ============
  MISC
=========== */
.text-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-brief p {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
  font-size: 1rem;
}

/* ============
  ANIMATIONS
=========== */
a, button, .primary-btn, .feature-item, .card, .testimonial-card, .footer-nav a, .categories-menu a, .mobile-nav a, .cookie-banner button, .cookie-modal button {
  transition: background 0.17s cubic-bezier(.11, .82, .38, 1), color 0.13s, box-shadow 0.14s, transform 0.13s;
}
.primary-btn, .feature-item, .categories-menu a, .card, .testimonial-card {
  will-change: transform;
}

/* ======================
     RESPONSIVE DESIGN
======================== */
@media (max-width: 990px) {
  .hero { padding: 30px 0 20px; }
  footer { padding: 38px 0 18px; }
  .feature-grid { gap: 18px; }
  .testimonial-card { padding: 20px 11px; }
  .card-container { gap: 16px; }
  .section { margin-bottom: 40px; padding: 25px 8px; }
}

@media (max-width: 768px) {
  h1 { font-size: 1.95rem; }
  h2 { font-size: 1.44rem; }
  .hero h1 { font-size: 2.05rem; }
  .feature-grid,
  .card-container,
  .content-grid,
  .footer-nav {
    flex-direction: column;
    gap: 14px !important;
    align-items: stretch;
  }
  .content-wrapper { gap: 12px; }
  .section { gap: 12px; }
  .testimonial-card { flex-direction: column; align-items: flex-start; gap: 10px; }
  .text-image-section { flex-direction: column; gap: 14px; }
  footer .content-wrapper { gap: 12px; }
  .categories-menu { flex-direction: column; align-items: flex-start; gap: 9px; }
  .contact-brief { font-size: 0.98rem; }
}

@media (max-width: 520px) {
  .container { padding: 0 7px; }
  .feature-item, .card { padding: 18px 6px 11px 9px; border-radius: 11px; }
  .testimonial-card { padding: 12px 10px; border-radius: 12px; }
  .cookie-banner { padding: 14px 8px; gap: 13px 7px; font-size: 0.96rem; }
  .cookie-modal { padding: 17px 4vw 10px 4vw; border-radius: 12px; gap: 7px; }
}

/* ==========================
  GEOMETRIC DECORATIVE TOUCHES
============================= */
.section, .feature-item, .card, .testimonial-card, .categories-menu a, .cookie-modal {
  border-radius: 18px;
}

/* Sectional decorations (subtle angles as geometric motif) */
.section {
  position: relative;
  overflow: hidden;
}
.section::after {
  content: '';
  position: absolute; bottom: -40px; right: -60px;
  width: 140px; height: 140px;
  background: rgba(132,156,107, 0.09);
  border-radius: 28px 100px 50px 0;
  transform: rotate(25deg);
  z-index: 1;
}
.feature-item::before {
  content: '';
  display: block;
  position: absolute;
  top: -24px; right: -24px;
  width: 48px; height: 48px;
  background: rgba(35,51,72,0.07);
  border-radius: 22% 76% 83% 17% / 68% 31% 69% 32%;
  z-index: 0;
  pointer-events: none;
}
/* angular font fallback */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: local('Montserrat'), url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: local('Open Sans'), url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap');
}

/* Ensure no overlap and proper spacing */
.section, .card, .feature-item, .testimonial-card, .categories-menu a {
  margin-bottom: 20px;
}

/* ==========
  Z-INDEXES
============ */
header, .mobile-menu {
  z-index: 1100;
}
.cookie-banner { z-index: 2000; }
.cookie-modal { z-index: 2500; }

/* END */
