/* --- RESET/NORMALIZE & BASES --- */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #214B6B;
  background: #F8FAFC;
  line-height: 1.6;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}
a {
  color: #27AF95;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #214B6B;
  text-decoration: underline;
}
ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}
::-webkit-input-placeholder { color: #89B1CA; }
::-moz-placeholder { color: #89B1CA; }
:-ms-input-placeholder { color: #89B1CA; }
::placeholder { color: #89B1CA; }

/* --- COLOR VARIABLES (fallbacks too) --- */
:root {
  --nh-primary: #214B6B;
  --nh-secondary: #27AF95;
  --nh-accent: #F8FAFC;
  --nh-warning: #FFD36D;
  --nh-pink: #FF72AF;
  --nh-card: #fff;
  --nh-shadow: rgba(21, 83, 123, 0.07);
  --nh-gray: #F1F5F9;
}

/* --- LAYOUT CONTAINERS --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.features-grid,
.team-grid,
.services-grid,
.testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: var(--nh-card);
  border-radius: 2rem;
  box-shadow: 0 6px 32px var(--nh-shadow);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

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

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 1.2rem;
  padding: 28px 20px 24px 20px;
  min-width: 240px;
  flex: 1 1 250px;
  box-shadow: 0 2px 14px var(--nh-shadow);
  transition: transform .15s, box-shadow .15s;
}
.feature-item:hover {
  transform: translateY(-4px) scale(1.03) rotate(-1.5deg);
  box-shadow: 0 6px 24px rgba(39,175,149,.10), 0 10px 40px 0 var(--nh-pink, #FF72AF, 0.06);
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}
.team-member-card {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 4px 20px var(--nh-shadow);
  flex: 1 1 210px;
  max-width: 260px;
  padding: 20px 18px 24px 18px;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: transform .18s, box-shadow .15s;
  border: 3px solid var(--nh-pink);
}
.team-member-card:hover {
  transform: rotate(2deg) scale(1.04);
  box-shadow: 0 8px 32px #27AF9566, 0 1px 2px #FF72AF23;
}

.service-item {
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 2px 12px var(--nh-shadow);
  padding: 26px 18px 22px 18px;
  flex: 1 1 240px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  transition: box-shadow .17s, transform .17s;
}
.service-item:hover {
  box-shadow: 0 8px 32px #214B6B2a, 0 1px 4px #27AF9574;
  transform: translateY(-7px) rotate(-2deg);
}

.hero-section {
  padding: 56px 20px 44px 20px;
  background: linear-gradient(90deg, #F8FAFC 26%, #fff 80%);
  position: relative;
  overflow: hidden;
}
.hero-section:after {
  content: '';
  display: block;
  position: absolute;
  top: -80px;
  right: -120px;
  width: 280px;
  height: 300px;
  background: var(--nh-secondary);
  opacity: 0.12;
  border-radius: 67% 33% 47% 53% / 41% 74% 26% 59%;
  z-index: 0;
  pointer-events: none;
  animation: floatViz 6s infinite ease-in-out;
}
@keyframes floatViz {
  0%,100%{ transform: scale(1.04) translateY(0); }
  52%{ transform: scale(1.07) translateY(16px); }
}
.hero-section .content-wrapper {
  position: relative;
  z-index: 2;
  align-items: flex-start;
  gap: 20px;
}

.cta-section {
  background: #fff5fd;
  border-radius: 32px;
  box-shadow: 0px 8px 40px #FF72AF12;
  margin-bottom: 40px;
  padding: 44px 20px 44px 20px;
  text-align: center;
}
.cta-section .content-wrapper {
  align-items: center;
  gap: 18px;
}

.about-section, .contact-section {
  background: #FAFFF8;
  border-radius: 26px;
  box-shadow: 0 4px 36px #27AF9512;
}
.testimonials-section {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px #214B6B14;
  margin-bottom: 60px;
  padding: 40px 20px 40px 20px;
}

.testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 22px 22px 26px;
  background: #FAFEF9;
  border-radius: 1.2rem;
  min-width: 260px;
  max-width: 350px;
  box-shadow: 0 2px 12px #27AF9512;
  margin-bottom: 20px;
  position: relative;
  border-left: 8px solid var(--nh-secondary);
  transition: box-shadow .14s, border-left .18s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 30px #214B6B17;
  border-left: 8px solid var(--nh-pink);
}
.testimonial-card .testimonial {
  color: #18294b;
  font-size: 1.1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-style: italic;
}
.testimonial-card span {
  color: #4A616F;
  font-size: 1rem;
  font-weight: bold;
}

/* --- HEADER & NAVIGATION --- */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 18px #214B6B08;
  position: relative;
  z-index: 40;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.06rem;
  color: var(--nh-primary);
  padding: 4px 9px 6px 9px;
  border-radius: 7px;
  transition: background .11s, color .15s, box-shadow .13s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--nh-secondary);
  color: #fff;
  box-shadow: 0 2px 12px #27AF9532, 0 1px 2px #FF72AF28;
}
.primary-btn {
  background: var(--nh-pink);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  border: none;
  border-radius: 18px;
  padding: 15px 34px;
  box-shadow: 0 2px 14px #FF72AF16;
  cursor: pointer;
  letter-spacing: 0.01em;
  margin-left: 14px;
  transition: background .13s, box-shadow .16s, transform .13s;
  display: inline-block;
  position: relative;
}
.primary-btn:after {
  content: '';
  display: block;
  position: absolute;
  left: 13px;
  top: 17px;
  width: 7px;
  height: 7px;
  background: var(--nh-secondary);
  border-radius: 50%;
  opacity: .22;
  animation: bounceDot 2.4s infinite ease-in-out;
}
@keyframes bounceDot {
  0%,100%{ left:13px; top:17px; }
  25%{ left:18px; top:9px; }
  50%{ left:23px; top:17px; }
  75%{ left:18px; top:24px; }
}
.primary-btn:hover, .primary-btn:focus {
  background: var(--nh-secondary);
  color: #fff;
  transform: scale(1.06) rotate(-1deg);
  box-shadow: 0 5px 30px #27AF951E, 0 1px 2px #FF72AF2C;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: var(--nh-secondary);
  border: none;
  color: #fff;
  font-size: 2.2rem;
  border-radius: 0.8em;
  padding: 7px 14px;
  cursor: pointer;
  z-index: 130;
  box-shadow: 0 2px 14px var(--nh-shadow);
  transition: background .18s, color .13s, transform .16s;
}
.mobile-menu-toggle:focus {
  outline: 3px solid var(--nh-warning);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width:100vw;
  height:100vh;
  background: #fff;
  z-index: 120;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.78,.01,.35,1.1);
  flex-direction: column;
  padding-top: 34px;
  box-shadow: 0 8px 60px #214B6B26;
  will-change: transform;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0%);
}
.mobile-menu-close {
  background: #FF72AF;
  border: none;
  color: #fff;
  font-size: 2rem;
  border-radius: 12px;
  align-self: flex-end;
  margin-right: 23px;
  margin-bottom: 8px;
  cursor: pointer;
  box-shadow: 0 1px 6px #FF72AF2a;
  transition: background .16s;
}
.mobile-menu-close:focus{
  outline: 3px solid var(--nh-warning);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 19px;
  width: 100%;
  padding: 24px 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.16rem;
  font-weight: 700;
  color: var(--nh-primary);
  background: #F8FAFC;
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 4px;
  width: 90%;
  transition: background .13s, color .12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--nh-secondary);
  color: #fff;
}

/* --- FOOTER --- */
footer {
  background: #fff;
  border-top: 3px solid var(--nh-secondary);
  padding: 0;
}
footer section {
  padding: 44px 0 20px 0;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  justify-content: space-between;
}
.footer-nav, .footer-legal-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-nav a, .footer-legal-nav a {
  color: var(--nh-secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  transition: color .15s;
}
.footer-nav a:hover, .footer-legal-nav a:hover {
  color: var(--nh-pink);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.98rem;
  color: #214B6B;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 5px;
}
.footer-social {
  display: flex;
  gap: 22px;
  align-items: center;
}
.footer-social a img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 2px 8px #27AF9520;
  background: #F8FAFC;
  transition: background .16s, box-shadow .16s, transform .17s;
}
.footer-social a img:hover {
  background: #FF72AF22;
  transform: scale(1.08) rotate(-7deg);
  box-shadow: 0 4px 18px #FF72AF22;
}
.copyright {
  width: 100%;
  font-size: 0.93rem;
  color: #577497;
  margin-top: 8px;
  text-align: right;
}

/* --- TYPOGRAPHY & HEADING STYLES --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  color: var(--nh-primary);
  line-height: 1.14;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 2.24rem;
  margin-bottom: 10px;
  color: var(--nh-secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  text-shadow: 0 2px 12px #27AF9512;
}
h2 {
  font-size: 1.68rem;
  margin-bottom: 7px;
  color: var(--nh-primary);
}
h3 {
  font-size: 1.22rem;
  color: var(--nh-pink);
}
h4 {
  font-size: 1.09rem;
  color: #27AF95;
}
.section h1, .section h2, .section h3 {
  margin-bottom: 8px;
}
p {
  font-size: 1.04rem;
  margin-bottom: 8px;
  color: #1D3652;
}

ul li, ol li {
  font-size: 1.01rem;
  margin-bottom: 7px;
  line-height: 1.44;
  color: #295473;
}
ul {
  list-style-type: circle;
}

/* --- CONTACT & SPECIAL BLOCKS --- */
.contact-details-block {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  align-items: flex-start;
  margin-top: 6px;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 220px;
}
.cta-contact {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
  min-width: 220px;
}
.cta-contact .primary-btn {
  margin-left: 0;
}

/* --- TEXT SECTION (Impressum, DSGVO, Cookie, Thank You etc.) --- */
.text-section {
  background: #FFF3F4;
  border-radius: 26px;
  box-shadow: 0 3px 30px #FF72AF12;
  margin-bottom: 44px;
  padding: 44px 20px;
}
.text-section .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}

/* --- COOKIE BANNER & COOKIE MODAL --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -2px 20px #214B6B30;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 10px 24px 10px;
  gap: 24px;
  flex-wrap: wrap;
  animation: bannerFadeIn 0.36s cubic-bezier(0.9,0.04,0.25,1.13);
}
@keyframes bannerFadeIn { 0%{ opacity: 0; transform: translateY(30px);} 100%{ opacity:1; transform: none;} }
.cookie-banner p {
  color: #214B6B;
  font-size: 1.02rem;
  margin-bottom:0;
}
.cookie-banner .cookie-btn {
  background: var(--nh-secondary);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  margin-left: 11px;
  padding: 11px 24px;
  margin-right: 6px;
  transition: background .14s, color .17s, transform .13s;
  cursor: pointer;
}
.cookie-banner .cookie-btn.accept {
  background: #27AF95;
}
.cookie-banner .cookie-btn.reject {
  background: #FFD36D;
  color: #214B6B;
}
.cookie-banner .cookie-btn.settings {
  background: #FF72AF;
}
.cookie-banner .cookie-btn:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.cookie-modal-backdrop {
  display: none;
  position: fixed;
  top:0; left:0; width:100vw; height:100vh;
  background: #214B6B80;
  z-index: 320;
  animation: modalBackdropIn .32s;
}
@keyframes modalBackdropIn { 0%{ opacity:0; } 100%{ opacity:1; } }
.cookie-modal {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(1.08);
  background: #fff;
  border-radius: 1.2em;
  box-shadow: 0 6px 50px #FF72AF22;
  z-index: 350;
  min-width: 310px;
  max-width: 90vw;
  padding: 40px 36px 28px 36px;
  flex-direction: column;
  gap: 20px;
  animation: cookieModalPop .39s cubic-bezier(.66,.01,.32,1.03);
}
@keyframes cookieModalPop { 0%{ transform: translate(-50%,-50%) scale(1.24); opacity:0; } 100%{ opacity:1; transform: translate(-50%,-50%) scale(1.08); } }
.cookie-modal.open, .cookie-modal-backdrop.open { display: flex; }
.cookie-modal h3 {
  color: var(--nh-primary);
  margin-bottom:10px;
  font-size: 1.18rem;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
  font-size: 1.05rem;
}
.cookie-modal .cookie-toggle {
  width: 40px;
  height: 24px;
  border-radius: 16px;
  background: #F1F5F9;
  position: relative;
  margin-left: 10px;
  cursor: pointer;
  border: 1.7px solid #D1D9E3;
  transition: background .13s, border .11s;
}
.cookie-modal .cookie-toggle.on {
  background: #27AF95;
  border-color: #27AF95;
}
.cookie-modal .cookie-toggle.off {
  background: #F8FAFC;
  border-color: #D1D9E3;
}
.cookie-modal .cookie-toggle .toggle-dot {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: left .22s cubic-bezier(.52,.07,.45,1);
  box-shadow: 0 1px 6px #214B6B13;
}
.cookie-modal .cookie-toggle.on .toggle-dot {
  left: 19px;
}
.cookie-modal .cookie-toggle[aria-disabled=true],
.cookie-modal .cookie-toggle[disabled] {
  pointer-events: none;
  opacity:.42;
}
.cookie-modal .modal-btns {
  display: flex;
  gap: 18px;
  margin-top: 20px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn.save {
  background: #27AF95;
}
.cookie-modal .cookie-btn.cancel {
  background: #FF72AF;
}
.cookie-modal .cookie-btn {
  border: none;
  color: #fff;
  border-radius: 10px;
  padding: 10px 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px #27AF9530;
  transition: background .15s, box-shadow .12s;
}
.cookie-modal .cookie-btn:hover{
  filter: brightness(1.12);
  box-shadow: 0 5px 22px #27AF9512;
}

/* --- RESPONSIVE DESIGN (mobile first) --- */
@media (max-width: 820px) {
  .container { max-width: 98vw; }
  .features-grid, .services-grid, .team-grid, .testimonials-grid { gap: 17px; }
  .section { padding: 30px 4vw; }
  .about-section, .contact-section, .text-section { padding: 27px 8vw; }
  header .container { flex-wrap: wrap; gap: 10px; }
}
@media (max-width: 768px) {
  .main-nav, .primary-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  header .container {
    gap: 10px;
    justify-content: space-between;
    flex-wrap: nowrap;
  }
  .section {
    margin-bottom: 34px;
    padding: 18px 8px;
  }
  .features-grid, .services-grid, .team-grid, .testimonials-grid {
    flex-direction: column;
    gap: 17px;
    align-items: stretch;
  }
  .feature-item, .service-item, .testimonial-card, .team-member-card {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  .about-section, .contact-section, .text-section {
    padding: 18px 5vw;
    border-radius: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  .cta-section {
    padding: 24px 7px;
    margin-bottom: 24px;
    border-radius: 18px;
  }
  .hero-section {
    padding: 31px 8px 18px 8px;
    border-radius: 0 0 18px 18px;
  }
  .testimonials-section {
    padding: 16px 6px;
    margin-bottom: 34px;
    border-radius: 10px;
  }
  .footer-social a img { width: 29px; height: 29px; }
  .footer-contact p { font-size: 0.94rem; }
  footer section {
    padding: 22px 0 11px 0;
  }
  .footer-nav, .footer-legal-nav, .footer-contact {
    gap: 6px;
  }
  .copyright { text-align:center; margin-top:11px; }
  .contact-details-block { flex-direction: column; gap: 17px; }
}
@media (max-width: 520px) {
  h1 { font-size: 1.39rem; }
  h2 { font-size: 1.12rem; }
  h3 { font-size: 1.01rem; }
  .section, .about-section, .contact-section, .cta-section { border-radius: 12px; }
  .footer-social { gap:13px; }
  .container { padding: 0 4px; }
}

/* --- MICRO-INTERACTIONS, DECORATIVE FLOATS, FUN PLAYFUL TOUCHES --- */
.feature-item img, .service-item img, .team-member-card img {
  filter: drop-shadow(0 2px 12px #27AF9534);
  width: 48px;
  height: 48px;
  margin-bottom: 0.5em;
  animation: popIcon 2.6s infinite cubic-bezier(.75,.01,.25,1);
}
@keyframes popIcon {
  0%,100% { transform: scale(1) rotate(-4deg);} 
  20% { transform: scale(1.14) rotate(6deg);} 
  60% { transform: scale(1.08) rotate(-8deg);} 
}
.section, .about-section, .contact-section, .cta-section, .testimonials-section, .text-section {
  transition: box-shadow .18s, border-radius .13s;
}
.section:hover, .about-section:hover, .contact-section:hover, .cta-section:hover, .testimonials-section:hover, .text-section:hover {
  box-shadow: 0 9px 35px #27AF952B, 0 1px 4px #FF72AF1B;
}

/* --- FOCUS STYLES --- */
:focus {
  outline: 2px solid var(--nh-secondary);
  outline-offset: 3px;
}

/* --- PRINT --- */
@media print { 
  .mobile-menu-toggle, .mobile-menu, .cookie-banner, .cookie-modal, .cookie-modal-backdrop { display:none !important; }
  header, footer { box-shadow:none !important; }
}
