/* ===============================
   WissensGalaxie Dresden – VINTAGE RETRO STYLE
   Author: Senior CSS Developer
   =============================== */

/* ============ 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;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #f7f3ee;
  color: #222227;
  min-height: 100vh;
  font-family: 'Open Sans', Arial, sans-serif;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}
a {
  color: #236980;
  text-decoration: none;
  transition: color 0.3s;
}
a:hover, a:focus {
  color: #173256;
}
ul, ol {
  margin-left: 26px;
  margin-bottom: 24px;
}
li+li {
  margin-top: 12px;
}

/* ======== VINTAGE RETRO COLOR PALETTE (extending brand) ======== */
:root {
  --brand-primary: #173256;
  --brand-secondary: #3CA6A6;
  --brand-accent: #F2E9E1;
  --vintage-yellow: #F8CB2E;
  --vintage-red: #B14D3E;
  --vintage-blue: #3880A3;
  --vintage-brown: #A47149;
  --vintage-olive: #647B5C;
  --vintage-cream: #f7eedd;
  --neutral-dark: #2b2b32;
  --neutral-light: #fffdf7;
  --shadow-card: 0 4px 14px 0 rgba(50,36,20,0.08),0 2px 4px 0 rgba(110,100,90,0.11);
  --border-radius: 14px;
}

/* =============== RETRO TYPOGRAPHY =============== */
@import url('https://fonts.googleapis.com/css?family=Montserrat: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: 'Montserrat', 'Arial Rounded MT Bold', 'Arial', sans-serif;
  color: var(--brand-primary);
  font-weight: 900;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.3rem;
  line-height: 1.1;
  margin-bottom: 24px;
  text-shadow: 2px 2px 0 var(--vintage-yellow), 0 1px 8px var(--vintage-cream);
}
h2 {
  font-size: 1.6rem;
  line-height: 1.18;
  margin-bottom: 20px;
  color: var(--vintage-red);
  text-shadow: 1.5px 1.5px 0 var(--vintage-yellow);
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--vintage-blue);
}
.subheadline {
  font-size: 1.125rem;
  font-family: 'Open Sans', sans-serif;
  font-style: italic;
  color: var(--vintage-brown);
  margin-bottom: 32px;
  line-height: 1.5;
}
p, .text-section, li {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #26211a;
  margin-bottom: 18px;
  line-height: 1.7;
}
strong {
  font-weight: 700;
  color: var(--brand-primary);
}
em {
  font-style: italic;
  color: var(--vintage-brown);
}

/* =============== LAYOUT CONTAINERS =============== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--brand-accent);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  margin-bottom: 20px;
  background: var(--vintage-cream);
  position: relative;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 26px;
  min-width: 250px;
  flex: 1 1 250px;
  max-width: 340px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.card:hover {
  box-shadow: 0 6px 20px 0 rgba(90,65,40,0.16),0 2px 4px 0 rgba(100,89,80,0.16);
  transform: translateY(-5px) scale(1.03);
}

.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;
  margin-bottom: 20px;
  border-radius: var(--border-radius);
  background: #fffdf7;
  box-shadow: var(--shadow-card);
  border: 2px dashed var(--vintage-olive);
  position: relative;
}
.testimonial-card p {
  font-size: 1rem;
  color: var(--neutral-dark);
  margin-bottom: 0;
}
.testimonial-card blockquote {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.12rem;
  color: var(--brand-primary);
  background: var(--vintage-yellow);
  padding: 14px 22px;
  border-radius: 10px;
  line-height: 1.7;
  margin-bottom: 0;
  box-shadow: 0 2px 12px 0 rgba(222,189,98,0.09);
  position: relative;
  quotes: "\201E" "\201C";
}
.testimonial-card blockquote:before {
  content: open-quote;
  color: var(--vintage-red);
  font-size: 2rem;
  margin-right: 4px;
}

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

.text-section ul,
.section ul,
.section ol {
  margin-left: 24px;
  margin-bottom: 22px;
}

/* Spacing between elements */
.section + .section {
  margin-top: 38px;
}

/* =============== HEADER & NAVIGATION =============== */
header {
  width: 100%;
  background: var(--vintage-yellow);
  border-bottom: 3px solid var(--vintage-brown);
  padding: 21px 0 19px 0;
  box-shadow: 0 1px 10px 0 rgba(210,184,51,0.08);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 950;
}
header > a > img {
  height: 62px;
  width: auto;
  margin-right: 24px;
}

.main-nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  flex: 1 1 auto;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.06rem;
  color: var(--brand-primary);
  padding: 5px 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  border-radius: 20px;
  position: relative;
  transition: background 0.25s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--vintage-olive);
  color: #fff;
}

.btn-primary {
  color: var(--vintage-yellow);
  background: var(--vintage-red);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  outline: none;
  padding: 11px 34px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  cursor: pointer;
  box-shadow: 0 2px 10px 0 rgba(190,64,76,0.08);
  margin-left: 18px;
  transition: background 0.24s, color 0.19s, transform 0.18s;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--vintage-brown);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}

.mobile-menu-toggle {
  background: var(--vintage-brown);
  color: var(--vintage-yellow);
  font-size: 2rem;
  border: none;
  border-radius: 8px;
  padding: 9px 17px;
  margin-left: 16px;
  cursor: pointer;
  display: none;
  z-index: 1501;
  transition: background 0.19s, color 0.14s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--brand-primary);
  color: var(--vintage-yellow);
}

/* =============== MOBILE NAVIGATION =============== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(28,17,4, 0.92);
  z-index: 1700;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.42s cubic-bezier(0.77,0,0.18,1), opacity 0.3s;
}
.mobile-menu.active {
  transform: translateX(0%);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: var(--vintage-yellow);
  color: var(--brand-primary);
  font-size: 2.2rem;
  border: none;
  border-radius: 50%;
  margin: 20px 0 0 18px;
  padding: 5px 14px;
  align-self: flex-start;
  cursor: pointer;
  box-shadow: 0 3px 12px 0 rgba(230,170,40,0.08);
  transition: background 0.21s, color 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--vintage-red);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
  margin-top: 36px;
  padding-left: 36px;
}
.mobile-nav a {
  color: var(--vintage-yellow);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  letter-spacing: 1.3px;
  padding: 14px 0;
  border-radius: 6px;
  margin-right: 22px;
  transition: color 0.24s, background 0.18s;
  font-weight: 700;
  outline: none;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--brand-primary);
  color: #fff;
  padding-left: 16px;
}

/* =============== MAIN LAYOUT & CONTENT =============== */
main {
  margin: 0 0 60px 0;
  width: 100%;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--brand-accent);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
}
section:first-of-type {
  background: var(--vintage-yellow);
  box-shadow: 0 4px 24px 0 rgba(220,186,68,0.13);
}
/* Classic retro halftone pattern overlay (decorative, not functional) */
section:after {
  content: '';
  display: block;
  pointer-events: none;
  position: absolute;
  right: 24px; 
  bottom: 18px;
  width: 48px;
  height: 48px;
  opacity: 0.15;
  z-index: 1;
  background: url('data:image/svg+xml;utf8,<svg fill="%23B14D3E" width="40" height="40" xmlns="http://www.w3.org/2000/svg"><circle cx="5" cy="5" r="2"/><circle cx="20" cy="10" r="2.2"/><circle cx="33" cy="29" r="1.8"/></svg>') no-repeat;
}

.content-wrapper > *:not(:last-child) {
  margin-bottom: 18px;
}
.text-section {
  font-size: 1.06rem;
  color: var(--neutral-dark);
  background: #fffdf7;
  padding: 16px 22px;
  border-radius: 11px;
  box-shadow: 0 1px 6px 0 rgba(190,160,80,0.06);
  margin-bottom: 14px;
}

/* =============== FOOTER =============== */
footer {
  width: 100%;
  background: var(--vintage-blue);
  color: #fff;
  padding: 40px 0 18px 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--vintage-yellow);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 1.1px;
  transition: color 0.22s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--vintage-cream);
  text-decoration: underline;
}
.footer-branding {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-size: 1rem;
}
.footer-branding img {
  height: 34px;
  width: auto;
}
.footer-branding span {
  color: var(--vintage-yellow);
  font-family: 'Open Sans', sans-serif;
  font-size: 0.98rem;
  margin-left: 6px;
}

/* =============== BUTTONS & INTERACTIONS =============== */
.btn-primary,
section a.btn-primary,
p a.btn-primary {
  text-decoration: none;
}
a.btn-primary {
  display: inline-block;
  margin-top: 12px;
}

button {
  font-family: inherit;
  font-size: 1rem;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
}
button:focus {
  outline: 2px solid var(--vintage-red);
  outline-offset: 2px;
}

/* =============== RETRO DECORATIVE EFFECTS =============== */
section, .testimonial-card, .card {
  position: relative;
  overflow: hidden;
}
/* Top corner stamp/mark */
section:before {
  content: '';
  display: block;
  border-top: 14px solid var(--vintage-red);
  border-right: 14px solid transparent;
  width: 0;
  height: 0;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
}
/* Subtle dot corner for cards */
.card:before {
  content: '';
  position: absolute;
  top: 13px; left: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--vintage-yellow);
  opacity: 0.47;
}

/* =============== FORMS (if used) =============== */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 8px;
  border: 1.8px solid var(--vintage-red);
  padding: 8px 13px;
  margin-bottom: 18px;
  background: #fffdf7;
  color: var(--neutral-dark);
  transition: border 0.22s, background 0.16s;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--vintage-olive);
  background: var(--brand-accent);
}

/* =============== COOKIE CONSENT BANNER =============== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: var(--brand-primary);
  color: var(--vintage-yellow);
  box-shadow: 0 -2px 16px 0 rgba(23,50,86,0.09);
  z-index: 2002;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 32px 20px 26px 20px;
  transition: transform 0.44s cubic-bezier(0.77,0,0.18,1), opacity 0.3s;
  opacity: 1;
}
.cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  font-size: 1rem;
  margin-bottom: 0;
  color: var(--vintage-yellow);
}
.cookie-banner button {
  margin-left: 12px;
  border-radius: 22px;
  padding: 10px 30px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  border: none;
  margin-right: 6px;
  transition: background 0.22s, color 0.17s;
  cursor: pointer;
}
.cookie-accept {
  background: var(--vintage-yellow);
  color: var(--brand-primary);
}
.cookie-accept:hover {
  background: var(--vintage-red);
  color: #fff;
}
.cookie-reject {
  background: var(--vintage-red);
  color: var(--vintage-yellow);
}
.cookie-reject:hover {
  background: var(--brand-primary);
  color: #fff;
}
.cookie-settings {
  background: var(--vintage-olive);
  color: #fff;
}
.cookie-settings:hover {
  background: var(--vintage-yellow);
  color: var(--brand-primary);
}

/* Cookie preferences modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(23,50,86,0.68);
  z-index: 3010;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}
.cookie-modal-overlay.hide {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.cookie-modal {
  background: var(--vintage-cream);
  border-radius: 18px;
  max-width: 440px;
  box-shadow: 0 10px 28px 0 rgba(52,32,4, 0.17);
  padding: 36px 28px 32px 28px;
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal h2 {
  font-size: 1.28rem;
  color: var(--vintage-red);
  margin-bottom: 8px;
}
.cookie-modal .category-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 13px;
}
.cookie-modal label {
  font-size: 1.02rem;
  color: var(--brand-primary);
}
.cookie-modal .category-toggle {
  accent-color: var(--brand-secondary);
  width: 18px; height: 18px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--vintage-yellow);
  color: var(--brand-primary);
  font-size: 1.5rem;
  border: none;
  border-radius: 50%;
  padding: 4px 11px;
  cursor: pointer;
  transition: background 0.16s, color 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--vintage-red);
  color: #fff;
}

/* =============== RESPONSIVE DESIGN =============== */
@media (max-width: 1024px) {
  .container {
    max-width: 94vw;
  }
  header > a > img {
    height: 48px;
    margin-right: 13px;
  }
}

@media (max-width: 900px) {
  .main-nav {
    gap: 8px;
  }
  .footer-branding {
    flex-wrap: wrap;
  }
  .footer-branding img {
    height: 28px;
  }
}

@media (max-width: 768px) {
  /* NAV RESPONSIVE */
  .main-nav, .btn-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header {
    flex-direction: row;
    gap: 8px;
    padding: 16px 0 14px 0;
  }
  .footer-nav {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  section {
    padding: 29px 7px;
    margin-bottom: 38px;
  }
  .content-wrapper {
    gap: 14px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 14px;
    padding: 14px 10px;
  }
  .feature-item {
    gap: 8px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .cookie-modal {
    padding: 20px 8px 20px 8px;
    max-width: 97vw;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    padding: 18px 10px 16px 10px;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.45rem; margin-bottom: 13px; }
  h2 { font-size: 1.09rem; margin-bottom: 11px; }
  .subheadline { font-size: 1rem; }
  .content-wrapper { gap: 9px; }
}

/* =============== VISUAL HIERARCHY & MICRO-INTERACTIONS =============== */
.card, .testimonial-card, .btn-primary, .mobile-menu, .mobile-menu-close,
.cookie-banner, .cookie-modal, .cookie-modal-close {
  transition: box-shadow 0.25s, transform 0.22s, opacity 0.21s, background 0.23s, color 0.17s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 7px 34px 0 rgba(160,120,60,0.15);
  transform: scale(1.015);
}
.btn-primary:active {
  transform: scale(0.97);
}
.mobile-nav a:active { transform: scale(0.99); }

/* ===== Accessibility: Ensure readable contrast on testimonials ===== */
.testimonial-card,
.testimonial-card blockquote {
  color: #190e04;
  background: #fffdf7;
}
.testimonial-card strong {
  color: var(--brand-primary);
  background: none;
}

/* ======= Utility ====== */
.d-none { display: none !important; }
.d-flex { display: flex !important; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

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