/* 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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body { line-height: 1.5; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { vertical-align: middle; max-width: 100%; height: auto; }
table { border-collapse: collapse; border-spacing: 0; }

/* BASE TYPOGRAPHY */
:root {
  --primary: #174178;
  --secondary: #EAF3FB;
  --accent: #1e7a8c;
  --brand-accent-bright: #37A8B6;
  --fun-yellow: #FFEF7E;
  --fun-pink: #FF7CA3;
  --fun-green: #70D47B;
  --fun-orange: #FFA651;
  --white: #fff;
  --shadow-s: 0 2px 8px rgba(23,65,120,0.06);
  --shadow-m: 0 4px 24px rgba(23,65,120,0.11);
  --radius: 20px;
  --radius-pill: 48px;
}
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');
body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  color: var(--primary);
  background: var(--secondary);
  min-height: 100vh;
  font-weight: 400;
  letter-spacing: 0.01em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 900;
  letter-spacing: 0.02em;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.5rem; margin-bottom: 12px; }
p, ul, ol, li { font-size: 1rem; margin-bottom: 10px; }
strong, b { font-weight: 700; }
.text-section h3 { margin-top: 24px; }

/* PLAYFUL DYNAMIC FONTS AND COLORS */
h1, h2 {
  color: var(--brand-accent-bright);
  text-shadow: 1px 4px 0 var(--fun-pink), 2px 2px 4px var(--fun-yellow);
  line-height: 1.18;
}
h3 {
  color: var(--fun-orange);
}
a, .main-nav a, .mobile-nav a {
  font-family: inherit;
  font-weight: 600;
  color: var(--primary);
  font-size: 1rem;
  transition: color 0.22s;
}
.main-nav a:hover, .mobile-nav a:hover {
  color: var(--brand-accent-bright);
}

/* CONTAINER & SECTION LAYOUTS */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-s);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section { background: var(--secondary); }

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow-s);
  background: var(--white);
  padding: 24px 20px;
  transition: transform 0.19s cubic-bezier(.33,1.06,.9,.92), box-shadow 0.19s;
}
.card:hover {
  transform: translateY(-8px) scale(1.03) rotate(-1deg);
  box-shadow: var(--shadow-m);
  z-index: 1;
}

.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: var(--fun-yellow);
  color: #2a382d;
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow-s);
  min-width: 0;
  width: 100%;
  font-style: italic;
  border-left: 8px solid var(--brand-accent-bright);
}
.testimonial-card p {
  color: #1e262d;
  font-style: italic;
}
.testimonial-card span {
  font-style: normal;
  font-weight: 700;
}

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

.feature-grid, .feature {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-grid {
  flex-direction: row;
  justify-content: flex-start;
}
.feature {
  align-items: flex-start;
  flex-direction: column;
  background: var(--fun-green);
  border-radius: var(--radius);
  padding: 24px 18px;
  box-shadow: var(--shadow-s);
  min-width: 230px;
  flex: 1 1 230px;
  border-bottom: 5px solid var(--brand-accent-bright);
  position: relative;
  transition: box-shadow 0.18s, transform 0.18s;
}
.feature:hover {
  box-shadow: var(--shadow-m);
  transform: scale(1.04) rotate(1deg);
  z-index: 2;
}
.feature img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}
.feature h3 {
  margin-bottom: 6px;
}

/* HERO SECTION */
.hero {
  padding: 64px 0 40px 0;
  background: linear-gradient(76deg, var(--brand-accent-bright) 40%, var(--fun-yellow) 90%);
  clip-path: ellipse(95% 100% at 50% 0%);
  margin-bottom: 40px;
}
.hero .content-wrapper {
  background: transparent;
  box-shadow: none;
  align-items: flex-start;
  gap: 16px;
  padding: 0 0 0 0;
}
.hero h1 {
  font-size: 2.8rem;
  color: var(--primary);
  text-shadow: 0 6px 8px rgba(23,65,120,0.10);
  margin-bottom: 14px;
}
.hero p {
  color: var(--primary);
  margin-bottom: 16px;
  font-weight: 500;
  font-size: 1.18rem;
}

/* NAVIGATION */
header {
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 60;
  box-shadow: 0 2px 16px 0 rgba(55,168,182,0.077);
  margin-bottom: 0px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 0;
}
.main-nav img {
  height: 44px;
  margin-right: 18px;
}
.main-nav a {
  display: flex;
  align-items: center;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  transition: background 0.16s, color 0.19s;
  font-size: 1.05rem;
}
.main-nav a.cta-primary {
  background: var(--brand-accent-bright);
  color: var(--primary);
  font-weight: 900;
  border-radius: var(--radius-pill);
  margin-left: 18px;
  padding: 8px 24px;
  letter-spacing: 0.07em;
  box-shadow: 0 2px 12px 0 rgba(55,168,182,0.13);
  transition: background 0.17s, transform .14s, box-shadow .14s;
  border: 3px solid var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
}
.main-nav a.cta-primary:hover,
.cta-primary:hover {
  background: var(--fun-pink);
  color: var(--primary);
  transform: scale(1.07) rotate(-2deg);
  box-shadow: 0 4px 18px 0 rgba(255,124,163,0.24);
}

.mobile-menu-toggle {
  display: none;
  background: var(--brand-accent-bright);
  color: var(--primary);
  border-radius: var(--radius-pill);
  border: 0;
  font-size: 2.2rem;
  padding: 6px 18px;
  margin-left: auto;
  cursor: pointer;
  transition: background .16s, color .13s;
  box-shadow: var(--shadow-s);
}
.mobile-menu-toggle:focus {
  outline: 3px solid var(--fun-pink);
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: var(--fun-yellow);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 44px;
  transform: translateX(-110vw);
  transition: transform 0.3s cubic-bezier(0.49, 0.09, 0.41, 0.92);
  box-shadow: 0 2px 28px 0 rgba(23,65,120,0.16);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: var(--fun-pink);
  color: var(--primary);
  font-size: 2.2rem;
  border: none;
  border-radius: 32px;
  padding: 4px 16px;
  z-index: 1002;
  cursor: pointer;
  transition: background .13s, color .13s;
  box-shadow: 0 2px 18px 0 rgba(255,124,163,0.15);
}
.mobile-nav {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100vw;
  align-items: flex-start;
  padding-left: 32px;
}
.mobile-nav a {
  font-size: 1.25rem;
  padding: 12px 0;
  color: var(--primary);
  font-weight: 700;
  transition: color .18s, background .14s;
  border-radius: var(--radius-pill);
  min-width: 180px;
}
.mobile-nav a:hover {
  color: var(--fun-green);
  background: var(--white);
}

/* BUTTONS & CTA */
.cta-primary {
  display: inline-flex;
  background: var(--brand-accent-bright);
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-weight: 900;
  padding: 12px 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.16rem;
  border: 3px solid var(--primary);
  cursor: pointer;
  margin-top: 18px;
  box-shadow: 0 3px 16px #1e7a8c30;
  transition: background 0.13s, transform 0.13s, color .15s;
}
.cta-primary:active {
  background: var(--fun-pink);
  color: var(--primary);
  transform: scale(.98);
}
.cta-primary:focus {
  outline: 2px solid var(--fun-pink);
}

button, input[type=button], input[type=submit] {
  font-family: inherit;
}

/* TABLES (PREISE) */
table {
  background: var(--white);
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-s);
  margin: 24px 0 24px 0;
  overflow: hidden;
}
thead th {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--brand-accent-bright);
  color: var(--primary);
  font-weight: 900;
  padding: 14px 10px;
  font-size: 1.12rem;
  text-align: left;
}
tbody td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--secondary);
  color: var(--primary);
}
tbody tr:last-child td {
  border-bottom: none;
}
table th, table td { min-width: 110px; }

/* FOOTER */
footer {
  background: var(--fun-green);
  color: var(--primary);
  margin-top: 44px;
  padding: 32px 0 8px 0;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  box-shadow: 0 -2px 18px 0 rgba(23,65,120,0.053);
}
footer .container {
  gap: 16px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .96rem;
}
.footer-contact {
  font-size: .95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 12px 0 0 0;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  margin-right: 4px;
}
.footer-note {
  margin-top: 12px;
  font-size: .96rem;
  color: var(--primary);
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1000px) {
  .container { max-width: 96vw; }
  .content-wrapper { max-width: 100%; }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.42rem; }
  .content-wrapper { padding: 20px 8px; }
  .section { margin-bottom: 38px; padding: 24px 8px; }
  .feature-grid, .content-grid { flex-direction: column; gap: 18px; }
  .feature { min-width: 0; width: 100%; }
  .main-nav { flex-direction: column; gap: 10px; }
  .footer-contact { flex-direction: column; }
}
@media (max-width: 599px) {
  .hero { padding: 40px 0 22px 0; }
  .main-nav img { height: 34px; }
  .content-wrapper { padding: 10px 2px; }
  .footer-contact { font-size: .9rem; }
  .footer-note { font-size: .92rem; }
}
/* MOBILE MENUS */
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
/* Tablet/Desktop: Hide mobile menu toggles */
@media (min-width: 901px) {
  .mobile-menu-toggle, .mobile-menu {
    display: none !important;
  }
  .main-nav {
    display: flex !important;
  }
}
/* Ensure text-image-section stacks nicely on mobile */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* CONTACT (kontakt.html) */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.map-placeholder {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: var(--radius);
  background: var(--fun-green);
  box-shadow: var(--shadow-s);
  font-size: 1.05rem;
}
.map-placeholder img { width: 36px; }

/* COOKIE CONSENT BANNER */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 2001;
  background: var(--fun-pink);
  color: var(--primary);
  box-shadow: 0 -2px 24px rgba(23,65,120,0.14);
  padding: 32px 16px 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  font-size: 1.06rem;
  animation: cookie-slidein 0.8s cubic-bezier(.19,.84,.42,1.01);
}
@keyframes cookie-slidein { from { transform: translateY(200px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie-consent-banner .cookie-btn-row {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 0;
}
.cookie-btn {
  background: var(--brand-accent-bright);
  color: var(--primary);
  border: 2px solid var(--primary);
  font-weight: 800;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  margin: 0;
  font-size: 1rem;
  cursor: pointer;
  transition: background .13s, color .13s, transform .13s, box-shadow .14s;
  box-shadow: 0 3px 8px 0 #1e7a8c19;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--fun-yellow);
  color: var(--primary);
  outline: 2px solid var(--brand-accent-bright);
  transform: scale(1.04);
}
.cookie-settings {
  background: var(--fun-green);
  color: var(--primary);
  border: 2px dashed var(--primary);
}

/* COOKIE CONSENT MODAL */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(55,168,182,0.16);
  z-index: 2100;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cookie-modal-inner {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 24px;
  box-shadow: 0 8px 44px 0 rgba(23,65,120,0.23);
  min-width: 300px;
  max-width: 98vw;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: modal-pop .38s cubic-bezier(.33,.93,.71,1.3);
}
@keyframes modal-pop { from { opacity: 0; transform: translateY(80px) scale(.9); } to { opacity: 1; transform: translateY(0) scale(1); } }
.cookie-modal-inner h3 {
  margin-bottom: 10px;
  color: var(--accent);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 10px 0 16px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
}
.cookie-toggle {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--brand-accent-bright);
  border: 1px solid var(--primary);
  position: relative;
  cursor: pointer;
  transition: background .12s;
}
.cookie-toggle[data-enabled="true"] {
  background: var(--fun-green);
}
.cookie-toggle .dot {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  transition: left .14s;
}
.cookie-toggle[data-enabled="true"] .dot {
  left: 22px;
  background: var(--fun-pink);
}
.cookie-modal-close {
  background: var(--fun-pink);
  border: none;
  color: var(--primary);
  font-size: 1.18rem;
  border-radius: 24px;
  padding: 7px 18px;
  align-self: flex-end;
  cursor: pointer;
}
.cookie-modal-close:hover { background: var(--fun-yellow); color: var(--primary); }

/* UL, OL, LISTS & ICON + TEXT ROWS */
ul, ol {
  margin-bottom: 18px;
  padding-left: 20px;
}
ul li, ol li {
  margin-bottom: 8px;
  padding-left: 0;
  list-style: '⦿ ' outside;
  font-weight: 500;
}
ul li img, ol li img {
  margin-right: 9px;
  vertical-align: middle;
  width: 20px;
  height: 20px;
}

/* Animations (sections, cards, hovers, playful) */
.section, .content-wrapper, .feature, .testimonial-card, .card {
  animation: popin .5s cubic-bezier(.32,1.34,.5,1) 1;
}
@keyframes popin { from { opacity: 0; transform: translateY(32px) scale(.92); } to { opacity: 1; transform: translateY(0) scale(1); } }

.feature img, .main-nav img, .footer-contact img, .map-placeholder img, .testimonial-card:before {
  filter: drop-shadow(0 1px 1px #17417822);
  transition: filter 0.16s;
}
.feature:hover img { filter: drop-shadow(0 3px 16px var(--fun-orange)); }

/* INPUTS (If forms are present later) */
input, textarea, select {
  border: 2px solid var(--fun-green);
  border-radius: var(--radius-pill);
  padding: 10px 14px;
  margin-bottom: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  transition: border .13s;
  box-shadow: 0 2px 6px 0 rgba(112,212,123,0.10);
}
input:focus, textarea:focus, select:focus {
  border: 2px solid var(--fun-pink);
  outline: none;
}

/* Z-INDEX CONTROL */
.mobile-menu { z-index: 1001; }
.mobile-menu-close { z-index: 1004; }
.cookie-consent-banner { z-index: 2001; }
.cookie-modal { z-index: 2101; }

/* SCROLLBARS */
body {
  scrollbar-color: var(--primary) var(--secondary);
  scrollbar-width: thin;
}
body::-webkit-scrollbar {
  width: 8px;
  background: var(--secondary);
}
body::-webkit-scrollbar-thumb {
  background: var(--brand-accent-bright);
  border-radius: 8px;
}

/* MICRO-INTERACTIONS */
a, button, .cta-primary, .cookie-btn, .cookie-modal-close {
  transition: background 0.13s, color 0.13s, transform .16s, box-shadow .14s;
}
a:active, button:active {
  transform: scale(.97);
}

/* Spacing Ensurance (Critical Gaps) */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}

/* Ensure no content overlap on mobile */
@media (max-width: 768px) {
  .card-container, .content-grid, .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature {
    width: 100%;
    min-width: 0;
  }
}
