/* ===============================
   GlintSpan Innenausbau – style.css
   Design: modern_bold (bold, bright, geometric, high contrast)
   Mobile-first, ONLY Flexbox (no grid/columns)
   =============================== */

/* ---------------------------------
   1) RESET / NORMALIZE
---------------------------------- */
* { box-sizing: border-box; }
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; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font: inherit; }

/* ---------------------------------
   2) THEME TOKENS / ROOT VARS
---------------------------------- */
:root {
  /* Brand colors with fallbacks */
  --color-primary: #1F2937; /* Slate/Dark */
  --color-secondary: #C2410C; /* Ziegel/Orange */
  --color-accent: #F3F4F6; /* Light Gray */
  --color-white: #FFFFFF;
  --color-black: #0B0F16;
  --color-muted: #6B7280; /* Gray-500 */
  --color-border: #E5E7EB; /* Gray-200 */

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.18);

  --container-max: 1200px;

  /* Typography scale */
  --fs-14: 14px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-20: 20px;
  --fs-24: 24px;
  --fs-28: 28px;
  --fs-32: 32px;
  --fs-40: 40px;
  --fs-48: 48px;
}

/* ---------------------------------
   3) BASE TYPOGRAPHY
---------------------------------- */
body {
  font-family: Verdana, Segoe UI, Tahoma, sans-serif;
  color: var(--color-primary);
  background-color: var(--color-white);
  line-height: 1.6;
  font-size: var(--fs-16);
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  font-weight: 800; /* bold, modern */
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}

h1 { font-size: var(--fs-32); }
h2 { font-size: var(--fs-24); margin-bottom: 12px; }
h3 { font-size: var(--fs-20); margin-top: 16px; margin-bottom: 8px; }
h4 { font-size: var(--fs-18); margin-top: 12px; margin-bottom: 6px; }

p { font-size: var(--fs-16); color: var(--color-primary); }
small { font-size: var(--fs-14); color: var(--color-muted); }

abbr[title] { border-bottom: 2px dotted var(--color-secondary); text-decoration: none; cursor: help; }

/* Links */
.btn-primary {
    color: #fff !important;
}
.text-section a, .main-nav a, .mobile-nav a, footer a {
    color: var(--color-secondary);
    text-underline-offset: 3px;
}
.text-section a:hover, .main-nav a:hover, .mobile-nav a:hover, footer a:hover {
  text-decoration: underline;
}

/* Focus visibility */
:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------------------------------
   4) GLOBAL LAYOUT (ONLY FLEXBOX)
---------------------------------- */
/* Mandatory spacing pattern (also applied to section element for coverage) */
.section { margin-bottom: 60px; padding: 40px 20px; }
section { margin-bottom: 60px; padding: 40px 20px; }

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

/* Generic content groupings */
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; border-radius: var(--radius-lg); background: var(--color-accent); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Lists - bold, geometric bullets */
.text-section ul, .text-section ol { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.text-section ul li { display: flex; align-items: flex-start; gap: 12px; }
.text-section ul li::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 2px; /* geometric */
  background: var(--color-secondary);
  margin-top: 7px;
  flex: 0 0 auto;
}
.text-section ol { counter-reset: item; }
.text-section ol li { counter-increment: item; display: flex; gap: 12px; }
.text-section ol li::before {
  content: counter(item) ".";
  font-weight: 800; color: var(--color-secondary);
  flex: 0 0 auto;
}

/* ---------------------------------
   5) HEADER
---------------------------------- */
header {
  background: var(--color-white);
  border-bottom: 4px solid var(--color-secondary);
  position: relative;
  z-index: 50;
}
header .content-wrapper {
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 16px; padding-bottom: 16px;
}
.logo { display: flex; align-items: center; }
.logo img { height: 40px; width: auto; }

.main-nav { display: none; gap: 18px; align-items: center; flex-wrap: wrap; }
.main-nav a {
  color: var(--color-primary);
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.main-nav a:hover { background: var(--color-accent); color: var(--color-secondary); transform: translateY(-1px); }

.header-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* Hamburger toggle */
.mobile-menu-toggle {
  display: flex;
  position: fixed; /* keep accessible */
  right: 16px; top: 16px;
  z-index: 100;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  transition: transform .2s ease, background .2s ease;
}
.mobile-menu-toggle:hover { transform: scale(1.03); background: #111827; }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--color-primary);
  color: var(--color-white);
  z-index: 99;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 24px;
  padding: 20px;
  transform: translateX(100%);
  transition: transform .35s ease;
}
.mobile-menu.open, .mobile-menu.active { transform: translateX(0); }
.mobile-menu-close {
  align-self: flex-end;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: var(--color-secondary);
  color: var(--color-white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}
.mobile-nav { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 520px; }
.mobile-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  color: var(--color-white);
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: background .2s ease, transform .2s ease;
}
.mobile-nav a:hover { background: rgba(255,255,255,0.12); transform: translateX(4px); }

/* Show desktop nav on wider screens */
@media (min-width: 992px) {
  header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; }
  .main-nav { display: flex; }
  .mobile-menu-toggle, .mobile-menu { display: none; }
}

/* ---------------------------------
   6) HERO SECTION (bold, geometric)
---------------------------------- */
.hero {
  background: var(--color-primary);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  padding-top: 60px; padding-bottom: 60px;
}
.hero .content-wrapper { position: relative; }
.hero .text-section h1 { color: var(--color-white); }
.hero .text-section p { color: #E9EEF5; }

/* Geometric accent shape (decorative) */
.hero::before {
  content: "";
  position: absolute; right: -120px; top: -80px;
  width: 320px; height: 320px;
  background: var(--color-secondary);
  opacity: 0.12;
  transform: rotate(35deg);
  border-radius: 20px;
  z-index: 0;
}

/* CTA group */
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Trust badges, stats, phone snippet */
.trust-badges ul, .stat-highlights ul { display: flex; flex-direction: column; gap: 10px; }
.phone-snippet p { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.phone-snippet img { width: 18px; height: 18px; }

/* ---------------------------------
   7) BUTTONS (bold, high-contrast)
---------------------------------- */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--color-secondary);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--color-white);
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}
.btn-secondary:hover { background: var(--color-secondary); color: var(--color-white); }

/* ---------------------------------
   8) TEXT BLOCKS & TESTIMONIALS
---------------------------------- */
.text-section { display: flex; flex-direction: column; gap: 14px; }

blockquote {
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  font-weight: 700;
  color: var(--color-primary);
  position: relative;
}
blockquote::before {
  content: "\201C"; /* opening quote */
  color: var(--color-secondary);
  font-size: 48px; line-height: 0;
  margin-right: 8px;
}

/* Ensure contrast: testimonials use light background with dark text */
.testimonial-card {
  background: var(--color-accent);
  color: var(--color-primary);
  border-left: 6px solid var(--color-secondary);
}
.testimonial-card p { color: var(--color-primary); font-weight: 700; }

/* Cards (generic) */
.card h3 { margin-bottom: 4px; }
.card:hover { box-shadow: var(--shadow-md); }

/* ---------------------------------
   9) FOOTER
---------------------------------- */
footer { background: var(--color-primary); color: var(--color-white); padding-top: 40px; padding-bottom: 40px; }
footer .content-wrapper { flex-direction: column; gap: 24px; }
footer h3, footer h4 { color: var(--color-white); }
footer a { color: #FCD9C7; }
footer a:hover { color: var(--color-white); text-decoration: underline; }

@media (min-width: 992px) {
  footer .content-wrapper { flex-direction: row; align-items: flex-start; justify-content: space-between; }
}

footer .text-section p{
    color: #fff !important;
}
/* ---------------------------------
   10) UTILITY SPACING & SECTIONS
---------------------------------- */
/* Already included mandatory patterns above */
/* Feature list blocks */
.feature-item h4 {
    margin: 0;
}

/* Content layouts that might pair text & image */
@media (min-width: 768px) {
  .text-image-section { flex-direction: row; }
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: center; }
}

/* ---------------------------------
   11) TABLES (if any appear later)
---------------------------------- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--color-border); }
th { background: var(--color-accent); font-weight: 800; }

/* ---------------------------------
   12) RESPONSIVE TYPE & HERO SCALE
---------------------------------- */
@media (min-width: 768px) {
  h1 { font-size: var(--fs-40); }
  h2 { font-size: var(--fs-28); }
}
@media (min-width: 992px) {
  h1 { font-size: var(--fs-48); }
  h2 { font-size: var(--fs-32); }
}

/* ---------------------------------
   13) PAGE-SPECIFIC NUANCES
---------------------------------- */
/* 404 / Thank you: emphasize hero */
body:has(.hero h1:contains("Oops")) .hero, body:has(.hero h1:contains("Vielen Dank")) .hero { /* progressive enhancement; safe to ignore if unsupported */ }

/* Sitemap lists denser but readable */
.sitemap-list { display: flex; flex-direction: column; gap: 8px; }

/* ---------------------------------
   14) MOBILE MENU ANIMATIONS
---------------------------------- */
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes slideOutRight { from { transform: translateX(0); } to { transform: translateX(100%); } }
@keyframes bannerUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ---------------------------------
   15) COOKIE CONSENT (banner + modal)
---------------------------------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--color-white);
  color: var(--color-primary);
  border-top: 3px solid var(--color-secondary);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.12);
  z-index: 90;
  display: flex; /* flex container */
  justify-content: center;
  transform: translateY(100%);
  animation: bannerUp .45s ease .15s forwards;
}
.cookie-banner .cookie-inner {
  display: flex; flex-direction: column; gap: 16px;
  width: 100%; max-width: var(--container-max);
  padding: 18px 20px;
}
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn-accept { background: var(--color-secondary); color: var(--color-white); border: 2px solid var(--color-secondary); border-radius: 12px; padding: 10px 14px; font-weight: 800; }
.cookie-actions .btn-reject { background: var(--color-accent); color: var(--color-primary); border: 2px solid var(--color-border); border-radius: 12px; padding: 10px 14px; font-weight: 800; }
.cookie-actions .btn-settings { background: var(--color-white); color: var(--color-secondary); border: 2px solid var(--color-secondary); border-radius: 12px; padding: 10px 14px; font-weight: 800; }
.cookie-actions .btn-accept:hover { filter: brightness(0.95); }
.cookie-actions .btn-reject:hover { background: #e9ebef; }
.cookie-actions .btn-settings:hover { background: var(--color-secondary); color: var(--color-white); }

/* Cookie modal overlay */
.cookie-modal {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(0,0,0,0.5);
  display: none; /* toggled by JS: add .open */
  align-items: center; justify-content: center;
  padding: 20px;
}
.cookie-modal.open { display: flex; }
.cookie-modal .modal-content {
  background: var(--color-white);
  color: var(--color-primary);
  width: 100%; max-width: 720px;
  border-radius: 16px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 20px;
  padding: 22px;
}
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 14px; }
.cookie-modal .categories { display: flex; flex-direction: column; gap: 12px; }
.cookie-modal .category { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--color-border); border-radius: 10px; }
.cookie-modal .category .label { font-weight: 800; }
.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* Toggle switch (generic) */
.toggle { position: relative; width: 48px; height: 28px; border-radius: 28px; background: var(--color-accent); border: 2px solid var(--color-border); display: flex; align-items: center; padding: 0 2px; }
.toggle .knob { width: 22px; height: 22px; background: var(--color-primary); border-radius: 50%; transition: transform .2s ease, background .2s ease; }
.toggle.on { background: #FFD9C9; border-color: var(--color-secondary); }
.toggle.on .knob { background: var(--color-secondary); transform: translateX(20px); }

/* Essential cookies badge */
.badge-essential { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; font-size: var(--fs-14); font-weight: 800; background: var(--color-accent); border: 1px solid var(--color-border); border-radius: 8px; }

/* ---------------------------------
   16) MISC / UTILITY
---------------------------------- */
.hr { height: 1px; background: var(--color-border); width: 100%; }
.muted { color: var(--color-muted); }
.bg-accent { background: var(--color-accent); }

/* Ensure adequate spacing between all sibling sections */
main > section + section { margin-top: 0; }

/* ---------------------------------
   17) DESKTOP ENHANCEMENTS
---------------------------------- */
@media (min-width: 992px) {
  .hero { padding-top: 80px; padding-bottom: 80px; }
  .container > .content-wrapper { gap: 28px; }
}

/* ---------------------------------
   18) PRINT BASICS
---------------------------------- */
@media print {
  .mobile-menu-toggle, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  a { text-decoration: underline; color: black; }
}

/* ---------------------------------
   19) ACCESSIBILITY STATES
---------------------------------- */
.btn-primary:focus-visible, .btn-secondary:focus-visible, .main-nav a:focus-visible, .mobile-nav a:focus-visible { box-shadow: 0 0 0 4px rgba(194,65,12,0.35); }

/* ---------------------------------
   20) COMPLIANCE WITH FLEX RULES
   - All layout containers use display:flex
   - No CSS grid or columns used
---------------------------------- */
/* Header/sections/containers already flex-based as above */
