/* ---------------------------
   AutoKompass DE – STYLE.CSS
   Playful Dynamic Theme
----------------------------*/

/* ========== CSS 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; }
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #F6F7FB;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #183153;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overscroll-behavior-y: none;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #27B36A; text-decoration: none; transition: color .2s; }
a:hover, a:focus { color: #183153; text-decoration: underline; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: 8px; }

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.5em;
  color: #183153;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.7rem; margin-bottom: .8em; }
h2 { font-size: 2rem; }
h3 { font-size: 1.37rem; }
h4, h5, h6 { font-size: 1.1rem; }
p, .text-section p { font-size: 1rem; margin-bottom: 1.1em; color: #22254b; }
strong { font-weight: 600; }
.text-section { margin-bottom: 1.5em; }

@media (min-width: 600px) {
  h1 { font-size: 3.2rem; }
  h2 { font-size: 2.3rem; }
  h3 { font-size: 1.68rem; }
}
@media (min-width: 1024px) {
  h1 { font-size: 3.7rem; }
  h2 { font-size: 2.5rem; }
}

/* ========== BRANDING COLORS ========== */
:root {
  --primary: #183153;
  --secondary: #27B36A;
  --accent: #F9D423;        /* playful yellow */
  --bg: #F6F7FB;
  --pink: #F96FB8;
  --orange: #FFB55A;
  --blue: #42B0FF;
  --card-bg: #fff;
  --shadow: 0 4px 24px rgba(50,54,100,.10);
  --radius: 22px;
  --transition: all 0.24s cubic-bezier(.67,.28,.32,.98);
}

/* ========== LAYOUT CONTAINER ========== */
.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
}

/* ========== HEADER & NAV ========== */
header {
  background: var(--primary);
  color: #fff;
  width: 100vw;
  position: sticky;
  top: 0;
  z-index: 110;
  box-shadow: 0 3px 22px 0 rgba(24,49,83,.07);
}
header .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 22px;
}
header img {
  height: 44px;
  filter: none;
  transition: transform .2s;
}
header img:hover {
  transform: scale(1.08) rotate(-4deg);
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
header nav a {
  color: #fff;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  padding: 7px 12px;
  border-radius: 16px;
  transition: background .2s, color .2s, transform .2s, box-shadow .2s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: var(--secondary);
  color: #fff;
  text-decoration: none;
  transform: translateY(-3px) scale(1.06) rotate(-2.5deg);
  box-shadow: 0 8px 22px 0 rgba(39,179,106,.13);
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 32px 12px 32px;
  border: none;
  border-radius: 32px;
  color: #fff!important;
  background: linear-gradient(93deg, var(--secondary) 60%, var(--blue) 100%);
  box-shadow: 0 6px 32px 0 rgba(27,179,106,.12);
  cursor: pointer;
  position: relative;
  margin-left: 10px;
  transition: var(--transition);
  letter-spacing: 0.02em;
  gap: 7px;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(93deg, var(--blue) 52%, var(--secondary) 100%);
  box-shadow: 0 12px 34px 0 rgba(80,187,233,.11);
  transform: scale(1.07) rotate(-2deg);
  color: #fff!important;
}

/* ========== MOBILE BURGER MENU ========== */
.mobile-menu-toggle {
  display: flex;
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 205;
  width: 50px;
  height: 50px;
  font-size: 2rem;
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 3px 16px rgba(39,179,106,.20);
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
  outline: none;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--blue);
  color: #fff;
}
@media (min-width: 1025px) {
  .mobile-menu-toggle { display: none!important; }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(24,49,83, 0.98);
  color: #fff;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(.81,-0.23,.34,1.33);
  opacity: 1;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  box-shadow: 0 0 0 100vw rgba(24,49,83,.38);
}
.mobile-menu-close {
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  position: absolute;
  top: 18px; right: 18px;
  font-size: 2rem;
  z-index: 1001;
  box-shadow: 0 8px 16px 0 rgba(249,111,184,.14);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-close:active, .mobile-menu-close:focus {
  background: var(--orange);
}
.mobile-nav {
  margin-top: 78px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 32px 18px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.32rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.11);
  transition: color .23s, background .18s;
  text-align: left;
  display: block;
  font-weight: 600;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  color: var(--accent);
  background: rgba(255,255,255,0.07);
  border-radius: 8px;
  text-decoration: none;
}
@media (min-width: 1024px) {
  .mobile-menu { display: none!important; }
}

@media (max-width: 1024px) {
  header nav, header .btn-primary {
    display: none!important;
  }
}

/* ========== SECTIONS & HERO ========== */
main {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.section, section:not(.hero):not(.footer) {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  width: 100%;
}
.hero, section.hero {
  background: linear-gradient(110deg, var(--accent) 2%, var(--secondary) 55%, var(--blue) 100%);
  color: #183153;
  padding: 64px 0 42px 0;
  margin-bottom: 38px;
  width: 100%;
  box-shadow: 0 8px 34px 0 rgba(39,179,106,.06);
  border-radius: 0 0 32px 32px;
  overflow: hidden;
  position: relative;
}
.hero .container, section.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.hero .content-wrapper {
  align-items: center;
  max-width: 670px;
  margin: 0 auto;
  text-align: center;
}
@media (min-width: 768px) {
  .hero .container { flex-direction: row; justify-content: center; gap: 34px; }
}

/* ========== FLEX LAYOUTS ========== */
.feature-grid, .features .feature-grid, .services .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: flex-start;
  margin-top: 22px;
  width: 100%;
}
.feature-item {
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 26px 24px 26px;
  min-width: 220px;
  flex: 1 1 230px;
  margin-bottom: 0;
  border-left: 6px solid var(--secondary);
  transition: var(--transition);
  position: relative;
  min-height: 180px;
  cursor: pointer;
}
.feature-item img {
  width: 48px;
  height: 48px;
  filter: none;
}
.feature-item h3 {
  font-size: 1.17rem;
  color: var(--primary);
}
.feature-item:hover, .feature-item:focus {
  box-shadow: 0 4px 44px 0 rgba(66,176,255,0.19), 0 2px 20px rgba(249,111,184,0.08);
  border-left: 6px solid var(--pink);
  transform: translateY(-7px) rotate(-1.5deg) scale(1.04);
  background: #FFFBE7;
}

/* --- .section and Spacing --- */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 26px 22px;
  transition: var(--transition);
}
.card:hover, .card:focus {
  box-shadow: 0 12px 34px 0 rgba(249,111,184,0.20);
  transform: translateY(-5px) scale(1.02);
}
.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;
}

@media (max-width: 768px) {
  .feature-grid, .services .feature-grid, .card-container, .content-grid, .footer-nav, .legal-links {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* ========== TESTIMONIALS ========== */
.testimonials {
  width: 100%;
  background: var(--accent);
  border-radius: 36px;
  box-shadow: 0 8px 34px 0 rgba(39,179,106,.14);
  padding: 40px 20px;
  margin-bottom: 50px;
}
.testimonials .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 2px 18px 0 rgba(24,49,83,0.07);
  border-radius: 18px;
  color: #183153;
  font-size: 1.09rem;
  margin-bottom: 20px;
  border-left: 5px solid var(--secondary);
  min-width: 230px;
  width: 100%;
  max-width: 610px;
  transition: var(--transition);
  position: relative;
}
.testimonial-card:hover {
  background: #F6F7FB;
  transform: translateY(-6px) scale(1.03) rotate(-1deg);
  border-left: 5px solid var(--pink);
  box-shadow: 0 8px 34px 0 rgba(249,111,184,0.13);
}
.testimonial-card p {
  margin: 0;
  color: #183153;
}
.testimonial-card strong {
  color: var(--blue);
  font-size: 0.95rem;
  margin-left: 14px;
  font-weight: 700;
}
@media (max-width: 768px) {
  .testimonial-card { flex-direction: column; gap: 10px; max-width: 100%; }
}

/* ========== CTA SECTIONS ========== */
.cta {
  background: linear-gradient(108deg, var(--blue) 2%, var(--secondary) 60%, var(--accent) 100%);
  color: #183153;
  border-radius: var(--radius);
  padding: 38px 20px 40px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.cta h2 {
  color: #183153;
  margin-bottom: 24px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
}
.cta .btn-primary {
  margin-top: 14px;
}

/* ========== FAQ & LISTS ========== */
.faq ul, .legal ul { margin-top: 10px; }
.faq li, .legal li { margin-bottom: 12px; }
.faq strong, .legal strong { color: var(--secondary); }

/* ========== ABOUT & CONTACT & CONFIRMATION ========== */
.about, .contact, .confirmation, .legal, .footer {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 22px;
  margin-bottom: 48px;
}
.about ul, .contact ul { margin-top: 22px; }
.about li, .contact li { margin-bottom: 14px; }
.about strong, .contact strong { color: var(--blue); }

/* ========== FOOTER ========== */
footer {
  background: var(--primary);
  color: #fff;
  padding: 38px 0 18px 0;
  font-size: 0.98rem;
  width: 100vw;
  box-shadow: 0 -3px 28px 0 rgba(24,49,83,.09);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav, .legal-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-nav a, .legal-links a {
  color: #fff;
  font-weight: 500;
  padding: 7px 4px;
  border-radius: 8px;
  transition: background .15s;
}
.footer-nav a:hover, .legal-links a:hover { background: var(--secondary); color: #fff; }
.footer-contact {
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  gap: 9px;
  color: #fff;
}
.footer-contact img {
  display: inline;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  margin-bottom: -3px;
}

@media (max-width: 768px) {
  footer .container { flex-direction: column; gap: 22px; align-items: flex-start; }
  .footer-nav, .legal-links { flex-direction: column; gap: 12px; }
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: #fff;
  color: #183153;
  border-top: 5px solid var(--secondary);
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -2px 16px 0 rgba(24,49,83,0.25);
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 1500;
  font-size: 1.08rem;
  animation: cookieEnter .84s cubic-bezier(.61,.09,.19,1.11) 1;
}
@keyframes cookieEnter {
  0% { transform: translateY(140%); opacity: 0; }
  90% { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-btn, .cookie-btn-secondary, .cookie-btn-settings {
  padding: 10px 22px;
  border-radius: 20px;
  border: none;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-left: 4px;
}
.cookie-btn {
  background: var(--secondary);
  color: #fff;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--blue);
}
.cookie-btn-secondary {
  background: #eee;
  color: var(--primary);
}
.cookie-btn-secondary:hover, .cookie-btn-secondary:focus {
  background: #f5a;
  color: #fff;
}
.cookie-btn-settings {
  background: var(--pink);
  color: #fff;
}
.cookie-btn-settings:hover, .cookie-btn-settings:focus {
  background: var(--orange);
}

/* --- Cookie Modal --- */
.cookie-modal-backdrop {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(24,49,83, 0.22);
  z-index: 2001;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalIn .49s cubic-bezier(.8,-0.25,.67,1.28) 1;
}
@keyframes cookieModalIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #183153;
  border-radius: 24px;
  padding: 38px 20px 28px 20px;
  min-width: 310px;
  max-width: 95vw;
  box-shadow: 0 8px 54px 0 rgba(39,179,106,0.18);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 2002;
  animation: cookieModalPopIn .6s cubic-bezier(.43,.99,.51,1.11) 1;
}
@keyframes cookieModalPopIn {
  0% { transform: scale(0.7); opacity: 0; }
  80% { transform: scale(1.03); }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.45rem;
  color: var(--secondary);
  margin-bottom: 13px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f6f7fb;
  border-radius: 14px;
  padding: 16px 15px;
  font-size: 1rem;
  font-weight: 500;
}
.cookie-category .toggle {
  min-width: 40px;
  height: 24px;
  border-radius: 16px;
  background: #eee;
  position: relative;
  transition: background .15s;
  margin-left: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.cookie-category .toggle input {
  display: none;
}
.cookie-category .toggle-indicator {
  width: 22px;
  height: 22px;
  background: var(--secondary);
  border-radius: 50%;
  position: absolute;
  left: 1px;
  top: 1px;
  transition: left .22s cubic-bezier(.8,.24,.51,1.29), background .22s;
  box-shadow: 0 1px 4px rgba(39,179,106,.11);
}
.cookie-category .toggle input:checked + .toggle-indicator {
  left: 17px;
  background: var(--blue);
}
.cookie-category .toggle[disabled] {
  opacity: 0.55; pointer-events: none;
}

@media (max-width: 570px) {
  .cookie-banner { flex-direction: column; gap: 10px; padding: 14px 10px; }
  .cookie-modal { padding: 22px 6vw 18px 6vw; min-width: unset; }
}

/* ========== ANIMATIONS & FUN EFFECTS ========== */
/* Button bounce effect */
.btn-primary, .cookie-btn, .cookie-btn-settings {
  transform: translateY(0);
}
.btn-primary:active, .cookie-btn:active, .cookie-btn-settings:active {
  animation: bounceBtn .34s cubic-bezier(.73,2.1,.67,1.13);
}
@keyframes bounceBtn {
  0% { transform: scale(.98); }
  18% { transform: scale(1.10) rotate(-2deg); }
  50% { transform: scale(.97); }
  70% { transform: scale(1.03) rotate(1deg); }
  100% { transform: scale(1); }
}
/* Card pop */
.feature-item,
.testimonial-card,
.card {
  transition: var(--transition), box-shadow .28s cubic-bezier(.51,.99,.51,1.11);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1199px) {
  .container { max-width: 970px; }
}
@media (max-width: 991px) {
  .container { max-width: 780px; }
  .hero .content-wrapper { max-width: 98vw; }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.37rem; }
  .section, section, .hero, .about, .contact, .confirmation, .legal, .footer, .testimonials, .cta {
    padding: 24px 6px;
    border-radius: 13px;
  }
  .cta { padding: 30px 6px 32px 6px; }
}

/* ========== ACCESSIBILITY FOCUS STYLES ========== */
a:focus, button:focus, .btn-primary:focus, .cookie-btn:focus {
  outline: 2px dashed var(--pink);
  outline-offset: 2px;
}

/* ========== SCROLLBAR STYLE ========== */
::-webkit-scrollbar { width: 9px; background: #F6F7FB; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 7px; }

/* ========== UTILITY CLASSES ========== */
.hide { display: none!important; }
.d-block { display: block!important; }
.m-0 { margin: 0!important; }
.mt-1 { margin-top: 9px!important; }
.mb-0 { margin-bottom: 0!important; }
.mb-1 { margin-bottom: 9px!important; }

/* ========== PREVENT UNWANTED OVERLAP & ENFORCE SPACING ========== */
.card, .feature-item, .testimonial-card, .content-grid > *, .footer-nav > a, .legal-links > a {
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .card, .feature-item, .testimonial-card, .content-grid > *, .footer-nav > a, .legal-links > a {
    margin-bottom: 18px;
  }
}

/* ========== THEME-SPECIFIC PLAYFUL DETAILS ========== */
.feature-item:before {
  content: '';
  position: absolute;
  top: -16px;
  right: -16px;
  width: 32px; height: 32px;
  z-index: 1;
  background: radial-gradient(circle at 38% 62%, var(--pink) 43%, transparent 90%);
  opacity: 0.25;
  border-radius: 50%;
  pointer-events: none;
  transform: rotate(13deg);
}
.card:after {
  content: '';
  position: absolute;
  left: -13px;
  bottom: -13px;
  width: 26px; height: 26px;
  background: radial-gradient(circle at 42% 58%, var(--blue) 48%, transparent 100%);
  z-index: 0;
  opacity: 0.2;
  pointer-events: none;
  border-radius: 50%;
  transform: rotate(-9deg);
}
.cta:after {
  content: '';
  display: block;
  position: absolute;
  right: 30px;
  top: 14px;
  width: 37px; height: 37px;
  background: radial-gradient(circle at 50% 80%, var(--pink) 52%, transparent 100%);
  border-radius: 50%;
  opacity: 0.14;
  z-index: 0;
  pointer-events: none;
}

/* ========== END OF STYLE.CSS ========== */
