/* ===== 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;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  background: #FAF5ED;
  color: #204060;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
*, *:before, *:after {
  box-sizing: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #204060;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #A5C03D;
  outline: none;
}
ul, ol {
  margin-left: 24px;
}

/* ======= VARIABLES (FALLBACKS) ======= */
:root {
  --primary: #204060;
  --secondary: #A5C03D;
  --accent: #FAF5ED;
  --brand-orange: #FF871F;
  --brand-pink: #EF3D8F;
  --brand-blue: #23B5D3;
  --danger-red: #D32F2F;
  --gray-dark: #232323;
  --gray-mid: #999DA6;
  --gray-bg: #F7F7F9;
}

/* ======= TYPOGRAPHY ======= */
h1,
h2,
h3,
h4,
h5 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: .01em;
  color: #204060;
}
h1 {
  font-size: 2.75rem;
  line-height: 1.1;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
  color: #A5C03D;
}
h4 {
  font-size: 1.15rem;
}
.subheadline {
  font-size: 1.2rem;
  font-weight: 500;
  font-family: 'Roboto', Arial, sans-serif;
  color: #23B5D3;
  margin-bottom: 24px;
}
p {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 16px;
  color: #204060;
}
strong {
  color: var(--brand-pink);
}

/* ======= CONTAINER & LAYOUTS ======= */
.container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 8px 32px 0 rgba(35,181,211,.10);
}
@media (max-width: 768px) {
  .section {
    padding: 24px 5px;
    margin-bottom: 34px;
  }
}

/* ======= HEADER & NAVIGATION ======= */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 4px 28px 0 rgba(32,64,96,.08);
  position: relative;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 86px;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 6px 12px;
  color: #204060;
  border-radius: 8px;
  transition: background .18s, color .18s, box-shadow .2s;
  position: relative;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #A5C03D;
  color: #fff;
  box-shadow: 0 1px 4px var(--brand-blue, #23B5D3);
}
.cta-btn {
  background: linear-gradient(90deg, #A5C03D 80%, #EF3D8F 100%);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 12px 32px;
  border: none;
  border-radius: 30px;
  box-shadow: 0 4px 16px 0 rgba(239,61,143,0.13);
  cursor: pointer;
  text-shadow: 0 2px 8px rgba(35,181,211, .08);
  letter-spacing: 0.03em;
  transition: background .15s, transform .12s, box-shadow .14s;
  display: inline-block;
  margin-left: 10px;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, #23B5D3 60%, #A5C03D 100%);
  box-shadow: 0 6px 24px 0 rgba(239,61,143,0.18);
  color: #fff;
  transform: translateY(-3px) scale(1.04) rotate(-1.8deg);
}

/* ======= MOBILE NAVIGATION ======= */
.mobile-menu-toggle {
  display: none;
  background: #fff;
  color: var(--brand-pink, #EF3D8F);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 8px 18px 8px 10px;
  border-radius: 18px;
  transition: background .13s, color .18s;
  margin-left: auto;
  z-index: 1020;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--brand-blue, #23B5D3);
  color: #fff;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 92vw;
  max-width: 360px;
  height: 100vh;
  background: #204060;
  color: #fff;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(0.77,0,0.175,1);
  z-index: 2000;
  box-shadow: -12px 0 30px 0 rgba(32,64,96,0.25);
  display: flex;
  flex-direction: column;
  padding: 38px 26px 26px 26px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  align-self: flex-end;
  margin-bottom: 24px;
  cursor: pointer;
  padding: 5px 10px 5px 5px;
  border-radius: 15px;
  transition: background .15s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--brand-pink, #EF3D8F);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.17rem;
  font-weight: 700;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  transition: background .12s, color .12s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #A5C03D;
  color: #fff;
  border-radius: 6px;
  padding-left: 8px;
}
@media (max-width: 980px) {
  .main-nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 981px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ======= HERO SECTIONS ======= */
.hero {
  min-height: 390px;
  background: linear-gradient(90deg, #23B5D3 18%, #A5C03D 70%, #EF3D8F 100%);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 56px 0 44px 0;
  position: relative;
  border-radius: 0 0 36px 36px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero h1, .hero .subheadline {
  color: #fff;
  text-shadow: 0 2px 24px rgba(32,64,96,0.25);
}
.hero .cta-btn {
  margin-top: 16px;
  box-shadow: 0 6px 45px 0 rgba(165,192,61,.11);
}
@media (max-width: 768px) {
  .hero {
    min-height: 250px;
    padding: 32px 0 25px 0;
    border-radius: 0 0 16px 16px;
  }
}

/* ======= CONTENT SECTIONS (GENERIC) ======= */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature {
  flex: 1 1 190px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(165,192,61,0.09);
  padding: 22px 18px 22px 18px;
  min-width: 195px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  transition: transform .18s, box-shadow .18s;
  border: 2px solid #EF3D8F1a;
}
.feature img {
  width: 46px;
  height: 46px;
}
.feature h3 {
  margin-bottom: 7px;
  font-size: 1.16rem;
  color: #204060;
}
.feature p {
  margin-bottom: 0;
  font-size: 0.98rem;
}
.feature:hover,
.feature:focus-within {
  transform: translateY(-7px) scale(1.05);
  box-shadow: 0 8px 32px 0 rgba(165,192,61,.23);
  border-color: #23B5D3;
}

@media (max-width: 980px) {
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature {
    min-width: 0;
  }
}

.service-teasers {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.service {
  flex: 1 1 220px;
  min-width: 210px;
  background: #23B5D30A;
  border-radius: 12px;
  box-shadow: 0 3px 18px 0 rgba(35,181,211,0.07);
  padding: 20px 16px;
  margin-bottom: 20px;
  font-family: 'Roboto', Arial, sans-serif;
  transition: box-shadow .14s, transform .13s;
  border: 2px solid transparent;
}
.service h3 {
  color: #EF3D8F;
  margin-bottom: 6px;
}
.service span {
  display: inline-block;
  margin-left: 10px;
  color: #A5C03D;
  font-weight: bold;
  font-size: 0.98rem;
}
.service:hover {
  box-shadow: 0 8px 32px 0 #23B5D31a;
  border-color: #A5C03D;
  transform: scale(1.03);
}

@media (max-width: 980px) {
  .service-teasers {
    flex-direction: column;
    gap: 16px;
  }
  .service {
    min-width: 0;
    padding: 18px 8px;
  }
}

/* ======= TESTIMONIALS ======= */
.testimonial-slider, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 14px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  background: #fff;
  padding: 20px 24px;
  border-radius: 18px;
  box-shadow: 0 4px 17px 0 rgba(32,64,96,.11);
  margin-bottom: 20px;
  min-width: 245px;
  max-width: 380px;
  border-left: 5px solid #A5C03D;
  color: #204060;
  font-size: 1.07rem;
  transition: box-shadow .14s, border-left .18s;
}
.testimonial-card:hover {
  box-shadow: 0 11px 42px 0 rgba(165,192,61,0.16);
  border-left: 5px solid #EF3D8F;
}
.testimonial-name {
  display: block;
  color: #23B5D3;
  font-weight: bold;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  margin-top: 4px;
}
@media (max-width: 768px) {
  .testimonial-slider, .testimonial-list {
    flex-direction: column;
    gap: 12px;
  }
  .testimonial-card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 18px 14px;
  }
}

/* ======== CTA / CONTACT SECTIONS ======== */
.contact-cta, .cta, .confirmation {
  background: linear-gradient(90deg, #A5C03D 30%, #23B5D3 90%);
  color: #fff;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 9px 28px 0 rgba(32,64,96,.13);
  padding: 38px 18px;
  margin-bottom: 24px;
}
.contact-cta h2, .cta h2 {
  color: #fff;
}
.contact-cta p, .cta p {
  color: #fff;
}
.contact-cta .cta-btn, .cta .cta-btn {
  background: linear-gradient(90deg, #23B5D3 70%, #EF3D8F 100%);
  color: #fff;
  margin-top: 20px;
}
@media (max-width: 768px) {
  .contact-cta, .cta, .confirmation {
    padding: 22px 6px;
    border-radius: 11px;
  }
}

/* ======= FOOTER ======= */
footer {
  background: #204060;
  color: #fff;
  padding: 54px 0 36px 0;
  width: 100%;
}
.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-col {
  flex: 1 1 110px;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.footer-col nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col nav a {
  color: #A5C03D;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  transition: color .15s;
}
.footer-col nav a:hover,
.footer-col nav a:focus {
  color: #EF3D8F;
}
.footer-col img {
  width: 44px;
}
.footer-col p {
  color: #fff;
  font-size: 0.97rem;
}
.social-icons {
  flex-direction: row;
  gap: 14px;
  align-items: center;
}
.social-icons a img {
  width: 32px;
  height: 32px;
  filter: brightness(1.1) contrast(1.15);
  transition: filter .17s, transform .13s;
}
.social-icons a:hover img {
  filter: brightness(1.2) saturate(1.7);
  transform: scale(1.1) rotate(5deg);
}
@media (max-width: 980px) {
  .footer-columns {
    flex-direction: column;
    gap: 26px;
    align-items: flex-start;
  }
  .footer-col {
    min-width: 0;
  }
}

/* ======= GENERIC LIST & TABLE STYLING ======= */
ul, ol {
  margin-bottom: 14px;
  margin-left: 27px;
}
ul li, ol li {
  font-size: 1rem;
  margin-bottom: 7px;
  line-height: 1.6;
}

/* ======= FORM ELEMENTS ======= */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  border: 2px solid #23B5D3;
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 2px 6px 0 rgba(32,64,96,0.07);
  margin-bottom: 20px;
  outline: none;
  transition: border .13s;
}
input:focus, textarea:focus, select:focus {
  border-color: #EF3D8F;
}
button, input[type="submit"] {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  background: #A5C03D;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 10px 28px;
  cursor: pointer;
  transition: background .14s, box-shadow .14s;
  box-shadow: 0 2px 13px 0 rgba(32,64,96,.11);
}
button:hover, button:focus, input[type="submit"]:focus {
  background: #EF3D8F;
  color: #fff;
}

/* ======= SPACING AND FLEXBOX PATTERNS ======= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 16px 0 rgba(32,64,96,0.08);
}
.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) {
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .content-grid {
    flex-direction: column;
    gap: 13px;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ======= COOKIES BANNER ======= */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: #204060;
  z-index: 9999;
  padding: 24px 16px 18px 16px;
  box-shadow: 0 -4px 22px 0 rgba(32,64,96,.19);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  transition: transform .26s cubic-bezier(.7,.04,.32,1.1);
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner .cookie-text {
  font-size: 1rem;
  margin-right: 20px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-btn, .cookie-btn-alt {
  font-family: 'Montserrat',Arial,sans-serif;
  font-weight: 600;
  border-radius: 19px;
  border: none;
  padding: 9px 18px;
  cursor: pointer;
  font-size: 1rem;
  transition: background .14s, color .14s, transform .10s;
}
.cookie-btn {
  background: #A5C03D;
  color: #fff;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #204060;
  color: #fff;
  transform: translateY(-2px) scale(1.06);
}
.cookie-btn-alt {
  background: #204060;
  color: #fff;
}
.cookie-btn-alt:hover, .cookie-btn-alt:focus {
  background: #EF3D8F;
}
.cookie-settings-btn {
  background: #fff;
  color: #204060;
  box-shadow: 0 2px 8px 0 rgba(35,181,211,.11);
  border: 1px solid #A5C03D;
  transition: border .11s, box-shadow .09s;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  border-color: #EF3D8F;
  background: #EF3D8F;
  color: #fff;
}
@media (max-width: 768px) {
  .cookie-banner{
    flex-direction: column;
    align-items: stretch;
    gap: 13px;
    padding: 14px 6px 12px 6px;
  }
}

.cookie-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32,64,96,0.30);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  animation: fadeInModal .21s linear;
}
@keyframes fadeInModal {
  from{ opacity: 0; } to{ opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #204060;
  border-radius: 24px;
  padding: 40px 32px 32px 32px;
  width: 95vw;
  max-width: 420px;
  box-shadow: 0 10px 48px 0 rgba(32,64,96,0.21);
  display: flex;
  flex-direction: column;
  gap: 25px;
  position: relative;
  animation: popInModal .21s cubic-bezier(.79,-0.03,.44,1.05);
}
@keyframes popInModal {
  from{ transform: scale(.90) translateY(40px); opacity:0; } to{ transform: scale(1) translateY(0); opacity:1; }
}
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #EF3D8F;
  font-size: 1.28rem;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 13px;
}
.cookie-modal label {
  font-size: 1rem;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #A5C03D;
  width: 23px;
  height: 23px;
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  top: 13px;
  right: 20px;
  font-size: 1.72rem;
  background: none;
  color: #204060;
  border: none;
  cursor: pointer;
  transition: color .13s;
}
.cookie-modal .close-cookie-modal:hover {
  color: #EF3D8F;
}

/* ======= CUSTOM MICRO-INTERACTIONS ======= */
.cta-btn, .cookie-btn, .cookie-btn-alt {
  will-change: transform;
}
.card, .feature, .service, .testimonial-card {
  will-change: transform, box-shadow;
}

/* ====== ANIMATED UNDERLINE FOR HEADINGS ====== */
h2 {
  position: relative;
}
h2:after {
  content: '';
  display: block;
  width: 68px;
  height: 4px;
  background: linear-gradient(90deg,#A5C03D 50%, #23B5D3 100%);
  border-radius: 2px;
  margin-top: 8px;
}

@media (max-width: 540px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.34rem; }
}

/* ======= GERMAN LEGAL PAGES ADJUSTMENTS ======= */
.text-section h1, .text-section h2 {
  color: #204060;
}
.text-section a {
  text-decoration: underline;
  color: #204060;
  transition: color .14s;
}
.text-section a:hover {
  color: #EF3D8F;
}

/* ======= Z-INDEX RULES ======= */
header { z-index: 100; }
.mobile-menu { z-index: 2000; }
.cookie-banner { z-index: 9999; }
.cookie-modal-overlay { z-index: 10000; }

/* ======= ENHANCEMENTS FOR VIBRANCY ======= */
.feature, .service, .card, .testimonial-card {
  border-radius: 1rem;
  box-shadow: 0 3px 13px 0 rgba(35,181,211,.10),
              0 1.5px 10px 0 rgba(239,61,143,0.07);
  background: #fff;
}

/* ======= FOCUS VISIBLE ======= */
*:focus-visible {
  outline: 2px solid #23B5D3;
  outline-offset: 4px;
}

/* ======= SCROLLBAR ENHANCEMENT (NON-CRITICAL) ======= */
::-webkit-scrollbar {
  width: 9px;
  background: #efefef;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #A5C03D 60%, #23B5D3 100%);
  border-radius: 8px;
}

/* ======= PRINT OPTIMIZATION (NON-CRITICAL) ======= */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
}
