/* ----------------------
   CSS RESET & BASE RULES
   ---------------------- */
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;
}

html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a2430;
  background: #FAF9F6;
  min-height: 100vh;
  scrollbar-color: #284B63 #ECECEC;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ----------------------
   BRAND COLORS & FONTS
   ---------------------- */
:root {
  --primary: #284B63;
  --secondary: #F2A541;
  --accent: #ECECEC;
  --white: #fff;
  --dark: #1a2430;
  --danger: #D7263D;
  --success: #27AE60;
  --shadow: rgba(40,75,99,0.09);
}

@import url('https://fonts.googleapis.com/css?family=Rubik:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Rubik', 'Open Sans', Arial, sans-serif;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.5px;
}
h1 { font-size: 2.75rem; line-height: 1.1; margin-bottom: 18px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4, h5, h6 { margin-bottom: 8px; }

p, li, ul, ol {
  font-size: 1rem;
  margin-bottom: 14px;
}
strong { color: var(--secondary); font-weight: 700; }
a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  z-index: 1;
}
a:focus, a:hover { color: var(--secondary); text-decoration: underline; }

/* Artistic Headings */
h1, h2, h3 {
  font-family: 'Rubik', 'Open Sans', Arial, sans-serif;
  text-shadow: 1px 2px 0 var(--accent);
}

/* ----------------------
   HEADER
   ---------------------- */
header {
  background: var(--white);
  border-bottom: 2.5px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 49;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 84px;
  padding: 0 0 0 0;
}

header .container > a img {
  height: 56px;
  width: auto;
  margin-right: 12px;
  transition: transform 0.1s;
}
header .container > a:hover img {
  transform: rotate(-8deg) scale(1.08);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Rubik';
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--primary);
  background: none;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: var(--white);
}

/* CTA Button */
.cta-button {
  background: var(--secondary);
  color: var(--white);
  padding: 0.65em 2.2em;
  border-radius: 40px;
  font-weight: 700;
  font-family: 'Rubik', 'Open Sans', Arial, sans-serif;
  font-size: 1.10rem;
  box-shadow: 0 2px 14px var(--shadow);
  transition: background 0.16s, box-shadow 0.26s, transform 0.15s;
  border: none;
  outline: none;
  margin-left: 16px;
  cursor: pointer;
  letter-spacing: 1px;
  position: relative;
  z-index: 2;
}
.cta-button:hover, .cta-button:focus {
  background: var(--primary);
  color: var(--secondary);
  box-shadow: 0 5px 28px var(--shadow), 0 2px 0 var(--secondary);
  transform: translateY(-2px) scale(1.03);
}

/* Mobile burger menu button */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  border: none;
  color: var(--primary);
  font-size: 2rem;
  border-radius: 8px;
  padding: 0.15em 0.45em;
  cursor: pointer;
  transition: background 0.25s, color 0.15s;
  z-index: 98;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--secondary);
  color: var(--white);
}

/* ----------------------
   MOBILE MENU
   ---------------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 102vw;
  height: 100vh;
  background: var(--white);
  box-shadow: 2px 0 32px rgba(40,75,99,0.15);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(-105vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(.6,.18,.42,1.1), opacity 0.25s;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.3rem;
  color: var(--primary);
  padding: 14px 28px 10px 0;
  cursor: pointer;
  transition: color 0.16s;
  z-index: 111;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { color: var(--secondary); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
  padding: 36px 0 0 32px;
}
.mobile-nav a {
  font-family: 'Rubik', Arial, sans-serif;
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 600;
  padding: 10px 0 10px 8px;
  border-radius: 8px;
  transition: background 0.18s, color 0.22s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--white);
}

/* Hide navigation on mobile */
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ----------------------
   FOOTER
   ---------------------- */
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 50px 0 30px 0;
  margin-top: 80px;
  font-size: 1rem;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-nav a {
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.2s;
  margin-bottom: 0;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--secondary);
}
.footer-info {
  color: var(--accent);
  font-size: 1rem;
  opacity: .90;
}
footer a img {
  height: 48px;
  filter: drop-shadow(0 2px 0 #F2A54133);
}

@media (max-width: 900px) {
  .footer-flex {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
  }
}

/* ----------------------
   SECTION/LAYOUT SPACING
   ---------------------- */
.section,
.hero, .features, .services, .about, .contact, .legal {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 4px 18px var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.12s;
  min-width: 220px;
  min-height: 180px;
  z-index: 1;
}
.card:hover, .card:focus {
  box-shadow: 0 8px 37px rgba(40,75,99,0.18);
  transform: translateY(-6px) scale(1.01);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 24px;
  background: var(--accent);
  color: var(--dark);
  border-radius: 18px;
  box-shadow: 0 2px 9px var(--shadow);
  max-width: 500px;
}
.testimonial-card p {
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 0;
}
.testimonial-card span {
  font-size: 1rem;
  color: var(--secondary);
  font-weight: 600;
  margin-left: 6px;
}
/* testimonial contrast for legibility */
.testimonial-card {
  background: #f7f6ee;
  color: #212c39;
  box-shadow: 0 3px 12px #284B6322;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 2px 14px var(--shadow);
  padding: 26px 22px 24px 22px;
  min-width: 210px;
  flex: 1 1 260px;
  position: relative;
  transition: box-shadow 0.19s, transform 0.11s;
  margin-bottom: 20px;
}
.feature-item img {
  width: 44px; height: 44px;
  filter: drop-shadow(0 4px 0 #F2A54122);
}
.feature-item h3 {
  font-size: 1.17rem;
  color: var(--secondary);
  margin-bottom: 6px;
}
.feature-item:hover {
  box-shadow: 0 7px 30px #284B6340;
  transform: translateY(-2px) scale(1.02) rotate(-1deg);
  background: #f9f4e8;
}

.values-list, .step-by-step-guide, .community-reviews ul {
  margin-top: 8px;
  margin-bottom: 16px;
  padding-left: 24px;
}
.values-list li, .step-by-step-guide li, .community-reviews ul li {
  margin-bottom: 9px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: var(--dark);
}
ul {
  list-style: disc inside;
}
ol {
  list-style: decimal inside;
}

.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 24px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.service-list, .course-list, .level-descriptions, .pricing-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}
.service-highlight {
  background: var(--accent);
  border-radius: 18px;
  box-shadow: 0 2px 9px var(--shadow);
  padding: 18px 20px 18px 20px;
  flex: 1 1 270px;
  margin-bottom: 20px;
  min-width: 230px;
  transition: box-shadow 0.14s, background 0.14s;
}
.service-highlight:hover {
  box-shadow: 0 5px 22px #284B6355;
  background: #f7e9ce;
}

/* Section alternation - subtle backgrounds */
.hero { background: linear-gradient(90deg, #F2A54111 70%, #284B6312 100%); border-radius: 28px; box-shadow: 0 2px 14px #F2A54107; margin-top: 26px; margin-bottom: 50px; }
.about { background: #fff5e9; border-radius: 20px; }
.features { background: #f8fafd; border-radius: 24px; }
.services { background: #f2f2ee; border-radius: 20px; }
.contact { background: #e7f1ed; border-radius: 20px; }
.legal { background: #fffdf2; border-radius: 20px; }

@media (max-width: 900px) {
  .content-grid, .feature-grid, .service-list, .course-list {
    flex-direction: column;
    gap: 16px;
  }
}

/* ------ Testimonial Lists (Horizontal on Desktop) ------ */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
@media (max-width: 800px) {
  .testimonials {
    flex-direction: column;
    gap: 12px;
  }
}

/* ----------------------
   BUTTONS & INTERACTIONS
   ---------------------- */
button, .cta-button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: 'Rubik', 'Open Sans', Arial, sans-serif;
  transition: background 0.20s, color 0.15s, box-shadow 0.12s, transform 0.12s;
}
.button, .cta-button {
  margin-top: 12px;
  margin-bottom: 12px;
}

/* ----------------------
   CARDS (GENERIC)
   ---------------------- */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

/* ----------------------
   MISC DETAILS
   ---------------------- */
.subheadline {
  font-size: 1.33rem;
  color: var(--secondary);
  font-weight: 400;
  margin-bottom: 14px;
  font-family: 'Open Sans', Arial, sans-serif;
}
.confirmation-message {
  font-size: 1.2rem;
  color: var(--success);
  font-weight: 700;
  margin-bottom: 8px;
}
.next-steps-info {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 22px;
}
.map-location {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px;
  background: var(--accent);
  border-radius: 16px;
  margin-top: 18px;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px #284B6320;
}

.form-hint { color: var(--secondary); font-size: 1rem; }

@media (max-width: 700px) {
  .hero, .features, .services, .about, .contact, .legal {
    padding: 28px 5vw;
    margin-bottom: 34px;
  }
}

/* ------------------------------------
   RESPONSIVE FLEX DIRECTION & SPACING
   ------------------------------------ */
@media (max-width: 900px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

@media (max-width: 800px) {
  .header-flex {
    flex-wrap: wrap;
    gap: 12px;
    min-height: 60px;
    padding: 0 4px;
  }
}

/* ----------
   LEGAL PAGES
   ---------- */
.legal h1 { margin-bottom: 22px; letter-spacing: 1px; }
.legal h2 { margin-bottom: 10px; }
.legal ul { margin-bottom: 22px; }
.legal p, .legal ul, .legal ol { color: #25324a; }
.legal a { color: var(--secondary); }
.legal a:hover { text-decoration: underline; }

/* ----------------------------
   COOKIE CONSENT BANNER & MODAL
   ---------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--primary);
  color: var(--accent);
  padding: 22px 24px 18px 24px;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 -5px 40px #284B6355;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s, transform 0.3s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(110%);
}
.cookie-banner .cookie-text {
  flex: 1 1 auto;
  margin-right: 12px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 15px;
}
.cookie-banner button {
  border: none;
  outline: none;
  padding: 8px 24px;
  background: var(--secondary);
  color: var(--white);
  border-radius: 18px;
  font-weight: 700;
  transition: background 0.2s, color 0.14s;
  font-size: 1rem;
}
.cookie-banner button.cookie-settings {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--secondary);
}
.cookie-banner button.cookie-settings:hover {
  background: var(--accent);
  color: var(--secondary);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--primary);
  color: var(--secondary);
}

/* COOKIE MODAL */
.cookie-modal-backdrop {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: #000c1d99;
  z-index: 1101;
  backdrop-filter: blur(1.5px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.22s;
}
.cookie-modal-backdrop.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  width: 100%;
  max-width: 400px;
  background: var(--white);
  border-radius: 24px 24px 0 0;
  padding: 28px 24px 24px 24px;
  box-shadow: 0 -9px 35px #23304899;
  color: var(--primary);
  font-family: 'Open Sans', Arial, sans-serif;
  animation: cookieModalSlideUp 0.42s cubic-bezier(.69,1.64,.34,1);
}
@keyframes cookieModalSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.cookie-modal h2 {
  font-size: 1.33rem;
  color: var(--secondary);
  margin-bottom: 12px;
}
.cookie-category-list {
  margin-bottom: 22px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cookie-category label {
  font-weight: 600;
  color: var(--primary);
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 22px; height: 22px;
}
.cookie-category.essential label {
  color: var(--success);
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
}
.cookie-modal button {
  margin-top: 0;
}

@media (max-width: 600px) {
  .cookie-modal {
    max-width: 97vw;
    padding: 20px 5vw 18px 5vw;
    border-radius: 14px 14px 0 0;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.98rem;
    padding: 18px 6vw 16px 7vw;
  }
  .footer-flex { padding-left: 2vw; padding-right: 2vw; }
}

/* ----------------------
   ARTISTIC ACCENTS/ELEMENTS
   ---------------------- */
/* Paint stroke accent for sections */
.section-title-accent {
  display: inline-block;
  background: var(--secondary);
  color: var(--primary);
  padding: 4px 18px;
  border-radius: 16px 30px 12px 24px;
  font-family: 'Rubik', 'Open Sans', Arial, sans-serif;
  margin-bottom: 9px;
  font-weight: 900;
  font-size: 1.13rem;
  box-shadow: 1px 3px 15px #F2A54133;
}

/* Decorative absolute elements allowed only for artistic effect */
.hero::before {
  content: '';
  position: absolute;
  left: -30px; top: -36px;
  width: 120px; height: 80px;
  background: #f2a54155;
  border-radius: 33% 67% 47% 53% / 63% 42% 58% 37%;
  opacity: 0.21;
  z-index: 0;
}
.hero {
  position: relative;
  overflow: visible;
  border-bottom: 4px solid var(--secondary);
}

/* Artistic Bullet Style */
ul, ol {
  padding-left: 28px;
}
ul li, ol li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 12px;
}
ul li::before {
  content: '✦';
  color: var(--secondary);
  font-size: 1.05em;
  position: absolute;
  left: -17px;
  top: 0;
  font-family: 'Rubik';
  opacity: .85;
}

/* Artistic Icon Highlight */
.feature-item img {
  background: #fff7e780;
  border-radius: 14px;
  padding: 7px;
  box-shadow: 0 2px 6px #f2a54134;
}

/* Artistic button shadow */
.cta-button, .cookie-banner button, .cookie-modal button {
  box-shadow: 0 3px 11px 0 #F2A54133;
}

/* Transitions for links and shadows */
a, button, .cta-button {
  transition: color 0.2s, background 0.2s, box-shadow 0.25s, transform 0.12s;
}

/* Inputs */
input, textarea, select {
  outline: none;
  border: 2px solid var(--accent);
  border-radius: 7px;
  font-family: inherit;
  font-size: 1em;
  padding: 8px 12px;
  margin-bottom: 14px;
  background: var(--white);
  transition: border 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
}

/* Table */
table {
  border-collapse: collapse;
  margin: 18px 0;
  width: 100%;
}
th, td {
  border: 1px solid #f2a54160;
  padding: 9px 16px;
  text-align: left;
}
th { background: var(--secondary); color: var(--white); }

/* -------------
   UTILITY CLASSES
   ------------- */
.mt-0 { margin-top: 0!important; }
.mb-0 { margin-bottom: 0!important; }
.mt-1 { margin-top: 10px!important; }
.mt-2 { margin-top: 20px!important; }
.mb-1 { margin-bottom: 10px!important; }
.mb-2 { margin-bottom: 20px!important; }
.center {
  text-align: center !important;
  justify-content: center !important;
  align-items: center !important;
}
/* Ensure all cards and major blocks have at least 20px margin between them */
.card, .feature-item, .service-highlight, .testimonial-card, .about, .contact, .features, .services, .course-list > div {
  margin-bottom: 20px;
}

/* -------------
   PRINT
   ------------- */
@media print {
  header, footer, .cookie-banner, .cookie-modal-backdrop, .mobile-menu { display: none !important; }
  body { background: #fff; color: #000; }
}

/* -------------
   SCROLLBAR
   ------------- */
::-webkit-scrollbar {
  width: 14px;
  background: var(--accent);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 12px;
  border: 4px solid var(--accent);
}

/* ----------------------
   RESPONSIVE TYPOGRAPHY
   ---------------------- */
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.08rem; }
}

/* -------------
   FORM ELEMENTS for Kontaktseite
   ------------- */
.contact-details, .opening-hours, .form-hint, .address-details, .directions, .public-transport-info {
  background: #E7F1ED;
  border-radius: 16px;
  padding: 18px 18px 14px 18px;
  margin-bottom: 18px;
  box-shadow: 0 2px 9px #284B6320;
  color: var(--primary);
}

.opening-hours h3, .directions h3, .public-transport-info h3 {
  color: var(--secondary);
  margin-bottom: 8px;
}

/* -------------
   FINAL ARTISTIC TOUCHES
   ------------- */
/* Fun underlines */
a {
  text-decoration-thickness: 2.5px;
  text-underline-offset: 3.2px;
}

/* Artistic hover movement for images/icons */
img:hover, .feature-item img:hover {
  transform: scale(1.1) rotate(-5deg);
  transition: transform 0.17s;
}

/* -------------
   Z-INDEX CONTEXTS
   ------------- */
header { z-index: 49; position: sticky; }
.mobile-menu { z-index: 100; }
.cookie-banner { z-index: 1001; }
.cookie-modal-backdrop { z-index: 1101; }

/* -------------
   ENSURE NO OVERLAPS
   ------------- */
.card, .feature-item, .service-highlight, .testimonial-card,
.about, .contact, .features, .services, .course-list > div {
  margin-bottom: 20px !important;
}

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