/* ===============================
   Himmelsglanz Ausbau – style.css
   Modern Bold: bold typography, bright accents, geometric shapes, high contrast
   Mobile-first, flexbox-only layout
   =============================== */

/* ---------- CSS Reset & Base Normalize ---------- */
* { box-sizing: border-box; }
*::before, *::after { box-sizing: inherit; }
html { -webkit-text-size-adjust: 100%; height: 100%; }
body { margin: 0; min-height: 100%; font-family: Verdana, Geneva, Tahoma, sans-serif; color: #0E223D; background: #FFFFFF; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: #1F3A5F; text-decoration: none; font-weight: 700; }
a:hover { color: #D27A00; }
:focus { outline: none; }
:focus-visible { outline: 3px solid #D27A00; outline-offset: 2px; }

/* ---------- CSS Custom Properties (with fallbacks in declarations) ---------- */
:root {
  --color-primary: #1F3A5F;
  --color-secondary: #D27A00;
  --color-accent: #F5F3EE;
  --color-dark: #0E223D;
  --color-light: #FFFFFF;
  --color-muted: #E6E8EE;
  --shadow-1: 0 6px 16px rgba(15, 31, 54, 0.12);
  --shadow-2: 0 10px 28px rgba(15, 31, 54, 0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-60: 60px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif; color: #0B1C33; margin: 0 0 12px; line-height: 1.2; font-weight: 800; letter-spacing: 0.2px; }
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
p { margin: 0 0 16px; }
.subheadline { font-size: 16px; color: #2C3D57; font-weight: 600; }
.brand-tagline { font-size: 12px; text-transform: uppercase; letter-spacing: 0.8px; color: #1F3A5F; font-weight: 800; }
strong { font-weight: 800; }

/* ---------- Containers & Layout (Flexbox Only) ---------- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; gap: var(--space-20); }
.content-wrapper { display: flex; flex-direction: column; gap: var(--space-24); align-items: stretch; }
.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; }

/* Mandatory spacing pattern class (even if not present in HTML) */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }

/* Also style native sections for consistent rhythm */
main > section { padding: 40px 0; }
main > section + section { margin-top: 20px; }

/* ---------- Header ---------- */
header { position: relative; border-bottom: 4px solid #1F3A5F; background: #FFFFFF; }
header .container { flex-direction: column; align-items: stretch; gap: var(--space-16); padding-top: 16px; padding-bottom: 16px; }
header .topbar { display: flex; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo img { height: 42px; width: auto; }

.main-nav { display: none; align-items: center; gap: 16px; flex-wrap: wrap; }
.main-nav a { font-weight: 800; padding: 10px 14px; border-radius: var(--radius-sm); color: #0E223D; background: transparent; transition: background 0.2s, color 0.2s, transform 0.2s; }
.main-nav a:hover { background: var(--color-accent); color: var(--color-primary); transform: translateY(-1px); }

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

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border-radius: 14px; border: 2px solid transparent; font-weight: 900; text-transform: uppercase; letter-spacing: 0.6px; box-shadow: var(--shadow-1); transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease; cursor: pointer; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-1); }
.btn-primary { background: #D27A00; color: #FFFFFF; border-color: #D27A00; }
.btn-primary:hover { background: #b66a00; border-color: #b66a00; }
.btn-secondary { background: #1F3A5F; color: #FFFFFF; border-color: #1F3A5F; }
.btn-secondary:hover { background: #18304f; border-color: #18304f; }
.btn-ghost { background: transparent; color: #1F3A5F; border-color: #1F3A5F; }
.btn-ghost:hover { background: #1F3A5F; color: #FFFFFF; }

.cta-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero { background: #F5F3EE; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -60px; top: -80px; width: 240px; height: 240px; background: #D27A00; opacity: 0.1; transform: rotate(35deg); border-radius: 18px; pointer-events: none; }
.hero::after { content: ""; position: absolute; left: -70px; bottom: -70px; width: 200px; height: 200px; background: #1F3A5F; opacity: 0.08; transform: rotate(12deg); border-radius: 12px; pointer-events: none; }
.hero .content-wrapper { padding-top: 8px; padding-bottom: 8px; }
.hero h1 { font-size: 32px; color: #0B1C33; }
.hero .subheadline { font-size: 16px; max-width: 960px; }

/* ---------- Text Blocks ---------- */
.text-section { display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 16px 16px; border: 1px solid #E6E8EE; border-radius: var(--radius-md); box-shadow: var(--shadow-1); }
.text-section h3 { margin-top: 4px; }
.text-section a { text-decoration: underline; }
.text-section ul, .text-section ol { margin: 0; padding-left: 0; display: flex; flex-direction: column; gap: 8px; }
.text-section li { list-style: none; display: flex; align-items: flex-start; gap: 10px; }
.text-section li::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-top: 7px; background: var(--color-secondary); border-radius: 2px; }
.text-section li img { width: 20px; height: 20px; object-fit: contain; margin-right: 6px; }

/* ---------- Testimonials (light background, high contrast text) ---------- */
.testimonial-card { background: #FFFFFF; border: 2px solid #1F3A5F; border-radius: var(--radius-lg); box-shadow: var(--shadow-1); align-items: flex-start; }
.testimonial-card h3 { color: #1F3A5F; }
.testimonial-card p { color: #0E223D; }

/* ---------- Footer ---------- */
footer { background: #0F1F37; color: #FFFFFF; padding-top: 32px; padding-bottom: 32px; }
footer a { color: #F5F3EE; }
footer a:hover { color: #D27A00; }
footer .content-wrapper { display: flex; flex-direction: column; gap: 20px; }
.footer-nav, .legal-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav h3, .legal-nav h3 { font-size: 14px; color: #F5F3EE; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 6px; }

/* ---------- Navigation – Mobile Menu ---------- */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 22px; border-radius: 10px; border: 2px solid #1F3A5F; background: #FFFFFF; color: #1F3A5F; box-shadow: var(--shadow-1); align-self: flex-end; cursor: pointer; }
.mobile-menu-toggle:hover { background: #1F3A5F; color: #FFFFFF; }

.mobile-menu { position: fixed; top: 0; right: 0; width: 100%; height: 100vh; background: rgba(31, 58, 95, 0.98); transform: translateX(100%); transition: transform 0.3s ease; z-index: 1000; display: flex; flex-direction: column; padding: 20px; gap: 20px; }
.mobile-menu.open { transform: translateX(0); }

.mobile-menu-close { align-self: flex-end; width: 44px; height: 44px; font-size: 22px; border-radius: 10px; border: 2px solid #FFFFFF; background: transparent; color: #FFFFFF; cursor: pointer; }
.mobile-menu-close:hover { background: #FFFFFF; color: #1F3A5F; }

.mobile-nav { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.mobile-nav a { color: #FFFFFF; background: rgba(245, 243, 238, 0.08); padding: 14px 12px; border-radius: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.mobile-nav a:hover { background: rgba(245, 243, 238, 0.16); }

/* ---------- Cards (generic styles) ---------- */
.card { background: #FFFFFF; border: 1px solid #E6E8EE; border-radius: var(--radius-md); box-shadow: var(--shadow-1); padding: 20px; display: flex; flex-direction: column; gap: 12px; }

/* ---------- Cookie Consent Banner & Modal ---------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; display: none; z-index: 1100; background: #0F1F37; color: #FFFFFF; box-shadow: 0 -10px 24px rgba(0,0,0,0.18); }
.cookie-banner.show { display: flex; }
.cookie-banner .inner { width: 100%; max-width: 1180px; margin: 0 auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.cookie-banner p { margin: 0; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { border-radius: 10px; padding: 10px 14px; font-size: 12px; }
.cookie-accept { background: #D27A00; color: #FFFFFF; border-color: #D27A00; }
.cookie-accept:hover { background: #b66a00; border-color: #b66a00; }
.cookie-reject { background: transparent; color: #FFFFFF; border-color: #FFFFFF; }
.cookie-reject:hover { background: #FFFFFF; color: #0F1F37; }
.cookie-settings { background: #1F3A5F; color: #FFFFFF; border-color: #1F3A5F; }
.cookie-settings:hover { background: #18304f; border-color: #18304f; }

.cookie-modal { position: fixed; inset: 0; display: none; z-index: 1200; background: rgba(0,0,0,0.5); align-items: center; justify-content: center; padding: 20px; }
.cookie-modal.open { display: flex; }
.cookie-modal .modal { background: #FFFFFF; color: #0E223D; width: 100%; max-width: 720px; border-radius: 16px; box-shadow: var(--shadow-2); display: flex; flex-direction: column; gap: 16px; padding: 20px; }
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .modal-title { font-size: 20px; font-weight: 900; color: #1F3A5F; }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid #E6E8EE; border-radius: 10px; }
.cookie-category .label { font-weight: 800; }
.cookie-toggle { display: inline-flex; align-items: center; gap: 10px; }
/* Toggle switch (pure CSS) */
.switch { position: relative; width: 46px; height: 26px; background: #E6E8EE; border-radius: 20px; border: 2px solid #C8CEDA; display: inline-flex; align-items: center; padding: 2px; transition: background 0.2s; }
.switch .dot { width: 18px; height: 18px; background: #FFFFFF; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,0.2); transform: translateX(0); transition: transform 0.2s; }
.switch.on { background: #1F3A5F; border-color: #1F3A5F; }
.switch.on .dot { transform: translateX(20px); }
.cookie-modal .modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }

/* ---------- Accessibility helpers for touch targets ---------- */
nav a, .btn, .mobile-menu-toggle, .mobile-menu-close { min-height: 44px; }

/* ---------- Micro-interactions ---------- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
.mobile-menu.open { animation: slideInRight 0.3s ease forwards; }
.hero .content-wrapper > * { animation: fadeInUp 0.4s ease both; }
.hero .content-wrapper > *:nth-child(2) { animation-delay: 0.05s; }
.hero .content-wrapper > *:nth-child(3) { animation-delay: 0.1s; }

/* ---------- Forms (generic, if any appear) ---------- */
input, select, textarea { font: inherit; border: 2px solid #C8CEDA; border-radius: 10px; padding: 10px 12px; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: #1F3A5F; box-shadow: 0 0 0 3px rgba(31,58,95,0.15); }
label { font-weight: 800; color: #1F3A5F; }

/* ---------- Utility & Helpers ---------- */
.badge { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; background: #F5F3EE; color: #1F3A5F; font-weight: 800; font-size: 12px; }
.muted { color: #5E6B7C; }

/* ---------- Page-specific tweaks ---------- */
.service-area-note { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: #FFF5E8; color: #8B4E00; border: 1px solid #FFD8A6; border-radius: 10px; font-weight: 800; }

/* ---------- Lists with icons inside content ---------- */
.text-section li img + a,
.text-section li img + span,
.text-section li img + strong { margin-left: 6px; }

/* ---------- Desktop & Larger Screens ---------- */
@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
  .subheadline { font-size: 18px; }

  header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
  .brand-tagline { margin-left: 8px; }

  .main-nav { display: flex; }
  .header-cta { display: flex; }
  .mobile-menu-toggle { display: none; }

  .content-wrapper { flex-direction: column; }
  .text-image-section { flex-direction: row; align-items: center; }
}

@media (min-width: 1024px) {
  .content-wrapper { gap: 28px; }
  .hero h1 { font-size: 48px; }
  .hero .subheadline { font-size: 20px; }
}

/* ---------- Ensure no element overlaps & consistent gaps ---------- */
header, main, footer { display: flex; flex-direction: column; }
main { gap: var(--space-20); }

/* ---------- High-contrast separators and accents ---------- */
section > .container > .content-wrapper > h2 { border-left: 6px solid #1F3A5F; padding-left: 12px; }

/* ---------- Ensure readability in testimonials/reviews ---------- */
section .testimonial-card, .testimonial-card * { color: #0E223D; }

/* ---------- Sitemaps and legal lists spacing ---------- */
.text-section ul li a { font-weight: 800; }

/* ---------- Print basics ---------- */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal { display: none !important; }
  a { text-decoration: underline; }
  .btn { border: 1px solid #000; box-shadow: none; }
}
