/* 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.4; min-height: 100vh; background: #F5F5F5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: disc inside; margin-left: 1.2em; }
a { color: #15395B; text-decoration: none; transition: color 0.2s; }
a:focus { outline: 2px dashed #EF9F41; outline-offset: 2px; }
button, a.cta-btn { cursor: pointer; border: none; background: none; font-family: inherit; outline: none; }

/* VARIABLES & COLOR SYSTEM */
:root {
  --primary: #15395B;
  --secondary: #F5F5F5;
  --accent: #EF9F41;
  --white: #fff;
  --black: #12243A;
  --gray: #E5E6EA;
  --card-bg: #fff;
  --text: #1B263B;
}

/* TYPOGRAPHY */
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--secondary);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: var(--primary);
  font-weight: bold;
  margin-bottom: 18px;
  line-height: 1.13;
  letter-spacing: 0.02em;
}
h1 { font-size: 2.4rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.3rem; margin-bottom: 16px; }
.subheadline, .content-wrapper > p.subheadline {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.18rem;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
p, ul, ol {
  font-size: 1.07rem;
  margin-bottom: 18px;
  line-height: 1.6;
}
strong { color: var(--primary); font-weight: bold; }

/* CONTAINER & SECTIONS */
.container {
  width: 100%;
  max-width: 1160px;
  padding: 0 24px;
  margin: 0 auto;
}
section {
  width: 100%;
  background: transparent;
  border-radius: 12px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* FLEXBOX LAYOUTS */
.feature-grid, .service-list, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--card-bg);
  border-radius: 18px;
  padding: 28px 26px;
  box-shadow: 0 3px 10px 0 rgba(239,159,65,.15), 0 0.5px 2px 0 rgba(21,57,91,0.04);
  transition: box-shadow 0.22s, transform 0.22s;
  min-width: 260px;
  max-width: 330px;
  flex: 1 1 280px;
}
.feature-item img {
  height: 46px; width: 46px;
}
.feature-item:hover, .service-card:hover {
  box-shadow: 0 8px 32px 0 rgba(239,159,65,.28),0 1.5px 7px 0 rgba(21,57,91,0.10);
  transform: translateY(-4px) scale(1.02);
  z-index: 1;
}
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.service-card {
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 3px 14px 0 rgba(21,57,91,0.11);
  padding: 28px 26px 24px 26px;
  width: 100%;
  max-width: 348px;
  min-width: 270px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-bottom: 20px;
  gap: 10px;
  transition: box-shadow 0.22s, transform 0.22s;
}
.service-card h3 {
  font-size: 1.22rem;
  margin-bottom: 12px;
}
.price {
  font-size: 1.15rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0;
  margin-top: 10px;
}

/* TESTIMONIALS */
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  background: var(--secondary);
  border-radius: 16px;
  padding: 20px 24px;
  min-width: 240px;
  max-width: 350px;
  box-shadow: 0 2px 10px 0 rgba(21,57,91,0.08), 0 0.5px 2px 0 rgba(239,159,65, 0.07);
  border-left: 5px solid var(--accent);
  color: var(--black);
  font-size: 1rem;
  margin-bottom: 20px;
}
.testimonial-card p {
  color: var(--black);
  font-size: 1.07rem;
}
.testimonial-author {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-size: 1.02rem;
  font-weight: bold;
}

/* CARDS & CONTAINERS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  background: var(--white);
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 1.5px 8px 0 rgba(21,57,91,0.09);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 20px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* BUTTONS */
.cta-btn {
  display: inline-block;
  padding: 14px 38px;
  background: linear-gradient(90deg, var(--accent) 70%, #FFD8A8 100%);
  color: var(--primary);
  border-radius: 30px;
  font-size: 1.09rem;
  font-weight: 700;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  letter-spacing: 0.05em;
  margin-top: 6px;
  margin-bottom: 6px;
  box-shadow: 0 2px 10px rgba(239,159,65,0.14);
  transition: background 0.22s, color 0.19s, box-shadow 0.22s, transform 0.18s;
  border: none;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  color: var(--white);
  background: var(--primary);
  box-shadow: 0 4px 18px rgba(239,159,65,0.24);
  transform: scale(1.04);
}

/* HEADER + NAV */
header {
  width: 100%;
  background: var(--white);
  border-bottom: 2px solid var(--gray);
  position: sticky;
  top: 0;
  z-index: 103;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.main-nav {
  display: flex;
  gap: 21px;
}
.main-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.02rem;
  color: var(--primary);
  padding: 7px 12px;
  border-radius: 8px;
  transition: background 0.16s, color 0.16s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--accent);
  color: var(--white);
}
header img[alt="Beam & Bloom Akademie"] {
  height: 46px;
}

/* HAMBURGER MENU MOBILE */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: var(--primary);
  font-size: 2.1rem;
  line-height: 1;
  height: 46px;
  width: 46px;
  border-radius: 50%;
  box-shadow: 0 1.5px 10px rgba(239,159,65,0.14);
  border: none;
  margin-left: 16px;
  align-items: center;
  justify-content: center;
  z-index: 200;
  transition: background 0.13s, color 0.13s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--primary);
  color: var(--white);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(21,57,91, 0.96);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(0.87, 0.01, 0.5, 1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  background: transparent;
  color: var(--accent);
  font-size: 2.3rem;
  border: none;
  margin: 22px 0 0 22px;
  cursor: pointer;
  align-self: flex-start;
  z-index: 300;
  transition: color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { color: #FFD8A8; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 19px;
  margin-top: 36px;
  margin-left: 38px;
}
.mobile-nav a {
  color: var(--white);
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.25rem;
  padding: 11px 0;
  transition: color 0.13s;
  border-radius: 7px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: var(--primary);
}

/* FOOTER */
footer {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  padding: 48px 0 26px 0;
  margin-top: 30px;
  border-radius: 24px 24px 0 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 12px;
}
.footer-menu a {
  color: var(--white);
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  position: relative;
}
.footer-menu a:after {
  content: '';
  display: block;
  height: 2px;
  background: var(--accent);
  width: 0;
  transition: width 0.18s;
}
.footer-menu a:hover:after, .footer-menu a:focus:after {
  width: 70%;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--white);
  font-size: 0.99rem;
  margin-bottom: 9px;
}
.contact-info a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 500;
}
.social-links {
  display: flex;
  gap: 18px;
}
.social-links img {
  height: 38px;
  width: auto;
  border-radius: 7px;
  box-shadow: 0 1px 5px rgba(239,159,65,0.09);
  background: var(--white);
  padding: 6px;
}

/* MAP & DECORATIVE ELEMENTS */
.address-map {
  margin-top: 10px;
  border-radius: 16px;
  box-shadow: 0 1.5px 10px 0 rgba(21,57,91,0.12);
  background: var(--white);
  padding: 17px 0 0 0;
  display: flex;
  align-items: center;
  gap: 11px;
}
.address-map img {
  width: 38px; height: 38px;
  border-radius: 6px;
}

/* LINK STYLES */
a {
  transition: color 0.16s;
}
a:hover, a:focus {
  color: var(--accent);
}
@media (hover: hover) {
  .cta-btn:hover, .main-nav a:hover, .footer-menu a:hover {
      filter: brightness(0.95) drop-shadow(0 0 3px #EF9F41);
  }
}

/* COOKIES CONSENT BANNER + MODAL */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--primary);
  color: var(--white);
  padding: 21px 16px 18px 16px;
  z-index: 5000;
  box-shadow: 0 -4px 24px rgba(21,57,91,0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 1.01rem;
  animation: cookieDrop 0.5s cubic-bezier(.09,.63,.58,1.44);
}
@keyframes cookieDrop {
  from { transform: translateY(100%); opacity:0; }
  to   { transform: translateY(0); opacity:1; }
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-btn, .cookie-banner .cookie-buttons button {
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 20px;
  padding: 9px 22px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  transition: background 0.14s, color 0.14s;
  margin-right: 3px;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #ffd8a8;
  color: var(--primary);
}
.cookie-btn.reject {
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--accent);
  color: var(--white);
}
.cookie-btn.settings {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--accent);
  color: var(--white);
}
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: rgba(21,57,91, 0.77);
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.19s;
}
.cookie-modal {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 4px 40px rgba(21,57,91,0.16);
  padding: 34px 29px 23px 29px;
  min-width: 330px;
  max-width: 95vw;
  color: var(--black);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: popIn 0.34s cubic-bezier(0.5,1.59,0.5,1);
}
@keyframes popIn {
  0% { transform: scale(0.86); opacity:0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.14rem;
  color: var(--primary);
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 11px;
}
.cookie-category label {
  font-size: 1rem;
  color: var(--primary);
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--accent);
  width: 19px;
  height: 19px;
}
.cookie-modal .cookie-btn {
  margin-top: 8px;
}
.cookie-modal .cookie-btn:last-child {
  margin-top: 0;
}
.cookie-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 2rem;
  cursor: pointer;
  z-index: 4;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--primary);
}

/* MEDIA QUERIES (RESPONSIVE) */
@media (max-width: 1024px) {
  .container { max-width: 900px; padding: 0 15px; }
  .feature-item, .service-card, .testimonial-card {
    min-width: 210px;
    max-width: 100%;
  }
}
@media (max-width: 900px) {
  .feature-grid, .service-list, .testimonial-list {
    gap: 16px;
  }
  .feature-item {
    padding: 22px 15px;
  }
  .service-card {
    padding: 21px 16px 18px 16px;
  }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .container {
    padding: 0 11px;
    min-width: 0;
  }
  .feature-grid,.service-list,.testimonial-list,.card-container, .content-grid {
    flex-direction: column;
    gap: 17px;
    align-items: stretch;
  }
  .feature-item, .service-card, .testimonial-card {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
  header .container {
    flex-wrap: wrap;
    gap: 8px;
  }
  .text-image-section, .content-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  .social-links { gap: 12px; }
  .footer-menu { gap: 11px; }
  .address-map img { width: 28px; height: 28px; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.12rem; }
}
@media (max-width: 480px) {
  .section { padding: 27px 6px; }
  .container { padding: 0 5px; }
  .feature-item, .service-card, .testimonial-card { padding: 13px 8px; }
  .cookie-modal { padding: 18px 5px 13px 5px; min-width: 0; }
  .cookie-banner { font-size: 0.96rem; padding: 13px 5px 11px 5px; gap: 9px; }
}
/* CREATIVE/ARTISTIC ACCENTS */
section {
  position: relative;
}
section:before {
  content: '';
  display: block;
  position: absolute;
  left: -40px; top: -40px;
  width: 95px; height: 95px;
  background: rgba(239,159,65,0.16);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
section:after {
  content:'';
  display: block;
  position: absolute;
  right: -60px; bottom: -40px;
  width: 85px; height: 85px;
  background: rgba(21,57,91,0.08);
  border-radius: 36% 64% 56% 44% / 68% 36% 64% 32%;
  z-index: 0;
  pointer-events: none;
}
/* Only decorate in first section and key areas for visual accent */
section:not(:first-child):before, section:not(:first-child):after { display: none; }

/* Stylish List Bullets for Artistic Feel */
ul, ol {
  list-style-type: disc;
  padding-left: 1.2em;
}
ul li, ol li {
  margin-bottom: 8px;
  position: relative;
}
ul li::marker {
  color: var(--accent);
  font-size: 1.08em;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* Artistic Font Accents */
h1, h2, .cta-btn, .subheadline {
  font-family: 'Montserrat', cursive, Arial, sans-serif;
}

/* Micro-interactions */
.feature-item, .service-card, .testimonial-card, .cta-btn {
  will-change: transform, box-shadow;
}

/* Misc */
::-webkit-input-placeholder { color: #bbb; }
::-moz-placeholder { color: #bbb; }
:-ms-input-placeholder { color: #bbb; }
::placeholder { color: #bbb; }

/* Utility */
.mt-1 { margin-top: 8px; } .mb-1 { margin-bottom: 8px; }
.mt-2 { margin-top: 16px; } .mb-2 { margin-bottom: 16px; }

/* Hide scrollbars for mobile menu overlay */
.mobile-menu { overflow-y: auto; }

/* Ensure minimum spacing between any direct-flex container children */
.feature-grid > *, .service-list > *, .testimonial-list > *, .content-grid > *, .card-container > * {
  margin-bottom: 20px;
}

/* Z-index for overlay elements */
.mobile-menu, .cookie-modal-overlay { z-index: 6000; }

/* Accessibility: Focus Highlights */
.cta-btn:focus, .cookie-btn:focus, .mobile-menu-close:focus, .mobile-nav a:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
