/* ===== 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: inherit;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section { display: block; }
body { line-height: 1.4; background: #F7F6F9; min-height: 100vh; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
table { border-collapse: collapse; border-spacing: 0; }
img { max-width: 100%; display: block; }

/* ====== BRAND / RETRO VINTAGE COLOR PALETTE ====== */
:root {
  --color-primary: #116A7B;   /* Brand Turquoise */
  --color-secondary: #352F44; /* Deep retro violet-brown */
  --color-accent: #F7F6F9;    /* Off-white, light background */
  --color-salmon: #F27D52;    /* Vintage orange/coral accent */
  --color-mustard: #F5C768;   /* Retro yellow/mustard */
  --color-peach: #FFD6AB;     /* Light warm accent */
  --color-off-black: #271C1C; /* Retro black for text */
  --color-ice: #E3F5F1;       /* Pale turquoise for backgrounds */
  --color-contrast: #fff;
}

/* ============= FONTS & TYPOGRAPHY ============= */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900|Montserrat:400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--color-off-black);
  font-size: 16px;
  background: var(--color-accent);
  letter-spacing: 0.01em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}
h1 { font-size: 2.8rem; margin-top: 0; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
p, li, address, cite, blockquote { font-size: 1rem; margin-bottom: 12px; }
strong, b { font-weight: 700; }
blockquote {
  font-family: 'Montserrat', serif;
  font-size: 1.18rem;
  font-style: italic;
  color: var(--color-secondary);
  background: var(--color-peach);
  border-left: 5px solid var(--color-mustard);
  padding: 18px 20px;
  border-radius: 0 14px 14px 0;
  margin-bottom: 14px;
  margin-top: 0;
}
cite {
  display: block;
  color: var(--color-primary);
  font-size: 0.98rem;
  font-weight: 600;
  margin-left: 24px;
  font-style: normal;
}
a {
  color: var(--color-primary);
  transition: color 0.2s;
  font-weight: 500;
}
a:hover, a:focus {
  color: var(--color-salmon);
  text-decoration: underline;
}

/* ============ LAYOUT CONTAINERS ============ */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  background: #FFF8F0;
  border-radius: 18px;
  box-shadow: 0 4px 14px 0 rgba(53,47,68,0.09);
  margin-bottom: 32px;
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ========== SPACING CLASSES AS MANDATED ========== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-ice);
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(53,47,68,0.08);
  padding: 28px 20px;
  min-width: 250px;
  flex: 1 1 250px;
}
.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;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(23,106,123,0.10);
  margin-bottom: 20px;
  max-width: 600px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
/* ============= RETRO ELEMENTS & DETAILS ============= */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 20px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: var(--color-peach);
  border-radius: 12px;
  box-shadow: 0 2px 10px 0 rgba(241, 189, 113, 0.09);
  flex: 1 1 230px;
  min-width: 180px;
  padding: 26px 20px 20px 20px;
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1.5px solid var(--color-mustard);
  transition: box-shadow 0.18s, transform 0.18s;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 24px -6px var(--color-primary);
  transform: translateY(-3px) scale(1.04);
}
.feature-grid img {
  width: 42px;
  height: 42px;
}
/* ========== RETRO PATTERNS / ACCENTS (SUBTLE) ========== */
.content-wrapper {
  background-image: repeating-linear-gradient(135deg, transparent 0 39px, #FAE0CD 40px 43px, transparent 44px 79px);
  background-size: 120px 120px;
  background-repeat: repeat;
}
@media (max-width: 768px) {
  .content-wrapper {
    background-size: 70px 70px;
    padding: 22px 10px;
  }
}

/* ============= HEADER & NAVIGATION ============= */
header {
  background: var(--color-primary);
  color: var(--color-contrast);
  box-shadow: 0 10px 24px -15px rgba(17,106,123,0.18);
  width: 100%;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 0;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 21px;
  align-items: center;
}
header a, header nav a {
  color: var(--color-contrast);
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition: color 0.17s;
}
header nav a:hover, header nav a:focus {
  color: var(--color-mustard);
}
header .cta-primary {
  margin-left: 26px;
}
header img {
  max-height: 54px;
  margin-right: 32px;
}

/* ============= RETRO BUTTONS/CTA ============= */
.cta-primary {
  display: inline-flex;
  align-items: center;
  padding: 13px 32px;
  background: var(--color-salmon);
  color: var(--color-off-black);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 1.13rem;
  border-radius: 25px;
  box-shadow: 0 3px 12px 0 rgba(241,118,57,0.14);
  border: 2px solid var(--color-mustard);
  margin-top: 8px;
  cursor: pointer;
  letter-spacing: 0.08em;
  transition: background 0.23s, color 0.23s, transform 0.16s, box-shadow 0.23s;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--color-mustard);
  color: var(--color-secondary);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 7px 24px -5px var(--color-salmon);
}

/* ============= RETRO TABLES (KURSPLAN ETC.) ============= */
table {
  width: 100%;
  background: var(--color-ice);
  border-radius: 11px;
  margin-bottom: 26px;
  font-size: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 16px 0 rgba(17,106,123,0.045);
}
thead tr {
  background: var(--color-primary);
  color: var(--color-contrast);
  font-family: 'Montserrat', Arial, sans-serif;
}
th, td {
  padding: 12px 10px;
  text-align: center;
  border-bottom: 1px solid var(--color-mustard);
}
caption {
  font-family: 'Montserrat', cursive;
  font-size: 1.15rem;
  color: var(--color-primary);
  margin-bottom: 9px;
  padding-top: 8px;
}
.legend {
  margin-bottom: 10px;
  color: var(--color-secondary);
  font-size: 1rem;
}

/* ========== ANNOUNCEMENTS & CHANGE LOG ========== */
.announcements {
  background: var(--color-peach);
  color: var(--color-secondary);
  border-left: 3px solid var(--color-mustard);
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 16px 17px;
  border-radius: 5px;
  margin-bottom: 18px;
}
.change-log {
  background: var(--color-ice);
  border-radius: 9px;
  padding: 14px 17px;
  color: var(--color-secondary);
}
.change-log h3 {
  color: var(--color-primary);
  font-size: 1.11rem;
  margin-bottom: 6px;
}
/* ============= RETRO ADDRESS/FOOTER ============= */
footer {
  background: var(--color-secondary);
  color: var(--color-accent);
  padding: 36px 0 24px 0;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
footer .content-wrapper {
  background: none;
  box-shadow: none;
  padding: 0;
  margin-bottom: 0;
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
footer nav a {
  color: var(--color-mustard);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  transition: color 0.15s;
}
footer nav a:hover, footer nav a:focus { color: var(--color-salmon); }
footer address {
  font-style: normal;
  color: var(--color-peach);
  font-size: 0.99rem;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
footer address span {
  display: flex;
  align-items: center;
  gap: 6px;
}
footer address img {
  width: 18px; height: 18px;
}
footer img {
  max-height: 44px;
  margin-bottom: 16px;
}

/* ============= TESTIMONIALS ============= */
.testimonial-card {
  border-left: 8px solid var(--color-primary);
  background: #FFF8F0;
  color: var(--color-off-black);
  margin-right: auto;
  max-width: 650px;
  transition: box-shadow 0.16s, transform 0.13s;
}
.testimonial-card:hover {
  box-shadow: 0 7px 22px 0 rgba(17,106,123,0.08);
  transform: translateY(-2px) scale(1.03);
}
.testimonial-card blockquote {
  border-left: none;
  background: none;
  padding: 0;
  margin: 0;
  color: var(--color-secondary);
}
.testimonial-card cite {
  color: var(--color-secondary);
  font-size: 0.95rem;
}

/* ============= MOBILE BURGER MENU ============= */
.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: var(--color-mustard);
  cursor: pointer;
  z-index: 1002;
  transition: color 0.18s;
  margin-left: 24px;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-secondary);
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.77,.2,.05,1);
  width: 100vw;
  height: 100vh;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  right: 28px;
  top: 30px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-mustard);
  cursor: pointer;
  z-index: 1003;
  transition: color 0.19s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-salmon);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 90px;
  padding-left: 38px;
}
.mobile-nav a {
  color: var(--color-mustard);
  font-size: 1.4rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 14px 0;
  border-bottom: 1px dashed var(--color-peach);
  transition: color 0.17s, background 0.17s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-salmon);
  background: #332937;
}

/* ============= COOKIE CONSENT BANNER ============= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1200;
  background: #FAE0CD;
  border-top: 2.2px solid var(--color-mustard);
  color: var(--color-off-black);
  box-shadow: 0 -5px 32px 0 rgba(32,32,32,0.11);
  padding: 22px 16px 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 21px;
}
.cookie-banner-content {
  max-width: 800px;
  font-size: 1.11rem;
  font-family: 'Open Sans';
  text-align: center;
  line-height: 1.5;
}
.cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 19px;
  margin-top: 7px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 21px;
  border: 2px solid var(--color-mustard);
  background: var(--color-mustard);
  color: var(--color-secondary);
  cursor: pointer;
  transition: background 0.14s, color 0.14s, transform 0.16s;
}
.cookie-btn:focus, .cookie-btn:hover {
  background: var(--color-salmon);
  color: var(--color-off-black);
  transform: translateY(-1px) scale(1.04);
}
.cookie-btn.settings {
  background: var(--color-peach);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-primary);
  color: var(--color-contrast);
}

/* ===== MODAL FOR COOKIE PREFERENCES ===== */
.cookie-modal-overlay {
  position: fixed;
  z-index: 1211;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(32,24,14,0.41);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.23s;
}
.cookie-modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #FFF8F0;
  border-radius: 26px;
  box-shadow: 0 8px 42px 0 rgba(53,47,68,0.19);
  max-width: 470px;
  width: 94vw;
  padding: 36px 32px 29px 32px;
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: relative;
  z-index: 1212;
  animation: modalPop 0.34s cubic-bezier(.17,.67,.47,1.45);
}
@keyframes modalPop {
  0% {transform: scale(0.82) translateY(40px); opacity:0;}
  85% {transform: scale(1.03) translateY(-6px); opacity: 1;}
  100% {transform: scale(1) translateY(0); opacity:1;}
}
.cookie-modal h2 {
  margin-bottom: 7px;
  font-size: 1.4rem;
  color: var(--color-primary);
}
.cookie-categories {
  display: flex; flex-direction: column; gap: 16px;
}
.cookie-category {
  display: flex; flex-direction: row; align-items: center;
  justify-content: space-between;
  background: var(--color-ice);
  border-radius: 10px;
  padding: 11px 14px;
}
.cookie-category label {
  font-size: 1.06rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-secondary);
  cursor: pointer;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  background: #DDD;
  border-radius: 20px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-toggle:checked {
  background: var(--color-mustard);
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 4px;
  top: 4px;
  width: 14px;
  height: 14px;
  background: #FFF;
  border-radius: 50%;
  transition: transform 0.18s;
  box-shadow: 0 1px 5px 0 rgba(80,80,80,0.08);
}
.cookie-toggle:checked:before {
  transform: translateX(16px);
}
.cookie-modal-btns {
  display: flex;
  flex-direction: row;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 10px;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: var(--color-salmon);
  position: absolute;
  right: 20px;
  top: 18px;
  font-size: 2rem;
  cursor: pointer;
}

/* ============= RESPONSIVE DESIGN ============= */
@media (max-width: 1080px) {
  .container { max-width: 95vw; }
  footer .container, footer .content-wrapper { gap: 22px; }
}
@media (max-width: 900px) {
  footer .container,
  footer .content-wrapper {
    flex-direction: column !important;
    gap: 22px;
  }
  footer nav { flex-direction: row; gap:22px; }
}
@media (max-width: 768px) {
  /* Header nav collapse, mobile menu hamburger visible */
  header nav { display: none !important; }
  .mobile-menu-toggle { display: inline-block; }
  footer .content-wrapper, footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .section {
    margin-bottom: 36px;
    padding: 26px 0px;
  }
  .card-container, .content-grid, .feature-grid, .text-image-section {
    flex-direction: column !important;
    gap: 18px !important;
  }
  .card, .feature-grid > div { min-width: 90vw; width: 100%; }
  .container { padding-left: 8px; padding-right: 8px; }
  .content-wrapper { padding: 16px 4px; }
}
@media (max-width: 510px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.3rem; }
  .card, .content-wrapper, .feature-grid > div {
    padding: 18px 3px !important;
    min-width: unset;
  }
  .cta-primary {
    font-size: 0.97rem;
    padding: 10px 11vw;
  }
  .cookie-modal { padding: 18px 7px 19px 7px; }
}

/* ============= MISCELLANEOUS CLASSES ============= */
.text-section ul {
  list-style: disc inside;
  margin-bottom: 16px;
  margin-left: 18px;
}
.text-section {
  margin-bottom: 14px;
}
.text-section strong { color: var(--color-primary); }

.legend span {
  display: inline-block;
  font-size: 0.97em;
  color: var(--color-secondary);
}
.filter-options ul {
  margin-left: 16px;
  list-style-type: circle;
}

/* ============= UTIL CLASSES AND FOCUS ============= */
:focus {
  outline: 2px dashed var(--color-primary);
  outline-offset: 2px;
}
.button,
button,
input[type="submit"] {
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 9px 22px;
  font-size: 1rem;
  border-radius: 20px;
  border: none;
  background: var(--color-mustard);
  color: var(--color-secondary);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 8px 0 rgba(245,199,104,0.09);
  transition: background .14s, color .14s, transform .13s;
}
.button:hover, button:hover, input[type="submit"]:hover {
  background: var(--color-salmon);
  color: var(--color-off-black);
}

/* ============= RETRO BORDERS, SHADOWS, ROUNDED ============= */
.card, .content-wrapper, .testimonial-card, .feature-grid > div, .cookie-modal {
  border-radius: 18px;
  box-shadow: 0 3px 19px 0 rgba(53,47,68,0.09);
}

/* ============= SELECTED ANIMATIONS ============= */
.cta-primary, .cookie-btn, .button, button {
  transition: background 0.18s, color 0.18s, transform 0.14s, box-shadow 0.22s;
}

/* ============= RETRO/NOSTALGIC MICRO-INTERACTIONS ============= */
.cta-primary:active,
.button:active,
.cookie-btn:active,
button:active {
  transform: scale(0.98);
  box-shadow: 0 2px 9px 0 rgba(53,47,68,0.17);
}
.feature-grid > div:active {
  transform: scale(0.98);
}

/* ============= SVG ICONS ============= */
img[alt*="icon-"] {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  width: 24px;
  height: 24px;
}

/* ================= END ================= */
