/* -----------------------------
   QUANTUMFUSE DRESDEN
   Vintage Retro CSS (Flexbox only)
------------------------------*/
/* === CSS RESET / NORMALIZE === */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure {
  margin: 0;
  padding: 0;
}
ul, ol { list-style: none; }
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
  background: none;
}
img, picture, video {
  max-width: 100%;
  display: block;
}
:root {
  --brand-primary: #154973;
  --brand-secondary: #F2F7FA;
  --brand-accent: #F5A623;
  --retro-red: #D94F4B;
  --retro-blue: #5A7F8C;
  --retro-green: #B3B761;
  --retro-bg: #FFF8F2;
  --retro-paper: #F9EDDC;
  --retro-shadow: rgba(21, 73, 115, 0.12);
  --retro-brown: #85634e;
  --white: #fff;
  --black: #232323;
  --vintage-title: 'Montserrat', 'Futura', 'Franklin Gothic Medium', 'Arial', sans-serif;
  --vintage-body: 'Roboto', 'Verdana', 'Arial', sans-serif;
}
body {
  background: var(--retro-bg);
  color: var(--black);
  font-family: var(--vintage-body);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
}

/* ========== TYPOGRAPHY & HEADINGS =========== */
h1, .hero h1 {
  font-family: var(--vintage-title);
  color: var(--brand-primary);
  font-weight: 800;
  font-size: 2.3rem;
  letter-spacing: -1px;
  margin-bottom: 16px;
  text-shadow: 1px 1px 0px var(--retro-shadow);
}
h2 {
  font-family: var(--vintage-title);
  color: var(--brand-accent);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
h3 {
  font-family: var(--vintage-title);
  font-size: 1.15rem;
  color: var(--retro-blue);
  font-weight: bold;
}
p, li, a, strong, span, em {
  font-family: var(--vintage-body);
  font-size: 1rem;
  color: var(--black);
}
strong { font-weight: 700; color: var(--brand-primary); }

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--retro-paper);
  border-radius: 18px;
  box-shadow: 0 3px 14px -8px var(--retro-shadow);
  position: relative;
}


/* ========== CONTAINER & GRID SYSTEM ========== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  position: relative;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 2px 7px -2px var(--retro-shadow);
  overflow: hidden;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 8px 22px -4px var(--retro-shadow);
  transform: translateY(-3px) scale(1.02);
}
.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;
  margin-bottom: 20px;
  background: var(--retro-bg);
  border-left: 7px solid var(--brand-accent);
  border-radius: 13px;
  padding: 20px 28px;
  box-shadow: 0 2px 8px -2px var(--retro-shadow);
  font-size: 1.05rem;
  color: var(--black);
  font-style: italic;
  transition: box-shadow 0.18s;
}
.testimonial-card strong {
  font-family: var(--vintage-title);
  color: var(--brand-primary);
  font-size: 1rem;
  font-style: normal;
  margin-top: 5px;
  font-weight: 700;
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px -4px var(--retro-shadow);
  background: var(--retro-paper);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ========== HEADER & NAV ========== */
header {
  background: var(--brand-primary);
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 70px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo img {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 1px 0 var(--retro-shadow));
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  font-family: var(--vintage-body);
  color: var(--brand-secondary);
  font-size: 1.06rem;
  letter-spacing: 1px;
  padding: 8px 6px;
  border-radius: 7px;
  position: relative;
  transition: background 0.16s, color 0.16s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--brand-accent);
  color: var(--brand-primary);
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--vintage-title);
  background: var(--brand-accent);
  color: var(--brand-primary);
  font-weight: 800;
  font-size: 1.09rem;
  padding: 12px 28px;
  border-radius: 7px 22px 13px 7px/9px 19px 13px 7px;
  box-shadow: 0 2px 9px -3px var(--retro-shadow);
  margin-left: 30px;
  outline: none;
  border: 2px solid transparent;
  cursor: pointer;
  letter-spacing: 1.6px;
  transition: background 0.20s, color 0.20s, border 0.20s, transform 0.18s;
}
.cta-btn:hover,
.cta-btn:focus {
  background: var(--retro-red);
  color: var(--white);
  border: 2px solid var(--brand-primary);
  transform: scale(1.05) rotate(-2deg);
}

/* ========== MOBILE MENU ========== */
.mobile-menu-toggle {
  display: none;
  background: var(--brand-accent);
  color: var(--brand-primary);
  border-radius: 6px;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 18px;
  transition: background 0.2s, color 0.2s, box-shadow 0.18s;
  z-index: 1102;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--retro-red);
  color: var(--white);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: var(--retro-paper);
  box-shadow: 0 0 36px 14px var(--retro-shadow);
  z-index: 1100;
  transform: translateX(-100vw);
  transition: transform 0.38s cubic-bezier(.62,-0.34,.57,1.36);
  padding-top: 35px;
  opacity: 0.97;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 17px;
  right: 23px;
  font-size: 2rem;
  background: var(--brand-accent);
  color: var(--brand-primary);
  border-radius: 6px;
  padding: 4px 12px;
  box-shadow: 0 2px 7px -2px var(--retro-shadow);
  cursor: pointer;
  border: none;
  z-index: 1102;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--retro-red);
  color: var(--white);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 23px;
  margin: 52px 0 0 32px;
}
.mobile-nav a {
  font-family: var(--vintage-title);
  color: var(--brand-primary);
  font-size: 1.32rem;
  padding: 12px 0;
  border-bottom: 2px dotted var(--brand-accent);
  width: 100%;
  transition: color 0.22s, background 0.2s;
  margin-bottom: 12px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--brand-accent);
  color: var(--retro-bg);
}
/* Hide main navigation and show burger on mobile */
@media (max-width: 1000px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .cta-btn {
    margin-left: 8px;
    padding: 10px 16px;
    font-size: 1rem;
  }
}
@media (max-width: 700px) {
  .mobile-nav a {
    font-size: 1.12rem;
    margin-bottom: 8px;
  }
}

/* =================== HERO SECTION ==================== */
.hero {
  background: repeating-linear-gradient(135deg, var(--brand-secondary) 0 20px, var(--retro-paper) 20px 40px);
  padding: 45px 0 45px 0;
  border-bottom: 5px solid var(--brand-accent);
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
  padding-top: 10px;
  padding-bottom: 16px;
}
.hero p {
  font-size: 1.17rem;
  color: var(--retro-blue);
  font-family: var(--vintage-body);
  font-weight: 500;
  margin-bottom: 7px;
}

/* ========== FEATURE LIST & ICONS ========== */
.features, .feature-grid, .feature-icons {
  display: flex;
  flex-flow: row wrap;
  gap: 20px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.feature-grid li, .feature-icons li {
  background: var(--retro-paper);
  border: 2px dashed var(--retro-red);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.05rem;
  color: var(--brand-primary);
  padding: 12px 22px 12px 14px;
  margin-bottom: 0;
  font-family: var(--vintage-body);
  min-width: 180px;
  box-shadow: 0 1px 4px -1px var(--retro-shadow);
  transition: border 0.17s, background 0.14s;
}
.feature-grid li img, .feature-icons li img {
  height: 24px;
  filter: sepia(0.9) hue-rotate(330deg);
}
.feature-grid li:hover, .feature-icons li:hover {
  background: var(--brand-accent);
  color: var(--white);
  border: 2px solid var(--brand-primary);
}

/* ================== CTA BANNERS =============== */
.cta-banner,
.cta,
.newsletter-cta {
  background: var(--brand-primary);
  color: var(--brand-secondary);
  border-radius: 18px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 8px 27px -7px var(--retro-shadow);
  position: relative;
}
.cta-banner h2, .cta h2, .newsletter-cta h2 {
  color: var(--brand-accent);
  font-size: 2rem;
  letter-spacing: 1.5px;
}
.cta-banner p, .cta p, .newsletter-cta p {
  color: var(--white);
  font-size: 1.02rem;
}

/* ================= NEWS PREVIEW ================== */
.news-preview ul, .news ul, .updates ul, .highlights ul, .faq ul, .kurse ul, .values ul, .team ul, .locations ul, .contact-info ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 18px 0 15px 0;
}
.news-preview ul li,
.news ul li,
.updates ul li,
.highlights ul li,
.kurse ul li,
.faq ul li,
.locations ul li,
.values ul li,
.contact-info ul li,
.team ul li {
  background: var(--retro-bg);
  border-radius: 8px;
  border-left: 3.5px solid var(--brand-primary);
  padding: 13px 16px;
  font-size: 1.02rem;
  color: var(--brand-primary);
  box-shadow: 0 1px 5px -2px var(--retro-shadow);
}
.news-preview a, .news a {
  color: var(--brand-accent);
  font-family: var(--vintage-body);
  font-weight: 600;
  background: none;
  text-decoration: underline;
  transition: color 0.20s;
}
.news-preview a:hover, .news a:hover {
  color: var(--retro-red);
}

/* ========== FOOTER ========== */
footer {
  background: var(--retro-paper);
  padding: 32px 0 16px 0;
  border-top: 7px double var(--brand-accent);
  box-shadow: 0 -2px 22px -8px var(--retro-shadow);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}
.footer-links {
  display: flex;
  gap: 23px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  justify-content: center;
}
.footer-links a {
  color: var(--brand-primary);
  font-family: var(--vintage-title);
  font-size: 1rem;
  padding: 4px 4px;
  border-radius: 5px;
  transition: background 0.2s, color 0.2s;
}
.footer-links a:hover { background: var(--brand-accent); color: var(--white); }
.footer-branding {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 7px;
  font-family: var(--vintage-title);
  color: var(--black);
  font-size: 1rem;
  text-align: center;
}
.footer-branding img {
  height: 34px;
}
.footer-social {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}
.footer-social a img {
  width: 28px;
  height: 28px;
  transition: filter 0.18s, transform 0.13s;
}
.footer-social a:hover img {
  filter: brightness(1.5) drop-shadow(0 0 6px var(--brand-accent));
  transform: scale(1.13) rotate(-3deg);
}

/* ========== PAGE SECTIONS ========== */
.about, .team, .values, .privacy-policy, .gdpr, .cookie-policy, .terms, .thankyou, .contact-info, .directions, .timetable, .updates, .kurse, .locations {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--retro-paper);
  border-radius: 18px;
  box-shadow: 0 3px 14px -8px var(--retro-shadow);
}

.highlight {
  background: var(--brand-accent);
  color: var(--brand-primary);
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.04rem;
  margin-top: 13px;
  margin-bottom: 13px;
}

/* ========== SPECIAL ELEMENTS ========== */
ol {
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: retrocounter;
  margin: 18px 0 15px 0;
}
ol li {
  position: relative;
  padding-left: 40px;
  color: var(--brand-primary);
  font-size: 1.04rem;
  font-family: var(--vintage-body);
}
ol li:before {
  counter-increment: retrocounter;
  content: counter(retrocounter) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-accent);
  font-size: 1.30rem;
  font-weight: bold;
  font-family: var(--vintage-title);
}

/* ========== UTILITY CLASSES ========== */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-15 { margin-bottom: 15px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mb-60 { margin-bottom: 60px !important; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }

/* ========== RESPONSIVE ADJUSTMENTS =========== */
@media (max-width: 900px) {
  h1, .hero h1 { font-size: 1.7rem; }
  .card-container, .content-grid, .testimonials .content-wrapper {
    flex-direction: column !important;
  }
  .footer-branding {
    flex-direction: column;
    gap: 8px;
  }
}
@media (max-width: 768px) {
  .section, .about, .team, .values, .privacy-policy, .gdpr, .cookie-policy, .terms, .thankyou, .contact-info, .directions, .timetable, .updates, .kurse, .locations {
    padding: 28px 5vw;
    margin-bottom: 30px;
    border-radius: 14px;
  }
  .hero { padding-top: 24px; padding-bottom: 24px; }
  .text-image-section,
  .content-grid {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 20px;
  }
  .testimonials .content-wrapper,.card-container {
    flex-direction: column;
  }
  .cta-banner, .cta, .newsletter-cta {
    padding: 24px 5vw;
    border-radius: 12px;
    margin-bottom: 30px;
  }
  footer .container {
    gap: 14px;
  }
}
@media (max-width: 540px) {
  html { font-size: 14px; }
  .logo img,
  .footer-branding img {
    height: 30px;
  }
  .cta-btn {
    padding: 8px 10px;
    font-size: 0.98rem;
    min-width: 120px;
  }
  .testimonials .content-wrapper,
  .card-container,
  .content-wrapper,
  .footer-links {
    gap: 9px !important;
  }
}

/* ========== TRANSITIONS & MICRO-INTERACTIONS ========== */
a, button, .cta-btn, .mobile-menu-toggle, .mobile-menu-close {
  transition: all 0.19s;
  outline: none;
}
.cta-btn:active {
  background: var(--brand-primary);
  color: var(--brand-secondary);
  transform: scale(0.98);
}

/* ======================= COOKIE CONSENT BANNER ====================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
  background: linear-gradient(90deg, var(--brand-secondary), var(--retro-paper) 60%);
  box-shadow: 0 -6px 22px -8px var(--retro-shadow);
  border-top: 3px solid var(--brand-accent);
  font-family: var(--vintage-body);
  font-size: 1rem;
  animation: bannerIn 0.67s cubic-bezier(0.16, 1, 0.3, 1) 1;
}
@keyframes bannerIn {
  from { transform: translateY(80px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner__text {
  flex: 1 1 65%;
  color: var(--brand-primary);
}
.cookie-banner__actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cookie-btn {
  font-family: var(--vintage-title);
  font-weight: bold;
  border-radius: 6px;
  padding: 8px 18px;
  background: var(--brand-primary);
  color: var(--white);
  transition: background 0.18s, color 0.18s, box-shadow 0.17s;
  box-shadow: 0 1px 4px -2px var(--retro-shadow);
  cursor: pointer;
  border: 2px solid var(--brand-accent);
}
.cookie-btn.accept {
  background: var(--retro-green);
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}
.cookie-btn.decline {
  background: var(--retro-red);
  color: var(--white);
  border-color: var(--brand-primary);
}
.cookie-btn.settings {
  background: var(--brand-accent);
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}
.cookie-btn:active {
  background: var(--brand-primary);
  color: var(--brand-accent);
}

@media (max-width: 800px) {
  .cookie-banner {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    padding: 14px 5vw;
  }
  .cookie-banner__actions {
    width: 100%; gap: 12px;
    flex-wrap: wrap;
  }
}

/* ========== COOKIE MODAL ========== */
.cookie-modal {
  position: fixed;
  left: 0; right: 0;
  top: 0; bottom: 0;
  z-index: 1250;
  background: rgba(50,34,10,0.37);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalIn 0.45s;
  pointer-events: auto;
}
@keyframes modalIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal__content {
  background: var(--retro-paper);
  border-radius: 14px;
  box-shadow: 0 8px 35px -6px var(--retro-shadow);
  padding: 30px 28px;
  width: 92vw;
  max-width: 410px;
  font-family: var(--vintage-body);
  color: var(--brand-primary);
  position: relative;
}
.cookie-modal__content h2 {
  font-size: 1.36rem;
  color: var(--brand-primary);
  margin-bottom: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px dashed var(--brand-accent);
}
.cookie-category:last-child { border-bottom: none; }
.cookie-category label { font-weight: 600; letter-spacing: 1px; }
.cookie-toggle {
  width: 46px; height: 25px;
  border-radius: 13px;
  border: 1.6px solid var(--brand-accent);
  background: var(--brand-secondary);
  position: relative;
  transition: background 0.2s;
  cursor: pointer;
  overflow: hidden;
  margin-left: 15px;
}
.cookie-toggle input {
  display: none;
}
.cookie-toggle-slider {
  display: block;
  background: var(--brand-accent);
  height: 21px; width: 21px;
  border-radius: 50%;
  position: absolute;
  top: 1.5px; left: 1.5px;
  transition: left 0.18s, background 0.18s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  left: 23px;
  background: var(--retro-green);
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 25px;
}

.cookie-modal .close-modal {
  position: absolute;
  top: 7px;
  right: 15px;
  background: var(--retro-red);
  color: var(--white);
  border-radius: 5px;
  font-size: 1.1rem;
  padding: 5px 10px;
  cursor: pointer;
  transition: background 0.17s;
  border: none;
}
.cookie-modal .close-modal:hover {
  background: var(--brand-primary);
  color: var(--brand-accent);
}
@media (max-width: 430px) {
  .cookie-modal__content {
    padding: 20px 8px;
    font-size: 0.97rem;
  }
}

/* ========== TABLES (if any) ========== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
th, td {
  border: 1px solid var(--brand-primary);
  padding: 9px 14px;
  font-size: 1rem;
}
th {
  background: var(--brand-accent);
  color: var(--brand-primary);
  font-family: var(--vintage-title);
  font-size: 1.07rem;
}
td { background: var(--retro-bg); font-family: var(--vintage-body); }

/* ========== FORM ELEMENTS (future-proofing) ========== */
input, textarea, select {
  font-family: var(--vintage-body);
  padding: 8px 10px;
  border: 2px solid var(--brand-accent);
  border-radius: 6px;
  background: var(--retro-paper);
  font-size: 1rem;
  color: var(--brand-primary);
  box-shadow: 0 1px 5px -3px var(--retro-shadow);
  margin-bottom: 17px;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brand-primary);
  background: var(--brand-secondary);
}
label { font-family: var(--vintage-title); font-weight: 600; color: var(--brand-primary); margin-bottom: 6px; display: block; }

/* ========== MISC RETRO ELEMENTS ========== */
section, .section, .about, .team, .values, .privacy-policy, .gdpr, .cookie-policy, .terms, .thankyou, .contact-info, .directions, .timetable, .updates, .kurse, .locations {
  border: 1.7px solid var(--retro-brown);
  box-shadow: 0 3px 14px -8px var(--retro-shadow);
  background-image: repeating-linear-gradient(135deg, transparent, transparent 18px, rgba(133,99,78,0.05) 19px, transparent 34px);
}

/* ========== PRINT ======== */
@media print {
  body { background: var(--white); color: var(--black); }
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  .container { max-width: 100% !important; padding: 0 !important; }
}
