/* =========================== */
/* CSS RESET + NORMALIZE START */
/* =========================== */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
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 { margin: 0; padding: 0; border: 0; font: inherit; font-size: 100%; vertical-align: baseline; }
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section, main { display: block; }
body { line-height: 1.5; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; border: 0; }
button, input, select, textarea { font: inherit; outline: none; border-radius: 0; }
input[type="search"]::-webkit-search-cancel-button { appearance: none; }
button { cursor: pointer; background: none; border: none; }
:focus { outline: 2px solid #143545; outline-offset: 2px; }

/* =========================== */
/*      BRAND & BASE STYLES    */
/* =========================== */
:root {
  --color-primary: #143545;
  --color-secondary: #E5F4F1;
  --color-accent: #F5C97A;
  --color-bg: #FFFFFF;
  --color-text: #143545;
  --color-muted: #8BA1AA;
  --color-border: #E5F4F1;
  --color-shadow: rgba(20,53,69,0.04);
  --radius: 12px;
  --transition: 0.24s cubic-bezier(.39,.42,.52,.82);
  --shadow-card: 0 3px 16px var(--color-shadow);
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: var(--color-bg);
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 1rem;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  margin-bottom: 16px;
  line-height: 1.18;
}
h1 { font-size: 2.75rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.38rem; }
  h3 { font-size: 1.1rem; }
}

p, ul, ol, li {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 12px;
}
strong {
  font-weight: 600;
  color: var(--color-primary);
}
.subheadline {
  color: var(--color-muted);
  font-size: 1.25rem;
  margin-bottom: 32px;
}
a {
  color: var(--color-primary);
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--color-accent);
}

/* =========================== */
/*       GENERAL LAYOUT        */
/* =========================== */
.container {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
@media (max-width: 600px) {
  .container { padding: 0 12px; }
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (max-width: 600px) {
  .content-wrapper { gap: 20px; }
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (max-width: 600px) {
  .section { margin-bottom: 36px; padding: 20px 8px; }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 22px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 32px rgba(20,53,69,0.11);
  border-color: var(--color-accent);
  z-index: 1;
}
.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;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 16px; }
  .content-grid, .card-container { flex-direction: column; gap: 20px; }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  color: var(--color-primary);
  border: 1.5px solid #d9ede9;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* =========================== */
/*         HEADER NAV          */
/* =========================== */
header {
  background: var(--color-bg);
  padding: 20px 0 0 0;
  border-bottom: 1px solid #f3f3f3;
  margin-bottom: 24px;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
}
header nav a {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-primary);
  padding: 7px 0;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  position: relative;
}
header nav a.cta-btn {
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(245,201,122,0.08);
  margin-left: 10px;
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
}
header nav a.cta-btn:hover,
header nav a.cta-btn:focus {
  background: var(--color-primary);
  color: var(--color-bg);
  box-shadow: 0 4px 16px 0 rgba(20,53,69,0.10);
}
header nav a:hover, header nav a:focus {
  color: var(--color-accent);
  background: var(--color-secondary);
}
header img[alt="LichtHafen"] {
  height: 48px;
  width: auto;
}

@media (max-width: 900px) {
  header nav { gap: 16px; }
  header img[alt="LichtHafen"] { height: 38px; }
}

/* =========================== */
/*     MOBILE NAVIGATION       */
/* =========================== */
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  color: var(--color-primary);
  background: var(--color-bg);
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  margin-left: 16px;
  z-index: 60;
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-toggle:focus { background: var(--color-secondary); outline: 2px solid var(--color-accent); }

@media (max-width: 900px) {
  header nav { display: none; }
  .mobile-menu-toggle { display: block; }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.44,.05,.51,.96);
  box-shadow: 0 0 42px 0 rgba(20,53,69,0.14);
  padding: 0;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  align-self: flex-end;
  margin: 14px 22px 0 0;
  font-size: 2.2rem;
  color: var(--color-primary);
  padding: 6px 12px;
  background: none;
  border: none;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 40px 0 0 32px;
}
.mobile-nav a {
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--color-primary);
  padding: 12px 6px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
  min-width: 180px;
  box-sizing: border-box;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}

/* =========================== */
/*           MAIN              */
/* =========================== */
main {
  margin: 0 auto;
  padding-bottom: 60px;
  min-height: 60vh;
}
.section {
  box-shadow: var(--shadow-card);
  background: var(--color-bg);
}

/* =========================== */
/*    CARDS, ARTICLES, TOPICS  */
/* =========================== */
.topic-cards {
  display: flex;
  flex-direction: row;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.topic-cards > div {
  background: var(--color-secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  flex: 1 1 200px;
  padding: 20px 18px;
  min-width: 200px;
  transition: box-shadow var(--transition), background var(--transition);
  color: var(--color-primary);
  border: 1px solid #d9ede9;
}
.topic-cards > div:hover, .topic-cards > div:focus-within {
  box-shadow: 0 6px 16px rgba(20,53,69,0.09);
  background: #f7fdfc;
}
@media (max-width: 768px) {
  .topic-cards { flex-direction: column; gap: 16px; }
}

.filter-search {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}
.filter-search select, .filter-search input[type="search"] {
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  font-size: 1rem;
  margin-left: 4px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.filter-search input[type="search"]:focus, .filter-search select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 2px 12px 0 rgba(245,201,122,0.08);
}
@media (max-width: 500px) {
  .filter-search { flex-direction: column; align-items: flex-start; gap: 10px; }
  .filter-search select, .filter-search input[type="search"] { width: 100%; min-width: 0; }
}

ul, ol { padding-left: 0; list-style: none; }
ul li, ol li {
  padding-left: 0;
  margin-bottom: 12px;
  line-height: 1.65;
  color: var(--color-text);
  display: flex;
  align-items: flex-start;
  gap: 7px;
}
ul li img, ol li img {
  width: 20px; height: 20px;
  margin-right: 7px;
}

/* Advantages/feature section icons */
.content-wrapper > ul > li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: var(--color-secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
  min-width: 170px;
  margin-bottom: 20px;
  border: 1px solid #d9ede9;
}
@media (min-width: 700px) {
  .content-wrapper > ul {
    display: flex; flex-direction: row; flex-wrap: wrap; gap: 24px;
  }
  .content-wrapper > ul > li { flex: 1 1 200px; }
}

/* =========================== */
/*        BUTTON STYLES        */
/* =========================== */
.cta-btn, .cta-btn:visited {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 30px;
  padding: 12px 34px;
  border: none;
  box-shadow: 0 2px 10px 0 rgba(245,201,122,0.09);
  cursor: pointer;
  margin-top: 10px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-primary);
  color: var(--color-bg);
  box-shadow: 0 4px 18px 0 rgba(20,53,69,0.09);
}

/* =========================== */
/*           FOOTER            */
/* =========================== */
footer {
  background: #fff;
  border-top: 1px solid #f2f2f2;
  padding: 20px 0 0 0;
}
footer .container {
  flex-direction: column;
}
footer .content-wrapper {
  flex-direction: row;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 32px 0 20px 0;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer nav a {
  color: var(--color-muted);
  font-size: 0.97rem;
  margin-bottom: 7px;
  transition: color var(--transition);
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-primary);
}
footer .contact-info {
  margin-bottom: 10px;
}
footer .contact-info ul {
  display: flex; flex-direction: column; gap: 10px;
}
footer .contact-info li {
  font-size: 0.99rem;
  color: var(--color-primary);
  align-items: center;
  gap: 8px;
}
footer .social-links {
  display: flex;
  flex-direction: row;
  gap: 15px;
  align-items: center;
}
footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  border-radius: 50%;
  background: var(--color-secondary);
  transition: background var(--transition);
}
footer .social-links a:hover {
  background: var(--color-accent);
}
footer .social-links img {
  width: 20px; height: 20px;
}
@media (max-width: 900px) {
  footer .content-wrapper { flex-direction: column; gap: 20px; }
}

/* =========================== */
/*        TEAM & TESTIMONIAL   */
/* =========================== */
.team-bio {
  background: var(--color-secondary);
  padding: 18px 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

/* =========================== */
/*   CONTACT DETAILS / MAP     */
/* =========================== */
.address-map {
  display: flex; flex-direction: row; align-items: center; gap: 14px; margin: 18px 0 10px 0;
}
.address-map img { width: 26px; height: 26px; }
.contact-details ul { display: flex; flex-direction: column; gap: 8px; }

/* =========================== */
/*      COOKIE CONSENT BANNER  */
/* =========================== */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 -2px 24px 0 rgba(20,53,69,0.06);
  border-top: 1.5px solid #eaeaea;
  z-index: 5000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  gap: 28px;
  font-size: 1rem;
  transition: transform 0.35s var(--transition), opacity 0.3s var(--transition);
}
.cookie-banner.hide {
  transform: translateY(100%); opacity: 0; pointer-events: none;
}
.cookie-banner .banner-text {
  flex: 3 1 300px;
  color: var(--color-primary);
}
.cookie-banner .cookie-btns {
  display: flex; flex-direction: row; gap: 16px; align-items: center;
}
.cookie-btn {
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  border-radius: 20px; padding: 9px 22px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin: 0 2px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: 0 1px 8px 0 rgba(245,201,122,0.09);
}
.cookie-btn.settings {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-primary);
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column; align-items: flex-start; padding: 18px 10px; gap: 12px; font-size: 0.99em;
  }
  .cookie-banner .cookie-btns { gap: 8px; }
}

/* COOKIE MODAL */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 6000;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(20,53,69,0.19);
  display: flex; align-items: center; justify-content: center;
  opacity: 1;
  transition: opacity 0.38s var(--transition);
  pointer-events: auto;
}
.cookie-modal-backdrop.hide { opacity: 0; pointer-events: none; }
.cookie-modal {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 48px 0 rgba(20,53,69, 0.12);
  max-width: 410px; width: 94vw;
  padding: 38px 30px 28px 30px;
  color: var(--color-primary);
  display: flex; flex-direction: column;
  gap: 17px;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.3rem; margin-bottom: 17px;
}
.cookie-category {
  display: flex; align-items: center;
  gap: 14px; margin-bottom: 17px;
}
.cookie-category label {
  font-weight: 500;
}
.cookie-toggle {
  width: 34px; height: 18px; position: relative;
  display: inline-block;
}
.cookie-toggle input { display: none; }
.cookie-slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background: #e4e4e4; border-radius: 9px;
  transition: background 0.24s cubic-bezier(.48,.72,.39,.78);
}
.cookie-toggle input:checked + .cookie-slider { background: var(--color-accent); }
.cookie-slider:before {
  position: absolute; content: ""; height: 14px; width: 14px; left: 2px; bottom: 2px;
  background: #fff; border-radius: 50%; transition: transform 0.25s cubic-bezier(.44,.35,.46,.77);
}
.cookie-toggle input:checked + .cookie-slider:before { transform: translateX(16px); }
.cookie-modal .close-modal {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none;
  font-size: 1.7rem;
  color: var(--color-primary);
  border-radius: 7px; padding: 1px 8px;
  cursor: pointer;
  transition: background var(--transition);
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  background: var(--color-secondary);
}

/* =========================== */
/*      MICRO-INTERACTIONS     */
/* =========================== */
.card, .topic-cards > div, .testimonial-card {
  transition: box-shadow 0.2s var(--transition), border-color 0.18s var(--transition), background 0.21s var(--transition);
}
.cta-btn, .cookie-btn, .cookie-btn.settings {
  transition: background 0.2s var(--transition), color 0.18s var(--transition), box-shadow 0.19s var(--transition);
}

/* =========================== */
/*      RESPONSIVE               */
/* =========================== */
@media (max-width: 600px) {
  main { padding-bottom: 32px; }
  .section { padding: 14px 4px; margin-bottom: 30px; }
  .card, .testimonial-card { padding: 16px 8px; }
}

/* =========================== */
/* Spacing Enforcements as required */
.card, .topic-cards > div, .feature-item, .testimonial-card, .content-wrapper > ul > li { margin-bottom: 20px; }
.section { margin-bottom: 60px !important; }
.card-container, .content-grid, .topic-cards { gap: 24px !important; }

/* Prevent overlap between elements */
main > .section, main > section { margin-bottom: 60px !important; }

/* Ensure all layout flex containers have display: flex */
.container, .content-wrapper, .topic-cards, .content-grid, .team-bio, .address-map, .contact-details ul, .footer .content-wrapper, .footer nav, .card-container, .testimonial-card, .feature-item {
  display: flex;
  flex-wrap: wrap;
}

/* =========================== */
/* Hide visually when not needed */
.cookie-banner.hide, .cookie-modal-backdrop.hide { display: none !important; }

/* =========================== */
/* Always dark text in testimonial/review sections for contrast  */
.testimonial-card {
  background: var(--color-secondary);
  color: var(--color-primary) !important;
  border: 1.5px solid #d9ede9;
  box-shadow: var(--shadow-card);
}

/* ~ END OF STYLE.CSS ~ */
