/* =====================================================================
   BreezeCurrent Rentenberatung – style.css
   Tech-futuristic meets trustworthy brand: gradient bases, neon accents,
   modern hover states, only Flexbox layouts, responsive & accessible.
   ===================================================================== */

/* =========================
   0) CSS RESET & BASELINES
   ========================= */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Verdana, Geneva, Tahoma, sans-serif; line-height: 1.6; color: #DDE7F5; background-color: #0b1220; background-image: linear-gradient(180deg, #0b1220 0%, #0D3B66 100%); }
img { max-width: 100%; height: auto; display: block; }
a { color: #7FE7DA; text-decoration: none; transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
a:hover, a:focus { color: #A8FFF1; }
button { font-family: inherit; border: none; background: none; color: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 16px; color: #0B1C2C; }
:focus-visible { outline: 2px solid #2FD3C6; outline-offset: 2px; }

/* Color variables with fallbacks */
:root {
  --primary: #0D3B66; /* brand primary */
  --secondary: #256F66; /* brand secondary */
  --accent: #F4F8FF; /* brand accent (light) */
  --bg-deep: #0b1220;
  --ink: #0B1C2C; /* dark text for light surfaces */
  --line: rgba(144, 214, 205, 0.25);
  --glow: rgba(47, 211, 198, 0.45);
}

/* =========================
   1) TYPOGRAPHY
   ========================= */
h1, h2, h3, h4, h5, h6 { font-family: Georgia, 'Times New Roman', serif; color: #FFFFFF; line-height: 1.25; letter-spacing: 0.2px; margin: 0 0 16px 0; text-shadow: 0 0 20px rgba(127, 231, 218, 0.15); }
p { margin: 0 0 12px 0; }
ul, ol { margin: 0 0 16px 18px; padding: 0; }
li { margin: 6px 0; }

/* Type scale */
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
body, p, li { font-size: 16px; }
.small { font-size: 14px; }

/* =========================
   2) LAYOUT PRIMITIVES (Flex only)
   ========================= */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; gap: 0; }
.content-wrapper { display: flex; flex-direction: column; gap: 20px; padding: 0; }

/* Mandatory spacing & alignment patterns */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: rgba(255,255,255,0.02); border: 1px solid var(--line, rgba(144,214,205,0.25)); border-radius: 14px; padding: 20px; box-shadow: 0 6px 24px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.02) inset; }
.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: var(--accent, #F4F8FF); color: var(--ink, #0B1C2C); border: 1px solid #DAE6FF; border-radius: 14px; box-shadow: 0 8px 24px rgba(13, 59, 102, 0.12); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Make sure common sections breathe and never overlap */
main > section { margin-bottom: 60px; }

/* =========================
   3) HEADER & NAVIGATION
   ========================= */
header { position: sticky; top: 0; z-index: 1000; background: rgba(11, 18, 32, 0.85); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line, rgba(144,214,205,0.25)); box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.logo { display: flex; align-items: center; }
.logo img { height: 34px; filter: drop-shadow(0 0 12px rgba(127,231,218,0.25)); }

.main-nav { display: none; align-items: center; gap: 18px; }
.main-nav a { padding: 8px 10px; border-radius: 10px; color: #E6F4FF; opacity: 0.9; }
.main-nav a:hover { background: rgba(37,111,102,0.15); box-shadow: 0 0 0 1px rgba(127,231,218,0.25) inset; opacity: 1; }

.header-cta { display: none; }
.header-cta a { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; background: #1C9A8C; color: #08131E; border-radius: 12px; font-weight: bold; box-shadow: 0 10px 24px rgba(31, 223, 199, 0.25), 0 0 0 1px rgba(47,211,198,0.35) inset; }
.header-cta a:hover { background: #22B7A6; transform: translateY(-1px); }

/* Mobile burger */
.mobile-menu-toggle { position: fixed; right: 16px; top: 14px; z-index: 1100; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(37,111,102,0.2); color: #DFFBF6; box-shadow: 0 10px 24px rgba(0,0,0,0.35), 0 0 0 1px rgba(127,231,218,0.25) inset; }
.mobile-menu-toggle:hover { background: rgba(37,111,102,0.35); }

/* Mobile menu overlay */
.mobile-menu { position: fixed; inset: 0; display: flex; flex-direction: column; background: rgba(11,18,32,0.85); backdrop-filter: blur(8px); transform: translateX(100%); transition: transform 0.3s ease; z-index: 1090; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; margin: 14px 16px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(37,111,102,0.25); color: #E9FFFB; }
.mobile-menu-close:hover { background: rgba(37,111,102,0.4); }
.mobile-nav { display: flex; flex-direction: column; gap: 14px; padding: 10px 24px 40px; }
.mobile-nav a { display: flex; align-items: center; padding: 14px 12px; border-radius: 12px; background: rgba(255,255,255,0.03); color: #FFFFFF; box-shadow: 0 0 0 1px rgba(127,231,218,0.18) inset; }
.mobile-nav a:hover { background: rgba(37,111,102,0.35); }

/* =========================
   4) HERO & SECTIONS
   ========================= */
.hero { background-color: #0E1A2B; background-image: linear-gradient(180deg, rgba(37,111,102,0.15) 0%, rgba(13,59,102,0.25) 100%); border-bottom: 1px solid var(--line, rgba(144,214,205,0.25)); }
.hero .content-wrapper { padding: 40px 0; }
.hero h1 { text-shadow: 0 0 24px rgba(127,231,218,0.25), 0 2px 0 rgba(0,0,0,0.25); }
.hero p { max-width: 850px; opacity: 0.95; }

/* Standard section content */
main section .content-wrapper { padding: 20px 0; }
.text-section { display: flex; flex-direction: column; gap: 12px; background: rgba(255,255,255,0.02); border: 1px solid var(--line, rgba(144,214,205,0.25)); border-radius: 14px; padding: 16px; box-shadow: 0 6px 24px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.02) inset; }
.text-section ul, .text-section ol { margin-left: 18px; }

/* CTA Buttons inside text sections */
.text-section a, .hero .text-section a, .header-cta a { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; margin-right: 10px; border-radius: 12px; background: #1C9A8C; color: #08131E; font-weight: 700; box-shadow: 0 10px 24px rgba(31,223,199,0.25), 0 0 0 1px rgba(47,211,198,0.35) inset; }
.text-section a:hover, .hero .text-section a:hover { background: #22B7A6; transform: translateY(-1px); }

/* Testimonial sections must be light with dark text for contrast */
section .testimonial-card p { margin: 0; }
section .testimonial-card strong { color: #0D3B66; }

/* Footer links block inside sections */
.text-section nav a { color: #0D3B66; font-weight: 600; }
.text-section nav a:hover { color: #256F66; text-decoration: underline; }

/* Map placeholder */
.map-placeholder { display: flex; align-items: center; justify-content: center; min-height: 220px; border: 2px dashed rgba(13,59,102,0.35); border-radius: 14px; color: #A3B8CC; background: rgba(255,255,255,0.04); }

/* =========================
   5) FOOTER
   ========================= */
footer { margin-top: 40px; border-top: 1px solid var(--line, rgba(144,214,205,0.25)); background: rgba(8, 13, 22, 0.8); }
footer .content-wrapper { padding: 24px 0; }
footer nav { display: flex; flex-wrap: wrap; gap: 12px; }
footer nav a { color: #DDE7F5; opacity: 0.85; }
footer nav a:hover { opacity: 1; }
footer .text-section { background: rgba(255,255,255,0.02); }
footer img { display: inline-block; vertical-align: middle; margin-right: 6px; filter: drop-shadow(0 0 6px rgba(127,231,218,0.2)); }

/* =========================
   6) CARDS & MICRO-INTERACTIONS
   ========================= */
.card:hover, .text-section:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.35), 0 0 12px var(--glow, rgba(47,211,198,0.45)); }

/* Decorative neon edge (pseudo, not content positioning) */
.card::before, .text-section::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: 0 0 40px rgba(47,211,198,0.08) inset; }

/* =========================
   7) TABLES (if any appear later)
   ========================= */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.08); }
th { text-align: left; color: #FFFFFF; }

/* =========================
   8) MOBILE MENU VISIBILITY RULES
   ========================= */
/* Mobile-first: hide desktop nav & cta */
.main-nav, .header-cta { display: none; }

/* =========================
   9) COOKIE CONSENT BANNER & MODAL
   ========================= */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1200; display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--accent, #F4F8FF); color: var(--ink, #0B1C2C); border: 1px solid #C8D8F8; border-radius: 14px; box-shadow: 0 20px 50px rgba(13,59,102,0.25); transform: translateY(16px); opacity: 0; transition: transform 0.3s ease, opacity 0.3s ease; }
.cookie-banner.show { transform: translateY(0); opacity: 1; }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-banner .btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 12px; font-weight: 700; }
.cookie-banner .btn-primary { background: var(--primary, #0D3B66); color: #FFFFFF; }
.cookie-banner .btn-primary:hover { background: #0F4A82; }
.cookie-banner .btn-secondary { background: #E7EEF8; color: var(--ink, #0B1C2C); border: 1px solid #CFDBEF; }
.cookie-banner .btn-secondary:hover { background: #DDE7F7; }
.cookie-banner .btn-ghost { background: transparent; color: var(--ink, #0B1C2C); border: 1px solid #CFDBEF; }
.cookie-banner .btn-ghost:hover { background: #F0F5FF; }

/* Cookie modal overlay */
.cookie-backdrop { position: fixed; inset: 0; background: rgba(8, 13, 22, 0.65); z-index: 1300; display: none; align-items: center; justify-content: center; }
.cookie-backdrop.show { display: flex; }
.cookie-modal { width: 94%; max-width: 720px; display: flex; flex-direction: column; gap: 16px; background: #FFFFFF; color: var(--ink, #0B1C2C); border-radius: 16px; border: 1px solid #CFDBEF; box-shadow: 0 30px 70px rgba(13,59,102,0.25); transform: translateY(10px); transition: transform 0.25s ease; padding: 20px; }
.cookie-backdrop.show .cookie-modal { transform: translateY(0); }
.cookie-modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal-body { display: flex; flex-direction: column; gap: 14px; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px; border: 1px solid #E6EEFA; border-radius: 12px; background: #FAFCFF; }
.cookie-category .hint { color: #345; font-size: 14px; opacity: 0.8; }
.cookie-modal-footer { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* Toggle switch */
.toggle { position: relative; width: 48px; height: 28px; background: #CEDBED; border-radius: 999px; box-shadow: inset 0 0 0 1px #BFD0E8; display: flex; align-items: center; padding: 3px; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle .dot { width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 2px 8px rgba(0,0,0,0.2); transform: translateX(0); transition: transform 0.2s ease, background 0.2s ease; }
.toggle input:checked + .dot { transform: translateX(20px); background: #1C9A8C; }

/* =========================
   10) RESPONSIVE
   ========================= */
@media (min-width: 768px) {
  /* Type scale up */
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  h3 { font-size: 20px; }

  .hero .content-wrapper { padding: 60px 0; }

  /* Show desktop nav */
  .main-nav { display: flex; }
  .header-cta { display: flex; }
  .mobile-menu-toggle { display: none; }

  /* Layout refinements */
  .content-grid { justify-content: space-between; }
  .text-image-section { flex-direction: row; }
}

@media (min-width: 1024px) {
  h1 { font-size: 48px; }
  .container { padding: 0 24px; }
  .content-wrapper { gap: 24px; }
}

/* =========================
   11) ACCESSIBILITY & STATES
   ========================= */
[aria-busy="true"] { cursor: progress; }
[hidden] { display: none !important; }

/* =========================
   12) UTILITIES
   ========================= */
.muted { opacity: 0.8; }
.center { display: flex; align-items: center; justify-content: center; }
.row { display: flex; flex-wrap: wrap; gap: 20px; }
.col { display: flex; flex-direction: column; gap: 12px; }

/* =========================
   13) PAGE-SPECIFIC TWEAKS
   ========================= */
/* Lists in legal pages are long: ensure readable contrast and spacing */
body:has(main) main section .text-section ul li { line-height: 1.55; }

/* Ensure testimonial contrast rule explicitly across all pages */
.testimonial-card, .testimonial-card * { color: var(--ink, #0B1C2C); }

/* Navigation separators in footer (·) spacing */
footer .text-section nav { gap: 6px; }

/* =========================
   14) FORM-LIKE LINKS (Upload, Termin etc.)
   ========================= */
.text-section div a + a { margin-left: 10px; }

/* =========================
   15) SAFETY MARGINS & NON-OVERLAP
   ========================= */
section > .container { gap: 20px; }
section > .container > .content-wrapper > * + * { margin-top: 4px; }

/* =========================
   16) BRAND COHESION SHAPES (subtle lines)
   ========================= */
hr { border: none; height: 1px; background: var(--line, rgba(144,214,205,0.25)); margin: 20px 0; }

/* =========================
   17) PRINT (minimal)
   ========================= */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-backdrop, footer { display: none !important; }
  body { color: #000; background: #fff; }
}
