/* ===============================
   BanniWools Raumkönner — style.css
   Luxury Premium Aesthetic: gold accents, premium fonts, sophisticated colors
   Mobile-first, Flexbox-only layouts, smooth interactions
   =============================== */

/* --------- CSS RESET & NORMALIZE --------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, video { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding-left: 1.2rem; }
h1, h2, h3, h4, h5, h6, p, figure { margin: 0; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: 0; background: none; font: inherit; }
:focus { outline: none; }
:focus-visible { outline: 2px solid #D4AF37; outline-offset: 2px; }

/* --------- THEME TOKENS --------- */
:root {
  --color-primary: #1F3A56; /* deep navy */
  --color-secondary: #C27A3A; /* warm bronze */
  --color-accent: #F5F7FA; /* light surface */
  --color-ink: #142231; /* primary body text */
  --color-ink-soft: #2C3E50; /* softer headings/body */
  --color-muted: #6B7A8B; /* muted text */
  --color-border: #D8DFE6; /* soft borders */
  --color-gold: #D4AF37; /* subtle gold accent */
  --color-white: #FFFFFF;

  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 16px;

  --shadow-s: 0 4px 14px rgba(31, 58, 86, 0.08);
  --shadow-m: 0 10px 28px rgba(31, 58, 86, 0.12);

  --container-max: 1200px;
}

/* --------- TYPOGRAPHY --------- */
html { font-size: 16px; }
body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--color-ink);
  background: var(--color-white);
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: "Trebuchet MS", Arial, Helvetica, sans-serif; color: var(--color-ink-soft); letter-spacing: 0.2px; }
h1 { font-size: 34px; line-height: 1.2; }
h2 { font-size: 28px; line-height: 1.25; }
h3 { font-size: 20px; line-height: 1.3; }
.subheadline { color: var(--color-muted); font-size: 18px; }
.small, small { font-size: 14px; color: var(--color-muted); }
strong { color: var(--color-ink); }

/* Premium headings accent underline */
h2 { position: relative; padding-top: 6px; }
h2::before { content: ""; display: block; width: 44px; height: 3px; background: var(--color-gold); border-radius: 2px; margin-bottom: 12px; }

/* --------- LAYOUT PRIMITIVES (FLEX-ONLY) --------- */
.container { display: flex; justify-content: center; padding: 0 20px; }
.content-wrapper { display: flex; flex-direction: column; gap: 24px; width: 100%; max-width: var(--container-max); }

main > section { padding: 40px 0; }

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

/* Ensure default section spacing between stacked elements */
.content-wrapper > * + * { margin-top: 0; }

/* --------- HEADER --------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.9); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--color-border); }
.site-header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.logo img { height: 38px; width: auto; }

.site-nav { display: none; align-items: center; gap: 14px; }
.site-nav a { color: var(--color-ink); padding: 10px 12px; border-radius: 8px; transition: color 0.25s ease, background-color 0.25s ease; }
.site-nav a:hover { background: var(--color-accent); color: var(--color-primary); }
.site-nav a[aria-current="page"] { color: var(--color-primary); box-shadow: inset 0 -2px 0 0 var(--color-gold); }

.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: var(--color-primary); color: #fff; box-shadow: var(--shadow-s); transition: transform 0.2s ease, background 0.2s ease; }
.mobile-menu-toggle:hover { transform: translateY(-1px); background: #214665; }

/* --------- MOBILE MENU (Covers Full Screen) --------- */
.mobile-menu {
  position: fixed; inset: 0; display: flex; flex-direction: column; gap: 12px;
  background: linear-gradient(180deg, rgba(31,58,86,0.98), rgba(31,58,86,0.96));
  color: #fff; padding: 20px; transform: translateX(100%); transition: transform 0.35s ease; z-index: 1200;
  display: none;
}
.mobile-menu.open { transform: translateX(0);  }
.mobile-menu-close { align-self: flex-end; width: 44px; height: 44px; color: #fff; background: rgba(255,255,255,0.08); border-radius: 10px; }
.mobile-nav { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.mobile-nav a { color: #fff; padding: 14px 12px; border-radius: 10px; background: rgba(255,255,255,0.04); transition: background 0.2s ease; }
.mobile-nav a:hover { background: rgba(255,255,255,0.12); }
.mobile-nav a[aria-current="page"] { background: rgba(212,175,55,0.22); box-shadow: inset 0 0 0 1px rgba(212,175,55,0.55); }

/* Desktop nav visibility */
@media (min-width: 992px) {
  .site-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
}

/* --------- HERO --------- */
.hero { background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%); border-bottom: 1px solid var(--color-border); }
.hero .content-wrapper { padding: 28px 0; }
.hero h1 { color: var(--color-primary); font-size: 32px; }
.hero .subheadline { max-width: 780px; }

/* Luxury divider under H1 */
.hero h1::after { content: ""; display: block; width: 60px; height: 3px; background: var(--color-gold); margin-top: 14px; border-radius: 2px; }

.cta-group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.supporting-points { display: flex; flex-direction: column; gap: 8px; list-style: none; padding: 0; }
.supporting-points li { display: flex; align-items: center; gap: 10px; }
.supporting-points li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-gold); flex: 0 0 8px; box-shadow: 0 0 0 2px rgba(212,175,55,0.18); }

/* --------- BUTTONS --------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--radius-m); padding: 12px 18px; font-weight: 700; letter-spacing: 0.2px; transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease; box-shadow: var(--shadow-s); border: 1px solid transparent; }
.button.primary { background: linear-gradient(180deg, #C27A3A, #b46f35); color: #fff; border-color: rgba(212,175,55,0.3); }
.button.primary:hover { background: linear-gradient(180deg, #cb8648, #bf7941); transform: translateY(-1px); box-shadow: var(--shadow-m); }
.button.link { background: transparent; color: var(--color-primary); border-color: var(--color-border); }
.button.link:hover { background: var(--color-accent); color: var(--color-primary); }
.button:active { transform: translateY(0); }
.button:focus-visible { box-shadow: 0 0 0 3px rgba(212,175,55,0.4); }

/* --------- TEXT & CONTENT BLOCKS --------- */
.text-section { display: flex; flex-direction: column; gap: 10px; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-l); padding: 18px; box-shadow: var(--shadow-s); }
.text-section ul, .text-section ol { padding-left: 18px; }
.text-section li { margin: 6px 0; }
.privacy-note { color: var(--color-muted); font-size: 14px; }

/* --------- SERVICE CARDS --------- */
.service-cards { display: flex; flex-wrap: wrap; gap: 24px; }
.service-card { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-l); padding: 18px; box-shadow: var(--shadow-s); }
.service-card h3 { color: var(--color-primary); }
.service-card::before { content: ""; display: block; height: 3px; width: 60px; background: linear-gradient(90deg, var(--color-gold), rgba(212,175,55,0.3)); border-radius: 2px; margin-bottom: 6px; }
.service-card p { color: var(--color-ink); }
.service-card:hover { box-shadow: var(--shadow-m); border-color: rgba(212,175,55,0.45); }

/* --------- CTA BANNER --------- */
.cta-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: space-between; background: var(--color-primary); color: #fff; border: 1px solid rgba(212,175,55,0.34); border-radius: var(--radius-l); padding: 16px; box-shadow: var(--shadow-s); }
.cta-banner p { font-weight: 600; }

/* --------- TESTIMONIALS (High Contrast: dark text on light bg) --------- */
.testimonial-card { background: #ffffff; border: 1px solid var(--color-border); border-left: 4px solid var(--color-gold); border-radius: var(--radius-l); box-shadow: var(--shadow-s); color: var(--color-ink); }
.testimonial-card p { margin: 0; }
.testimonial-card p + p { color: var(--color-ink-soft); }

/* --------- CONTACT BLOCK --------- */
.contact-block { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-l); padding: 18px; box-shadow: var(--shadow-s); }
.contact-block p { display: flex; align-items: center; gap: 10px; }
.contact-block a { color: var(--color-primary); text-decoration: underline; }

/* --------- FOOTER --------- */
.site-footer { background: #0f1c2a; color: #d9e2ec; padding: 40px 0 20px; border-top: 2px solid rgba(212,175,55,0.25); }
.site-footer .content-wrapper { gap: 24px; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand img { width: 40px; height: auto; }
.footer-brand p { color: #c8d3df; }
.footer-nav, .footer-legal, .footer-contact { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.footer-nav a, .footer-legal a { color: #e6edf5; padding: 6px 8px; border-radius: 6px; transition: background 0.2s ease; }
.footer-nav a:hover, .footer-legal a:hover { background: rgba(255,255,255,0.06); }
.footer-contact a { color: #e6edf5; text-decoration: underline; }
.footer-bottom { display: flex; align-items: center; justify-content: center; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.08); color: #bcd0e0; }

/* --------- LIST REFINEMENTS --------- */
ul { list-style: disc; }
ol { list-style: decimal; }

/* --------- ACCESSIBILITY & INTERACTIONS --------- */
a, .button, button { transition: all 0.2s ease; }
a:hover { color: var(--color-secondary); }

/* --------- RESPONSIVE --------- */
@media (min-width: 600px) {
  h1 { font-size: 38px; }
  h2 { font-size: 30px; }
}
@media (min-width: 992px) {
  h1 { font-size: 48px; }
  h2 { font-size: 36px; }
  .hero .content-wrapper { padding: 40px 0; }
}

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

/* --------- GENERIC CARDS (if used) --------- */
.card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-l); padding: 18px; box-shadow: var(--shadow-s); }
.card:hover { box-shadow: var(--shadow-m); }

/* --------- BREADCRUMBS/UTILS (future-safe) --------- */
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 12px; border: 1px solid var(--color-border); background: var(--color-accent); }
.hr { height: 1px; background: var(--color-border); width: 100%; }

/* --------- COOKIE CONSENT (Banner + Modal) --------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1400; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; background: #ffffff; color: var(--color-ink); border-top: 2px solid rgba(212,175,55,0.35); box-shadow: 0 -10px 30px rgba(31,58,86,0.12); padding: 14px 20px; transform: translateY(100%); transition: transform 0.35s ease; }
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner .cookie-text { flex: 1 1 260px; display: flex; flex-direction: column; gap: 6px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.cookie-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--color-border); background: var(--color-accent); color: var(--color-ink); }
.cookie-btn:hover { background: #e9eef5; }
.cookie-btn.primary { background: var(--color-secondary); color: #fff; border-color: rgba(212,175,55,0.35); }
.cookie-btn.primary:hover { background: #cb8648; }
.cookie-btn.ghost { background: transparent; }

/* Cookie modal (preferences) */
.cookie-modal { position: fixed; inset: 0; z-index: 1500; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(10,20,30,0.5); opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.cookie-modal.is-visible { opacity: 1; pointer-events: auto; }
.cookie-dialog { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 720px; background: #fff; color: var(--color-ink); border: 1px solid var(--color-border); border-top: 4px solid var(--color-gold); border-radius: 14px; padding: 20px; box-shadow: var(--shadow-m); }
.cookie-dialog .cookie-rows { display: flex; flex-direction: column; gap: 12px; }
.cookie-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-accent); }
.cookie-row .label { display: flex; flex-direction: column; gap: 4px; }
.cookie-dialog .modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* --------- UTIL CLASSES --------- */
.hidden { display: none !important; }
.muted { color: var(--color-muted); }

/* --------- PAGE-SPECIFIC POLISH --------- */
/* Pricing page hints */
.text-section ul li::marker { color: var(--color-secondary); }

/* Footer layout refinement for larger screens */
@media (min-width: 992px) {
  .site-footer .content-wrapper { flex-direction: row; flex-wrap: wrap; }
  .footer-brand { flex: 1 1 100%; }
  .footer-nav, .footer-legal, .footer-contact { flex: 1 1 260px; }
}

/* --------- ENSURE NO OVERLAPS & ADEQUATE SPACING --------- */
main > section + section .content-wrapper { margin-top: 0; }
.content-wrapper > .testimonial-card, .content-wrapper > .text-section, .content-wrapper > .service-cards, .content-wrapper > .cta-banner, .content-wrapper > .contact-block { margin-top: 4px; }

/* --------- ARIA & STATE HIGHLIGHTS --------- */
[aria-current="page"], [aria-selected="true"] { font-weight: 700; }

/* --------- DESKTOP REFINEMENTS --------- */
@media (min-width: 992px) {
  .hero .content-wrapper { flex-direction: column; }
}

/* --------- LUXURY MICRO-DETAILS --------- */
/* Subtle gold hairline borders on hover for nav and cards */
.site-nav a:hover { box-shadow: inset 0 0 0 1px rgba(212,175,55,0.35); }
.card:hover, .text-section:hover { border-color: rgba(212,175,55,0.35); }

/* --------- PRINT (basic) --------- */
@media print {
  .site-header, .site-footer, .mobile-menu, .mobile-menu-toggle, .cta-banner, .cookie-banner, .cookie-modal { display: none !important; }
  a { text-decoration: underline; color: #000; }
}
