/* ===============================
   CSS Reset & Base Normalize
   Industrial Modern theme for GrenzRente Kompass
   Mobile-first, flexbox-only layouts
   =============================== */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Verdana, Geneva, Tahoma, sans-serif; line-height: 1.6; color: #E5ECF2; background-color: #0E1215; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: #9BD4FF; text-decoration: none; }
a:hover { text-decoration: underline; }
:focus { outline: none; }
:focus-visible { outline: 2px solid #1B5E68; outline-offset: 2px; }

/* ===============================
   Theme Tokens (with fallbacks)
   =============================== */
:root {
  --color-primary: #0B3C5D;
  --color-secondary: #1B5E68;
  --color-accent: #FFFFFF;
  --bg-900: #0E1215; /* page background */
  --bg-800: #11161B; /* surfaces */
  --bg-700: #131A20; /* surfaces alt */
  --ink-100: #EAF2F8; /* light text */
  --ink-200: #D3DEE7;
  --ink-300: #B8C6D1;
  --ink-700: #1A2128; /* dark text for light cards */
  --metal-600: #2A3036; /* steel outline */
  --metal-500: #394149; /* steel outline hover */
  --metal-400: #6B737A; /* steel detail */
  --success: #1B5E68;
  --danger: #B24B4B;
  --shadow-1: 0 1px 2px rgba(0,0,0,0.35);
  --shadow-2: 0 6px 18px rgba(0,0,0,0.35);
}

/* ===============================
   Typography
   =============================== */
h1, h2, h3, h4, h5, h6 { font-family: Georgia, "Times New Roman", serif; color: #FFFFFF; line-height: 1.25; margin: 0 0 16px 0; }
h1 { font-size: 32px; letter-spacing: 0.2px; }
h2 { font-size: 24px; letter-spacing: 0.2px; }
h3 { font-size: 18px; letter-spacing: 0.15px; }
p { margin: 0 0 14px 0; color: var(--ink-200); }
strong { color: #FFFFFF; }
em { color: var(--ink-300); }
small { font-size: 14px; color: var(--ink-300); }

/* ===============================
   Layout: Containers & Sections (Flexbox only)
   =============================== */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; gap: 20px; }
.content-wrapper { display: flex; flex-direction: column; gap: 16px; }
section { padding: 40px 0; margin-bottom: 60px; background-color: transparent; border-top: 1px solid var(--metal-600); border-bottom: 1px solid var(--metal-600); }

/* Mandatory spacing utility (kept for exact class names) */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: var(--bg-800); border: 1px solid var(--metal-600); border-radius: 10px; box-shadow: var(--shadow-1); padding: 20px; display: flex; flex-direction: column; gap: 12px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--metal-500); }
.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: #F1F5F7; color: #111417; border-left: 4px solid var(--color-secondary); border: 1px solid #D7E0E6; border-radius: 10px; box-shadow: 0 4px 14px rgba(0,0,0,0.08); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* ===============================
   Header & Navigation
   =============================== */
header { position: sticky; top: 0; z-index: 1000; background: #0B1015; border-bottom: 1px solid var(--metal-600); box-shadow: 0 6px 20px rgba(0,0,0,0.35); }
header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
.logo img { height: 40px; filter: drop-shadow(0 1px 0 rgba(0,0,0,0.4)); }

.main-nav { display: none; align-items: center; gap: 16px; }
.main-nav a { color: var(--ink-200); padding: 10px 12px; border: 1px solid transparent; border-radius: 8px; transition: color .2s ease, background-color .2s ease, border-color .2s ease; text-transform: uppercase; letter-spacing: 0.8px; font-size: 14px; }
.main-nav a:hover { color: #FFFFFF; background: #0F1419; border-color: var(--metal-600); text-decoration: none; }
.main-nav a[aria-current="page"] { color: #FFFFFF; background: var(--color-primary); border-color: transparent; }

/* Mobile menu toggle */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: #FFFFFF; border: 1px solid var(--metal-600); border-radius: 8px; background: #12181E; transition: background .2s ease, border-color .2s ease; }
.mobile-menu-toggle:hover { background: #151C23; border-color: var(--metal-500); }

/* Mobile slide-in menu */
.mobile-menu { position: fixed; top: 0; right: 0; bottom: 0; width: 100%; max-width: 360px; background: #0F1419; border-left: 1px solid var(--metal-600); box-shadow: -12px 0 28px rgba(0,0,0,0.45); transform: translateX(100%); transition: transform .3s ease; z-index: 1200; display: flex; flex-direction: column; }
.mobile-menu[aria-hidden="false"] { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; margin: 12px; width: 40px; height: 40px; border: 1px solid var(--metal-600); border-radius: 8px; background: #12181E; color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; }
.mobile-nav { display: flex; flex-direction: column; padding: 8px 16px 24px 16px; gap: 8px; overflow-y: auto; }
.mobile-nav a { display: flex; align-items: center; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--metal-600); color: #E6EDF3; background: #0F1419; text-transform: uppercase; letter-spacing: 0.8px; font-size: 14px; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.mobile-nav a:hover { background: #131A21; border-color: var(--metal-500); color: #FFFFFF; text-decoration: none; }
.mobile-nav a[aria-current="page"] { background: var(--color-primary); border-color: transparent; color: #FFFFFF; }

/* Show full nav on wider screens */
@media (min-width: 769px) {
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
}

/* ===============================
   Hero Section
   =============================== */
.hero { background: var(--color-primary); color: var(--color-accent); border-top: none; border-bottom: 1px solid #0A2F48; padding: 56px 0; }
.hero .container { gap: 10px; }
.hero .content-wrapper { gap: 12px; }
.hero h1 { color: #FFFFFF; font-size: 32px; }
.hero p { color: #EAF2F8; }
.hero .tagline { font-weight: bold; color: #FFFFFF; letter-spacing: 0.4px; }
.hero .phone { color: #FFFFFF; font-weight: 600; }

/* ===============================
   Lists (industrial bullets and ordered counters)
   =============================== */
ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
ul li { position: relative; padding-left: 20px; color: var(--ink-200); }
ul li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 2px; background: var(--metal-400); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15); }
ol { padding: 0; margin: 0; counter-reset: item; display: flex; flex-direction: column; gap: 10px; }
ol li { counter-increment: item; position: relative; padding-left: 34px; color: var(--ink-200); }
ol li::before { content: counter(item) "."; position: absolute; left: 0; top: 0; color: #FFFFFF; background: #1A2430; border: 1px solid var(--metal-600); border-radius: 6px; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: bold; box-shadow: var(--shadow-1); }

/* ===============================
   CTAs & Buttons
   =============================== */
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.cta-group a { display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 10px; border: 1px solid var(--metal-600); background: #11181E; color: #FFFFFF; font-weight: 600; letter-spacing: 0.4px; transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; box-shadow: var(--shadow-1); }
.cta-group a:hover { background: #151C23; border-color: var(--metal-500); transform: translateY(-2px); text-decoration: none; box-shadow: var(--shadow-2); }
.cta-group a:first-child { background: var(--color-secondary); border-color: transparent; }
.cta-group a:first-child:hover { filter: brightness(1.05); }

/* Badges, language switcher, phone highlight */
.trust-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-badges li { padding: 8px 10px; border: 1px dashed var(--metal-600); border-radius: 8px; background: #0F1419; color: var(--ink-200); }
.language-switcher { display: flex; align-items: center; gap: 8px; color: var(--ink-300); text-transform: uppercase; letter-spacing: 0.8px; font-size: 12px; }
.phone { font-weight: 700; color: #FFFFFF; }

/* ===============================
   Generic Content Blocks as subtle cards
   =============================== */
.content-wrapper > div { display: flex; flex-direction: column; gap: 8px; background: var(--bg-800); border: 1px solid var(--metal-600); border-radius: 10px; padding: 16px; box-shadow: var(--shadow-1); }

/* Avoid over-styling in hero */
.hero .content-wrapper > div { background: transparent; border: none; box-shadow: none; padding: 0; }

/* Links inside content blocks */
.content-wrapper a { color: #9BD4FF; font-weight: 600; }
.content-wrapper a:hover { color: #FFFFFF; text-decoration: underline; }

/* ===============================
   Testimonials (light cards for accessibility)
   =============================== */
.testimonial-card p { color: #111417; }
.testimonial-card strong { color: #0B3C5D; }

/* ===============================
   Footer
   =============================== */
footer { background: #0B1015; border-top: 1px solid var(--metal-600); padding: 28px 0; }
footer .content-wrapper { display: flex; flex-direction: column; gap: 20px; }
footer nav { display: flex; flex-direction: column; gap: 8px; }
footer nav h3 { font-size: 16px; color: #FFFFFF; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.8px; }
footer a { color: var(--ink-200); }
footer a:hover { color: #FFFFFF; text-decoration: underline; }
footer p { color: var(--ink-300); }

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

/* ===============================
   Responsive rules for text-image sections
   =============================== */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 769px) {
  .text-image-section { flex-direction: row; }
}

/* ===============================
   Tables/Forms (generic – if any appear later)
   =============================== */
.table { width: 100%; border: 1px solid var(--metal-600); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.table-row { display: flex; }
.table-row > div { flex: 1; padding: 12px; border-bottom: 1px solid var(--metal-600); }
.table-row.header { background: #11181E; font-weight: 700; }

input[type="text"], input[type="email"], textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--metal-600); border-radius: 10px; background: #0F1419; color: #FFFFFF; }
label { color: #FFFFFF; font-weight: 600; }

/* ===============================
   Cookie Consent Banner & Modal
   =============================== */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500; background: rgba(13,18,23,0.98); backdrop-filter: saturate(1.2); border-top: 1px solid var(--metal-600); padding: 14px 16px; transform: translateY(100%); transition: transform .3s ease; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-text { display: flex; flex: 1 1 260px; min-width: 240px; color: var(--ink-200); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--metal-600); background: #12181E; color: #FFFFFF; font-weight: 600; transition: background .2s ease, border-color .2s ease, transform .1s ease; }
.cookie-btn:hover { background: #151C23; border-color: var(--metal-500); transform: translateY(-1px); }
.cookie-btn.accept { background: var(--color-secondary); border-color: transparent; }
.cookie-btn.reject { background: #22272E; }
.cookie-btn.settings { background: #12181E; }

/* Cookie Preferences Modal */
.cookie-modal { position: fixed; inset: 0; z-index: 1600; background: rgba(0,0,0,0.6); display: none; align-items: center; justify-content: center; padding: 20px; }
.cookie-modal.show { display: flex; }
.cookie-panel { background: #0F1419; border: 1px solid var(--metal-600); border-radius: 12px; box-shadow: var(--shadow-2); width: 100%; max-width: 720px; display: flex; flex-direction: column; }
.cookie-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--metal-600); }
.cookie-panel-header h3 { margin: 0; font-size: 18px; }
.cookie-panel-body { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.cookie-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; background: #11181E; border: 1px solid var(--metal-600); border-radius: 10px; }
.cookie-option .label { display: flex; flex-direction: column; gap: 6px; }
.cookie-option .label strong { color: #FFFFFF; }
.cookie-toggle { width: 48px; height: 28px; border-radius: 20px; background: #2A3036; position: relative; display: inline-flex; align-items: center; padding: 3px; transition: background .2s ease; }
.cookie-toggle .dot { width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; transform: translateX(0); transition: transform .2s ease; }
.cookie-toggle.on { background: var(--color-secondary); }
.cookie-toggle.on .dot { transform: translateX(20px); }
.cookie-panel-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--metal-600); }

/* ===============================
   Utilities & Helpers
   =============================== */
.hidden { display: none !important; }
.muted { color: var(--ink-300); }
.separator { height: 1px; background: var(--metal-600); width: 100%; }

/* ===============================
   Page-specific micro-styling hooks
   =============================== */
/* Footer language switchers and repeated components */
.language-switcher span { color: var(--ink-300); }

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

/* ===============================
   Desktop enhancements
   =============================== */
@media (min-width: 992px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  .container { gap: 24px; }
  .content-wrapper { gap: 20px; }
  .hero { padding: 72px 0; }
}

/* ===============================
   Accessibility & Industrial details
   =============================== */
/* Subtle industrial dividers for sections */
section { box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), inset 0 -1px 0 rgba(0,0,0,0.4); }

/* ===============================
   Page-specific small touches for clarity
   =============================== */
/* Index badges and rating lines */
.hero .trust-badges li { background: rgba(0,0,0,0.18); border-color: rgba(255,255,255,0.22); color: #EAF2F8; }

/* Footer logo sizing on index */
footer .content-wrapper img { height: 36px; }

/* ===============================
   Ensure minimum gaps between cards/sections
   =============================== */
section .testimonial-card + .testimonial-card { margin-top: 16px; }

/* ===============================
   Prevent overlapping and ensure spacing
   =============================== */
main { display: flex; flex-direction: column; gap: 20px; }
header, main, footer { width: 100%; }

/* ===============================
   End of stylesheet
   =============================== */