/* --------------------- CSS RESET & BASE ---------------------- */
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 {
  font-size: 100%;
  scroll-behavior: smooth;
}
body {
  background: #fff;
  color: #222;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
a {
  color: #F28705;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #314C40;
  outline: none;
}
ul, ol {
  margin-left: 1.5em;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}
::-webkit-input-placeholder { color: #8c8c8c; }
::-moz-placeholder { color: #8c8c8c; }
:-ms-input-placeholder { color: #8c8c8c; }
::placeholder { color: #8c8c8c; }

/* ------------------- BRAND & COLOR VARIABLES ------------------- */
:root {
  --color-primary: #314C40;
  --color-secondary: #F28705;
  --color-accent: #F2D16D;
  --color-white: #fff;
  --color-grey-bg: #FAFAF7;
  --color-dark: #191b1a;
  --color-highlight: #FA3757;
  --color-success: #2EC49C;
  --color-danger: #F6511C;
  --shadow-elev: 0 4px 24px rgba(44,68,81,0.12);
}

/* ----------- TYPOGRAPHY (VIBRANT & BOLD) ----------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--color-primary);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 0.5em;
  line-height: 1.1;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 0.4em;
}
h2 {
  font-size: 2rem;
  margin-bottom: 0.4em;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4em;
}
h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3em;
}
p, li {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: var(--color-dark);
}
.subheadline {
  font-size: 1.2rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 30px;
  letter-spacing: 0.2px;
}
strong, b {
  font-weight: 700;
}

/* ----------------- CONTAINER & SPACING ----------------- */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
@media (min-width: 900px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-grey-bg);
  border-radius: 24px;
  box-shadow: var(--shadow-elev);
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
@media (min-width: 800px) {
  .content-wrapper.text-section {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
  }
}

.text-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.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;
  }
}

/* ------------- FLEX PATTERNS FOR LAYOUT ------------- */
.card-container, .feature-grid, .service-cards, .team-bios-grid, .service-listing, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card, .service-card, .feature-item, .testimonial-card, .team-bio {
  margin-bottom: 20px;
  position: relative;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(49, 76, 64, 0.10);
  min-width: 230px;
  max-width: 450px;
  flex: 1 1 280px;
  font-size: 1.08em;
  margin-bottom: 20px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  position: relative;
}
.testimonial-card strong {
  color: var(--color-primary);
  margin-left: 16px;
  font-size: 1em;
  font-weight: 800;
  letter-spacing: 0;
}
@media (max-width: 800px) {
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    min-width: 180px;
    max-width: 100%;
  }
}

.team-bios-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.team-bios-grid > div {
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(49,76,64,0.10);
  padding: 22px 28px 18px 28px;
  min-width: 220px;
  max-width: 310px;
  flex: 1 1 220px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
}

.service-card {
  background: var(--color-white);
  border-radius: 18px;
  box-shadow: 0 3px 14px rgba(242,135,5,0.09);
  padding: 28px 24px 22px 24px;
  flex: 1 1 255px;
  min-width: 225px;
  max-width: 365px;
  transition: box-shadow 0.25s, transform 0.2s;
  border: 2px solid var(--color-secondary);
}
.service-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 30px rgba(49,76,64,0.13);
  border-color: var(--color-primary);
}

.feature-grid > div, .service-listing > div {
  background: var(--color-accent);
  border-radius: 16px;
  box-shadow: 0 1px 7px rgba(242,135,5,0.09);
  padding: 20px 16px 18px 16px;
  min-width: 200px;
  max-width: 315px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: transform 0.15s, box-shadow 0.14s;
}
.feature-grid > div:hover, .service-listing > div:hover {
  transform: scale(1.04);
  box-shadow: 0 5px 16px rgba(49,76,64,0.08);
}
.feature-grid img, .service-listing img {
  width: 48px;
  height: 48px;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.participant-feedback ul, .success-stories ul, .faq ul, .topic-overview ul, .topics-overview ul, .event-schedule ul { 
  list-style: disc;
  padding-left: 1.2em;
}

/* ------- BUTTONS & INTERACTIVES (VIBRANT, BOLD) ------- */
.button, button, .primary, .secondary {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  display: inline-block;
  padding: 12px 32px;
  min-width: 140px;
  border-radius: 25px;
  border: none;
  background: var(--color-secondary);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 2px 10px rgba(242,135,5,0.12);
  margin: 12px 8px 0 0;
  position: relative;
  transition: background 0.22s, transform 0.22s, box-shadow 0.22s;
  outline: none;
}
.button.primary, .primary {
  background: var(--color-secondary);
  color: #fff;
  border: 2px solid var(--color-secondary);
}
.button.secondary, .secondary {
  background: var(--color-accent);
  color: var(--color-primary);
  border: 2px solid var(--color-secondary);
}
.button:hover, button:hover, .primary:hover, .button.secondary:hover, .secondary:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 5px 16px rgba(49,76,64,0.16);
  border-color: var(--color-primary);
}
.button:focus, button:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

/* ----------- HEADER & NAVBAR ----------- */
header {
  width: 100%;
  background: var(--color-white);
  box-shadow: 0 2px 14px rgba(49,76,64,0.08);
  z-index: 1010;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  position: relative;
}
header img[alt="LatinoLernreise"] {
  height: 48px;
  width: auto;
  margin-right: 12px;
}
nav {
  display: flex;
  gap: 18px;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  padding: 4px 10px;
  border-radius: 12px;
  transition: color 0.17s, background 0.15s;
}
nav a:hover, nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}
header .button.primary {
  margin-left: auto;
}
header .mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: 16px;
  font-size: 32px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  transition: background 0.16s, color 0.16s;
  z-index: 1201;
  cursor: pointer;
}
header .mobile-menu-toggle:hover, header .mobile-menu-toggle:focus {
  background: var(--color-primary);
  color: #F2D16D;
}

/* ----------- MOBILE NAVIGATION ----------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(49,76,64,0.97);
  z-index: 1200;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 24px 0 0 0;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.41,0.8,0.30,1.05), opacity 0.2s;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.2rem;
  border: none;
  margin: 0 24px 24px 0;
  cursor: pointer;
  align-self: flex-end;
  transition: color 0.14s;
  z-index: 1202;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-secondary);
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 36px;
  gap: 18px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  color: #fff;
  background: none;
  padding: 10px 3px;
  border-radius: 10px;
  transition: background 0.15s, color 0.15s;
  margin-bottom: 1px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
  background: rgba(242,135,5,0.13);
}
@media (max-width: 1024px) {
  nav, header .button.primary {
    display: none;
  }
  header .mobile-menu-toggle {
    display: flex;
  }
}

/* ------------- HERO SECTIONS -------------- */
section:first-child {
  background: linear-gradient(95deg, #F2D16D 68%, #F28705 100%);
  border-radius: 0 0 48px 48px;
  padding-top: 48px;
  margin-bottom: 60px;
  box-shadow: 0 8px 34px rgba(49,76,64,0.10);
}
section:first-child h1 {
  color: var(--color-primary);
  font-size: 2.7rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  text-shadow: 0 4px 28px #fff3ce;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
section:first-child .subheadline {
  color: var(--color-secondary);
  margin-bottom: 28px;
  font-weight: 700;
}
@media (max-width: 768px) {
  section:first-child {
    border-radius: 0 0 28px 28px;
    padding-top: 32px;
  }
  section:first-child h1 {
    font-size: 2rem;
  }
}

/* ------------- GENERAL SPACING & LAYOUTS ------------- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 600px) {
  section {
    padding: 28px 6px;
    margin-bottom: 40px;
  }
}

.card, .service-card, .team-bios-grid > div {
  margin-bottom: 20px;
}
.card-container, .service-cards, .team-bios-grid {
  gap: 24px;
}

/* ------------- TABLES (KURSE-PROGRAMME) ------------- */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--color-white);
  margin-top: 16px;
  border-radius: 16px;
  box-shadow: 0 2px 9px rgba(49,76,64,0.07);
  overflow: hidden;
}
table caption {
  caption-side: top;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.1em;
  color: var(--color-secondary);
  margin-bottom: 12px;
}
thead {
  background: var(--color-accent);
}
thead th, tbody td {
  padding: 14px 8px;
  text-align: center;
  border-bottom: 1px solid #ececec;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
}
tr:last-child td {
  border-bottom: none;
}

/* ---------- CONTACT & INFO BLOCKS ----------- */
.contact-snippet, .address-details, .opening-hours, .phone-email {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.contact-snippet p, .address-details p, .phone-email p, .opening-hours p {
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-snippet img, .address-details img, .phone-email img, .opening-hours img {
  width: 22px;
  height: 22px;
}

/* ------------ FOOTER -------------- */
footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 34px 0 0 0;
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -2px 16px rgba(49,76,64,0.12);
  margin-top: 44px;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-navigation {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-right: 14px;
}
.footer-navigation a {
  color: var(--color-accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  transition: color 0.15s;
}
.footer-navigation a:hover,
.footer-navigation a:focus {
  color: var(--color-secondary);
}
.address-block p {
  color: #fafafa;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.5;
}
.social-links {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 0;
}
.social-links a img {
  border-radius: 12px;
  background: var(--color-white);
  height: 34px;
  width: 34px;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 7px rgba(242,135,5,0.10);
}
.social-links a:hover img {
  background: var(--color-accent);
}
@media (max-width: 860px) {
  footer .container {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
}

/* ------------------- COOKIE BANNER ------------------- */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--color-primary);
  color: #fff;
  width: 100vw;
  z-index: 3000;
  box-shadow: 0 -4px 18px rgba(49,76,64,0.22);
  padding: 18px 10px 16px 14px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.11rem;
  transition: transform 0.25s, opacity 0.20s;
  opacity: 1;
  border-radius: 18px 18px 0 0;
}
.cookie-consent-banner.hide {
  transform: translateY(100%);
  opacity: 0;
}
.cookie-consent-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  margin-left: 16px;
}
.cookie-consent-banner .button,
.cookie-consent-banner button {
  min-width: 110px;
  font-size: 0.96rem;
  padding: 8px 20px;
  border-radius: 20px;
  box-shadow: none;
  margin: 0 2px;
  font-weight: 700;
}
.cookie-consent-banner .button.accept {
  background: var(--color-success);
  border: 2px solid var(--color-success);
}
.cookie-consent-banner .button.accept:hover {
  background: #1bad86;
  border-color: #1bad86;
}
.cookie-consent-banner .button.reject {
  background: var(--color-danger);
  border: 2px solid var(--color-danger);
}
.cookie-consent-banner .button.reject:hover {
  background: #bf2f0c;
  border-color: #bf2f0c;
}
.cookie-consent-banner .button.settings {
  background: var(--color-accent);
  color: var(--color-primary);
  border: 2px solid var(--color-secondary);
}
.cookie-consent-banner .button.settings:hover {
  background: var(--color-secondary);
  color: #fff;
}
@media (max-width: 600px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 13px 8px 10px 6px;
    font-size: 1rem;
    gap: 10px;
  }
  .cookie-consent-banner .cookie-buttons {
    margin-left: 0;
    justify-content: flex-end;
  }
}

/* ------------ COOKIE MODAL OVERLAY ------------- */
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  z-index: 3200;
  background: rgba(49,76,64,0.73);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.22s;
  opacity: 1;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  color: var(--color-primary);
  border-radius: 21px;
  box-shadow: 0 6px 38px rgba(49,76,64,0.21);
  padding: 30px 24px 20px 24px;
  max-width: 420px;
  min-width: 260px;
  font-family: 'Montserrat', Arial, sans-serif;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal h3 {
  color: var(--color-secondary);
  font-size: 1.5rem;
  margin-bottom: 12px;
  font-weight: 800;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.7rem;
  background: none;
  border: none;
  color: var(--color-secondary);
  cursor: pointer;
  transition: color 0.15s;
}
.cookie-modal .modal-close:hover {
  color: var(--color-primary);
}
.cookie-categories {
  padding: 5px 0 10px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-categories label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
}
.cookie-categories input[type="checkbox"] {
  accent-color: var(--color-secondary);
  width: 18px; height: 18px;
}
.cookie-categories input[disabled] {
  accent-color: #aaa;
}
.cookie-modal .button {
  margin-right: 10px;
}

/* ------------ FAQ, LIST, & MISC ------------- */
.faq-preview ul, .faq ul, .success-stories ul, .participant-feedback ul {
  margin-top: 10px;
  margin-bottom: 10px;
}

.faq-preview ul li, .faq ul li {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 7px;
}

/* ------------- UTILITY CLASSES  -------------- */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }

.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }

.rounded { border-radius: 18px !important; }

.centered { text-align: center; justify-content: center !important; align-items: center !important; }

/* -------- ANIMATIONS, MICRO-INTERACTIONS ------- */
.button, .service-card, .feature-grid > div, .testimonial-card, .team-bios-grid > div, .mobile-menu, .mobile-menu-close, .cookie-consent-banner, .cookie-modal {
  transition: box-shadow 0.21s, background 0.17s, color 0.18s, transform 0.23s;
}

@media (max-width: 1050px) {
  .card-container, .feature-grid, .service-cards, .team-bios-grid, .service-listing, .testimonial-list, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .team-bios-grid > div, .service-card {
    max-width: 100%;
    min-width: 160px;
  }
}

@media (max-width: 650px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }
  .section, section { padding: 20px 5px; }
  .service-card, .feature-grid > div, .team-bios-grid > div, .testimonial-card { padding: 13px 10px; min-width: 0; }
}

/* ------- HIDE DECORATIVE IMAGES ON TINY MOBILE -------- */
@media (max-width: 480px) {
  .feature-grid img, .service-listing img, .contact-snippet img {
    display: none;
  }
}

/* --------------- ADDITIONAL STYLES --------------- */
.upcoming-event-list, .topics-overview, .event-schedule, .topic-overview {
  margin-top: 12px;
  background: var(--color-white);
  border-radius: 10px;
  padding: 12px 15px 8px 17px;
  box-shadow: 0 2px 8px rgba(49,76,64,0.06);
  font-family: 'Roboto', Arial, sans-serif;
}

.address-details, .opening-hours, .phone-email {
  flex-direction: column;
  gap: 6px;
}

/* --------------- PRINT STYLES --------------- */
@media print {
  header, footer, .button, .cookie-consent-banner, .mobile-menu { display: none !important; }
  section, .container, main, .content-wrapper, .text-section { background: #fff !important; color: #191b1a !important; box-shadow: none !important; }
}
