/* RESET & BASE STYLES (normalize + modern standard) */
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;
}

/* Remove default list & quote styles, normalize headings */
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after, q:before, q:after { content: ''; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; border: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  background: linear-gradient(135deg, #FAFAFA 0%, #E7EEF5 100%);
  color: #16405B;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
}

/* TYPOGRAPHY SCALE & MODERN FONTS */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.4rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 22px;
  color: #16405B;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 18px;
  line-height: 1.15;
  color: #16405B;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.275rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #16405B;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #16405B;
}
.subheadline {
  font-size: 1.2rem;
  color: #28516E;
  margin-bottom: 22px;
}
p, ul, ol, address {
  font-size: 1rem;
  margin-bottom: 18px;
  color: #223B4E;
}
strong, b {
  font-weight: 700;
  color: #16405B;
}
small {
  font-size: 0.93rem;
  color: #486079;
}

/* COLOR VARIABLES */
:root {
  --color-primary: #16405B;
  --color-secondary: #FAFAFA;
  --color-accent: #F39237;
  --color-background-gradient: linear-gradient(135deg, #E0EAFC 0%, #FAFAFA 100%);
  --color-shadow: rgba(22,64,91,0.08);
  --color-testimonial-bg: #F6F9FB;
  --color-footer-bg: #1B2C40;
  --color-footer-link: #F4F4F4;
}

/* GENERAL CONTAINER LAYOUT */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.content-wrapper.call-to-action {
  background: linear-gradient(90deg, #E0EAFC 0%, #F39237 100%);
  border-radius: 20px;
  padding: 36px 24px;
  align-items: center;
  text-align: center;
  box-shadow: 0 8px 32px var(--color-shadow);
  margin-bottom: 20px;
}

/* FLEX UTILITIES */
.card-container, .feature-grid, .course-cards, .footer-columns, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.content-grid {
  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;
  background: var(--color-testimonial-bg);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 12px var(--color-shadow);
  margin-bottom: 20px;
  color: #143147;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* HEADER & MAIN NAVIGATION */
header {
  background: #FAFAFA;
  box-shadow: 0 4px 16px var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: 999;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}
header img[alt="StoryGlanz Akademie"] {
  height: 44px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #16405B;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  position: relative;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--color-accent);
  color: #FFF;
}
.button-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  background: linear-gradient(90deg, #F39237 0%, #F7CA55 100%);
  color: #16405B;
  border-radius: 22px;
  padding: 10px 30px;
  border: none;
  box-shadow: 0 3px 14px var(--color-shadow);
  cursor: pointer;
  transition: background 0.18s, color 0.15s, transform 0.15s, box-shadow 0.15s;
  margin-left: 18px;
  display: inline-block;
}
.button-primary:hover,
.button-primary:focus {
  background: linear-gradient(90deg, #e57420 0%, #FFD280 100%);
  color: #16405B;
  transform: translateY(-2px) scale(1.045);
  box-shadow: 0 6px 24px var(--color-shadow);
}

/* MOBILE BURGER MENU */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  cursor: pointer;
  display: none;
  padding: 8px 12px;
  z-index: 1002;
  border-radius: 6px;
  transition: background 0.13s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #E7EEF5;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(22,64,91, 0.95);
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.65,.02,.35,.99);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100vw;
  height: 100vh;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 22px 0 0;
  font-size: 2.1rem;
  background: none;
  border: none;
  color: #FFF;
  cursor: pointer;
  transition: color 0.17s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  justify-content: flex-start;
  width: 100%;
  padding: 60px 32px 0 32px;
}
.mobile-nav a {
  color: #FFF;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 12px 0;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  display: block;
}
.mobile-nav a:active,
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: var(--color-accent);
  color: #16405B;
}

/* -------- HERO HEADERS & BUTTONS ------- */
section:first-child {
  padding-top: 52px;
  padding-bottom: 60px;
}
.content-wrapper > h1,
.content-wrapper > h2 {
  margin-bottom: 8px;
}

/* FEATURE/CARD GRID EXTRAS */
.feature-grid {
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.feature-grid li {
  background: #fff;
  border-radius: 18px;
  padding: 26px 20px 22px 20px;
  min-width: 220px;
  max-width: 270px;
  box-shadow: 0 2px 16px var(--color-shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.14s, transform 0.13s;
  margin-bottom: 20px;
  border: 1px solid #E7EEF5;
}
.feature-grid li:hover { box-shadow: 0 6px 28px var(--color-shadow); transform: translateY(-2px) scale(1.035); }
.feature-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
}
.course-price {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: var(--color-accent);
  font-size: 1.1rem;
  margin-top: 8px;
  letter-spacing: .5px;
}

/* COURSE CARDS ON KURSE.HTML */
.course-cards {
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.course-cards li {
  background: #FFF;
  border-radius: 16px;
  box-shadow: 0 3px 18px var(--color-shadow);
  padding: 26px 22px 22px 22px;
  min-width: 220px;
  max-width: 265px;
  flex: 1 1 200px;
  margin-bottom: 20px;
  border: 1px solid #E7EEF5;
  transition: box-shadow 0.15s, transform 0.14s;
}
.course-cards li:hover {
  box-shadow: 0 12px 30px var(--color-shadow);
  transform: translateY(-2.5px) scale(1.03);
}

/* USP & VALUE LISTS */
.usp-list, .core-values, .learning-outcomes, .statistics {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.usp-list > li, .core-values > li, .learning-outcomes > li, .statistics > li {
  padding-left: 28px;
  background: url('../assets/icons/check.svg') no-repeat left 4px center;
  background-size: 20px 20px;
  font-size: 1rem;
  color: #16405B;
}

/* TESTIMONIAL CARDS */
.testimonial-card {
  flex-direction: column;
  align-items: flex-start;
  background: var(--color-testimonial-bg);
  color: #143147;
  box-shadow: 0 2px 12px var(--color-shadow);
}
.testimonial-card .stars {
  color: #F39237;
  font-size: 1.08rem;
  margin-bottom: 6px;
}
.testimonial-card strong {
  margin-bottom: 8px;
}

/* ADDRESS MAP STYLES */
.address-map {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 8px;
  background: #E7EEF5;
  border-radius: 8px;
  padding: 10px 18px;
}
.address-map img {
  width: 22px; height: 22px;
}

/**************************
   FOOTER
**************************/
footer {
  background: var(--color-footer-bg);
  color: #F4F4F4;
  margin-top: 44px;
  padding: 0;
}
footer .container {
  padding-top: 40px;
  padding-bottom: 18px;
}
.footer-logo img {
  height: 44px;
  margin-bottom: 24px;
}
.footer-columns {
  display: flex;
  flex-direction: row;
  gap: 36px;
  margin-bottom: 32px;
}
.footer-column p, .footer-column address {
  color: #E4EAEC;
}
.footer-column {
  flex: 1 1 180px;
}
.footer-column h4 {
  color: var(--color-accent);
  font-size: 1.13rem;
  margin-bottom: 9px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 7px;
}
.footer-menu a {
  color: var(--color-footer-link);
  transition: color 0.14s;
  font-size: 1rem;
}
.footer-menu a:hover,
.footer-menu a:focus {
  color: var(--color-accent);
}
.footer-bottom {
  border-top: 1px solid #23344a;
  padding-top: 13px;
  color: #E4EAEC;
  font-size: .97rem;
  text-align: center;
}

/* SOCIAL IN FOOTER */
.footer-column img[alt^="Instagram"],
.footer-column img[alt^="LinkedIn"] {
  display: inline-block;
  vertical-align: middle;
  width: 24px; height: 24px;
  margin-right: 7px;
}
.footer-column span {
  vertical-align: middle;
}

/* THANK YOU PAGE */
.thank-you-message {
  font-size: 1.15rem;
  color: #223B4E;
  margin-bottom: 18px;
}
ul.next-steps {
  margin-bottom: 24px;
  gap: 6px;
}
ul.next-steps li {
  font-size: 1rem;
  color: #16405B;
  padding-left: 26px;
  background: url('../assets/icons/check.svg') no-repeat left 4px center;
  background-size: 20px 20px;
}

/***********************************************
   COOKIE BANNER & COOKIE MODAL
***********************************************/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, #E0EAFC 0%, #F39237 100%);
  color: #16405B;
  padding: 22px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 20000;
  box-shadow: 0 -2px 20px var(--color-shadow);
  font-size: 1rem;
  transition: transform 0.32s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  pointer-events: none;
  opacity: 0;
}
.cookie-banner-text {
  flex: 1 1 250px;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-btn {
  border: none;
  border-radius: 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 22px;
  cursor: pointer;
  transition: background 0.19s, color 0.14s, box-shadow 0.14s;
}
.cookie-btn-accept {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 2px 10px var(--color-shadow);
}
.cookie-btn-accept:hover,
.cookie-btn-accept:focus {
  background: #cf7816;
  color: #fff;
  box-shadow: 0 4px 14px var(--color-shadow);
}
.cookie-btn-reject {
  background: #fff;
  color: #16405B;
  border: 1px solid #DBDBDB;
}
.cookie-btn-reject:hover,
.cookie-btn-reject:focus {
  background: #eaeaea;
  color: #cf7816;
}
.cookie-btn-setting {
  background: none;
  color: #16405B;
  text-decoration: underline;
  padding: 8px 12px;
  font-weight: 500;
}
.cookie-btn-setting:hover,
.cookie-btn-setting:focus {
  color: var(--color-accent);
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(22,64,91,0.64);
  z-index: 21000;
  justify-content: center;
  align-items: center;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 30px var(--color-shadow);
  max-width: 420px;
  width: 90vw;
  padding: 32px 26px 28px 26px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeInModal 0.35s cubic-bezier(.57,.05,.43,.98);
}
@keyframes fadeInModal {
  0% { opacity: 0; transform: translateY(80px) scale(.96); }
  100% { opacity: 1; transform: none; }
}
.cookie-modal h2 {
  font-size: 1.2rem;
  margin-bottom: 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-category input[type=checkbox] {
  accent-color: var(--color-accent);
  width: 20px; height: 20px;
}
.cookie-category label {
  font-size: 1rem;
  color: #16405B;
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #223B4E;
  cursor: pointer;
  transition: color 0.16s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: var(--color-accent);
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}

/***********************
   RESPONSIVE DESIGN
************************/
@media (max-width: 1100px) {
  .container {
    max-width: 97vw;
  }
}
@media (max-width: 900px) {
  .footer-columns {
    flex-direction: column;
    gap: 20px;
  }
  .footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
  }
}
@media (max-width: 768px) {
  h1, .h1 {
    font-size: 1.85rem;
  }
  h2, .h2 {
    font-size: 1.38rem;
  }
  .main-nav {
    display: none;
  }
  .button-primary {
    margin-left: 0;
    padding: 8px 18px;
    font-size: 1rem;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .container {
    gap: unset;
    flex-direction: row;
  }
  .feature-grid,
  .course-cards,
  .content-grid,
  .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid li,
  .course-cards li,
  .card {
    max-width: 100%;
    width: 100%;
  }
  .testimonial-card {
    margin-bottom: 20px;
  }
  .content-wrapper.call-to-action {
    padding: 26px 8px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 14px 16px 16px;
    gap: 13px;
    font-size: .99rem;
  }
  .cookie-banner-actions {
    flex-direction: row;
    gap: 6.5px;
  }
}
@media (max-width: 480px) {
  h1, .h1 {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }
  h2, .h2 {
    font-size: 1.02rem;
    margin-bottom: 8px;
  }
  .section {
    padding: 24px 6px 30px 6px;
  }
  .cookie-modal {
    padding: 20px 7vw 22px 7vw;
  }
}

/* MISC - FOCUS STYLES & TRANSITIONS */
a, button, .button-primary, .cookie-btn {
  outline: none;
  transition: box-shadow 0.15s, outline 0.15s;
}
a:focus, button:focus, .button-primary:focus, .cookie-btn:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Hide visually but keep accessible for screenreaders */
.visually-hidden {
  border: 0 !important;
  clip: rect(1px,1px,1px,1px) !important;
  clip-path: inset(100%) !important;
  height: 1px !important; margin: -1px !important;
  overflow: hidden !important; padding: 0 !important;
  position: absolute !important; width: 1px !important;
}

/* ACCESSIBLE SCROLLING FOR ANCHORS */
html:focus-within {
  scroll-behavior: smooth;
}

/* DIALOG/OVERLAYS z-index for mobile nav/cookie */
.mobile-menu, .cookie-modal-overlay {
  z-index: 20000 !important;
}

/* Utility classes for spacing */
.mb-20 { margin-bottom: 20px; }
.mb-32 { margin-bottom: 32px; }
.mt-20 { margin-top: 20px; }
.mt-32 { margin-top: 32px; }
.gap-20 { gap: 20px; }

/**********************
 * END OF CSS
 **********************/

/* FONTS: Import in HTML <head> or self-host for Montserrat/Source Sans Pro! */
