/* 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, 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;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  min-height: 100vh;
  background-color: #F8F6F2;
  color: #232E3A;
  font-family: 'Roboto', Arial, sans-serif;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input {
  font-family: inherit;
}
table {
  border-collapse: collapse;
  width: 100%;
}

/* VINTAGE RETRO DESIGN SYSTEM */
:root {
  --color-primary: #232E3A;
  --color-secondary: #67B26F;
  --color-accent: #EDEDED;
  --color-bg-vintage: #FFFBEC;
  --color-vintage-yellow: #FFD96B;
  --color-vintage-red: #E5582C;
  --color-vintage-green: #A6C36F;
  --color-vintage-blue: #7DBACE;
  --color-vintage-brown: #DAB49D;
  --shadow-card: 0 3px 14px 0 rgba(50, 37, 21, 0.14);
  --shadow-hover: 0 6px 20px 2px rgba(50, 37, 21, 0.17);
  --radius-s: 8px;
  --radius-m: 18px;
  --transition: 0.3s cubic-bezier(.44,.13,.48,.87);
}

/* RETRO FONT FOR DISPLAY */
@import url('https://fonts.googleapis.com/css?family=Oswald:400,600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

h1, h2, h3, h4 {
  font-family: 'Oswald', 'Impact', 'Arial Narrow Bold', Arial, sans-serif;
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
h1 { font-size: 2.6rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.38rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; margin-bottom: 10px; }
p, ul, li, a, td, th, strong { font-family: 'Roboto', Arial, sans-serif; }
p, li, td, th {font-size: 1.07rem; margin-bottom: 10px; }
strong { font-weight: 700; }

/* Retro/Nostalgic Accent Patterns */
body {
  background-color: var(--color-bg-vintage);
  background-image: repeating-linear-gradient(135deg, #FFFBEC 0px, #FFFBEC 37px, #FFD96B 38px, #FFD96B 44px);
  /* ultra subtle, gives a paper effect */
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  padding: 0;
}
.text-section {
  background: rgba(255,255,255,0.97);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  padding: 32px 20px;
  margin-bottom: 28px;
}

/* HEADER STYLES */
header {
  background: var(--color-vintage-yellow);
  border-bottom: 5px solid var(--color-vintage-brown);
  padding: 0 0 0 0;
  position: relative;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
header > a img {
  display: block;
  width: 180px;
  margin: 12px auto 10px 18px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}
header nav a {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.1rem;
  color: var(--color-primary);
  padding: 8px 18px;
  border-radius: var(--radius-s);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  text-shadow: 1px 1px 0 #FFF4B8;
}
header nav a.cta {
  background: var(--color-vintage-red);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-card);
  border: 2px solid #fff0;
  text-shadow: none;
}
header nav a.cta:hover, header nav a.cta:focus {
  background: #fff;
  color: var(--color-vintage-red);
  border: 2px solid var(--color-vintage-red);
  box-shadow: var(--shadow-hover);
}
header nav a:hover, header nav a:focus {
  background: var(--color-vintage-blue);
  color: var(--color-primary);
  box-shadow: var(--shadow-card);
}

/* BURGER MENU (MOBILE HEADER) */
.mobile-menu-toggle {
  display: none;
  background: var(--color-vintage-red);
  color: #fff;
  border: none;
  border-radius: var(--radius-s);
  font-size: 2.2rem;
  padding: 6px 16px;
  margin: 10px 18px 8px auto;
  cursor: pointer;
  z-index: 90;
  box-shadow: var(--shadow-card);
  transition: background var(--transition);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-vintage-brown);
  color: var(--color-vintage-red);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  inset: 0 0 0 0;
  background: rgba(35,46,58, 0.96);
  z-index: 2002;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.75,.04,.35,.98);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
  box-shadow: 0 0 0 10000px rgba(35,46,58,0.60);
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--color-vintage-red);
  border: none;
  color: #fff;
  border-radius: var(--radius-s);
  font-size: 2.2rem;
  margin: 22px 20px 0 0;
  cursor: pointer;
  padding: 6px 16px;
  box-shadow: var(--shadow-card);
  transition: background var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-vintage-yellow);
  color: var(--color-vintage-red);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 14px;
  margin-top: 40px;
  padding-left: 34px;
}
.mobile-nav a {
  font-family: 'Oswald', Arial, sans-serif;
  color: #fff;
  font-size: 1.3rem;
  padding: 14px 0 14px 0;
  border-radius: var(--radius-s);
  width: 92%;
  margin-bottom: 4px;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-vintage-blue);
  color: var(--color-vintage-red);
}
.mobile-nav a.cta {
  background: var(--color-vintage-red);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-card);
}

/* MAIN LAYOUT SECTIONS */
/* Section spacing patterns */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius-m);
  background: #FFF7E2;
  box-shadow: 0 2px 18px 0 rgba(226, 187, 90, 0.06);
}
.cta-banner {
  background: var(--color-vintage-yellow);
  box-shadow: 0 1px 18px 0 rgba(226, 187, 90, 0.08);
  border-radius: var(--radius-m);
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-banner .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* HERO Section */
.hero {
  background: repeating-linear-gradient(135deg, #FFD96B 0px, #FFD96B 40px, #fff7e2 41px, #fff7e2 88px);
  min-height: 340px;
  display: flex;
  align-items: center;
  border-radius: var(--radius-m);
  margin-bottom: 60px;
  box-shadow: var(--shadow-card);
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  max-width: 660px;
}

/* Features Grid & Items */
.features, .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: stretch;
}
.feature-grid {
  flex-direction: row;
  width: 100%;
}
.feature-grid li {
  background: #fff;
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-card);
  padding: 32px 20px 20px 20px;
  flex: 1 1 230px;
  min-width: 200px;
  max-width: 275px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  position: relative;
  border: 2px solid #F7D589;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-grid li img {
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
}
.feature-grid li:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px) scale(1.03);
}

/* CTA BUTTONS */
.cta {
  display: inline-block;
  background: var(--color-vintage-red);
  color: #fff;
  border: none;
  border-radius: var(--radius-m);
  font-family: 'Oswald', Arial, sans-serif;
  text-transform: uppercase;
  padding: 15px 34px;
  font-size: 1.22rem;
  letter-spacing: 2px;
  font-weight: 700;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  text-align: center;
  margin-top: 12px;
  margin-bottom: 6px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.cta:hover, .cta:focus {
  background: #fff;
  color: var(--color-vintage-red);
  box-shadow: var(--shadow-hover);
  border: 2px solid var(--color-vintage-red);
  text-shadow: 1px 2px 0 #F5A179;
  transform: translateY(-2px) scale(1.04);
}

/* Testimonials */
.testimonials .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: stretch;
}
.testimonial-card {
  background: #fff;
  color: #232E3A;
  border-radius: var(--radius-s);
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  border: 2px solid #F7D589;
  position: relative;
}
.testimonial-card .stars {
  display: flex;
  gap: 1px;
  margin-bottom: 6px;
}
.testimonial-card strong {
  margin-top: 4px;
  color: var(--color-vintage-red);
}
/* Ensure contrast */
.testimonials {
  background: #fff7e2;
}

/* Kontakt/Map/FAQ Sections */
.map, .faq, .contact-teaser {
  background: #fff;
  border-radius: var(--radius-m);
  margin-bottom: 28px;
  box-shadow: var(--shadow-card);
  padding: 32px 20px;
}
.contact-teaser img, .kontakt img {
  vertical-align: middle;
  width: 20px;
  margin-right: 8px;
}
.contact-teaser p a, .kontakt p a {
  color: var(--color-vintage-red);
  text-decoration: underline;
}
.contact-teaser p a:hover {
  color: var(--color-vintage-yellow);
}

/* Cards -- General */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius-s);
  padding: 22px 18px;
  box-shadow: var(--shadow-card);
  border: 2px solid #F7D589;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: scale(1.03);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* FLEX LAYOUTS */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Course Icons (Kurse) */
.course-icons {
  display: flex;
  gap: 18px;
  margin: 28px 0 10px 0;
  justify-content: flex-start;
}
.course-icons img {
  border-radius: 50%;
  border: 3px solid var(--color-vintage-yellow);
  background: #fff9d3;
  padding: 6px;
  width: 54px;
  height: 54px;
  transition: transform .22s, border .28s;
}
.course-icons img:hover {
  transform: scale(1.13) rotate(-7deg);
  border: 3px solid var(--color-vintage-red);
}

/* Pricing Table */
.pricing-table {
  width: 100%;
  margin: 20px 0;
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.pricing-table th {
  background: var(--color-vintage-yellow);
  color: var(--color-primary);
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.1rem;
  padding: 12px 6px;
}
.pricing-table td {
  background: #fff;
  color: var(--color-primary);
  padding: 12px 6px;
  border-bottom: 1px solid #ffedbe;
}
.pricing-table tr:last-child td {
  border-bottom: none;
}

/* FOOTER */
footer {
  background: var(--color-vintage-yellow);
  border-top: 5px solid var(--color-vintage-brown);
  margin-top: 60px;
  padding: 28px 0 14px 0;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 14px;
}
footer nav a {
  font-family: 'Oswald', Arial, sans-serif;
  color: var(--color-vintage-red);
  padding: 8px 14px;
  border-radius: var(--radius-s);
  font-weight: bold;
  transition: background var(--transition), color var(--transition);
  background: #fff7e2;
}
footer nav a:hover {
  background: var(--color-vintage-red);
  color: #fff;
}
.footer-info {
  text-align: center;
  font-size: 1rem;
  color: var(--color-primary);
  padding: 6px 0 0 0;
}

/* COOKIE BANNER & MODAL */
.cookie-banner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100%;
  background: var(--color-vintage-yellow);
  border-top: 4px solid var(--color-vintage-brown);
  box-shadow: 0 -4px 24px 0 rgba(210, 168, 72, 0.09);
  font-size: 1.12rem;
  padding: 18px 16px;
  z-index: 9002;
  gap: 16px;
  animation: cookieBannerIn 0.7s cubic-bezier(.18,.76,.53,.99);
}
@keyframes cookieBannerIn {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  flex: 1 1 auto;
  margin-right: 18px;
}
.cookie-btn, .cookie-settings-btn {
  padding: 8px 26px;
  border: none;
  border-radius: var(--radius-s);
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 1px;
  margin-left: 10px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.cookie-btn.accept {
  background: var(--color-vintage-green);
  color: var(--color-primary);
  font-weight: bold;
}
.cookie-btn.accept:hover { background: var(--color-vintage-blue); color: #fff; }
.cookie-btn.reject {
  background: var(--color-vintage-red);
  color: #fff;
  font-weight: bold;
}
.cookie-btn.reject:hover { background: var(--color-vintage-yellow); color: var(--color-vintage-red); }
.cookie-settings-btn {
  background: #fff;
  color: var(--color-vintage-red);
  border: 2px solid var(--color-vintage-red);
  font-weight: bold;
}
.cookie-settings-btn:hover {
  background: var(--color-vintage-red); color: #fff;
}

/* Cookie Modal Popup */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  inset: 0 0 0 0;
  background: rgba(35,46,58,0.62);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}
.cookie-modal-overlay.open {
  display: flex;
  animation: modalIn .36s cubic-bezier(.76,.18,.66,1);
}
@keyframes modalIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff7e2;
  padding: 28px 32px;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-hover);
  min-width: 310px;
  max-width: 90vw;
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalBoxIn .25s cubic-bezier(.35,.7,.41,1.06);
}
@keyframes modalBoxIn {
  from { transform: scale(.91); }
  to { transform: scale(1); }
}
.cookie-modal h3 {
  font-size: 1.33rem;
  color: var(--color-vintage-red);
  margin-bottom: 8px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}
.cookie-toggle {
  width: 46px;
  height: 26px;
  border-radius: 20px;
  background: var(--color-accent);
  position: relative;
  outline: 2px solid #F7D589;
  cursor: pointer;
  border: none;
  margin: 0 8px 0 0;
  appearance: none;
  transition: background 0.3s;
}
.cookie-toggle:checked {
  background: var(--color-vintage-green);
}
.cookie-toggle::after {
  content: '';
  position: absolute;
  left: 4px; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--color-vintage-yellow);
  transition: left 0.3s;
}
.cookie-toggle:checked::after {
  left: 24px;
  background: var(--color-vintage-red);
}
.cookie-category strong {
  min-width: 140px;
}
.cookie-modal .always-on {
  opacity: .72;
  color: #666;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  align-items: center;
}
.cookie-modal .modal-actions button {
  padding: 9px 22px;
  border-radius: var(--radius-s);
  font-size: 1rem;
  font-family: 'Oswald', Arial, sans-serif;
  cursor: pointer;
  border: none;
}
.cookie-modal .modal-actions .save {
  background: var(--color-vintage-green);
  color: var(--color-primary);
}
.cookie-modal .modal-actions .save:hover {
  background: var(--color-vintage-blue); color: #fff;
}
.cookie-modal .modal-actions .close {
  background: #fff;
  border: 2px solid var(--color-vintage-red);
  color: var(--color-vintage-red);
}
.cookie-modal .modal-actions .close:hover {
  background: var(--color-vintage-red); color: #fff;
}

/* TABLES, FAQ etc */
th, td {
  border-bottom: 1px solid #FFEFC2;
  padding: 10px 12px;
}

/* Responsive design (Mobile first) */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  section, .section, .cta-banner, .map, .faq, .contact-teaser, .text-section {
    padding: 18px 7px;
    margin-bottom: 34px;
    border-radius: var(--radius-s);
  }
  .hero {
    min-height: 170px;
    padding: 16px 8px;
  }
  .container {
    max-width: 100vw;
    padding: 0 7px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .content-wrapper, .content-grid, .feature-grid, .card-container, .testimonials .content-wrapper, .course-icons {
    flex-direction: column!important;
    align-items: stretch!important;
    gap: 13px!important;
  }
  .feature-grid li {
    max-width: 100%;
    min-width: 110px;
    padding: 20px 12px;
  }
  .testimonials .content-wrapper {
    gap: 18px !important;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 110px;
    padding: 12px 4px;
  }
  .cta {
    padding: 11px 0;
    width: 100%;
    min-width: 0;
    border-radius: var(--radius-s);
  }
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 16px;}
  .cookie-banner p { margin-right: 0; }
  .cookie-modal { padding: 16px 4px; }
}

/* Accessibility (focus styles, readable contrast) */
a, button, input, .cta, .cookie-btn, .cookie-settings-btn {
  outline: none;
  transition: outline 0.18s;
}
:focus-visible {
  outline: 3px dashed var(--color-vintage-red) !important;
  outline-offset: 2px;
}

/* Animations for micro-interactions */
.cta, .feature-grid li, .card, .cookie-btn, .cookie-settings-btn {
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}

/* Misc: Retro Details */
section, .section, .card, .text-section, .feature-grid li, .testimonials, .contact-teaser {
  box-shadow: 0 2px 10px 0 rgba(184,126,51,0.09);
}

/* Hide mobile menu when not open */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left:0; width: 100vw; height: 100vh;
  background: rgba(35,46,58, 0.97);
  z-index: 2002;
  pointer-events: none;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.75,.04,.35,.98), opacity .2s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* Ensure space between all content elements */
section > *, .section > *, .content-wrapper > *, .text-section > *, .card-container > *, .testimonials .testimonial-card, .feature-grid li, .course-icons img {
  margin-bottom: 20px;
}
section > *:last-child, .section > *:last-child, .content-wrapper > *:last-child, .text-section > *:last-child, .card-container > *:last-child, .testimonials .testimonial-card:last-child, .feature-grid li:last-child, .course-icons img:last-child {
  margin-bottom: 0;
}

/* Hide elements visually only (use for JS, e.g. closing modals) */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
