/* =====================================
   CSS RESET & BASE NORMALIZATION
   ===================================== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #161719;
  color: #E2E2E2;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul, ol { list-style: none; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
}

/* =====================================
   CUSTOM PROPERTIES (FALLBACKS)
   ===================================== */
:root {
  --color-bg: #161719;
  --color-primary: #2D5C3A;
  --color-secondary: #B5D1C3;
  --color-accent: #F0E5CF;
  --color-text-dark: #232323;
  --color-text-light: #E2E2E2;
  --color-card-bg: #222327;
  --color-metallic: #a3a3a3;
  --shadow-elevate: 0px 2px 12px rgba(0, 0, 0, 0.15);
  --shadow-card: 0 4px 24px rgba(54,54,54,0.10);
  --radius: 14px;
  --ff-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --ff-body: 'Open Sans', Arial, Helvetica, sans-serif;
  --header-h: 64px;
}

/* =====================================
   TYPOGRAPHY & HEADINGS
   ===================================== */
h1,
h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  color: #F0E5CF;
  letter-spacing: 0.5px;
  font-weight: 700;
}
h1 {
  font-size: 2.25rem; /* 36px */
  margin-bottom: 24px;
  line-height: 1.1;
  color: #FFF;
}
h2 {
  font-size: 1.75rem; /* 28px */
  margin-bottom: 18px;
  color: #F0E5CF;
  letter-spacing: 0.3px;
}
h3 {
  font-size: 1.25rem; /* 20px */
  margin-bottom: 10px;
  color: var(--color-secondary);
  letter-spacing: 0.1px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}
p, ul, ol, li, address {
  font-family: var(--ff-body);
  font-size: 1rem;
  font-weight: 400;
  color: #CFCBC7;
  margin-bottom: 12px;
}
strong { color: var(--color-secondary); font-weight: 700; }

.text-section {
  margin-bottom: 22px;
}
/* List spacing */
ul, ol {
  margin-left: 1.2em;
  margin-bottom: 22px;
}
ul li, ol li {
  margin-bottom: 10px;
  line-height: 1.55;
  position: relative;
}
/* =====================================
   LAYOUT CONTAINERS
   ===================================== */
.container {
  width: 92%;
  max-width: 1196px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  padding: 24px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.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: #F0E5CF;
  color: #232323;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  margin-bottom: 22px;
  min-width: 0;
  flex: 1 1 250px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.testimonial-card:hover {
  transform: translateY(-4px) scale(1.020);
  box-shadow: 0 8px 32px rgba(45,92,58,0.10), 0 1px 3px rgba(50,50,50,0.08);
}
.testimonial-card p {
  color: #232323;
  font-size: 1rem;
  margin-bottom: 0;
}
.testimonial-card footer {
  color: var(--color-primary);
  font-size: 0.97em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =====================================
   NAVIGATION & HEADER
   ===================================== */
header {
  width: 100%;
  background: #18191a;
  box-shadow: 0 2px 12px rgba(13,13,13,.07);
  z-index: 30;
  position: sticky; /* fallback for Chrome/Safari */
  top: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 18px;
}
.logo img {
  height: 40px;
  display: block;
  filter: grayscale(0.2) drop-shadow(0 2px 6px #0f1a12c0);
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 0;
  color: #F0E5CF;
  letter-spacing: 0.03em;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
}
.cta.primary {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  padding: 13px 28px;
  border-radius: 30px;
  box-shadow: 0 2px 20px rgba(45,92,58,0.08);
  border: 2px solid transparent;
  cursor: pointer;
  margin-left: 16px;
  margin-right: 4px;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, border 0.18s;
  text-align: center;
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--color-secondary);
  color: #18191a;
  border: 2px solid var(--color-primary);
  box-shadow: 0 4px 32px rgba(45,92,58,0.10), 0 1px 3px rgba(45,92,58,0.13);
}

/* MOBILE NAV TOGGLE */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  margin-left: 12px;
  cursor: pointer;
  z-index: 50;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background 0.15s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #232323BB;
}

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #1a1c1ff8;
  z-index: 1000;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  padding: 0;
  transition: transform 0.36s cubic-bezier(0.68,0.01,0.29,1.04), opacity 0.27s;
  transform: translateX(-100vw);
  opacity: 0;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  margin: 28px 20px 12px auto;
  background: #1a1c1fa9;
  color: #fff;
  border: none;
  font-size: 2.2rem;
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #2D5C3AD0;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-left: 32px;
  padding-right: 32px;
  width: 100vw;
}
.mobile-nav a {
  color: var(--color-accent);
  font-family: var(--ff-display);
  font-size: 1.22rem;
  font-weight: 700;
  padding: 10px 0;
  letter-spacing: 0.05em;
  transition: color 0.12s, padding-left 0.15s;
  border-bottom: 1px solid transparent;
}
.mobile-nav a:active,
.mobile-nav a:focus,
.mobile-nav a:hover {
  color: var(--color-secondary);
  padding-left: 10px;
  border-bottom: 1px solid var(--color-secondary);
}

/* HIDE main-nav and show burger on mobile */
@media (max-width: 900px) {
  .main-nav,
  .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (min-width: 900px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =====================================
   HERO & PAGE SECTIONS
   ===================================== */
.hero {
  background: linear-gradient(105deg, #262828 85%, #32322c 100%), url('../assets/hero-bg.svg') no-repeat right bottom;
  background-size: cover;
  padding: 60px 0 45px 0;
  margin-bottom: 0;
}
.hero .content-wrapper {
  flex-direction: column;
  align-items: flex-start;
  max-width: 760px;
  gap: 18px;
}
.hero h1 {
  font-size: 2.4rem;
  color: #FFF;
  margin-bottom: 18px;
  text-shadow: 0 6px 24px rgba(20,24,20,0.12);
}
.hero p {
  font-size: 1.18rem;
  color: #CFCBC7;
  margin-bottom: 28px;
}
.hero .cta.primary {
  margin-top: 6px;
}

/* Feature Grid (used in index & firmen-seminare) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 6px;
  margin-bottom: 18px;
}
.feature-grid > div {
  background: #212125;
  padding: 28px 22px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: transform 0.21s, box-shadow 0.18s;
  border: 1.5px solid #2e2f316a;
  min-width: 180px;
}
.feature-grid > div:hover {
  transform: translateY(-3px) scale(1.014);
  box-shadow: 0 8px 32px #2d5c3a16, 0 1px 3px #23232318;
  border: 1.5px solid #2d5c3a55;
}
.feature-grid h3 {
  color: var(--color-secondary);
}
.feature-grid p {
  margin-bottom: 0;
}
.feature-grid img {
  height: 46px;
  width: 46px;
  object-fit: contain;
  filter: grayscale(40%) drop-shadow(0 2px 7px #222B225a);
}

/* =====================================
   CARDS / LISTS / OVERVIEW SECTIONS
   ===================================== */
ul li span {
  color: var(--color-primary);
  font-size: 0.97em;
  font-weight: 600;
  margin-left: 9px;
  letter-spacing: 0.04em;
}

.card a.cta, a.cta {
  margin-top: 16px;
  align-self: flex-start;
}

/* =====================================
   FOOTER
   ===================================== */
footer {
  background: #18191a;
  color: #B5D1C3;
  padding: 36px 0 16px 0;
  margin-top: 44px;
  font-size: 0.97em;
  border-top: 2px solid #2d5c3a17;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: var(--color-secondary);
  transition: color 0.16s;
  font-weight: 500;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-accent);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.footer-brand img {
  height: 32px;
  filter: grayscale(70%) brightness(1.15) contrast(0.91) drop-shadow(0 6px 18px #33333345);
}
.footer-brand p {
  color: #F0E5CF;
  font-size: 0.94em;
  max-width: 320px;
  text-align: right;
}

/* =====================================
   BUTTONS & INTERACTIONS
   ===================================== */
button, .cta {
  cursor: pointer;
  font-family: var(--ff-display);
  border: none;
  outline: none;
}

.cta {
  display: inline-block;
  padding: 11px 24px;
  background: var(--color-secondary);
  color: #18191a;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .05em;
  border: 2px solid var(--color-primary);
  box-shadow: 0 2px 16px #1c57468a;
  transition: background 0.15s, color 0.15s, border 0.17s, box-shadow 0.13s, transform 0.15s;
}
.cta:hover, .cta:focus {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-1px) scale(1.027);
  box-shadow: 0 7px 26px #1c574669;
}

/* =====================================
   INDUSTRIAL MODERN – METALLIC ACCENTS
   ===================================== */
/* Metallic border accents for cards, hero, etc. */
.card, .feature-grid > div, .testimonial-card {
  border-bottom: 3px solid #a3a3a3;
}

/* Artful metallic lines for headings (industrial feel) */
h2 {
  position: relative;
}
h2::after {
  content: '';
  display: block;
  margin-top: 7px;
  height: 3px;
  width: 56px;
  background: linear-gradient(90deg, var(--color-metallic) 60%, transparent 99%);
  border-radius: 4px;
}

/* =====================================
   SPACING & GAP RULES (MANDATORY)
   ===================================== */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  max-width: 380px;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =====================================
   RESPONSIVE DESIGN (Mobile-first)
   ===================================== */
@media (max-width: 1050px) {
  .feature-grid {
    gap: 18px;
  }
  .feature-grid > div {
    min-width: 130px;
    padding: 20px 14px 12px;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .footer-brand {
    align-items: flex-start;
    text-align: left;
  }
}
@media (max-width: 768px) {
  .container {
    width: 96%;
    padding: 0;
    max-width: 97vw;
  }
  .hero {
    padding: 34px 0 32px 0;
  }
  .feature-grid {
    flex-direction: column;
    gap: 19px;
  }
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .section, section {
    margin-bottom: 38px;
    padding: 24px 5vw;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 4px;
    padding: 18px 10px;
  }
  .main-nav {
    display: none !important;
  }
  .cta.primary {
    display: none !important;
  }
  .logo img {
    height: 32px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}
@media (max-width: 520px) {
  header .container {
    min-height: 54px;
  }
  h1 {
    font-size: 1.52rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  .hero .content-wrapper {
    padding-top: 9px;
  }
}

/* =====================================
   MICRO-INTERACTIONS & HOVER FX
   ===================================== */
a, button, .cta {
  transition: color 0.15s, border 0.15s, background 0.15s, box-shadow 0.13s, transform 0.12s;
}
a:hover, a:focus {
  color: var(--color-secondary);
}
.card, .feature-grid > div, .testimonial-card {
  transition: transform 0.17s, box-shadow 0.17s, border 0.16s, background 0.15s;
}
.card:hover, .feature-grid > div:hover {
  box-shadow: 0 8px 30px #22232617;
  transform: translateY(-2px) scale(1.012);
  background: #24252a;
  border-bottom-color: #eee8da;
}

/* =====================================
   COOKIE CONSENT BANNER & MODAL
   ===================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  z-index: 9999;
  background: #24252A;
  color: #F0E5CF;
  box-shadow: 0 -6px 20px #11121544;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 18px 22px 18px;
  gap: 24px;
  font-size: 1rem;
  border-top: 2.5px solid var(--color-metallic);
  transition: transform 0.34s, opacity 0.28s;
  transform: translateY(100%);
  opacity: 0;
}
.cookie-banner.show {
  transform: translateY(0%);
  opacity: 1;
}
.cookie-banner p {
  color: #F0E5CF;
  margin: 0 16px 0 0;
  max-width: 366px;
}
.cookie-banner .cookie-btn {
  background: var(--color-secondary);
  color: #232323;
  font-weight: 700;
  border-radius: 25px;
  margin-left: 13px;
  padding: 10px 20px;
  border: 2px solid var(--color-primary);
  transition: background 0.12s, color 0.13s, border 0.12s;
  font-family: var(--ff-display);
  font-size: 1rem;
  min-width: 112px;
}
.cookie-banner .cookie-btn:hover,
.cookie-banner .cookie-btn:focus {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-secondary);
}
.cookie-banner .cookie-btn.settings {
  background: #222327;
  color: #F0E5CF;
  border: 2px solid #a3a3a3;
}
.cookie-banner .cookie-btn.settings:hover {
  background: #44454A;
  color: var(--color-secondary);
}

/* Cookie preferences modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-60%) scale(0.98);
  z-index: 10001;
  background: #23252b;
  box-shadow: 0 14px 44px #10121385;
  border: 2.4px solid #A3A3A3BB;
  border-radius: 17px;
  min-width: 330px;
  max-width: 95vw;
  width: 390px;
  padding: 38px 28px 30px 28px;
  color: #F0E5CF;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.30s, transform 0.28s;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal h2 {
  color: var(--color-secondary);
  font-size: 1.21rem;
  margin: 0 0 8px 0;
}
.cookie-modal .category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-bottom: 9px;
}
.cookie-modal .category label {
  font-size: 1rem;
  color: #F0E5CF;
}
.cookie-modal input[type=checkbox] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-primary);
  margin-right: 7px;
}
.cookie-modal .essential {
  opacity: 0.55;
}
.cookie-modal .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 20px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  min-width: 108px;
  padding: 10px 16px;
}
[
class^="cookie-close"], [class*=" cookie-close"] {
  position: absolute;
  top: 19px;
  right: 19px;
  color: #a3a3a3;
  font-size: 1.5rem;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 50%;
  padding: 3px 9px;
  transition: background 0.13s, color 0.15s;
}
[class^="cookie-close"]:hover, [class*=" cookie-close"]:hover {
  background: #323232;
  color: #fff;
}
@media (max-width: 480px) {
  .cookie-banner {
    flex-direction: column;
    padding: 12px 6px 18px 6px;
    gap: 13px;
    font-size: 0.99em;
  }
  .cookie-modal {
    padding: 22px 7vw 18px 7vw;
    min-width: 0;
    width: 97vw;
  }
}

/* =====================================
   SCROLLBAR (INDUSTRIAL MODERN FEEL)
   ===================================== */
::-webkit-scrollbar {
  background: #202122;
  width: 13px;
  border-radius: 6.5px;
}
::-webkit-scrollbar-thumb {
  background: #444b49;
  border-radius: 6.5px;
  border: 2px solid #2d5c3a;
}
::-webkit-scrollbar-thumb:hover {
  background: #232323;
}

/* =====================================
   ACCESSIBILITY ENHANCEMENTS
   ===================================== */
a:focus, button:focus, .cta:focus {
  box-shadow: 0 0 0 3px var(--color-accent);
  outline: none;
}

/* =====================================
   INDUSTRIAL MODERN FONT
   ===================================== */
body, p, ul, ol, li, address {
  font-family: 'Open Sans', Arial, sans-serif;
}
h1, h2, h3, h4, h5, h6, nav, a, .cta, .mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  text-transform: none;
}

/* =====================================
   Z-INDEX LAYERING
   ===================================== */
header { z-index: 100; }
.mobile-menu { z-index: 1000; }
.cookie-banner { z-index: 9999; }
.cookie-modal { z-index: 10001; }

/* =====================================
   MISC OVERRIDES & FIXES
   ===================================== */
address {
  font-style: normal;
  color: #B5D1C3;
  margin-bottom: 13px;
}

/* Badge/price label on offer lists */
ul li span {
  background: #232527;
  color: var(--color-secondary);
  border-radius: 13px;
  padding: 3px 12px;
  margin-left: 8px;
  font-size: 0.93em;
  font-family: var(--ff-display);
  font-weight: 500;
  letter-spacing: .018em;
}

/* Tables (minimal) -- if they appear... */
table {
  width: 100%;
  border-collapse: collapse;
  background: #232327;
  margin-bottom: 32px;
  border-radius: var(--radius);
  overflow: hidden;
}
th, td {
  padding: 13px;
  border-bottom: 1.5px solid #2d5c3a24;
  color: #F0E5CF;
}
th { background: #222328; font-weight: 600; }

/* =====================================
   PRINT SAFE
   ===================================== */
@media print {
  nav, .mobile-menu, .cta, header, footer, .cookie-banner, .cookie-modal {
    display: none !important;
  }
  section, main, .container {
    background: #fff !important;
    color: #000;
    box-shadow: none;
  }
}
