/* =========================================================
   StimmenGlanz Akademie – Modern Bold CSS (Flexbox only)
   ========================================================= */

/* --- CSS RESET & BASE 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;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #fff;
  min-height: 100vh;
  color: #1B294B;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; height: auto; }
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  border: none;
  background: none;
  outline: none;
  color: inherit;
}

/* --- FONT IMPORTS -- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;600&display=swap');

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  background: #fff;
  color: #1B294B;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -0.5px;
}
h1 { font-size: 2.8rem; margin-bottom: 24px; line-height: 1.1; }
h2 { font-size: 2.1rem; margin-bottom: 16px; line-height: 1.18; }
h3 { font-size: 1.3rem; margin-bottom: 10px; line-height: 1.25; }
h4, h5, h6 { font-size: 1.15rem; }
p, ul, li, span { font-size: 1rem; }
strong { font-weight: 700; }

/* --- COLOR VARS (with fallback) --- */
:root {
  --primary: #1B294B;
  --secondary: #F3B841;
  --accent: #FFFFFF;
  --neutral-dark: #232946;
  --neutral-light: #F8F9FB;
  --danger: #B12436;
  --shadow: 0 4px 24px rgba(27,41,75,0.12);
  --radius: 18px;
  --radius-sm: 12px;
}

/* --- UTILITIES --- */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
}
.text-section {
  max-width: 750px;
  margin: 0 auto 20px auto;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: var(--radius);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--neutral-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  min-width: 260px;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.23s cubic-bezier(.17,.67,.54,1.21), transform 0.16s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px rgba(27,41,75,0.18);
  transform: translateY(-3px) scale(1.012);
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.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;
  padding: 20px;
  margin-bottom: 24px;
  background: #fff;
  border-left: 6px solid var(--secondary);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(27,41,75,0.10);
  max-width: 550px;
  color: var(--primary);
  position: relative;
}
.testimonial-card > div {
  color: var(--secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
}

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

/* --- BRAND BOLD HERO --- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  border-radius: var(--radius-sm);
  padding: 16px 38px;
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-top: 18px;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 10px rgba(243, 184, 65, 0.13);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.18s;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--primary);
  color: var(--secondary);
  transform: translateY(-2px) scale(1.04);
}

/* --- FEATURE GRID & SERVICE LIST --- */
.feature-grid,
.service-list,
.blog-teaser-list,
.exercise-list,
.stats-grid,
.before-after-section {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 20px 0;
  justify-content: flex-start;
}

.feature-grid > div, .service-list > div, .stats-grid > div {
  background: var(--neutral-light);
  border-radius: var(--radius-sm);
  padding: 24px 18px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 340px;
  text-align: left;
  box-shadow: 0 2px 9px rgba(27,41,75,0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.17s cubic-bezier(.17,.67,.54,1.21), transform 0.13s;
}
.feature-grid > div:hover, .service-list > div:hover {
  box-shadow: 0 6px 28px rgba(27,41,75,0.16);
  transform: translateY(-2px) scale(1.01);
}
.feature-grid img, .stats-grid img {
  width: 46px;
  height: 46px;
  margin-bottom: 10px;
}
.service-list > div {
  border-left: 5px solid var(--secondary);
  margin-bottom: 12px;
}
.service-list a {
  margin-top: 10px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: underline;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color 0.17s;
}
.service-list a:hover, .service-list a:focus {
  color: var(--secondary);
}

/* --- BLOG CATEGORIES --- */
.blog-categories {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-size: 0.98rem;
}
.blog-categories span {
  font-weight: 700;
  color: var(--primary);
}
.blog-categories a {
  color: var(--secondary);
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-right: 11px;
  transition: color 0.18s;
}
.blog-categories a:hover {
  color: var(--primary);
}

/* --- HEADER & MOBILE NAVIGATION --- */
header {
  background: var(--primary);
  width: 100%;
  padding: 0;
  box-shadow: 0 2px 14px rgba(27,41,75,0.096);
  position: sticky;
  top: 0;
  z-index: 101;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 15px;
}
header img {
  height: 44px;
  width: auto;
  margin-right: 18px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-right: auto;
  margin-left: 26px;
}
.main-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.07rem;
  padding: 6px 14px;
  border-radius: 8px;
  letter-spacing: 0.02em;
  transition: background 0.19s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--secondary);
  cursor: pointer;
  padding: 6px 11px;
  border-radius: 8px;
  margin-left: 14px;
  transition: background 0.19s, color 0.19s, box-shadow 0.14s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(243,184,65,0.08);
}

/* --- MOBILE MENU OVERLAY --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: rgba(27, 41, 75, 0.97);
  z-index: 2200;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  transform: translateX(-100%);
  pointer-events: none;
  opacity: 0;
  transition: transform 0.38s cubic-bezier(.72,0,.33,1), opacity 0.23s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 20px 26px 6px 0;
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 2.25rem;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.17s, color 0.18s;
  z-index: 2211;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 30px 0 0 14vw;
  gap: 26px;
  width: 60vw;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  background: transparent;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--primary);
  background: var(--secondary);
}

/* --- FOOTER --- */
footer {
  background: var(--neutral-dark);
  color: #fff;
  padding: 40px 0;
  font-size: 1rem;
  margin-top: 52px;
}
footer .container {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-nav {
  display: flex;
  gap: 18px;
  margin: 0 46px;
}
.footer-nav a {
  color: var(--secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.07rem;
  transition: color 0.18s;
  padding-bottom: 2px;
}
.footer-nav a:hover {
  color: #fff;
  border-bottom: 2px solid var(--secondary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: .97rem;
}
footer img {
  height: 36px;
  margin-bottom: 8px;
}

/* --- MISC --- */
.map-snippet {
  background: var(--neutral-light);
  padding: 22px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(27,41,75,0.05);
  margin-top: 14px;
  max-width: 350px;
}
.contact-details p {
  margin-bottom: 8px;
}
.contact-details a {
  color: var(--secondary);
  font-weight: bold;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* --- BEFORE-AFTER SECTION --- */
.before-after-section {
  flex-direction: column;
  background: var(--neutral-light);
  border-radius: var(--radius-sm);
  padding: 24px 24px 10px 24px;
  margin-top: 32px;
  box-shadow: 0 2px 9px rgba(27,41,75,0.08);
}

/* --- RESPONSIVE DESIGN (mobile first) --- */
@media (max-width: 1200px) {
  .container {
    padding: 0 14px;
    max-width: 99vw;
  }
  .feature-grid > div, .service-list > div, .stats-grid > div {
    max-width: 95vw;
  }
}
@media (max-width: 1000px) {
  header .container {
    flex-wrap: wrap;
    min-height: 74px;
  }
  .main-nav {
    gap: 6px;
    margin-left: 12px;
  }
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .footer-nav {
    margin: 0 0 12px 0;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 28px 7px;
    margin-bottom: 38px;
  }
  .feature-grid, .service-list, .content-grid, .card-container, .stats-grid, .blog-teaser-list, .exercise-list {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid > div, .service-list > div, .stats-grid > div {
    min-width: 0;
    max-width: 98vw;
    padding: 19px 12px;
    font-size: .98rem;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .content-wrapper, .text-section {
    padding: 0 2px;
  }
  h1 { font-size: 2.0rem; }
  h2 { font-size: 1.4rem; }
  .cta-btn { padding: 13px 18px; font-size: 1rem; }
}
@media (max-width: 650px) {
  /* Header navigation replaced by burger */
  .main-nav, .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header img {
    height: 36px;
    margin-right: 8px;
  }
  footer img {
    height: 29px;
  }
  h1, h2 {
    text-align: left;
  }
}

@media (max-width: 400px) {
  .section {
    padding: 18px 0px;
    margin-bottom: 20px;
  }
  h1 { font-size: 1.10rem; }
  h2 { font-size: 1.01rem; }
}

/* --- LISTS --- */
ul, ol {
  padding-left: 24px;
  margin: 10px 0 18px 0;
}
ul li, ol li {
  margin-bottom: 8px;
  font-size: 1rem;
  position: relative;
  font-family: 'Open Sans', Arial, sans-serif;
}
ul li:before {
  content: '●';
  color: var(--secondary);
  font-size: .9em;
  position: absolute;
  left: -18px;
  top: 2px;
}

/* --- INTERACTIVE ELEMENTS & TRANSITIONS --- */
button, .cta-btn, .main-nav a, .footer-nav a, .mobile-nav a, .mobile-menu-toggle, .mobile-menu-close {
  outline: none;
  transition: box-shadow 0.17s, background 0.14s, color 0.17s, border 0.16s;
}
button:focus-visible, a:focus-visible {
  box-shadow: 0 0 0 3px var(--secondary);
}

/* --- FORM ELEMENTS (placeholder for possible future) --- */
input, textarea {
  border: 2px solid var(--primary);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 1rem;
  margin-bottom: 16px;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #fff;
}
input:focus, textarea:focus {
  border-color: var(--secondary);
  outline: none;
}

/* --- COOKIES CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0; right: 0;
  background: var(--primary);
  color: #fff;
  padding: 24px 16px 19px 16px;
  z-index: 3000;
  box-shadow: 0 -2px 14px rgba(27,41,75,0.09);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  animation: cookiebanner-in 0.52s cubic-bezier(.99,-0.04,.56,1) 1;
  font-size: 1.05rem;
  border-radius: 18px 18px 0 0;
  min-width: 260px;
}
@keyframes cookiebanner-in {
  from { opacity: 0; transform: translateY(120px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner-text {
  flex: 4 1 210px;
  margin-right: 16px;
}
.cookie-btns {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}
.cookie-btns button {
  border-radius: 22px;
  padding: 10px 23px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1rem;
  transition: background 0.18s, color 0.16s, box-shadow 0.13s;
  cursor: pointer;
}
.cookie-btn-accept {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn-accept:hover, .cookie-btn-accept:focus {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 2px 10px rgba(243,184,65,0.14);
}
.cookie-btn-reject {
  background: none;
  border: 2px solid #fff;
  color: #fff;
}
.cookie-btn-reject:hover, .cookie-btn-reject:focus {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}
.cookie-btn-settings {
  background: var(--primary);
  color: var(--secondary);
  border: 2px solid var(--secondary);
}
.cookie-btn-settings:hover, .cookie-btn-settings:focus {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--primary);
}

/* --- COOKIE MODAL --- */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(27,41,75, .82);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadein-cookiemodal 0.32s cubic-bezier(.3,1.36,.79,1);
}
@keyframes fadein-cookiemodal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: var(--primary);
  border-radius: var(--radius);
  box-shadow: 0 4px 30px rgba(27,41,75,0.17);
  width: 98vw;
  max-width: 410px;
  padding: 38px 22px 26px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modal-popin 0.32s cubic-bezier(.5,1.4,.6,1);
}
@keyframes modal-popin {
  from { opacity: 0; transform: translateY(64px) scale(0.93); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 19px;
  background: none;
  color: var(--primary);
  font-size: 1.7rem;
  border: none;
  border-radius: 7px;
  padding: 3px 8px;
  transition: background 0.13s, color 0.13s;
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--neutral-light);
  color: var(--secondary);
}
.cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 5px 0 8px 0;
}
.cookie-category span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
}
.cookie-category-toggle {
  accent-color: var(--secondary);
  width: 22px;
  height: 22px;
  vertical-align: middle;
}
.cookie-category-essential {
  color: #999;
  font-size: 0.89em;
  font-weight: 600;
}

@media (max-width: 560px) {
  .cookie-modal {
    padding: 18px 3vw 16px 3vw;
    max-width: 97vw;
  }
}
@media (max-width: 475px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 13px 4px 10px 4px;
    font-size: 0.97rem;
    gap: 8px;
    border-radius: 11px 11px 0 0;
  }
}

/* --- END OF STYLE --- */