/* Crimson Meadow Legal - Futuristic Legal Tech Theme (tech_futuristic) */

/*
  --- 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;
}
/* 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: #101722;
  color: #F5F3EF;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  min-height: 100vh;
}
ol, ul {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #1A729D;
  outline-offset: 2px;
}
img {
  max-width: 100%;
  display: block;
}
*, *:before, *:after {
  box-sizing: border-box;
}

/*
  --- TYPOGRAPHY ---
*/
h1, .h1 {
  font-family: 'Merriweather', serif;
  font-size: 2.6rem;
  font-weight: bold;
  letter-spacing: -0.5px;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.2;
}
h2, .h2 {
  font-family: 'Merriweather', serif;
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.25;
}
h3, .h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.23rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-family: 'Merriweather', serif;
  color: #fff;
  font-weight: 500;
}
p, li, dl, dd, dt {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #F5F3EF;
  margin-bottom: 8px;
}
strong, b {
  font-weight: 600;
  color: #fff;
}

/*
  --- BRAND COLORS ---
*/
:root {
  --cm-primary: #771B1B;
  --cm-secondary: #F5F3EF;
  --cm-secondary-bg: #101722;
  --cm-accent: #1A729D;
  --cm-accent-dark: #17445E;
  --cm-hover: #c72839;
  --cm-card-bg: #181F2C;
  --cm-card-bg-light: #222944;
  --cm-border: #232C36;
  --cm-white: #fff;
  --cm-shadow: 0 4px 40px rgba(15, 18, 32, 0.28);
  --cm-neon: #13F1FC;
}

/*
  --- LAYOUT CONTAINERS ---
*/
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
.text-section {
  padding: 0 0 12px 0;
}

.section {
  margin-bottom: 60px !important;
  padding: 40px 20px;
  background: transparent;
}
@media (max-width: 768px) {
  .section {
    padding: 32px 8px;
    margin-bottom: 36px;
  }
  .container {
    padding: 0 8px;
  }
  .content-wrapper {
    gap: 20px;
  }
}

/*
  --- HEADER / NAV ---
*/
header {
  background: var(--cm-card-bg);
  box-shadow: 0 8px 36px rgba(23,20,37,0.18);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.logo img {
  height: 39px;
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  color: var(--cm-white);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  transition: border 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--cm-accent);
  border-bottom: 2px solid var(--cm-accent);
}
.btn-primary {
  background: var(--cm-primary);
  color: var(--cm-white);
  border-radius: 6px;
  padding: 12px 28px;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  box-shadow: 0 0 0 0 var(--cm-neon),0 1.5px 6px 0 rgba(119,27,27,.15);
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.25s, color 0.16s;
  outline: none;
  margin-left: 16px;
  position: relative;
  z-index: 1;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--cm-hover);
  color: var(--cm-neon);
  box-shadow: 0 0 0 3px var(--cm-neon), 0 8px 32px rgba(26,114,157,0.25);
}
.btn-secondary {
  background: transparent;
  border: 2px solid var(--cm-accent);
  color: var(--cm-accent);
  border-radius: 6px;
  font-weight: 600;
  padding: 10px 24px;
  font-size: 1rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.18s, color 0.18s, border 0.18s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--cm-accent);
  color: #fff;
  border-color: var(--cm-accent);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cm-neon);
  font-size: 2.3rem;
  cursor: pointer;
  padding: 0 8px;
  margin-left: 16px;
  z-index: 30;
  transition: color 0.18s;
}
.mobile-menu-toggle:focus {
  color: var(--cm-primary);
  outline: 2px solid var(--cm-neon);
  outline-offset: 4px;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 86vw;
  max-width: 350px;
  background: var(--cm-card-bg);
  box-shadow: -6px 0 50px rgba(10,20,36,0.25);
  z-index: 1005;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.55,0,0.1,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 18px 24px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--cm-accent);
  font-size: 2rem;
  align-self: flex-end;
  margin-bottom: 12px;
  cursor: pointer;
  transition: color 0.17s;
}
.mobile-menu-close:focus {
  color: var(--cm-neon);
  outline: 2px solid var(--cm-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.mobile-nav a {
  color: var(--cm-white);
  font-size: 1.24rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  padding: 8px 0;
  border-radius: 4px;
  transition: background 0.17s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--cm-accent-dark);
  color: var(--cm-neon);
}

@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 768px) {
  .header-main {
    height: 65px;
    padding: 0 6px;
  }
  .logo img {
    height: 30px;
  }
}

/*
  --- HERO SECTION ---
*/
.hero {
  background: linear-gradient(110deg, var(--cm-card-bg-light) 65%, rgba(119,27,27, 0.16) 100%);
  padding: 70px 0 55px 0;
  margin-bottom: 46px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .content-wrapper {
  max-width: 700px;
  align-items: center;
  gap: 18px;
}
.hero h1 {
  color: #fff;
  text-align: center;
  font-size: 2.8rem;
  background: linear-gradient(90deg, #fff, var(--cm-neon), #fff 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .subheadline {
  font-size: 1.16rem;
  color: var(--cm-accent);
  text-align: center;
  max-width: 520px;
  margin: 0 auto 12px;
  font-weight: 500;
}

/*
  --- FEATURES SECTION ---
*/
.features, .feature-grid {
  width: 100%;
}
.features .content-wrapper {
  gap: 26px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
  justify-content: space-between;
}
.feature-card {
  background: var(--cm-card-bg-light);
  border-radius: 18px;
  box-shadow: 0 2px 18px 0 rgba(26,114,157,0.10);
  padding: 32px 26px 32px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  width: calc(25% - 18px);
  border: 1.5px solid var(--cm-border);
  min-width: 250px;
  position: relative;
  z-index: 1;
}
.feature-card img {
  width: 38px;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 6px var(--cm-neon));
}
.feature-card h3 {
  font-size: 1.16rem;
  color: var(--cm-accent);
  margin-bottom: 0;
}
.feature-card p {
  color: var(--cm-secondary);
  font-size: 1rem;
  margin-bottom: 0;
}
.feature-card:hover, .feature-card:focus-within {
  box-shadow: 0 0 0 3px var(--cm-neon);
  border-color: var(--cm-neon);
  transition: box-shadow 0.24s;
}
@media (max-width: 1024px) {
  .feature-card {
    width: calc(47% - 12px);
    min-width: 160px;
  }
}
@media (max-width: 768px) {
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-card {
    width: 100%;
    min-width: 0;
    padding: 22px 14px 20px 12px;
  }
}

/*
  --- ABOUT SNIPPET / GENERIC SECTION ---
*/
.about-snippet .container,
.services-overview .container,
.testimonials-preview .container,
.cta .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.text-section {
  max-width: 770px;
  margin: 0 auto;
  width: 100%;
}
.read-more {
  color: var(--cm-accent);
  font-weight: 600;
  border-bottom: 1.8px solid var(--cm-accent);
  padding-bottom: 1.5px;
  transition: color 0.17s, border-bottom 0.17s;
}
.read-more:hover {
  color: var(--cm-neon);
  border-color: var(--cm-neon);
}

/*
  --- SERVICES OVERVIEW ---
*/
.services-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 16px 0;
  padding-left: 0;
}
.services-list li {
  color: var(--cm-secondary);
  font-size: 1.06rem;
  background: none;
  padding: 5px 0;
}

/*
  --- TESTIMONIALS (Section + Card) ---
*/
.testimonials-preview .content-wrapper {
  gap: 28px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  padding: 20px 28px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--cm-secondary);
  box-shadow: 0 3px 21px rgba(23,68,94,0.13);
  border-left: 5px solid var(--cm-accent);
  transition: box-shadow 0.18s, border-color 0.19s;
  color: #232219;
}
.testimonial-card p {
  font-size: 1.17rem;
  color: #1C2227;
  font-weight: 600;
  font-style: italic;
  margin-bottom: 0;
}
.testimonial-name {
  font-size: 0.96rem;
  color: var(--cm-accent);
  font-weight: 700;
  letter-spacing: 0.03em;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 0 0 3px var(--cm-neon);
  border-left-color: var(--cm-neon);
}

/*
  --- CTA SECTION + CONTACT SNIPPET ---
*/
.cta {
  background: linear-gradient(95deg, var(--cm-card-bg) 75%, var(--cm-accent-dark) 100%);
  margin-bottom: 0;
  border-radius: 18px;
  box-shadow: 0 0 12px rgba(26,114,157,0.13);
}
.cta .btn-primary {
  margin-top: 12px;
}
.contact-snippet {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.contact-snippet p {
  font-size: 0.99rem;
  color: var(--cm-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-snippet img {
  width: 19px;
  filter: brightness(1.7) saturate(2.3) drop-shadow(0 0 2.5px var(--cm-accent));
}

/*
  --- FOOTER ---
*/
footer {
  background: var(--cm-card-bg);
  color: var(--cm-secondary);
  padding: 45px 0 30px 0;
  border-top: 2px solid var(--cm-border);
  margin-top: 45px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-logo img {
  width: 46px;
  height: auto;
}
.footer-brand {
  font-family: 'Merriweather', serif;
  font-size: 1.08rem;
  color: var(--cm-accent);
  font-weight: 700;
  line-height: 1.2;
}
.footer-brand span {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.97rem;
  font-weight: 400;
  color: #789FBA;
}
.footer-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.footer-nav a {
  color: var(--cm-accent);
  font-size: 0.97rem;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: color 0.17s, border-bottom 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--cm-neon);
  border-bottom: 2px solid var(--cm-neon);
}
@media (max-width: 600px) {
  .footer-logo {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
  }
  footer .container {
    gap: 16px;
    padding: 10px 2px 10px 2px;
  }
}

/*
  --- BLOG ---
*/
.blog-list .content-wrapper {
  gap: 32px;
}
.featured-post {
  background: var(--cm-card-bg-light);
  border-radius: 15px;
  padding: 22px 20px;
  box-shadow: 0 2px 12px rgba(26,114,157,0.10);
  margin-bottom: 18px;
  border-left: 4px solid var(--cm-primary);
}
.featured-post h2 {
  color: var(--cm-neon);
  margin-bottom: 6px;
  font-size: 1.6rem;
}
.featured-post p {
  color: var(--cm-secondary);
}
.featured-post a {
  color: var(--cm-accent);
  font-weight: 700;
  transition: color 0.18s;
}
.featured-post a:hover {
  color: var(--cm-neon);
}
.post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.blog-post {
  background: var(--cm-card-bg);
  padding: 16px 16px;
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(26,114,157,0.09);
  width: calc(32% - 10px);
  min-width: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1.5px solid var(--cm-border);
  margin-bottom: 20px;
}
.blog-post h3 {
  font-size: 1.06rem;
  color: var(--cm-accent);
  margin-bottom: 8px;
}
.blog-post a {
  color: var(--cm-neon);
  font-weight: 600;
  align-self: flex-start;
  margin-top: 8px;
  transition: color 0.16s;
}
.blog-post a:hover {
  color: var(--cm-primary);
}
@media (max-width: 900px) {
  .post-list {
    flex-direction: column;
    gap: 18px;
  }
  .blog-post {
    width: 100%;
    min-width: 0;
  }
}

/*
  --- NEWSLETTER SIGNUP ---
*/
.newsletter-signup {
  background: var(--cm-accent);
  border-radius: 24px;
  padding: 38px 22px 38px 22px;
  margin-bottom: 40px;
}
.newsletter-signup .text-section {
  align-items: center;
  text-align: center;
}
.newsletter-signup h2,
.newsletter-signup p {
  color: var(--cm-white);
}
.privacy-note {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d2ecff;
  font-size: 0.98rem;
}
.privacy-note img {
  width: 22px;
}

/*
  --- CONTACT PAGE ---
*/
.address-block, .phone-email-block, .opening-hours {
  background: var(--cm-card-bg-light);
  border-radius: 11px;
  padding: 15px 18px;
  box-shadow: 0 2px 8px rgba(26,114,157,0.09);
  margin-bottom: 16px;
}
.address-block h3, .phone-email-block h3, .opening-hours h3 {
  color: var(--cm-neon);
  margin-bottom: 2px;
  font-size: 1.04rem;
}
.phone-email-block img, .address-block img, .opening-hours img {
  width: 16px;
  margin-right: 6px;
  vertical-align: middle;
}
.phone-email-block a, .phone-email-block p a {
  color: var(--cm-accent);
  word-break: break-all;
  transition: color 0.15s;
}
.phone-email-block a:hover {
  color: var(--cm-neon);
}

/*
  --- forms-guide, faq-section, downloads-list (mandanteninfos) ---
*/
.downloads-list, .faq-section, .forms-guide {
  background: var(--cm-card-bg-light);
  border-radius: 10px;
  padding: 13px 14px 13px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 7px rgba(26,114,157,0.10);
}
.downloads-list h3, .faq-section h3, .forms-guide h3 {
  color: var(--cm-accent);
  margin-bottom: 7px;
  font-size: 1.08rem;
}
.downloads-list ul li, .forms-guide p {
  font-size: 0.99rem;
  color: var(--cm-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.downloads-list img {
  width: 19px;
  margin-right: 3.5px;
}
.faq-section dl {
  width: 100%;
}
.faq-section dt {
  font-weight: bold;
  color: var(--cm-accent);
  margin-top: 13px;
  font-size: 1rem;
}
.faq-section dd {
  margin-left: 0;
  color: #bfe6ff;
  margin-bottom: 4px;
}

/*
  --- SERVICES PAGE ---
*/
.service-list-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 12px;
  align-items: stretch;
}
.service-block {
  background: var(--cm-card-bg-light);
  border-radius: 15px;
  box-shadow: 0 2px 18px 0 rgba(26,114,157,0.10);
  padding: 30px 24px 24px 20px;
  min-width: 220px;
  flex: 1 1 250px;
  margin-bottom: 20px;
  border-left: 4px solid var(--cm-accent);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (max-width: 900px) {
  .service-list-grid {
    flex-direction: column;
    gap: 16px;
  }
  .service-block {
    min-width: 0;
  }
}

/*
  --- TEAM ---
*/
.team-member-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  margin: 16px 0;
}
.team-member {
  background: var(--cm-card-bg-light);
  border-radius: 14px;
  padding: 28px 22px 22px 18px;
  box-shadow: 0 2px 14px rgba(26,114,157,0.09);
  flex: 1 1 210px;
  min-width: 200px;
  margin-bottom: 20px;
  border-left: 3px solid var(--cm-primary);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.team-member h3 {
  color: var(--cm-accent);
  font-size: 1.1rem;
}
@media (max-width: 900px) {
  .team-member-overview {
    flex-direction: column;
    gap: 16px;
  }
}

/*
  --- GENERIC BUTTON & CTA INLINE ---
*/
.cta-inline {
  margin-top: 18px;
  display: flex;
  gap: 16px;
}

/*
  --- COOKIE CONSENT BANNER ---
*/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--cm-card-bg-light);
  color: var(--cm-secondary);
  box-shadow: 0 -2px 24px rgba(26,114,157,0.12);
  z-index: 10050;
  padding: 24px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 1rem;
  animation: c-cookie-fadein 0.6s ease;
}
.cookie-banner .cookie-text {
  flex: 1 1 100px;
  margin-right: 28px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
}
.cookie-banner button {
  background: var(--cm-accent);
  color: white;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  padding: 8px 20px;
  margin-left: 0;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, box-shadow 0.21s;
  box-shadow: 0 2px 9px rgba(26,114,157,0.08);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--cm-neon);
  color: var(--cm-card-bg);
  outline: none;
}
.cookie-banner .cookie-settings {
  background: transparent;
  color: var(--cm-accent);
  border: 2px solid var(--cm-accent);
  padding: 8px 16px;
  margin-left: 4px;
  transition: background 0.16s, color 0.16s, border 0.18s;
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  background: var(--cm-accent);
  color: #fff;
}
@keyframes c-cookie-fadein { from { opacity: 0; transform: translateY(80px);} to { opacity: 1; transform: none; } }

/*
  --- COOKIE MODAL ---
*/
.cookie-modal-overlay {
  position: fixed;
  top:0;
  left:0;
  width: 100vw;
  height: 100vh;
  background: rgba(16,23,34,0.85);
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-modal-fadein 0.42s cubic-bezier(0.42,0,0.27,1.3);
}
@keyframes cookie-modal-fadein { from { opacity: 0; } to { opacity: 1; } }
.cookie-modal {
  background: var(--cm-card-bg);
  color: var(--cm-secondary);
  border-radius: 16px;
  max-width: 400px;
  width: 94vw;
  padding: 40px 26px 28px 26px;
  box-shadow: 0 8px 38px rgba(26,114,157,0.18);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal h2 {
  color: var(--cm-neon);
  font-size: 1.28rem;
  margin-bottom: 8px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 18px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--cm-accent);
  cursor: pointer;
  transition: color 0.16s;
}
.cookie-modal .modal-close:focus {
  color: var(--cm-neon);
  outline: 2px solid var(--cm-neon);
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.cookie-category-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}
.cookie-category-title {
  font-weight: 600;
  color: var(--cm-accent);
  min-width: 100px;
}
.cookie-category-toggle {
  width: 38px;
  height: 22px;
  background: var(--cm-border);
  border-radius: 16px;
  position: relative;
  transition: background 0.16s;
  margin-right: 8px;
  outline: none;
  border: 1px solid var(--cm-border);
  display: flex;
  align-items: center;
}
.cookie-category-toggle[aria-checked="true"] {
  background: var(--cm-neon);
  border-color: var(--cm-accent);
}
.cookie-category-toggle:after {
  content: '';
  position: absolute;
  left: 3.5px;
  top: 2.2px;
  width: 17px;
  height: 17px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.18s, background 0.11s;
  box-shadow: 0 1.5px 5px rgba(26,114,157,0.08);
}
.cookie-category-toggle[aria-checked="true"]:after {
  left: 17.5px;
  background: var(--cm-primary);
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 13px;
  margin-top: 13px;
}
.cookie-modal .cookie-actions button {
  padding: 8px 18px;
}

/*
  --- RESPONSIVE FLEX LAYOUTS & ADJUSTMENTS ---
*/
.content-grid,
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-container {
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--cm-card-bg-light);
  box-shadow: 0 2px 12px rgba(26,114,157,0.10);
  padding: 24px 18px;
  position: relative;
  z-index: 1;
  transition: box-shadow 0.18s, border-color 0.17s;
  border: 1.5px solid var(--cm-border);
}
.card:hover, .card:focus-within {
  box-shadow: 0 0 0 3px var(--cm-neon);
  border-color: var(--cm-neon);
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .content-grid, .card-container, .text-image-section, .service-list-grid, .feature-grid, .team-member-overview {
    flex-direction: column;
    gap: 18px;
  }
  .card, .feature-card, .blog-post, .service-block, .team-member {
    width: 100%;
    min-width: 0;
  }
}

/*
  --- VISUAL EFFECTS (Neon/shadow, etc.) ---
*/
section, .section, .newsletter-signup, .cta {
  box-shadow: 0 8px 32px 0 rgba(18, 66, 124, 0.08);
}
section:not(.hero):not(.cta):not(.newsletter-signup):not(.cookie-banner):not(.cookie-modal) {
  border-radius: 18px;
}
hr {
  border: none;
  border-top: 1px solid var(--cm-border);
  margin: 24px 0;
}

/*
  --- ANIMATIONS AND MICRO-INTERACTIONS ---
*/
.btn-primary, .btn-secondary, .main-nav a, .mobile-nav a, .feature-card, .testimonial-card, .card, .footer-nav a, .read-more, .service-block, .blog-post {
  transition: box-shadow 0.17s, background 0.17s, color 0.18s, border-bottom 0.17s;
}

/*
  --- UTILITY ---
*/
.gap-24 { gap: 24px; }
.gap-20 { gap: 20px; }
.gap-16 { gap: 16px; }
.mt-24 { margin-top: 24px; }
.mt-18 { margin-top: 18px; }
.mt-8 { margin-top: 8px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

/*
  --- PRINT & HIGH CONTRAST SUPPORT ---
*/
@media print {
  header, footer, .cookie-banner, .cookie-modal-overlay { display: none !important; }
}
@media (prefers-contrast: more) {
  :root { --cm-accent: #00547a; }
  .btn-primary, .btn-secondary, .cookie-banner button, .cookie-modal button { border: 2px solid var(--cm-accent); }
}

/*
  --- DARK/LIGHT ADJUSTMENTS FOR TESTIMONIALS & REVIEWS ---
*/
.testimonial-card, .testimonial-card * {
  color: #161a1c !important;
}

/*
  --- THANK YOU SECTION ---
*/
.next-steps {
  margin: 15px 0;
  padding: 10px 15px;
  border-left: 4px solid var(--cm-accent);
  background: var(--cm-card-bg-light);
  border-radius: 7px;
}
.next-steps ul {
  gap: 0;
  padding-left: 22px;
  list-style: disc;
  color: var(--cm-secondary);
}
.next-steps li {
  color: var(--cm-secondary);
}

/*
  --- GENERIC TABLE (if used in future) ---
*/
table {
  border-collapse: collapse;
  width: 100%;
}
td, th {
  border: 1px solid var(--cm-border);
  padding: 9px 6px;
}
th {
  background: var(--cm-card-bg-light);
  color: var(--cm-accent);
  font-weight: 700;
}

/*
  --- Zebra Stripe for alternate rows where table used ---
*/
tr:nth-child(2n) td { background: #222944; }


/* ----------------------------------------
 * FLEXBOX UTILITIES FOR ALL CRITICAL SELECTORS
 * (for compliance: ONLY Flex, NO Grid)
 ---------------------------------------- */
.features, .feature-grid, .content-grid, .card-container, .team-member-overview, .service-list-grid, .post-list, .footer-nav {
  display: flex !important;
  flex-wrap: wrap !important;
}
.features, .feature-grid, .team-member-overview, .service-list-grid, .card-container, .post-list {
  gap: 24px !important;
}
.content-grid, .footer-nav {
  gap: 20px !important;
}
.text-image-section {
  display: flex !important;
  align-items: center !important;
  gap: 30px !important;
  flex-wrap: wrap !important;
}
@media (max-width:768px){
  .text-image-section {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 20px !important;
  }
}

/*
  --- COLOR SCROLLBARS (Modern Browsers) ---
*/
::-webkit-scrollbar {
  width: 10px;
  background: var(--cm-card-bg-light);
}
::-webkit-scrollbar-thumb {
  background: var(--cm-accent-dark);
  border-radius: 11px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cm-accent);
}

/*
  --- FONTS (LOAD in HTML, e.g. via Google Fonts link for 'Merriweather') ---
*/

/*
  --- END (Crimson Meadow Legal) ---
*/
