/* ============================================================
   Praenmalef Ausbau & Veredelung - style.css
   Design style: geometric_structured (geometric shapes, structured, precise)
   Mobile-first, flexbox-only layouts. No CSS Grid or Columns used.
   ============================================================ */

/* -----------------------------
   CSS RESET / NORMALIZE
----------------------------- */
* { box-sizing: border-box; }
*::before, *::after { box-sizing: inherit; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Verdana, Arial, sans-serif; color: #24313E; background-color: #FFFFFF; line-height: 1.6; }
img, svg { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: #8C4A12; text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
:focus-visible { outline: 3px solid #8C4A12; outline-offset: 2px; }

/* -----------------------------
   CSS VARIABLES (with fallbacks via direct props where critical)
----------------------------- */
:root {
  --clr-primary: #24313E; /* deep slate blue */
  --clr-secondary: #8C4A12; /* warm copper */
  --clr-accent: #F5F7FA; /* light accent */
  --clr-bg: #FFFFFF;
  --clr-text: #24313E;
  --clr-muted: #5A6A79;
  --clr-border: #D8DEE6;
  --shadow-sm: 0 1px 2px rgba(36,49,62,0.08), 0 2px 8px rgba(36,49,62,0.06);
  --shadow-md: 0 8px 16px rgba(36,49,62,0.10);
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;
  --space-8: 8px; --space-12: 12px; --space-16: 16px; --space-20: 20px; --space-24: 24px; --space-30: 30px; --space-40: 40px; --space-60: 60px;
}

/* -----------------------------
   TYPOGRAPHY
----------------------------- */
h1, h2, h3, h4, h5, h6 { font-family: "Trebuchet MS", Tahoma, sans-serif; color: #24313E; line-height: 1.25; margin: 0 0 12px; letter-spacing: 0.02em; }
h1 { font-size: 32px; font-weight: 700; text-transform: uppercase; }
h2 { font-size: 24px; font-weight: 700; text-transform: uppercase; }
h3 { font-size: 18px; font-weight: 700; text-transform: uppercase; }
p { margin: 0 0 12px; }
.small { font-size: 14px; color: #5A6A79; }
.subheadline { font-size: 18px; color: #5A6A79; max-width: 65ch; }
.tagline { font-size: 14px; color: #5A6A79; text-transform: uppercase; letter-spacing: 0.08em; }
strong { font-weight: 700; }
ul, ol { padding-left: 18px; margin: 0 0 12px; }
ul { list-style: square; }
ol { list-style: decimal-leading-zero; }

/* -----------------------------
   CONTAINERS & LAYOUT (Flexbox-only)
----------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
}
main { display: flex; flex-direction: column; gap: var(--space-20); }

/* Sections spacing - mobile-first */
section { padding: 30px 0; border-top: 1px solid #EDF1F5; }
section:first-of-type { border-top: 0; }

/* Hero */
.hero { background: var(--clr-accent); position: relative; }
.hero .container { padding-top: 24px; padding-bottom: 24px; }

/* Breadcrumbs */
.breadcrumbs { background: #FFFFFF; border-bottom: 1px solid var(--clr-border); font-size: 14px; color: var(--clr-muted); }
.breadcrumbs .container { flex-direction: row; align-items: center; gap: 6px; padding-top: 8px; padding-bottom: 8px; }
.breadcrumbs a { color: var(--clr-muted); text-decoration: none; border-bottom: 1px dotted transparent; }
.breadcrumbs a:hover { border-bottom-color: var(--clr-muted); }

/* -----------------------------
   HEADER & NAV
----------------------------- */
header { background: #FFFFFF; border-bottom: 3px solid #24313E; position: sticky; top: 0; z-index: 1000; }
header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-16); padding-top: 10px; padding-bottom: 10px; }
.logo { display: flex; align-items: center; }
.logo img { height: 36px; width: auto; }

.main-nav { display: none; align-items: center; gap: var(--space-16); }
.main-nav a { display: flex; align-items: center; padding: 8px 10px; color: #24313E; text-transform: uppercase; letter-spacing: 0.06em; font-size: 14px; border: 2px solid transparent; border-radius: 4px; }
.main-nav a[aria-current="page"], .main-nav a:hover { border-color: #D8DEE6; background: #F8FAFC; text-decoration: none; }

.header-cta { display: none; align-items: center; gap: var(--space-12); }

/* Mobile menu toggle */
.mobile-menu-toggle { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 2px solid #24313E; color: #24313E; border-radius: 4px; background: #FFFFFF; transition: background 0.2s ease, transform 0.15s ease; }
.mobile-menu-toggle:hover { background: #F5F7FA; transform: translateY(-1px); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 1100;
}
body.menu-open .mobile-menu,
.mobile-menu.active,
.mobile-menu.open,
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #24313E; border-radius: 4px; color: #24313E; background: #FFFFFF; }
.mobile-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.mobile-nav a { display: flex; align-items: center; padding: 14px 10px; border: 1px solid #E6EBF1; border-radius: 6px; color: #24313E; text-transform: uppercase; letter-spacing: 0.06em; }
.mobile-nav a:hover { background: #F5F7FA; text-decoration: none; }

/* Ensure content doesn't scroll when mobile menu open */
body.menu-open { overflow: hidden; }

/* -----------------------------
   BUTTONS (Geometric, crisp)
----------------------------- */
.btn-primary, .btn-secondary, .btn-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border-radius: 6px; border: 2px solid transparent; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease; }

.btn-primary { background: #24313E; color: #FFFFFF; border-color: #24313E; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }

.btn-secondary { background: #FFFFFF; color: #8C4A12; border-color: #8C4A12; }
.btn-secondary:hover { background: #FFF7F0; transform: translateY(-2px); text-decoration: none; }

.btn-link { background: transparent; color: #24313E; padding: 8px 0; border-bottom: 2px solid #D8DEE6; border-radius: 0; }
.btn-link:hover { color: #8C4A12; border-bottom-color: #8C4A12; text-decoration: none; }

/* CTA row */
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-12); align-items: center; }

/* Trust badges */
.trust-badges ul { display: flex; flex-wrap: wrap; gap: 12px; padding-left: 0; list-style: none; }
.trust-badges li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #E6EBF1; border-radius: 6px; background: #FFFFFF; }
.trust-badges img { width: 18px; height: 18px; }

/* Service shortlist */
.service-shortlist ul { display: flex; flex-direction: column; gap: 6px; padding-left: 18px; }
.service-shortlist a { color: #24313E; border-bottom: 1px dotted #D8DEE6; }
.service-shortlist a:hover { color: #8C4A12; border-bottom-color: #8C4A12; }

/* Text sections as modular blocks */
.text-section { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid #E6EBF1; border-radius: 8px; background: #FFFFFF; box-shadow: var(--shadow-sm); }

/* Contact shortcut */
.contact-shortcut { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #24313E; }
.contact-shortcut img { width: 16px; height: 16px; }
.contact-shortcut a { color: #24313E; border-bottom: 1px dotted transparent; }
.contact-shortcut a:hover { border-bottom-color: #8C4A12; color: #8C4A12; text-decoration: none; }

/* Lists spacing inside content wrappers */
.content-wrapper ul li + li, .content-wrapper ol li + li { margin-top: 6px; }

/* -----------------------------
   TESTIMONIALS (High contrast, geometric cards)
----------------------------- */
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; background: #F5F7FA; color: #24313E; border: 1px solid #D8DEE6; border-left: 4px solid #8C4A12; border-radius: 8px; box-shadow: var(--shadow-sm); }
.testimonial-card p { margin: 0; }

/* -----------------------------
   FOOTER
----------------------------- */
footer { background: #0F1A23; color: #FFFFFF; margin-top: 20px; }
footer .container { padding-top: 24px; padding-bottom: 24px; }
footer .content-wrapper { display: flex; flex-direction: column; gap: 16px; }
footer a { color: #E8EDF2; }
footer a:hover { color: #FFFFFF; text-decoration: none; }
.footer-nav, .legal-nav { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 36px; height: 36px; }
footer p { margin: 0; color: #E8EDF2; }

/* -----------------------------
   COOKIE CONSENT (Banner + Modal)
----------------------------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 12px; flex-wrap: wrap; align-items: flex-start;
  background: #FFFFFF; color: #24313E; border-top: 3px solid #8C4A12; box-shadow: 0 -6px 20px rgba(0,0,0,0.08);
  padding: 16px; z-index: 1200; transform: translateY(100%); transition: transform 0.35s ease;
}
.cookie-banner.show, .cookie-banner.active, body.cookie-banner-open .cookie-banner { transform: translateY(0); }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .btn-accept { background: #24313E; color: #FFFFFF; border: 2px solid #24313E; padding: 10px 14px; border-radius: 6px; text-transform: uppercase; font-weight: 700; }
.cookie-banner .btn-reject { background: #FFFFFF; color: #24313E; border: 2px solid #24313E; padding: 10px 14px; border-radius: 6px; font-weight: 700; }
.cookie-banner .btn-settings { background: #FFFFFF; color: #8C4A12; border: 2px solid #8C4A12; padding: 10px 14px; border-radius: 6px; font-weight: 700; }
.cookie-banner .btn-accept:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.cookie-banner .btn-reject:hover, .cookie-banner .btn-settings:hover { background: #F5F7FA; transform: translateY(-1px); }

/* Cookie modal */
.cookie-backdrop { position: fixed; inset: 0; background: rgba(15,26,35,0.55); z-index: 1300; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.cookie-backdrop.show { opacity: 1; pointer-events: all; }
.cookie-modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.98);
  width: min(92vw, 720px); background: #FFFFFF; color: #24313E; border: 1px solid #D8DEE6; border-radius: 10px; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 16px; padding: 16px; z-index: 1400; opacity: 0; pointer-events: none; transition: transform 0.25s ease, opacity 0.25s ease;
}
.cookie-modal.show { opacity: 1; pointer-events: all; transform: translate(-50%, -50%) scale(1); }
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid #E6EBF1; border-radius: 8px; background: #FDFDFE; }
.cookie-toggle .badge { padding: 2px 8px; border-radius: 999px; border: 1px solid #E6EBF1; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }

/* -----------------------------
   ACCESSIBLE TOGGLES (generic)
----------------------------- */
.switch { position: relative; width: 48px; height: 28px; border-radius: 999px; background: #D8DEE6; transition: background 0.2s ease; display: inline-flex; align-items: center; padding: 2px; }
.switch::after { content: ""; width: 24px; height: 24px; background: #FFFFFF; border: 1px solid #CBD5E1; border-radius: 50%; transition: transform 0.2s ease; }
input[type="checkbox"].switch-input { position: absolute; opacity: 0; pointer-events: none; }
input[type="checkbox"].switch-input:checked + .switch { background: #8C4A12; }
input[type="checkbox"].switch-input:checked + .switch::after { transform: translateX(20px); }

/* -----------------------------
   CARDS / FLEX UTILITIES (Geometric)
----------------------------- */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: #FFFFFF; border: 1px solid #E6EBF1; border-radius: 8px; box-shadow: var(--shadow-sm); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }
.section { margin-bottom: 60px; padding: 40px 20px; }

/* Maintain minimum spacing between content blocks */
.content-wrapper > * { margin: 0; }
.content-wrapper > * + * { margin-top: 20px; }

/* -----------------------------
   FORMS (generic)
----------------------------- */
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%; padding: 12px 14px; border: 1px solid #D8DEE6; border-radius: 6px; background: #FFFFFF; color: #24313E;
}
input:focus, textarea:focus, select:focus { outline: 2px solid #8C4A12; border-color: #8C4A12; }
label { font-weight: 700; font-size: 14px; margin-bottom: 6px; display: inline-flex; }

/* -----------------------------
   PAGE-SPECIFIC ENHANCEMENTS
----------------------------- */
/* Index and service pages reinforcement */
.hero h1 { max-width: 20ch; }
.hero .subheadline { max-width: 60ch; }

/* Emphasize ordered steps */
ol li { padding-left: 4px; }
ol li::marker { color: #8C4A12; font-weight: 700; }

/* Footer subtle divider for legal nav on small screens */
.legal-nav a { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.legal-nav a:last-child { border-bottom: 0; }

/* -----------------------------
   HIGH-CONTRAST AREAS
----------------------------- */
/* Ensure testimonials and reviews are high-contrast, dark text on light bg */
.testimonial-card, .testimonial-card * { color: #24313E; }

/* -----------------------------
   MISC UTILITIES
----------------------------- */
.hide { display: none !important; }
.muted { color: #5A6A79; }
.center { text-align: center; }
.stack-vertical { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* -----------------------------
   RESPONSIVE (Mobile-first)
----------------------------- */
@media (min-width: 600px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  .cta-row { gap: var(--space-16); }
  section { padding: 40px 0; }
}

@media (min-width: 768px) {
  /* Show main nav and header actions on tablet+ */
  .main-nav { display: flex; }
  .header-cta { display: flex; }
  .mobile-menu-toggle { display: none; }

  .container { gap: var(--space-24); }
  .content-wrapper { gap: var(--space-24); }

  .text-image-section { flex-direction: row; }
  .hero .container { padding-top: 40px; padding-bottom: 40px; }
}

@media (min-width: 992px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  .hero .container { padding-top: 56px; padding-bottom: 56px; }

  /* Footer multi-row organization */
  footer .content-wrapper { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 24px; }
  footer .brand { margin-right: auto; }
}

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

/* ============================================================
   END OF FILE
   ============================================================ */
