/* =============================
   Bright Sequence RentenKompass
   style.css – Elegant Classic Theme
   Mobile-first, Flexbox-only layouts
   ============================= */

/* ========== CSS RESET & NORMALIZE ========== */
html { box-sizing: border-box; -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: inherit; }
html, body { height: 100%; }
body {
  margin: 0;
  color: #0F2D4A;
  background: #FFFFFF;
  font-family: Verdana, Arial, sans-serif; /* Brand body font */
  font-size: 16px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #2B6E66; text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 2px solid rgba(43,110,102,0.5); outline-offset: 2px; }

/* Root variables (with direct fallbacks used below) */
:root {
  --brand-primary: #0F2D4A;
  --brand-secondary: #2B6E66;
  --brand-accent: #F5FAFE;
  --ink: #0F2D4A;
  --ink-soft: #2F4357;
  --muted: #6A7A8A;
  --line: #E6E2DC;
  --paper: #FFFFFF;
  --paper-tint: #FAF9F6;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 { font-family: Georgia, "Times New Roman", serif; color: #0F2D4A; letter-spacing: 0.2px; }
h1 { font-size: 30px; line-height: 1.2; margin: 0 0 16px; }
h2 { font-size: 22px; line-height: 1.35; margin: 8px 0 16px; color: #0F2D4A; }
h3 { font-size: 18px; line-height: 1.4; margin: 0 0 8px; color: #0F2D4A; }
p { margin: 0 0 12px; color: #1E2E40; }
small { font-size: 13px; color: #5A6A7A; }
.eyebrow { font-family: Georgia, "Times New Roman", serif; font-size: 13px; letter-spacing: 0.07em; text-transform: uppercase; color: #2B6E66; margin-bottom: 10px; }

/* Responsive type scale */
@media (min-width: 768px) {
  body { font-size: 17px; }
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
  h3 { font-size: 20px; }
}
@media (min-width: 1024px) {
  body { font-size: 18px; }
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
}

/* ========== LAYOUT PRIMITIVES (FLEXBOX-ONLY) ========== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

/* Also style native sections similarly for consistent rhythm */
section { padding: 40px 0; }
section + section { margin-top: 0; }

/* ========== HEADER & NAVIGATION ========== */
header {
  position: sticky; top: 0; z-index: 1000;
  background: #FFFFFF;
  border-bottom: 1px solid #E6E2DC;
}
header .container {
  flex-direction: row; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  gap: 12px;
}
header img { height: 32px; width: auto; }

.main-nav { display: none; align-items: center; gap: 16px; }
.main-nav a {
  color: #0F2D4A;
  padding: 8px 6px;
  border-radius: 4px;
  transition: background-color 160ms ease, color 160ms ease;
}
.main-nav a:hover { background: #F5FAFE; color: #2B6E66; text-decoration: none; }

.cta-buttons { display: flex; align-items: center; gap: 10px; }
.mobile-menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 10px; border-radius: 6px;
  border: 1px solid #0F2D4A; background: #FFFFFF; color: #0F2D4A;
}
.mobile-menu-toggle:hover { background: #F5FAFE; }

@media (min-width: 992px) {
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
}

/* ========== BUTTONS ========== */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: 8px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.btn-primary {
  background: #0F2D4A; color: #FFFFFF; border-color: #0F2D4A;
}
.btn-primary:hover { background: #12395C; border-color: #12395C; transform: translateY(-1px); text-decoration: none; }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: #FFFFFF; color: #2B6E66; border-color: #2B6E66;
}
.btn-secondary:hover { background: #E9F3F2; text-decoration: none; }

/* CTA bars */
.hero-cta-bar, .cta-bar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}

/* ========== HERO & INTRO SECTIONS ========== */
.text-section { display: flex; flex-direction: column; gap: 12px; }
.trust-badges {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  background: #F5FAFE; color: #0F2D4A; border: 1px solid #E6E2DC; border-radius: 10px;
  padding: 10px 12px;
}
.trust-badges span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.contact-meta { color: #2F4357; font-size: 14px; }

/* ========== FEATURE & SERVICE GRIDS (cards) ========== */
.feature-grid, .service-cards, .article-teasers, .article-list, .faq-list, .testimonial-slider, .category-filters, .downloads, .service-highlights, .case-teasers, .proof-points, .ratings, .rating-average, .country-scopes, .solutions, .case-metrics, .representation, .risk-mitigation, .newsletter-signup, .search-bar, .filters, .contact-details, .address, .hours, .map-placeholder, .arrival-info, .download-links {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start;
}

/* Card look for common blocks */
.feature-grid > div, .service-cards > div, .article-teasers > div, .article-list > div, .faq-list > div, .testimonial-card, .map-placeholder, .newsletter-signup, .download-links {
  background: #FAF9F6; border: 1px solid #E6E2DC; border-radius: 12px; padding: 20px;
  box-shadow: 0 1px 0 rgba(15,45,74,0.03), 0 12px 24px rgba(15,45,74,0.04);
}

/* Layout sizing */
.feature-grid > div, .service-cards > div, .article-teasers > div, .article-list > div {
  flex: 1 1 100%;
}
@media (min-width: 768px) {
  .feature-grid > div, .service-cards > div, .article-teasers > div, .article-list > div { flex: 1 1 calc(50% - 20px); }
}
@media (min-width: 1024px) {
  .feature-grid > div, .service-cards > div { flex: 1 1 calc(33.333% - 20px); }
}

/* Subtle hover lift on cards */
.feature-grid > div:hover, .service-cards > div:hover, .article-teasers > div:hover, .article-list > div:hover {
  transform: translateY(-2px);
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 1px 0 rgba(15,45,74,0.05), 0 16px 28px rgba(15,45,74,0.08);
}

/* Lists inside cards */
.service-highlights ul, .feature-item ul, .faq-list ul, .contact-details ul { margin: 0; padding-left: 18px; }
.service-highlights li { margin-bottom: 6px; }

/* ========== PROCESS STEPS ========== */
.process-steps { display: flex; flex-direction: column; gap: 16px; }
.process-steps ol {
  display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none;
}
.process-steps li {
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 10px 14px; border: 1px solid #E6E2DC; border-radius: 999px; background: #FFFFFF; color: #0F2D4A;
}

/* ========== TESTIMONIALS ========== */
.testimonial-slider {
  overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; padding-bottom: 8px;
}
.testimonial-card {
  flex: 0 0 100%; scroll-snap-align: start; flex-direction: column; align-items: flex-start;
  background: #FFFFFF; border: 1px solid #E6E2DC; border-radius: 12px; color: #0F2D4A;
}
@media (min-width: 768px) { .testimonial-card { flex: 0 0 calc(50% - 20px); } }
@media (min-width: 1024px) { .testimonial-card { flex: 0 0 calc(33.333% - 20px); } }
.testimonial-card p { margin-bottom: 10px; font-style: italic; }
.testimonial-meta { font-size: 14px; color: #2F4357; }
.rating-average, .ratings { display: flex; align-items: center; gap: 8px; color: #0F2D4A; }

/* ========== RICH CONTENT UTILS ========== */
.search-bar {
  align-items: center; background: #FFFFFF; border: 1px solid #E6E2DC; border-radius: 10px; padding: 10px 12px;
}
.search-bar input[type="search"] {
  flex: 1 1 auto; border: none; background: transparent; padding: 6px 8px; min-width: 0;
}
.filters { color: #2F4357; }
.pagination { display: flex; gap: 16px; align-items: center; color: #2F4357; }
.newsletter-signup { align-items: center; gap: 12px; font-size: 15px; }

/* ========== CONTACT & ADDRESS ========== */
.contact-details, .address, .hours {
  background: #FFFFFF; border: 1px solid #E6E2DC; border-radius: 10px; padding: 14px 16px; color: #0F2D4A;
}
.map-placeholder, .arrival-info {
  background: #FAF9F6; border: 1px dashed #E6E2DC; color: #2F4357;
}
.contact-section { display: flex; flex-direction: column; gap: 12px; }
.support-contact { display: flex; align-items: center; gap: 10px; color: #0F2D4A; }

/* ========== LINKS AS CTA ========== */
.cata-link, .cta-link a { font-weight: 600; }
.cata-link a, .cta-link a { color: #0F2D4A; border-bottom: 1px solid #2B6E66; }
.cata-link a:hover, .cta-link a:hover { color: #2B6E66; text-decoration: none; }

/* ========== TABLES (Cookie page) ========== */
table { width: 100%; border-collapse: collapse; background: #FFFFFF; border: 1px solid #E6E2DC; border-radius: 8px; overflow: hidden; }
thead th { background: #F5FAFE; color: #0F2D4A; text-align: left; padding: 12px; border-bottom: 1px solid #E6E2DC; font-family: Georgia, "Times New Roman", serif; }
td { padding: 12px; border-bottom: 1px solid #EEEAE3; color: #1E2E40; }
tbody tr:nth-child(even) td { background: #FBFBF9; }

/* ========== FOOTER ========== */
footer { background: #F5FAFE; border-top: 1px solid #E6E2DC; }
footer .container { padding: 24px 20px; gap: 16px; }
.footer-nav, .legal-links, .contact-snippet, .brand-tagline {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; text-align: center;
}
footer a { color: #0F2D4A; }
footer a:hover { color: #2B6E66; text-decoration: none; }
.brand-tagline { color: #2F4357; font-style: italic; }

/* ========== MOBILE MENU (Burger) ========== */
.mobile-menu {
  position: fixed; inset: 0 0 0 auto; /* stick to right */
  width: 82%; max-width: 380px; height: 100%;
  background: #FFFFFF; border-left: 1px solid #E6E2DC;
  display: flex; flex-direction: column; gap: 20px;
  padding: 16px; z-index: 2000;
  transform: translateX(100%);
  transition: transform 260ms ease;
  box-shadow: -12px 0 28px rgba(15,45,74,0.08);
}
.mobile-menu.active { transform: translateX(0); }
body.menu-open { overflow: hidden; }

.mobile-menu-close {
  align-self: flex-end;
  border: 1px solid #0F2D4A; background: #FFFFFF; color: #0F2D4A;
  border-radius: 6px; padding: 6px 10px;
}
.mobile-nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-nav a {
  display: flex; align-items: center; padding: 12px 10px;
  border-radius: 8px; color: #0F2D4A;
}
.mobile-nav a:hover { background: #F5FAFE; color: #2B6E66; text-decoration: none; }

/* Hide desktop items on mobile for clarity */
@media (max-width: 991.98px) {
  .cta-buttons { display: none; }
}

/* ========== RESPONSIVE RULES ========== */
/* Text-image sections stack on mobile */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: center; }
}

/* Larger spacing on desktop */
@media (min-width: 1024px) {
  .content-wrapper { gap: 28px; }
  section { padding: 56px 0; }
}

/* ========== UTILITIES ========== */
.muted { color: #6A7A8A; }
.divider { height: 1px; width: 100%; background: #E6E2DC; }
.hidden { display: none !important; }

/* ========== COOKIE CONSENT (Banner & Modal) ========== */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 3000;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: space-between;
  background: #FFFFFF; border-top: 1px solid #E6E2DC; box-shadow: 0 -10px 24px rgba(15,45,74,0.06);
  padding: 14px 16px;
  transform: translateY(0);
  transition: transform 240ms ease;
}
.cookie-banner.is-hidden { transform: translateY(100%); }
.cookie-banner .cookie-text { flex: 1 1 220px; color: #0F2D4A; }
.cookie-banner .cookie-actions { display: flex; align-items: center; gap: 10px; }
.cookie-actions .btn-accept { background: #2B6E66; color: #FFFFFF; border: 1px solid #2B6E66; border-radius: 8px; padding: 10px 14px; }
.cookie-actions .btn-accept:hover { background: #255E58; border-color: #255E58; }
.cookie-actions .btn-reject { background: #FFFFFF; color: #0F2D4A; border: 1px solid #0F2D4A; border-radius: 8px; padding: 10px 14px; }
.cookie-actions .btn-reject:hover { background: #F5FAFE; }
.cookie-actions .btn-settings { background: #FFFFFF; color: #2B6E66; border: 1px solid #2B6E66; border-radius: 8px; padding: 10px 14px; }
.cookie-actions .btn-settings:hover { background: #E9F3F2; }

/* Cookie preferences modal */
.cookie-modal {
  position: fixed; inset: 0; z-index: 4000; display: none; align-items: center; justify-content: center;
  background: rgba(15,45,74,0.45);
}
.cookie-modal.open { display: flex; }
.cookie-modal .modal-content {
  background: #FFFFFF; border: 1px solid #E6E2DC; border-radius: 12px; width: 92%; max-width: 640px;
  padding: 20px; display: flex; flex-direction: column; gap: 16px;
}
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; }
.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; }

/* Simple toggles (visual only; JS binds behavior) */
.toggle {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: #0F2D4A;
}
.switch {
  width: 42px; height: 24px; border-radius: 999px; border: 1px solid #BFC7CF; background: #F1F4F7; position: relative;
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  transition: left 200ms ease, background 200ms ease;
}
.switch.is-on { background: #2B6E66; border-color: #2B6E66; }
.switch.is-on::after { left: 22px; background: #FFFFFF; }

/* ========== ACCESSIBILITY & READABILITY IN TESTIMONIALS ========== */
/* Ensure dark text on light background for all testimonial/review areas */
.testimonial-card, .rating-average, .ratings { background: #FFFFFF; color: #0F2D4A; }
.testimonial-card p, .testimonial-card .testimonial-meta { color: #0F2D4A; }

/* ========== CLASSIC ELEGANT DETAILS ========== */
/* Subtle separators and spacing to reflect classic proportions */
hr { border: none; height: 1px; background: #E6E2DC; margin: 24px 0; }

/* ========== PAGE-SPECIFIC FINE TUNING ========== */
/* Index: case teasers and downloads */
.case-teasers, .downloads { align-items: center; }
.case-teasers strong { font-family: Georgia, "Times New Roman", serif; }
.downloads img, .trust-badges img, .newsletter-signup img, .contact-snippet img, .contact-details img, .address img, .hours img { width: 18px; height: 18px; }

/* Ratgeber list density */
.article-list > div { min-height: 64px; display: flex; align-items: center; }

/* Footer contact snippet */
.contact-snippet { color: #2F4357; }

/* ========== PRINT BASICS ========== */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  body { color: #000; }
  a { color: #000; text-decoration: underline; }
}
