/* ========================
   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: #f7fafc;
  color: #1a2533;
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
ul, ol {
  padding-left: 1.5em;
}
img {
  border: 0;
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: #20537a;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #f7c41e;
  outline: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  box-sizing: border-box;
}

/* ===============
   BRAND COLORS
   =============== */
:root {
  --primary: #20537a;
  --secondary: #f7c41e;
  --accent: #f4f4f4;
  --body-bg: #f7fafc;
  --gray-800: #1a2533;
  --gray-600: #42526f;
  --gray-400: #7d8799;
  --white: #fff;
  --shadow-card: 0 2px 12px 0 rgba(32,83,122,0.09);
  --shadow-hover: 0 4px 24px 0 rgba(32,83,122,0.14);
  --radius: 12px;
  --transition: 0.2s cubic-bezier(.6,.05,.28,.91);
  --header-height: 72px;
}

/* ===============
   TYPOGRAPHY
   =============== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #20537a;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
  line-height: 1.15;
}
h1 {font-size: 2.25rem; margin-bottom: 18px;}
h2 {font-size: 1.7rem; margin-bottom: 16px;}
h3 {font-size: 1.25rem; margin-bottom: 10px;}
h4 {font-size: 1.15rem; margin-bottom: 8px;}
p, li {
  font-family: 'Roboto', Arial, sans-serif;
  color: #42526f;
  font-size: 1.04rem;
  line-height: 1.7;
  margin-bottom: 16px;
}
strong {font-weight: 600;}
cite {
  font-style: normal;
  font-size: 0.98rem;
  color: #20537a;
}
blockquote {
  margin: 0;
  font-style: italic;
  color: #1a2533;
  line-height: 1.5;
  font-size: 1.08rem;
}

/* ===============
   CONTAINER & SECTION
   =============== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ====== FLEXBOX LAYOUTS ====== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 24px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.015);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.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: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  flex-direction: row;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===============
   NAVIGATION
   =============== */
header {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 18px 0 rgba(32,83,122,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  min-height: var(--header-height);
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
header img[alt="Sonnenkraft Ammosun"] {
  height: 44px;
  margin-right: 28px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  margin-right: auto;
}
.main-nav a {
  color: var(--white);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.06rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background var(--transition);
  position: relative;
}
.main-nav a.active, .main-nav a:focus {
  background: rgba(247,196,30, 0.15);
  color: var(--secondary);
  outline: none;
}
.main-nav a:hover {
  background: rgba(247,196,30, 0.12);
  color: var(--secondary);
}
.cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.04rem;
  font-weight: 700;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  border-radius: 24px;
  padding: 10px 28px;
  margin-left: 16px;
  cursor: pointer;
  box-shadow: 0 2px 12px 0 rgba(32,83,122,0.10);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: #efb600;
  color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.025);
  outline: none;
}

/* ========================
   MOBILE NAVIGATION
   ======================== */
.mobile-menu-toggle {
  display: inline-flex;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.1rem;
  margin-left: 24px;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
  z-index: 999;
  align-items: center;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--secondary);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--primary);
  padding: 40px 28px 28px 28px;
  z-index: 1010;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(0.77,0,0.18,1);
  opacity: 0.98;
  box-shadow: 2px 0 12px 0 rgba(34,52,101,0.13);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 2.1rem;
  position: absolute;
  top: 20px;
  right: 24px;
  cursor: pointer;
  z-index: 1011;
  border-radius: 50%;
  padding: 6px;
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(247, 196, 30, 0.10);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 48px;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  color: var(--white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.14rem;
  font-weight: 500;
  padding: 12px 0 12px 10px;
  border-radius: 6px;
  width: 100%;
  transition: background var(--transition);
  display: block;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: rgba(247,196,30,.18);
  color: var(--secondary);
  outline: none;
}
@media (min-width: 1025px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}
@media (max-width: 1024px) {
  .main-nav { display: none !important;}
  .cta-btn { margin-left: 0; }
  .mobile-menu-toggle { display: inline-flex; }
}

/* ===================
   MAIN SECTIONS
   =================== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
@media (max-width: 600px) {
  section {
    padding: 22px 8px;
    margin-bottom: 32px;
  }
}
ul, ol {
  margin-bottom: 16px;
  color: #42526f;
  line-height: 1.7;
}
ul li, ol li {
  margin-bottom: 12px;
  padding-left: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
ul li img {
  width: 26px;
  height: 26px;
  margin-right: 8px;
  flex-shrink: 0;
}

/* ===============
   TESTIMONIALS
   =============== */
.testimonial-card {
  background: var(--accent);
  color: #20537a;
  border-left: 4px solid var(--secondary);
  border-radius: var(--radius);
  margin-bottom: 20px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-card);
  flex-direction: row;
  min-width: 0;
}
.testimonial-card blockquote {
  color: #1a2533;
  font-size: 1.08rem;
  font-style: italic;
  margin: 0 0 0 0;
}
.testimonial-card cite {
  color: #20537a;
  font-style: normal;
  font-weight: 600;
  margin-left: 16px;
}
@media (max-width: 768px) {
  .testimonial-card { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ===============
   FOOTER
   =============== */
footer {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  padding: 22px 0 0 0;
  margin-top: 48px;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.footer-nav a {
  color: var(--white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--secondary); }
.footer-contact {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 8px;
}
.footer-contact img {
  height: 18px;
  width: 18px;
  display: inline-block;
  margin-right: 7px;
  vertical-align: middle;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* ===============
   MAP PLACEHOLDER
   =============== */
.map-placeholder {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #edf2fa;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 18px 0 0 0;
  font-size: 1rem;
  color: #20537a;
  font-family: 'Roboto', Arial, sans-serif;
}
.map-placeholder img {
  width: 40px;
  height: 40px;
}

/* ===============
   COOKIE CONSENT BANNER
   =============== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  color: #20537a;
  z-index: 1050;
  box-shadow: 0 -3px 20px 0 rgba(32, 83, 122, 0.12);
  padding: 28px 14px 16px 14px;
  border-radius: 12px 12px 0 0;
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(.5, .2, .3, 1.0), opacity 0.3s;
}
.cookie-banner.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner p {
  font-size: 0.99rem;
  color: #42526f;
  line-height: 1.5;
  margin-bottom: 14px;
  max-width: 340px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 154px;
  align-items: flex-end;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02rem;
  padding: 7px 18px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  margin-bottom: 0;
  font-weight: 600;
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 10px 0 rgba(32, 83, 122, .10);
  transition: background var(--transition), color var(--transition);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--secondary);
  color: var(--primary);
  outline: none;
}
.cookie-banner .cookie-settings-btn {
  background: var(--secondary);
  color: var(--primary);
  font-weight: 700;
}
.cookie-banner .cookie-settings-btn:hover {
  background: var(--accent);
  color: var(--primary);
}
@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    max-width: 99vw;
    padding: 18px 7px 12px 7px;
  }
  .cookie-banner .cookie-actions { min-width: 0; align-items: stretch; }
}

/* ===========
   COOKIE MODAL
   =========== */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 1051;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(32, 83, 122, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s;
}
.cookie-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  position: fixed;
  z-index: 1052;
  left: 50%;
  top: 50%;
  background: var(--white);
  color: #20537a;
  border-radius: var(--radius);
  box-shadow: 0 8px 36px 0 rgba(32, 83, 122, 0.18);
  width: 98vw;
  max-width: 410px;
  padding: 36px 28px 22px 28px;
  transform: translate(-50%, -52%) scale(0.90);
  opacity: 0;
  pointer-events: none;
  transition: transform .38s cubic-bezier(.6,0,.28,1), opacity .28s;
}
.cookie-modal.active {
  transform: translate(-50%, -52%) scale(1.01);
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal h2 {
  color: var(--primary);
  font-size: 1.24rem;
  margin-bottom: 14px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 19px;
  padding: 12px 0px 10px 0px;
  border-bottom: 1px solid #e5e9f2;
}
.cookie-modal .cookie-category:last-child { border: none; }
.cookie-modal label {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.06rem;
  color: #20537a;
  font-weight: 500;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--primary);
  width: 20px;
  height: 20px;
}
.cookie-modal .category-always-on label { color: #7d8799; }
.cookie-modal .category-always-on input {
  opacity: 0.6;
  pointer-events: none;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  margin-top: 18px;
  gap: 13px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 16px; right: 18px;
  background: none;
  border: none;
  color: #20537a;
  font-size: 1.85rem;
  cursor: pointer;
  border-radius: 50%;
  padding: 2px 7px;
  transition: background var(--transition);
}
.cookie-modal .cookie-modal-close:hover {
  background: #f7c41e19;
}
@media (max-width: 500px) {
  .cookie-modal { padding: 18px 7px 10px 10px; max-width: 98vw;}
  .cookie-modal h2 { font-size: 1.04rem; }
}

/* ===========
   RESPONSIVE FLEX
   =========== */
@media (max-width: 1024px) {
  .container, .card-container, .content-grid, .text-image-section, .footer-nav {
    flex-direction: column !important;
    gap: 18px !important;
    align-items: stretch !important;
  }
  .footer-nav { align-items: flex-start !important; }
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column !important; gap: 18px; }
}
@media (max-width: 600px) {
  .testimonial-card {
    padding: 12px 10px;
    margin-bottom: 13px;
  }
}

/* ================
   MICRO-INTERACTIONS & ANIMATIONS
   ================ */
.card, .testimonial-card, section, .map-placeholder, .cookie-banner, .cookie-modal {
  transition: box-shadow var(--transition), transform var(--transition), opacity var(--transition);
}
.card:active, .testimonial-card:active, .map-placeholder:active {
  transform: scale(0.99);
}

/* ================
   FOCUS STYLES (Accessibility)
   ================ */
a:focus, button:focus, .cta-btn:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* Others */
::-webkit-input-placeholder   { color: #babfd2; opacity:1; }
::-moz-placeholder           { color: #babfd2; opacity:1; }
:-ms-input-placeholder       { color: #babfd2; opacity:1; }
::placeholder               { color: #babfd2; opacity:1; }

/* Utility classes */
.hidden { display: none !important; }

/* ===================
   PRINT
   =================== */
@media print {
  header, nav, footer, .cookie-banner, .cookie-modal, .mobile-menu { display: none !important; }
  section, main { box-shadow: none !important; background: #fff !important; }
}
