/* 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}html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}body{line-height:1}ol,ul{list-style:none}a img{border:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}table{border-collapse:collapse;border-spacing:0}

:root {
  --primary: #23275A;
  --secondary: #18A999;
  --accent: #F4F8FF;
  --accent-alt: #FFD200;
  --danger: #F44336;
  --success: #38CC77;
  --grey-100: #FAFAFA;
  --grey-200: #F0F1F5;
  --grey-300: #e0e0e9;
  --grey-700: #474A57;
  --font-display: 'Montserrat', 'Arial Rounded MT', Arial, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* Embedding playful Google Fonts if available */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900|Roboto:400,500,700&display=swap');

body {
  font-family: var(--font-body);
  color: var(--primary);
  background: var(--accent);
  font-size: 16px;
  min-height: 100vh;
  line-height: 1.7;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}


h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.18;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h1 {font-size: 2.5rem; margin-bottom: 20px;}
h2 {font-size: 2rem; margin-bottom: 16px;}
h3 {font-size: 1.24rem; margin-bottom: 10px;}
h4 {font-size: 1.02rem; margin-bottom: 8px;}

@media (max-width: 768px) {
  h1 {font-size: 2rem; margin-bottom: 16px;}
  h2 {font-size: 1.5rem;}
  h3 {font-size: 1.1rem;}
}

strong {font-weight: 900; font-family: var(--font-display);}
em, i {font-style: italic;}

p, ul, ol {margin-bottom: 18px;}

/* SPACING & SECTION LAYOUTS */
section {
  margin-bottom: 60px;
  padding: 40px 20px 40px 20px;
  position: relative;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 4px 20px 0 rgba(35,39,90,0.06), 0 0px 0px #0000;
}
section:last-child {margin-bottom: 0;}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
}

/* FLEX LAYOUTS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--accent);
  border-radius: 24px;
  box-shadow: 0 4px 18px 0 rgba(24,169,153,0.10);
  overflow: hidden;
  position: relative;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s;
}
.card:hover {
  box-shadow: 0 8px 24px 0 rgba(35,39,90,0.20);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 24px 20px;
}

.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;
    align-items: flex-start;
    gap: 20px;
  }
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  margin: 16px 0 0 0;
}
.feature-grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--accent);
  border-radius: 22px;
  box-shadow: 0 2px 10px 0 rgba(24,169,153,0.14);
  padding: 28px 24px;
  min-width: 250px;
  max-width: 350px;
  flex: 1 1 250px;
  gap: 15px;
  transition: box-shadow 0.18s,transform 0.18s;
  position: relative;
  margin-bottom: 20px;
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: 0 8px 32px 0 rgba(35, 39, 90, 0.14);
  transform: translateY(-4px) scale(1.01) rotate(-1deg);
}
.feature-grid img {
  width: 48px; height:48px;margin-bottom:10px;flex-shrink:0;animation:playful-bounce 1.5s infinite cubic-bezier(.86,0,.07,1.01);}
@keyframes playful-bounce {
  0%,100%{transform:translateY(0)}
  30%{transform:translateY(-8px)}
  50%{transform:translateY(2px)}
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--accent);
  border-left: 8px solid var(--secondary);
  border-radius: 22px;
  box-shadow: 0 4px 16px 0 rgba(35,39,90,0.09);
  margin-bottom: 20px;
  padding: 20px;
  min-width: 260px;
  max-width: 700px;
  position: relative;
  transition: box-shadow .2s;
}
.testimonial-card .text-section {
  color: #23275a;
  font-size: 1rem;
}
.testimonial-card:hover{
  box-shadow:0 8px 32px rgba(24,169,153,0.18);
}
/* RICH COLOR BORDERS BY NUMBER */
.testimonial-card:nth-child(2) {border-left: 8px solid var(--accent-alt);}
.testimonial-card:nth-child(3) {border-left: 8px solid var(--primary);}

@media(max-width: 768px){
  .card-container,
  .content-grid,
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
}

/* TEXT SECTION */
.text-section {
  display:flex;
  flex-direction:column;
  gap:8px;
}
.text-section ul, .text-section ol {
  padding-left: 20px;
  margin-top: 0;
  margin-bottom: 16px;
}
.text-section li {margin-bottom:4px;}

/* BUTTONS */
.btn-primary, .btn-secondary {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 13px 28px;
  font-size: 1rem;
  border-radius: 52px;
  font-family: var(--font-display);
  font-weight: 900;
  text-decoration: none;
  transition: background 0.15s, color 0.13s, box-shadow .14s, transform .14s;
  border: 0;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(24,169,153,.10);
  margin-top: 8px;
}
.btn-primary {
  background: var(--secondary);
  color: #fff;
  letter-spacing:.02em;
}
.btn-primary:hover, .btn-primary:focus {
  background: #082959;
  color: #ffd200;
  box-shadow: 0 4px 18px 0 rgba(24,169,153, 0.17);
  transform: scale(1.03) rotate(-1.5deg);
}
.btn-secondary {
  background: var(--accent-alt);
  color: var(--primary);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #ffe666;
  color: var(--secondary);
  box-shadow: 0 4px 18px 0 rgba(255,210,0,.15);
  transform: scale(1.03) rotate(1.5deg);
}

/* LINKS */
a {
  color: var(--secondary);
  text-decoration: underline;
  transition: color .1s, background .1s;
  cursor: pointer;
}
a:hover, a:focus {color: var(--primary);background:var(--accent-alt);text-decoration:none;}

.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 8px 4px;
  border-radius: 10px;
  transition: background .12s, color .13s;
}
.main-nav a:hover,.main-nav a:focus {
  background: var(--secondary);
  color: #fff;
}

/* HEADER & LOGO */
header {
  background: var(--accent);
  box-shadow: 0 4px 16px 0 rgba(24,169,153,0.06);
  position: relative;
  padding: 0 0 8px 0;
  z-index: 10;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
header img {
  max-height: 48px;
  margin-right: 10px;
  vertical-align: middle;
  transition: filter 0.15s;
}
header img:hover {
  filter: brightness(1.15) saturate(1.3);
}

/* MOBILE NAV */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right:22px;
  top:20px;
  z-index: 40;
  background: var(--primary);
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 2rem;
  align-items:center;
  justify-content:center;
  transition: background .14s,box-shadow .14s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--secondary);
  color: #fff;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(244,248,255,0.99);
  box-shadow: 6px 0 40px 0 rgba(35,39,90,0.11);
  z-index: 60;
  transform: translateX(-100vw);
  transition: transform .36s cubic-bezier(.57,1.56,.37,.86);
  display: flex;
  flex-direction: column;
  padding: 32px 24px 12px 32px;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  background: var(--accent-alt);
  color: var(--primary);
  border: none;
  font-size: 2.2rem;
  border-radius: 10px;
  padding: 6px 16px;
  width: 42px;
  align-self: flex-end;
  cursor:pointer;
  margin-bottom: 22px;
  transition: background .12s, color .10s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--secondary);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 24px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary);
  text-decoration: none;
  padding: 15px;
  border-radius: 13px;
  transition: background .14s, color .14s;
  background: var(--accent);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: #fff;
}

@media (max-width: 1020px) {
  .main-nav {gap: 8px;}
}
@media (max-width: 900px) {
  header .container {gap: 8px;}
}
@media (max-width: 840px) {
  .main-nav {display:none;}
  .btn-primary {display:none}
  .mobile-menu-toggle {display: flex;}
}
@media (min-width: 841px) {
  .mobile-menu-toggle, .mobile-menu {display: none!important;}
}

/* FOOTER */
footer {
  background: var(--primary);
  color: #fff;
  padding: 48px 0 16px 0;
  border-radius: 32px 32px 0 0;
  box-shadow:0 -6px 18px 0 rgba(35,39,90,0.07);
}
footer .container {
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
.footer-nav {
  font-size: 1rem;
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-nav a {
  color: var(--accent-alt);
  text-decoration: underline;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .97rem;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--secondary);
  background: var(--accent-alt);
  border-radius: 7px;
}
.footer-contact {
  font-size: .97rem;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-contact img {
  height:18px;width:18px;margin-right:8px;vertical-align:middle;}
.footer-brand {
  display: flex;
  align-items: center;
  gap:12px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
}
.footer-brand img {
  height:28px;width:28px;margin-right:5px;}

/* LISTS */
ul, ol {
  margin-left: 22px;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 7px;
  padding-left: 2px;
  font-size: 1em;
  letter-spacing: 0.01em;
}

/* HERO / HEADLINE ANIMATION */
h1, h2, h3 {
  position:relative;
  z-index:2;
  animation: title-entrance .7s cubic-bezier(.8,-0.6,.38,1.4) 0.1s 1 both;
}
@keyframes title-entrance {
  0% {opacity: 0; transform: translateY(32px) scale(1.08) skewX(-6deg);}
  90% {opacity:.97; transform: translateY(-7px) scale(1.02);}
  100% {opacity: 1; transform: none;}
}

/* MICRO-INTERACTIONS */
.btn-primary, .btn-secondary, .feature-grid > div, .testimonial-card, .main-nav a, .mobile-nav a, .footer-nav a {
  transition: background .16s, color .14s, box-shadow .17s, transform .14s;
}
.feature-grid > div:hover, .testimonial-card:hover {
  transform: scale(1.03) rotate(-1.3deg);
}
.btn-primary:active, .btn-secondary:active {
  transform: scale(.97) rotate(-2deg);
}

/* PLAYFUL EFFECTS */
.feature-grid > div {
  position: relative;
}
.feature-grid > div:before {
  content: '';
  display: block;
  position: absolute;
  z-index:1;
  width: 36px;
  height: 36px;
  background: var(--accent-alt);
  border-radius: 50%;
  left: -18px;
  top: -18px;
  opacity: .14;
  pointer-events: none;
  transition:opacity .2s;
}
.feature-grid > div:hover:before {
  opacity:.22;
}

/* MOBILE RESPONSIVE */
@media (max-width: 640px) {
  section {padding: 24px 7px;}
  .feature-grid > div, .testimonial-card, .footer-brand {max-width:100vw;}
  h1{font-size:1.45rem}
  h2{font-size:1.1rem}
  .footer-nav{flex-direction:column;align-items:flex-start;gap:4px;}
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fffbe8;
  color: var(--primary);
  box-shadow: 0 -4px 24px 0 rgba(35,39,90,.16);
  padding: 30px 14px 30px 14px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: banner-slide-up .6s cubic-bezier(.71,1.69,.34,1.04);
  border-radius: 18px 18px 0 0;
}
@keyframes banner-slide-up {from{transform:translateY(100%);opacity:0;}to{transform:translateY(0);opacity:1}}
.cookie-banner .btn-primary, .cookie-banner .btn-secondary {
  min-width: 120px;
  margin: 0 10px 0 0;
  font-size: 1rem;
}
.cookie-banner .btn-secondary {
  background: var(--grey-200);
  color: var(--primary);
}
.cookie-banner .btn-secondary:hover {
  background:var(--secondary);
  color: #fff;
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(35,39,90,0.38);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  animation:modal-show .25s cubic-bezier(.7,1.5,.3,1.11);
}
@keyframes modal-show {0%{opacity:0}100%{opacity:1}}
.cookie-modal-content {
  background: #fff;
  border-radius: 24px;
  padding: 48px 32px 32px 32px;
  min-width: 310px;
  min-height: 220px;
  max-width: 96vw;
  box-shadow: 0 8px 32px 0 rgba(35,39,90,0.17);
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  position: relative;
  animation:modal-content-up .29s cubic-bezier(.54,1.47,.36,1.06); 
}
@keyframes modal-content-up {from{transform:translateY(60px);opacity:.4}to{transform:none;opacity:1}}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: var(--accent-alt);
  color: var(--primary);
  border: none;
  border-radius: 7px;
  font-size: 1.7rem;
  padding: 4px 14px;
  cursor: pointer;
  transition: background .14s;
}
.cookie-modal-close:hover {
  background: var(--secondary);
  color: #fff;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.cookie-toggle {
  width: 44px; height: 26px; border-radius: 16px; background: var(--grey-300); position: relative; cursor:pointer; transition:background .12s;}
.cookie-toggle[aria-checked="true"] {background: var(--secondary);}
.cookie-toggle-thumb {
  position: absolute;
  top: 3px; left: 4px;
  width: 20px; height: 20px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 5px 0 rgba(24,169,153,.09);transition:left .12s;}
.cookie-toggle[aria-checked="true"] .cookie-toggle-thumb {left: 20px;}
.cookie-category-label {
  font-size: 1rem;
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 700;
  margin-left: 3px;
}
.cookie-category-desc {
  font-size: .9em; color: #666; margin-left: 4px;
}

/* ANIMATE ENTRANCE FOR CARDS/TESTIMONIALS */
.feature-grid > div, .testimonial-card {
  animation:fadein-up .7s cubic-bezier(.69,2,.22,.94);
}
@keyframes fadein-up {
  0%{transform:translateY(34px) scale(.98);opacity:.22}
  50%{opacity:.81}
  100%{transform:none;opacity:1}
}

/* SCROLLBAR STYLING (modern browsers) */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--secondary) var(--grey-100);
}
::-webkit-scrollbar {width:9px;}
::-webkit-scrollbar-thumb {background: var(--secondary); border-radius:8px;}
::-webkit-scrollbar-track {background: var(--grey-100);}

/* ACCESSIBILITY ADJUSTMENTS */
:focus {
  outline: 2px solid var(--accent-alt);
  outline-offset: 2px;
}

/* SUBTLE SHADOW ON BUTTONS AND SECTIONS */
.btn-primary,
.btn-secondary,
section,
.card,
.feature-grid > div,
.testimonial-card
{ box-shadow: 0 2px 8px 0 rgba(35,39,90,0.07);}

/* BADGE/STARS FOR RATINGS IN TESTIMONIALS */
.testimonial-card span {
  font-size: 1.05em;
  font-weight: 700;
  color: var(--secondary);
  margin-top: 2px;
  display: inline-block;
}

/* FORMATTING FOR MISC */
img[alt^="Adresse"],
img[alt^="Telefon"],
img[alt^="E-Mail"],
img[alt^="Öffnungszeiten"] {
  vertical-align: middle;
  margin-right: 8px;
}
img[alt^="Adresse"] {filter: hue-rotate(120deg) brightness(1.1);}
img[alt^="Telefon"] {filter: hue-rotate(80deg) brightness(1.1);}
img[alt^="E-Mail"] {filter: hue-rotate(190deg) brightness(1.1);}

/* ENSURE ADEQUATE MARGIN BETWEEN CARDS/SECTIONS */
.card, .testimonial-card, .feature-grid > div, .section {margin-bottom: 20px;}
section {margin-bottom: 60px;}

/* FORMS & INPUTS (for future-proofing) */
input, textarea, select {
  border: 2px solid var(--grey-300);
  border-radius: 12px;
  padding: 11px 15px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: #fff;
  margin-bottom: 8px;
  transition: border-color .14s;
}
input:focus,textarea:focus,select:focus {
  border-color: var(--secondary);
  outline: none;
}

/* Hide main content behind cookie modal */
body.cookie-modal-open {overflow: hidden;}

/* END OF CSS */
