/* ===================================================================
   Mistrun Venture – Rentenservice International
   style.css (tech_futuristic theme)
   - Mobile-first, flexbox-only layout (no CSS Grid or Columns)
   - Brand fonts: Georgia (display), Verdana (body)
   - Colorway: deep navy, teal, light accent with neon cyan highlights
   =================================================================== */

/* ------------------------------
   0) Reset & Normalize
   ------------------------------ */
* { box-sizing: border-box; }
*::before, *::after { box-sizing: inherit; }
html, body { margin: 0; padding: 0; }
img, svg { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { margin: 0 0 16px 20px; padding: 0; }
dl, dt, dd { margin: 0; }
button { font: inherit; border: none; background: none; cursor: pointer; }
blockquote { margin: 0; }
:focus-visible { outline: 2px dashed #00E5FF; outline-offset: 2px; }

/* ------------------------------
   1) Theme Variables & Base
   ------------------------------ */
:root {
  --color-primary: #0A3D62; /* brand primary */
  --color-secondary: #256A6A; /* brand secondary */
  --color-accent: #F4F7FB; /* brand accent (light) */
  --color-bg: #0B1220; /* deep navy (site background) */
  --color-surface: #0F1B2D; /* cards/nav surface */
  --color-text: #E6F1FF; /* primary text on dark */
  --color-muted: #AAB7CF; /* secondary text */
  --neon: #00E5FF; /* neon cyan accent */
  --neon-pink: #FF4DFF; /* auxiliary neon */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow-soft: 0 6px 16px rgba(0,0,0,0.25);
  --shadow-glow: 0 0 0 1px rgba(0,229,255,0.25), 0 0 18px rgba(0,229,255,0.18);
  --shadow-inset: inset 0 0 0 1px rgba(255,255,255,0.04);
}

html { scroll-behavior: smooth; }
body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4 { font-family: Georgia, 'Times New Roman', serif; color: #ffffff; line-height: 1.25; margin: 0 0 12px; }
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }

p { margin: 0 0 14px; color: var(--color-text); }
small { color: var(--color-muted); }

/* Links with neon accent */
a { color: var(--neon); transition: color 0.2s ease, text-shadow 0.2s ease; }
a:hover { color: #9AF7FF; text-shadow: 0 0 6px rgba(0,229,255,0.6); }
a:active { color: #67F0FF; }

/* Lists: modern markers (kept simple for compatibility) */
ul li, ol li { margin-bottom: 10px; }
ul li::marker { color: var(--neon); }
ol { list-style: decimal; }

/* ------------------------------
   2) Layout Primitives (Flex-only)
   ------------------------------ */
.container {
  display: flex; /* flex-only */
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
}

/* Sections: default spacing + subtle separations to avoid overlap */
section {
  display: flex; /* flex-only */
  flex-direction: column;
  margin-bottom: 60px;
  padding: 40px 0;
  position: relative;
}

/* Mandatory spacing pattern classes (available for future HTML usage) */
.section { margin-bottom: 60px; padding: 40px 20px; display: flex; flex-direction: column; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; display: flex; flex-direction: column; gap: 12px; background: var(--color-surface); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-soft), var(--shadow-inset); border: 1px solid rgba(154, 247, 255, 0.08); }
.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; border-radius: var(--radius-md); box-shadow: 0 4px 14px rgba(0,0,0,0.12); background: var(--color-accent); color: #0B1A2B; border: 1px solid #E2E9F3; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Content wrapper inside sections */
.content-wrapper { display: flex; flex-direction: column; gap: 16px; background: rgba(10, 61, 98, 0.06); border: 1px solid rgba(154, 247, 255, 0.06); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-inset); }

/* Alternating subtle striping for long pages (solid colors for compatibility) */
section:nth-of-type(odd) .content-wrapper { background: rgba(37, 106, 106, 0.07); }

/* ------------------------------
   3) Header & Navigation
   ------------------------------ */
header {
  background: var(--color-surface);
  border-bottom: 1px solid rgba(154, 247, 255, 0.15);
  box-shadow: 0 6px 24px rgba(0,0,0,0.25), 0 0 24px rgba(0,229,255,0.06);
  position: sticky; top: 0; z-index: 500;
}
header .container { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
header img { height: 36px; width: auto; }

/* Primary navigation (desktop) */
.main-navigation { display: none; gap: 16px; align-items: center; }
.main-navigation a { color: var(--color-text); opacity: 0.9; padding: 8px 10px; border-radius: 8px; transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; }
.main-navigation a:hover { background: rgba(154, 247, 255, 0.08); color: #ffffff; box-shadow: var(--shadow-glow); }

/* Header CTAs */
.header-cta { display: flex; gap: 10px; align-items: center; }

/* Mobile menu toggle */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: #0B1A2B; background: var(--neon); border-radius: 10px; box-shadow: var(--shadow-glow); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.mobile-menu-toggle:hover { transform: translateY(-1px); box-shadow: 0 0 0 2px rgba(0,229,255,0.35), 0 0 18px rgba(0,229,255,0.35); }

/* Mobile menu overlay */
.mobile-menu { position: fixed; top: 0; right: 0; bottom: 0; width: 85%; max-width: 360px; background: var(--color-surface); transform: translateX(100%); transition: transform 0.35s ease; z-index: 1000; box-shadow: -10px 0 28px rgba(0,0,0,0.35); display: flex; flex-direction: column; padding: 16px; border-left: 1px solid rgba(154, 247, 255, 0.15); }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; width: 44px; height: 44px; border-radius: 10px; color: var(--neon); background: rgba(154, 247, 255, 0.08); box-shadow: var(--shadow-inset); }
.mobile-nav { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; }
.mobile-nav a { display: flex; align-items: center; padding: 12px 10px; border-radius: 10px; color: #ffffff; background: rgba(154, 247, 255, 0.06); border: 1px solid rgba(154, 247, 255, 0.12); }
.mobile-nav a:hover { background: rgba(154, 247, 255, 0.12); box-shadow: var(--shadow-glow); }

/* Show/hide logic */
@media (min-width: 992px) {
  .main-navigation { display: flex; }
  .mobile-menu-toggle { display: none; }
  .mobile-menu { display: none; }
}

/* ------------------------------
   4) Buttons & Interactive Elements
   ------------------------------ */
.btn-primary, .btn-secondary, .btn-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 12px 18px; font-weight: 700; letter-spacing: 0.2px; transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease; }

.btn-primary { background: var(--color-primary); color: #ffffff; border: 1px solid rgba(154, 247, 255, 0.35); box-shadow: var(--shadow-glow); }
.btn-primary:hover { background: #0D4B7B; box-shadow: 0 0 0 2px rgba(0,229,255,0.35), 0 8px 24px rgba(0,0,0,0.35); transform: translateY(-1px); }

.btn-secondary { background: transparent; color: var(--neon); border: 1px solid var(--neon); box-shadow: var(--shadow-inset); }
.btn-secondary:hover { background: rgba(0,229,255,0.12); color: #9AF7FF; box-shadow: var(--shadow-glow); }

.btn-link { background: transparent; color: var(--neon); border: none; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.btn-link:hover { color: #9AF7FF; text-shadow: 0 0 6px rgba(0,229,255,0.6); }

/* CTA group */
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* Trust badges & language */
.trust-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.trust-badges span { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; background: rgba(154, 247, 255, 0.08); color: #DAF7FF; border: 1px solid rgba(154, 247, 255, 0.22); font-size: 12px; }
.language-switcher { display: inline-flex; gap: 8px; align-items: center; color: var(--color-muted); }

/* ------------------------------
   5) Content Elements
   ------------------------------ */
.subheadline { color: #CFE8FF; font-size: 18px; }

address { font-style: normal; color: var(--color-text); background: rgba(154, 247, 255, 0.06); border: 1px solid rgba(154, 247, 255, 0.12); border-radius: var(--radius-md); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
address a { color: var(--neon); }
address img { display: inline-block; vertical-align: middle; height: 16px; width: 16px; margin-right: 6px; filter: brightness(1.2) saturate(1.2); }

/* Definition lists (FAQs) */
dt { font-weight: 700; margin-top: 16px; }
dd { margin: 8px 0 0 0; padding-left: 12px; border-left: 2px solid rgba(154, 247, 255, 0.25); color: var(--color-text); }

/* Testimonials: must be light background with dark text for readability */
.testimonials { display: flex; flex-wrap: wrap; gap: 20px; }
.testimonial-card blockquote { color: #0B1A2B; }
.testimonial-card .author { color: #17324F; font-weight: 700; }

/* Utility cards (if used) */
.card:hover { box-shadow: 0 0 0 2px rgba(0,229,255,0.25), 0 10px 26px rgba(0,0,0,0.35); }

/* Footer */
footer { background: #0A1628; border-top: 1px solid rgba(154, 247, 255, 0.12); padding: 20px 0; }
footer .container { flex-direction: column; gap: 10px; }
.footer-links, .footer-legal { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--color-muted); }
.footer-links a, .footer-legal a { color: var(--color-muted); }
.footer-links a:hover, .footer-legal a:hover { color: #ffffff; }
.footer-brand-tagline { color: #C7D9F1; font-size: 14px; opacity: 0.9; }

/* ------------------------------
   6) Responsive Rules
   ------------------------------ */
@media (min-width: 600px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
}

@media (min-width: 768px) {
  .text-image-section { flex-direction: row; }
  .content-wrapper { padding: 28px; gap: 18px; }
  .cta-group { gap: 14px; }
}

@media (min-width: 992px) {
  header img { height: 42px; }
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  .container { gap: 20px; }
}

/* ------------------------------
   7) Hero Subtle Accent (solid-friendly)
   ------------------------------ */
/* Use a simple solid border-top to evoke a futuristic line, keeping compatibility high */
section:first-of-type { padding-top: 48px; }
section:first-of-type .content-wrapper { border-top: 3px solid var(--neon); box-shadow: var(--shadow-inset), 0 8px 30px rgba(0,0,0,0.25); }

/* ------------------------------
   8) Mobile Menu Page Overlay (optional)
   ------------------------------ */
body.menu-open { overflow: hidden; }

/* ------------------------------
   9) Cookie Consent Banner & Modal
   ------------------------------ */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex; flex-direction: column; gap: 12px; background: var(--color-accent); color: #0B1A2B; border-top: 2px solid var(--color-secondary); box-shadow: 0 -8px 24px rgba(0,0,0,0.2); padding: 16px; }
.cookie-banner .cookie-content { display: flex; flex-direction: column; gap: 10px; }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 10px; font-weight: 700; transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; }
.cookie-banner .btn-accept { background: var(--color-secondary); color: #fff; border: 1px solid #1D4F4F; }
.cookie-banner .btn-accept:hover { background: #2E8181; }
.cookie-banner .btn-reject { background: transparent; color: #0B1A2B; border: 1px solid #0B1A2B; }
.cookie-banner .btn-reject:hover { background: rgba(11,26,43,0.06); }
.cookie-banner .btn-settings { background: transparent; color: var(--color-secondary); border: 1px solid var(--color-secondary); }
.cookie-banner .btn-settings:hover { background: rgba(37,106,106,0.08); }

/* Cookie modal (manager) */
.cookie-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 1100; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.cookie-overlay.open { opacity: 1; pointer-events: auto; }
.cookie-modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.98); z-index: 1200; width: 92%; max-width: 720px; background: #ffffff; color: #0B1A2B; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.35); border: 2px solid var(--color-secondary); display: flex; flex-direction: column; gap: 14px; padding: 18px; opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease; }
.cookie-modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.cookie-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cookie-modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-categories { display: flex; flex-direction: column; gap: 10px; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid #E2E9F3; border-radius: 10px; background: #F9FBFE; }
.cookie-modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* Toggle switch */
.toggle-switch { position: relative; width: 46px; height: 26px; border-radius: 26px; background: #C8D6E5; transition: background 0.2s ease; display: inline-flex; align-items: center; padding: 2px; }
.toggle-switch .knob { width: 22px; height: 22px; border-radius: 50%; background: #ffffff; box-shadow: 0 2px 6px rgba(0,0,0,0.2); transition: transform 0.2s ease; }
.toggle-switch.active { background: var(--color-secondary); }
.toggle-switch.active .knob { transform: translateX(20px); }

/* ------------------------------
   10) Accessibility touches
   ------------------------------ */
::selection { background: rgba(0,229,255,0.35); color: #05101F; }

/* ------------------------------
   11) Page-specific light elements
   ------------------------------ */
/* Make elements with many paragraphs pleasant to read */
section .content-wrapper p, section .content-wrapper li, section .content-wrapper dd { color: #DBE8FF; }

/* FAQ headings pop */
section .content-wrapper h2 { border-left: 4px solid var(--neon); padding-left: 10px; }

/* Downloads with small icons */
li img[alt="Download"], li img[alt="Telefon"], li img[alt="E-Mail"], p img[alt="Telefon"], p img[alt="E-Mail"] {
  height: 16px; width: 16px; display: inline-block; vertical-align: text-bottom; margin-right: 6px;
}

/* ------------------------------
   12) Ensure gaps between groups
   ------------------------------ */
.testimonials + * { margin-top: 10px; }

/* ------------------------------
   13) Prevent overlapping & set safe widths for inline elements
   ------------------------------ */
header a, footer a, nav a, .btn-primary, .btn-secondary, .btn-link { max-width: 100%; }

/* ------------------------------
   14) Desktop refinements
   ------------------------------ */
@media (min-width: 992px) {
  .content-wrapper { padding: 32px; }
  .testimonials { gap: 24px; }
}

/* ------------------------------
   15) Hide main nav on small screens, keep CTAs accessible
   ------------------------------ */
@media (max-width: 991.98px) {
  .main-navigation { display: none; }
}

/* ------------------------------
   16) Typography tweaks for long legal pages
   ------------------------------ */
main section .content-wrapper ul { padding-left: 18px; }
main section .content-wrapper ol { padding-left: 20px; }
main section .content-wrapper li { line-height: 1.6; }

/* ------------------------------
   17) Hover micro-interactions for lists
   ------------------------------ */
.content-wrapper ul li:hover, .content-wrapper ol li:hover { color: #FFFFFF; }

/* ------------------------------
   18) Additional helpers
   ------------------------------ */
.hidden { display: none !important; }
.center { display: flex; align-items: center; justify-content: center; }

/* End of stylesheet */
