/* =============================
   Brisk Current - style.css
   Design: gradient_modern (modern gradients, smooth transitions)
   Brand: Brisk Current Ausbau & Sanierung
   Fonts: Trebuchet MS (display), Verdana (body)
   Layout: MOBILE FIRST, FLEX ONLY (no grid/columns)
   ============================= */

/* ========== CSS Reset & Normalize ========== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { line-height: 1.6; color: #1a2428; background-color: #F4EDE4; font-family: Verdana, Geneva, Tahoma, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0 0 0 1.2rem; }
dt { font-weight: 700; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font: inherit; }

/* ========== Root Variables (with direct fallbacks in properties) ========== */
:root {
  --bc-primary: #264653; /* deep blue-green */
  --bc-secondary: #6B7D84; /* slate gray */
  --bc-accent: #F4EDE4; /* warm light */
  --bc-dark: #122025; /* deep text */
  --bc-white: #ffffff;
  --bc-success: #2e7d32;
  --bc-danger: #c62828;
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 18px;
  --shadow-s: 0 2px 10px rgba(18,32,37,0.06);
  --shadow-m: 0 8px 24px rgba(18,32,37,0.10);
  --shadow-l: 0 16px 40px rgba(18,32,37,0.14);
  --trans-fast: 180ms ease;
  --trans-mid: 260ms ease;
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5 { font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif; color: #122025; line-height: 1.2; margin: 0 0 12px 0; }
p { margin: 0 0 12px 0; }

/* Type scale (mobile-first) */
h1 { font-size: 32px; letter-spacing: -0.3px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
small { font-size: 14px; }

/* ========== Generic Layout Helpers (Flex-only) ========== */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; flex-direction: column; gap: 16px; }
.content-wrapper { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }

/* Mandatory spacing and alignment patterns */
.section { margin-bottom: 60px; padding: 40px 20px; display: flex; flex-direction: column; gap: 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; display: flex; flex-direction: column; gap: 12px; }
.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; }

/* ========== Header & Navigation ========== */
header { position: sticky; top: 0; z-index: 1000; background-color: #ffffff; box-shadow: var(--shadow-s); }
header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
header a img { height: 40px; width: auto; }

/* Main nav (hidden on mobile) */
header > .container > nav { display: none; align-items: center; gap: 16px; }
header > .container > nav a { color: #122025; padding: 8px 10px; border-radius: 8px; transition: background-color var(--trans-fast), color var(--trans-fast); }
header > .container > nav a:hover { background-color: #F4EDE4; color: #264653; }

/* Header CTA (hidden on mobile) */
.header-cta { display: none; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Mobile burger button */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin: 8px 16px 12px; border-radius: 10px; color: #ffffff; background-color: #264653; transition: transform var(--trans-fast), background-color var(--trans-fast); }
.mobile-menu-toggle:hover { transform: translateY(-1px); background-color: #1e3a44; }
.mobile-menu-toggle:focus { outline: 2px solid #6B7D84; outline-offset: 2px; }

/* Mobile slide-in menu */
.mobile-menu { position: fixed; top: 0; right: 0; bottom: 0; width: 82%; max-width: 360px; background-color: #ffffff; box-shadow: var(--shadow-l); transform: translateX(100%); transition: transform 320ms ease; z-index: 1100; display: flex; flex-direction: column; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; margin: 14px; width: 40px; height: 40px; border-radius: 10px; background-color: #F4EDE4; color: #122025; }
.mobile-nav { display: flex; flex-direction: column; gap: 6px; padding: 0 16px 24px; overflow-y: auto; }
.mobile-nav a { padding: 12px 12px; border-radius: 10px; color: #122025; transition: background-color var(--trans-fast), color var(--trans-fast); }
.mobile-nav a:hover { background-color: #F4EDE4; color: #264653; }

/* Optional dim backdrop for mobile menu (appear when .mobile-menu is open) */
.mobile-menu::before { content: ""; position: fixed; inset: 0; right: 82%; background: rgba(0,0,0,0.38); opacity: 0; transition: opacity 320ms ease; pointer-events: none; }
.mobile-menu.open::before { opacity: 1; pointer-events: auto; }

/* ========== Hero ========== */
.hero { background-color: #264653; background-image: linear-gradient(135deg, #264653 0%, #385a66 50%, #6B7D84 100%); color: #ffffff; }
.hero .container { padding-top: 40px; padding-bottom: 40px; }
.hero .content-wrapper { align-items: flex-start; gap: 16px; }
.hero h1, .hero p, .hero strong { color: #ffffff; }
.hero .trust-badges, .hero .highlights, .hero .contact-snippet { background-color: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.14); border-radius: 12px; padding: 10px 12px; }
.hero .contact-snippet { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.hero .contact-snippet img { width: 18px; height: 18px; filter: brightness(0) invert(1); }

/* ========== Buttons ========== */
.btn-primary, .btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border-radius: 12px; font-weight: 700; text-align: center; transition: transform var(--trans-fast), box-shadow var(--trans-fast), background-color var(--trans-fast), color var(--trans-fast); }

.btn-primary { color: #ffffff; background-color: #264653; box-shadow: var(--shadow-s); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); background-color: #1e3a44; }
.btn-primary:focus { outline: 2px solid #6B7D84; outline-offset: 2px; }

.btn-secondary { color: #264653; background-color: #F4EDE4; border: 1px solid #D8D1C8; }
.btn-secondary:hover { transform: translateY(-2px); background-color: #ebe3d8; border-color: #cfc7bd; }
.btn-secondary:focus { outline: 2px solid #6B7D84; outline-offset: 2px; }

/* ========== Sections (default) ========== */
main section { margin-bottom: 40px; padding: 24px 0; background: transparent; }
main section .container { gap: 20px; }

/* Gradient section variant on alternation for contemporary rhythm */
main section:nth-of-type(2n) { background-color: #ffffff; background-image: linear-gradient(180deg, rgba(107,125,132,0.06), rgba(244,237,228,0)); }

/* ========== Feature grid (ul.feature-grid) ========== */
.feature-grid { list-style: none; padding-left: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.feature-grid li { flex: 1 1 100%; background: #ffffff; border: 1px solid #E7E2DA; border-radius: 14px; padding: 16px; box-shadow: var(--shadow-s); transition: transform var(--trans-fast), box-shadow var(--trans-fast); }
.feature-grid li:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); }
.feature-grid h3 { margin-bottom: 6px; color: #264653; }

/* ========== Service cards (div.service-cards > div) ========== */
.service-cards { display: flex; flex-wrap: wrap; gap: 16px; }
.service-cards > div { flex: 1 1 100%; background: #ffffff; border: 1px solid #E7E2DA; border-radius: 14px; padding: 16px; box-shadow: var(--shadow-s); transition: transform var(--trans-fast), box-shadow var(--trans-fast); }
.service-cards > div:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); }
.service-cards h3 a { color: #264653; text-decoration: none; }
.service-cards p { margin: 6px 0 0 0; color: #324148; }

/* ========== Process steps (ol.process-steps) ========== */
.process-steps { padding-left: 1.2rem; display: flex; flex-direction: column; gap: 8px; }
.timeline-visual { display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px; border-radius: 999px; background-color: #F4EDE4; color: #264653; border: 1px solid #E7E2DA; }

/* ========== Testimonials (light cards with dark text for readability) ========== */
.testimonial-list { display: flex; flex-wrap: wrap; gap: 16px; }
.testimonial-card { flex: 1 1 100%; background: #ffffff; border: 1px solid #E7E2DA; border-radius: 14px; box-shadow: var(--shadow-s); color: #122025; }
.testimonial-card p { margin: 0; color: #122025; }
.testimonial-card span { color: #4a5a61; }
.rating-summary { display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 10px; background-color: #ffffff; border: 1px solid #E7E2DA; color: #264653; font-weight: 700; }
.google-badge { display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 10px; background-color: #ffffff; border: 1px solid #E7E2DA; color: #122025; }
.quote-highlight { background-color: #ffffff; border-left: 4px solid #264653; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-s); color: #122025; }

/* ========== Category tiles (Ratgeber) ========== */
.category-tiles { display: flex; flex-wrap: wrap; gap: 16px; }
.category-tiles > div { flex: 1 1 100%; padding: 20px; border-radius: 14px; color: #122025; background-color: #ffffff; background-image: linear-gradient(135deg, rgba(38,70,83,0.08), rgba(107,125,132,0.10)); border: 1px solid #E7E2DA; box-shadow: var(--shadow-s); transition: transform var(--trans-fast), box-shadow var(--trans-fast); }
.category-tiles > div:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); }
.category-tiles h3 { color: #264653; margin: 0; }

/* ========== Lists in content ========== */
.content-wrapper > ul, .content-wrapper > ol, .content-wrapper > dl { display: flex; flex-direction: column; gap: 8px; }
.content-wrapper li { margin: 0; }
.content-wrapper dl dd { margin: 0 0 8px 0; }

/* ========== Coverage, CTA rows, badges ========== */
.coverage { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: #ffffff; border: 1px solid #E7E2DA; color: #264653; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 10px; }

/* ========== Text sections, map embed ========== */
.text-section { display: flex; flex-direction: column; gap: 10px; background: #ffffff; border: 1px solid #E7E2DA; border-radius: 14px; padding: 16px; box-shadow: var(--shadow-s); }
.map-embed { display: flex; align-items: center; justify-content: center; min-height: 200px; padding: 16px; border-radius: 14px; background-color: #ffffff; background-image: linear-gradient(135deg, rgba(244,237,228,0.8), rgba(107,125,132,0.10)); border: 1px solid #E7E2DA; color: #264653; font-weight: 700; box-shadow: var(--shadow-s); }

/* ========== Footer ========== */
footer { background-color: #0f1c20; color: #e9eef0; }
footer .container { padding-top: 28px; padding-bottom: 28px; }
footer .content-wrapper { display: flex; flex-direction: column; gap: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 16px; }
footer nav a { color: #d7e0e4; padding: 6px 0; }
footer nav a:hover { color: #ffffff; text-decoration: underline; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; color: #d7e0e4; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand img { height: 40px; width: auto; filter: brightness(0) invert(1); }
.footer-brand p { margin: 0; color: #d7e0e4; }
.footer-copyright { padding: 14px 16px; text-align: center; background-color: #0b1518; color: #9bb0b7; font-size: 14px; }

/* ========== Links inside content ========== */
.content-wrapper a:not(.btn-primary):not(.btn-secondary) { color: #264653; text-decoration: underline; text-underline-offset: 3px; transition: color var(--trans-fast); }
.content-wrapper a:not(.btn-primary):not(.btn-secondary):hover { color: #1e3a44; }

/* ========== Cookie Consent Banner ========== */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200; display: none; /* toggled with .show */ background-color: #ffffff; border-top: 1px solid #E7E2DA; box-shadow: 0 -8px 24px rgba(18,32,37,0.08); }
.cookie-banner.show { display: flex; }
.cookie-banner .cookie-inner { width: 100%; max-width: 1200px; margin: 0 auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 12px; }
.cookie-banner p { margin: 0; color: #122025; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.cookie-accept { background-color: #264653; color: #ffffff; }
.cookie-accept:hover { background-color: #1e3a44; }
.cookie-reject { background-color: #F4EDE4; color: #264653; border: 1px solid #E7E2DA; }
.cookie-settings { background-color: #ffffff; color: #264653; border: 1px solid #E7E2DA; }

/* Cookie modal */
.cookie-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 1300; display: none; align-items: center; justify-content: center; padding: 16px; }
.cookie-modal.open { display: flex; }
.cookie-modal .cookie-box { width: 100%; max-width: 640px; background: #ffffff; border-radius: 14px; box-shadow: var(--shadow-l); border: 1px solid #E7E2DA; display: flex; flex-direction: column; }
.cookie-box .cookie-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid #E7E2DA; }
.cookie-box .cookie-content { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.cookie-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed #E7E2DA; }
.cookie-row:last-child { border-bottom: none; }
.cookie-toggle { display: inline-flex; align-items: center; gap: 8px; }
.cookie-box .cookie-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 16px; border-top: 1px solid #E7E2DA; }

/* ========== Forms (basic) ========== */
input[type="text"], input[type="email"], input[type="tel"], textarea, select { width: 100%; padding: 12px 14px; border: 1px solid #D8D1C8; border-radius: 10px; background: #ffffff; transition: border-color var(--trans-fast), box-shadow var(--trans-fast); }
input:focus, textarea:focus, select:focus { outline: none; border-color: #6B7D84; box-shadow: 0 0 0 3px rgba(107,125,132,0.2); }

/* ========== Utilities ========== */
.badge { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; background: #F4EDE4; color: #264653; border: 1px solid #E7E2DA; }
.muted { color: #6B7D84; }
.center { text-align: center; }
.stack-8 > * + * { margin-top: 8px; }
.stack-12 > * + * { margin-top: 12px; }
.stack-16 > * + * { margin-top: 16px; }
.stack-24 > * + * { margin-top: 24px; }

/* ========== Page-specific small touches ========== */
/* Sitemap list spacing */
main .content-wrapper ul li { padding: 4px 0; }

/* Contact snippets and address blocks */
.content-wrapper > div strong { color: #264653; }

/* Footer quick links section (on certain pages) */
footer .content-wrapper > div { display: flex; flex-wrap: wrap; gap: 8px; }

/* ========== Responsive (Mobile-first) ========== */
@media (min-width: 576px) {
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
  .service-cards > div, .feature-grid li, .testimonial-card { padding: 18px; }
}

@media (min-width: 768px) {
  h1 { font-size: 42px; }
  h2 { font-size: 28px; }

  /* Show desktop nav and header CTA; hide burger */
  header > .container > nav { display: flex; }
  .header-cta { display: flex; }
  .mobile-menu-toggle { display: none; }

  /* Text-image sections align side-by-side */
  .text-image-section { flex-direction: row; }

  /* Feature grid 2-up */
  .feature-grid li { flex: 1 1 calc(50% - 8px); }

  /* Service cards 2-up */
  .service-cards > div { flex: 1 1 calc(50% - 8px); }

  /* Testimonials 2-up */
  .testimonial-card { flex: 1 1 calc(50% - 8px); }

  /* Footer layout - columns */
  footer .content-wrapper { flex-direction: row; align-items: flex-start; justify-content: space-between; }
}

@media (min-width: 1024px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 20px; }

  /* Feature grid 3-up on large */
  .feature-grid li { flex: 1 1 calc(33.333% - 11px); }

  /* Service cards 3-up on large */
  .service-cards > div { flex: 1 1 calc(33.333% - 11px); }

  /* Testimonials 3-up if many */
  .testimonial-card { flex: 1 1 calc(33.333% - 11px); }

  .container { padding-left: 24px; padding-right: 24px; }
}

/* ========== Accessibility Focus States ========== */
a:focus { outline: 2px solid #6B7D84; outline-offset: 2px; }
.btn-primary:focus, .btn-secondary:focus, .cookie-btn:focus { outline: 2px solid #6B7D84; outline-offset: 2px; }

/* ========== Prevent overlaps & ensure spacing ========== */
main .content-wrapper > * { margin-bottom: 8px; }
main .content-wrapper > *:last-child { margin-bottom: 0; }

/* ========== Print adjustments ========== */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal { display: none !important; }
  header, footer { box-shadow: none !important; }
}
