/* ===========================================================
  WealthBridge Shore E-Drive – Vibrant Energetic Theme CSS
  -----------------------------------------------------------
  - Flexbox-only layouts (NO grid, NO columns)
  - Responsive (mobile-first)
  - Brand: #18647B (primary), #35A079 (secondary), #F7FFFC (accent)
  - Fonts: Montserrat (display), Roboto (body)
  - High contrast, bold typography, dynamic/electric accents
  - Micro-interactions, transitions, and animated mobile menu/cookie consent
  =========================================================== */

/* ---------- 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;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body { line-height: 1.6; }
img, picture, video, canvas, svg { display: inline-block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul, ol { list-style: none; }

/* ---------- Base Brand Variables ---------- */
:root {
  --primary: #18647B;
  --secondary: #35A079;
  --accent: #F7FFFC;
  --electric-blue: #00DFFC;
  --vivid-lime: #BFFF00;
  --hot-pink: #FF2D66;
  --deep-navy: #03253E;
  --shadow: 0 4px 16px 0 rgba(24,100,123,0.14);
  --radius: 14px;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

body {
  font-family: var(--font-body);
  background: var(--accent);
  color: var(--deep-navy);
  font-size: 16px;
  min-height: 100vh;
  scroll-behavior: smooth;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 900;
  line-height: 1.16;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.8rem;
  letter-spacing: -2px;
  margin-bottom: 20px;
}
h2 {
  font-size: 2.2rem;
  letter-spacing: -1px;
  margin-top: 16px;
}
h3 {
  font-size: 1.5rem;
  margin-top: 12px;
  font-weight: 700;
}
h4,h5,h6 {
  font-size: 1.2rem;
}
p, ul, ol, dl, li, dd {
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--deep-navy);
  margin-bottom: 14px;
}
b, strong {
  color: var(--secondary);
  font-weight: 700;
}
a:hover {
  color: var(--electric-blue);
}

/* Emphasized 'electric' text style */
.electric {
  color: var(--electric-blue);
  font-weight: 900;
  text-shadow: 0 2px 16px #00e0c2c4;
}

/* ---------- Header & Navigation ---------- */
header {
  background: linear-gradient(90deg, var(--primary) 80%, var(--electric-blue) 100%);
  box-shadow: var(--shadow);
  padding: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 0;
}
header img {
  height: 48px;
  margin-right: 24px;
  vertical-align: middle;
}
nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
nav a {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  font-size: 1rem;
  padding: 8px 14px;
  border-radius: 7px;
  transition: background 0.2s, color 0.2s, box-shadow 0.17s;
}
nav a:hover, .mobile-nav a:hover {
  background: var(--electric-blue);
  color: var(--deep-navy);
  box-shadow: 0 2px 8px 0 #00DFFC50;
}
.cta-btn, nav .cta-btn {
  background: var(--vivid-lime);
  color: var(--primary);
  font-weight: 900;
  border: none;
  outline: none;
  padding: 12px 24px;
  margin-left: 12px;
  border-radius: 26px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  box-shadow: 0 4px 28px 0 #BFFF0037;
  cursor: pointer;
  letter-spacing: 1px;
  transition: background 0.2s, color 0.2s, transform 0.1s;
  display: inline-block;
}
.cta-btn:hover, nav .cta-btn:hover {
  background: var(--hot-pink);
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 4px 24px 0 #FF2D6639;
}

/* ---------- Mobile Menu Styles ---------- */
.mobile-menu-toggle {
  display: none;
  background: var(--hot-pink);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  outline: none;
  margin-left: 16px;
  transition: background 0.2s, box-shadow 0.15s;
  box-shadow: 0 2px 12px 0 #FF2D6635;
  z-index: 101;
  align-items: center;
  justify-content: center;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--primary);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--deep-navy);
  color: var(--accent);
  transform: translateX(-110vw);
  transition: transform 0.4s cubic-bezier(0.8,0.1,0.4,1);
  z-index: 99999;
  padding: 0 0 32px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 0 6px 40px 0 #00DFFC66;
}
.mobile-menu-close {
  background: var(--hot-pink);
  color: #fff;
  border: none;
  font-size: 2.5rem;
  position: absolute;
  top: 24px;
  right: 22px;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  box-shadow: 0 2px 18px 0 #FF2D667A;
  transition: background 0.15s;
  z-index: 1;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--vivid-lime);
  color: var(--deep-navy);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 88px 30px 0 30px;
  gap: 16px;
  width: 85vw;
}
.mobile-nav a {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 900;
  padding: 16px 0 10px 0;
  min-width: 160px;
  text-align: left;
  border-radius: 8px;
  transition: background 0.17s, color 0.17s, box-shadow 0.17s;
}

.mobile-nav a:active {
  background: var(--electric-blue);
  color: var(--primary);
}

/* Show/hide mobile menu button & menu on breakpoints */
@media (max-width: 1024px) {
  header nav { display: none; }
  .mobile-menu-toggle { display: flex !important; }
}
@media (max-width: 768px) {
  .container { padding: 0 10px; }
  header .container { height: 60px; }
  header img { height: 36px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1rem; }
}

/* Hide mobile menu on desktop */
@media (min-width: 1025px) {
  .mobile-menu,
  .mobile-menu.open {
    display: none !important;
  }
  .mobile-menu-toggle { display: none !important; }
  header nav { display: flex !important; }
}

/* ---------- Content Section Layouts (Spacing/Alignment) ---------- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: var(--radius);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px;
  flex: 1 1 270px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 8px 32px 0 #18647B33;
}
.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;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--accent);
  border-radius: 16px;
  box-shadow: 0 2px 14px 0 #18647B11;
  margin-bottom: 20px;
  border-left: 6px solid var(--vivid-lime);
  color: #222;
  font-style: italic;
  font-size: 1.08rem;
  transition: box-shadow 0.16s;
}
.testimonial-card p {
  color: #242424;
  margin-bottom: 0 !important;
}
.testimonial-card b {
  font-style: normal;
  color: var(--primary);
  letter-spacing: 0.05em;
}
.testimonial-card:hover {
  box-shadow: 0 8px 36px 0 #BFFF0085, 0 2px 18px 0 #00DFFC25;
  border-left: 6px solid var(--hot-pink);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* ---------- Utility/Content Classes ---------- */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 3px 18px 0 #18647B11;
  padding: 40px 36px;
  margin-bottom: 40px;
  min-width: 0;
}
@media (max-width: 768px) {
  .content-wrapper {
    padding: 25px 12px;
    margin-bottom: 22px;
  }
}

ul li, ol li {
  padding-left: 38px;
  position: relative;
  margin-bottom: 10px;
  min-height: 36px;
  display: flex;
  align-items: center;
  font-size: 1rem;
}
ul li img {
  width: 28px;
  height: 28px;
  margin-right: 10px;
  position: absolute;
  left: 0;
  top: 4px;
}

.team-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.team-roles > div {
  background: var(--accent);
  border-radius: 13px;
  box-shadow: 0 2px 10px 0 #00DFFC18;
  padding: 22px 16px 18px 18px;
  flex: 1 1 190px;
  font-size: 1em;
  margin-bottom: 20px;
  font-family: var(--body);
  transition: box-shadow 0.17s;
}
.team-roles > div:hover {
  box-shadow: 0 8px 28px 0 #35A07944, 0 2px 20px 0 #00DFFC22;
}

.event-summary {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 20px 16px;
  margin-bottom: 20px;
  transition: box-shadow 0.12s;
}
.event-summary:hover {
  box-shadow: 0 4px 24px 0 #18647B14;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-details p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
}
.contact-details img {
  width: 24px; height: 24px;
  margin: 0;
}

/* Form elements and tables (Mitgliedschaft page) */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin-bottom: 24px;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 2px 14px #00DFFC20;
}
thead { background: var(--primary); color: #fff; }
thead th {
  font-family: var(--font-display);
  padding: 14px 13px; font-size: 1.04rem;
}
tbody td {
  font-size: 1.04rem;
  padding: 16px 13px;
  border-bottom: 1px solid var(--electric-blue);
  color: var(--deep-navy);
}
tr:last-child td { border-bottom: none; }

dl dt {
  font-family: var(--font-display);
  font-weight: 700;
  margin-top: 18px;
}
dl dd {
  margin-left: 0;
  color: var(--primary);
  margin-bottom: 14px;
}

/* ---------- Footer ---------- */
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 34px 0 22px 0;
  width: 100%;
  font-size: 1rem;
}
footer .container {
  flex-direction: column;
  gap: 18px;
  align-items: center;
  justify-content: flex-start;
}
footer nav {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-bottom: 4px;
}
footer nav a {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: bold;
  font-size: 1em;
  padding: 5px 7px;
  border-radius: 6px;
  transition: background 0.18s, color 0.2s;
}
footer nav a:hover {
  background: var(--vivid-lime);
  color: var(--primary);
}
footer p {
  margin: 0;
  font-size: 1em;
}

/* ---------- Cookie Consent Banner ---------- */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 22px 34px 22px 24px;
  background: var(--hot-pink);
  color: #fff;
  z-index: 99999;
  box-shadow: 0 -6px 30px 0 #FF2D6625;
  border-radius: 18px 18px 0 0;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.cookie-consent-banner.active {
  opacity: 1;
  pointer-events: initial;
}
.cookie-consent-banner p {
  font-size: 1.11rem;
  flex: 1 1 auto;
  margin-right: 24px;
}
.cookie-consent-banner .cookie-btn {
  margin-left: 8px;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 20px;
  font-family: var(--font-display);
  font-weight: bold;
  font-size: 1rem;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.17s, color 0.17s, box-shadow 0.17s, transform 0.10s;
  box-shadow: 0 2px 14px 0 #FF2D6634;
}
.cookie-consent-banner .cookie-btn:hover {
  background: var(--vivid-lime);
  color: var(--deep-navy);
  transform: scale(1.06);
}
.cookie-consent-banner .cookie-btn.reject {
  background: var(--secondary);
  color: #fff;
}
.cookie-consent-banner .cookie-btn.reject:hover {
  background: var(--primary);
  color: #fff;
}

/* Cookie settings modal */
.cookie-settings-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(3,37,62,0.63);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s;
}
.cookie-settings-modal.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-settings-content {
  background: #fff;
  color: var(--deep-navy);
  border-radius: 16px;
  padding: 36px 26px 28px 26px;
  min-width: 320px;
  max-width: 95vw;
  box-shadow: 0 4px 28px #18647B28, 0 2px 16px #00DFFC20;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  animation: fadeInCookie 0.23s;
}
@keyframes fadeInCookie {
  from { transform: scale(0.97) translateY(30px); opacity: 0.3; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-settings-content h2 {
  color: var(--primary); font-size: 1.3rem; margin-bottom: 14px;
}
.cookie-settings-content label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 1.06rem;
  font-weight: bold;
  color: var(--secondary);
}
.cookie-toggle {
  width: 40px;
  height: 22px;
  background: #eee;
  border-radius: 16px;
  position: relative;
  margin-left: 12px;
  border: 2px solid var(--secondary);
  transition: background 0.18s;
}
.cookie-toggle input {
  display: none;
}
.cookie-toggle::after {
  content: '';
  display: block;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary);
  position: absolute;
  top: 1px; left: 1px;
  transition: left 0.2s, background 0.15s;
}
.cookie-toggle input:checked + .cookie-toggle::after {
  left: 19px;
  background: var(--vivid-lime);
}
.cookie-settings-btn-row {
  display: flex;
  gap: 17px;
  margin-top: 21px;
}
.cookie-settings-content .cookie-btn {
  background: var(--primary);
  color: var(--accent);
  font-size: 1rem;
}
.cookie-settings-content .cookie-btn.cancel {
  background: #ddd;
  color: var(--deep-navy);
}
.cookie-settings-content .cookie-btn:hover {
  background: var(--secondary);
  color: #fff;
}

@media (max-width: 630px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 10px 18px 13px;
  }
  .cookie-consent-banner p { margin-bottom: 10px; margin-right: 0; }
}

/* ---------- Responsive & Mobile ---------- */
@media (max-width: 620px) {
  h1 { font-size: 1.58rem; }
  h2 { font-size: 1.12rem; }
  .section { padding: 28px 6px; }
  .content-wrapper { padding: 15px 3px; }
  .testimonial-card, .card, .event-summary { padding: 15px 6px; }
  .team-roles, .card-container { flex-direction: column; gap: 0 !important; }
  .footer nav { flex-direction: column; gap: 7px; }
}

/* Flex overrides for direction on mobile for text-image sections */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column !important; align-items: flex-start !important; gap: 16px; }
}

/* Prevent horizontal overflow */
html, body { width: 100vw; overflow-x: hidden; }

/* Utility: fade-in animation for section reveal */
.section, .content-wrapper {
  opacity: 0.93;
  animation: sectionFadeIn 0.7s cubic-bezier(.61,-0.16,.61,1.48) 0.02s 1 both;
}
@keyframes sectionFadeIn {
  from { opacity: 0; transform: translateY(40px) scale(0.97); }
  to { opacity: 0.93; transform: translateY(0) scale(1); }
}

/* Scrollbar for energy! */
body::-webkit-scrollbar {
  width: 10px;
  background: var(--accent);
}
body::-webkit-scrollbar-thumb {
  background: var(--electric-blue);
  border-radius: 10px;
}

/* ========== END CSS ========== */
