/* ===================================================
   RESET & BASE
=================================================== */
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;
}main {
  word-break: break-word;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #f5f5f7;
  background-color: #222831;
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}
ul, ol {
  margin: 0 0 1.25em 1.5em;
}
li {
  margin-bottom: 0.5em;
}
a {
  color: #F2C94C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #fff89a;
  text-decoration: underline;
}
main, section {
  width: 100%;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
}
th, td {
  padding: 0.8em 1em;
  border-bottom: 1px solid #393e46;
  font-size: 15px;
}
th {
  text-align: left;
  background: #242d36;
  color: #f2c94c;
  font-weight: 700;
}

/* ===================================================
   BRAND FONTS & TYPOGRAPHY
=================================================== */
@import url('https://fonts.googleapis.com/css?family=Merriweather:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  color: #D9E1E8;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.3rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1rem;
}
.text-section h1, .text-section h2, .text-section h3 {
  color: #f2c94c;
}
p, ul, ol, dl {
  margin-bottom: 1.2em;
}
dt {
  font-weight: bold;
  margin-top: 1em;
}
dd {
  margin-bottom: 0.75em;
  margin-left: 1.5em;
}
strong, b {
  font-weight: 700;
  color: #F2C94C;
}

/* ===================================================
   COLOR VARIABLES (WITH FALLBACK)
=================================================== */
:root {
  --primary: #183153;
  --secondary: #D9E1E8;
  --accent: #F2C94C;
  --bg-main: #222831;
  --bg-dark: #181e24;
  --bg-card: #242d36;
  --text-main: #f5f5f7;
  --text-dark: #181e24;
  --text-light: #f5f5f7;
  --text-alt: #ced3d8;
  --border: #353a42;
  --border-light: #454B53;
  --shadow: 0 2px 12px 0 rgba(36,35,40,0.13);
}

/* ===================================================
   COMMON LAYOUT CLASSES FROM REQUIREMENTS
=================================================== */
.container {
  width: 100%;
  max-width: 1190px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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: #f5f5f7;
  color: #222831;
  border-radius: 9px;
  box-shadow: 0 6px 32px rgba(24,44,73,0.09);
  margin-bottom: 20px;
  transition: box-shadow 0.18s;
  border-left: 5px solid #F2C94C;
}
.testimonial-card:hover {
  box-shadow: 0 12px 36px rgba(24,49,83,0.15);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #242d36;
  padding: 26px 18px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

/* Feature grid style in HTML is .feature-grid > .feature */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 24px;
}
.feature {
  background: #242d36;
  border-radius: 9px;
  box-shadow: 0 2px 12px 0 rgba(36,35,40,0.12);
  padding: 24px 18px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 340px;
  margin-bottom: 10px;
  border-left: 4px solid #F2C94C;
  transition: transform 0.18s, box-shadow 0.18s;
}
.feature:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 8px 26px 2px rgba(24,49,83,0.13);
}
.feature img {
  margin-bottom: 9px;
  width: 36px;
  height: 36px;
  filter: grayscale(60%) contrast(130%);
}

/* ===================================================
   HEADER & NAVIGATION (INDUSTRIAL MODERN LOOK)
=================================================== */
header {
  background: #1b232b;
  border-bottom: 1.5px solid #283046;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: 0 2px 12px 0 rgba(36,35,40,0.05);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  color: #D9E1E8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: 'Merriweather', serif;
  font-size: 16px;
  font-weight: 700;
  padding: 10px 0 10px 0;
  position: relative;
  transition: color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #F2C94C;
}
.main-nav a.active {
  color: #F2C94C;
  border-bottom: 2px solid #F2C94C;
}
header img[alt*="UrkundenMeister"] {
  height: 50px;
  width: auto;
  margin-right: 24px;
}

.cta-btn.primary {
  background: linear-gradient(90deg, #F2C94C 65%, #D9E1E8 100%);
  color: #222831;
  padding: 13px 28px;
  font-size: 18px;
  border: 0;
  border-radius: 32px;
  font-family: 'Merriweather', serif;
  font-weight: bold;
  letter-spacing: 0.01em;
  margin-left: 24px;
  box-shadow: 0 2px 12px 0 rgba(36,35,40,0.14);
  cursor: pointer;
  transition: box-shadow 0.18s, background 0.16s, color 0.18s;
}
.cta-btn.primary:hover, .cta-btn.primary:focus {
  background: linear-gradient(90deg, #ffe57d 80%, #F2C94C 100%);
  color: #161b22;
  box-shadow: 0 6px 34px 0 rgba(238, 186, 50, 0.15);
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* MOBILE BURGER MENU ================================================= */
.mobile-menu-toggle {
  background: none;
  border: none;
  color: #F2C94C;
  font-size: 2.2rem;
  margin-left: 16px;
  cursor: pointer;
  display: none;
  transition: color 0.18s;
}
.mobile-menu-toggle:focus {
  outline: 2px dashed #F2C94C;
}
.mobile-menu {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(24, 49, 83, 0.98);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(.77,0,.18,1.04), box-shadow 0.15s;
  box-shadow: 0 0 12px 2px rgba(20,20,22,0.18);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  color: #F2C94C;
  border: 0;
  font-size: 2.3rem;
  margin: 21px 0 18px 23px;
  cursor: pointer;
  align-self: flex-start;
  transition: color 0.16s;
  z-index: 10001;
}
.mobile-menu-close:focus {
  outline: 2px dashed #F2C94C;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 28px;
  margin-top: 18px;
  padding-left: 38px;
}
.mobile-nav a {
  color: #F2C94C;
  font-size: 1.4rem;
  font-family: 'Merriweather', serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 11px 7px;
  border-radius: 20px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F2C94C;
  color: #222831;
}

/* Only show mobile menu toggle on small screens */
@media (max-width:1080px) {
  .main-nav, .cta-btn.primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block !important;
  }
}
@media (min-width:1081px) {
  .mobile-menu {
    display: none !important;
  }
}

/* Hide mobile menu when not open */
.mobile-menu {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* ===================================================
   HERO SECTION
=================================================== */
.hero-section {
  background: #183153 url('../assets/industrial-bg.jpg') center/cover no-repeat;
  min-height: 340px;
  display: flex;
  align-items: center;
  padding: 50px 0 45px 0;
  box-shadow: 0 5px 38px 5px rgba(23,49,83,0.12);
  position: relative;
}

.hero-section .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  min-width: 0;
}
.hero-section .text-section {
  color: #F2C94C;
  max-width: 630px;
  padding: 18px 16px 18px 0;
  background: rgba(24,49,83,0.85);
  border-radius: 16px;
  box-shadow: 0 6px 44px 0 rgba(24,49,83,0.09);
}
.hero-section h1 {
  color: #F2C94C;
  font-size: 2.35rem;
  line-height: 1.18;
  margin-bottom: 6px;
}
.hero-section h2 {
  color: #D9E1E8;
  font-size: 1.3rem;
  line-height: 1.25;
  margin-bottom: 16px;
  font-weight: 500;
}
.hero-section p {
  color: #D9E1E8;
  font-size: 1rem;
  margin-bottom: 18px;
  text-shadow: 0 1px 1px #222a35;
}

/* ===================================================
   BLOCKS & CARDS
=================================================== */
.card {
  background: #242d36;
  border-radius: 9px;
  box-shadow: 0 2px 14px 0 rgba(36,35,40,0.10);
  padding: 32px 24px;
  transition: box-shadow 0.13s, transform 0.13s;
  margin-bottom: 20px;
}
.card:hover {
  box-shadow: 0 8px 32px 2px rgba(24,49,83,0.18);
  transform: translateY(-2px) scale(1.01);
}
.rating-overview {
  color: #F2C94C;
  font-weight: bold;
  margin-bottom: 20px;
  font-size: 1.18rem;
  letter-spacing: 0.01em;
}

/* ===================================================
   FORMATTING: LISTS & DETAILS
=================================================== */
ul img, li img {
  vertical-align: middle;
  margin-right: 7px;
  width: 22px;
  height: 22px;
  filter: grayscale(80%) sepia(10%) contrast(130%);
}
ul {
  list-style-type: disc;
  color: #F2C94C;
}
ol {
  list-style-type: decimal;
  color: #F2C94C;
}
dt {
  color: #F2C94C;
}

dl {
  margin-bottom: 1.8em;
}

table em {
  color: #F2C94C;
  font-style: normal;
}

/* ===================================================
   FOOTER
=================================================== */
footer {
  background: #1b232b;
  border-top: 1.5px solid #283046;
  padding: 37px 0 0 0;
  color: #D9E1E8;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid #313740;
}
.footer-nav img[alt*="UrkundenMeister"] {
  height: 40px;
  width: auto;
}
.footer-nav nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-nav nav a {
  color: #D9E1E8;
  font-family: 'Merriweather', serif;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 7px 0;
  transition: color 0.19s;
}
.footer-nav nav a:hover, .footer-nav nav a:focus {
  color: #F2C94C;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0 14px 0;
  font-size: 15px;
  color: #8f98a7;
}
.footer-meta p {
  margin: 0 20px 0 0;
}
.social-links {
  display: flex;
  gap: 16px;
}
.social-links a img {
  width: 25px;
  height: 25px;
  filter: grayscale(55%) contrast(120%) brightness(1.08);
  transition: filter 0.22s, transform 0.16s;
}
.social-links a:hover img, .social-links a:focus img {
  filter: brightness(1.19) grayscale(15%) drop-shadow(0 0 3px #F2C94C);
  transform: scale(1.11);
}

footer .cta-btn.primary {
  margin-left: 0;
  margin-top: 0;
}

/* ===================================================
   TESTIMONIALS/REVIEWS CARDS
=================================================== */
.testimonials-section {
  background: #222831;
  padding: 40px 20px 50px 20px;
  border-top: 1px solid #313740;
}
.testimonial-card p {
  color: #222831;
  font-style: italic;
}
.testimonial-card span {
  color: #40464c;
  font-size: 1em;
  font-weight: bold;
  letter-spacing: 0.01em;
  margin-left: 10px;
}

/* ===================================================
   RESPONSIVE DESIGN
=================================================== */
@media (max-width: 1024px) {
  .container {
    padding: 0 16px;
  }
  .feature {
    min-width: 180px;
    max-width: 100%;
  }
  .hero-section .container {
    padding: 0 10px;
  }
}
@media (max-width: 900px) {
  .hero-section .container, .footer-nav, .footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  .feature-grid {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .footer-meta, .footer-nav {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .footer-nav nav {
    margin-left: 0;
  }
  .section {
    margin-bottom: 30px;
    padding: 28px 8px 25px 8px;
  }
  .text-image-section {
    flex-direction: column !important;
    align-items: stretch;
    gap: 20px;
  }
  .content-grid {
    flex-direction: column !important;
    gap: 16px;
    justify-content: flex-start;
  }
  .feature-grid {
    flex-direction: column !important;
    gap: 15px;
  }
  .hero-section {
    min-height: auto;
    padding: 28px 0 15px 0;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    padding: 15px;
  }
  .card {
    padding: 18px 9px;
  }
  th, td {
    font-size: 14px;
    padding: 0.5em 0.7em;
  }
  .cta-btn.primary {
    padding: 12px 16px;
    font-size: 16px;
  }
}
@media (max-width: 580px) {
  h1 {
    font-size: 1.4rem;
  }
  h2 {
    font-size: 1.08rem;
  }

  .footer-meta p {
    font-size: 13px;
  }
  .footer-nav nav a {
    font-size: 12px;
  }
  .social-links a img {
    width: 17px;
    height: 17px;
  }
  .container {
    padding: 0 3vw;
  }
}
/* Responsive table scroll on small screens */
@media (max-width: 500px) {
  table, thead, tbody, th, td, tr {
    display: block;
    width: 100%;
  }
  th {
    background: #242d36;
    position: sticky;
    top: 0;
    z-index: 2;
  }
  th, td {
    padding-left: 0.6em;
  }
  td {
    border-bottom: 1px solid #2a313a;
  }
  tr {
    border-bottom: 2px solid #242d36;
  }
}

/* ===================================================
   MICRO-ANIMATIONS & INTERACTIONS
=================================================== */
a, .cta-btn, .feature, .card, .testimonial-card, .mobile-menu-toggle, .mobile-nav a, .cookie-btn {
  transition: color 0.17s, background 0.17s, box-shadow 0.17s, transform 0.18s;
}

/* ===================================================
   COOKIE CONSENT BANNER & MODAL
=================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #242d36;
  color: #f5f5f7;
  z-index: 9999;
  padding: 22px 18px 23px 18px;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 18px 0 rgba(24,49,83,0.12);
  border-top: 2.2px solid #183153;
  font-size: 1rem;
  animation: slideUpCookieBanner 0.5s cubic-bezier(.45,1.33,.59,.93) both;
}
@keyframes slideUpCookieBanner {
  0% { transform: translateY(100%); opacity: 0; }
  80% { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}

.cookie-btn {
  background: #F2C94C;
  color: #181e24;
  border: none;
  border-radius: 24px;
  font-family: 'Merriweather', serif;
  font-weight: bold;
  font-size: 1rem;
  padding: 11px 22px;
  margin-right: 10px;
  margin-top: 5px;
  cursor: pointer;
  box-shadow: 0 2px 10px 0 rgba(24,49,83,0.10);
  transition: background 0.17s, color 0.15s;
}
.cookie-btn.reject {
  background: #222831;
  color: #F2C94C;
  border: 1px solid #374151;
}
.cookie-btn.settings {
  background: #D9E1E8;
  color: #181e24;
  border: 1px solid #374151;
}
.cookie-btn:focus {
  outline: 2px solid #F2C94C;
}
.cookie-btn:hover {
  background: #ffe179;
  color: #18213b;
}
.cookie-btn.reject:hover {
  background: #2b2e32;
  color: #ffd000;
}
.cookie-btn.settings:hover {
  background: #fcf7e5;
  color: #18213b;
}

@media (max-width: 580px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    padding: 16px 7px 16px 10px;
  }
  .cookie-btn {
    padding: 10px 12px;
    font-size: 0.96rem;
  }
}

/* Cookie modal */
.cookie-modal {
  position: fixed;
  z-index: 10001;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(34, 40, 49, 0.87);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInCookieModal 0.5s cubic-bezier(.45,1.33,.59,.93) both;
}
@keyframes fadeInCookieModal {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal-content {
  background: #242d36;
  color: #f5f5f7;
  border-radius: 15px;
  box-shadow: 0 14px 46px 0 rgba(24,49,83,0.16);
  padding: 32px 28px;
  min-width: 320px;
  max-width: 94vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: slideInCookieModal 0.46s cubic-bezier(0.62,.1,.71,1.04) both;
}
@keyframes slideInCookieModal {
  0% { transform: scale(0.92) translateY(35px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-content h3 {
  color: #F2C94C;
  font-size: 1.2rem;
  margin-bottom: 14px;
}
.cookie-categories {
  width: 100%;
  margin-bottom: 17px;
}
.cookie-category-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  padding: 8px 0;
}
.cookie-category-row label {
  color: #D9E1E8;
  font-weight: 500;
  font-size: 1rem;
}
.cookie-category-row input[type=checkbox][disabled] {
  accent-color: #adb2b6;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 9px;
}
.cookie-modal-close {
  background: transparent;
  color: #F2C94C;
  border: 0;
  font-size: 2.0rem;
  align-self: flex-end;
  cursor: pointer;
  margin-left: auto;
  margin-bottom: 6px;
  transition: color 0.18s;
}
.cookie-modal-close:focus {
  outline: 2px solid #F2C94C;
}
.cookie-modal-close:hover {
  color: #ffe179;
}

@media (max-width: 540px) {
  .cookie-modal-content {
    padding: 16px 6px;
    min-width: 85vw;
    font-size: 13px;
  }
  .cookie-category-row label {
    font-size: 0.96rem;
  }
}

/* ===================================================
   UTILITIES / MISC
=================================================== */
.text-center {
  text-align: center;
}
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* Disabled states */
[aria-disabled="true"], [disabled] {
  opacity: 0.65;
  pointer-events: none !important;
}

/* Font and icon smoothing for more industrial look */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ===================================================
   FOCUS STATES & ACCESSIBILITY
=================================================== */
a:focus, button:focus, .cta-btn:focus, .mobile-nav a:focus {
  outline: 2px dashed #F2C94C;
  outline-offset: 2px;
  background: #283046;
}

/* ========== END OF CSS ========== */