/* ==========================================================
   Blooming Journey Rentenkompass — style.css
   Design: tech_futuristic (gradient-capable with solid fallbacks)
   Layout: Flexbox ONLY (no CSS Grid / no Columns)
   Typography: Georgia (display), Verdana (body)
   ========================================================== */

/* -------------------------------
   1) CSS Reset / Base Normalize
   ------------------------------- */
* { box-sizing: border-box; }
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; vertical-align: baseline; }
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section { display: block; }
body { line-height: 1; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; height: auto; }
button { background: none; border: none; cursor: pointer; font: inherit; }
:focus { outline: none; }
:focus-visible { outline: 2px solid #00E5FF; outline-offset: 2px; }

/* -------------------------------
   2) Root Variables (Brand + Futuristic Accents)
   ------------------------------- */
:root {
  --primary: #1E3A5F; /* deep brand blue */
  --secondary: #2A7F62; /* teal */
  --accent: #F2F5F9; /* light ui */
  --bg-deep: #0B1220; /* deep space blue for tech feel */
  --bg-elev: #111B2E; /* elevated surface */
  --text: #E6EEF8; /* light text on dark */
  --text-muted: #A9B6C7; /* muted */
  --ink: #162133; /* dark ink for light surfaces */
  --ink-muted: #324158;
  --neon-cyan: #00E5FF; /* neon accent */
  --neon-magenta: #FF4DFF; /* secondary neon */
  --success: #34D399;
  --warning: #F59E0B;
  --danger: #EF4444;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow-soft: 0 6px 18px rgba(0,0,0,0.2);
  --shadow-strong: 0 20px 50px rgba(0,0,0,0.35);
  --ring: 0 0 0 3px rgba(0,229,255,0.3);
  --container: 1200px;
  --transition: 220ms ease;
}

/* -------------------------------
   3) Typography
   ------------------------------- */
html { font-size: 16px; }
body {
  background-color: var(--bg-deep);
  color: var(--text);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { font-family: Georgia, 'Times New Roman', serif; color: #FFFFFF; letter-spacing: 0.2px; }

h1 { font-size: 2rem; line-height: 1.15; margin-bottom: 16px; }
h2 { font-size: 1.5rem; line-height: 1.25; margin-bottom: 16px; }
h3 { font-size: 1.25rem; line-height: 1.25; margin-bottom: 10px; }

p { font-size: 1rem; line-height: 1.7; color: var(--text); margin-bottom: 14px; }
small { font-size: 0.85rem; color: var(--text-muted); }
.subheadline { color: var(--text-muted); font-size: 1.05rem; }
strong { font-weight: 700; }

/* Responsive Type Scale */
@media (min-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.3rem; }
}
@media (min-width: 1024px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2rem; }
}

/* -------------------------------
   4) Containers & Structural Layout (Flex only)
   ------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  display: flex; /* Flex only */
  flex-direction: column; /* Mobile-first */
  gap: 16px;
}

/* Mandatory spacing patterns */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: var(--bg-elev); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); padding: 20px; border: 1px solid rgba(0,229,255,0.12); }
.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 consistent section spacing even when no .section class is present */
main > section { margin-bottom: 60px; padding: 40px 0; }

/* -------------------------------
   5) Header & Navigation
   ------------------------------- */
header {
  position: sticky; top: 0; z-index: 1000;
  background-color: rgba(11, 18, 32, 0.8);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(0,229,255,0.08);
}
header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; padding: 14px 0; }

.logo img { height: 36px; width: auto; filter: drop-shadow(0 2px 8px rgba(0,229,255,0.15)); }

.main-nav { display: none; align-items: center; gap: 16px; }
.main-nav a {
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition), box-shadow var(--transition);
}
.main-nav a[aria-current="page"], .main-nav a:hover {
  background: rgba(0,229,255,0.08);
  box-shadow: inset 0 0 0 1px rgba(0,229,255,0.25);
}

.header-ctas { display: none; align-items: center; gap: 10px; }

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  color: var(--text);
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.25);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.mobile-menu-toggle:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,229,255,0.2); }
.mobile-menu-toggle:active { transform: translateY(0); }

/* Desktop nav visibility */
@media (min-width: 992px) {
  .main-nav { display: flex; }
  .header-ctas { display: flex; }
  .mobile-menu-toggle { display: none; }
}

/* -------------------------------
   6) Mobile Menu (overlay, slide-in)
   ------------------------------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1200; /* covers full screen */
  display: flex; flex-direction: column; /* Flex only */
  background: rgba(6, 10, 20, 0.6);
  backdrop-filter: blur(8px);
  transform: translateX(100%);
  transition: transform 300ms ease;
}
/* Use aria-hidden to control state */
.mobile-menu[aria-hidden="false"] { transform: translateX(0); }

/* Drawer content container */
.mobile-menu nav.mobile-nav {
  margin-left: auto; /* slide from right */
  height: 100%; width: 86%; max-width: 420px;
  background: linear-gradient(180deg, #0E1A2C 0%, #0B1220 100%);
  border-left: 1px solid rgba(0,229,255,0.25);
  box-shadow: var(--shadow-strong);
  padding: 80px 24px 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.mobile-menu-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 44px; height: 44px; border-radius: 10px;
  color: var(--text);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(0,229,255,0.25);
}
.mobile-nav a {
  color: var(--text);
  padding: 14px 12px; border-radius: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.mobile-nav a:hover { background: rgba(0,229,255,0.08); transform: translateX(4px); box-shadow: inset 0 0 0 1px rgba(0,229,255,0.25); }
.mobile-nav a[aria-current="page"] { background: rgba(0,229,255,0.12); box-shadow: inset 0 0 0 1px rgba(0,229,255,0.35); }

/* -------------------------------
   7) Hero Sections
   ------------------------------- */
.hero {
  background-color: var(--bg-elev); /* fallback solid */
  background-image: linear-gradient(180deg, rgba(30,58,95,0.45), rgba(42,127,98,0.25)); /* simple gradient for tech vibe */
  border-bottom: 1px solid rgba(0,229,255,0.08);
}
.hero .content-wrapper { padding: 28px 0; }
.hero h1 { text-shadow: 0 6px 28px rgba(0, 229, 255, 0.15); }
.hero .subheadline { max-width: 68ch; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-ctas .btn { transform: translateZ(0); }

/* Trust badges */
.trust-badges ul { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.trust-badges li { display: flex; align-items: center; gap: 8px; color: var(--text-muted); background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); padding: 10px 12px; border-radius: 12px; }
.trust-badges img { width: 18px; height: 18px; filter: drop-shadow(0 0 6px rgba(0,229,255,0.4)); }

/* -------------------------------
   8) Text Sections & Lists
   ------------------------------- */
.text-section { display: flex; flex-direction: column; gap: 12px; }
.text-section ul, .text-section ol { display: flex; flex-direction: column; gap: 10px; padding-left: 0; }
.text-section ul li, .text-section ol li { color: var(--text); background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.08); padding: 10px 12px; border-radius: 12px; }
.text-section ul li img { width: 18px; height: 18px; margin-right: 6px; }
.text-section p + ul, .text-section p + ol { margin-top: 6px; }
.text-section h3 + p { margin-top: -6px; }

/* -------------------------------
   9) Buttons
   ------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: 12px; font-weight: 700; letter-spacing: 0.2px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--secondary);
  color: #0A1A14;
  border-color: rgba(0,229,255,0.25);
  box-shadow: 0 10px 24px rgba(42,127,98,0.35), 0 0 0 1px rgba(0,229,255,0.1) inset;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(42,127,98,0.45), 0 0 16px rgba(0,229,255,0.28); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: rgba(0,229,255,0.1);
  color: var(--text);
  border-color: rgba(0,229,255,0.35);
  box-shadow: 0 8px 22px rgba(0,229,255,0.15) inset;
}
.btn-secondary:hover { background: rgba(0,229,255,0.16); box-shadow: 0 0 0 1px rgba(0,229,255,0.5) inset, 0 8px 24px rgba(0,229,255,0.25); transform: translateY(-2px); }

.btn:focus-visible { box-shadow: var(--ring); }

/* -------------------------------
   10) Testimonials (light background, dark text, AA contrast)
   ------------------------------- */
.testimonial-card {
  background: #FFFFFF; /* light */
  color: var(--ink); /* dark text */
  border: 1px solid #E0E7EF;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
}
.testimonial-card p { color: var(--ink); }
.testimonial-card strong { color: #0B1A2E; }

/* -------------------------------
   11) Footer
   ------------------------------- */
footer {
  background: #0A1426;
  border-top: 1px solid rgba(0,229,255,0.08);
}
footer .content-wrapper { padding: 28px 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-nav a { color: var(--text-muted); padding: 8px 10px; border-radius: 8px; transition: background var(--transition), color var(--transition); }
.footer-nav a:hover { color: #FFFFFF; background: rgba(0,229,255,0.08); }

/* -------------------------------
   12) Utility Surfaces & Cards
   ------------------------------- */
.surface {
  background: var(--bg-elev);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* Generic card styling if needed */
.card .title { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; color: #FFFFFF; }

/* -------------------------------
   13) Images & Icons
   ------------------------------- */
.text-section img, .trust-badges img { flex-shrink: 0; }

/* -------------------------------
   14) Links
   ------------------------------- */
a { color: #9AD8FF; transition: color var(--transition), text-shadow var(--transition); }
a:hover { color: #C0ECFF; text-shadow: 0 0 10px rgba(0,229,255,0.4); }

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

/* Desktop spacing */
@media (min-width: 992px) {
  .content-wrapper { gap: 24px; }
  main > section { padding: 60px 0; }
}

/* -------------------------------
   16) Forms (basic if used later)
   ------------------------------- */
input, select, textarea {
  width: 100%; background: #0E1A2C; color: var(--text);
  border: 1px solid rgba(0,229,255,0.25);
  border-radius: 10px; padding: 12px 14px; transition: box-shadow var(--transition), border-color var(--transition);
}
input:focus, select:focus, textarea:focus { box-shadow: var(--ring); border-color: #00E5FF; }
label { color: var(--text-muted); margin-bottom: 6px; display: inline-block; }

/* -------------------------------
   17) Tables (if any appear)
   ------------------------------- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.08); }
th { color: #FFFFFF; font-family: Georgia, 'Times New Roman', serif; }

/* -------------------------------
   18) Cookie Consent Banner & Modal
   ------------------------------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1300;
  display: flex; flex-direction: column; gap: 14px;
  background: #0E1A2C; color: var(--text);
  border-top: 1px solid rgba(0,229,255,0.25);
  padding: 16px 20px;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.35);
  transform: translateY(110%);
  transition: transform 300ms ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-content { display: flex; flex-direction: column; gap: 10px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-btn { padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(0,229,255,0.25); color: var(--text); background: rgba(0,229,255,0.08); transition: background var(--transition), transform var(--transition); }
.cookie-btn:hover { background: rgba(0,229,255,0.16); transform: translateY(-1px); }
.cookie-btn.primary { background: var(--secondary); color: #0B1A14; border-color: rgba(0,229,255,0.25); }
.cookie-btn.secondary { background: rgba(255,255,255,0.06); }

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed; inset: 0; z-index: 1400;
  background: rgba(0,0,0,0.6);
  display: none; align-items: center; justify-content: center;
}
.cookie-modal-overlay.show { display: flex; }
.cookie-modal {
  width: 96%; max-width: 720px; background: #0B1220; color: var(--text);
  border: 1px solid rgba(0,229,255,0.25); border-radius: 14px; box-shadow: var(--shadow-strong);
  padding: 20px; display: flex; flex-direction: column; gap: 14px;
}
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 10px; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; }
.cookie-switch { position: relative; width: 44px; height: 26px; border-radius: 26px; background: #2B3A55; border: 1px solid rgba(0,229,255,0.25); transition: background var(--transition); }
.cookie-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; transition: transform var(--transition); }
.cookie-switch.on { background: var(--secondary); }
.cookie-switch.on::after { transform: translateX(18px); }

/* -------------------------------
   19) Accessibility helpers
   ------------------------------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* -------------------------------
   20) Page-specific subtle touches
   ------------------------------- */
/* Headline underline accent */
h2 {
  position: relative;
}
h2::after {
  content: "";
  display: block;
  height: 2px;
  width: 64px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--neon-cyan), rgba(0,229,255,0.0)); /* tech accent */
}

/* Index specific: trust badges spacing already handled */

/* Legal pages content blocks */
main section .text-section { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 16px; }

/* -------------------------------
   21) Layout helpers to avoid overlapping & ensure spacing
   ------------------------------- */
main > section .container + .container { margin-top: 20px; }
.card + .card, .testimonial-card + .testimonial-card, .text-section + .text-section { margin-top: 20px; }

/* -------------------------------
   22) Decorative Neon Borders (pseudo-elements, non-content)
   ------------------------------- */
.surface.neon, .card.neon {
  position: relative;
}
.surface.neon::before, .card.neon::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  border: 1px solid transparent; background: linear-gradient(135deg, rgba(0,229,255,0.45), rgba(255,77,255,0.35)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* -------------------------------
   23) Header bottom neon line (decorative)
   ------------------------------- */
header::after {
  content: ""; display: block; height: 1px; width: 100%;
  background: linear-gradient(90deg, rgba(0,229,255,0.6), rgba(255,77,255,0.35), rgba(0,229,255,0.6));
  opacity: 0.35;
}

/* -------------------------------
   24) Spacing for footers & end notes
   ------------------------------- */
footer small { color: #C7D4E6; }

/* -------------------------------
   25) Page element alignments
   ------------------------------- */
/* Header sections below hero often have lists of contact details with icons */
.text-section ul li { display: flex; align-items: center; gap: 8px; }

/* -------------------------------
   26) Prevent any accidental overlap in tight screens
   ------------------------------- */
@media (max-width: 360px) {
  .hero-ctas { gap: 8px; }
  .mobile-nav { padding-top: 72px; }
}

/* -------------------------------
   27) Print minimal styles (optional safety)
   ------------------------------- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* -------------------------------
   28) Desktop layout polish
   ------------------------------- */
@media (min-width: 992px) {
  .hero .content-wrapper { flex-direction: column; align-items: flex-start; }
  .text-section { max-width: 960px; }
}

/* -------------------------------
   29) Header CTA alignment on wider screens
   ------------------------------- */
@media (min-width: 1200px) {
  header .content-wrapper { gap: 22px; }
  .main-nav { gap: 18px; }
}

/* -------------------------------
   30) Accessibility color contrast: ensure testimonial text contrasts
   ------------------------------- */
.testimonial-card p, .testimonial-card strong { color: #0D1726; }

/* END */
