/* =========================================================
   LeineQuartier Göttingen — style.css
   Aesthetic: playful_dynamic (bright, animated, fun, energetic)
   Brand: primary #0B3D91, secondary #3E7C6A, accent #F5F8FF
   Fonts: Trebuchet MS (display), Arial (body)
   Layout: Mobile-first, ONLY Flexbox (no grid/columns)
   ========================================================= */

/* 1) RESET & NORMALIZE */
* { box-sizing: border-box; }
*:before, *:after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
img { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
ul, ol { margin: 0 0 16px 20px; padding: 0; }
li { margin: 0 0 8px 0; }
h1, h2, h3, h4, h5, h6, p { margin: 0 0 12px 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; }
:focus { outline: none; }
:focus-visible { outline: 3px solid #FFD33D; outline-offset: 2px; }

/* 2) THEME TOKENS (with fallbacks) */
:root {
  --brand-primary: #0B3D91; /* deep blue */
  --brand-secondary: #3E7C6A; /* urban green */
  --brand-accent: #F5F8FF; /* soft blue white */
  --ink: #111827;
  --text: #1A1A1A;
  --muted: #6B7280;
  --bg: #FFFFFF;
  --card: #FFFFFF;
  --border: #E5E7EB;
  --shadow: rgba(17, 24, 39, 0.08);
  /* Playful energetic accents */
  --sun: #FFD33D;
  --pink: #FF3E7F;
  --mint: #22D3A6;
  --purple: #7D5CFF;
}

/* 3) GLOBAL TYPOGRAPHY */
body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
}

h1 { font-size: 32px; line-height: 1.2; letter-spacing: 0.2px; }
h2 { font-size: 24px; line-height: 1.25; margin-bottom: 12px; }
h3 { font-size: 20px; line-height: 1.3; }
.subheadline { color: var(--muted); font-size: 18px; }
.small, .note, .disclaimer { font-size: 14px; color: var(--muted); }

/* 4) CONTAINERS & LAYOUT (ONLY Flexbox) */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 16px;
  margin: 0 auto;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 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; }

/* 5) HEADER */
header { position: sticky; top: 0; z-index: 1000; background: #fff; box-shadow: 0 2px 10px var(--shadow); }
header .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.logo img { height: 36px; }

.main-nav { display: none; align-items: center; gap: 16px; }
.main-nav a { padding: 10px 12px; border-radius: 10px; color: var(--ink); transition: transform 0.2s ease, background-color 0.2s ease; }
.main-nav a:hover { background: var(--brand-accent); transform: translateY(-1px); }

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

/* 6) BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 6px 16px var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.btn.primary {
  background: var(--brand-primary);
  color: #fff;
}
.btn.primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 20px rgba(11, 61, 145, 0.25); }
.btn.primary:active { transform: translateY(0); }

.btn.secondary {
  background: var(--sun);
  color: #111;
}
.btn.secondary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 20px rgba(255, 211, 61, 0.35); }
.btn.secondary:active { transform: translateY(0); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* 7) HERO */
.hero { position: relative; background: var(--brand-accent); }
.hero .container { padding-top: 28px; padding-bottom: 28px; }
.hero .content-wrapper { padding: 16px 0; }
.hero .brand img { height: 50px; }

/* Playful floating shapes (decorative only) */
.hero:before, .hero:after {
  content: ""; position: absolute; z-index: 0; pointer-events: none; opacity: 0.22;
  width: 160px; height: 160px; border-radius: 28px;
}
.hero:before { background: var(--pink); right: 8%; top: 16%; animation: floatY 6s ease-in-out infinite; }
.hero:after { background: var(--mint); left: 6%; bottom: 10%; animation: floatX 7s ease-in-out infinite; }
.hero .content-wrapper { position: relative; z-index: 1; }

@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes floatX { 0%,100% { transform: translateX(0); } 50% { transform: translateX(12px); } }

/* 8) LISTS, BADGES, ICONS */
.benefit-badges, .badge-row, .value-list, .price-highlights, .stat-highlights {
  display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin-left: 0;
}
.benefit-badges li, .badge-row li, .value-list li, .price-highlights li, .stat-highlights li {
  padding: 8px 12px; background: #fff; border: 1px solid var(--border); border-radius: 999px; box-shadow: 0 4px 12px var(--shadow);
}

.icon-list { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; margin-left: 0; }
.icon-list li { display: inline-flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border-radius: 14px; border: 1px solid var(--border); box-shadow: 0 4px 12px var(--shadow); }
.icon-list img { width: 24px; height: 24px; }

/* 9) FEATURES / GRIDS (ALL FLEX) */
.feature-grid, .property-grid, .service-cards, .usp-cards, .testimonial-list, .faq-list {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch;
}

/* Feature items as playful cards */
.feature-item, .service-cards > .text-section, .usp-card, .property-grid > article, .faq-item, .testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 24px var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-item:hover, .service-cards > .text-section:hover, .usp-card:hover, .property-grid > article:hover, .faq-item:hover, .testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(17,24,39,0.14);
}

/* Property/service card sizing via flex-basis */
.property-grid > article, .service-cards > .text-section, .usp-card {
  flex: 1 1 260px; min-width: 260px;
}
.feature-item { flex: 1 1 240px; min-width: 240px; }

/* Testimonial specifics: Dark text on light backgrounds for readability */
.testimonial-card { background: #FFFFFF; color: #111; border-color: #E5E7EB; }
.testimonial-card .rating { font-size: 18px; color: var(--brand-secondary); font-weight: 700; }
.testimonial-card .author { color: var(--muted); font-style: italic; }

/* FAQ list column feel using flex only */
.faq-list { flex-direction: column; }
.faq-item h3 { font-size: 18px; }

/* Steps timeline (flex-based chips) */
.steps-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.steps-timeline li {
  background: var(--brand-accent);
  border: 1px dashed var(--brand-primary);
  border-radius: 12px;
  padding: 10px 12px;
}

/* Text sections */
.text-section { display: flex; flex-direction: column; gap: 10px; }

/* 10) UTILITIES */
.note { background: #fff; border-left: 4px solid var(--sun); padding: 10px 12px; border-radius: 8px; }
.disclaimer { background: #fff; border-left: 4px solid var(--pink); padding: 10px 12px; border-radius: 8px; }

/* 11) FOOTER */
footer { background: #0b3d9110; border-top: 1px solid var(--border); margin-top: 40px; }
footer .content-wrapper { gap: 18px; }
.footer-top, .footer-middle, .footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.footer-top { justify-content: space-between; padding: 16px 0; }
.footer-top img { height: 36px; }
.footer-nav, .legal-nav { display: none; gap: 12px; }
.footer-nav a, .legal-nav a { color: var(--ink); padding: 8px 10px; border-radius: 10px; }
.footer-nav a:hover, .legal-nav a:hover { background: #fff; }
.footer-middle { align-items: flex-start; }
.footer-middle .text-section { flex: 1 1 240px; min-width: 240px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px; box-shadow: 0 6px 16px var(--shadow); }
.footer-bottom { justify-content: center; padding: 10px 0 18px; color: var(--muted); }
.language-switcher { display: inline-flex; gap: 8px; background: var(--brand-accent); border-radius: 999px; padding: 6px 10px; font-weight: 700; color: var(--brand-primary); }

/* 12) NAV — MOBILE MENU */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; background: #fff; border: 1px solid var(--border); box-shadow: 0 6px 16px var(--shadow); }
.mobile-menu-toggle:hover { transform: translateY(-2px); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 2000; background: #ffffff; color: var(--ink);
  transform: translateX(100%);
  transition: transform 0.35s ease;
  display: flex; flex-direction: column; padding: 16px; gap: 14px;
}
.mobile-menu[aria-hidden="false"] { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; width: 42px; height: 42px; border-radius: 10px; background: #fff; border: 1px solid var(--border); box-shadow: 0 6px 16px var(--shadow); }
.mobile-nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-nav a { padding: 12px 10px; border-radius: 12px; background: var(--brand-accent); border: 1px solid #e6eefc; color: var(--brand-primary); font-weight: 700; }
.mobile-nav a:hover { background: #fff; }

/* Hide desktop nav on mobile; show CTAs selectively */
@media (min-width: 992px) {
  .main-nav { display: flex; }
  .header-ctas { display: flex; }
  .mobile-menu-toggle { display: none; }
  .footer-nav, .legal-nav { display: flex; }
}

/* 13) COOKIE CONSENT (banner + modal) */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 3000;
  background: #FFFFFF; color: var(--ink); border-top: 2px solid var(--brand-primary);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.12);
  display: flex; flex-direction: column; gap: 12px; padding: 16px; align-items: center;
  transform: translateY(110%);
  transition: transform 0.35s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .btn { padding: 10px 14px; }
.cookie-banner .btn.reject { background: #fff; color: var(--ink); border: 1px solid var(--border); }
.cookie-banner .btn.settings { background: var(--sun); color: #111; }

.cookie-backdrop { position: fixed; inset: 0; background: rgba(17,24,39,0.45); z-index: 3990; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.cookie-backdrop.show { opacity: 1; pointer-events: auto; }

.cookie-modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -30%);
  z-index: 4000; width: min(92vw, 680px); background: #fff; border-radius: 16px; border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0,0,0,0.22);
  display: none; flex-direction: column; gap: 14px; padding: 16px;
}
.cookie-modal.show { display: flex; animation: modalIn 0.25s ease forwards; }
@keyframes modalIn { from { transform: translate(-50%, -20%); opacity: 0; } to { transform: translate(-50%, -50%); opacity: 1; } }
.cookie-modal .cookie-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; background: var(--brand-accent); border-radius: 10px; }
.cookie-modal .cookie-row .label { font-weight: 700; color: var(--brand-primary); }
.cookie-toggle { width: 44px; height: 26px; border-radius: 26px; background: #D1D5DB; position: relative; transition: background 0.2s ease; }
.cookie-toggle:before { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.2s ease; box-shadow: 0 2px 6px rgba(0,0,0,0.2); }
.cookie-toggle.active { background: var(--brand-secondary); }
.cookie-toggle.active:before { transform: translateX(18px); }

/* 14) ACCESSIBILITY HOVER/FLOAT MICRO-INTERACTIONS */
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn:focus-visible { box-shadow: 0 0 0 3px #ffffff, 0 0 0 6px var(--sun); }

/* 15) PAGE-SPECIFIC TOUCHES */
/* USP cards use playful accent borders */
.usp-card { border-left: 6px solid var(--pink); }
.usp-cards .usp-card:nth-child(2) { border-left-color: var(--sun); }
.usp-cards .usp-card:nth-child(3) { border-left-color: var(--mint); }

/* Headline underlines (fun + energetic) */
h2 { position: relative; display: inline-flex; align-items: center; }
h2:after { content: ""; height: 8px; border-radius: 8px; width: 36px; margin-left: 10px; background: var(--sun); display: inline-block; }

/* 16) ALIGNMENT & WHITE SPACE */
section { padding: 28px 0; }
section + section { margin-top: 8px; }

/* 17) RESPONSIVE */
@media (min-width: 576px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .hero .container { padding-top: 40px; padding-bottom: 40px; }
}
@media (min-width: 768px) {
  h1 { font-size: 42px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
  .content-wrapper { gap: 20px; }
  .cta-row { gap: 14px; }
}
@media (min-width: 992px) {
  h1 { font-size: 48px; }
  .content-wrapper { gap: 24px; }
  .hero .brand img { height: 60px; }
}

/* 18) TEXT-IMAGE SECTION — responsiveness */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
}

/* 19) EXTRA COMPONENTS used across pages */
.badge-row li { background: #fff; color: var(--ink); }
.value-list li { background: #ffffff; border: 2px solid var(--brand-secondary); color: var(--brand-secondary); }
.stat-highlights li { background: var(--brand-accent); border: 1px solid #dbe7ff; color: var(--brand-primary); font-weight: 700; }
.price-highlights li { background: #fff; border: 2px dashed var(--brand-primary); color: var(--brand-primary); font-weight: 700; }

/* 20) LINKS within body content */
.text-section a { color: var(--brand-primary); font-weight: 700; }
.text-section a:hover { color: #072b66; }

/* 21) TABLE-LIKE lists (still flex) */
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.checklist li { display: flex; align-items: center; gap: 8px; padding-left: 10px; position: relative; }
.checklist li:before { content: "✔"; color: var(--brand-secondary); font-weight: 900; }

/* 22) RICH CARD HEADINGS */
.text-section h3 { display: inline-flex; align-items: center; gap: 8px; }
.text-section h3:before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); display: inline-block; }

/* 23) PREVENT OVERLAPS & SPACING GUARANTEES */
.feature-grid > *,
.property-grid > *,
.service-cards > *,
.usp-cards > *,
.testimonial-list > *,
.faq-list > * { margin: 0; }

/* Ensure minimum spacing between cards/sections */
section .container > .content-wrapper > * + * { margin-top: 8px; }

/* 24) HEADER COLOR STRIP (playful) */
header:after { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--pink), var(--sun), var(--mint), var(--purple)); }

/* 25) RATING STARS styling */
.rating { letter-spacing: 2px; }

/* 26) BRAND LOGO MARK inside footer playful pulse */
.footer-top img { animation: logoPulse 4.5s ease-in-out infinite; }
@keyframes logoPulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.04); opacity: 0.95; } }

/* 27) HEADER NAV CHIP ACTIVE STATE (if added via JS) */
.main-nav a.active, .mobile-nav a.active { background: var(--brand-primary); color: #fff; }

/* 28) FORMS (if any appear later) */
input, select, textarea { width: 100%; padding: 12px 12px; border-radius: 10px; border: 1px solid var(--border); background: #fff; }
input:focus, select:focus, textarea:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 3px #0b3d911a; }

/* 29) MISC */
hr { border: none; border-top: 1px solid var(--border); margin: 16px 0; }

/* 30) ENSURE FLEX ON ALL LAYOUT CONTAINERS — NO GRID */
/* Already ensured: all grids/lists/containers use display:flex with flex-wrap */

/* 31) CONTRAST — Testimonial and review sections enforce dark-on-light */
.testimonial-list, .testimonial-card p, .testimonial-card .author { color: #111; }

/* 32) HEADER SUB-LAYOUT for nav/ctas on desktop using flex only */
@media (min-width: 992px) {
  header .container { gap: 18px; }
  header .container { display: flex; }
}

/* 33) SPACING AROUND HERO CTA */
.hero .cta-row { margin-top: 6px; }

/* 34) ENSURE NO ABSOLUTE POSITIONING FOR CONTENT CARDS (only decorative used in hero) */
/* Compliance note: Only .hero:before/:after use absolute. */
