/* =========================
   Glimmer Scepter Innenbau вЂ“ Elegant Classic CSS (Flex-only)
   Author: Senior CSS Developer & UI Designer
   ========================= */

/* =========================
   CSS RESET & BASELINE
   ========================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Verdana, Tahoma, sans-serif; color: var(--ink, #1A1D24); background-color: var(--bg, #FAFAF8); line-height: 1.6; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus { outline: 2px solid var(--secondary, #D97A2B); outline-offset: 2px; }

/* =========================
   DESIGN TOKENS
   ========================= */
:root {
  --primary: #1F3A5F; /* Deep navy */
  --secondary: #D97A2B; /* Burnt amber */
  --accent: #F4F7FA; /* Light panels */
  --bg: #FAFAF8; /* Soft paper */
  --surface: #FFFFFF; /* Cards / surfaces */
  --ink: #1A1D24; /* Main text */
  --muted: #5B6472; /* Secondary text */
  --line: #E6E9EE; /* Subtle borders */
  --shadow-s: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-m: 0 8px 20px rgba(31,58,95,0.08);
  --radius-s: 6px;
  --radius-m: 10px;
}

/* =========================
   TYPOGRAPHY
   ========================= */
/* Elegant-classic hierarchy with brand fonts */
h1, h2, h3, h4 { font-family: "Trebuchet MS", Verdana, Tahoma, sans-serif; color: var(--primary, #1F3A5F); line-height: 1.2; letter-spacing: 0.2px; }
h1 { font-size: 32px; margin: 0 0 16px; }
h2 { font-size: 24px; margin: 0 0 12px; }
h3 { font-size: 18px; margin: 0 0 8px; }
p { margin: 0 0 14px; color: var(--ink, #1A1D24); }
small { color: var(--muted, #5B6472); font-size: 12px; }
strong { font-weight: 700; }
em { font-style: italic; }

/* Lists */
ul, ol { margin: 0 0 14px; padding-left: 20px; }
ul li, ol li { margin-bottom: 8px; }

/* Links */
a { color: var(--primary, #1F3A5F); text-decoration: none; transition: color 180ms ease; }
a:hover { color: var(--secondary, #D97A2B); text-decoration: underline; text-underline-offset: 3px; }

/* =========================
   LAYOUT WRAPPERS (Flex-only)
   ========================= */
header, main, footer { width: 100%; }
.container { display: flex; width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.content-wrapper { display: flex; flex-direction: column; gap: 16px; width: 100%; }

/* Section spacing (default and mandatory .section class) */
section { margin-bottom: 60px; padding: 40px 0; background: transparent; }
.section { margin-bottom: 60px; padding: 40px 20px; }

/* =========================
   HEADER & NAVIGATION
   ========================= */
header { position: sticky; top: 0; background: var(--surface, #FFFFFF); border-bottom: 1px solid var(--line, #E6E9EE); z-index: 1000; }
header .container { align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: flex; align-items: center; }
.logo img { height: 40px; width: auto; }

/* Main navigation (desktop) */
.main-nav { display: none; align-items: center; gap: 18px; }
.main-nav a { color: var(--ink, #1A1D24); padding: 6px 8px; border-radius: var(--radius-s, 6px); }
.main-nav a:hover { background: var(--accent, #F4F7FA); color: #1F3A5F;}
.main-nav a[aria-current="page"] { color: var(--primary, #1F3A5F); border-bottom: 2px solid var(--secondary, #D97A2B); padding-bottom: 4px; border-radius: 0; }

/* CTA in nav */
.main-nav .btn-primary { color: #fff; }

/* Mobile menu toggle */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line, #E6E9EE); border-radius: 8px; background: var(--surface, #FFFFFF); color: var(--primary, #1F3A5F); cursor: pointer; transition: background 180ms ease, color 180ms ease, border-color 180ms ease; }
.mobile-menu-toggle:hover { background: var(--accent, #F4F7FA); }

/* Mobile menu panel */
.mobile-menu { position: fixed; top: 0; right: 0; bottom: 0; width: 88%; max-width: 360px; background: var(--surface, #FFFFFF); box-shadow: var(--shadow-m, 0 8px 20px rgba(31,58,95,0.08)); z-index: 9999; display: flex; flex-direction: column; gap: 16px; padding: 16px; transform: translateX(100%); transition: transform 260ms ease; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; width: 40px; height: 40px; border: 1px solid var(--line, #E6E9EE); border-radius: 8px; background: var(--surface, #FFFFFF); color: var(--ink, #1A1D24); cursor: pointer; }
.mobile-nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-nav a { display: flex; align-items: center; padding: 12px 8px; border-radius: 8px; color: var(--ink, #1A1D24); }
.mobile-nav a:hover { background: var(--accent, #F4F7FA); }
.mobile-nav a[aria-current="page"] { background: var(--accent, #F4F7FA); border-left: 3px solid var(--secondary, #D97A2B); padding-left: 12px; }

/* =========================
   HERO
   ========================= */
.hero { background: var(--accent, #F4F7FA); border-bottom: 1px solid var(--line, #E6E9EE); padding-top: 32px; padding-bottom: 32px; }
.hero .container { align-items: center; justify-content: center; }
.hero .content-wrapper { align-items: flex-start; gap: 14px; }
.hero h1 { font-size: 28px; color: var(--primary, #1F3A5F); }
.hero p { color: var(--muted, #5B6472); }

/* =========================
   BUTTONS
   ========================= */
.btn-primary, .btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: var(--radius-s, 6px); border: 1px solid transparent; cursor: pointer; transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 80ms ease; text-decoration: none; }
.btn-primary { background: var(--primary, #1F3A5F); color: #FFFFFF; border-color: var(--primary, #1F3A5F); box-shadow: var(--shadow-s, 0 1px 2px rgba(0,0,0,0.06)); }
.btn-primary:hover { background: #24486F; border-color: #24486F; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary { background: transparent; color: var(--primary, #1F3A5F); border-color: var(--primary, #1F3A5F); }
.btn-secondary:hover { background: var(--accent, #F4F7FA); }

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

/* =========================
   CONTENT BLOCKS & LISTS
   ========================= */
.text-section { display: flex; flex-direction: column; gap: 8px; }
.text-section p, .text-section li { color: var(--ink, #1A1D24); }
.text-section img { display: inline-block; vertical-align: middle; margin-right: 8px; }

.supporting-points { display: flex; flex-wrap: wrap; gap: 10px 16px; list-style: none; padding: 0; margin: 8px 0 0; }
.supporting-points li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: var(--surface, #FFFFFF); border: 1px solid var(--line, #E6E9EE); }
.supporting-points img { width: 16px; height: 16px; }

/* Process steps */
.process-steps { display: flex; flex-direction: column; gap: 10px; padding-left: 22px; margin: 0 0 8px; }
.process-steps li { padding: 8px 10px; background: var(--surface, #FFFFFF); border: 1px solid var(--line, #E6E9EE); border-radius: 8px; }

/* Metrics pills */
.metrics-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.metrics-list li { background: var(--surface, #FFFFFF); border: 1px solid var(--line, #E6E9EE); border-radius: 999px; padding: 8px 12px; color: var(--primary, #1F3A5F); }

/* Testimonial cards (accessible: dark text on light bg) */
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; background: var(--surface, #FFFFFF); border: 1px solid var(--line, #E6E9EE); border-radius: var(--radius-m, 10px); box-shadow: var(--shadow-s, 0 1px 2px rgba(0,0,0,0.06)); color: var(--ink, #1A1D24); }
.testimonial-card p { margin: 0; }
.testimonial-card p + p { color: var(--primary, #1F3A5F); }

/* Tables (Preisbeispiele) */
.text-section { overflow-x: auto; }
.text-section table { width: 100%; min-width: 640px; border-collapse: collapse; background: var(--surface, #FFFFFF); border: 1px solid var(--line, #E6E9EE); border-radius: 8px; overflow: hidden; }
.text-section thead th { text-align: left; background: var(--accent, #F4F7FA); color: var(--primary, #1F3A5F); font-weight: 700; padding: 12px; border-bottom: 1px solid var(--line, #E6E9EE); }
.text-section tbody td { padding: 12px; border-bottom: 1px solid var(--line, #E6E9EE); }
.text-section tbody tr:nth-child(even) td { background: #FBFCFD; }

/* =========================
   FOOTER
   ========================= */
footer { background: var(--accent, #F4F7FA); border-top: 1px solid var(--line, #E6E9EE); padding: 24px 0; }
footer .container { align-items: center; justify-content: center; }
footer .content-wrapper { align-items: flex-start; gap: 12px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.footer-nav a { color: var(--ink, #1A1D24); }
.footer-nav a:hover { color: var(--secondary, #D97A2B); }
.contact-summary p { margin: 0; color: var(--muted, #5B6472); }
.brand-tagline { color: var(--primary, #1F3A5F); font-style: italic; margin: 0; }

/* =========================
   CARDS & FLEX UTILITIES (MANDATORY PATTERNS)
   ========================= */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: var(--surface, #FFFFFF); border: 1px solid var(--line, #E6E9EE); border-radius: var(--radius-m, 10px); padding: 18px; box-shadow: var(--shadow-s, 0 1px 2px rgba(0,0,0,0.06)); display: flex; flex-direction: column; gap: 10px; }
.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; }

/* =========================
   ACCESSIBILITY & MISC
   ========================= */
.hidden { display: none !important; }
hr { border: 0; border-top: 1px solid var(--line, #E6E9EE); margin: 16px 0; }
blockquote { margin: 0; padding: 12px 16px; border-left: 3px solid var(--secondary, #D97A2B); background: #FFFDFC; border-radius: 6px; }

/* =========================
   COOKIE CONSENT BANNER & MODAL
   ========================= */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; background: var(--surface, #FFFFFF); color: var(--ink, #1A1D24); border: 1px solid var(--line, #E6E9EE); border-radius: var(--radius-m, 10px); box-shadow: var(--shadow-m, 0 8px 20px rgba(31,58,95,0.08)); padding: 16px; display: flex; flex-direction: column; gap: 12px; transform: translateY(120%); opacity: 0; pointer-events: none; transition: transform 260ms ease, opacity 260ms ease; z-index: 9998; }
.cookie-banner.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-banner .cookie-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .btn-accept { background: var(--primary, #1F3A5F); color: #fff; border: 1px solid var(--primary, #1F3A5F); border-radius: 8px; padding: 10px 14px; }
.cookie-banner .btn-accept:hover { background: #24486F; border-color: #24486F; }
.cookie-banner .btn-reject { background: #FFFFFF; color: var(--primary, #1F3A5F); border: 1px solid var(--primary, #1F3A5F); border-radius: 8px; padding: 10px 14px; }
.cookie-banner .btn-reject:hover { background: var(--accent, #F4F7FA); }
.cookie-banner .btn-settings { background: transparent; color: var(--secondary, #D97A2B); border: 1px solid var(--secondary, #D97A2B); border-radius: 8px; padding: 10px 14px; }
.cookie-banner .btn-settings:hover { background: #FFF5EE; }

.cookie-modal { position: fixed; inset: 0; background: rgba(26,29,36,0.55); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity 240ms ease, visibility 240ms ease; z-index: 9999; }
.cookie-modal.open { opacity: 1; visibility: visible; }
.cookie-modal-content { background: var(--surface, #FFFFFF); width: 100%; max-width: 720px; border: 1px solid var(--line, #E6E9EE); border-radius: 12px; box-shadow: var(--shadow-m, 0 8px 20px rgba(31,58,95,0.08)); padding: 18px; display: flex; flex-direction: column; gap: 14px; transform: scale(0.98); transition: transform 240ms ease; }
.cookie-modal.open .cookie-modal-content { transform: scale(1); }
.cookie-modal-header, .cookie-modal-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cookie-modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-options { display: flex; flex-direction: column; gap: 10px; }
.cookie-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line, #E6E9EE); border-radius: 8px; }
.cookie-option .label { display: flex; flex-direction: column; }
.cookie-option small { color: var(--muted, #5B6472); }

/* Toggle switch (pure CSS) */
.toggle { display: flex; align-items: center; gap: 10px; }
.toggle input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; background: #CFD5DF; border: 1px solid #BFC7D3; border-radius: 999px; position: relative; cursor: pointer; transition: background 180ms ease, border-color 180ms ease; }
.toggle input[type="checkbox"]::before { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; background: #FFFFFF; border-radius: 50%; box-shadow: 0 1px 2px rgba(0,0,0,0.2); transition: transform 180ms ease; }
.toggle input[type="checkbox"]:checked { background: var(--primary, #1F3A5F); border-color: var(--primary, #1F3A5F); }
.toggle input[type="checkbox"]:checked::before { transform: translateX(18px); }
.toggle input[type="checkbox"]:disabled { opacity: 0.5; cursor: not-allowed; }

/* =========================
   RESPONSIVE (Mobile-first)
   ========================= */
@media (min-width: 480px) {
  h1 { font-size: 34px; }
  h2 { font-size: 26px; }
}

@media (min-width: 768px) {
  .hero { padding-top: 48px; padding-bottom: 48px; }
  .hero h1 { font-size: 40px; }
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
  .text-image-section { flex-direction: row; }
}

@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: center; }
}

@media (min-width: 992px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 20px; }
}

/* =========================
   PAGE-SPECIFIC TWEAKS
   ========================= */
/* Index & shared sections */
section .container { align-items: stretch; justify-content: center; }

/* Footer alignment on wider screens */
@media (min-width: 768px) {
  footer .content-wrapper { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* =========================
   INTERACTIONS & MICRO-ANIMATIONS
   ========================= */
button, .btn-primary, .btn-secondary, .mobile-menu-toggle, .mobile-menu-close { will-change: transform; }

/* =========================
   NAV LINK STATES
   ========================= */
nav a:focus-visible { outline: 2px solid var(--secondary, #D97A2B); outline-offset: 2px; border-radius: 6px; }

/* =========================
   HIGH CONTRAST FOR REVIEWS
   ========================= */
/* Ensures testimonial & review text remains readable */
.testimonial-card, .testimonial-card * { color: var(--ink, #1A1D24); }

/* =========================
   PRINT (optional nice output)
   ========================= */
@media print {
  header, .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal { display: none !important; }
  a { text-decoration: underline; color: #000; }
  body { background: #fff; }
}