/* RESET & BASE STYLES */
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,
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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  background: #FBFAFF;
  color: #234055;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #366786;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #77C043;
  outline: none;
}
ul, ol {
  margin-left: 1.6em;
  margin-bottom: 20px;
}
li {
  margin-bottom: 8px;
}

/* BRAND FONTS */
h1, h2, h3, h4, h5, .btn-primary, .btn-secondary, .logo, .logo-footer {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

h1 { font-size: 2.5rem; margin-bottom: 20px; color: #184370; }
h2 { font-size: 2rem; margin-bottom: 16px; color: #184370; }
h3 { font-size: 1.375rem; margin-bottom: 12px; color: #1D3050; }
h4 { font-size: 1.125rem; margin-bottom: 10px; color: #437781; }
p {
  margin-bottom: 12px;
  color: #38618b;
  font-size: 1rem;
  line-height: 1.7;
}
strong, b { color: #184370; }

.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 18px;
}
.text-section {
  background: rgba(255,255,255,0.65);
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(71,80,94,0.09);
  padding: 32px 24px;
  margin-bottom: 16px;
  transition: box-shadow 0.25s;
}
.text-section:hover {
  box-shadow: 0 6px 24px 0 rgba(57,74,110,0.11);
}

body > main > section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
}

@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  .content-wrapper, .text-section {
    padding: 20px 8px;
    border-radius: 8px;
    gap: 12px;
  }
}

/* HEADER + NAVIGATION */
header {
  width: 100%;
  background: linear-gradient(90deg, #F2F5FF 25%, #F7F7F9 100%);
  box-shadow: 0 1px 10px 0 rgba(177,188,208,0.13);
  padding: 0;
  position: sticky;
  top: 0; z-index: 102;
}
header .container {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo, .logo-footer {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
}
.logo img, .logo-footer img {
  height: 44px;
  width: auto;
  border-radius: 10px;
}

.main-nav {
  display: flex;
  gap: 20px;
}
.main-nav a {
  font-size: 1rem;
  font-weight: 600;
  color: #234055;
  padding: 7px 16px;
  border-radius: 999px;
  transition: background .2s, color .2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #e1eff9;
  color: #77C043;
  outline: none;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 28px;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.2s, box-shadow 0.2s, color 0.15s;
  margin-left: 10px;
  margin-right: 0px;
  margin-bottom: 0px;
}
.btn-primary {
  color: #fff;
  background: #77C043;
  font-weight: 700;
  box-shadow: 0 2px 16px 0 rgba(119,192,67,0.11);
}
.btn-primary:hover, .btn-primary:focus {
  background: #5ea62f;
  color: #fff;
  box-shadow: 0 2px 24px 0 rgba(119,192,67,0.17);
}
.btn-secondary {
  color: #184370;
  background: #DBE7F7;
  font-weight: 700;
  box-shadow: 0 2px 8px 0 rgba(184,202,242,0.05);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #B7D5F5;
  color: #184370;
}

/* MOBILE BURGER NAVIGATION */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #184370;
  padding: 8px 14px;
  margin-left: 8px;
  border-radius: 6px;
  transition: background 0.16s;
  z-index: 201;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #EAF2FF;
  color: #77C043;
}
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(245,246,253,0.97);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.67,.04,.22,1);
  box-shadow: 0 0 120px 30px rgba(150,170,210,0.13);
  will-change: transform;
  opacity: 1;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  margin: 14px 14px 0 auto;
  background: none;
  border: none;
  font-size: 2rem;
  color: #184370;
  cursor: pointer;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.14s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #e6f0d1;
  color: #77C043;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 32px;
  margin-left: 30px;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #234055;
  font-weight: 600;
  font-size: 1.15rem;
  padding: 12px 10px 12px 0;
  border-radius: 6px;
  transition: color .18s, background .15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E6F0D1;
  color: #77C043;
}
@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
}

/* HERO & SECTIONS - SOFT PASTEL AESTHETIC */
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  background: none;
}

section:not(:first-child):not(:last-child) {
  background: linear-gradient(180deg, #FAFAFE 50%, #EDF3FC 100%);
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.service-list, .artikel-teaser-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 18px 0 10px 0;
}
.service-list > div, .artikel-teaser-list > div {
  background: #F7F7F9;
  border-radius: 18px;
  box-shadow: 0 2px 18px 0 rgba(155,186,190,0.16);
  padding: 26px 20px 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 270px;
  max-width: 320px;
  min-width: 240px;
  gap: 14px;
  transition: box-shadow 0.22s, transform 0.16s;
}
.service-list > div:hover, .artikel-teaser-list > div:hover {
  box-shadow: 0 8px 32px 0 rgba(119,192,67,0.10);
  transform: translateY(-4px) scale(1.018);
}
.service-list h3,
.service-list h2,
.artikel-teaser-list h3 {
  font-size: 1.2rem;
  color: #366786;
  margin-bottom: 6px;
  margin-top: 0;
}
.service-list span,
.artikel-teaser-list span {
  font-size: 1.05rem;
  font-weight: 700;
  color: #77C043;
  margin-top: 12px;
}

@media (max-width: 960px) {
  .service-list, .artikel-teaser-list {
    gap: 20px;
  }
  .service-list > div, .artikel-teaser-list > div {
    min-width: 180px;
    max-width: 100%;
    flex: 1 1 200px;
  }
}
@media (max-width: 768px) {
  .service-list, .artikel-teaser-list {
    flex-direction: column;
    gap: 16px;
  }
  .service-list > div, .artikel-teaser-list > div {
    width: 100%;
    min-width: 0;
    padding: 18px 10px;
  }
}

.kundenservice-statement {
  padding: 14px 22px;
  background: #ECF9ED;
  border-radius: 12px;
  color: #1D3050;
  margin-top: 10px;
  font-size: 1rem;
}

.ratschlaege-highlight {
  margin: 32px 0 10px 0;
  padding: 16px 20px;
  border-radius: 11px;
  background: #E6F0D1;
  color: #234055;
  font-size: 1rem;
  box-shadow: 0 2px 8px 0 rgba(153,173,150,0.07);
}
.ratschlaege-highlight h4 {
  color: #77C043;
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.faq-accordion > div {
  background: #F7F7F9;
  border-radius: 11px;
  margin-bottom: 24px;
  padding: 18px 18px 14px 18px;
  box-shadow: 0 1px 8px 0 rgba(126,157,181,0.07);
}
.faq-accordion h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: #184370;
}

.support-cta {
  margin: 28px 0 0 0;
  font-size: 1.1rem;
}
.support-cta a {
  color: #77C043;
  margin-left: 8px;
  font-weight: 600;
  border-bottom: 2px solid #DBE7F7;
  transition: border-color .2s;
}
.support-cta a:hover, .support-cta a:focus {
  border-bottom: 2px solid #77C043;
}

/* TESTIMONIALS */
.testimonial-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(100,148,151,0.10);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
  padding: 20px 28px 18px 22px;
  transition: box-shadow 0.14s;
  border-left: 6px solid #77C043;
}
.testimonial-card p {
  color: #184370;
  font-size: 1.06rem;
  font-style: italic;
}
.testimonial-meta {
  color: #234055;
  font-size: 1rem;
  font-weight: 600;
  opacity: .93;
}
.testimonial-rating {
  display: flex;
  align-items: center;
  gap: 2px;
}
.testimonial-rating img {
  width: 22px;
  height: 22px;
}
@media (max-width:768px) {
  .testimonial-card {
    padding: 16px 10px 14px 10px;
    margin-bottom: 16px;
    border-left-width: 4px;
  }
  .testimonial-rating img {
    width: 18px; height: 18px;
  }
}

/* FOOTER */
footer {
  background: #F2F5FF;
  color: #234055;
  padding: 0;
  border-top: 2px solid #EDF3FC;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 22px 20px 12px 20px;
  gap: 28px;
}
.logo-footer {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
}
.footer-nav a {
  color: #234055;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.88;
  transition: color .19s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #77C043;
}
.footer-contact {
  font-size: 1rem;
  color: #437781;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-contact a {
  color: #366786;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 10px 10px 10px;
  }
  .footer-nav {
    gap: 12px 16px;
  }
}

/* CARDS & FLEX CONTAINERS */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: #FAF7FB; border-radius: 18px; padding: 26px 22px 22px 20px; box-shadow: 0 2px 16px 0 rgba(160,150,170,0.09); }
.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; }

/* RESPONSIVE FLEX-DIRECTION SWITCHES */
@media (max-width: 768px) {
  .content-grid, .card-container, .service-list, .artikel-teaser-list, .text-image-section {
    flex-direction: column !important;
    gap: 16px !important;
  }
}

/* SPACING OVERRIDES – ENSURE NO OVERLAP, CLEAN LAYOUTS */
section, .section, .text-section, .card, .testimonial-card, .card-container > *, .service-list > *, .artikel-teaser-list > *, .faq-accordion > div {
  margin-bottom: 20px;
}

/* BUTTON & LINK INTERACTIONS */
.btn-primary, .btn-secondary, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}

/* CHECKLIST, ICONS, MISC */
ul li img, .feature-list img {
  display: inline-block;
  width: 1.4em;
  height: 1.4em;
  margin-right: 8px;
  vertical-align: middle;
}

ol li {
  margin-bottom: 10px;
  font-size: 1.02em;
}

/* COLOR PALETTE UTILITIES (SOFT PASTEL) */
.bg-primary { background: #184370 !important; }
.bg-secondary { background: #77C043 !important; }
.bg-accent { background: #F7F7F9 !important; }
.bg-pastel-green { background: #E6F0D1 !important; }
.bg-pastel-blue { background: #F2F5FF !important; }
.text-green { color: #77C043 !important; }
.text-blue { color: #184370 !important; }
.text-muted { color: #7b98bb !important; }

/* COOKIE CONSENT BANNER */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 5010;
  background: rgba(245,246,253,0.97);
  color: #234055;
  box-shadow: 0 -2px 18px 0 rgba(171,186,210,0.18);
  padding: 26px 14px 22px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  border-top: 1px solid #DBE7F7;
  transition: transform 0.35s cubic-bezier(.66,.01,.2,1), opacity 0.18s;
}
.cookie-consent-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-buttons {
  display: flex;
  gap: 15px;
  margin-top: 4px;
}
.cookie-btn {
  border: none;
  border-radius: 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 10px 22px;
  font-size: 1rem;
  margin: 0;
  background: #E6F0D1;
  color: #184370;
  cursor: pointer;
  transition: background 0.15s;
}
.cookie-btn.accept {
  background: #77C043;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #5ea62f;
}
.cookie-btn.reject {
  background: #E3E7F5;
  color: #184370;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #DBE7F7;
}
.cookie-btn.settings {
  background: #f7eef5;
  color: #366786;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #e1eff9;
}

/* COOKIE MODAL POPUP (PREFERENCES) */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(72, 87, 110, 0.15);
  z-index: 5020;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity .32s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 36px 0 rgba(71,80,120,.18);
  padding: 38px 28px 28px 28px;
  min-width: 280px;
  max-width: 99vw;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 1.07rem;
  align-items: stretch;
}
.cookie-modal h3 {
  font-size: 1.24rem;
  color: #184370;
  margin-bottom: 16px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F7F7F9;
  border-radius: 9px;
  padding: 10px 14px;
  margin-bottom: 9px;
  font-size: 1rem;
}
.cookie-modal .cookie-toggle {
  margin-left: auto;
  position: relative;
}
.cookie-modal .cookie-switch {
  width: 38px;
  height: 20px;
  background: #DBE7F7;
  border-radius: 12px;
  display: inline-block;
  position: relative;
  cursor: pointer;
  vertical-align: middle;
  transition: background 0.18s;
}
.cookie-modal .cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal .slider {
  position: absolute;
  left: 3px;
  top: 3px;
  bottom: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #bccbe5;
  transition: transform 0.18s, background 0.18s;
}
.cookie-modal .cookie-switch input:checked + .slider {
  transform: translateX(16px);
  background: #77C043;
}
.cookie-modal .cookie-category.essential {
  font-weight: 700;
  opacity: 1;
  background: #E6F0D1;
}
.cookie-modal .cookie-category.essential .cookie-toggle {
  opacity: 0.5;
}
.cookie-modal .cookie-button-row {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 8px;
}
.cookie-modal .cookie-btn {
  padding: 10px 18px;
  font-size: 1rem;
}
@media (max-width: 600px) {
  .cookie-modal {
    padding: 16px 8px;
    font-size: 0.98rem;
    min-width: 0;
  }
}

/* TRANSITIONS & MICRO-ANIMATIONS */
a, .btn-primary, .btn-secondary, .mobile-menu-toggle, .mobile-menu-close, .cookie-btn, .cookie-modal .cookie-switch {
  transition: all 0.19s cubic-bezier(.64,.09,.31,1);
}
section, .service-list > div, .testimonial-card, .card, .text-section, .cookie-consent-banner, .cookie-modal {
  transition: box-shadow .2s, transform .2s;
}

/* MISC COMPONENTS */
.contact-details p, .contact-details a {
  font-size: 1.06rem;
  margin-bottom: 6px;
}

.artikel-teaser-list > div h3 {
  margin-bottom: 6px;
  color: #19577A;
}

/* HIGH CONTRAST for Testimonials on Pastel Background */
.testimonial-card, .faq-accordion > div {
  background: #fff;
  color: #184370;
  border-left: 6px solid #77C043;
  box-shadow: 0 2px 14px 0 rgba(71,80,94,0.10);
}

/* GENERAL UTILITIES */
.m-0 { margin: 0 !important; }
.mb-20 { margin-bottom: 20px !important; }
.pt-0 { padding-top: 0 !important; }
p.muted { color: #7b98bb; opacity: 0.87; }

/* ACCESSIBILITY - FOCUS STATES */
a:focus, .btn-primary:focus, .btn-secondary:focus,
.mobile-menu-toggle:focus, .mobile-menu-close:focus,
.cookie-btn:focus {
  outline: 2px solid #77C043;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #BDE9B0;
}

/* Hide visually but keep accessible */
.visually-hidden {
  position: absolute !important;
  clip: rect(1px,1px,1px,1px);
  padding:0 !important;
  border:0 !important;
  height:1px; width:1px; overflow:hidden;
}

/* END */
