/* --- 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;
}
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F6F2EE;
  color: #274E60;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  position: relative;
  letter-spacing: 0.01em;
}
a {
  text-decoration: none;
  color: #174A77;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #A9417B;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
  background: none;
  cursor: pointer;
}

/* --- BRAND VARIABLES (fallbacks) --- */
:root {
  --color-primary: #174A77;
  --color-secondary: #D4A6D0;
  --color-accent: #F6F2EE;
  --color-dark: #274E60;
  --color-bright: #FFE178;
  --color-warn: #FF6767;
  --font-display: 'Josefin Sans', 'Comic Sans MS', 'Arial Rounded MT Bold', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-base: 10px;
  --radius-sm: 5px;
  --shadow-base: 0 4px 20px 0 rgba(48,18,72,0.09), 0 1.5px 4px 0 rgba(212,166,208,.10);
  --shadow-pop: 0 8px 36px 0 rgba(212,166,208,0.17);
  --shadow-card: 0 2px 8px 0 rgba(23,74,119,0.11);
  --border-input: 2px solid #D4A6D0;
  --transition: .22s cubic-bezier(.65,.04,.35,1.46);
}

/* ---- GENERAL CONTAINER & LAYOUT ---- */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  align-items: flex-start;
}

/* --- TYPOGRAPHY --- */
h1, .hero h1, .about h1, .confirmation h1 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
  line-height: 1.15;
}
h2 {
  font-family: var(--font-display);
  color: #A9417B;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
h3 {
  font-family: var(--font-display);
  color: #774A63;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 0.03em;
}
p, li, ul {
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--color-dark);
  line-height: 1.7;
}
.subheadline {
  color: #A9417B;
  font-size: 1.15rem;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.04em;
}
.strong, strong {
  font-weight: 700;
  color: #174A77;
}

/* --- PLAYFUL/ DYNAMIC CARD + SECTION SHAPE --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 1;
  animation: floatSection 0.45s ease both;
}
@keyframes floatSection {
  0% { opacity: 0; transform: translateY(25px); }
  80% { opacity: 0.9; }
  100% { opacity: 1; transform: translateY(0); }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-base);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 20px 20px 20px;
  transition: box-shadow var(--transition), transform var(--transition);
  min-width: 240px;
}
.card:hover {
  box-shadow: var(--shadow-pop);
  transform: translateY(-6px) scale(1.03) rotate(-1deg);
}

.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: 16px;
  padding: 20px;
  background: #FFE178;
  border-radius: var(--radius-xl);
  margin-bottom: 20px;
  box-shadow: 0 2px 12px 0 rgba(212,166,208,0.20);
  position: relative;
  font-size: 1rem;
  z-index: 1;
}
.testimonial-meta {
  font-size: 1rem;
  font-family: var(--font-display);
  color: #A9417B;
  font-weight: 600;
}
.quote {
  color: #174A77;
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- HERO & CTA STYLES --- */
.hero {
  background: linear-gradient(100deg, #FFD7EF 0%, #F6F2EE 60%, #D4A6D0 100%);
  position: relative;
  padding: 60px 0 40px 0;
  min-height: 320px;
  overflow: hidden;
}
.hero h1, .hero .subheadline {
  text-shadow: 0 3px 10px rgba(255,255,229,0.17);
}
.cta-primary, .cta-secondary {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  border-radius: var(--radius-lg);
  padding: 16px 34px;
  margin: 15px 0 0 0;
  transition: all var(--transition);
  box-shadow: 0 2px 16px 1px rgba(247,142,3,0.08);
  cursor: pointer;
  letter-spacing: 0.06em;
}
.cta-primary {
  background: #174A77;
  color: #fff;
}
.cta-primary:hover, .cta-primary:focus {
  background: #A9417B;
  transform: scale(1.06) rotate(-1deg);
}
.cta-secondary {
  background: #FFD7EF;
  color: #174A77;
  border: 2px solid #D4A6D0;
  position: relative;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #D4A6D0;
  color: #fff;
  transform: scale(1.04) rotate(1deg);
}

/* --- NAVIGATION STYLES --- */
header, footer {
  background: #fff;
  box-shadow: 0 2px 16px 0 rgba(23,74,119,0.07);
}
header nav, footer nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
header ul {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
}
header li {
  margin-bottom: 0;
}
header a {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1.01rem;
  padding: 6px 13px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
header .active, header a.active {
  background: #FFD7EF;
  color: #A9417B;
  font-weight: 700;
}
header a.cta-primary {
  background: #174A77;
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 10px 24px;
  margin-left: 10px;
  box-shadow: 0 2px 22px 0 rgba(23,74,119,0.09);
}
header a.cta-primary:hover, header a.cta-primary:focus {
  background: #A9417B;
  color: #fff;
}
header nav img {
  height: 48px;
  width: auto;
  margin-right: 22px;
  margin-bottom: 0;
  border-radius: 16px;
}

/* --- MOBILE MENU STYLES --- */
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  color: #A9417B;
  background: #FFD7EF;
  border-radius: var(--radius-xl);
  padding: 8px 20px;
  z-index: 1112;
  transition: background 0.22s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #D4A6D0;
  color: #fff;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #FFD7EF;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.81,.03,.19,.97);
  z-index: 1113;
  box-shadow: 0 0 40px 0 rgba(168,65,123,0.15);
  padding: 0;
  overflow-y: auto;
  min-width: 270px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  background: #fff;
  color: #A9417B;
  margin: 24px 26px 18px 0;
  padding: 4px 18px;
  border-radius: var(--radius-base);
  z-index: 1114;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #D4A6D0;
  color: #fff;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 30px 28px 30px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  padding: 14px 0;
  color: #174A77;
  border-bottom: 2px solid #FFE178;
  background: transparent;
  transition: background .14s, color .14s;
  border-radius: var(--radius-base);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFE178;
  color: #A9417B;
}

/* --- FOOTER STYLES --- */
footer .container {
  padding-top: 35px;
  padding-bottom: 35px;
}
footer .content-wrapper {
  flex-direction: row;
  align-items: flex-start;
  gap: 42px;
  justify-content: space-between;
}
footer nav {
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  margin-right: 45px;
}
footer nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #A9417B;
  transition: color .16s;
  padding: 4px 0;
}
footer nav a:hover, footer nav a:focus {
  color: #174A77;
}
.footer-info {
  display: flex;
  gap: 20px;
  align-items: center;
}
.footer-info img {
  height: 42px;
  width: auto;
  border-radius: 21px;
}
.footer-info p {
  font-size: 1rem;
  color: #6E6169;
  line-height: 1.5;
}

/* --- FLEX LAYOUT PATTERNS ENFORCEMENT --- */
.features .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.features .feature {
  flex: 1 1 240px;
  min-width: 225px;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 28px 18px 20px 18px;
  text-align: center;
  box-shadow: var(--shadow-base);
  transition: transform var(--transition), box-shadow var(--transition);
  margin-bottom: 20px;
}
.features .feature:hover {
  transform: scale(1.045) rotate(-2deg);
  box-shadow: var(--shadow-pop);
}
.features .feature img {
  height: 56px;
  width: auto;
  margin-bottom: 13px;
}
.features .feature h3 {
  color: #A9417B;
  font-size: 1.18rem;
  margin-bottom: 4px;
  letter-spacing: 0.03em;
}
.features .feature p {
  font-size: 1rem;
  color: #174A77;
}

/* --- TESTIMONIAL SLIDER (non-functional but animated stack) --- */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.star-rating {
  color: #FFA732;
  font-size: 1.1rem;
  margin: 15px 0 0 0;
  font-family: var(--font-display);
}

/* --- LEGAL / POLICY PAGES --- */
.legal {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-base);
  color: #174A77;
  padding: 48px 20px;
}
.legal h1 {
  font-size: 2.05rem;
}
.legal h2 {
  font-size: 1.3rem;
  color: #A9417B;
}
.legal ul li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}
.legal ul li:before {
  content: '\2605';
  color: #FFD7EF;
  position: absolute;
  left: 0;
  top: 3px;
  font-size: .92em;
}

/* --- CONFIRMATION & CTA SECTIONS --- */
.confirmation {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}
.confirmation .content-wrapper {
  align-items: center;
  justify-content: center;
  gap: 26px;
  text-align: center;
}

.cta, .cta-section {
  padding: 32px 0;
}
.cta .content-wrapper, .cta-section {
  align-items: center;
  gap: 24px;
}
.cta h2 {
  color: #A9417B;
  margin-bottom: 10px;
  text-align: center;
  font-size: 2rem;
}

/* --- RESPONSIVE & BREAKPOINTS --- */
@media (max-width: 1024px) {
  .container {
    max-width: 810px;
  }
  .features .feature {
    min-width: 200px;
  }
}
@media (max-width: 850px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  .footer-info {
    flex-direction: row;
    gap: 13px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 98vw;
  }
  .content-grid, .feature-grid, .testimonial-slider {
    flex-direction: column;
    gap: 20px;
  }
  .footer-info {
    flex-direction: column;
    gap: 7px;
    align-items: flex-start;
  }
  .section {
    padding: 24px 6px;
  }
  .hero {
    padding: 38px 0 20px 0;
  }
  header ul {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.38rem;
  }
  .section {
    padding: 13px 0px 19px 0px;
    border-radius: var(--radius-base);
  }
}

/* --- ENFORCED FLEX DIRECTION FOR TEXT-IMAGE --- */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* --- LISTS/STACKED LAYOUTS --- */
.about ul, .team ul, .features ul, .bastelsets-list ul, .workshop-list ul, .abo-details ul, .services ul, .event-list ul, .beratungspaket ul, .contact-details ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 18px 0;
  padding-left: 0;
}
.about ul li, .team ul li, .features ul li, .bastelsets-list ul li, .workshop-list ul li, .services ul li, .event-list ul li, .beratungspaket ul li {
  background: #FFE178;
  border-radius: var(--radius-sm);
  padding: 8px 13px 8px 34px;
  color: #174A77;
  position: relative;
  margin-bottom: 0;
  box-shadow: 0 1.5px 6px 0 rgba(212,166,208,0.08);
  font-size: 1.06rem;
}
.about ul li:before, .team ul li:before, .features ul li:before, .bastelsets-list ul li:before, .services ul li:before {
  content: '\273F'; /* flower like bullet */
  color: #D4A6D0;
  position: absolute;
  left: 10px;
  top: 10px;
  font-size: 1em;
}

/* --- FOCUS STYLES FOR ACCESSIBILITY --- */
a:focus, button:focus, .cta-primary:focus, .cta-secondary:focus {
  outline: 2.5px dashed #A9417B;
  outline-offset: 3px;
}

/* --- MICRO-ANIMATION / HOVER EFFECTS --- */
h1, h2, h3, .cta-primary, .cta-secondary, .features .feature {
  transition: color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.features .feature:active {
  transform: scale(0.95) rotate(1deg);
}
.testimonial-card {
  transition: box-shadow .18s, background .20s;
}
.testimonial-card:hover {
  background: #F6F2EE;
  box-shadow: 0 6px 24px 2px rgba(212,166,208,0.22);
  transform: scale(1.025);
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #FFD7EF;
  color: #174A77;
  z-index: 2222;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  padding: 23px 18px 20px 16px;
  box-shadow: 0 -2px 20px 4px rgba(168,65,123,0.09);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  font-size: 1rem;
  animation: slideUp .22s cubic-bezier(.45,.91,.48,1.04);
}
@keyframes slideUp {
  0% { transform: translateY(48px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  flex: 1 1 65%;
  color: #174A77;
}
.cookie-banner .cookie-btn {
  background: #174A77;
  color: #fff;
  border-radius: var(--radius-base);
  padding: 10px 22px;
  margin-right: 4px;
  font-family: var(--font-display);
  font-size: 1rem;
  box-shadow: 0 1px 6px rgba(23,74,119,0.10);
  transition: background var(--transition), color var(--transition);
  border: none;
  cursor: pointer;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #A9417B;
  color: #fff;
}
.cookie-banner .cookie-btn.cookie-settings {
  background: #FFD7EF;
  color: #A9417B;
  border: 2px solid #A9417B;
}
.cookie-banner .cookie-btn.cookie-settings:hover, .cookie-banner .cookie-btn.cookie-settings:focus {
  background: #D4A6D0;
  color: #fff;
}

/* --- COOKIE MODAL --- */
.cookie-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(0.98);
  background: #fff;
  color: #174A77;
  border-radius: var(--radius-lg);
  box-shadow: 0 9px 48px rgba(168,65,123,0.19);
  z-index: 3300;
  min-width: 310px;
  max-width: 95vw;
  padding: 34px 27px 30px 27px;
  animation: modalPop 0.27s cubic-bezier(0.55,.16,.3,1.15);
}
@keyframes modalPop {
  0% { opacity: 0; transform: translate(-50%,-60%) scale(.88); }
  100% { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
.cookie-modal h2 {
  color: #A9417B;
  font-size: 1.38rem;
  margin-bottom: 16px;
}
.cookie-modal ul {
  gap: 13px;
  margin-bottom: 19px;
}
.cookie-modal li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFE178;
  color: #174A77;
  border-radius: var(--radius-sm);
  padding: 7px 11px;
  font-size: 1.05rem;
  margin-bottom: 0;
  font-family: var(--font-body);
}
.cookie-toggle {
  margin-left: auto;
}
.cookie-modal .cookie-btn {
  margin-top: 15px;
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  top: 11px;
  right: 17px;
  font-size: 1.7rem;
  background: none;
  color: #A9417B;
  border: none;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: background .13s;
}
.cookie-modal .close-cookie-modal:hover {
  background: #FFD7EF;
}

@media (max-width:480px) {
  .cookie-modal { min-width: 96vw; padding: 21px 7px 18px 7px; }
  .cookie-banner { flex-direction: column; gap: 20px; }
}

/* --- CUSTOM FORM STYLING (CONTACT PAGE) --- */
.text-section, .contact-details {
  margin-bottom: 18px;
}

/* --- Z-INDEX MANAGEMENT --- */
header, .mobile-menu, .cookie-banner, .cookie-modal {
  z-index: 2222 !important;
}

/* --- ANIMATED, PLAYFUL DECORATIVE DETAILS --- */
.features .feature {
  position: relative;
  overflow: hidden;
}
.features .feature:after {
  content: '';
  position: absolute;
  right: -23px;
  top: -15px;
  width: 55px;
  height: 55px;
  background: #FFD7EF;
  border-radius: 70% 34% 60% 40%;
  z-index: 0;
  opacity: .18;
  pointer-events: none;
  animation: popShape 1.3s infinite alternate linear;
}
@keyframes popShape {
  to {
    right: -29px;
    top: -22px;
  }
}
.testimonial-card {
  position: relative;
}
.testimonial-card:before {
  content: '"';
  font-family: var(--font-display);
  font-size: 3.2rem;
  color: #D4A6D0;
  position: absolute;
  left: 9px;
  top: 2px;
  pointer-events: none;
  opacity: .16;
}
.testimonial-card:after {
  content: '';
  position: absolute;
  right: -10px;
  bottom: -17px;
  width: 35px;
  height: 35px;
  background: #FFD7EF;
  border-radius: 50% 70% 41% 54% / 48% 37% 55% 51%;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

/* --- PAGINATION & UTILS (if any future add-ons) --- */
.pagination {
  display: flex;
  gap: 9px;
  justify-content: flex-start;
  margin-top: 16px;
}
.pagination .page {
  padding: 6px 13px;
  border-radius: 12px;
  background: #FFD7EF;
  font-family: var(--font-display);
  font-weight: 600;
  color: #A9417B;
  transition: background .12s;
}
.pagination .page.active {
  background: #A9417B;
  color: #fff;
}
.pagination .page:hover {
  background: #D4A6D0;
  color: #174A77;
}

/* --- MISCELLANEOUS / SPACING ENFORCEMENT --- */
.section, .about, .features, .testimonials, .services, .cta, .bastelsets-list, .workshop-list, .team, .abo-details, .event-list, .contact-info, .beratungspaket, .confirmation, .contact {
  margin-bottom: 60px;
}
.card:not(:last-child), .testimonial-card:not(:last-child) {
  margin-bottom: 20px;
}
.content-wrapper > * {
  margin-bottom: 0 !important;
}

/* --- PLAYFUL DYNAMIC FONTS (fallback if Google Fonts not loaded) --- */
@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 400;
  src: local('Comic Sans MS'), local('Arial Rounded MT Bold');
}

/* --- END OF STYLE.CSS --- */
