/* ----------------------------------------------------------
   Scandinavian Clean CSS for BloomShine Rhetorik
   Author: Professional UI/CSS Engineer
   ---------------------------------------------------------- */

/* =====================
   CSS RESET & NORMALIZE
   ===================== */
html {
  box-sizing: border-box;
  font-size: 100%; /* 16px default */
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  background: #FAFBFD;
  color: #223146;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
img,
picture {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #174284;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #FFD140;
  outline-offset: 2px;
}
ul, ol {
  margin: 0 0 1.2em 1.5em;
  padding-left: 1.25em;
}
ul li, ol li {
  margin-bottom: 0.5em;
}
h1, h2, h3, h4, h5, h6 {
  color: #174284;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.18;
}
h1 {font-size: 2.5rem; margin-bottom: 20px;}
h2 {font-size: 2rem; margin-bottom: 18px;}
h3 {font-size: 1.25rem; margin-bottom: 14px;}
.subheadline { font-size: 1.1rem; color: #595959; margin-bottom: 28px;}

p:not(:last-child),
.text-section p:not(:last-child) { margin-bottom: 18px; }

/* ============================
   CONTAINERS & FLEX STRUCTURES
   ============================ */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
@media (max-width: 600px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 34px;
  }
}

.features-grid, .workshops-list, .course-snippets, .trainer-profiles-list, .blog-posts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}

/* Flex-row on desktop, column on mobile for these groups */
@media (max-width: 768px) {
  .features-grid, .workshops-list, .course-snippets, .trainer-profiles-list, .blog-posts-grid {
    flex-direction: column;
    gap: 18px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 260px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(23,66,132,0.06);
  padding: 28px 22px 24px 22px;
  transition: box-shadow 0.18s;
  border: 1px solid #ECF1F7;
  z-index: 1;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 18px rgba(23,66,132,0.11);
}

.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;
    align-items: flex-start;
    gap: 16px;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(40,30,5,0.07);
  border: 1px solid #ECF1F7;
  margin-bottom: 20px;
  color: #223146;
  min-width: 0;
}
.testimonial-card blockquote {
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  font-style: italic;
  color: #223146;
  margin: 0 16px 0 0;
  flex: 1 1 auto;
}
.testimonial-card p {
  margin: 0;
  color: #174284;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 1rem;
}

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

.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.team-intros {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Mini utility */
.mb-20 { margin-bottom: 20px; }
.mb-32 { margin-bottom: 32px; }
.mb-60 { margin-bottom: 60px; }

/* =====================
   NAVIGATION & HEADER
   ===================== */
header {
  background: #fff;
  border-bottom: 1px solid #ECF1F7;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: flex-start;
  height: 74px;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  background: none;
}
.main-nav > a {
  color: #223146;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 6px;
  transition: background 0.16s, color 0.16s;
}
.main-nav > a:hover {
  background: #ECF1F7;
  color: #174284;
}
.main-nav > a.btn-primary {
  background: #174284;
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  margin-left: auto;
  padding: 10px 22px;
  transition: background 0.2s, color 0.19s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(23,66,132,0.02);
}
.main-nav > a.btn-primary:hover,
.main-nav > a.btn-primary:focus {
  background: #223146;
  color: #FFD140;
  box-shadow: 0 4px 16px rgba(23,66,132,0.18);
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 14px;
    font-size: 0.97rem;
  }
}
@media (max-width: 900px) {
  .main-nav > a:not(:first-child):not(.btn-primary) { display: none; }
  .main-nav > a:first-child { margin-right: auto; }
}

/* ===========
   MOBILE MENU
   =========== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 21px;
  right: 30px;
  background: #ECF1F7;
  border: none;
  padding: 12px;
  border-radius: 50%;
  font-size: 1.5rem;
  color: #174284;
  z-index: 1102;
  cursor: pointer;
  box-shadow: 0 2px 7px rgba(23,66,132,0.09);
  transition: background 0.2s, color 0.18s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #FFD140;
  color: #223146;
}
@media (max-width: 900px) {
  .mobile-menu-toggle { display: block; }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 1100;
  box-shadow: 0 8px 40px rgba(17,42,132,0.19);
  transform: translateX(-110%);
  transition: transform 0.42s cubic-bezier(0.77,0,0.175,1);
  pointer-events: none;
  opacity: 0.98;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 36px 10px 0;
  background: #ECF1F7;
  border: none;
  padding: 11px 14px;
  border-radius: 50%;
  font-size: 1.35rem;
  color: #174284;
  cursor: pointer;
  z-index: 1103;
  box-shadow: 0 2px 8px rgba(23,66,132,0.11);
  transition: background 0.18s, color 0.17s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #FFD140;
  color: #223146;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
  margin-top: 24px;
  margin-left: 36px;
}
.mobile-nav a {
  color: #223146;
  font-size: 1.08rem;
  font-weight: 600;
  padding: 13px 0 13px 6px;
  min-width: 180px;
  border-radius: 7px;
  transition: background 0.15s, color 0.14s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #ECF1F7;
  color: #174284;
}
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}

/* =========================
   BUTTONS & LINKS
   ========================= */
.btn-primary, .btn-secondary {
  display: inline-block;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 12px 27px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  transition: background 0.23s, color 0.19s, box-shadow 0.16s;
  box-shadow: 0 2px 8px rgba(23,66,132,0.09);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: #174284;
  color: #fff;
  border: 1.5px solid #174284;
}
.btn-primary:hover, .btn-primary:focus {
  background: #223146;
  color: #FFD140;
  box-shadow: 0 4px 16px rgba(23,66,132,0.18);
}
.btn-secondary {
  background: #FFD140;
  color: #174284;
  border: 1.5px solid #FFD140;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #fdf6de;
  color: #223146;
}

/* =========================
   FEATURES, VALUES, CARDS
   ========================= */
.feature {
  background: #fff;
  border-radius: 12px;
  padding: 24px 22px;
  flex: 1 1 260px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  box-shadow: 0 2px 10px rgba(17,42,132,0.06);
  border: 1px solid #ECF1F7;
  transition: box-shadow 0.16s;
}
.feature img { width: 38px; height: 38px; margin-bottom: 8px; }
.feature:hover, .feature:focus-within {
  box-shadow: 0 4px 18px rgba(40,30,5,0.13);
}

.value-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(17,42,132,0.06);
  border: 1px solid #ECF1F7;
  padding: 20px 16px 16px 18px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.value-item img { width: 34px; height: 34px; margin-bottom: 7px; }

.course-preview, .workshop, .trainer-profile, .blog-post {
  background: #fff;
  border-radius: 11px;
  border: 1px solid #ECF1F7;
  box-shadow: 0 1.5px 7px rgba(23,66,132,0.07);
  padding: 22px 19px 17px 19px;
  flex: 1 1 230px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.13s;
  margin-bottom: 20px;
}
.course-preview:hover,
.workshop:hover, .trainer-profile:hover, .blog-post:hover {
  box-shadow: 0 3px 14px rgba(40,30,5,0.11);
}

.trainer-profile h3,
.course-preview h3,
.blog-post h3,
.workshop h3 {
  font-size: 1.08rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #174284;
  margin-bottom: 8px;
}

/* Awards badge in about/team */
.awards {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  color: #223146;
  margin-top: 12px;
}
.awards img { width: 26px; height: 26px; }

.founders-story {
  background: #ECF1F7;
  border-radius: 9px;
  padding: 18px 20px 14px 20px;
  color: #174284;
  font-size: 1rem;
}

.success-story {
  background: #fff;
  border-radius: 10px;
  padding: 18px 18px 12px 18px;
  box-shadow: 0 2px 10px rgba(23,66,132,0.08);
  border: 1px solid #ECF1F7;
  color: #223146;
  margin-bottom: 18px;
}

.categories {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 24px;
  font-size: 0.99rem;
  color: #174284;
}
.categories a {
  color: #174284;
  background: #ECF1F7;
  border-radius: 5px;
  padding: 4px 11px;
  margin-right: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.13s, color 0.13s;
}
.categories a:hover {
  background: #FFD140;
  color: #223146;
}

/* =======================
   TABLE STYLES (Kursvergleich)
   ======================= */
.course-comparison-table {
  width: 100%;
  margin: 24px 0 16px 0;
  overflow-x: auto;
}
.course-comparison-table table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 1rem;
  border-radius: 11px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(40,30,5,0.08);
}
.course-comparison-table thead {
  background: #ECF1F7;
}
.course-comparison-table th, .course-comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #ECF1F7;
  text-align: left;
}
.course-comparison-table th {
  color: #174284;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
}
.course-comparison-table tr:last-child td {
  border-bottom: none;
}
.course-comparison-table caption {
  font-weight: 700;
  color: #174284;
  font-size: 1.09rem;
  padding-bottom: 7px;
  text-align: left;
}

/* =====================
   CONTACT & MAP
   ===================== */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 12px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: #174284;
}
.contact-item img {
  width: 24px; height: 24px;
}
.map-embed {
  margin-top: 10px;
  border-radius: 7px;
  overflow: hidden;
  background: #ECF1F7;
  padding: 13px 16px;
}

/* =====================
   FOOTER
   ===================== */
footer {
  background: #ECF1F7;
  padding: 36px 0 0 0;
  border-top: 1px solid #ECF1F7;
  color: #223146;
  font-size: 1rem;
}
.footer-nav, .footer-contact {
  display: flex;
  flex-direction: row;
  gap: 26px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.footer-nav {
  margin-bottom: 14px;
}
.footer-nav a {
  color: #174284;
  text-decoration: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 7px 10px;
  border-radius: 6px;
  transition: background 0.13s, color 0.13s;
}
.footer-nav a:hover {
  background: #FFD140;
  color: #223146;
}
.footer-contact {
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 21px;
}
.footer-contact img { width: 38px; height: 38px; margin-top: 2px;}
.footer-contact address {
  font-style: normal;
  color: #223146;
  font-size: 0.98rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-contact address img {
  width: 18px;
  height: 18px;
  margin-right: 7px;
  vertical-align: middle;
  display: inline-block;
}

@media (max-width: 768px) {
  .footer-nav, .footer-contact {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .footer-contact img { margin-bottom: 12px; }
}

/* =============================
   TYPOGRAPHY / VISUAL HIERARCHY
   ============================= */
body, button, input, textarea, select {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
}
h1, .h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2rem;
  font-weight: 600;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
}

@media (max-width: 600px) {
  h1, .h1 { font-size: 1.7rem; }
  h2, .h2 { font-size: 1.22rem; }
}

strong, b { font-weight: 700; }
em, i { font-style: italic; }

/* =====================
   SPACING & WHITE SPACE
   ===================== */
main > section {
  margin-bottom: 60px;
  padding: 40px 0;
}
@media (max-width: 600px) {
  main > section {
    padding: 24px 0;
    margin-bottom: 34px;
  }
}

.content-wrapper:not(:last-child) {
  margin-bottom: 24px;
}

/* ===============================
   COOKIE CONSENT BANNER & MODAL
   =============================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100vw;
  background: #fff;
  border-top: 2px solid #ECF1F7;
  box-shadow: 0 -2px 22px rgba(40,30,5,0.12);
  padding: 26px 8vw 22px 8vw;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 26px;
  z-index: 2000;
  transition: bottom 0.38s;
  animation: slideInUpBanner 0.5s;
}
@keyframes slideInUpBanner {
  from { bottom: -100px; opacity: 0; }
  to   { bottom: 0; opacity: 1; }
}
.cookie-banner__text {
  flex: 1 1 auto;
  color: #223146;
  font-size: 1.01rem;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
}
.cookie-banner .btn-primary,
.cookie-banner .btn-secondary {
  font-size: 0.99rem;
  padding: 9px 20px;
}
.cookie-banner .btn-settings {
  background: #ECF1F7;
  color: #174284;
  border: none;
  border-radius: 7px;
  padding: 9px 16px;
  font-weight: 600;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  cursor: pointer;
  transition: background 0.15s;
}
.cookie-banner .btn-settings:hover,
.cookie-banner .btn-settings:focus {
  background: #FFD140;
  color: #223146;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 13px;
    padding: 20px 7vw 18px 7vw;
  }
  .cookie-banner__actions {
    flex-direction: column;
    gap: 7px;
  }
}

.cookie-modal {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 100%);
  width: 97vw;
  max-width: 410px;
  background: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -6px 32px rgba(40,30,5,0.25);
  z-index: 2100;
  display: flex;
  flex-direction: column;
  padding: 30px 22px 20px 22px;
  transition: transform 0.41s cubic-bezier(0.77,0,0.175,1);
  pointer-events: none;
}
.cookie-modal.open {
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin-bottom: 13px;
}
.cookie-modal__header h3 {
  font-size: 1.22rem;
  color: #174284;
}
.cookie-modal__close {
  background: #ECF1F7;
  border: none;
  border-radius: 50%;
  padding: 8px 12px 8px 12px;
  font-size: 1.08rem;
  color: #174284;
  cursor: pointer;
}
.cookie-modal__close:hover,
.cookie-modal__close:focus {
  background: #FFD140;
  color: #223146;
}
.cookie-modal__body {
  margin-bottom: 19px;
}
.cookie-category {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
  background: #ECF1F7;
  border-radius: 7px;
  padding: 10px 12px;
  color: #223146;
}
.cookie-category input[type=checkbox] {
  accent-color: #174284;
  width: 18px; height: 18px;
  margin-right: 6px;
}
.cookie-category--essential {
  opacity: 0.65;
  font-style: italic;
}
.cookie-modal__actions {
  display: flex;
  gap: 11px;
}
.cookie-modal__actions .btn-primary, .cookie-modal__actions .btn-secondary {
  font-size: 0.98rem;
}


/* ===============
   ANIMATIONS
   =============== */
.card, .feature, .testimonial-card, .blog-post, .workshop, .value-item, .course-preview {
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover, .feature:hover, .testimonial-card:hover, .blog-post:hover, .workshop:hover, .value-item:hover, .course-preview:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 8px 24px rgba(40,30,5,0.14);
}

.btn-primary, .btn-secondary, .btn-settings, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.18s, color 0.17s, box-shadow 0.13s;
}

/* ===============
   RESPONSIVE LAYOUT
   =============== */
@media (max-width: 500px) {
  .container { padding: 0 6px; }
  .main-nav { padding: 0 6px; height: auto; }
  .footer-contact address { font-size: 0.95rem; }
}

/* =========================
   MISC, FORMS, UTILITIES
   ========================= */
input, textarea, select {
  border: 1px solid #ECF1F7;
  border-radius: 6px;
  padding: 9px 13px;
  font-size: 1rem;
  background: #FAFBFD;
  outline: none;
  transition: border 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #174284;
  box-shadow: 0 1.5px 5px rgba(23,66,132,0.09);
}

::-webkit-input-placeholder { color: #95A0B5; }
::-moz-placeholder { color: #95A0B5; }
:-ms-input-placeholder { color: #95A0B5; }
::placeholder { color: #95A0B5; }

/* Disabled states */
[disabled], .btn-primary[disabled] {
  opacity: 0.54;
  cursor: not-allowed;
}

/* Hide visually but keep accessible (for e.g. essential cookie checkbox) */
.visually-hidden {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* =========================
   PRINT STYLES (BONUS)
   ========================= */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  main { margin: 0; }
  section { box-shadow: none !important; background: none !important; }
}
