/* =========================================================
   Flicker Source Ausbau & Sanierung — Vintage Retro Theme
   Single style.css for all pages (mobile-first, flexbox only)
   ========================================================= */

/* ------------------------------
   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 { margin: 0; padding: 0; }
ul, ol { padding-left: 1.25rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; background: none; border: none; }
:focus-visible { outline: 2px dashed #D9772A; outline-offset: 2px; }

/* ------------------------------
   THEME TOKENS (BRAND + RETRO)
------------------------------ */
:root {
  /* Brand */
  --brand-primary: #1E2328; /* dark ink */
  --brand-secondary: #D9772A; /* warm orange */
  --brand-accent: #F6F2E9; /* cream */

  /* Retro palette */
  --retro-ink: #1E2328;
  --retro-cream: #F6F2E9;
  --retro-brown: #7A5C49;
  --retro-teal: #3A7D7C;
  --retro-mustard: #C4A356;
  --retro-red: #B04A3A;
  --retro-sage: #8CA58A;

  /* Typography */
  --font-display: "Trebuchet MS", Tahoma, Arial, sans-serif;
  --font-body: Verdana, Geneva, sans-serif;

  /* Elevation / Borders */
  --shadow-soft: 0 2px 0 rgba(0,0,0,0.08);
  --shadow-card: 0 3px 0 rgba(30,35,40,0.15);
  --border-color: #D6C9B8; /* muted vintage line */

  /* Layout */
  --container-max: 1180px;
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 14px;

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

/* ------------------------------
   BASE
------------------------------ */
body {
  background: var(--retro-cream);
  color: var(--retro-ink);
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: #EADCC7; color: var(--retro-ink); }

h1, h2, h3, h4 { font-family: var(--font-display); color: #9aa0a7; }
h1 { font-size: var(--fs-40); line-height: 1.2; letter-spacing: 0.2px; }
h2 { font-size: var(--fs-32); line-height: 1.25; margin-bottom: 16px; }
h3 { font-size: var(--fs-24); line-height: 1.3; margin-bottom: 10px; }
p { margin-bottom: 14px; }
strong { color: var(--retro-ink); }

/* Links with vintage underline micro-interaction */
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

/* ------------------------------
   LAYOUT CONTAINERS (FLEX ONLY)
------------------------------ */
.container {
  display: flex; /* flex only */
  flex-direction: column;
  gap: 16px;
  max-width: var(--container-max);
  padding: 0 16px;
  margin: 0 auto;
}

.content-wrapper {
  display: flex; /* flex only */
  flex-direction: column;
  gap: 18px;
}

section { padding: 28px 0; border-top: 2px solid #E7DDCF; }
section:first-of-type { border-top: none; }

.text-section { display: flex; flex-direction: column; gap: 10px; background: #FFFBF3; border: 1px solid var(--border-color); border-radius: var(--radius-m); padding: 16px; box-shadow: var(--shadow-soft); }

/* Retro list styling */
ul, ol { display: block; }
.usp-list, .text-section ul { list-style: none; padding-left: 0; display: flex; flex-direction: column; gap: 10px; }
.usp-list li, .text-section ul li { position: relative; padding-left: 30px; }
.usp-list li::before, .text-section ul li::before { content: "•"; position: absolute; left: 8px; top: 0; color: var(--brand-secondary); font-weight: bold; }

/* ------------------------------
   HEADER / NAVIGATION
------------------------------ */
header { background: #FFF8EC; border-bottom: 3px solid #D7C4AA; position: relative; z-index: 50; }
header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.logo { display: flex; align-items: center; }
.logo img { height: 44px; width: auto; }

.main-nav { display: none; /* hidden on mobile */ }
.main-nav a { font-family: var(--font-display); font-size: var(--fs-16); padding: 8px 10px; border-bottom: 2px solid transparent; margin: 0 4px; color: var(--retro-ink); }
.main-nav a:hover { border-bottom-color: var(--brand-secondary); }

.header-cta { display: none; /* hidden on mobile */ align-items: center; gap: 8px; }
.header-cta .btn img { width: 16px; height: 16px; margin-right: 6px; }

/* Hamburger */
.mobile-menu-toggle { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 2px solid #CDB89E; border-radius: 50%; background: #FFF2DE; color: var(--retro-ink); box-shadow: var(--shadow-soft); transition: transform .2s ease; }
.mobile-menu-toggle:hover { transform: translateY(-1px); }

/* Mobile slide-in menu */
.mobile-menu {
  position: fixed; right: 0; top: 0; bottom: 0; width: 86%; max-width: 360px;
  display: flex; flex-direction: column; gap: 10px; padding: 16px;
  background: var(--retro-ink); color: var(--retro-cream);
  transform: translateX(100%); transition: transform .35s ease; z-index: 1000;
  border-left: 4px solid #534638;
}
.mobile-menu.open, body.menu-open .mobile-menu { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; width: 40px; height: 40px; color: var(--retro-cream); border: 2px solid #5D5448; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #2A2F33; }
.mobile-nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-nav a { display: block; padding: 12px 10px; border-radius: var(--radius-s); color: var(--retro-cream); border: 1px solid transparent; }
.mobile-nav a:hover { background: #2E3539; border-color: #3B4348; }

/* Desktop breakpoint */
@media (min-width: 992px) {
  .mobile-menu-toggle { display: none; }
  .main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
  .header-cta { display: flex; }
}

/* Sticky helpful spacing */
@media (min-width: 1200px) {
  header .container { padding-left: 0; padding-right: 0; }
}

/* ------------------------------
   HERO
------------------------------ */
.hero { background: #FFF5E6; border-bottom: 3px solid #D7C4AA; }
.hero .container { gap: 16px; }
.hero .content-wrapper { gap: 16px; }
.hero h1 { letter-spacing: 0.5px; text-shadow: 0 1px 0 rgba(255,255,255,0.5); }

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

.trust-badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.trust-badges .badge, .trust-badges span {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px dashed #CDB89E; border-radius: 20px; background: #FFFDF7; color: var(--retro-brown); font-size: var(--fs-14);
}
.trust-badges img { width: 16px; height: 16px; }

/* ------------------------------
   BUTTONS
------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font-weight: 700; letter-spacing: 0.3px; transition: transform .15s ease, background-color .2s ease, color .2s ease, border-color .2s ease; border: 2px solid transparent; box-shadow: 0 3px 0 rgba(0,0,0,0.08); }
.btn:active { transform: translateY(1px); }

.btn.primary { background: var(--brand-secondary); color: #221C15; border-color: #B66422; }
.btn.primary:hover { background: #C56F26; }
.btn.secondary { background: #FFF8EF; color: var(--retro-ink); border-color: #D7C4AA; }
.btn.secondary:hover { background: #FFF2DE; border-color: #CDB89E; }

/* ------------------------------
   CARDS / FEATURES (Retro look)
------------------------------ */
.card { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: #FFFBF3; border: 2px solid #DCCAB2; border-radius: var(--radius-l); box-shadow: var(--shadow-card); }

/* Testimonial emphasis: dark text on light bg for readability */
.testimonial-card { background: #FFFDF8; border: 2px solid #E2D4C1; border-radius: var(--radius-m); color: var(--retro-ink); box-shadow: 0 4px 0 rgba(30,35,40,0.08); }
.testimonial-card p { margin: 0; }
.testimonial-card p + p { opacity: 0.9; }

/* ------------------------------
   FOOTER
------------------------------ */
footer { background: var(--retro-ink); color: var(--retro-cream); padding: 26px 0 30px; border-top: 4px solid #5A4A3B; }
footer .container { gap: 10px; }
footer .content-wrapper { display: flex; flex-direction: column; gap: 16px; }
.footer-nav, .legal-links { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-nav a, .legal-links a { color: #F3EBDC; border-bottom: 1px dotted transparent; padding-bottom: 2px; }
.footer-nav a:hover, .legal-links a:hover { border-bottom-color: #E4D4BD; }
footer .text-section { background: #2A2F33; border-color: #4A4035; color: #F1ECE3; }

/* ------------------------------
   RESPONSIVE TYPOGRAPHY
------------------------------ */
@media (min-width: 768px) {
  h1 { font-size: var(--fs-48); }
  h2 { font-size: var(--fs-40); }
  .content-wrapper { gap: 22px; }
}

/* ------------------------------
   FLEX LAYOUT HELPERS
------------------------------ */
/* For optional text-image sections if used */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
}

/* ------------------------------
   PAGE-SPECIFIC NUANCES
------------------------------ */
/* Index & other pages share base; ensure lists and paragraphs breathe */
.content-wrapper > p:last-child { margin-bottom: 0; }

/* Subtle separators inside content wrappers */
.content-wrapper > h2 + .text-section { margin-top: 4px; }

/* Quote vibe in testimonials */
.testimonial-card p:first-child { font-style: italic; }

/* ------------------------------
   MOBILE MENU OVERLAY BACKDROP (optional helper)
------------------------------ */
body.menu-open { overflow: hidden; }

/* ------------------------------
   COOKIE CONSENT BANNER & MODAL
------------------------------ */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
  display: flex; /* flex only */
  flex-direction: column; gap: 12px;
  background: #FFF3E1; color: #2C2B28;
  border-top: 3px solid #D7C4AA; box-shadow: 0 -2px 0 rgba(0,0,0,0.05);
  padding: 14px 16px;
  transform: translateY(110%); transition: transform .35s ease;
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner .cookie-inner { display: flex; flex-direction: column; gap: 12px; max-width: var(--container-max); margin: 0 auto; }
.cookie-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-buttons .btn { padding: 8px 14px; font-size: var(--fs-14); }
.cookie-buttons .btn.reject { background: #FFF; color: #2E2A25; border-color: #D7C4AA; }
.cookie-buttons .btn.settings { background: #FFEBD2; color: #2E2A25; border-color: #D7C4AA; }

/* Modal overlay */
.cookie-overlay { position: fixed; inset: 0; background: rgba(30,35,40,0.6); display: none; align-items: center; justify-content: center; z-index: 1300; }
.cookie-overlay.is-visible { display: flex; }
.cookie-modal { display: flex; flex-direction: column; gap: 14px; width: 92%; max-width: 560px; background: #FFFBF3; color: #2A2A27; border: 2px solid #DCCAB2; border-radius: var(--radius-l); box-shadow: 0 6px 0 rgba(0,0,0,0.12); padding: 16px; }
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-modal .toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed #D7C4AA; }
.cookie-modal .toggle-row:last-child { border-bottom: none; }

/* ------------------------------
   ACCESSIBILITY HELPERS
------------------------------ */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ------------------------------
   UTILITIES & MISC
------------------------------ */
.hr { height: 2px; background: #E7DDCF; width: 100%; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-14); padding: 6px 10px; border-radius: 999px; border: 1px dashed #CDB89E; background: #FFFDF7; }

/* Spacing utilities (8/16/24/32 rhythm) */
.mt-16 { margin-top: 16px; } .mb-16 { margin-bottom: 16px; }
.mt-24 { margin-top: 24px; } .mb-24 { margin-bottom: 24px; }
.mt-32 { margin-top: 32px; } .mb-32 { margin-bottom: 32px; }

/* ------------------------------
   RESPONSIVE LAYOUT TWEAKS
------------------------------ */
@media (min-width: 768px) {
  .container { gap: 20px; }
  .content-grid { justify-content: flex-start; }
}

/* ------------------------------
   PAGE ELEMENT POLISH
------------------------------ */
/* Lists inside general content */
.content-wrapper ul, .content-wrapper ol { gap: 8px; }

/* Ensure adequate space between stacked sections */
main > section + section { margin-top: 8px; }

/* Buttons row spacing in thank-you page and others */
.cta-row .btn { min-width: 180px; }

/* ------------------------------
   DESKTOP ENHANCEMENTS
------------------------------ */
@media (min-width: 992px) {
  .content-wrapper { gap: 26px; }
  .hero { padding: 10px 0 18px; }
}

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