/* ===================================================================
   CSS RESET & BASELINE (Normalize + Brand)
=================================================================== */
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, 
main, 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 {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #244974;
  background-color: #E9EEF3;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
img {
  max-width: 100%;
  display: block;
  border: 0;
}
button {
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
}
ul, ol {
  padding-left: 1.25em;
}

/* ===================================================================
   BRAND FONTS (Montserrat for display, Roboto for body)
=================================================================== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900|Roboto:400,500,700&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  color: #244974;
  line-height: 1.15;
  letter-spacing: .5px;
}
h1 {
  font-size: 2.3rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
p, li, strong {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.08rem;
  color: #244974;
}
strong {
  font-weight: 700;
}

@media (min-width: 600px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.1rem; }
}
@media (min-width: 992px) {
  h1 { font-size: 3.2rem; }
  h2 { font-size: 2.4rem; }
  h3 { font-size: 1.35rem; }
}

/* Fun, playful type accent (use sparingly for playful_dynamic) */
.cta, .primary, .feature-item h3, .service-card h2, .service-card h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0.04em;
}

/* ===================================================================
   COLOR SCHEME & THEME VARS (brand palette, playful accents)
=================================================================== */
:root {
  --primary: #244974;
  --secondary: #E9EEF3;
  --accent: #FFA630;
  --highlight1: #FFDD67;
  --highlight2: #84C1FF;
  --highlight3: #4AD991;
  --danger: #F05D5E;
}

/* ===================================================================
   LAYOUT: CONTAINER, SECTION, WRAPPERS
=================================================================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .content-wrapper {
    align-items: center;
    gap: 32px;
  }
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1 1 0;
}

/* ===================================================================
   HEADER & NAVIGATION (desktop/mobile)
=================================================================== */
header {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 24px 0 rgba(36,73,116,.07);
  position: sticky;
  top: 0;
  z-index: 40;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 16px;
}
.logo {
  height: 48px;
  display: flex;
  align-items: center;
}
.logo img {
  height: 38px;
  width: auto;
}

/* Desktop nav */
.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}
.main-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  transition: color .2s, background .2s, box-shadow .2s;
  border-radius: 18px;
  padding: 8px 18px;
  margin-left: 2px;
  background: none;
  position: relative;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--accent);
  background: rgba(255,255,255,0.15);
}
.main-nav .primary {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 2px 8px 0 rgba(255,166,48,0.14);
  font-size: 1.01rem;
  font-weight: 900;
  margin-left: 18px;
  padding: 10px 22px;
  transition: background .22s, color .22s, box-shadow .22s, transform .18s;
  border-radius: 23px;
}
.main-nav .primary:hover,
.main-nav .primary:focus {
  background: var(--highlight1);
  color: #401B00;
  box-shadow: 0 4px 16px 0 rgba(255,221,103,0.25);
  transform: translateY(-2px) scale(1.045);
}

/* Mobile burger */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  width: 42px;
  background: var(--accent);
  color: var(--primary);
  font-size: 2rem;
  border-radius: 50%;
  border: none;
  margin-left: 18px;
  box-shadow: 0 1px 6px 0 rgba(36,73,116,0.10);
  transition: background .22s, color .15s, box-shadow .18s, transform .18s;
  z-index: 110;
  cursor: pointer;
}
.mobile-menu-toggle:active {
  background: var(--highlight1);
  color: #944800;
  transform: scale(0.96);
}

/* Hide mobile nav on desktop, show on mobile */
@media (min-width: 900px) {
  .mobile-menu-toggle { display: none; }
  .main-nav { display: flex; }
}
@media (max-width: 899px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
}

/* ===================================================================
   MOBILE MENU & OVERLAY NAV
=================================================================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(36, 73, 116, 0.98);
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(100vw);
  transition: transform .36s cubic-bezier(.36,1,.42,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2.4rem;
  color: #fff;
  background: none;
  border: none;
  margin: 28px 0 20px 28px;
  padding: 0;
  align-self: flex-start;
  z-index: 125;
  transition: color .14s;
}
.mobile-menu-close:hover {
  color: var(--highlight3);
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  margin-left: 32px;
  margin-top: 22px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.23rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 11px 0;
  transition: color .18s, background .18s;
  border-radius: 10px;
  display: block;
  width: 80vw;
  max-width: 320px;
}
.mobile-nav a:hover {
  color: var(--accent);
  background: rgba(255,255,255,0.11);
}
.mobile-nav a.cta, .mobile-nav a.primary {
  color: var(--primary);
  background: var(--accent);
  font-weight: 900;
  font-size: 1.22rem;
  border-radius: 25px;
  margin-top: 5px;
  text-align: center;
  width: 82vw;
  max-width: 330px;
  box-shadow: 0 4px 12px rgba(255,166,48,0.11);
}

@media (min-width: 900px) {
  .mobile-menu { display: none !important; }
}

/* ===================================================================
   SECTION & SPACING: Utility
=================================================================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===================================================================
   HERO / TOP BANNER
=================================================================== */
.hero {
  background: linear-gradient(120deg, var(--secondary) 80%, var(--highlight2) 150%);
  border-radius: 0 0 38px 38px;
  box-shadow: 0 4px 28px 0 rgba(84,193,255,0.09);
  margin-bottom: 0;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 25px;
  padding: 30px 0 0 0;
}
.hero h1 {
  color: var(--primary);
  text-shadow: 1px 4px 0 var(--highlight2);
}
.hero p {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 10px;
}
.hero .cta {
  margin-top: 8px;
}

/* ===================================================================
   FEATURES & HIGHLIGHTS
=================================================================== */
.features {
  background: #fff;
  border-radius: 26px;
  margin-bottom: 36px;
  box-shadow: 0 8px 32px 0 rgba(36,73,116,0.07);
}
.features .content-wrapper,
.features .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
.features .feature-item {
  background: var(--highlight2);
  border-radius: 22px;
  box-shadow: 0 1px 8px 0 rgba(36,73,116,0.10);
  padding: 24px 18px 18px 18px;
  align-items: center;
  text-align: center;
  flex: 1 0 220px;
  min-width: 160px;
  max-width: 250px;
  margin-bottom: 20px;
  transition: box-shadow .2s, transform .18s;
  position: relative;
  overflow: hidden;
}
.features .feature-item:hover {
  box-shadow: 0 8px 24px rgba(36,73,116,0.18), 0 2px 10px var(--accent);
  transform: translateY(-3px) scale(1.04) rotate(-1deg);
  z-index: 9;
}
.features .feature-item img {
  width: 54px; height: 54px;
  margin-bottom: 11px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 18px 0 rgba(255,255,255,0.19);
  transition: transform .2s;
  animation: feature-bounce 1.8s infinite alternate cubic-bezier(.54,2,.46,-0.5);
}
@keyframes feature-bounce {
  0% { transform: scale(1) rotate(-3deg) }
  100% { transform: scale(1.10) rotate(3deg) }
}
.features .feature-item h3 {
  color: var(--primary);
  font-size: 1.18rem;
  margin-bottom: 5px;
}
.features .feature-item p {
  color: #203959;
  font-size: 1rem;
}

/* ===================================================================
   CARDS: Services & Angebote
=================================================================== */
.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 16px 0 rgba(255,160,48,0.09), 0 1px 6px 0 rgba(36,73,116,0.06);
  padding: 28px 23px 23px 23px;
  width: 100%;
  min-width: 210px;
  max-width: 285px;
  margin-bottom: 20px;
  position: relative;
  transition: transform .2s, box-shadow .2s;
  overflow: hidden;
  animation: card-drop .9s ease;
}
@keyframes card-drop { from { opacity:.6; transform: translateY(44px); } to { opacity:1; transform: none; } }
.service-card img {
  width: 50px; height: 50px;
  margin-bottom: 7px;
  border-radius: 11px;
  background: var(--highlight1);
  box-shadow: 0 2px 11px 0 rgba(255,221,103,0.18);
  animation: image-float 2.1s infinite alternate cubic-bezier(.44,2,.66,-1.2);
}
@keyframes image-float {
  0% { transform: scale(1) rotate(-3deg); }
  100% { transform: scale(1.13) rotate(5deg); }
}
.service-card h2,
.service-card h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-size: 1.11rem;
  margin-bottom: 2px;
  text-align: center;
}
.service-card p {
  font-size: .99rem;
  color: #3E597F;
  text-align: center;
}
.service-card strong {
  color: var(--accent);
  font-size: 1.07rem;
  font-weight: 800;
}
.service-card .cta {
  margin-top: 10px;
  align-self: center;
}
.service-card:hover {
  box-shadow: 0 10px 30px 0 rgba(255,166,48,0.14), 0 2px 18px 0 rgba(36,73,116,0.17);
  transform: translateY(-6px) scale(1.04) rotate(-0.5deg);
  z-index: 12;
}

/* Flex wrapping for card container on all service grids */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/* ===================================================================
   TESTIMONIALS (playful card bubbles)
=================================================================== */
.testimonials {
  background: var(--highlight1);
  border-radius: 20px;
  margin-bottom: 38px;
  box-shadow: 0 4px 20px rgba(255,166,48,0.08);
}
.testimonials .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 17px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border-radius: 30px 14px 30px 14px;
  padding: 26px 26px 18px 23px;
  box-shadow: 0 4px 18px rgba(36,73,116,0.08), 0 1px 8px 0 rgba(255,221,103,0.13);
  min-width: 175px;
  max-width: 380px;
  flex: 1 1 250px;
  font-size: 1.04rem;
  color: var(--primary);
  margin-bottom: 20px;
  border-left: 5px solid var(--accent);
  position: relative;
  transition: box-shadow .16s, transform .16s, border-color .15s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 30px 0 rgba(255,166,48,0.20), 0 6px 25px rgba(36,73,116,0.11);
  border-color: var(--highlight2);
  transform: scale(1.036) translateY(-2px);
}
.testimonial-card p {
  color: #15283D;
  font-size: 1.08rem;
  font-style: italic;
  margin-bottom: 8px;
}
.testimonial-card strong {
  color: var(--primary);
  font-size: 1.04rem;
  font-family: 'Montserrat', Arial, sans-serif;
  text-shadow: 1px 1px 0 var(--highlight2, #e9eef3);
}

/* ===================================================================
   BUTTONS, CTAS, LINKS
=================================================================== */
.cta, a.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.13rem;
  font-weight: 900;
  padding: 12px 32px;
  box-shadow: 0 2px 11px 0 rgba(255,221,103,0.11);
  margin-top: 6px;
  margin-bottom: 3px;
  letter-spacing: .02em;
  transition: background .19s, color .19s, box-shadow .2s, transform .18s;
  cursor: pointer;
  outline: none;
  text-align: center;
  position: relative;
  z-index: 2;
}
.cta.primary {  /* for nav and important actions */
  background: var(--highlight1);
  color: #222;
  font-size: 1.14rem;
  box-shadow: 0 2px 10px 0 rgba(255,166,48,0.14);
}
.cta:hover, .cta:focus {
  background: var(--highlight2);
  color: var(--primary);
  box-shadow: 0 8px 20px 0 rgba(84,193,255,0.22);
  transform: translateY(-2px) scale(1.04);
}
.cta:active {
  background: var(--highlight3);
  color: #134436;
  transform: scale(.98);
}

/* Text links */
.text-section a {
  color: var(--primary);
  text-decoration: underline dotted var(--accent) 2px;
  transition: color .18s, text-decoration .18s;
}
.text-section a:hover,
.text-section a:focus {
  color: var(--accent);
  text-decoration: underline wavy var(--highlight2) 2.5px;
}

/* ===================================================================
   ABOUT, LEGAL, and INFO BLOCKS
=================================================================== */
.about, .legal {
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 4px 18px rgba(36,73,116,0.08);
}
.about .content-wrapper,
.legal .content-wrapper {
  justify-content: flex-start;
  gap: 16px;
}

.facts p {
  padding-left: 12px;
  font-size: 1rem;
  margin-bottom: 0.5em;
  color: var(--primary);
}

/* ===================================================================
   CALL TO ACTION BLOCK
=================================================================== */
.call-to-action {
  background: var(--highlight3);
  border-radius: 32px;
  box-shadow: 0 4px 16px rgba(74,217,145,0.09);
  margin-bottom: 44px;
  text-align: center;
}
.call-to-action .content-wrapper {
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.call-to-action h2 {
  color: var(--primary);
}
.call-to-action p {
  color: #156141;
  font-size: 1.17rem;
}
.call-to-action .cta {
  background: var(--accent);
  color: var(--primary) !important;
  margin-top: 13px;
}

/* ===================================================================
   FOOTER
=================================================================== */
footer {
  background: var(--primary);
  color: #fff;
  padding: 32px 0 18px 0;
  letter-spacing: 0.01em;
  font-size: 1rem;
  width: 100%;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.footer-logo img {
  height: 38px;
  margin-bottom: 8px;
}
.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 5px;
  transition: color .15s, background .17s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--accent);
  background: rgba(255,255,255,0.11);
}
.footer-contact p, .footer-contact a {
  color: #E9EEF3;
  font-size: .97rem;
}
.footer-contact a:hover {
  color: var(--highlight1);
}
@media (min-width: 768px) {
  footer .container {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
  .footer-logo {
    flex: 0 0 100px;
  }
  .footer-contact {
    flex: 1 1 230px;
  }
}

/* ===================================================================
   COOKIE CONSENT BANNER & MODAL
=================================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  z-index: 160;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 -4px 17px 0 rgba(36,73,116,0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 17px 16px 13px 16px;
  border-radius: 20px 20px 0 0;
  font-size: 1rem;
  animation: cookie-slideup .44s cubic-bezier(.32,1.6,.43,1.01);
}
@keyframes cookie-slideup {
  from { transform: translateY(105%); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-banner p { max-width: 540px; text-align: center; }
.cookie-buttons {
  display: flex;
  gap: 17px;
  flex-wrap: wrap;
  margin-top: 3px;
}
.cookie-btn {
  background: var(--accent);
  color: #244974;
  border: none;
  border-radius: 20px;
  padding: 9px 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.01rem;
  cursor: pointer;
  margin: 0 2px;
  transition: background .17s, color .13s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(255,166,48,0.13);
}
.cookie-btn.settings { background: var(--highlight2); color: var(--primary); }
.cookie-btn.reject { background: var(--danger); color: #fff; }
.cookie-btn:focus, .cookie-btn:hover {
  background: var(--highlight1);
  color: #2A271A;
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 170;
  background: rgba(36,73,116,0.70);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modal-fadein .31s;
}
@keyframes modal-fadein {
  from { opacity:0; } to { opacity:1; }
}
.cookie-modal-content {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 30px rgba(36,73,116,0.21);
  padding: 30px 24px;
  max-width: 420px;
  width: 94vw;
  color: #244974;
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: relative;
  animation: modal-zoom .32s cubic-bezier(.38,1.4,.61,1.01);
}
@keyframes modal-zoom {
  from { transform: scale(.8); opacity:0.5; }
  to { transform: none; opacity: 1; }
}
.cookie-modal-content h3 {
  color: var(--primary);
  margin-bottom: 6px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.cookie-category .toggle {
  width: 38px;
  height: 22px;
  background: var(--secondary);
  border-radius: 13px;
  box-shadow: 0 1px 7px #c9d1e5;
  position: relative;
  margin-right: 5px;
}
.cookie-category .toggle input[type=checkbox] {
  display: none;
}
.cookie-category .toggle-slider {
  position: absolute; left: 2px; top: 2px;
  width: 18px; height: 18px;
  background: var(--accent);
  border-radius: 50%;
  transition: left .18s;
}
.cookie-category .toggle input[type=checkbox]:checked + .toggle-slider {
  left: 18px;
  background: var(--highlight3);
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 17px;
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 19px;
  background: none;
  color: var(--primary);
  font-size: 1.8rem;
  border: none;
  cursor: pointer;
}
.cookie-modal-close:focus, .cookie-modal-close:hover {
  color: var(--accent);
}
.cookie-modal .essential {
  opacity: .85;
}
.cookie-modal .essential .toggle .toggle-slider {
  background: var(--primary);
}

/* ===================================================================
   RESPONSIVE DESIGN: mobile-first, up to desktop
=================================================================== */
@media (max-width: 768px) {
  .container { padding: 0 9px; }
  header .container { height: 58px; gap: 4px; }
  .hero .container { min-height: 180px; }
  .footer-logo img { height: 28px; }
  h1 { font-size: 1.49rem; }
  h2 { font-size: 1.14rem; }
  h3 { font-size: 1rem; }
  .features .feature-item { min-width: 140px; max-width: 98vw; padding: 13px 7px; }
  .service-card { min-width: 130px; max-width: 99vw; padding: 11px 4px 13px 7px; }
  .call-to-action, .features, .about, .legal, .testimonials {
    border-radius: 13px;
    padding: 20px 6px;
  }
  .about .content-wrapper, .legal .content-wrapper {
    gap: 7px;
  }
  .testimonial-card { padding: 17px 12px 12px 12px; border-radius: 17px 7px 17px 8px; }
  .cookie-modal-content { max-width: 95vw; padding: 14px 7px; }
}
@media (max-width: 1020px) {
  .features .feature-item, .service-card {
    min-width: 158px; max-width: 98vw;
  }
  .feature-grid { gap: 14px; }
}
@media (max-width: 900px) {
  .container { max-width: 100vw; }
}
@media (max-width: 767px) {
  .content-wrapper, .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .testimonial-card { min-width: 0; max-width: 99vw; }
  .main-nav { display: none !important; }
}

/* Text-image section stacking on mobile */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; gap: 14px; align-items: stretch; }
}

/* Prevent overlap for all cards/sections */
.card, .feature-item, .service-card, .testimonial-card, .section, section, .about, .legal, .features, .call-to-action, .testimonials {
  margin-bottom: 24px;
}
.card:not(:last-child), .feature-item:not(:last-child), .service-card:not(:last-child), .testimonial-card:not(:last-child), .section:not(:last-child), section:not(:last-child), .about:not(:last-child), .legal:not(:last-child), .features:not(:last-child), .call-to-action:not(:last-child), .testimonials:not(:last-child) {
  margin-bottom: 32px;
}

/* ===================================================================
   SCROLLBAR & PLAYFUL DETAILS
=================================================================== */
body::-webkit-scrollbar {
  width: 12px;
  background: var(--secondary);
}
body::-webkit-scrollbar-thumb {
  background: var(--highlight2);
  border-radius: 8px;
}

/* ===================================================================
   DYNAMIC EFFECTS / MICRO-INTERACTIONS
=================================================================== */
.cta,.service-card,.feature-item,.testimonial-card {
  transition: box-shadow .18s, background .15s, color .14s, transform .14s;
}
.cta:active {
  transform: scale(.97);
}

/* Playful confetti circles for backgrounds/hero (decor only!) */
.confetti {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0.09;
}
.confetti-1 { background: var(--highlight1); width: 120px; height: 120px; left: 8%; top: 14%; }
.confetti-2 { background: var(--highlight3); width: 70px; height: 70px; left: 82%; top: 28%; }
.confetti-3 { background: var(--highlight2); width: 90px; height: 90px; left: 59%; top: 3%; }

/* ===================================================================
   FOCUS VISIBILITY, ACCESSIBILITY (high contrast)
=================================================================== */
:focus {
  outline: 2.5px solid var(--highlight2); /* accessibility */
  outline-offset: 2px;
}
/* ===================================================================
   PRINT: Brand colors for printing, minor tweaks
=================================================================== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
}
