/* =====================================================
   Fuzzy Bloom Immobilien – tech_futuristic theme
   Single stylesheet for all pages
   - Mobile-first, ONLY Flexbox layouts
   - Solid-color base with neon accents and sleek UI
   - Brand: primary #1F2A44, secondary #C8A76A, accent #F5F5F2
   ===================================================== */

/* -----------------------
   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, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style-position: outside; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
:focus { outline: 2px solid #00E5FF; outline-offset: 2px; }

/* -----------------------
   THEME VARIABLES
------------------------- */
:root {
  --brand-primary: #1F2A44; /* deep navy */
  --brand-secondary: #C8A76A; /* warm gold */
  --brand-accent: #F5F5F2; /* light ivory */
  --tech-bg: #0E1424;      /* futuristic canvas */
  --tech-surface: #121A34; /* cards on dark */
  --tech-surface-2: #0F162C; /* alt surface */
  --text-main: #E8F0FF;    /* crisp light */
  --text-dim: #B8C2E0;     /* dim light */
  --neon-cyan: #00E5FF;    /* neon accent */
  --neon-purple: #7C4DFF;  /* secondary neon */
  --ok-green: #13D18E;
  --warn: #FFB020;
  --danger: #FF4D6D;
  --shadow-1: 0 6px 18px rgba(0,0,0,0.35);
  --shadow-2: 0 12px 28px rgba(0,0,0,0.45);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --gap-1: 12px; --gap-2: 16px; --gap-3: 20px; --gap-4: 24px; --gap-5: 32px; --gap-6: 40px;
}

/* -----------------------
   BASE / TYPOGRAPHY
------------------------- */
body {
  background-color: var(--tech-bg);
  color: var(--text-main);
  font-family: Arial, Helvetica, sans-serif; /* brand body */
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1 { font-size: 32px; line-height: 1.2; margin-bottom: 16px; }
h2 { font-size: 24px; line-height: 1.3; margin-bottom: 14px; }
h3 { font-size: 18px; line-height: 1.3; margin-bottom: 10px; }

p { color: var(--text-dim); font-size: 16px; }
strong { color: #FFFFFF; font-weight: 700; }

/* Link styling with neon accent */
a { color: var(--neon-cyan); text-decoration: underline; text-underline-offset: 2px; transition: color .2s ease, text-shadow .2s ease; }
a:hover { color: #B3F7FF; text-shadow: 0 0 8px rgba(0,229,255,0.5); }
a:active { color: #7DEEFF; }

/* Lists */
ul, ol { margin-left: 20px; margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
li { color: var(--text-dim); }

/* -----------------------
   GLOBAL LAYOUT HELPERS (FLEX ONLY)
------------------------- */
.container {
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; flex-direction: column; gap: var(--gap-4);
}

section { margin-bottom: 60px; padding: 40px 0; position: relative; }
/* 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; }
.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; }

/* Content wrappers */
.content-wrapper {
  display: flex; flex-direction: column; gap: var(--gap-4);
  background-color: var(--tech-surface);
  border: 1px solid rgba(124,77,255,0.18);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-1);
}

/* Futuristic accent line */
.content-wrapper::before {
  content: ""; display: block; height: 3px; width: 100%; border-radius: 3px;
  background-color: var(--neon-cyan);
  opacity: 0.65; margin-bottom: 8px;
}

.text-section {
  display: flex; flex-direction: column; gap: 12px;
}

/* Ensure minimum spacing between cards/blocks inside wrappers */
.content-wrapper > * + * { margin-top: 0; }

/* -----------------------
   HEADER & NAVIGATION
------------------------- */
header {
  position: sticky; top: 0; z-index: 1000;
  background-color: #0C1226; /* solid base for compatibility */
  box-shadow: 0 2px 0 rgba(0,229,255,0.25), 0 8px 24px rgba(0,0,0,0.35);
  border-bottom: 1px solid rgba(200,167,106,0.25);
}
header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--gap-4); padding-top: 14px; padding-bottom: 14px; }

.logo { display: flex; align-items: center; }
.logo img { height: 34px; filter: drop-shadow(0 0 6px rgba(0,229,255,0.25)); }

.main-nav { display: none; align-items: center; gap: 18px; }
.main-nav a {
  color: var(--text-main);
  padding: 8px 10px; border-radius: 8px;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.main-nav a:hover {
  background-color: rgba(124,77,255,0.15);
  color: #FFFFFF; box-shadow: 0 0 0 1px rgba(0,229,255,0.35) inset;
}

/* Primary call-to-action in nav (Kostenlose Bewertung) */
.main-nav a[href*="bewerten"], .mobile-nav a[href*="bewerten"] {
  background-color: var(--brand-secondary); color: #0A0D1A;
  padding: 8px 12px; border-radius: 10px; font-weight: 700;
  text-decoration: none; box-shadow: 0 6px 18px rgba(200,167,106,0.35);
}
.main-nav a[href*="bewerten"]:hover { filter: brightness(1.05); box-shadow: 0 10px 22px rgba(200,167,106,0.45); }

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  color: #FFFFFF; background-color: rgba(0,229,255,0.12);
  border: 1px solid rgba(0,229,255,0.35);
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.mobile-menu-toggle:hover { background-color: rgba(0,229,255,0.2); box-shadow: 0 0 12px rgba(0,229,255,0.35) inset; }
.mobile-menu-toggle:active { transform: scale(0.96); }

/* Mobile menu panel */
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; width: 86%; max-width: 360px;
  background-color: #0D1430; color: #FFFFFF; z-index: 2000;
  transform: translateX(100%);
  transition: transform .35s ease; box-shadow: var(--shadow-2);
  display: flex; flex-direction: column; gap: 12px; padding: 20px;
}
.mobile-menu[aria-hidden="false"] { transform: translateX(0); }

/* Optional backdrop using a sibling full-screen pseudo-layer on body when menu open - class toggled in JS */
body.menu-open::after {
  content: ""; position: fixed; inset: 0; background: rgba(4,6,12,0.6); z-index: 1500;
}

.mobile-menu-close {
  align-self: flex-end; width: 40px; height: 40px; border-radius: 10px;
  background-color: rgba(124,77,255,0.18); color: #FFFFFF; border: 1px solid rgba(124,77,255,0.35);
}
.mobile-nav { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.mobile-nav a {
  padding: 12px 10px; border-radius: 10px; color: var(--text-main);
  background-color: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
}
.mobile-nav a:hover { background-color: rgba(0,229,255,0.08); border-color: rgba(0,229,255,0.25); }

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

/* -----------------------
   BUTTONS (utility classes)
------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 12px; border: 1px solid transparent; transition: all .2s ease; font-weight: 700; }
.btn-primary { background-color: var(--brand-secondary); color: #0A0D1A; box-shadow: 0 8px 22px rgba(200,167,106,0.35); }
.btn-primary:hover { filter: brightness(1.05); box-shadow: 0 12px 28px rgba(200,167,106,0.45); }
.btn-secondary { background-color: rgba(0,229,255,0.12); color: #FFFFFF; border-color: rgba(0,229,255,0.35); border-style: solid; }
.btn-secondary:hover { background-color: rgba(0,229,255,0.2); box-shadow: 0 0 16px rgba(0,229,255,0.25) inset; }
.btn-ghost { background-color: transparent; color: var(--text-main); border: 1px solid rgba(255,255,255,0.2); }
.btn-ghost:hover { border-color: rgba(0,229,255,0.35); color: #B3F7FF; }

/* Make inline links inside .text-section appear as subtle buttons when alone */
.text-section p > a { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 10px; background-color: rgba(0,229,255,0.1); border: 1px solid rgba(0,229,255,0.25); }
.text-section p > a:hover { background-color: rgba(0,229,255,0.18); }

/* -----------------------
   CARDS & TESTIMONIALS (light, high contrast)
------------------------- */
.card {
  display: flex; flex-direction: column; gap: 12px; padding: 20px;
  background-color: var(--tech-surface-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.45); border-color: rgba(0,229,255,0.25); }

/* Testimonials MUST be light for readability */
.testimonial-card {
  background-color: var(--brand-accent);
  color: var(--brand-primary);
  border: 1px solid rgba(31,42,68,0.18);
  border-left: 4px solid var(--brand-secondary);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
}
.testimonial-card p { color: #1F2A44; }
.testimonial-card strong { color: #0C1226; }

/* -----------------------
   HERO & SECTIONS VISUALS
------------------------- */
/* Subtle section top dividers with neon cue */
section .container::before {
  content: ""; display: block; height: 2px; width: 60px; border-radius: 2px; background-color: var(--neon-cyan); opacity: .6; margin-bottom: 8px;
}

/* -----------------------
   FOOTER
------------------------- */
footer { background-color: #0B1222; border-top: 1px solid rgba(200,167,106,0.25); padding-top: 24px; padding-bottom: 24px; }
footer .content-wrapper { background-color: transparent; border: none; box-shadow: none; padding: 0; }
footer .content-wrapper { display: flex; flex-direction: column; gap: 18px; }
footer .text-section h3 { color: #FFFFFF; font-size: 16px; margin-bottom: 6px; }
footer a { color: #CFE7FF; }
footer a:hover { color: #FFFFFF; text-shadow: 0 0 8px rgba(0,229,255,0.3); }

@media (min-width: 768px) {
  footer .content-wrapper { flex-direction: row; flex-wrap: wrap; gap: 24px; }
  footer .text-section { flex: 1 1 260px; }
}

/* -----------------------
   RESPONSIVE TYPE + LAYOUT
------------------------- */
@media (min-width: 480px) {
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
}
@media (min-width: 768px) {
  h1 { font-size: 44px; }
  h2 { font-size: 30px; }
  h3 { font-size: 20px; }
  .text-image-section { flex-direction: row; }
}
@media (min-width: 1024px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
}

/* -----------------------
   ACCESSIBLE BADGES / META
------------------------- */
.meta { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; background-color: rgba(0,229,255,0.12); color: #B3F7FF; border: 1px solid rgba(0,229,255,0.35); }

/* -----------------------
   FLEX LAYOUT UTILITIES
------------------------- */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-row { display: flex; flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.gap-20 { gap: 20px; }

/* -----------------------
   FORMS (basic, future-proof)
------------------------- */
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background-color: #0C1430; color: #E9F2FF;
  border: 1px solid rgba(255,255,255,0.12);
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, textarea:focus, select:focus { border-color: rgba(0,229,255,0.45); box-shadow: 0 0 0 3px rgba(0,229,255,0.15); }
label { color: #FFFFFF; margin-bottom: 6px; display: inline-flex; }

/* -----------------------
   MOBILE MENU & COOKIE BANNER ANIMATIONS
------------------------- */
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes slideDownOut {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(100%); opacity: 0; }
}

/* -----------------------
   COOKIE CONSENT BANNER
------------------------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 3000;
  display: flex; flex-direction: column; gap: 14px;
  background-color: #0D1430; color: #EAF2FF;
  border: 1px solid rgba(0,229,255,0.25);
  border-radius: 14px; padding: 16px;
  box-shadow: var(--shadow-2);
  animation: slideUp .35s ease both;
}
.cookie-banner .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .btn-accept { background-color: var(--ok-green); color: #05121F; border-radius: 10px; padding: 10px 14px; font-weight: 700; }
.cookie-banner .btn-accept:hover { filter: brightness(1.05); }
.cookie-banner .btn-reject { background-color: rgba(255,255,255,0.06); color: #FFFFFF; border: 1px solid rgba(255,255,255,0.2); border-radius: 10px; padding: 10px 14px; }
.cookie-banner .btn-reject:hover { border-color: rgba(0,229,255,0.35); color: #B3F7FF; }
.cookie-banner .btn-settings { background-color: rgba(0,229,255,0.12); color: #FFFFFF; border: 1px solid rgba(0,229,255,0.35); border-radius: 10px; padding: 10px 14px; }
.cookie-banner .btn-settings:hover { background-color: rgba(0,229,255,0.2); }

/* Cookie modal */
.cookie-overlay { position: fixed; inset: 0; background: rgba(4,6,12,0.6); z-index: 3500; display: none; }
.cookie-overlay.is-open { display: block; }
.cookie-modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 92%; max-width: 640px; z-index: 3600; display: none;
  background-color: #0D1430; color: #EAF2FF; border-radius: 16px;
  border: 1px solid rgba(0,229,255,0.25); box-shadow: var(--shadow-2);
}
.cookie-modal.is-open { display: flex; }
.cookie-modal .modal-inner { display: flex; flex-direction: column; gap: 16px; padding: 20px; }
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-modal .close { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.06); }

/* Cookie toggles */
.cookie-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px; border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; background: rgba(255,255,255,0.02); }
.switch { position: relative; width: 50px; height: 28px; display: inline-flex; align-items: center; }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.slider { position: relative; width: 100%; height: 100%; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); border-radius: 999px; transition: background .2s ease, border-color .2s ease; }
.slider::after { content: ""; position: absolute; left: 2px; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; transition: transform .2s ease; }
.switch input:checked + .slider { background: rgba(0,229,255,0.35); border-color: rgba(0,229,255,0.45); }
.switch input:checked + .slider::after { transform: translateX(22px); }

/* -----------------------
   SPECIFIC ELEMENT TUNING
------------------------- */
/* Phone/Mail inline icons spacing */
.text-section img[alt="Telefon"], .text-section img[alt="E-Mail"] { display: inline-flex; vertical-align: middle; margin-right: 6px; filter: drop-shadow(0 0 6px rgba(0,229,255,0.25)); }

/* Content emphasis blocks */
.notice { display: flex; gap: 10px; background: rgba(0,229,255,0.08); border: 1px solid rgba(0,229,255,0.25); border-radius: 12px; padding: 12px; color: #D9F8FF; }

/* Prevent overlaps and ensure breathing room */
.content-wrapper > .testimonial-card { margin-top: 4px; }
.content-wrapper > .testimonial-card + .testimonial-card { margin-top: 12px; }

/* -----------------------
   PAGE-SPECIFIC SMALL ENHANCEMENTS
------------------------- */
/* Index hero headline glow */
main section:first-of-type h1 { text-shadow: 0 0 14px rgba(0,229,255,0.25); }

/* KPIs inline text emphasis */
.content-wrapper p strong { background: linear-gradient(transparent, transparent); /* safe for fallback */ color: #FFFFFF; }

/* -----------------------
   PRINT BASICS
------------------------- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal, .cookie-overlay { display: none !important; }
  body { background: #FFFFFF; color: #000000; }
  .content-wrapper { border: 1px solid #CCC; background: #FFFFFF; color: #000; box-shadow: none; }
  a { color: #0000EE; text-decoration: underline; }
}

/* -----------------------
   DESKTOP ENHANCEMENTS
------------------------- */
@media (min-width: 992px) {
  .container { gap: var(--gap-5); }
  .content-wrapper { padding: 28px; }
}

/* -----------------------
   EXTRA: OPTIONAL FEATURED LAYOUTS (ready-to-use)
------------------------- */
.cards-row { display: flex; flex-wrap: wrap; gap: 20px; }
.cards-row .card { flex: 1 1 260px; min-width: 260px; }

/* Ensure text-image sections center content on larger screens */
.text-image-section > * { flex: 1 1 320px; }

/* -----------------------
   ACCESSIBILITY / FOCUS
------------------------- */
.main-nav a:focus, .mobile-nav a:focus, .btn:focus, .btn-primary:focus, .btn-secondary:focus, .btn-ghost:focus { outline: 2px solid #7C4DFF; outline-offset: 2px; }

/* -----------------------
   SECTION BACKGROUND VARIANTS
------------------------- */
.section-alt, .bg-alt { background-color: #0B1328; border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); }

/* -----------------------
   GUARANTEED FLEXBOX ONLY – no grid, no columns
------------------------- */
/* Compliance check helper selectors intentionally omitted for grid/columns */
