/* =========================================================
   EnergieKompass - style.css
   Natural/Organic UI Theme with Brand Guidelines
   ========================================================= */

/* CSS RESET & NORMALIZATION */
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 {
  font-size: 16px;
  box-sizing: border-box;
  scroll-behavior: smooth;
  height: 100%;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #F6F5F2;
  color: #35473d;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  border: 0;
}
a {
  color: #5B6E2B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #759448;
  outline: none;
}
ul, ol {
  list-style: none;
}

/* =========================================
   BRAND COLORS, FONTS, ROOT VARIABLES
   ========================================= */
:root {
  --primary: #283747;
  --secondary: #759448;
  --tertiary: #A6B87C;
  --accent: #fafafc;
  --earth1: #8E735B;
  --earth2: #E6DDD1;
  --earth3: #cfd9c5;
  --organic-green: #566221;
  --neutral-dark: #35473d;
  --warning: #C08931;
  --shadow1: 0 2px 8px 0 rgba(52, 79, 66, 0.08);
  --shadow2: 0 4px 16px 0 rgba(52, 79, 66, 0.10);
  --radius: 18px;
  --radius-small: 10px;
  --transition: .18s cubic-bezier(.77,.06,.94,.2);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* =========================================
   LAYOUT HELPERS
   ========================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

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

@media (max-width: 768px) {
  .section {
    padding: 30px 8px;
    margin-bottom: 36px;
  }
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
}
h1 {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}
h4 {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 8px;
}

p, li {
  font-family: var(--font-body);
  font-size: 1rem;
}

strong {
  color: var(--secondary);
  font-weight: 600;
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.125rem; }
}

/* ========== HEADER ========== */
header {
  width: 100%;
  background: #e7eae0;
  box-shadow: var(--shadow1);
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  position: relative;
  z-index: 50;
}
header > .container {
  flex-direction: row;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  min-height: 72px;
}

header img[alt="EnergieKompass"] {
  height: 44px;
  margin-right: 18px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  color: var(--primary);
  font-weight: 500;
  padding: 6px 12px;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  border-radius: var(--radius-small);
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--earth3);
  color: var(--secondary);
}

.btn-primary {
  background: var(--secondary);
  color: #fff;
  padding: 11px 26px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1.09rem;
  font-weight: 700;
  box-shadow: var(--shadow1);
  border: none;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition);
  display: inline-block;
  letter-spacing: .03em;
  text-align: center;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow2);
}

/* ========== BURGER MENU ========== */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  padding: 9px 15px;
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 120;
  box-shadow: var(--shadow1);
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--primary);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 95vw;
  height: 100vh;
  background: #e9edd6;
  box-shadow: -6px 0 28px rgba(40,55,71, .18);
  transform: translateX(105%);
  transition: transform 0.33s cubic-bezier(.23,1.11,.37,.94);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 24px 24px 36px 28px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: var(--secondary);
  font-size: 2rem;
  align-self: flex-end;
  margin-bottom: 18px;
  cursor: pointer;
  transition: color var(--transition);
}
.mobile-menu-close:hover,.mobile-menu-close:focus {
  color: var(--primary);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 12px;
}
.mobile-nav a {
  color: var(--neutral-dark);
  font-size: 1.12rem;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 10px 6px;
  border-radius: var(--radius-small);
  background: none;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover,.mobile-nav a:focus {
  background: var(--secondary);
  color: #fff;
}

@media (max-width: 1050px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 1050px) {
  header > .container {
    gap: 0;
  }
}

/* ========== HERO/INTRO SECTIONS ========== */
.hero {
  background: linear-gradient(105deg, #eef4e4 65%, #e6ddd1 100%);
  background-blend-mode: multiply;
  border-radius: var(--radius);
  box-shadow: var(--shadow1);
  margin-top: 32px;
  margin-bottom: 60px;
  padding: 38px 0 32px 0;
  display: flex;
  align-items: center;
}
.hero .container {
  flex-direction: column;
  align-items: flex-start;
}
.hero h1 {
  color: var(--primary);
  margin-bottom: 18px;
}
.hero p {
  color: #475633;
  margin-bottom: 22px;
  font-size: 1.18rem;
  max-width: 560px;
}
.hero .btn-primary {
  margin-top: 8px;
}

@media (max-width: 768px) {
  .hero {
    margin-top: 12px;
    margin-bottom: 30px;
    padding: 22px 0;
  }
}

/* ========== NATURE ORGANIC CARDS & FLEX CONTAINERS ========== */
.feature-grid, .factor-grid, .benchmarking, .profit-charts, .trend-charts, .card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.factor-grid {
  gap: 20px;
  margin-bottom: 12px;
}

.card-container, .card-grid {
  gap: 24px;
  margin-bottom: 18px;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow1);
  margin-bottom: 20px;
  padding: 30px 22px;
  position: relative;
  min-width: 240px;
  flex: 1 1 220px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .card:focus-within {
  box-shadow: var(--shadow2);
  transform: translateY(-3px) scale(1.03);
}
.card-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

/* ========== ORGANIC SHAPES/EFFECTS ========== */
.feature-item, .factor-item {
  background: #e9edd6;
  border-radius: 32px 12px 28px 12px;
  box-shadow: var(--shadow1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 26px 22px 18px 22px;
  min-width: 210px;
  flex: 1 1 220px;
  transition: box-shadow var(--transition), transform var(--transition);
  margin-bottom: 20px;
}
.feature-item:hover, .factor-item:hover {
  box-shadow: var(--shadow2);
  transform: translateY(-2px) scale(1.025);
}
.feature-item img, .factor-item img {
  width: 44px;
  height: 44px;
  margin-bottom: 2px;
}
.feature-item h3, .factor-item strong {
  color: var(--organic-green);
}

@media (max-width: 900px) {
  .feature-grid, .factor-grid, .card-container, .card-grid {
    flex-direction: column;
    gap: 20px;
  }
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* ========== LISTS & TABLES ========== */
.service-list, .feature-list, .value-list, .equipment-list, .benchmarking ul, .key-metrics ul, .company-highlights, .market-commentary ul {
  margin-top: 6px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 18px;
}
.service-list li, .feature-list li, .value-list li, .equipment-list li, .benchmarking ul li, .key-metrics ul li, .market-commentary ul li {
  position: relative;
  color: var(--neutral-dark);
  font-size: 1.04rem;
  padding-left: 30px;
}
.service-list li:before, .feature-list li:before, .value-list li:before, .equipment-list li:before, .benchmarking ul li:before, .key-metrics ul li:before, .market-commentary ul li:before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--secondary);
  border-radius: 80% 45% 60% 60% / 55% 82% 70% 65%;
  position: absolute;
  left: 7px;
  top: 8px;
}

.comparison-table {
  width: 100%;
  margin-bottom: 28px;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f9f9f5;
  box-shadow: var(--shadow1);
}
.comparison-table th {
  background: var(--secondary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 14px 12px;
  font-size: 1.08rem;
  text-align: left;
}
.comparison-table td {
  padding: 13px 12px;
  color: var(--primary);
  background: #f6f5f2;
  border-bottom: 1px solid #e7eae0;
}
.comparison-table tr:last-child td {
  border-bottom: none;
}

.company-highlights p {
  font-size: 1.01rem;
  color: #495A3D;
  margin-bottom: 7px;
}

/* ========== TESTIMONIALS ========== */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #f6fce7;
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  min-width: 220px;
  flex: 1 1 320px;
  margin-bottom: 24px;
  border: 1.2px solid var(--earth3);
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 7px 28px 0 rgba(85,106,42,0.11);
  transform: scale(1.016);
}
.testimonial-card p {
  font-size: 1.09rem;
  color: var(--neutral-dark);
  margin-bottom: 6px;
}
.testimonial-author {
  color: var(--organic-green);
  font-size: 1.02rem;
  font-weight: 600;
  font-family: var(--font-display);
}

.client-logos {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 12px;
}
.client-logos img {
  height: 38px;
  opacity: .82;
}

/* ========== ACCREDITATION BADGES, ICON LISTS ========== */
.accreditation-badges {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 12px;
  margin-bottom: 8px;
}
.accreditation-badges img {
  height: 38px;
  filter: grayscale(.22) contrast(.88);
}

/* ========== ADDRESS & CONTACT ========== */
.address-details, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 8px;
  font-size: 1.04rem;
}
.footer-contact img, .address-details img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 8px;
  opacity: .86;
}
.footer-contact a, .address-details a {
  color: var(--primary);
  text-decoration: underline dotted;
}
.footer-contact a:hover, .address-details a:hover {
  color: var(--secondary);
}

/* ========== FOOTER ========== */
footer {
  background: #e0e7d5;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  box-shadow: var(--shadow1);
  margin-top: 64px;
  padding: 24px 0 18px 0;
}
footer > .container {
  flex-direction: row;
  gap: 38px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-menus {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.footer-menus a {
  color: var(--primary);
  font-size: 1.09rem;
  font-weight: 500;
  font-family: var(--font-display);
  padding: 6px 10px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}
.footer-menus a:hover, .footer-menus a:focus {
  background: var(--earth3);
  color: var(--secondary);
}

@media (max-width: 1050px) {
  footer > .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* ========== MISC CONTENT BLOCKS ========== */
.text-section {
  margin-bottom: 24px;
}
.text-section p {
  margin-bottom: 14px;
}

.analysis-summary {
  background: #f7fbe1;
  border-left: 5px solid var(--secondary);
  padding: 14px 22px;
  border-radius: var(--radius-small);
  color: var(--neutral-dark);
  margin-bottom: 18px;
}

/* ========== Responsive Utilities ========== */
@media (max-width: 800px) {
  .container {
    max-width: 99vw;
    padding: 0 8px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .card, .feature-item, .factor-item {
    min-width: 0;
    flex: 1 1 85vw;
  }
}

/* ========== BUTTONS, FORMS, CONTROLS ========== */
button, input[type="button"], input[type="submit"] {
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: var(--radius-small);
  border: none;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
  outline: none;
}
.button-secondary {
  background: #fff;
  border: 1.5px solid var(--secondary);
  color: var(--secondary);
  padding: 10px 18px;
  margin-right: 8px;
}
.button-secondary:hover, .button-secondary:focus {
  background: var(--secondary);
  color: #fff;
  box-shadow: var(--shadow1);
}

.button-settings {
  background: var(--earth3);
  color: var(--primary);
  padding: 10px 18px;
  border: 1.2px solid var(--earth2);
  margin-right: 8px;
}
.button-settings:hover, .button-settings:focus {
  background: var(--secondary);
  color: #fff;
}

/* ========== COOKIE CONSENT BANNER & MODAL ========== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #f2f9ea;
  color: var(--primary);
  z-index: 5000;
  box-shadow: 0 -4px 16px rgba(106,118,63,.08);
  padding: 18px 19px 18px 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  font-size: 1.025rem;
  border-top-left-radius: 21px;
  border-top-right-radius: 21px;
  animation: fadeInUp 0.38s cubic-bezier(.44,.14,.68,1.01);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(58px); }
  to { opacity: 1; transform: translateY(0); }
}

.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-banner .btn-primary,
.cookie-banner .button-secondary,
.cookie-banner .button-settings {
  font-size: 1rem;
  padding: 8px 20px;
  min-width: 130px;
}

@media (max-width: 992px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 13px 7px 13px 11px;
    font-size: 0.98rem;
  }
}

.cookie-modal-overlay {
  display: none;
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(83,104,57,.36);
  z-index: 6000;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.open {
  display: flex;
  animation: fadeInOverlay 0.28s ease;
}
@keyframes fadeInOverlay {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  padding: 32px 27px;
  border-radius: 21px;
  box-shadow: 0 9px 40px rgba(113,141,80,0.21);
  min-width: 340px;
  max-width: 95vw;
  color: var(--primary);
  font-size: 1.07rem;
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: relative;
  animation: modalIn .3s cubic-bezier(.44,.14,.68,1.09);
}
@keyframes modalIn {
  from { transform: scale(.93) translateY(60px); opacity:0; }
  to { transform: scale(1) translateY(0); opacity:1; }
}
.cookie-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.32rem;
  color: var(--secondary);
}
.cookie-modal .modal-close {
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 1.8rem;
  cursor: pointer;
  transition: color var(--transition);
  margin-left: 12px;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  color: var(--primary);
  outline: none;
}
.cookie-modal .cookie-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cookie-modal .cookie-option {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 8px;
  font-size: 1.08rem;
}
.cookie-modal .cookie-option label {
  font-weight: 500;
  color: var(--primary);
}
.cookie-modal .cookie-option input[type=checkbox] {
  width: 19px;
  height: 19px;
}
.cookie-modal .cookie-option .always {
  color: var(--secondary);
  font-size: .95rem;
  font-weight: 600;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 8px;
}

@media (max-width: 450px) {
  .cookie-modal {
    min-width: 0;
    padding: 17px 8px;
    font-size: 1rem;
    border-radius: 13px;
  }
}

/* ========== MICRO-INTERACTIONS, EFFECTS ========== */
.btn-primary, .button-secondary, .button-settings {
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), border var(--transition);
}

.card, .testimonial-card, .feature-item, .factor-item {
  transition: box-shadow var(--transition), transform var(--transition);
}

a, .btn-primary, .button-secondary, .button-settings {
  transition: color var(--transition), background var(--transition), border var(--transition);
}

/* ========== ADDITIONAL FINE ADJUSTMENTS ========== */
::-webkit-input-placeholder { color: #b6bdad; }
::-moz-placeholder { color: #b6bdad; }
:-ms-input-placeholder { color: #b6bdad; }
::placeholder { color: #b6bdad; }

::-webkit-scrollbar {
  height: 10px;
  width:  10px;
  background: #e7eae0;
  border-radius: 12px;
}
::-webkit-scrollbar-thumb {
  background: #b1c589;
  border-radius: 10px;
}

/* ========== VISUAL HIERARCHY & CONTRAST ========== */
@media (max-width: 700px) {
  .hero, section, .section {
    margin-top: 10px; margin-bottom: 23px;
    padding: 12px 0;
  }
  .testimonial-slider {
    flex-direction: column;
    gap: 14px;
  }
  .client-logos {
    gap: 12px;
  }
}

/* ========== PRINT & MISCELLANEOUS ========== */
@media print {
  body {
    background: #fff;
    color: #222;
  }
  header, footer, .mobile-menu-toggle, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  .container { padding: 0; }
}

/* =============================================================
   All required spacing/alignment patterns per instructions
   ============================================================= */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* END OF CSS */
