/* ============================
   Ridde Insal Sammlerclub — style.css
   Vibrant Energetic theme using brand palette
   Layouts: FLEXBOX ONLY (no grid/columns)
   ============================ */

/* ----------------------------
   CSS RESET / NORMALIZE
----------------------------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; }
ul, ol { padding-left: 1.2rem; }
:focus { outline: 3px solid #00E5FF; outline-offset: 2px; }

/* ----------------------------
   THEME TOKENS (brand-first)
----------------------------- */
:root {
  --color-primary: #1C2333; /* deep blue */
  --color-secondary: #8C6A3F; /* antique bronze */
  --color-accent: #F5F2EA; /* light accent */
  /* Energetic accents (for high-energy highlights) */
  --color-electric-cyan: #00E5FF;
  --color-electric-magenta: #FF3D81;
  --color-ink: #0B1324; /* dark ink for text on bright buttons */
  --color-white: #FFFFFF;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;

  --shadow-soft: 0 6px 18px rgba(28,35,51,0.12);
  --shadow-bold: 0 10px 30px rgba(28,35,51,0.22);

  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-20: 20px;
  --sp-24: 24px;
  --sp-30: 30px;
  --sp-32: 32px;
  --sp-40: 40px;
  --sp-60: 60px;
  --maxw: 1200px;
}

/* ----------------------------
   TYPOGRAPHY
----------------------------- */
body {
  font-family: Verdana, Arial, Helvetica, sans-serif; /* brand body */
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-primary);
  background: var(--color-white);
}
h1, h2, h3 {
  font-family: Georgia, 'Times New Roman', serif; /* brand display */
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: 34px; letter-spacing: 0.2px; }
h2 { font-size: 28px; margin-top: var(--sp-16); }
h3 { font-size: 22px; }

p { font-size: 16px; }
.subheadline { font-size: 18px; opacity: 0.95; }
.support-note { font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }
.accent { color: var(--color-secondary); font-weight: 700; }

/* Heading accent bars for energetic vibe */
h1, h2 {
  position: relative;
}
h2::before {
  content: "";
  display: block;
  width: 56px; height: 6px;
  background: var(--color-electric-magenta);
  border-radius: 3px;
  margin-bottom: var(--sp-16);
}

/* ----------------------------
   LAYOUT WRAPPERS (Flex-only)
----------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--sp-20);
  display: flex;
  flex-direction: column;
  gap: var(--sp-20);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--sp-24);
}

/* MANDATORY SPACING AND ALIGNMENT PATTERNS */
.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; }

/* Ensure minimum spacing between any direct children in content wrappers */
section > .container > .content-wrapper > * { margin-bottom: 0; }

/* ----------------------------
   HEADER / NAVIGATION
----------------------------- */
header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--color-white);
  box-shadow: 0 2px 14px rgba(28,35,51,0.06);
  border-bottom: 4px solid var(--color-electric-cyan);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-16);
  padding-top: var(--sp-12);
  padding-bottom: var(--sp-12);
}
.logo { display: flex; align-items: center; }
.logo img { height: 40px; width: auto; }

.main-nav { display: none; align-items: center; gap: var(--sp-20); }
.main-nav a {
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 10px 6px;
  border-radius: 6px;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}
.main-nav a:hover { color: var(--color-electric-magenta); background: rgba(255,61,129,0.08); transform: translateY(-1px); }
.main-nav a:focus { outline: 3px solid var(--color-electric-cyan); outline-offset: 2px; }

.header-cta { display: none; align-items: center; gap: var(--sp-12); }
.header-cta a {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 14px; border-radius: var(--radius-s);
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px;
  border: 2px solid var(--color-secondary);
  color: var(--color-white);
  background: var(--color-secondary);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 200ms ease, background-color 180ms ease, color 180ms ease;
}
.header-cta a:nth-child(2) {
  color: var(--color-secondary);
  background: transparent;
}
.header-cta a:hover { transform: translateY(-2px); box-shadow: var(--shadow-bold); }
.header-cta a:nth-child(2):hover { background: var(--color-accent); }

/* Mobile burger */
.mobile-menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--color-primary); color: var(--color-white);
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, background-color 160ms ease;
}
.mobile-menu-toggle:hover { transform: scale(1.04); background: #11182A; }
.mobile-menu-toggle:focus { outline: 3px solid var(--color-electric-magenta); outline-offset: 2px; }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; /* top:0 right:0 bottom:0 left:0 */
  background: var(--color-primary);
  color: var(--color-white);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;
  gap: var(--sp-24);
  padding: var(--sp-20);
  transform: translateX(100%);
  transition: transform 300ms ease;
  z-index: 2000;
}
.mobile-menu.open, .mobile-menu.active, .mobile-menu[aria-hidden="false"] { transform: translateX(0); }
.mobile-menu-close {
  align-self: flex-end;
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--color-electric-magenta); color: var(--color-white);
}
.mobile-nav { display: flex; flex-direction: column; gap: var(--sp-16); width: 100%; }
.mobile-nav a {
  display: flex; align-items: center; justify-content: flex-start;
  padding: 14px 12px; border-radius: 10px;
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px;
  background: rgba(245,242,234,0.06);
  border: 2px solid rgba(255,255,255,0.08);
  transition: background-color 160ms ease, transform 160ms ease;
}
.mobile-nav a:hover { background: rgba(0,229,255,0.15); transform: translateX(4px); }

/* ----------------------------
   HERO SECTION (energetic)
----------------------------- */
.hero {
  background: var(--color-primary);
  color: var(--color-white);
  border-bottom: 6px solid var(--color-electric-cyan);
}
.hero .container { padding-top: var(--sp-40); padding-bottom: var(--sp-40); }
.hero .content-wrapper { align-items: flex-start; }
.hero .subheadline { color: var(--color-accent); opacity: 1; }
.hero .support-note { color: var(--color-electric-cyan); }

.cta-row { display: flex; flex-wrap: wrap; gap: var(--sp-12); }
.cta-row a {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: var(--radius-m);
  font-weight: 900; text-transform: uppercase; letter-spacing: 0.8px;
  background: var(--color-electric-cyan); color: var(--color-ink);
  border: 2px solid var(--color-electric-cyan);
  box-shadow: 0 10px 24px rgba(0,229,255,0.25);
  transition: transform 180ms ease, box-shadow 200ms ease, background-color 180ms ease, color 180ms ease;
}
.cta-row a:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(0,229,255,0.35); }
.cta-row a:nth-child(2) { background: transparent; color: var(--color-white); border-color: var(--color-electric-magenta); box-shadow: 0 10px 24px rgba(255,61,129,0.25); }
.cta-row a:nth-child(2):hover { background: var(--color-electric-magenta); color: var(--color-white); }

/* ----------------------------
   GENERIC SECTION STYLES
----------------------------- */
main section { padding: var(--sp-32) 0; }
section .text-section { display: flex; flex-direction: column; gap: var(--sp-16); }
.text-section p { color: var(--color-primary); }
.text-section ul, .text-section ol { display: flex; flex-direction: column; gap: 10px; margin-left: 1.2rem; }
.text-section ul li::marker { color: var(--color-electric-magenta); font-weight: 700; }
.text-section ol li::marker { color: var(--color-secondary); font-weight: 700; }

/* Icon lines inside contact paragraphs */
.text-section p img { display: inline-block; width: 18px; height: 18px; margin-right: 8px; vertical-align: text-bottom; }

/* Feature / card look for content blocks if used */
.card {
  background: var(--color-white);
  border: 1px solid rgba(28,35,51,0.08);
  border-radius: var(--radius-m);
  padding: var(--sp-20);
  box-shadow: var(--shadow-soft);
}

/* Testimonials (light bg with dark text for readability) */
.testimonial-card {
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: var(--radius-m);
  border: 2px solid rgba(28,35,51,0.08);
  box-shadow: var(--shadow-soft);
  margin-bottom: var(--sp-20);
}
.testimonial-card p { margin: 0; }
.testimonial-card p + p { opacity: 0.9; }
.testimonial-card::before {
  content: "";
  width: 6px; height: 100%;
  background: var(--color-electric-magenta);
  border-top-left-radius: var(--radius-m);
  border-bottom-left-radius: var(--radius-m);
  align-self: stretch;
}

/* Footer */
footer {
  background: var(--color-primary);
  color: var(--color-white);
  margin-top: var(--sp-40);
  border-top: 6px solid var(--color-secondary);
}
footer .container { padding-top: var(--sp-32); padding-bottom: var(--sp-32); }
footer .content-wrapper { gap: var(--sp-20); }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--sp-16); }
.footer-nav a { color: var(--color-white); opacity: 0.9; padding: 6px 8px; border-radius: 6px; transition: background-color 160ms ease, color 160ms ease; }
.footer-nav a:hover { background: rgba(0,229,255,0.15); color: var(--color-electric-cyan); }
address { font-style: normal; opacity: 0.95; }

/* Links inline inside text */
.text-section a { color: var(--color-secondary); border-bottom: 2px solid rgba(140,106,63,0.35); transition: color 160ms ease, border-color 160ms ease; }
.text-section a:hover { color: var(--color-electric-magenta); border-color: var(--color-electric-magenta); }

/* ----------------------------
   COOKIE CONSENT BANNER
----------------------------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 3000;
  background: var(--color-accent);
  color: var(--color-primary);
  border-top: 4px solid var(--color-electric-cyan);
  box-shadow: 0 -8px 24px rgba(28,35,51,0.18);
  display: none; /* hidden by default */
}
.cookie-banner.show { display: flex; }
.cookie-banner .container {
  flex-direction: row; align-items: center; justify-content: space-between; gap: var(--sp-20);
  padding-top: var(--sp-16); padding-bottom: var(--sp-16);
}
.cookie-text { display: flex; flex-direction: column; gap: 6px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: var(--sp-12); }
.btn-cookie { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: var(--radius-s); font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease; }
.btn-accept { background: var(--color-electric-magenta); color: var(--color-white); }
.btn-accept:hover { transform: translateY(-2px); box-shadow: var(--shadow-bold); }
.btn-reject { background: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); }
.btn-reject:hover { background: rgba(28,35,51,0.08); }
.btn-settings { background: var(--color-secondary); color: var(--color-white); }
.btn-settings:hover { transform: translateY(-2px); box-shadow: var(--shadow-bold); }

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed; inset: 0; z-index: 4000; display: none;
  background: rgba(12,16,26,0.6);
  align-items: center; justify-content: center; padding: var(--sp-20);
}
.cookie-modal.show { display: flex; }
.cookie-modal .modal-panel {
  background: var(--color-white);
  color: var(--color-primary);
  width: 100%; max-width: 720px;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-bold);
  display: flex; flex-direction: column; gap: var(--sp-20);
  padding: var(--sp-24);
  border: 3px solid var(--color-electric-cyan);
}
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-16); }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: var(--sp-16); }
.cookie-toggle { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-16); padding: 12px; border: 1px solid rgba(28,35,51,0.12); border-radius: 12px; }
.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: var(--sp-12); justify-content: flex-end; }

/* ----------------------------
   RESPONSIVE BEHAVIOR
----------------------------- */
/* Mobile-first: column stacks already in place */

/* Text + image sections on mobile stack column */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
}

@media (min-width: 769px) {
  /* Show desktop nav, hide burger */
  .main-nav { display: flex; }
  .header-cta { display: flex; }
  .mobile-menu-toggle { display: none; }

  h1 { font-size: 48px; }
  h2 { font-size: 36px; }
  h3 { font-size: 24px; }

  .hero .container { padding-top: 64px; padding-bottom: 64px; }

  /* Align header items better on wide */
  header .container { gap: var(--sp-24); }
}

/* Larger desktops */
@media (min-width: 1200px) {
  .logo img { height: 48px; }
}

/* ----------------------------
   UTILITIES & MICRO-INTERACTIONS
----------------------------- */
.shadow-soft { box-shadow: var(--shadow-soft); }
.rounded { border-radius: var(--radius-m); }
.bg-accent { background: var(--color-accent); }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }

/* Subtle fade-in for sections */
@keyframes fadeRise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
section .content-wrapper { animation: fadeRise 420ms ease both; }

/* ----------------------------
   ACCESSIBILITY & STATES
----------------------------- */
a, button { transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease; }
a:focus, button:focus { outline: 3px solid var(--color-electric-cyan); outline-offset: 2px; }

/* ----------------------------
   ENSURE ADEQUATE GAPS BETWEEN COMPONENTS
----------------------------- */
section .testimonial-card + .testimonial-card { margin-top: var(--sp-20); }
section .cta-row { margin-top: var(--sp-12); }

/* ----------------------------
   FLEX CONTAINERS FOR COMMON GROUPINGS
----------------------------- */
.footer-nav, .header-cta, .main-nav, .cta-row, .cookie-actions, .mobile-nav, .content-grid, .card-container, .text-image-section, .testimonial-card { display: flex; }

/* ----------------------------
   PRINT BASICS
----------------------------- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  body { color: #000; }
}
