/* Sonnenkraft Hamburg – Geometric Structured CSS Design */

/* ===== RESET, NORMALIZE, 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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  height: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  background: #F4F7F6;
  min-height: 100vh;
  color: #1A4D2E;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 400;
  line-height: 1.6;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: #1A4D2E;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #FDBF32;
  outline: none;
}

/* ===== BRAND FONTS ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #1A4D2E;
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 20px;
  text-transform: uppercase;
}
h2 {
  font-size: 1.5rem;
  line-height: 1.18;
  margin-bottom: 18px;
  text-transform: uppercase;
}
h3 {
  font-size: 1.125rem;
  line-height: 1.2;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.subheadline {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  color: #1A4D2E;
  font-size: 1.13rem;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}
strong {
  font-weight: 600;
}

/* ===== LAYOUT CONTAINER ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(26,77,46,0.04);
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: #fff;
  border-bottom: 3px solid #FDBF32;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 80px;
}
.logo-link {
  display: flex;
  align-items: center;
  padding: 8px 0;
  margin-right: 30px;
}
.main-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 9px;
  position: relative;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #FDBF32;
  color: #1A4D2E;
}
.btn-primary {
  display: inline-block;
  padding: 12px 32px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: #1A4D2E;
  border: none;
  border-radius: 16px 0 16px 0;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 4px 16px 0 rgba(26,77,46,0.10);
  transition: background 0.2s, box-shadow 0.2s;
}
.btn-primary:hover, .btn-primary:focus {
  background: #FDBF32;
  color: #1A4D2E;
  box-shadow: 0 6px 18px 0 rgba(253,191,50,0.12);
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #1A4D2E;
  cursor: pointer;
  line-height: 1;
  margin-left: 18px;
  z-index: 140;
  transition: color 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #FDBF32;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 0 32px 0 rgba(26,77,46,0.10);
  z-index: 200;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(.7,.3,.3,1), opacity 0.25s;
  display: flex;
  flex-direction: column;
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #1A4D2E;
  align-self: flex-end;
  margin: 24px 32px 0 0;
  cursor: pointer;
  z-index: 201;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #FDBF32;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: center;
  justify-content: center;
  flex: 1;
  margin-top: 42px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #1A4D2E;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 18px 0 18px 0;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FDBF32;
  color: #1A4D2E;
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(130deg, #F4F7F6 65%, #FDBF32 100%);
  padding: 60px 0 34px 0;
  margin-bottom: 48px;
  border-radius: 0 0 60px 0/0 0 80px 0;
  box-shadow: 0 8px 44px 0 rgba(253,191,50,0.05);
  position: relative;
}
.hero .container {
  align-items: flex-start;
  justify-content: center;
}
.hero h1 {
  color: #1A4D2E;
  font-size: 2.3rem;
  max-width: 600px;
  margin-bottom: 18px;
  letter-spacing: 0.05em;
}
.hero .subheadline {
  color: #1A4D2E;
  font-size: 1.18rem;
}
.hero .btn-primary {
  margin-top: 18px;
}

/* ====== FLEXBOX SPACING PATTERNS (MANDATORY) ====== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  box-shadow: 0 2px 6px 0 rgba(26,77,46,0.07);
  border-radius: 18px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  transition: box-shadow 0.18s;
}
.card:hover {
  box-shadow: 0 6px 24px 0 rgba(26,77,46,0.11);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #f4f7f6;
  padding: 20px 32px;
  border-radius: 18px 0 18px 0;
  box-shadow: 0 2px 10px 0 rgba(26,77,46,0.09);
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 460px;
}
.testimonial-card p {
  color: #1A4D2E;
  font-size: 1.08rem;
  font-style: italic;
  margin-bottom: 8px;
}
.testimonial-meta {
  color: #1A4D2E;
  font-size: 0.93rem;
  opacity: 0.77;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  align-self: flex-end;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  align-items: stretch;
  margin-bottom: 18px;
}
.feature-grid > div {
  background: #fff;
  border-radius: 20px 0 20px 0;
  box-shadow: 0 2px 8px 0 rgba(26,77,46,0.08);
  padding: 24px 22px 22px 22px;
  min-width: 220px;
  flex: 1 1 249px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.19s;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 34px 0 rgba(253,191,50,0.12);
}

.benefit-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 12px;
}
.benefit-list li {
  background: #FDBF32;
  color: #1A4D2E;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 16px 0 16px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.98rem;
}
.cta-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #FDBF32;
  color: #1A4D2E;
  border-radius: 24px 0 24px 0;
  padding: 34px 24px;
  box-shadow: 0 2px 10px 0 rgba(253,191,50,0.08);
  gap: 18px;
}
.cta-banner h2 {
  color: #1A4D2E;
}
.cta-banner .btn-primary {
  background: #1A4D2E;
  color: #fff;
  margin-top: 8px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1.07rem;
}
.project-summary h3 {
  font-size: 1.13rem;
  margin-bottom: 10px;
}

.map-placeholder {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  background: #e5ebea;
  padding: 12px 20px;
  border-radius: 12px 0 12px 0;
  font-size: 0.96rem;
}

/* ==== FOOTER ==== */
footer {
  background: #1A4D2E;
  color: #F4F7F6;
  margin-top: 50px;
  padding: 44px 0 10px 0;
}
footer .container {
  flex-direction: column;
  gap: 16px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #FDBF32;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
}
.footer-contact {
  font-size: 0.98rem;
  color: #F4F7F6;
  line-height: 1.5;
  opacity: 0.9;
}

/* ===== COOKIE CONSENT ===== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 3px solid #FDBF32;
  box-shadow: 0 -2px 30px 0 rgba(26,77,46,0.13);
  z-index: 400;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
  padding: 26px 18px;
  transition: transform 0.3s, opacity 0.3s;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(110%);
  pointer-events: none;
}
.cookie-banner p {
  color: #1A4D2E;
  font-size: 1.04rem;
  margin-right: 10px;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 16px;
  align-items: center;
}
.cookie-btn {
  display: inline-block;
  background: #1A4D2E;
  border: none;
  color: #fff;
  padding: 12px 18px;
  font-size: 1rem;
  border-radius: 12px 0 12px 0;
  cursor: pointer;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s, color 0.2s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #FDBF32;
  color: #1A4D2E;
}
.cookie-btn.cookie-reject {
  background: #fff;
  color: #1A4D2E;
  border: 1.5px solid #1A4D2E;
}
.cookie-btn.cookie-reject:hover, .cookie-btn.cookie-reject:focus {
  background: #FDBF32;
  color: #1A4D2E;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 10000;
  inset: 0;
  background: rgba(27, 45, 33, 0.44);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  padding: 40px 32px;
  border-radius: 20px 0 20px 0;
  min-width: 330px;
  max-width: 98vw;
  box-shadow: 0 8px 40px 0 rgba(26,77,46,0.17);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cookie-modal h2 {
  color: #1A4D2E;
  font-size: 1.38rem;
  margin-bottom: 10px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 1.05rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-category input[type=checkbox] {
  accent-color: #FDBF32;
  width: 20px;
  height: 20px;
}
.cookie-category .category-disabled {
  opacity: 0.75;
  color: #aaa;
}
.cookie-modal .cookie-btns {
  gap: 12px;
  justify-content: flex-end;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1080px) {
  .container {
    max-width: 100%;
    padding: 0 6vw;
  }
  .feature-grid {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .footer-nav {
    gap: 14px;
  }
  .feature-grid > div {
    min-width: 160px;
    font-size: 0.97rem;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  header .container {
    flex-wrap: wrap;
    gap: 10px;
    min-height: 64px;
  }
  .container {
    padding: 0 12px;
    max-width: 100vw;
  }
  h1 {
    font-size: 1.53rem;
  }
  h2 {
    font-size: 1.17rem;
  }
  .hero {
    padding: 38px 0 20px 0;
    border-radius: 0 0 40px 0/0 0 50px 0;
    margin-bottom: 28px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .testimonials .testimonial-card, .testimonial-card {
    max-width: 97vw;
    min-width: 0;
    padding: 16px 14px;
  }
  .cta-banner {
    padding: 24px 6px;
  }
  .section {
    padding: 22px 6px;
    margin-bottom: 36px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 520px) {
  .hero {
    padding: 22px 0 12px 0;
  }
  .footer-contact {
    font-size: 0.89rem;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 8px;
  }
  .cookie-modal {
    min-width: 0;
    padding: 18px 6px;
    font-size: 0.99rem;
  }
}

/* ===== MICRO-INTERACTIONS & HOVER ===== */
.card, .feature-grid > div, .testimonial-card, .cta-banner, .btn-primary, .main-nav a, .mobile-nav a {
  transition: box-shadow 0.19s, background 0.18s, color 0.18s, transform 0.17s;
}
.card:hover, .feature-grid > div:hover, .testimonial-card:hover {
  transform: translateY(-3px) scale(1.016);
  box-shadow: 0 10px 32px 0 rgba(253,191,50,0.10);
}
.cta-banner:hover {
  background: #1A4D2E;
  color: #FDBF32;
  box-shadow: 0 10px 24px 0 rgba(26,77,46,0.14);
}
.cta-banner:hover h2 {
  color: #FDBF32;
}

/* ===== UTILITY/HELPERS ===== */
.hidden { display: none !important; }
.flex { display: flex !important; }
.align-center { align-items: center !important; }
.justify-center { justify-content: center !important; }

/* ===== HTML ELEMENTS ===== */
blockquote {
  font-style: italic;
  color: #1A4D2E;
  background: #FDBF32;
  border-left: 6px solid #1A4D2E;
  margin: 18px 0;
  padding: 14px 22px;
  border-radius: 15px 0 15px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
th, td {
  border: 1.5px solid #E5EBEA;
  padding: 10px 8px;
  text-align: left;
  font-size: 0.99rem;
}
th {
  background: #F4F7F6;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #1A4D2E;
}

/* ===== SCROLLBARS (for structure/aesthetic) ===== */
::-webkit-scrollbar {
  width: 11px;
  background: #e5ebea;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: #FDBF32;
  border-radius: 10px;
}

/* ===== FOCUS STATES (Accessibility) ===== */
a:focus, .btn-primary:focus, .cookie-btn:focus, .mobile-menu-close:focus, .mobile-menu-toggle:focus {
  outline: 2.5px solid #FDBF32;
  outline-offset: 2px;
}

/* ===== PRINT ADAPT ===== */
@media print {
  nav, .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-overlay, footer {
    display: none !important;
  }
  body {
    background: #fff;
  }
}

/* ===== GEOMETRIC STRUCTURED VISUAL ELEMENTS ===== */
/* Minimal hard angles, sharp radii, grids via flex, geometric accent shapes */
.hero::after {
  content: '';
  display: block;
  position: absolute;
  right: 12vw;
  bottom: -42px;
  width: 120px;
  height: 52px;
  background: #FDBF32;
  border-radius: 0 0 52px 0;
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
}
.feature-grid > div::before {
  content: '';
  display: block;
  width: 42px;
  height: 5px;
  background: #FDBF32;
  margin: 0 auto 12px auto;
  border-radius: 4px 0 4px 0;
  opacity: 0.3;
}
.feature-grid > div img {
  width: 42px;
  height: 42px;
  margin-bottom: 6px;
}

/* ===== END of Sonnenkraft Hamburg CSS ===== */
