/* ===============================
   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;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.6;
  background: #F4F8FB;
  color: #213752;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  font-size: 16px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #46A399;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #E2655E;
  text-decoration: underline;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 6px;
  font-size: 16px;
}

/* ===============================
   BRAND COLORS & FONTS
=============================== */
:root {
  --primary: #213752;
  --secondary: #46A399;
  --accent: #F4F8FB;
  /* Extra playful dynamic accent colors */
  --hot-pink: #FF62AE;
  --sun-yellow: #FFE052;
  --fun-orange: #F57D31;
  --lilac: #8357FF;
  --gray: #384763;
}
body, input, textarea, select, button {
  font-family: 'Roboto', Arial, sans-serif;
}
h1, h2, h3, h4, h5, h6, .button, .primary, nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}

/* ===============================
   TYPOGRAPHY & HEADINGS
=============================== */
h1 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
  letter-spacing: -1px;
  line-height: 1.18;
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
}
h2 {
  font-size: 2rem;
  color: var(--lilac);
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 1.25rem;
  color: var(--hot-pink);
  margin-bottom: 10px;
}
@media (max-width: 768px) {
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.1rem; }
}
p { margin-bottom: 14px; }
strong { color: var(--primary); font-weight: bold; }

/* ===============================
   CONTAINERS & LAYOUT
   Always FLEXBOX! NEVER GRID
=============================== */
.container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: 24px;
  box-shadow: 0 2px 12px 0 rgba(131,87,255,0.04);
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 36px;
    padding: 24px 6px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 24px -6px rgba(33,55,82,0.08);
  padding: 24px;
  min-width: 250px;
  flex: 1 1 260px;
  transition: transform 0.16s, box-shadow 0.16s;
}
.card:hover {
  transform: translateY(-4px) scale(1.025) rotate(-1deg);
  box-shadow: 0 12px 36px -6px rgba(255,98,174,0.12);
}

/* FLEX GRIDS */
.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: 18px;
    align-items: flex-start;
  }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  padding: 20px;
  margin-bottom: 20px;
  margin-right: 0;
  border-radius: 16px;
  box-shadow: 0 4px 18px -8px rgba(33,55,82,0.10);
  border-left: 6px solid var(--secondary);
  transition: border-color 0.18s, box-shadow 0.16s;
}
.testimonial-card:hover {
  border-left: 6px solid var(--hot-pink);
  box-shadow: 0 8px 24px -2px rgba(70,163,153,0.13);
}
.testimonial-card p {
  color: #222;
  font-size: 1.06rem;
  margin-bottom: 0;
}
.testimonial-card div {
  color: var(--gray);
  font-size: 0.98rem;
  font-style: italic;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* CUSTOM FEATURE GRID (Index page) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-start;
}
.feature-grid li {
  flex: 1 1 200px;
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 6px 20px -8px rgba(70,163,153,0.10);
  padding: 24px 18px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.2s, transform 0.18s;
  min-width: 230px;
  border: 2px solid transparent;
}
.feature-grid li:hover {
  transform: scale(1.025) rotate(1deg);
  border: 2px solid var(--sun-yellow);
  box-shadow: 0 12px 36px -8px rgba(255,224,82,0.14);
}
.feature-grid img {
  width: 44px;
  height: 44px;
}

/* Service categories (Leistungen) */
.service-categories-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.service-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 6px 24px -8px rgba(255,98,174,0.09);
  padding: 24px 18px;
  min-width: 200px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  transition: box-shadow 0.16s, transform 0.16s;
  border-left: 5px solid var(--lilac);
}
.service-item:hover {
  background: var(--sun-yellow);
  box-shadow: 0 12px 34px -7px rgba(131,87,255,0.14);
  transform: translateY(-4px) scale(1.025);
  border-left: 5px solid var(--hot-pink);
}
.service-item img {
  width: 40px; height: 40px;
}

/* ===============================
   BUTTONS AND CTAs
=============================== */
.button, .button.primary, .button.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  min-height: 44px;
  padding: 0 22px;
  font-size: 1.08rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  border-radius: 28px;
  border: none;
  cursor: pointer;
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 2px 10px -3px rgba(70,163,153,0.11);
  outline: none;
  margin: 8px 0;
  gap: 8px;
  letter-spacing: 0.02em;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.14s;
  text-decoration: none;
}
.button.primary {
  background: var(--hot-pink);
  color: #fff;
  box-shadow: 0 4px 14px -3px rgba(255,98,174,0.11);
}
.button.secondary {
  background: var(--sun-yellow);
  color: var(--primary);
  box-shadow: 0 3px 11px -4px rgba(255,224,82,0.19);
  border: 2px solid var(--primary);
}
.button:hover, .button.primary:hover {
  background: var(--lilac);
  color: #fff;
  transform: scale(1.06) rotate(-2deg);
  box-shadow: 0 5px 18px -4px rgba(33,55,82,0.12);
}
.button.secondary:hover {
  background: var(--fun-orange);
  color: #fff;
  border-color: var(--fun-orange);
}
.button:focus {
  outline: 3px dashed var(--lilac);
}

/* ===============================
   HEADER / NAVIGATION 
=============================== */
header {
  background: #fff;
  border-bottom: 4px solid var(--secondary);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 100;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  position: relative;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
header nav a {
  color: var(--primary);
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: var(--secondary);
  color: #fff;
  text-decoration: none;
  transform: scale(1.07) rotate(-3deg);
}
header img {
  height: 46px;
}

/* Hide burger and mobile nav by default */
.mobile-menu-toggle {
  display: none;
  background: var(--hot-pink);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  transition: background 0.14s, transform 0.14s;
  margin-left: 14px;
  cursor: pointer;
  z-index: 151;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--lilac);
  transform: scale(1.08) rotate(-9deg);
  outline: 3px solid var(--secondary);
}
@media (max-width: 900px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header .button.primary {
    display: none;
  }
}

/* ===============================
   MOBILE NAVIGATION MENU
=============================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(33,55,82,0.90);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  transform: translateX(-100vw);
  transition: transform 0.33s cubic-bezier(0.77,0,.18,1.1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: var(--hot-pink);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 22px 25px 0 0;
  box-shadow: 0 4px 20px -8px rgba(255,98,174,0.18);
  cursor: pointer;
  transition: background 0.16s, transform 0.14s;
  z-index: 210;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--fun-orange);
  transform: scale(1.10) rotate(4deg);
}
.mobile-nav {
  margin: 40px 0 0 0;
  width: 90vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding-left: 24px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.35rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 10px 0;
  border-radius: 12px;
  width: 100%;
  transition: background 0.18s, color 0.18s, transform 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--sun-yellow);
  color: var(--primary);
  transform: scale(1.04);
}

/* ===============================
   FOOTER
=============================== */
footer {
  background: #213752;
  color: #fff;
  padding: 36px 0 32px 0;
  box-shadow: 0 -4px 24px -8px var(--primary);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 0;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 38px;
  flex-wrap: wrap;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 200px;
}
footer nav a {
  color: #fff;
  font-size: 0.99rem;
  transition: color 0.18s;
  padding: 3px 0;
}
footer nav a:hover, footer nav a:focus {
  color: var(--sun-yellow);
}
footer .text-section {
  font-size: 1rem;
  line-height: 1.6;
  color: #F4F8FB;
}
footer .button.primary {
  margin-left: auto;
  margin-right: 0;
  margin-top: 0;
  font-size: 1.1rem;
}
@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 26px;
  }
  footer .button.primary {
    margin-left: 0;
    margin-top: 16px;
  }
}
@media (max-width: 600px) {
  footer, footer .container {
    padding-left: 8px;
    padding-right: 8px;
  }
}


/* ===============================
   TABLES (Preise)
=============================== */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin-bottom: 24px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 22px -8px rgba(70,163,153,0.18);
}
thead th {
  padding: 16px 10px;
  background: var(--secondary);
  color: #fff;
  font-size: 1.13rem;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.01em;
}
tbody td {
  padding: 12px 10px;
  border-bottom: 1px solid #eee;
  color: var(--primary);
  font-size: 1.04rem;
  background: #fff;
}
tr:last-child td {
  border-bottom: none;
}
.notes { font-size: 0.98rem; color: var(--gray); margin-bottom: 0; }

/* ===============================
   SPECIALS: Animations & Playful Touches
=============================== */
.feature-grid li, .card, .service-item, .testimonial-card, .button, nav a, .mobile-nav a {
  transition: transform 0.18s cubic-bezier(.68,-0.6,.32,1.6), box-shadow 0.2s, background 0.14s, color 0.16s;
}

.feature-grid li:hover, .service-item:hover, .card:hover, .testimonial-card:hover {
  transform: scale(1.027) rotate(-2deg);
}

h1:after, h2:after {
  content: '';
  display: block;
  width: 52px;
  height: 7px;
  background: var(--fun-orange);
  border-radius: 5px;
  margin-top: 6px;
  opacity: 0.66;
  animation: waveWiggle .9s 1 linear;
}
@keyframes waveWiggle {
  0% { transform: scaleX(1) rotate(0deg); background: var(--fun-orange); }
  20% { transform: scaleX(1.05) rotate(-2deg); background: var(--sun-yellow); }
  40% { transform: scaleX(0.89) rotate(1deg); background: var(--lilac); }
  60% { transform: scaleX(1.11) rotate(-1.6deg); background: var(--hot-pink); }
  100% { transform: scaleX(1) rotate(0deg); background: var(--fun-orange); }
}

/* ===============================
   GENERAL UTILS & SPACING
=============================== */
.text-section {
  margin-bottom: 14px;
}
.text-section ul {
  margin-bottom: 8px;
  list-style: disc inside;
}
.text-section li {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 8px;
}
ul, ol {
  margin-top: 0;
  margin-bottom: 18px;
}
li:last-child { margin-bottom: 0; }

/* ===============================
   ICONS & INLINE-ICONS
=============================== */
li img, .text-section img {
  vertical-align: middle;
  width: 25px;
  height: 25px;
  display: inline-block;
  margin-right: 10px;
}

/* ===============================
   RESPONSIVE in Flexbox Only!
=============================== */
@media (max-width: 1024px) {
  .feature-grid,
  .service-categories-grid,
  .card-container,
  .content-grid {
    gap: 16px;
  }
  .feature-grid li, .service-item, .card {
    min-width: 170px;
    padding: 20px 10px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 6px;
  }
  .feature-grid,
  .card-container,
  .service-categories-grid,
  .content-grid {
    flex-direction: column;
    flex-wrap: wrap;
    gap: 18px;
  }
  .feature-grid li, .service-item, .card {
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
  }
  .testimonial-card {
    width: 100%;
    padding: 14px 8px;
    font-size: 1rem;
  }
}
@media (max-width: 410px) {
  h1, h2 { font-size: 1.22rem; }
  .button, .button.primary, .button.secondary {
    min-width: 80px;
    font-size: 0.85rem;
    padding: 0 8px;
  }
}

/* ===============================
   COOKIE CONSENT BANNER
=============================== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff6;
  backdrop-filter: blur(6px);
  box-shadow: 0 -2px 24px 5px rgba(33,55,82,0.12);
  z-index: 9999;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 20px 24px;
  animation: slideUpIn .8s cubic-bezier(.42,1.2,.61,.94);
}
@keyframes slideUpIn {
  0% { transform: translateY(100px); opacity: 0; }
  93% { transform: translateY(-4px); opacity: 0.96; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin: 0;
  color: var(--primary);
  font-size: 1rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-banner button {
  min-width: 120px;
  min-height: 38px;
  font-size: 1rem;
  border-radius: 22px;
  border: none;
  padding: 0 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.13s, box-shadow 0.13s;
}
.cookie-banner .accept {
  background: var(--secondary);
  color: #fff;
}
.cookie-banner .accept:hover {
  background: var(--hot-pink);
}
.cookie-banner .reject {
  background: var(--hot-pink);
  color: #fff;
}
.cookie-banner .reject:hover {
  background: var(--fun-orange);
}
.cookie-banner .settings {
  background: var(--sun-yellow);
  color: var(--primary);
  border: 2px solid var(--primary);
}
.cookie-banner .settings:hover {
  background: var(--lilac);
  color: #fff;
}
@media (max-width: 620px) {
  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    padding: 16px 8px;
  }
  .cookie-banner .cookie-actions {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  .cookie-banner button {
    width: 100%;
    min-width: 0;
  }
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(33,55,82,0.68);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.3s;
}
.cookie-modal {
  background: #fff; 
  color: var(--primary);
  border-radius: 22px;
  box-shadow: 0 4px 36px 2px rgba(70,163,153,0.17);
  padding: 28px 26px;
  min-width: 320px;
  max-width: 95vw;
  transition: transform 0.18s;
  animation: popdown 0.35s cubic-bezier(.37,1.34,.28,.97);
  display: flex;
  flex-direction: column;
  gap: 22px;
  z-index: 10001;
}
@keyframes popdown {
  0% { transform: scale(1.08) translateY(-10px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  color: var(--lilac);
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-bottom: 9px;
}
.cookie-modal label {
  font-size: 1rem;
  color: var(--primary);
}
.cookie-modal .cookie-toggle {
  width: 44px;
  height: 24px;
  position: relative;
  display: inline-block;
}
.cookie-modal .cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal .slider {
  position: absolute;
  cursor: pointer;
  top: 2px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--accent);
  border-radius: 13px;
  transition: background 0.15s;
}
.cookie-modal .cookie-toggle input:checked + .slider {
  background: var(--secondary);
}
.cookie-modal .slider:before {
  position: absolute;
  content: '';
  height: 19px;
  width: 19px;
  left: 2px;
  bottom: 1.5px;
  background: var(--hot-pink);
  border-radius: 50%;
  transition: transform 0.19s;
}
.cookie-modal .cookie-toggle input:checked + .slider:before {
  transform: translateX(18px);
  background: var(--sun-yellow);
}
.cookie-modal .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 10px;
}
.cookie-modal .settings-button {
  background: var(--secondary);
  color: #fff;
  border-radius: 21px;
  border: none;
  padding: 7px 19px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.14s;
}
.cookie-modal .settings-button:hover {
  background: var(--hot-pink);
}
.cookie-modal .close-modal {
  background: var(--hot-pink);
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 4px 15px;
  margin-left: auto;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.12s;
}
.cookie-modal .close-modal:hover {
  background: var(--lilac);
}
@media (max-width: 420px) {
  .cookie-modal {
    padding: 8px 4px;
    font-size: 0.96rem;
  }
}

/* ===============================
   PLAYFUL MICRO-INTERACTIONS
=============================== */
.button:active,
.mobile-menu-toggle:active,
.mobile-menu-close:active {
  transform: scale(0.95) rotate(4deg);
}
.service-item img, .feature-grid img, .button img {
  filter: drop-shadow(0 2px 2px rgba(70,163,153,0.12));
  animation: iconPopIn 0.7s linear;
}
@keyframes iconPopIn {
  0% { transform: scale(0.7) rotate(-10deg); opacity: 0; }
  70% { transform: scale(1.1) rotate(10deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
.testimonial-card:active { box-shadow: 0 0 0 0 transparent; transform: scale(.97) rotate(0deg); }

/* ===============================
   SCROLLBAR (Webkit) – Playful style
=============================== */
body::-webkit-scrollbar { width: 12px; background: var(--accent); }
body::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 8px; }
body::-webkit-scrollbar-thumb:hover { background: var(--hot-pink); }

/* ===============================
   PRINT OPTIMIZATION
=============================== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal, .button, .mobile-menu-toggle { display: none !important; }
  .container { padding: 0 !important; }
}
