/* ============================================================
   Kelle & Kante Innenausbau – Elegant Classic UI (Flex-only)
   Complete stylesheet for all pages
   ============================================================ */

/* -----------------------------
   1) Reset & Base Normalize
   ----------------------------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, dl, dt, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style-position: outside; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 2px solid #A66A3F; outline-offset: 2px; }

/* -----------------------------
   2) Theme Tokens (with fallbacks)
   ----------------------------- */
:root {
  --kk-primary: #1F2937;     /* Deep graphite */
  --kk-secondary: #A66A3F;   /* Bronze */
  --kk-accent: #F5F3EE;      /* Porcelain */
  --kk-ink: #1F2937;
  --kk-paper: #FFFFFF;
  --kk-muted: #E8E4DC;
  --kk-line: #E1DED7;
  --kk-shadow: rgba(31,41,55,0.08);
}

/* -----------------------------
   3) Base Typography & Body
   ----------------------------- */
body {
  font-family: Verdana, "Trebuchet MS", Georgia, "Times New Roman", serif;
  color: var(--kk-ink);
  background-color: var(--kk-paper);
  line-height: 1.6;
  font-size: 16px;
  letter-spacing: 0.1px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Trebuchet MS", Verdana, Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--kk-primary);
}

h1 { font-size: 34px; margin-bottom: 16px; }
h2 { font-size: 26px; margin-bottom: 16px; }
h3 { font-size: 20px; margin-bottom: 12px; }

p { margin-bottom: 12px; }
.subheadline { color: #3A475A; font-size: 18px; margin-bottom: 20px; }

strong { font-weight: 700; }

/* Typography scale adjustments */
@media (min-width: 768px) {
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
  .subheadline { font-size: 19px; }
}

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

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

section { padding: 40px 0; border-top: 1px solid var(--kk-line); }
section:first-of-type { border-top: none; }

/* Elegant spacing rhythm */
.section-title { margin-bottom: 8px; }

/* 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; display: flex; flex-direction: column; }
.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; }

/* Responsive rule for text-image-section */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; }
}

/* -----------------------------
   5) Header & Navigation
   ----------------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--kk-paper);
  border-bottom: 1px solid var(--kk-line);
  box-shadow: 0 2px 12px var(--kk-shadow);
}

header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

header img { height: 40px; width: auto; }

.main-nav { display: none; align-items: center; gap: 16px; flex-wrap: wrap; }
.main-nav a {
  color: var(--kk-primary);
  padding: 8px 10px;
  border-radius: 6px;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.main-nav a:hover { background-color: var(--kk-accent); color: var(--kk-primary); }
.main-nav a:active { transform: translateY(1px); }

.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--kk-line);
  border-radius: 8px;
  background: var(--kk-paper);
  color: var(--kk-primary);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.mobile-menu-toggle:hover { background-color: var(--kk-accent); border-color: var(--kk-secondary); }

/* Desktop: show main nav, hide burger */
@media (min-width: 992px) {
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
}

/* -----------------------------
   6) CTA Buttons & Links
   ----------------------------- */
.cta-primary,
.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.1s ease;
  font-weight: 600;
}

.cta-primary {
  background-color: var(--kk-secondary);
  color: #fff;
  box-shadow: 0 6px 16px var(--kk-shadow);
}
.cta-primary:hover { background-color: #915D37; }
.cta-primary:active { transform: translateY(1px); }

.cta-secondary {
  background-color: var(--kk-accent);
  color: var(--kk-primary);
  border-color: var(--kk-line);
}
.cta-secondary:hover { border-color: var(--kk-secondary); }

/* -----------------------------
   7) Hero Section
   ----------------------------- */
.hero { background-color: var(--kk-accent); }
.hero .container { gap: 0; }
.hero .content-wrapper { padding: 20px 0; gap: 14px; }
.hero .trust-badges { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.hero .trust-badges img { width: 28px; height: 28px; }

/* Contact snippet in hero */
.contact-snippet { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--kk-primary); }
.contact-snippet img { width: 18px; height: 18px; }
.contact-snippet a { color: var(--kk-primary); text-decoration: underline; text-underline-offset: 3px; }

/* -----------------------------
   8) Feature/USP blocks & Lists
   ----------------------------- */
.usp-grid { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 6px; }
.usp-grid > div {
  flex: 1 1 240px;
  background: #FFFFFF;
  border: 1px solid var(--kk-line);
  border-radius: 12px;
  padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 6px 16px var(--kk-shadow);
}
.usp-grid img { width: 30px; height: 30px; }

.quality-standards-list,
.service-overview-list,
.service-list-tiles,
.service-list-screed,
.quality-specs,
.price-factors,
.values-list,
.related-services { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 4px; padding-left: 18px; }

.related-services { flex-direction: row; flex-wrap: wrap; gap: 12px; padding-left: 0; }
.related-services li { list-style: none; }
.related-services a { padding: 8px 12px; border: 1px solid var(--kk-line); border-radius: 8px; background: #fff; }
.related-services a:hover { border-color: var(--kk-secondary); }

/* Service highlights as elegant cards */
.service-highlight,
.service-detail {
  background: #FFFFFF;
  border: 1px solid var(--kk-line);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 6px 16px var(--kk-shadow);
  display: flex; flex-direction: column; gap: 10px;
}
.service-highlight a { color: var(--kk-secondary); text-decoration: underline; text-underline-offset: 3px; }

/* Ordered steps */
.process-steps,
.steps { display: flex; flex-direction: column; gap: 8px; padding-left: 18px; }

/* Notes and badges */
.on-time-promise,
.clean-work-policy,
.site-assessment-note,
.materials-and-brands-note,
.warranty-and-aftercare,
.example-range,
.what-is-included,
.transparent-quote-explanation,
.project-metrics,
.performance-metrics,
.response-time-note,
.guarantee-statement,
.mission-statement,
.brand-story,
.team-preview,
.numbers-and-facts,
.material-policy,
.work-ethos {
  background: var(--kk-accent);
  border: 1px solid var(--kk-line);
  border-radius: 10px;
  padding: 14px 16px;
}

/* Data list */
dt { font-weight: 700; margin-top: 10px; }
dd { margin-left: 0; margin-bottom: 8px; }

/* -----------------------------
   9) Testimonials (high contrast, light background)
   ----------------------------- */
.testimonial-card {
  background: #FFFFFF;
  border: 1px solid var(--kk-line);
  border-radius: 12px;
  box-shadow: 0 6px 16px var(--kk-shadow);
}
.testimonial-card p { color: var(--kk-primary); font-style: italic; }
.testimonial-card strong { color: var(--kk-primary); }

.star-rating-average { display: flex; align-items: center; gap: 10px; color: var(--kk-primary); margin-top: 6px; }
.star-rating-average img { width: 20px; height: 20px; }

/* -----------------------------
   10) Contact Details & Info Blocks
   ----------------------------- */
.contact-details { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.contact-details img { width: 18px; height: 18px; }
.contact-details a { color: var(--kk-secondary); text-decoration: underline; text-underline-offset: 3px; }

.working-hours { display: flex; align-items: center; gap: 8px; }

/* Numbers & facts list inside a container */
.numbers-and-facts ul { display: flex; flex-wrap: wrap; gap: 10px 16px; padding-left: 18px; }

/* -----------------------------
   11) Case studies
   ----------------------------- */
.case-study {
  display: flex; flex-direction: column; gap: 10px;
  background: #FFFFFF;
  border: 1px solid var(--kk-line);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 6px 16px var(--kk-shadow);
}
.case-study blockquote { margin: 6px 0 0; padding-left: 14px; border-left: 3px solid var(--kk-secondary); color: #3A475A; }

/* -----------------------------
   12) Footer
   ----------------------------- */
footer { background: var(--kk-accent); border-top: 1px solid var(--kk-line); margin-top: 20px; }
footer .container { gap: 24px; padding-top: 24px; padding-bottom: 24px; }
.footer-columns { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-columns > div { flex: 1 1 240px; display: flex; flex-direction: column; gap: 10px; }
.footer-columns h3 { font-size: 18px; margin-bottom: 6px; }
.footer-columns ul { display: flex; flex-direction: column; gap: 8px; padding-left: 18px; }
.footer-columns a { color: var(--kk-primary); }
.footer-columns a:hover { text-decoration: underline; text-underline-offset: 3px; }

.footer-brand { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--kk-line); padding-top: 12px; }
.footer-brand img { height: 30px; width: auto; }

/* -----------------------------
   13) Mobile Menu (off-canvas)
   ----------------------------- */
.mobile-menu {
  position: fixed; inset: 0 0 0 auto; /* right slide-in */
  width: 100%; max-width: 320px;
  background: #FFFFFF;
  border-left: 1px solid var(--kk-line);
  box-shadow: -8px 0 24px rgba(0,0,0,0.08);
  z-index: 1200;
  display: flex; flex-direction: column; gap: 16px;
  padding: 16px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-menu.open,
body.menu-open .mobile-menu,
.mobile-menu.active { transform: translateX(0); }

.mobile-menu-close {
  align-self: flex-end;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--kk-line);
  border-radius: 8px; background: var(--kk-paper);
  cursor: pointer;
}

.mobile-nav { display: flex; flex-direction: column; gap: 10px; }
.mobile-nav a {
  padding: 12px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  color: var(--kk-primary);
}
.mobile-nav a:hover { background: var(--kk-accent); border-color: var(--kk-line); }

/* Fullscreen scrim when menu open */
body.menu-open::after {
  content: "";
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1100;
}

/* -----------------------------
   14) Cookie Consent (banner + modal)
   ----------------------------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 1400;
  display: flex; align-items: center; justify-content: center;
  padding: 14px;
  background: #FFFFFF;
  border-top: 1px solid var(--kk-line);
  box-shadow: 0 -8px 24px rgba(0,0,0,0.08);
  transform: translateY(110%);
  transition: transform 0.35s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-inner {
  width: 100%; max-width: 1100px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
}
.cookie-banner p { flex: 1 1 260px; margin: 0; color: var(--kk-primary); }
.cookie-actions { display: flex; align-items: center; gap: 10px; }
.cookie-btn {
  padding: 10px 14px; border-radius: 8px; border: 1px solid var(--kk-line);
  background: var(--kk-accent); color: var(--kk-primary);
  cursor: pointer; transition: background-color 0.2s ease, border-color 0.2s ease;
}
.cookie-btn.primary { background: var(--kk-secondary); color: #fff; border-color: var(--kk-secondary); }
.cookie-btn.primary:hover { background: #915D37; }
.cookie-btn.reject { background: #FFFFFF; }
.cookie-btn:hover { border-color: var(--kk-secondary); }

/* Modal */
.cookie-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 1500; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.cookie-modal-overlay.show { opacity: 1; pointer-events: auto; }
.cookie-modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.98);
  width: 94%; max-width: 640px;
  background: #FFFFFF; border: 1px solid var(--kk-line); border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.18);
  z-index: 1600; opacity: 0; pointer-events: none; transition: transform 0.25s ease, opacity 0.25s ease;
  display: flex; flex-direction: column; gap: 12px; padding: 18px;
}
.cookie-modal.show { 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; border-bottom: 1px solid var(--kk-line); padding-bottom: 8px; }
.cookie-modal h3 { margin: 0; font-size: 20px; }
.cookie-modal .cookie-groups { display: flex; flex-direction: column; gap: 10px; }
.cookie-group { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; background: var(--kk-accent); border: 1px solid var(--kk-line); border-radius: 10px; }
.cookie-group .group-info { display: flex; flex-direction: column; gap: 4px; }
.cookie-toggle { display: inline-flex; align-items: center; gap: 8px; }
.cookie-modal footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--kk-line); padding-top: 10px; }

/* -----------------------------
   15) Cards & Generic UI Elements
   ----------------------------- */
.card {
  background: #FFFFFF;
  border: 1px solid var(--kk-line);
  border-radius: 12px;
  box-shadow: 0 6px 16px var(--kk-shadow);
  padding: 18px;
}

/* Links */
a { color: var(--kk-secondary); }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Tables (if any in future) – flex-friendly wrappers only */
.table-wrap { display: flex; flex-direction: column; gap: 10px; overflow-x: auto; border: 1px solid var(--kk-line); border-radius: 8px; padding: 10px; }

/* -----------------------------
   16) Forms (generic styles for future use)
   ----------------------------- */
.form-row { display: flex; flex-wrap: wrap; gap: 12px; }
.input, input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--kk-line); border-radius: 8px; background: #fff;
}
.input:focus, input:focus, textarea:focus, select:focus { border-color: var(--kk-secondary); box-shadow: 0 0 0 3px rgba(166,106,63,0.12); }

/* -----------------------------
   17) Page-specific small tweaks
   ----------------------------- */
/* Hero spacing across pages */
.hero h1 + .subheadline { margin-top: -6px; }

/* Reference/Project lists */
.project-metrics p,
.performance-metrics p { margin: 0; }

/* Footer quick/legal lists bullets visually aligned */
footer .quick-links ul, footer .legal-links ul { padding-left: 18px; }

/* -----------------------------
   18) Responsive Layout
   ----------------------------- */
@media (min-width: 768px) {
  .container { gap: 24px; }
  .content-wrapper { gap: 18px; }

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

  /* Arrange service highlight blocks side-by-side when space allows */
  .service-highlight, .service-detail { flex: 1 1 calc(50% - 12px); }

  .footer-brand { justify-content: space-between; }
}

@media (min-width: 1024px) {
  /* Refined classic proportions */
  .usp-grid > div { flex: 1 1 calc(25% - 15px); }

  .footer-columns { gap: 32px; }
}

/* -----------------------------
   19) Print (clean)
   ----------------------------- */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal, .cta-primary, .cta-secondary { display: none !important; }
  a { text-decoration: underline; }
  section { border: none; }
}

/* -----------------------------
   20) Accessibility & Micro-interactions
   ----------------------------- */
button, .cta-primary, .cta-secondary, .mobile-nav a, .main-nav a {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.08s ease;
}
button:active, .mobile-nav a:active, .main-nav a:active { transform: translateY(1px); }

/* -----------------------------
   21) Ensured Flex-only for layout containers
   (No CSS Grid or CSS Columns used)
   ----------------------------- */
/* Additional generic flex helpers */
.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; }

/* -----------------------------
   22) Fine details for classic elegance
   ----------------------------- */
hr { border: none; border-top: 1px solid var(--kk-line); margin: 20px 0; }
blockquote { color: #3A475A; font-style: italic; }

/* Ensure no overlapping by spacing */
section + section { margin-top: 10px; }

/* -----------------------------
   23) High-contrast testimonial/review requirement
   ----------------------------- */
/* Already using #fff/bg-accent and dark text for readability */

/* -----------------------------
   24) Utility visibility classes (optional)
   ----------------------------- */
.hidden { display: none !important; }
.show { display: block !important; }
