/* ==========================================================================
   NeutraWave Ausbau – Luxury Premium Theme
   Mobile-first, flexbox-only, brand-consistent styling
   ========================================================================== */
/* RESET & 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, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { background: none; border: 0; cursor: pointer; font: inherit; color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 2px solid #C9A227; outline-offset: 3px; }

/* ROOT TOKENS */
:root {
  --color-primary: #1F2937; /* slate */
  --color-secondary: #0E7490; /* teal */
  --color-accent: #F3F4F6; /* light */
  --color-ink: #111827; /* main text */
  --color-ink-muted: #4B5563; /* muted */
  --color-paper: #FFFFFF; /* cards */
  --color-gold: #C9A227; /* premium gold */
  --color-gold-deep: #8C6E1E; /* deep gold */
  --color-surface: #F8F8F7; /* subtle warm light */
  --shadow-1: 0 1px 3px rgba(17,24,39,0.08), 0 1px 2px rgba(17,24,39,0.06);
  --shadow-2: 0 8px 24px rgba(17,24,39,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* TYPOGRAPHY */
body {
  background: var(--color-surface, #F8F8F7);
  color: var(--color-ink, #111827);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}
h1, h2, h3, h4 { font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif; color: var(--color-ink, #111827); font-weight: 700; letter-spacing: 0.2px; }
h1 { font-size: 32px; line-height: 1.2; }
h2 { font-size: 24px; line-height: 1.3; margin-bottom: 16px; }
h3 { font-size: 18px; line-height: 1.4; margin-top: 8px; margin-bottom: 8px; }
p { margin-bottom: 14px; color: var(--color-ink, #111827); }
strong { font-weight: 700; }

/* LINKS */
a, .link { color: var(--color-gold, #C9A227); transition: color .25s ease, opacity .25s ease; }
a:hover { color: #AD8D1F; }
a:active { opacity: .9; }

/* LAYOUT BASICS (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 { margin-bottom: 60px; padding: 40px 20px; display: flex; }
section > .container { gap: 24px; }

/* MANDATORY SPACING & ALIGNMENT CLASSES */
.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; }

/* HEADER */
header { position: sticky; top: 0; z-index: 1000; background: var(--color-primary, #1F2937); border-bottom: 1px solid rgba(201,162,39,0.25); }
header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
header img { height: 38px; width: auto; }
header nav { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
header nav a { color: #E5E7EB; font-size: 14px; padding: 10px 8px; border-radius: 6px; transition: background .25s ease, color .25s ease; }
header nav a:hover { background: rgba(255,255,255,0.06); color: #FFFFFF; }

/* CTA BUTTONS */
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-primary, .cta-secondary, .cta-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: var(--radius-sm); transition: background .25s ease, color .25s ease, border-color .25s ease, transform .2s ease, box-shadow .25s ease; font-weight: 700; letter-spacing: .2px; }
.cta-primary { background: var(--color-gold, #C9A227); color: #1A1A1A; box-shadow: var(--shadow-1); }
.cta-primary:hover { background: #AD8D1F; box-shadow: var(--shadow-2); transform: translateY(-1px); }
.cta-secondary { background: transparent; color: #F9FAFB; border: 1px solid rgba(201,162,39,0.55); }
.cta-secondary:hover { background: rgba(201,162,39,0.12); color: #FFFFFF; border-color: var(--color-gold, #C9A227); }
.cta-link { padding: 0; color: var(--color-gold, #C9A227); font-weight: 700; }
.cta-link:hover { color: #AD8D1F; }

/* HERO */
.hero { background: #121720; color: #F9FAFB; border-bottom: 1px solid rgba(201,162,39,0.25); }
.hero .container { align-items: flex-start; }
.hero .content-wrapper { max-width: 900px; }
.hero h1 { color: #FDFCF8; font-size: 28px; }
.hero p { color: #D1D5DB; font-size: 16px; }
.hero .cta-secondary { color: #E5E7EB; }
.hero .trust-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.hero .trust-badges li { color: #E5E7EB; background: rgba(201,162,39,0.12); border: 1px solid rgba(201,162,39,0.35); padding: 8px 10px; border-radius: 999px; font-size: 12px; }

/* LISTS, FAQ, CONTENT */
.content-wrapper ul { display: flex; flex-direction: column; gap: 8px; }
.content-wrapper ol { display: flex; flex-direction: column; gap: 8px; padding-left: 0; counter-reset: ordered; }
.content-wrapper ol li { display: flex; gap: 10px; align-items: flex-start; }
.content-wrapper ol li::before { counter-increment: ordered; content: counter(ordered) "."; color: var(--color-gold, #C9A227); font-weight: 700; margin-top: 1px; }
.faq { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--color-paper, #FFFFFF); border: 1px solid #E5E7EB; border-radius: var(--radius-md); box-shadow: var(--shadow-1); }
.faq h3 { font-size: 16px; color: var(--color-primary, #1F2937); }
.faq p { color: var(--color-ink-muted, #4B5563); }

/* SERVICE GRID & CARDS */
.service-grid { display: flex; flex-wrap: wrap; gap: 24px; }
.service-card, .card { background: var(--color-paper, #FFFFFF); border: 1px solid #E5E7EB; border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-1); }
.service-card h3 { color: var(--color-primary, #1F2937); font-size: 18px; }
.service-card p { color: var(--color-ink-muted, #4B5563); }
.service-card .cta-link { margin-top: 4px; }

/* TESTIMONIALS – Light cards, dark text for contrast */
.testimonial-card { background: #FAFAF8; border: 1px solid #E8E5DA; border-left: 4px solid var(--color-gold, #C9A227); border-radius: var(--radius-md); box-shadow: var(--shadow-1); }
.testimonial-card p { color: #1F2937; font-style: italic; }
.testimonial-card span { color: #374151; font-size: 14px; }

/* CONTACT BLOCKS */
.contact-block, .contact-info, .contact-summary { display: flex; flex-direction: column; gap: 10px; background: var(--color-paper, #FFFFFF); border: 1px solid #E5E7EB; border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-1); }
.contact-block p, .contact-info p, .contact-summary p { display: flex; gap: 10px; align-items: center; color: var(--color-ink, #111827); }
.contact-block img, .contact-info img { width: 18px; height: 18px; }

/* FOOTER */
footer { background: #0D1117; color: #E5E7EB; border-top: 1px solid rgba(201,162,39,0.25); }
footer .container { padding-top: 24px; padding-bottom: 24px; }
footer .content-wrapper { flex-direction: column; gap: 18px; }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
footer nav a { color: #E5E7EB; font-size: 14px; padding: 6px 8px; border-radius: 6px; transition: background .25s ease; }
footer nav a:hover { background: rgba(255,255,255,0.06); }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #F3F4F6; }

/* GENERIC UTILITIES */
.divider { width: 100%; height: 1px; background: #E5E7EB; display: flex; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(201,162,39,0.35); background: rgba(201,162,39,0.08); color: var(--color-primary, #1F2937); font-size: 12px; }
.muted { color: var(--color-ink-muted, #4B5563); }

/* PREMIUM DETAILS (subtle accents) */
.premium-underline { position: relative; display: inline-flex; }
.premium-underline::after { content: ""; display: flex; height: 2px; width: 60%; background: var(--color-gold, #C9A227); margin-top: 6px; }

/* NAV – MOBILE FIRST */
.mobile-menu-toggle { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 8px; color: #F3F4F6; background: rgba(255,255,255,0.08); transition: background .25s ease, transform .2s ease; }
.mobile-menu-toggle:hover { background: rgba(255,255,255,0.16); transform: translateY(-1px); }

/* Hide desktop nav on mobile; show burger */
header nav { display: none; }
header .cta-group { display: none; }

/* MOBILE MENU OVERLAY & PANEL */
.mobile-menu { position: fixed; inset: 0; display: flex; align-items: stretch; justify-content: flex-end; background: rgba(0,0,0,0.45); transform: translateX(0); opacity: 0; pointer-events: none; transition: opacity .3s ease; z-index: 10000; }
.mobile-menu .mobile-nav { display: flex; flex-direction: column; gap: 8px; width: 86%; max-width: 360px; background: #0D1117; padding: 20px; border-left: 1px solid rgba(201,162,39,0.25); transform: translateX(100%); transition: transform .35s ease; }
.mobile-menu .mobile-menu-close { align-self: flex-end; color: #F3F4F6; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: rgba(255,255,255,0.08); margin-bottom: 8px; }
.mobile-menu .mobile-menu-close:hover { background: rgba(255,255,255,0.16); }
.mobile-menu .mobile-nav a { color: #E5E7EB; padding: 12px; border-radius: 8px; border: 1px solid transparent; }
.mobile-menu .mobile-nav a:hover { background: rgba(255,255,255,0.06); border-color: rgba(201,162,39,0.25); }

/* States that JS can toggle */
.mobile-menu.open, .mobile-menu.active, .mobile-menu.show { opacity: 1; pointer-events: auto; }
.mobile-menu.open .mobile-nav, .mobile-menu.active .mobile-nav, .mobile-menu.show .mobile-nav { transform: translateX(0); }

/* COOKIE CONSENT BANNER */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998; background: #0D1117; color: #E5E7EB; border-top: 1px solid rgba(201,162,39,0.25); display: flex; }
.cookie-banner .container { flex-direction: column; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 8px; font-weight: 700; letter-spacing: .2px; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.cookie-banner .btn-accept { background: var(--color-gold, #C9A227); color: #1A1A1A; }
.cookie-banner .btn-accept:hover { background: #AD8D1F; }
.cookie-banner .btn-reject { background: transparent; color: #F3F4F6; border: 1px solid rgba(243,244,246,0.35); }
.cookie-banner .btn-reject:hover { background: rgba(255,255,255,0.08); }
.cookie-banner .btn-settings { background: transparent; color: var(--color-gold, #C9A227); border: 1px solid rgba(201,162,39,0.55); }
.cookie-banner .btn-settings:hover { background: rgba(201,162,39,0.12); }

/* COOKIE MODAL */
.cookie-modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.55); z-index: 10001; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.cookie-modal.open, .cookie-modal.active, .cookie-modal.show { opacity: 1; pointer-events: auto; }
.cookie-modal .modal-content { background: var(--color-paper, #FFFFFF); width: 92%; max-width: 720px; border-radius: 14px; border: 1px solid #E5E7EB; box-shadow: var(--shadow-2); display: flex; flex-direction: column; overflow: hidden; }
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; background: #111827; color: #F3F4F6; border-bottom: 1px solid rgba(201,162,39,0.25); }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 12px; padding: 18px; color: var(--color-ink, #111827); }
.cookie-modal .modal-footer { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 18px; border-top: 1px solid #E5E7EB; justify-content: flex-end; }
.cookie-modal .toggle { display: inline-flex; align-items: center; gap: 10px; }
.cookie-modal .toggle .switch { width: 44px; height: 24px; border: 1px solid #D1D5DB; background: #F3F4F6; border-radius: 999px; display: inline-flex; align-items: center; padding: 2px; transition: background .25s ease, border-color .25s ease; }
.cookie-modal .toggle input { appearance: none; width: 0; height: 0; }
.cookie-modal .toggle .thumb { width: 18px; height: 18px; border-radius: 50%; background: #9CA3AF; transition: transform .25s ease, background .25s ease; }
.cookie-modal .toggle input:checked + .switch { background: rgba(201,162,39,0.25); border-color: var(--color-gold, #C9A227); }
.cookie-modal .toggle input:checked + .switch .thumb { transform: translateX(20px); background: var(--color-gold, #C9A227); }

/* ACCESSIBILITY HIGHLIGHTS */
button:focus-visible, a:focus-visible { box-shadow: 0 0 0 3px rgba(201,162,39,0.45); border-radius: 8px; }

/* RESPONSIVE MEDIA QUERIES */
@media (min-width: 480px) {
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
}
@media (min-width: 768px) {
  h1 { font-size: 42px; }
  h2 { font-size: 28px; }
  .text-image-section { flex-direction: row; align-items: center; }
  .content-grid { justify-content: space-between; }
  .service-grid > * { flex: 1 1 calc(50% - 12px); }
  header nav { display: flex; }
  header .cta-group { display: flex; }
  .mobile-menu-toggle { display: none; }
}
@media (min-width: 1024px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  .service-grid > * { flex: 1 1 calc(33.333% - 16px); }
  header .container { gap: 24px; }
}

/* TEXT-IMAGE SECTION (used when present) */
.text-image-section .text { flex: 1 1 320px; display: flex; flex-direction: column; gap: 10px; }
.text-image-section .image { flex: 1 1 320px; display: flex; align-items: center; justify-content: center; }

/* CONTENT GRID – generic cards, features, etc. */
.content-grid > * { flex: 1 1 280px; }

/* GOLD ACCENT BORDERS for headings */
.content-wrapper h2 { position: relative; padding-bottom: 6px; }
.content-wrapper h2::after { content: ""; display: flex; height: 2px; width: 56px; background: var(--color-gold, #C9A227); margin-top: 8px; }

/* TABLES (if any appear) */
table { width: 100%; border-collapse: collapse; display: flex; flex-direction: column; }
thead, tbody, tr { display: flex; width: 100%; }
thead { background: var(--color-accent, #F3F4F6); }
tr { display: flex; }
th, td { flex: 1 1 0; padding: 10px; border-bottom: 1px solid #E5E7EB; text-align: left; }

/* FORMS (if added later) */
form { display: flex; flex-direction: column; gap: 12px; }
label { font-weight: 700; color: var(--color-primary, #1F2937); }
input, select, textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid #D1D5DB; background: #FFFFFF; color: var(--color-ink, #111827); transition: border-color .2s ease, box-shadow .2s ease; }
input:focus, select:focus, textarea:focus { border-color: var(--color-gold, #C9A227); box-shadow: 0 0 0 3px rgba(201,162,39,0.2); }

/* PAGE-SPECIFIC NUANCES */
/* Hero variations keep premium contrast */
.fliesenarbeiten .hero, .putz-und-spachtelarbeiten .hero, .estrich-und-bodenausgleich .hero { background: #141922; }

/* INDEX specific service cards if class exists */
.service-card { border-top: 3px solid rgba(201,162,39,0.35); }
.service-card:hover { border-color: var(--color-gold, #C9A227); box-shadow: var(--shadow-2); transform: translateY(-2px); }

/* OL/UL spacing refinement */
.content-wrapper ul li, .content-wrapper ol li { padding-left: 0; }
.content-wrapper ul li strong, .content-wrapper ol li strong { color: var(--color-primary, #1F2937); }

/* BUTTON THEME ON LIGHT BACKGROUND */
section:not(.hero) .cta-secondary { color: var(--color-primary, #1F2937); border-color: rgba(31,41,55,0.35); }
section:not(.hero) .cta-secondary:hover { background: #F3F4F6; }

/* HEADER SPACING on pages with many nav links */
header nav { row-gap: 8px; }

/* ENSURE NO OVERLAP – consistent spacing */
section + section { margin-top: 0; }
.card + .card, .testimonial-card + .testimonial-card { margin-top: 20px; }

/* PRINT BASICS */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  body { background: #FFFFFF; color: #000; }
}

/* END */