/* -------------------- CSS RESET & NORMALIZE --------------------- */
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F6F8FB;
  color: #234E67;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  padding: 14px 16px;
  text-align: left;
}
th {
  background: #E7ECEF;
  font-weight: 700;
  color: #234E67;
}
tr:nth-child(even) td {
  background: #F6F8FB;
}

/* --------------------- VARIABLES (with fallback) ------------------- */
:root {
  --color-primary: #234E67;
  --color-secondary: #E7ECEF;
  --color-bg: #FFFFFF;
  --color-accent: #B06B27;
  --color-accent-hi: #D18937;
  --color-text: #234E67;
  --color-muted: #676F7A;
  --color-border: #D1D8DD;

  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}


/* ---------------------- TYPOGRAPHY ------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display), Arial, sans-serif;
  color: var(--color-primary);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.45rem; margin-bottom: 12px; }
h4 { font-size: 1.25rem; margin-bottom: 10px; }
h5 { font-size: 1.05rem; }
h6 { font-size: 1rem; }
@media (max-width: 640px) {
  h1 { font-size: 1.72rem; }
  h2 { font-size: 1.32rem; }
  h3 { font-size: 1.12rem; }
}

p, li, td, th, label, input, select, textarea {
  font-family: var(--font-body), Arial, sans-serif;
  font-size: 1rem;
  color: var(--color-text);
  font-weight: 500;
  line-height: 1.7;
}
p {
  margin-bottom: 16px;
}
strong, b {
  font-weight: 800;
  color: var(--color-primary);
}

blockquote {
  background: var(--color-secondary);
  border-left: 4px solid var(--color-accent-hi);
  padding: 18px 24px;
  border-radius: 7px;
  margin: 18px 0;
  font-style: italic;
  color: var(--color-primary);
}

/* Typography spacing for text-section */
.text-section > *:not(:last-child) {
  margin-bottom: 14px;
}

/* ----------------- LAYOUT CONTAINER CLASSES ------------------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
}
.text-section {
  max-width: 740px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 22px 0 rgba(24,48,80,0.07);
  padding: 32px 28px;
  position: relative;
  min-width: 270px;
  margin-bottom: 20px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.22s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 8px 36px 0 rgba(24,48,80,0.13);
  transform: translateY(-7px) scale(1.012);
  border-color: var(--color-accent-hi);
  z-index: 1;
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 26px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 17px rgba(57,81,101,0.09);
  border: 2.5px solid var(--color-accent);
  margin-bottom: 20px;
  font-size: 1.07rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.testimonial-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 6px 28px rgba(35,78,103,0.13);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Features/USP list with icons */
.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-bottom: 8px;
}
.features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.17rem;
  font-weight: 700;
  padding: 13px 22px;
  background: var(--color-secondary);
  border-radius: 10px 18px 18px 10px;
  color: var(--color-primary);
  box-shadow: 0 2px 8px 0 rgba(35,78,103,0.08);
}
.features-list img {
  width: 28px;
  height: 28px;
}

/* -------------------------------------------------- */
/* --------------------- HEADER --------------------- */
header {
  background: var(--color-primary);
  color: #fff;
  width: 100%;
  z-index: 2100;
  box-shadow: 0 2px 18px 0 rgba(35,78,103,0.08);
}
header .container {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
  gap: 18px;
}
.logo img {
  height: 48px;
  width: auto;
  vertical-align: middle;
}
.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
  margin-right: 14px;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1.09rem;
  font-weight: 700;
  letter-spacing: 0.012em;
  color: #fff;
  padding: 6px 8px;
  border-radius: 9px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-accent-hi);
  background: rgba(255,255,255,0.14);
}

.button.button-primary {
  background: var(--color-accent-hi);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.03rem;
  border-radius: 11px;
  padding: 13px 26px 12px 26px;
  margin-left: 12px;
  box-shadow: 0 2px 8px 0 rgba(176,107,39,0.09);
  border: none;
  transition: background 0.18s, box-shadow 0.22s, transform 0.12s;
  text-shadow: none;
}
.button.button-primary:hover, .button.button-primary:focus {
  background: var(--color-accent);
  box-shadow: 0 4px 22px 0 rgba(176,107,39,0.19);
  transform: scale(1.04);
  color: #fff;
}

.mobile-menu-toggle {
  background: none;
  color: #fff;
  font-size: 2rem;
  padding: 10px 16px;
  border-radius: 8px;
  margin-left: 10px;
  display: none;
  border: none;
  transition: background 0.19s, color 0.16s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: rgba(255,255,255,0.12);
  color: var(--color-accent-hi);
}

/* ----- MOBILE MENU DRAWER ----- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(35,78,103,0.98);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.4,.9,.42,1.03);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0%);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: #fff;
  background: none;
  margin: 30px 22px 0 0;
  padding: 4px 13px;
  border-radius: 11px;
  border: none;
  transition: background 0.18s, color 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(255,255,255,0.13);
  color: var(--color-accent-hi);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 28px;
  margin-top: 68px;
  margin-right: 36px;
  width: 88vw;
  max-width: 430px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.36rem;
  font-weight: 700;
  padding: 14px 8px 14px 18px;
  border-radius: 12px;
  background: none;
  transition: background 0.15s, color 0.19s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent-hi);
  background: rgba(255,255,255,0.10);
}

@media (max-width: 1020px) {
  .main-nav { gap: 18px; }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .button.button-primary { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (max-width: 600px) {
  header .container { height: 68px; }
  .logo img { height: 34px; }
}

/* ------------------------- HERO ------------------------------- */
.hero {
  min-height: 360px;
  background: linear-gradient(100deg,#E7ECEF 66%,#D18937 240%);
  display: flex;
  align-items: center;
  margin-bottom: 36px;
}
.hero .container {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: center;
}
.hero h1 {
  color: var(--color-primary);
  font-size: 2.6rem;
  margin-bottom: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.hero p {
  font-size: 1.24rem;
  color: var(--color-text);
  max-width: 570px;
  margin-bottom: 28px;
}
.hero .button-accent {
  margin-top: 10px;
}

/* --------------------- BUTTONS ------------------------------ */
.button {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 13px;
  padding: 15px 30px 13px 30px;
  font-size: 1.13rem;
  transition: background 0.18s, color 0.19s, box-shadow 0.18s, transform 0.13s;
  border: none;
  outline: none;
  text-align: center;
  box-shadow: 0 2px 6px 0 rgba(176,107,39,0.09);
  margin-bottom: 8px;
}
.button-primary {
  background: var(--color-accent-hi);
  color: #fff;
}
.button-primary:hover, .button-primary:focus {
  background: var(--color-accent);
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 4px 20px 0 rgba(176,107,39,0.16);
}
.button-accent {
  background: var(--color-primary);
  color: #fff;
  border: 2.5px solid var(--color-accent-hi);
}
.button-accent:hover, .button-accent:focus {
  background: var(--color-accent-hi);
  color: #fff;
  border-color: var(--color-primary);
  transform: scale(1.05);
}
.button-secondary {
  background: var(--color-secondary);
  color: var(--color-primary);
  border: 2.5px solid var(--color-accent-hi);
}
.button-secondary:hover, .button-secondary:focus {
  background: var(--color-accent-hi);
  color: #fff;
  border-color: var(--color-primary);
  transform: scale(1.05);
}

.button:active {
  transform: scale(0.98);
}

/* -------------------- LISTS --------------------------- */
ul, ol {
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 12px;
}
ul li:last-child, ol li:last-child {
  margin-bottom: 0;
}

/* ------------------- TABLES ------------------------ */
table {
  margin: 20px 0 28px 0;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 8px 0 rgba(57,81,101,0.08);
  overflow: hidden;
  font-size: 1rem;
}
th, td {
  font-family: var(--font-body);
}
td {
  border-bottom: 1px solid #E7ECEF;
}

/* ------------------- SECTIONS ---------------------- */
section {
  background: none;
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}
section:last-child {
  margin-bottom: 0;
}

/* ------------------- TESTIMONIAL CARDS ------------- */
.testimonial-card {
  background: #fff;
  color: var(--color-primary);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1.08rem;
  box-shadow: 0 2px 17px rgba(57,81,101,0.09);
}

/* -------------------- PROJECT SUMMARY (REFERENCES PAGE) ------------- */
.project-summary {
  background: #fff;
  border-radius: 13px;
  padding: 24px 24px 20px 26px;
  margin-bottom: 28px;
  border-left: 5px solid var(--color-accent-hi);
  box-shadow: 0 1px 12px rgba(35,78,103,0.10);
  display: flex;
  flex-direction: column;
  gap: 13px;
}

/* -------------------- FOOTER ------------------------ */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 46px 0 0 0;
  width: 100%;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.footer-navigation {
  display: flex;
  align-items: flex-start;
  gap: 36px;
  margin-bottom: 12px;
}
.footer-navigation img {
  height: 39px;
  margin-right: 12px;
}
.footer-navigation nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-navigation nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 9px;
  padding: 7px 11px;
  opacity: 0.88;
  transition: background 0.12s, color 0.13s;
}
.footer-navigation nav a:hover {
  background: var(--color-accent-hi);
  color: var(--color-primary);
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-family: var(--font-body);
  font-size: 1.08rem;
  margin-bottom: 14px;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-contact img {
  height: 20px;
  width: 20px;
}
.footer-legal {
  text-align: center;
  font-size: 0.98rem;
  color: #fff;
  opacity: 0.76;
  padding: 9px 0 12px 0;
  font-family: var(--font-body);
  letter-spacing: 0.03em;
}

/* --------------------- RESPONSIVE ----------------------- */
@media (max-width: 960px) {
  .container {
    max-width: 97vw;
    padding: 0 12px;
  }
  .footer-navigation {
    flex-direction: column;
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding: 0 8px;
  }
  .content-wrapper, .content-grid {
    gap: 14px;
  }

  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .features-list {
    gap: 13px;
  }
  .footer-contact {
    flex-direction: column;
    gap: 14px;
  }
}
@media (max-width: 640px) {
  section {
    padding: 22px 0 0 0;
  }
  .section {
    margin-bottom: 34px;
    padding: 24px 8px;
  }
  .card-container {
    gap: 13px;
  }
  .card {
    min-width: 148px;
    padding: 16px 10px;
  }
  .testimonial-card {
    padding: 15px 8px;
  }
  .footer-navigation img {
    height: 28px;
  }
}

@media (max-width: 560px) {
  .footer-navigation {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* --------------- MICRO-INTERACTIONS (Subtle Animations) ------ */
.button, .main-nav a, .mobile-nav a, .testimonial-card, .card, .project-summary {
  transition: 
    background 0.17s,
    color 0.16s,
    box-shadow 0.19s,
    border 0.15s,
    transform 0.14s;
}

/* ---------- VISUAL HIERARCHY (Spacing) -------------- */
.content-wrapper > *:not(:last-child),
.text-section > *:not(:last-child) {
  margin-bottom: 20px;
}
.content-wrapper > .testimonial-card {
  margin-bottom: 24px;
}

/* --------------- COOKIE CONSENT BANNER ---------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 99999;
  background: #fff;
  border-top: 5px solid var(--color-accent-hi);
  box-shadow: 0 -5px 34px 0 rgba(24,48,80,0.13);
  padding: 26px 18px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  transition: transform 0.36s ease, opacity 0.17s;
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 10px;
}
.cookie-banner .cookie-btn {
  padding: 12px 28px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  border: none;
  margin-bottom: 0;
  cursor: pointer;
  transition: background 0.18s, color 0.16s, box-shadow 0.18s;
}
.cookie-btn.accept {
  background: var(--color-accent-hi);
  color: #fff;
  box-shadow: 0 2px 7px 0 rgba(176,107,39,0.16);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--color-accent);
  color: #fff;
}
.cookie-btn.reject {
  background: #F6F8FB;
  color: var(--color-primary);
  border: 1.5px solid var(--color-accent-hi);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--color-accent-hi);
  color: #fff;
}
.cookie-btn.settings {
  background: var(--color-secondary);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-primary);
  color: #fff;
}

/* --------------- COOKIE MODAL ------------------- */
#cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  background: #fff;
  z-index: 100000;
  padding: 40px 28px;
  border-radius: 19px;
  box-shadow: 0 5px 44px rgba(0,0,0,0.21);
  width: 100%;
  max-width: 390px;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  transition: transform 0.27s cubic-bezier(.6,-0.28,.74,.05), opacity 0.23s;
  display: none;
}
#cookie-modal.open {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
#cookie-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
#cookie-modal .modal-title {
  font-size: 1.16rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
}
#cookie-modal .modal-close {
  font-size: 1.4rem;
  color: var(--color-muted);
  background: none;
  border: none;
  padding: 2px 7px;
  border-radius: 5px;
  transition: background 0.13s, color 0.14s;
}
#cookie-modal .modal-close:hover, #cookie-modal .modal-close:focus {
  background: #F6F8FB;
  color: var(--color-accent-hi);
}
#cookie-modal .modal-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 19px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1.01rem;
}
.cookie-category label {
  font-family: var(--font-body);
  font-size: 1.03rem;
}
.cookie-category input[type=checkbox]:disabled + label {
  color: #ccc;
}
#cookie-modal .modal-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 8px;
}

@media (max-width: 440px) {
  #cookie-modal {
    width: 97vw;
    padding: 19px 6vw;
    max-width: 99vw;
  }
}

/* ------------------ ACCESSIBILITY ---------------------- */
:focus {
  outline: 2px dashed var(--color-accent-hi);
  outline-offset: 2px;
}

/* ------------------- UTILITY CLASSES ------------------- */
.mt-2 { margin-top: 2px !important; }
.mt-10 { margin-top: 10px !important; }
.mb-10 { margin-bottom: 10px !important; }
.mb-20 { margin-bottom: 20px !important; }
.w-100 { width: 100% !important; }

/* -------------------- COLOR/TYPE VARIANTS ------------------ */
.text-accent { color: var(--color-accent); }
.bg-accent { background: var(--color-accent); color: #fff; }
.bg-primary { background: var(--color-primary); color: #fff; }
.bg-secondary { background: var(--color-secondary); color: var(--color-primary); }

/* End of modern_bold CSS for Brillantes Drehmoment Handwerk */
