/* Reset & Normalize */
* { box-sizing: border-box; }
*::before,*::after { box-sizing: inherit; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding-left: 1.2rem; }

/* Theme: Industrial Modern */
:root {
  --primary: #0A2A43; /* brand primary - deep navy */
  --secondary: #1E6B5A; /* brand secondary - deep teal */
  --accent: #F2F5F7; /* brand accent - light */
  --carbon: #0E1317; /* dark background */
  --gunmetal: #141A20; /* header/footer panels */
  --iron: #1E252C; /* section panels */
  --steel: #2B343D; /* borders, subtle separators */
  --concrete: #A7B1BB; /* muted text */
  --ink: #E8EDF2; /* body text on dark */
  --focus: #D0E6FF; /* focus outline */
  --success: #2E7D32;
  --danger: #B71C1C;
  --radius: 8px;
  --shadow-1: 0 6px 20px rgba(0,0,0,0.35);
  --shadow-2: 0 2px 8px rgba(0,0,0,0.3);
  --ring: 0 0 0 3px rgba(208,230,255,0.4);
}

/* Base Typography */
body {
  font-family: Arial, Helvetica, sans-serif; /* brand body */
  color: var(--ink);
  background: var(--carbon);
  line-height: 1.6;
  font-size: 16px;
}
h1, h2, h3, h4 { font-family: Georgia, 'Times New Roman', serif; /* brand display */ }
h1 { font-size: 40px; line-height: 1.2; margin: 0 0 16px; letter-spacing: 0.3px; }
h2 { font-size: 28px; line-height: 1.3; margin: 0 0 16px; letter-spacing: 0.2px; }
h3 { font-size: 20px; line-height: 1.4; margin: 0 0 10px; }
p { margin: 0 0 12px; color: var(--ink); }
strong { color: #fff; font-weight: 700; }

/* Links */
a { color: #C8D7E4; text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: #FFFFFF; }
a:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 4px; }

/* Structural Containers (Flex-only) */
.container {
  display: flex; flex-direction: column; gap: 20px;
  width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px;
}
.content-wrapper {
  display: flex; flex-direction: column; gap: 20px; align-items: flex-start;
}

/* Global Sections */
section { padding: 40px 0; }
.section { margin-bottom: 60px; padding: 40px 20px; } /* mandatory pattern */

/* Lists */
ul li, ol li { margin-bottom: 8px; }
ul { list-style: disc; }
ol { list-style: decimal; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 18px; border-radius: 6px;
  font-weight: 700; letter-spacing: .04em; text-transform: none;
  border: 1px solid var(--steel); background: #1A222A; color: #E5ECF2;
  transition: transform .08s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  box-shadow: var(--shadow-2);
}
.button:hover { transform: translateY(-1px); background: #202A33; }
.button:active { transform: translateY(0); }
.button:focus-visible { box-shadow: var(--ring), var(--shadow-2); }
.button.primary { background: var(--secondary); border-color: #10473B; color: #EAF6F2; }
.button.primary:hover { background: #195C4C; }
.button.secondary { background: transparent; border-color: var(--steel); color: #D3DEE8; }
.button.secondary:hover { background: rgba(255,255,255,0.04); }

/* Header */
header { position: sticky; top: 0; z-index: 1000; background: var(--gunmetal); border-bottom: 1px solid var(--steel); }
header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; }
.logo { display: flex; align-items: center; }
.logo img { height: 36px; width: auto; filter: contrast(1.05); }
.main-nav { display: none; align-items: center; gap: 18px; }
.main-nav a { padding: 8px 10px; color: #D2DEE8; text-transform: uppercase; font-size: 13px; letter-spacing: .08em; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: #fff; border-bottom-color: var(--secondary); }
.header-ctas { display: none; align-items: center; gap: 10px; }
.mobile-menu-toggle { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; color: #E6EEF5; border: 1px solid var(--steel); border-radius: 6px; background: #1A222A; box-shadow: var(--shadow-2); }
.mobile-menu-toggle:hover { background: #202A33; }
.mobile-menu-toggle:focus-visible { box-shadow: var(--ring), var(--shadow-2); }

/* Mobile Menu (overlay) */
.mobile-menu { position: fixed; inset: 0 0 0 auto; width: 88vw; max-width: 420px; background: #121820; color: #E6EDF5; display: flex; flex-direction: column; gap: 16px; padding: 20px; transform: translateX(100%); transition: transform .35s ease; box-shadow: var(--shadow-1); z-index: 2000; border-left: 1px solid var(--steel); }
.mobile-menu.is-open, .mobile-menu.open, .mobile-menu.active { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; color: #E6EDF5; border: 1px solid var(--steel); border-radius: 6px; background: #1A222A; }
.mobile-nav { display: flex; flex-direction: column; gap: 10px; }
.mobile-nav a { padding: 12px 10px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #D7E2EB; }
.mobile-nav a:hover { background: #18212A; border-color: var(--steel); color: #fff; }

/* Hero */
.hero { background: var(--iron); border-bottom: 1px solid var(--steel); }
.hero .container { padding-top: 24px; padding-bottom: 24px; }
.hero .content-wrapper { padding: 10px 0; }
.hero h1 { color: #F5FAFF; text-shadow: 0 1px 0 rgba(0,0,0,0.3); }
.hero .tagline, .hero .subheadline { color: #C7D3DD; font-size: 18px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-badges, .supporting-points { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.trust-badges ul, .supporting-points ul { margin: 0; padding-left: 1.2rem; }
.trust-badges li, .supporting-points li { color: #D3DEE8; }

/* Generic Text Blocks */
.text-section { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--steel); border-radius: var(--radius); background: #161D24; box-shadow: var(--shadow-2); }
.text-section h3 { color: #EAF2F9; }

/* Features & Content Layouts (Flex-only mandatory patterns) */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--steel); border-radius: var(--radius); background: #161D24; box-shadow: var(--shadow-2); }
.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; border-radius: var(--radius); border: 1px solid #D9E2EA; background: var(--accent); color: #0A1A2A; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.testimonial-card p { color: #0A1A2A; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Lists inside light cards */
.testimonial-card strong { color: #0A2A43; }

/* Numbers & Stats style */
.content-wrapper ul li strong { color: #EAF2F9; }

/* Footer */
footer { background: var(--gunmetal); border-top: 1px solid var(--steel); }
footer .container { padding-top: 32px; padding-bottom: 32px; }
footer .content-wrapper { display: flex; flex-direction: column; gap: 24px; }
.footer-brand, .footer-links, .footer-legal, .footer-contact { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--steel); border-radius: var(--radius); background: #161D24; }
.footer-brand img { height: 28px; }
footer h3 { font-size: 16px; color: #E3EBF2; text-transform: uppercase; letter-spacing: .08em; margin: 0; }
footer nav { display: flex; flex-direction: column; gap: 8px; }
footer nav a { color: #C5D1DC; font-size: 14px; }
footer nav a:hover { color: #FFFFFF; }
.social-links { display: flex; gap: 10px; flex-wrap: wrap; }

/* Header/Footer link focus */
header a:focus-visible, footer a:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 4px; }

/* Tables (if any appear) */
table { width: 100%; border-collapse: collapse; }
th, td { border: 1px solid var(--steel); padding: 10px 12px; text-align: left; }
th { background: #1A222A; color: #E8F0F7; }

/* Forms (not present but styled for consistency) */
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%; padding: 12px 14px; border-radius: 6px; border: 1px solid var(--steel); background: #121A22; color: #E8EEF4; outline: none; transition: box-shadow .2s ease, border-color .2s ease; }
input:focus, textarea:focus, select:focus { border-color: var(--secondary); box-shadow: var(--ring); }
label { color: #C8D2DC; font-size: 14px; margin-bottom: 6px; display: inline-block; }

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

/* Cookie Consent Banner */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 3000; background: #0F151B; color: #E8EEF4; border-top: 1px solid var(--steel); box-shadow: 0 -10px 30px rgba(0,0,0,0.4); display: none; }
.cookie-banner.show { display: flex; }
.cookie-banner .container { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; }
.cookie-text { display: flex; flex: 1; align-items: center; gap: 10px; }
.cookie-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cookie-actions .button { padding: 10px 14px; font-size: 14px; }
.cookie-actions .button.accept { background: var(--secondary); border-color: #10473B; color: #EAF6F2; }
.cookie-actions .button.reject { background: #251B1B; border-color: #3A2A2A; color: #F7EDEE; }
.cookie-actions .button.settings { background: transparent; border-color: var(--steel); color: #D3DEE8; }

/* Cookie Preferences Modal */
.cookie-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: none; align-items: center; justify-content: center; z-index: 3500; }
.cookie-modal.open { display: flex; }
.cookie-modal .modal-content { width: 92vw; max-width: 720px; background: #121820; color: #E8EEF4; border: 1px solid var(--steel); border-radius: var(--radius); box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 16px; padding: 20px; }
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-modal .modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.cookie-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--steel); border-radius: 6px; background: #161D24; }

/* Utility Badges & Seps */
.hr-line { width: 100%; height: 1px; background: var(--steel); display: flex; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; background: #1A222A; border: 1px solid var(--steel); border-radius: 999px; color: #CFDAE3; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }

/* Images in text lists */
.text-section li img, .content-wrapper li img { display: inline-block; width: 18px; height: 18px; margin-right: 8px; vertical-align: text-bottom; filter: grayscale(100%) brightness(1.2); }

/* Spacing rules to avoid overlaps */
section + section { margin-top: 12px; }
.content-wrapper > * + * { margin-top: 0; }
.text-section + .text-section { margin-top: 12px; }
.testimonial-card + .testimonial-card { margin-top: 12px; }

/* Responsive Rules */
@media (min-width: 768px) {
  /* Header */
  .main-nav { display: flex; }
  .header-ctas { display: flex; }
  .mobile-menu-toggle { display: none; }

  /* Content */
  .content-wrapper { gap: 24px; }
  .hero .container { padding-top: 40px; padding-bottom: 40px; }

  /* Footer grid-like via flex */
  footer .content-wrapper { flex-direction: row; flex-wrap: wrap; }
  .footer-brand, .footer-links, .footer-legal, .footer-contact {
    flex: 1 1 240px; min-width: 240px; height: auto;
  }
}

@media (min-width: 992px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
  .hero-ctas { gap: 14px; }
  .container { gap: 24px; }
}

/* Page-specific minor touches */
#angebote .text-section a { color: #0A2A43; background: var(--accent); border: 1px solid #C9D5DF; padding: 6px 10px; border-radius: 6px; display: inline-flex; }
#angebote .text-section a:hover { background: #E6EEF4; }

/* Card hover micro-interaction */
.card:hover, .text-section:hover { transform: translateY(-2px); transition: transform .15s ease; }

/* Focus styles for accessibility */
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* Print basics */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Ensure no overlap and proper z-indexing for overlays */
.mobile-menu, .cookie-modal { will-change: transform, opacity; }

/* Ensure testimonials contrast (light background enforced) */
section .testimonial-card { background: var(--accent); color: #0A1A2A; }
section .testimonial-card p { color: #0A1A2A; }

/* Decorative underlines for headings (industrial accent) */
h2::after {
  content: ""; display: flex; width: 64px; height: 3px; background: var(--secondary); margin-top: 6px; border-radius: 2px;
}

/* Nav active state helper (optional class) */
.main-nav a.active, .mobile-nav a.active { color: #fff; border-bottom-color: var(--secondary); }

/* Content helpers for two-column feel using flex only */
.two-col { display: flex; flex-wrap: wrap; gap: 20px; }
.two-col > * { flex: 1 1 300px; min-width: 260px; }

/* Shadows and borders for industrial depth */
.panel { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: #161D24; border: 1px solid var(--steel); border-radius: var(--radius); box-shadow: var(--shadow-2); }

/* End of stylesheet */