/* ---------------------------------------------------
   🚀 RechtKompass München: Playful Dynamic CSS Styles
------------------------------------------------------
RESET & BASELINE
--------------------------------------------------- */
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;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #F5F7FB;
  color: #213551;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  letter-spacing: 0.02em;
}

/* Font Imports (Google Fonts) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500&display=swap');

/* Bright playful palette for highlights */
:root {
  --brand-primary: #213551;
  --brand-secondary: #8698B3;
  --brand-accent: #F5F7FB;
  --brand-fun1: #FFB302;       /* playful yellow */
  --brand-fun2: #25C2A0;       /* playful teal */
  --brand-fun3: #FF6699;       /* candy pink */
  --brand-fun4: #408CFF;       /* dynamic blue highlight */
  --shadow-card: 0 4px 16px 0 rgba(33,53,81,0.10), 0 2px 4px 0 rgba(255,179,2,0.10);
  --radius-soft: 18px;
  --radius-button: 32px;
}

/* -------------------------------
   TYPOGRAPHY
------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  color: #213551;
  text-shadow: 0 2px 0 var(--brand-fun1);
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  color: var(--brand-fun4);
  text-shadow: 0 4px 0 var(--brand-accent);
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  color: var(--brand-fun2);
  text-shadow: 0 2px 0 var(--brand-accent);
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--brand-fun3);
}
p {
  font-size: 1rem;
  margin-bottom: 12px;
  font-family: 'Roboto', Arial, sans-serif;
}

strong {
  color: var(--brand-fun2);
}
a {
  color: var(--brand-fun4);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: var(--brand-fun3);
}
ul, ol {
  margin: 16px 0 16px 20px;
}
li {
  margin-bottom: 6px;
}

/* Inline elements */
span {
  font-family: inherit;
  font-weight: inherit;
}

/* -------------------------------
   LAYOUT CONTAINERS
--------------------------------*/
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  width: 100%;
}
@media (max-width: 900px) {
  .section { padding: 32px 4vw; }
  .container { padding: 0 4vw; }
}
@media (max-width: 600px) {
  .section { padding: 26px 0; margin-bottom: 36px; }
  .container { padding: 0 10px; }
}

/* ---------------------------
   MAIN NAVBAR
----------------------------*/
header {
  background: var(--brand-primary);
  color: #fff;
  width: 100%;
  box-shadow: 0 3px 16px 0 rgba(33,53,81,0.12);
  z-index: 100;
  position: relative;
}
.main-nav {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 16px;
  gap: 20px;
}
.main-nav > a img {
  height: 38px;
  display: block;
}
.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  margin-left: 10px;
}
.main-nav ul li a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 18px;
  color: #fff;
  background: transparent;
  transition: background 0.16s, color 0.16s;
  position: relative;
}
.main-nav ul li a:hover,
.main-nav ul li a:focus {
  background: var(--brand-fun1);
  color: var(--brand-primary);
}
.cta-button {
  background: var(--brand-fun2);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 1.07rem;
  border: none;
  border-radius: var(--radius-button);
  padding: 12px 30px;
  margin-left: 28px;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 20px 0 rgba(37,194,160,0.15);
  cursor: pointer;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 0 rgba(255,255,255,0.08);
  outline: none;
  position: relative;
  display: inline-block;
  overflow: hidden;
}
.cta-button:hover,
.cta-button:focus {
  background: var(--brand-fun3);
  color: #fff;
  transform: translateY(-2px) scale(1.04) rotate(-1deg);
  box-shadow: 0 8px 24px 2px rgba(255,102,153,0.14);
}

/* ---------------------------
   HERO SECTION
----------------------------*/
.hero {
  padding: 62px 0 42px 0;
  background: linear-gradient(116deg, var(--brand-accent) 70%, #FFFBEC 120%);
  width: 100%;
  border-radius: 0 0 var(--radius-soft) var(--radius-soft);
  box-shadow: 0 8px 32px 0 rgba(33,53,81,0.07);
  position: relative;
  margin-bottom: 56px;
  overflow: hidden;
}
.hero .container {
  align-items: flex-start;
}
.hero .content-wrapper {
  max-width: 610px;
  z-index: 3;
}
.hero .cta-button {
  margin-left: 0;
  margin-top: 14px;
  background: var(--brand-fun1);
  color: var(--brand-primary);
  box-shadow: 0 6px 30px 0 rgba(255,179,2,0.11);
}
.hero .cta-button:hover {
  background: var(--brand-fun4);
  color: #fff;
  box-shadow: 0 8px 40px 2px rgba(64,140,255,0.15);
}
/* Decorative playful background shapes for hero */
.hero:before {
  content: '';
  display: block;
  position: absolute;
  top: -80px; left: 68vw;
  width: 220px; height: 220px;
  background: var(--brand-fun2);
  opacity: 0.08;
  border-radius: 55% 53% 51% 64%/53% 64% 55% 51%;
  z-index: 1;
}
.hero:after {
  content: '';
  position: absolute;
  right: -40px; bottom: -45px;
  width: 160px; height: 100px;
  background: var(--brand-fun3);
  filter: blur(10px);
  opacity: 0.10;
  border-radius: 60% 45% 44% 62%/80% 55% 44% 58%;
  z-index: 1;
}

@media (max-width: 768px) {
  .hero {
    padding: 38px 0 26px 0;
    margin-bottom: 36px;
  }
  .hero .content-wrapper {max-width: 98vw;}
}

/* ---------------------------
   FEATURE GRID, SERVICES, TEAM
----------------------------*/
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin: 0 -8px;
}
.feature {
  background: #fff;
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-card);
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 265px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.15s;
  position: relative;
  z-index: 1;
  gap: 10px;
}
.feature:hover {
  box-shadow: 0 8px 36px 2px rgba(64,140,255,0.10);
  transform: translateY(-3px) scale(1.03) rotate(-1deg);
}
.feature img {
  width: 52px;
  height: 52px;
  margin-bottom: 7px;
  filter: drop-shadow(0px 4px 0px var(--brand-fun1));
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 14px;
  margin-bottom: 4px;
  width: 100%;
}
.service {
  background: #fff;
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-card);
  flex: 1 1 240px;
  min-width: 240px;
  max-width: 305px;
  padding: 24px 18px 22px 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  margin-bottom: 20px;
  gap: 7px;
  transition: box-shadow 0.17s, transform 0.14s;
}
.service h3 span {
  font-size: 0.93em;
  color: var(--brand-fun1);
  font-weight: bold;
  margin-left: 7px;
}
.service a {
  margin-top: 6px;
  align-self: flex-start;
  background: var(--brand-fun4);
  color: #fff;
  border-radius: var(--radius-button);
  padding: 7px 24px;
  font-weight: 700;
  font-size: 0.97rem;
  transition: background 0.13s, transform 0.13s;
  box-shadow: 0 2px 10px 0 rgba(64,140,255,0.08);
}
.service a:hover {
  background: var(--brand-fun3);
  color: #fff;
  transform: scale(1.04);
}
.service:hover {
  box-shadow: 0 8px 36px 2px rgba(255,179,2,0.13);
  transform: translateY(-2px) scale(1.03);
}

/* Anwälte – Team Profile Grid */
.team-profile-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 20px;
}
.lawyer-profile {
  background: #fff;
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-card);
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 310px;
  padding: 24px 16px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
}
.lawyer-profile img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--brand-fun1);
  border: 4px solid #fff;
  margin-bottom: 7px;
}
.lawyer-profile h3 {
  color: var(--brand-fun2);
  text-align: center;
  margin-bottom: 2px;
}
.lawyer-profile ul {
  font-size: 0.96rem;
  color: var(--brand-secondary);
  list-style: disc inside;
  margin: 5px 0 0 0;
  text-align: center;
}
.lawyer-profile ul li {
  margin-bottom: 3px;
}
.lawyer-profile p {
  color: #213551;
  font-size: 0.98rem;
  text-align: center;
}
.lawyer-profile:before {
  content: '';
  display: block;
  position: absolute;
  top: -18px; left: -22px;
  width: 38px; height: 38px;
  background: var(--brand-fun3);
  border-radius: 70% 50% 66% 39%/40% 50% 70% 69%;
  opacity: 0.11;
  z-index: 0;
}

/* ---------------------------
   FAQ ACCORDION
----------------------------*/
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: #fff;
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-card);
  padding: 22px 18px;
  margin-bottom: 20px;
  transition: transform 0.18s, box-shadow 0.13s;
  cursor: pointer;
  position: relative;
}
.faq-item h3 {
  margin-bottom: 8px;
  color: var(--brand-fun1);
  font-size: 1.09rem;
  font-weight: bold;
  font-family: 'Montserrat', Arial, sans-serif;
}
.faq-item:hover {
  transform: scale(1.03) translateY(-2px);
  box-shadow: 0 8px 32px 2px rgba(255,102,153,0.09);
}
.faq-item p {
  margin: 0;
}

/* ---------------------------
   TESTIMONIAL CARDS
----------------------------*/
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.14s, transform 0.12s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 28px 2px rgba(255,179,2,0.10);
  transform: scale(1.02);
}
.testimonial-card blockquote {
  font-size: 1.12rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-style: italic;
  margin-bottom: 8px;
  color: var(--brand-primary);
  background: var(--brand-accent);
  border-left: 5px solid var(--brand-fun2);
  padding: 6px 18px;
  border-radius: var(--radius-soft);
  line-height: 1.43;
}
.testimonial-card p {
  font-size: 1rem;
  font-style: normal;
  color: var(--brand-secondary);
  margin-bottom: 0;
}
.testimonial-card strong {
  color: var(--brand-fun3);
  font-weight: 900;
}

/* ---------------------------------------------------
   TABLES AND LISTS
--------------------------------------------------- */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: var(--radius-soft);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}
thead {
  background: var(--brand-fun1);
}
thead th {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #213551;
  font-weight: bold;
  padding: 13px 10px;
  font-size: 1.07rem;
  letter-spacing: 0.01em;
}
tbody td {
  padding: 12px 10px;
  font-size: 1rem;
  color: var(--brand-secondary);
  border-bottom: 1px solid #F0F0F0;
}
tbody tr:last-child td {
  border-bottom: none;
}

/* ---------------------------------------------------
   FOOTER
--------------------------------------------------- */
footer {
  background: var(--brand-primary);
  color: #fff;
  width: 100%;
  padding: 30px 0 20px 0;
  margin-top: 80px;
  box-shadow: 0 -4px 30px 0 rgba(33,53,81,0.07);
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
footer img {
  width: 46px;
  margin-bottom: 6px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 3px;
  margin-top: 7px;
}
.footer-nav a{
  color: #fff;
  font-size: 0.98rem;
  font-family: 'Montserrat', Arial, sans-serif;
  opacity: 0.88;
  padding: 0 7px;
  text-decoration: underline dotted #FFB302 2px;
  transition: opacity 0.13s, color 0.13s;
}
.footer-nav a:hover {opacity:1; color:var(--brand-fun1);}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.97rem;
}
.footer-contact a {color: var(--brand-fun3); text-decoration: none;}

/* ---------------------------------------------------
   RESPONSIVE LAYOUTS
--------------------------------------------------- */
@media (max-width: 1024px) {
  .feature-grid, .service-list, .team-profile-grid {
    gap: 16px;
  }
  .feature, .service, .lawyer-profile {
    max-width: 46vw;
  }
}
@media (max-width: 900px) {
  .main-nav ul {gap: 14px;}
}
@media (max-width: 768px) {
  .main-nav ul, .footer-nav {
    gap: 12px;
    font-size: 0.97rem;
  }
  .feature-grid, .service-list, .team-profile-grid {
    gap: 12px;
  }
  .feature, .service, .lawyer-profile {
    min-width: 90vw;
    max-width: 98vw;
  }
}
@media (max-width: 600px) {
  .feature, .service, .lawyer-profile {
    width: 100vw;
    min-width: 0;
    max-width: 100vw;
    padding: 17px 7px;
  }
  .testimonial-card, .faq-item {
    padding: 16px 7px;
  }
}

/* ------------
   FLEX WRAPPING
-------------- */
.card-container, .content-grid, .feature-grid, .service-list, .team-profile-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.content-grid {
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {  
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}

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

.card {
  margin-bottom: 20px;
  position: relative;
}

/* ---------------------------
   BUTTONS, FORM ELEMENTS
----------------------------*/
button, input[type=button], input[type=submit] {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  outline: none;
  border-radius: var(--radius-button);
  background: var(--brand-fun2);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  padding: 11px 22px;
  margin: 8px 0 0 0;
  cursor: pointer;
  box-shadow: 0 2px 8px 1px rgba(37,194,160,0.13);
  transition: background 0.18s, color 0.13s, transform 0.14s, box-shadow 0.14s;
}
button:hover, input[type=button]:hover, input[type=submit]:hover {
  background: var(--brand-fun3);
  color: #fff;
  transform: translateY(-2px) scale(1.03) rotate(-2deg);
  box-shadow: 0 5px 10px 2px rgba(255,102,153,0.18);
}

/* ---------------------------
   MOBILE MENU
----------------------------*/
.mobile-menu-toggle {
  display: none;
}
@media (max-width: 900px) {
  .main-nav ul,
  .main-nav .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    background: var(--brand-fun3);
    border: none;
    color: #fff;
    font-size: 2rem;
    padding: 8px 14px;
    border-radius: 60px;
    position: absolute;
    right: 22px;
    top: 13px;
    z-index: 102;
    cursor: pointer;
    transition: background 0.12s, transform 0.13s;
    box-shadow: 0 2px 12px 0 rgba(255,102,153,0.1);
  }
  .mobile-menu-toggle:active {
    background: var(--brand-fun1);
    color: var(--brand-primary);
    transform: scale(1.08);
  }
}
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(33,53,81,0.93);
  color: #fff;
  transform: translateX(100vw);
  transition: transform 0.33s cubic-bezier(.5,.28,.03,1.07);
  z-index: 1101;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 30px 20px 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--brand-fun1);
  color: var(--brand-primary);
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  align-self: flex-end;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px 0 rgba(255,179,2,0.13);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, color 0.12s, transform 0.12s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--brand-fun3);
  color: #fff;
  transform: scale(1.07);
}
.mobile-nav {
  width: 100%;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-left: 12vw;
  font-family: 'Montserrat', Arial, sans-serif;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.13rem;
  font-weight: bold;
  padding: 12px 0 12px 10px;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.13s, color 0.12s;
  width: 100%;
  display: block;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--brand-fun2);
  color: #fff;
  padding-left: 19px;
}

@media (max-width: 600px) {
  .mobile-nav {
    padding-left: 12px;
  }
}

/* Ensure mobile menu overlays everything */
@media (max-width: 900px) {
  .mobile-menu {
    display: flex;
  }
}

/* Prevent body scroll when mobile menu open */
.mobile-menu-opened {
  overflow: hidden !important;
}

/* ---------------------------
   COOKIE CONSENT BANNER
----------------------------*/
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #FFFBE7;
  color: var(--brand-primary);
  box-shadow: 0 -2px 32px 0 rgba(255,179,2,0.19);
  border-top: 4px solid var(--brand-fun1);
  z-index: 1200;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(.61,1.33,.48,1.07);
  transform: translateY(100%);
  min-height: 44px;
  font-size: 1.03rem;
}
.cookie-banner.show {
  transform: translateY(0);
}
.cookie-banner__content {
  max-width: 880px;
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 6px 20px;
  justify-content: space-between;
}
.cookie-banner__message {
  font-size: 1.08rem;
  color: var(--brand-primary);
  font-family: 'Roboto', Arial, sans-serif;
  flex: 1 1 300px;
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-banner button {
  font-size: 1rem;
  border-radius: var(--radius-button);
  box-shadow: 0 2px 7px 0 rgba(33,53,81,0.08);
  padding: 10px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  background: var(--brand-fun2);
  color: #fff;
  transition: background 0.13s, color 0.12s, transform 0.12s;
}
.cookie-banner button.cookie-btn-accept {
  background: var(--brand-fun1);
  color: var(--brand-primary);
}
.cookie-banner button.cookie-btn-accept:hover {
  background: var(--brand-fun3);
  color: #fff;
}
.cookie-banner button.cookie-btn-reject {
  background: var(--brand-fun3);
  color: #fff;
}
.cookie-banner button.cookie-btn-reject:hover {
  background: var(--brand-fun2);
  color: #fff;
}
.cookie-banner button.cookie-btn-settings {
  background: var(--brand-fun4);
  color: #fff;
}
.cookie-banner button.cookie-btn-settings:hover {
  background: var(--brand-fun1);
  color: var(--brand-primary);
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(33,53,81,0.89);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s, visibility 0.15s;
}
.cookie-modal.open {
  visibility: visible;
  opacity: 1;
}
.cookie-modal__content {
  background: #fff;
  color: var(--brand-primary);
  border-radius: var(--radius-soft);
  box-shadow: 0 8px 48px 2px rgba(64,140,255,0.16);
  padding: 38px 26px 22px 26px;
  max-width: 400px;
  width: 92vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 1;
  animation: cookie-fade-in 0.32s cubic-bezier(.13, .81, .83, .97);
}
@keyframes cookie-fade-in {
  from {transform: translateY(60px) scale(0.93); opacity: 0.25;}
  to {transform: translateY(0) scale(1); opacity: 1;}
}
.cookie-modal__title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.26rem;
  color: var(--brand-fun2);
  margin-bottom: 7px;
}
.cookie-modal__options {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.cookie-modal__option {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-modal__option label {
  font-size: 1.01rem;
  color: var(--brand-primary);
}
.cookie-modal__option .toggle {
  width: 36px;
  height: 22px;
  background: #E8F7F4;
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  transition: background 0.13s;
  margin-right: 8px;
}
.cookie-modal__option .toggle.enabled {
  background: var(--brand-fun2);
}
.cookie-modal__option .toggle-ball {
  position: absolute;
  left: 2px; top: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.18s cubic-bezier(.58,.08,.56,.99), background 0.13s;
}
.cookie-modal__option .toggle.enabled .toggle-ball {
  left: 16px;
  background: var(--brand-fun2);
}
.cookie-modal__option .cookie-lock {
  color: var(--brand-secondary);
  font-size: 1.25em;
  margin-left: 8px;
}
.cookie-modal__actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}
.cookie-modal__close {
  position: absolute;
  top: 11px;
  right: 12px;
  background: var(--brand-fun1);
  color: var(--brand-primary);
  border-radius: 50%;
  width: 34px; height: 34px;
  font-size: 1.26em;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 6px 0 rgba(255,179,2,0.14);
  z-index: 2;
}
.cookie-modal__close:hover {
  background: var(--brand-fun3);
  color: #fff;
}

/* ----------------------------------------------------
   PLAYFUL MICRO ANIMATIONS (buttons, cards, links)
------------------------------------------------------*/
.cta-button, .cookie-banner button, .mobile-menu-close, .faq-item, .service, .feature, .lawyer-profile, .testimonial-card, .footer-nav a {
  transition: background 0.18s, color 0.14s, transform 0.17s, box-shadow 0.15s;
}
.cta-button:active, .cookie-banner button:active, .mobile-menu-close:active, .faq-item:active, .feature:active, .service:active {
  transform: scale(0.96) !important;
}

/* -------------
   MISC SPACING
----------------*/
main > section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 600px) {
  main > section {
    margin-bottom: 27px;
    padding: 20px 2vw;
  }
}

/* Ensure all content elements never overlap and always have at least 20px margin */
.feature, .service, .testimonial-card, .faq-item, .lawyer-profile {
  margin-bottom: 20px;
}

/* -------------
   FORMS (optional future use)
----------------*/
input, textarea, select {
  border: 1px solid var(--brand-secondary);
  border-radius: var(--radius-soft);
  padding: 10px 12px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  outline: none;
  margin-bottom: 14px;
  background: #fff;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--brand-fun2);
  background: #F9FFFA;
}

/* ------------------
   ERROR / INFO / SUCCESS (for notices)
-------------------*/
.notice-info {
  background: var(--brand-fun4);
  color: #fff;
  padding: 15px 20px;
  border-radius: var(--radius-soft);
  font-size: 1.05rem;
  margin-bottom: 18px;
  box-shadow: 0 2px 9px 2px rgba(64,140,255,0.07);
}
.notice-success {
  background: #D5FFE7;
  color: var(--brand-fun2);
  border: 1.5px solid var(--brand-fun2);
}
.notice-error {
  background: #FFE9F1;
  color: var(--brand-fun3);
  border: 1.5px solid var(--brand-fun3);
}

/* ------------------
   PRINT (optional)
-------------------*/
@media print {
  header, footer, .mobile-menu, .cookie-banner {display:none;}
  main {padding-top: 0;}
}
