/* === 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, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline;
}
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body { line-height: 1.5; background: #F9F6F2; color: #2E2B26; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img, svg { max-width: 100%; vertical-align: middle; }

/* === Root Variables - Vintage Retro Palette === */
:root {
  --primary: #1A3D6D;
  --secondary: #F4F8FB;
  --accent: #E6A900;
  --vintage-red: #B14D38;
  --vintage-blue: #3D70A2;
  --vintage-green: #687D59;
  --vintage-bg: #F9F6F2;
  --vintage-brown: #D3C1A5;
  --vintage-shadow: rgba(34,23,5,0.13);
  --card-radius: 14px;
  --card-border: 2px solid #E6A900;
  --button-shadow: 0 3px 10px rgba(30, 18, 2, 0.12);
  --font-display: 'Montserrat', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Roboto', 'Tahoma', Arial, sans-serif;
}

/* === Typography === */
body {
  font-family: var(--font-body);
  background-color: var(--vintage-bg);
  font-size: 16px;
  color: #2E2B26;
  letter-spacing: 0.01em;
}
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 2px 0 var(--vintage-brown);
  letter-spacing: 0.025em;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem;  margin-bottom: 16px; }
h3 { font-size: 1.3rem; margin-bottom: 14px; }
h4, h5 { font-size: 1.1rem; margin-bottom: 10px; }
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}
p, li, blockquote {
  font-size: 1rem;
  margin-bottom: 12px;
  line-height: 1.65;
  color: #382F21;
}
blockquote {
  font-family: var(--font-display);
  font-size: 1.13rem;
  font-style: italic;
  background: var(--vintage-brown);
  border-left: 6px solid var(--accent);
  padding: 16px 22px 16px 34px;
  margin: 0 0 8px 0;
  border-radius: 0 16px 16px 0;
}
strong, b {
  font-weight: 700;
  color: var(--vintage-red);
}

/* === Container & Layout === */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  position: relative;
  background: var(--secondary);
  border-radius: var(--card-radius);
  box-shadow: 0 4px 18px var(--vintage-shadow);
  border: 1.4px dashed var(--vintage-brown);
}
@media (max-width: 990px) {
  .section { padding: 26px 8px; margin-bottom: 34px; }
  .container { padding: 0 6px; }
}

/* === Header (Retro Banner) === */
header {
  width: 100%;
  background: var(--primary);
  border-bottom: 4px solid var(--accent);
  box-shadow: 0 8px 22px var(--vintage-shadow);
  position: relative;
  z-index: 50;
}
header .container {
  flex-direction: row;
  align-items: center;
  gap: 32px;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}
header img { height: 48px; }

/* --- Main Nav --- */
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #FFF;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.2s, color 0.22s;
  position: relative;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--accent);
  color: var(--primary);
  text-shadow: none;
}
.main-nav .cta-primary {
  background: var(--accent);
  color: var(--primary);
  font-weight: bold;
  box-shadow: var(--button-shadow);
  text-shadow: none;
  border: none;
  letter-spacing: 1px;
  padding: 10px 22px;
  margin-left: 14px;
  border-radius: 18px 4px 16px 20px;
  transition: background 0.18s, color 0.22s, box-shadow 0.22s;
}
.main-nav .cta-primary:hover,
.main-nav .cta-primary:focus {
  background: var(--vintage-red);
  color: #FFF;
  box-shadow: 0 8px 24px var(--vintage-shadow);
}

/* --- Mobile Menu Toggle --- */
.mobile-menu-toggle {
  font-size: 2rem;
  line-height: 1;
  padding: 4px 12px;
  display: none;
  background: var(--accent);
  border-radius: 14px;
  color: var(--primary);
  border: none;
  cursor: pointer;
  box-shadow: var(--button-shadow);
  z-index: 101;
  transition: background 0.19s, color 0.21s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--vintage-red);
  color: #FFF;
}

/* --- Mobile Menu Overlay --- */
.mobile-menu {
  position: fixed;
  z-index: 200;
  top: 0; right: 0; left: 0; bottom: 0;
  background: rgba(242, 234, 207, .94);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.77,.2,.05,1.0);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  font-size: 2.3rem;
  color: var(--primary);
  background: none;
  border: none;
  margin: 24px 32px 0 0;
  cursor: pointer;
  z-index: 202;
  transition: color 0.19s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--vintage-red);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 32px;
  align-items: flex-end;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.28rem;
  padding: 10px 0;
  color: var(--primary);
  background: transparent;
  width: 100%;
  text-align: right;
  border-bottom: 1px dashed var(--accent);
  transition: color 0.23s, background 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--vintage-red);
  background: var(--vintage-brown);
}
@media (max-width: 990px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  header .container { gap: 0; }
}
@media (min-width: 991px) {
  .mobile-menu { display: none !important; }
}

/* === Hero Section - Vintage Effects === */
.hero {
  background: repeating-linear-gradient(-45deg, var(--secondary) 0 40px, var(--vintage-brown) 40px 80px);
  text-align: center;
  border-bottom: 3px dotted var(--accent);
  position: relative;
  margin-bottom: 60px;
  padding: 49px 0 43px 0;
  box-shadow: 0 9px 24px var(--vintage-shadow);
}
.hero h1 {
  color: var(--vintage-red);
  font-size: 2.8rem;
  text-shadow: 2px 4px 0 var(--vintage-brown);
  margin-bottom: 12px;
}
.hero p { max-width: 650px; margin: 0 auto; margin-bottom: 24px; font-size: 1.18rem; color: #2E2B26; }
.hero .cta-primary { margin-top: 12px; }
.hero.confirmation { background: var(--vintage-green); color: #FFF; }

/* === Features Section === */
.features {
  background: var(--secondary);
  border-radius: 12px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 3px 16px var(--vintage-shadow);
}
.features h2 { color: var(--vintage-blue); }
.features ul, .feature-grid, .course-overview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-grid > li, .course-overview-grid > li, .features ul > li {
  background: #FFFDF7;
  border: 1.5px solid var(--accent);
  border-radius: 10px;
  box-shadow: 0 2px 10px var(--vintage-shadow);
  padding: 22px 18px 18px 18px;
  flex: 1 1 232px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  font-size: 1rem;
  transition: box-shadow .2s, border .24s;
  margin-bottom: 20px;
}
.feature-grid > li img, .course-overview-grid > li img, .features ul > li img { width: 32px; margin-right: 10px; }
.feature-grid > li:hover, .course-overview-grid > li:hover, .features ul > li:hover {
  border: 1.5px solid var(--vintage-blue);
  box-shadow: 0 8px 34px var(--vintage-shadow);
}
.features ul > li {
  align-items: center;
  gap: 10px;
}
/* Responsive flex direction for feature grids */
@media (max-width: 768px) {
  .feature-grid, .course-overview-grid, .features ul {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > li, .course-overview-grid > li, .features ul > li {
    min-width: 0; width: 100%;
    margin-bottom: 14px;
  }
}

/* === Card Container Patterns === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 10px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #FFFDF7;
  border-radius: var(--card-radius);
  border: var(--card-border);
  box-shadow: 0 2px 12px var(--vintage-shadow);
  padding: 28px 19px;
  flex: 1 1 260px;
  transition: box-shadow .18s, border .14s;
}
.card:hover {
  border-color: var(--vintage-blue);
  box-shadow: 0 9px 32px var(--vintage-shadow);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
@media (max-width: 900px) {
  .content-grid { flex-direction: column; gap: 24px; }
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; gap: 16px; }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === Testimonials === */
.testimonials {
  background: var(--vintage-brown);
  padding: 42px 0 46px 0;
  margin-bottom: 60px;
}
.testimonials h2 {
  text-align: center;
  margin-bottom: 36px;
  color: var(--primary);
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #FFFDF7;
  box-shadow: 0 2px 12px var(--vintage-shadow);
  border: 2px solid var(--accent);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  transition: box-shadow 0.22s, border .18s;
}
.testimonial-card:hover {
  border-color: var(--vintage-blue);
  box-shadow: 0 10px 36px var(--vintage-shadow);
}
.testimonial-card blockquote {
  color: #232118;
  background: transparent;
  border-left: 0;
  padding: 0;
  margin-bottom: 10px;
  text-align: center;
}
.testimonial-author {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--vintage-red);
  letter-spacing: 0.05em;
}
@media (max-width: 768px) {
  .testimonial-card { padding: 14px 10px; max-width: 100%; }
  .testimonials { padding: 24px 0; }
}

/* === Tables (for Preise) === */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: #FFFDF7;
  margin-bottom: 22px;
  box-shadow: 0 2px 10px var(--vintage-shadow);
  border-radius: 12px;
  overflow: hidden;
  font-size: 1rem;
  margin-top: 6px;
}
.pricing-table th, .pricing-table td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--accent);
  text-align: center;
  font-family: var(--font-display);
}
.pricing-table th {
  background: var(--vintage-brown);
  color: var(--primary);
  font-weight: 700;
}
.pricing-table tr:last-child td {
  border-bottom: none;
}

/* === FAQ Accordion === */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq-accordion > div {
  background: #FFFDF7;
  border-radius: 12px;
  box-shadow: 0 0.5px 7px var(--vintage-shadow);
  padding: 18px 22px;
  border: 1.5px dashed var(--accent);
  margin-bottom: 8px;
  transition: box-shadow .18s;
}
.faq-accordion > div:hover {
  box-shadow: 0 8px 18px var(--vintage-shadow);
}
.faq-accordion h3 {
  font-size: 1.12rem;
  color: var(--vintage-blue);
}

/* === CTA Final === */
.cta-final {
  background: #F8E9D2;
  box-shadow: 0 2px 9px var(--vintage-shadow);
  border-radius: 16px;
  margin-bottom: 60px;
  padding: 38px 18px 30px 18px;
  text-align: center;
  border: 1.5px solid var(--accent);
}
.cta-final .cta-primary {
  margin-top: 18px;
}

/* === About/Legal/Text Sections === */
.about-teaser, .about, .about-methodology, .legal, .contact-info {
  background: #FFFDF7;
  border-radius: 14px;
  margin-bottom: 60px;
  padding: 38px 18px 28px 18px;
  box-shadow: 0 2px 13px var(--vintage-shadow);
  border: 1.2px solid var(--vintage-brown);
}
.text-section {
  margin-bottom: 22px;
  font-size: 1.07rem;
  line-height: 1.7;
  color: #3C3A23;
}
.text-section ul { padding-left: 16px; margin-bottom: 12px; }
.text-section li { margin-bottom: 8px; position: relative; }
.text-section li::before {
  content: '◉';
  color: var(--accent);
  margin-right: 10px;
  font-size: 0.86em;
}

/* === Contact Info Section === */
.contact-info .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
  justify-content: flex-start;
}
.contact-info .text-section, .contact-info .map-embed, .contact-info .cta-section {
  padding: 20px; background: #F7F3E6; border-radius: 8px; margin-bottom:18px; border: 1px solid var(--vintage-brown); box-shadow: 0 .5px 3px var(--vintage-shadow);
}
.contact-info .cta-section a {
  margin-top: 8px;
}
@media (max-width: 700px) {
  .contact-info .content-wrapper > * { padding: 14px 7px; }
}

/* === Footer (Vintage Shadow + Pattern) === */
footer {
  background: repeating-linear-gradient(90deg, var(--secondary) 0 70px, var(--vintage-brown) 70px 100px);
  border-top: 5px solid var(--accent);
  box-shadow: 0 -7px 22px var(--vintage-shadow);
  padding: 28px 0 0 0;
  position: relative;
  margin-top: 68px;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  gap: 32px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  font-family: var(--font-body);
  color: var(--primary);
  font-size: 1rem;
  opacity: 0.87;
  padding: 4px 0;
  transition: color 0.19s, opacity 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--vintage-red);
  opacity: 1;
}
.footer-contact {
  font-size: 1rem;
  color: #3F3331; 
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-contact img { width: 18px; margin: 0 8px -3px 0; }
@media (max-width: 700px) {
  footer .container { flex-direction: column; gap: 18px; }
}

/* === Buttons & Links === */
.cta-primary, .button, button, input[type="submit"] {
  display: inline-block;
  font-family: var(--font-display);
  background: var(--accent);
  color: var(--primary);
  font-weight: bold;
  font-size: 1.14rem;
  padding: 13px 34px;
  border: none;
  border-radius: 16px 6px 12px 18px;
  box-shadow: var(--button-shadow);
  cursor: pointer;
  transition: background 0.22s, color 0.22s, box-shadow 0.21s, transform 0.13s;
  margin-right: 10px;
  margin-bottom: 5px;
  text-shadow: none;
}
.cta-primary:hover, .cta-primary:focus, .button:hover, .button:focus, button:hover, button:focus, input[type="submit"]:hover, input[type="submit"]:focus {
  background: var(--vintage-red);
  color: #FFF;
  box-shadow: 0 8px 36px var(--vintage-shadow);
  transform: translateY(-2px) scale(1.03);
}
a.button, a.cta-primary { text-align: center; }

/* === Microinteractions === */
a, button, .cta-primary, .main-nav a, .mobile-menu-toggle {
  transition: background .14s, color .24s, box-shadow .17s, transform .14s;
}

/* === Form Elements === */
input, textarea, select {
  font-family: var(--font-body);
  padding: 9px 14px;
  border-radius: 8px;
  border: 1.2px solid var(--vintage-brown);
  font-size: 1.02rem;
  width: 100%;
  background: #FFFDF7;
  margin-bottom: 14px;
  outline: none;
  transition: border-color .19s, background .19s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  background: #F9F6F2;
}

/* === Responsive Layout === */
@media (max-width: 1100px) {
  .container { max-width: 97vw; }
}
@media (max-width: 768px) {
  .footer-nav, .footer-contact, header .container { flex-direction: column; gap: 14px; align-items: flex-start; }
  .features, .about, .about-teaser, .about-methodology, .legal, .contact-info, .cta-final, .section, .testimonials { padding: 22px 5px !important; }
}

/* === Cookie Consent Banner === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2500;
  background: var(--secondary);
  color: var(--primary);
  font-family: var(--font-body);
  box-shadow: 0 -2px 32px #a3843c1c;
  border-top: 2.5px solid var(--accent);
  padding: 18px 13px 18px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  animation: cookie-slide-in 0.47s cubic-bezier(.71,.18,.24,1.11);
}
@keyframes cookie-slide-in {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 1; transform: none; }
}
.cookie-banner-text { flex: 2 1 200px; font-size: 0.98rem; }
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}
.cookie-banner .button, .cookie-banner .cta-primary, .cookie-banner button {
  font-size: 1rem;
  padding: 9px 19px;
  border-radius: 12px 8px 10px 8px;
}
.cookie-banner .accept {
  background: var(--accent); color: var(--primary);
}
.cookie-banner .accept:hover { background: var(--vintage-green); color: #fff; }
.cookie-banner .reject {
  background: #EEE8D5; color: var(--vintage-red);
}
.cookie-banner .reject:hover { background: var(--vintage-red); color: #fff; }
.cookie-banner .settings {
  background: var(--primary); color: #fff;
}
.cookie-banner .settings:hover { background: var(--accent); color: var(--primary); }

@media (max-width: 700px) {
  .cookie-banner { flex-direction: column; gap: 12px; padding: 13px 5px; align-items: flex-start; }
  .cookie-banner-actions { width: 100%; justify-content: flex-end; }
}

/* === Cookie Preferences Modal === */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(49,43,24,0.63);
  z-index: 2600;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.open { opacity: 1; pointer-events: all; }
.cookie-modal {
  min-width: 320px;
  max-width: 420px;
  background: #FFFDF7;
  border: 2px solid var(--accent);
  border-radius: 18px;
  box-shadow: 0 10px 44px rgba(89,68,19,0.17);
  padding: 34px 22px 9px 22px;
  color: var(--primary);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: modal-in .32s cubic-bezier(.18,.57,.46,1.13);
}
@keyframes modal-in {
  from { transform: translateY(80px) scale(0.93); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.cookie-modal h3 { margin-top: 0; color: var(--vintage-red); font-size: 1.22rem; }
.cookie-modal .modal-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: none;
  color: var(--primary);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2700;
}
.cookie-modal .cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 6px;
  border-bottom: 1px dashed var(--accent);
  font-size: 1rem;
  color: var(--primary);
}
.cookie-modal .cookie-category.essential {
  color: var(--vintage-green);
  font-weight: 600;
}
.cookie-modal label {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--accent);
  width: 19px; height: 19px;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal .save {
  background: var(--accent); color: var(--primary); font-weight: bold;
}
.cookie-modal .cancel {
  background: #F4F4EF; color: var(--vintage-red);
}
.cookie-modal .save:hover { background: var(--vintage-green); color: #fff; }
.cookie-modal .cancel:hover { background: var(--vintage-red); color: #fff; }
@media (max-width: 500px) {
  .cookie-modal { min-width: 0; width: 97vw; max-width: 97vw; padding: 14px 4vw 8px 4vw; }
}

/* === Misc Vintage/Nostalgic Elements === */
body {
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='32' viewBox='0 0 40 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cellipse cx='20' cy='16' rx='19.6' ry='14.2' fill='%23e6a900' fill-opacity='0.02'/%3E%3Cellipse cx='20' cy='16' rx='15' ry='8' fill='%231a3d6d' fill-opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 140px 96px;
}
hr {
  border: 0; border-top: 2px dashed var(--accent); margin: 27px 0;
}

/* === Accessibility & Utility Classes === */
.sr-only { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* === Hide last margin for sections === */
main > section:last-child { margin-bottom: 0; }

/* === Prevent card overlap & extra margin spacing === */
.card, .testimonial-card, .features ul > li, .feature-grid > li, .course-overview-grid > li,
.section, .about-teaser, .about, .cta-final, .legal, .about-methodology, .text-section, .faq-accordion > div {
  margin-bottom: 24px;
}
main > section:not(:last-child) { margin-bottom: 60px; }

/* === Print-friendly minimal reset === */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
}
