/* =========================================================
   KaminKlar – Luxury Premium Style CSS (Mobile-first)
   - Brand: luxury_premium with gold accents, refined details
   - Flexbox-only layouts (NO grid/columns)
   - Responsive, accessible, high-contrast
   - Includes mobile menu + cookie consent banner styles
   ========================================================= */

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

/* --------------------------
   THEME TOKENS
   -------------------------- */
:root {
  /* Brand colors */
  --primary: #1F2937; /* brand primary */
  --secondary: #B23A2E; /* brand secondary */
  --accent: #F5EDE3; /* brand accent (light) */
  /* Luxury accents */
  --gold: #C8A25A; /* refined gold */
  --gold-strong: #B89144; /* hover gold */
  --ink: #0E1116; /* near-black for hero/footer */
  --text: #1A1A1A; /* body text */
  --muted: #6B7280; /* subdued text */
  --surface: #FFFFFF; /* cards */
  --surface-alt: #FAF7F0; /* light warm surface for testimonials */
  --border: rgba(0,0,0,0.08);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.12);
}

/* --------------------------
   TYPOGRAPHY
   -------------------------- */
body {
  font-family: Arial, Helvetica, sans-serif; /* body */
  color: var(--text);
  background: #FBFAF7;
  line-height: 1.65;
  font-size: 16px;
}

h1, h2, h3 {
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif; /* display */
  line-height: 1.2;
  color: #141414;
}

h1 { font-size: 32px; letter-spacing: 0.2px; }
h2 { font-size: 24px; letter-spacing: 0.15px; margin-top: 8px; }
h3 { font-size: 18px; letter-spacing: 0.1px; margin-top: 4px; }

p, li { font-size: 16px; color: var(--text); }
strong { color: #141414; font-weight: 700; }

/* Global links */
a { color: var(--primary); transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--secondary); }

/* Luxury separators */
hr { border: none; height: 1px; background: linear-gradient(to right, rgba(0,0,0,0), rgba(200,162,90,0.6), rgba(0,0,0,0)); }

/* --------------------------
   LAYOUT BASICS (Flex-only)
   -------------------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Content wrappers act as flex layout containers */
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

/* MANDATORY spacing & alignment patterns */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.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; background: var(--surface-alt); border: 1px solid #E8E1D6; border-left: 4px solid var(--gold); border-radius: 12px; color: #1B1B1B; box-shadow: var(--shadow-sm); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Ensure every section has breathing room */
section { padding: 40px 0; }
main > section + section { border-top: 1px solid rgba(0,0,0,0.04); }

/* Lists with refined markers */
.text-section ul, .text-section ol { margin: 0; padding-left: 1.2rem; }
.text-section ul { list-style: none; padding-left: 0; }
.text-section ul li { position: relative; padding-left: 22px; margin-bottom: 10px; }
.text-section ul li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1px rgba(0,0,0,0.06) inset; }
.text-section ol { padding-left: 1.2rem; }

/* CTA group as flex */
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Buttons (links inside CTA) */
.cta-group a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #1B1B1B;
  font-weight: 700;
  letter-spacing: 0.4px;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.cta-group a:hover { background: var(--gold-strong); border-color: var(--gold-strong); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(200,162,90,0.25); }

/* Secondary ghost button variant via attribute detection */
.cta-group a[href*="angebot"],
.cta-group a[href*="preise"],
.cta-group a[href*="kontakt"],
.cta-group a[href*="thank-you"],
.cta-group a[href*="start" i] {
  background: transparent;
  color: var(--ink);
  border-color: var(--gold);
}
.cta-group a[href*="angebot"]:hover,
.cta-group a[href*="preise"]:hover,
.cta-group a[href*="kontakt"]:hover,
.cta-group a[href*="thank-you"]:hover {
  background: rgba(200,162,90,0.12);
}

/* --------------------------
   HEADER / NAVIGATION
   -------------------------- */
header {
  position: sticky;
  top: 0; z-index: 1000;
  background: rgba(14,17,22,0.96);
  backdrop-filter: saturate(120%) blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px;
}
.logo img { height: 36px; width: auto; }

/* Main nav */
.main-nav { display: none; align-items: center; gap: 18px; }
.main-nav a {
  display: inline-flex; align-items: center; padding: 8px 10px; color: #EFEFF1;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
  border-bottom: 2px solid transparent; transition: color .2s ease, border-color .2s ease, opacity .2s ease;
}
.main-nav a:hover { color: #FFFFFF; border-bottom-color: var(--gold); }

/* Mobile burger */
.mobile-menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  color: #F5F7FA; background: rgba(255,255,255,0.06);
  transition: background .2s ease, transform .2s ease; font-size: 20px;
}
.mobile-menu-toggle:hover { background: rgba(255,255,255,0.12); transform: translateY(-1px); }

/* --------------------------
   MOBILE MENU OVERLAY
   -------------------------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1100; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;
  background: rgba(14,17,22,0.9);
  transform: translateX(100%);
  transition: transform .35s ease;
}
.mobile-menu.open, .mobile-menu.active { transform: translateX(0); }

.mobile-menu-close {
  align-self: flex-end; margin: 16px; width: 44px; height: 44px; border-radius: 10px;
  background: rgba(255,255,255,0.08); color: #FFFFFF; font-size: 20px; display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.mobile-menu-close:hover { background: rgba(255,255,255,0.16); transform: rotate(90deg); }

.mobile-nav { width: 100%; display: flex; flex-direction: column; gap: 6px; padding: 8px 20px 30px; }
.mobile-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 12px; border-radius: 10px; color: #F3F4F6; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 16px; letter-spacing: 0.04em;
  transition: background .2s ease, transform .2s ease, color .2s ease, border-color .2s ease;
}
.mobile-nav a:hover { background: rgba(255,255,255,0.12); border-color: var(--gold); color: #FFFFFF; transform: translateX(2px); }

/* --------------------------
   HERO
   -------------------------- */
.hero {
  background: var(--ink);
  color: #EDEFF3;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hero .container { display: flex; flex-direction: column; gap: 16px; }
.hero .content-wrapper { gap: 14px; }
.hero h1 { color: #FFFFFF; font-size: 28px; }
.hero p, .hero li { color: #D6DBE3; }
.hero .cta-group a { background: var(--gold); border-color: var(--gold); color: #111; }
.hero .cta-group a:hover { background: var(--gold-strong); }

/* --------------------------
   BODY SECTIONS
   -------------------------- */
main { display: flex; flex-direction: column; gap: 24px; }
section .container { display: flex; flex-direction: column; gap: 16px; }
section .text-section { display: flex; flex-direction: column; gap: 10px; }

/* Testimonials: enforce light background + dark text */
section .testimonial-card p { margin: 0; }
section .testimonial-card strong { color: #111; }

/* Footer */
footer {
  background: var(--ink);
  color: #D9DEE6;
  border-top: 1px solid rgba(255,255,255,0.06);
}
footer .container { display: flex; flex-direction: column; gap: 12px; padding-top: 28px; padding-bottom: 28px; }
footer .content-wrapper { display: flex; flex-direction: column; gap: 18px; }
footer .text-section p { color: #C9CFDA; }
.footer-nav, .legal-nav { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.footer-nav a, .legal-nav a { color: #EEF2F7; font-size: 14px; opacity: 0.9; transition: color .2s ease, opacity .2s ease, border-color .2s ease; border-bottom: 1px solid transparent; }
.footer-nav a:hover, .legal-nav a:hover { color: #FFFFFF; opacity: 1; border-bottom-color: var(--gold); }

/* --------------------------
   CARDS & UTILITIES
   -------------------------- */
.card--highlight { border-color: var(--gold); box-shadow: 0 10px 30px rgba(200,162,90,0.15); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(200,162,90,0.12); color: #1c1c1c; border: 1px solid rgba(200,162,90,0.35); font-size: 12px; letter-spacing: 0.04em; }

/* --------------------------
   FORMS (basic, for potential popups)
   -------------------------- */
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid #E3E6EC; background: #FFF; color: #1C1C1C; transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,162,90,0.2); outline: none; }
label { font-size: 14px; color: #1F2A37; margin-bottom: 6px; display: inline-block; }

/* --------------------------
   COOKIE CONSENT BANNER & MODAL
   -------------------------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  padding: 14px; background: #111315; color: #E8EBF0; border-top: 1px solid rgba(255,255,255,0.08);
  transform: translateY(110%); transition: transform .35s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-inner {
  display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 1160px; padding: 14px 16px; border: 1px solid rgba(255,255,255,0.08); background: rgba(20,22,26,0.85); border-radius: 12px;
}
.cookie-banner .cookie-text { display: flex; flex-direction: column; gap: 6px; }
.cookie-text strong, .cookie-text p {
color: white;}
.cookie-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-buttons .btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 999px; font-weight: 700; letter-spacing: .3px; border: 1px solid transparent; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.cookie-buttons .btn-accept { background: var(--gold); color: #1a1a1a; border-color: var(--gold); }
.cookie-buttons .btn-accept:hover { background: var(--gold-strong); border-color: var(--gold-strong); transform: translateY(-1px); }
.cookie-buttons .btn-reject { background: transparent; color: #FFFFFF; border-color: rgba(255,255,255,0.28); }
.cookie-buttons .btn-reject:hover { border-color: var(--gold); color: #FFFFFF; }
.cookie-buttons .btn-settings { background: rgba(255,255,255,0.06); color: #FFFFFF; border-color: rgba(255,255,255,0.08); }
.cookie-buttons .btn-settings:hover { background: rgba(255,255,255,0.12); border-color: var(--gold); }

/* Cookie Preferences Modal */
.cookie-modal-overlay { position: fixed; inset: 0; z-index: 1250; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; padding: 20px; }
.cookie-modal-overlay.show { display: flex; }
.cookie-modal { width: 100%; max-width: 720px; background: #FFFFFF; color: #1A1A1A; border-radius: 14px; box-shadow: var(--shadow-md); border: 1px solid #E7E7E7; display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.cookie-modal header { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: transparent; border-bottom: 1px solid #EFEFEF; padding: 6px 0 10px; position: static; }
.cookie-category { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; border-bottom: 1px dashed #EFE7D9; }
.cookie-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 8px; }

/* Simple toggle pill */
.toggle { position: relative; width: 46px; height: 26px; border-radius: 999px; background: #E5E7EB; border: 1px solid #D1D5DB; transition: background .2s ease, border-color .2s ease; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 2px rgba(0,0,0,0.2); transition: transform .2s ease; }
.toggle.on { background: rgba(200,162,90,0.35); border-color: var(--gold); }
.toggle.on::after { transform: translateX(20px); }

/* --------------------------
   ACCESSIBILITY UTILITIES
   -------------------------- */
.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* --------------------------
   RESPONSIVE BEHAVIOR
   -------------------------- */
/* Mobile-first: column stacks already in place */
.text-image-section { flex-direction: column; align-items: center; }

@media (min-width: 576px) {
  h1 { font-size: 36px; }
  .hero h1 { font-size: 34px; }
}

@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  .hero h1 { font-size: 38px; }

  /* Show main nav on tablet+ */
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }

  /* Align text-image horizontally on larger screens */
  .text-image-section { flex-direction: row; align-items: center; }

  /* Improve section rhythm */
  section { padding: 56px 0; }
}

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

  header .container { padding-top: 16px; padding-bottom: 16px; }

  /* Distribute footer groups */
  footer .content-wrapper { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 24px; }
  footer .text-section { max-width: 520px; }
}

/* --------------------------
   PAGE-SPECIFIC POLISH
   -------------------------- */
/* Index/hero and headings gold underline accent */
.content-wrapper > h2 { position: relative; padding-bottom: 6px; }
.content-wrapper > h2::after { content: ""; display: block; width: 64px; height: 3px; background: var(--gold); margin-top: 6px; border-radius: 2px; }

/* Refined paragraphs inside hero */
.hero .content-wrapper p { max-width: 760px; }

/* Emphasis blocks */
.emph { background: var(--accent); border: 1px solid #E8E1D6; border-left: 4px solid var(--gold); border-radius: 12px; padding: 14px; }

/* Ensure adequate gaps between any sibling cards/sections */
.content-wrapper > .testimonial-card + .testimonial-card { margin-top: 12px; }

/* --------------------------
   GENERAL SPACING SAFEGUARDS
   -------------------------- */
main > section .content-wrapper > * + * { margin-top: 4px; }
.container + .container { margin-top: 20px; }

/* --------------------------
   PRINT (optional minimal)
   -------------------------- */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal-overlay, footer { display: none !important; }
  a::after { content: " (" attr(href) ")"; font-size: 12px; color: #666; }
}
