/* ===================================================================
   VINTAGE RETRO CSS for EmberFit – ONLY FLEXBOX
   Responsive, Accessible, No Grid Properties, ONLY FLEX, Retro Flavour
   =================================================================== */

/* ============================
   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, 
main, 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; }
body {
  min-height: 100vh;
  background: #FFF8F2; /* vintage paper-esque */
  color: #2E2322;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
img { display: block; max-width: 100%; height: auto; }
ul, ol { padding-left: 22px; margin-bottom: 20px; }
a { color: #BA4A00; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #212B36; text-decoration: underline; }

/* ============================
   VINTAGE RETRO BASE PALETTE
   ============================ */
:root {
  --primary: #212B36;
  --secondary: #E95627;
  --accent: #F2F2F2;
  --vintage-bg: #FFF8F2;
  --vintage-brown: #433b32;
  --vintage-orange: #e38652;
  --vintage-cream: #f6e7d4;
  --vintage-blue: #497985;
  --vintage-yellow: #f8ba42;
  --card-shadow: 0 4px 18px 0 rgba(54,38,19,0.08);
}

/* ============================
   TYPOGRAPHY – RETRO FONTS
   ============================ */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

body {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  background: var(--vintage-bg);
  color: var(--vintage-brown);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Impact, Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 18px;
  text-transform: uppercase;
}
h1 { font-size: 2.5rem; color: var(--secondary); margin-bottom: 0.7em; position: relative; text-shadow: 1px 2px 0 #f6e7d4; }
h2 { font-size: 2rem; color: var(--primary); border-bottom: 2px solid var(--vintage-orange); display: inline-block; padding-bottom: 8px; margin-bottom: 30px; }
h3 { font-size: 1.25rem; color: var(--vintage-blue); }

p, ul, ol, li {
  font-size: 1.07rem;
}

.subheadline {
  font-family: 'Montserrat',Arial,sans-serif;
  font-weight: 500;
  color: var(--vintage-orange);
  font-size: 1.15rem;
  margin-bottom: 30px;
  letter-spacing: 0.4px;
}

strong, b { font-weight: bold; }

/* ===================== */
/* CONTAINER & LAYOUT   */
/* ===================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--vintage-cream);
  border-radius: 26px;
  box-shadow: var(--card-shadow);
}

@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
    border-radius: 14px;
  }
  .container {
    padding-left: 7px; padding-right: 7px;
  }
}

/* ===============================
   HEADER & NAVIGATION – Retro Bar
   =============================== */
header {
  background: var(--vintage-yellow);
  box-shadow: 0 1px 0 0 #f7cc82;
  position: sticky; top: 0; z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
  gap: 14px;
}
.logo img {
  height: 48px;
  width: auto;
  filter: sepia(0.5) contrast(1.1);
}
nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color .2s, background .2s;
  padding: 6px 14px;
  border-radius: 18px;
}
nav a:hover, nav a:focus {
  background: var(--secondary);
  color: #fff;
}

.cta-primary {
  background: var(--secondary);
  color: #fff!important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  padding: 10px 26px;
  border-radius: 24px;
  font-size: 1.08rem;
  box-shadow: 2px 6px 0 #eca37d, 0 2px 8px 0 rgba(54,38,19,0.10);
  transition: background 0.17s, box-shadow 0.2s, transform 0.12s;
  margin-left: 17px;
  letter-spacing: 1.4px;
  border: 0;
  cursor: pointer;
  display: inline-block;
  text-shadow: 1px 2px 0 #bb764b33;
}
.cta-primary:hover, .cta-primary:focus {
  background: #ba3b16;
  color: #FFF!important;
  box-shadow: 2px 8px 0 #eca37d, 0 5px 16px 0 rgba(54,38,19,0.16);
  transform: translateY(-2px) scale(1.035);
}

/* Hide mobile menu button on desktop */
.mobile-menu-toggle {
  display: none;
}

/* =========================
   MOBILE NAVIGATION SYSTEM 
   ========================= */
@media (max-width: 1024px) {
  nav { display: none; }
  .mobile-menu-toggle {
    display: block;
    background: var(--secondary);
    color: #fff;
    font-size: 2rem;
    border: none;
    border-radius: 50%;
    width: 44px; height: 44px;
    line-height: 1;
    cursor: pointer;
    transition: background .13s;
    box-shadow: 2px 5px 0 #eca37d, 0 2px 8px 0 rgba(54,38,19,0.10);
  }
  .mobile-menu-toggle:active,
  .mobile-menu-toggle:focus {
    background: #ba3b16;
  }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  z-index: 1002;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--vintage-yellow);
  transform: translateX(-100%);
  transition: transform .33s cubic-bezier(0.85,0,0.13,1);
  box-shadow: 4px 0 24px 0 #1c0f0b15;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 28px 32px 10px 0;
  background: var(--secondary);
  color: #fff;
  border: none;
  font-size: 2.2rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.18s;
  box-shadow: 1px 3px 0 #cca159, 0 2px 8px 0 rgba(54,38,19,0.12);
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #ba3b16;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  align-items: flex-start;
  padding-left: 36px;
  margin-top: 30px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--primary);
  background: none;
  font-size: 1.22rem;
  letter-spacing: 1.5px;
  padding: 8px 0;
  border-radius: 5px;
  transition: color .18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
}
@media (max-width: 480px) {
  .mobile-menu-close { margin-top: 14px; margin-right: 14px; }
  .mobile-nav { padding-left: 18px; }
}

/* =====================
   MAIN & SECTIONS
   ===================== */
main {
  margin-bottom: 50px;
  margin-top: 8px;
}
section { /* fallback default */ }

.features-grid, .services-cards, .offer-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 15px;
}
.features-grid {
  justify-content: flex-start;
}

.feature, .service-card {
  background: #fff;
  border: 2px solid var(--vintage-cream);
  border-radius: 16px;
  padding: 25px 20px 19px 20px;
  box-shadow: 0 3px 18px #4e2d0921,0 1.5px 0 #fff;
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 340px;
  margin-bottom: 20px;
  transition: box-shadow .21s, transform .18s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature:hover, .service-card:hover {
  box-shadow: 0 8px 34px #a7461047,0 1.5px 0 #fff;
  transform: translateY(-8px) scale(1.03);
}
.feature img, .service-card img {
  width: 48px; height: 48px; margin-bottom: 8px;
  filter: sepia(0.28) hue-rotate(-19deg) brightness(1.17);
}
.service-price {
  margin-top: 12px;
  font-weight: bold;
  background: var(--vintage-cream);
  color: var(--secondary);
  font-size: 1.02rem;
  padding: 5px 13px;
  border-radius: 13px;
  border: 1px dashed #eac594;
  letter-spacing: 1.2px;
  display: inline-block;
}

@media (max-width: 1024px) {
  .features-grid, .services-cards, .offer-cards {
    gap: 18px;
  }
  .feature, .service-card {
    min-width: 180px; max-width: 100%;
    padding: 20px 12px;
  }
}
@media (max-width: 600px) {
  .features-grid, .services-cards, .offer-cards {
    flex-direction: column;
    gap: 19px;
  }
  .feature,.service-card{
    min-width: 0; width: 100%;
  }
}

/* ========================
   Testimonials (retro card)
   ======================== */
.testimonials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #f3e4d1;
  border-left: 6px solid #E95627;
  border-radius: 18px;
  box-shadow: 0 3px 18px #4e2d0921;
  padding: 22px 30px 22px 28px;
  min-width: 250px;
  max-width: 395px;
  color: #211a15;
  position: relative;
  margin-bottom: 20px;
}
.testimonial-card .stars {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.4rem;
  color: #f7ba0c;
  letter-spacing: 2px;
  margin-bottom: 2px;
  text-shadow: 1px 1px 0 #e2bb51a7;
}
.testimonial-meta {
  margin-top: 10px;
  color: #7d5d21;
  font-size: 1em;
  letter-spacing: 0.5px;
  font-style: italic;
}

@media (max-width: 650px) {
  .testimonials-list {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    padding: 16px 13px 16px 15px; min-width: 0; max-width: 100%;
  }
}

/* ===============
   USP/BENEFITS
   =============== */
.usp-list, .program-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 25px;
}
.usp-list li, .program-options li {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1.1rem;
  padding: 12px 11px;
  background: #faecd6;
  border-radius: 16px;
  box-shadow: 0 2px 8px #edd7b031;
  margin-bottom: 0px;
}
.usp-list img, .program-options img {
  width:32px; height:32px;
  filter: sepia(0.4) brightness(1.13);
}

/* =========================
   TABLES (for Kurse page)
   ========================= */
.course-table {
  overflow-x: auto;
  margin-bottom: 15px;
}
.course-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  background: #fff6eb;
  border-radius: 20px;
  box-shadow: 0 2px 18px #77633e15;
  overflow: hidden;
}
.course-table th, .course-table td {
  padding: 15px 12px;
  border-bottom: 1px solid #f3e4d1;
  text-align: left;
}
.course-table th {
  background: #f8ba42;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.12rem;
  color: var(--primary);
}
.course-table tbody tr:last-child td { border-bottom: none; }
.course-level {
  display: inline-block;
  background: #faecd6;
  color: #512e1a;
  border-radius: 8px;
  padding: 3px 10px;
  font-size: 0.97em;
}

/* ===========================
   TEXT/IMAGE & FEATURE ITEMS
   =========================== */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* ===================
   BUTTONS (Retro)
   =================== */
button, .btn, input[type=button], input[type=submit] {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 23px;
  padding: 9px 24px;
  font-size: 1.01rem;
  font-weight: bold;
  box-shadow: 2px 5px 0 #eca37d, 0 2px 8px 0 rgba(54,38,19,0.10);
  letter-spacing: 1.2px;
  transition: background 0.2s, box-shadow .18s, transform .13s;
  cursor: pointer;
  margin-right: 12px;
  margin-top: 5px;
}
button:hover, .btn:hover, button:focus, .btn:focus, input[type=button]:hover, input[type=submit]:hover {
  background: #ba3b16;
  color: #fff;
  box-shadow: 2px 8px 0 #eca37d, 0 8px 18px 0 rgba(54,38,19,0.13);
  transform: translateY(-2px) scale(1.03);
}
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 13px;
  border: 1.2px solid #faecd6;
  padding: 10px 12px;
  margin-bottom: 16px;
  background: #fff8ef;
  color: #2e2322;
  transition: border .14s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--secondary);
  background: #fff1de;
}

/* ================
   FOOTER
   ================ */
footer {
  background: var(--vintage-brown);
  color: #f6e7d4;
  padding: 48px 0 20px 0;
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 42px;
  flex-wrap: wrap;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 180px;
}
.footer-nav a {
  color: #f8ba42;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05em;
  text-decoration: none;
  margin-bottom: 2px;
  transition: color .14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
  text-decoration: underline;
}
.footer-contact {
  font-size: 1.04rem;
  color: #ffe7ba;
  margin-top: 8px;
  min-width: 220px;
  margin-bottom: 8px;
}
.footer-contact strong { color: #fff; }
.footer-contact a { color: #ffe7ba; text-decoration: underline; }
.footer-social {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 8px;
}
.footer-social a img {
  width: 31px; height: 31px;
  filter: sepia(0.18) contrast(1.09);
  transition: filter .18s, transform .15s;
}
.footer-social a:hover img, .footer-social a:focus img {
  filter: sepia(0.6) contrast(1.1) brightness(1.06) hue-rotate(-15deg);
  transform: scale(1.11) rotate(-4deg);
}

@media (max-width:900px) {
  footer .container { flex-direction: column; gap: 25px; align-items: flex-start; }
}
@media (max-width:600px) {
  footer .container { flex-direction: column; gap: 15px; }
  .footer-nav, .footer-contact, .footer-social { min-width: 0; }
}
@media (max-width:400px) {
  footer { font-size: 0.93em; padding-top: 24px; }
}

/* =====================
   COOKIE CONSENT BANNER
   ===================== */
.cookie-banner {
  position: fixed;
  z-index: 2050;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: #e4cda2;
  color: #211a15;
  padding: 32px 15px 32px 21px;
  box-shadow: 0 -3px 22px #967a5418;
  border-top: 3px solid var(--secondary);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 38px;
  transition: transform 0.21s cubic-bezier(.4,1.15,0.66,1), opacity 0.21s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120px);
}
.cookie-banner__text {
  font-size: 1rem;
  line-height: 1.5;
  max-width: 650px;
}
.cookie-banner__actions {
  display: flex;
  gap: 18px;
  flex-shrink: 0;
}
.cookie-banner .btn-accept {
  background: var(--secondary);
  color: #fff;
}
.cookie-banner .btn-reject {
  background: #f8ba42;
  color: var(--primary);
}
.cookie-banner .btn-settings {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  margin-right: 0;
  font-weight: 700;
  letter-spacing: .5px;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  opacity: 0.85;
}
@media(max-width:730px) {
  .cookie-banner {flex-direction: column; gap:17px; align-items: flex-start;}
}
@media(max-width:500px) {
  .cookie-banner {padding: 18px 5px; font-size: 0.95em;}
}

/* ============================
   COOKIE SETTINGS MODAL POPUP
   ============================ */
.cookie-modal {
  position: fixed;
  z-index: 2051;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(68,56,21,0.29);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  opacity: 1;
  transition: opacity .19s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal__window {
  background: #fff8ef;
  border: 3px solid #f8ba42;
  border-radius: 17px;
  max-width: 410px;
  width: 98vw;
  box-shadow: 0 8px 32px #62411725;
  padding: 33px 28px 20px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 23px;
}
.cookie-modal__close {
  position: absolute;
  top: 16px; right: 20px;
  background: none;
  border: none;
  color: #E95627;
  font-size: 2.1em;
  cursor: pointer;
  transition: color .16s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  color: #b13e17;
}
.cookie-modal__title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.32em;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 1px;
}
.cookie-modal__desc {
  font-size: .97em;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 17px;
  font-size: .96em;
}
.cookie-category label {
  margin-left: 0.4em;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 20px; height: 20px;
}
.cookie-category.essential label, .cookie-category.essential input {
  color: #81580b;
  font-weight: bold;
  accent-color: #f8ba42;
}
.cookie-modal__footer {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 17px;
}
.cookie-modal button {
  min-width: 105px;
}
@media (max-width:480px) {
  .cookie-modal__window {padding: 14px 8px;}
  .cookie-modal__title {font-size: 1.11em;}
}

/* ========================
   ACCESSIBLE FOCUS STATES
   ======================== */
a:focus, button:focus, .cta-primary:focus, input:focus, textarea:focus {
  outline: 2px dashed #ba3b16;
  outline-offset: 3px;
}

/* ============================
   MICRO-INTERACTIONS/ANIMS
   ============================ */
.card, .feature, .service-card, .testimonial-card, .usp-list li, .program-options li {
  transition: box-shadow .18s, transform .13s, background .19s;
}

.card:hover, .service-card:hover, .feature:hover {
  background: #ffede1;
  box-shadow: 0 10px 34px #6b2c0d23;
  transform: translateY(-6px) scale(1.026);
}

.animated {
  animation: pageIn .9s cubic-bezier(.43,.24,0,.97);
}
@keyframes pageIn {
  0% { opacity:0;transform: translateY(40px);}
  100%{ opacity:1;transform: none;}
}

/* ========================
   LONG TEXT SECTIONS
   ======================== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-container, .card-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 23px 18px;
}

/* =======================
   UTILITY CLASSES
   ======================= */
.text-center { text-align: center; }
.hidden { display:none!important; }
.mb-20 { margin-bottom:20px!important; }

/* =======================
   SPACING/RESPONSIVE HELPERS
   ======================= */
@media (max-width: 1024px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.46rem; }
  .container { max-width: 98vw; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  h1 { font-size:1.2rem; }
  h2 { font-size:1.1rem; }
  .section { padding:13px 4.5vw; margin-bottom:23px; border-radius:11px; }
}

/* ================
   PRINT STYLES
   ================ */
@media print {
  header, footer, .cookie-banner, .mobile-menu, .mobile-menu-toggle {display:none!important;}
}
