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

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F7F8FA;
  color: #1A3556;
  font-family: 'Roboto', serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
img {
  border: 0;
  max-width: 100%;
  height: auto;
}
button, input, select, textarea {
  font: inherit;
  background: none;
  border: none;
  color: inherit;
  outline: none;
  box-sizing: border-box;
}
button {
  cursor: pointer;
}

/* BRAND AND TYPOGRAPHY */
:root {
  --primary: #1A3556;
  --secondary: #2CA47F;
  --accent: #F3F7FA;
  --dark: #162844;
  --text: #1A3556;
  --muted: #A7B0C2;
  --mid: #F7F8FA;
  --white: #fff;
  --shadow: 0 4px 20px 0 rgba(26,53,86,0.07);
  --border-radius: 14px;
}

@font-face {
  font-family: 'Montserrat';
  src: local('Montserrat'), local('Montserrat-Regular');
  font-display: swap;
  font-weight: 700;
}
@font-face {
  font-family: 'Roboto';
  src: local('Roboto'), local('Roboto-Regular');
  font-display: swap;
  font-weight: 400;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Roboto', Georgia, serif;
  color: var(--text);
  background: var(--mid);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Georgia, serif;
  color: var(--primary);
  letter-spacing: 0.01em;
  font-weight: 700;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.4rem;
  line-height: 1.18;
  margin-bottom: 22px;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}
h4, h5, h6 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}
p {
  font-size: 1rem;
  margin-bottom: 14px;
  color: var(--dark);
}

strong, b {
  font-weight: 700;
}

.text-section {
  font-size: 1rem;
  color: var(--muted);
  margin-top: 8px;
}

/* STRUCTURE */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

main {
  width: 100%;
  flex: 1 1 auto;
}

.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

/* HEADER & NAVIGATION */
header {
  background: var(--white);
  box-shadow: 0 2px 14px 0 rgba(26,53,86,0.05);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 28px;
}
header img {
  max-height: 44px;
  margin-right: 16px;
  flex-shrink: 0;
}
header nav {
  display: flex;
  gap: 20px;
}
header nav a {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1rem;
  color: var(--primary);
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.16s, color 0.16s;
}
header nav a:hover, header nav a:focus {
  background: var(--secondary);
  color: var(--white);
}
header .cta.primary {
  margin-left: 16px;
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  position: relative;
  font-size: 2.2rem;
  background: none;
  color: var(--primary);
  z-index: 101;
  margin-left: 8px;
  padding: 0 12px;
  line-height: 1;
}
.mobile-menu {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: var(--white);
  box-shadow: 0px 0px 0 100vw rgba(26,53,86, 0.14);
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.73,0,.27,1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 30px 24px 24px 28px;
  gap: 28px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2.3rem;
  align-self: flex-end;
  margin-bottom: 8px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.22s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.mobile-nav a {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 600;
  padding: 12px 2px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
  min-width: 180px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--white);
}

@media (max-width: 1024px) {
  header .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}
@media (max-width: 900px) {
  header .container nav , header .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

/* HERO & SECTION LAYOUTS */
.hero {
  background: var(--accent);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: 0 2px 20px 0 rgba(26,53,86,0.08);
  margin-bottom: 40px;
  padding: 60px 0 48px 0;
}
.hero .container {
  align-items: center;
}
.hero .content-wrapper {
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 0;
}
.hero h1 {
  font-size: 2.1rem;
}
.hero p {
  font-size: 1.13rem;
}

/* CARDS, FLEX PATTERNS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 28px 22px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.18s;
}
.card:hover, .card:focus {
  box-shadow: 0 8px 28px 0 rgba(26,53,86,0.13);
  transform: translateY(-2px) scale(1.012);
  z-index: 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;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: var(--accent);
  padding: 20px 24px 18px 24px;
  margin-bottom: 24px;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 12px 0 rgba(26,53,86,0.05);
  max-width: 400px;
  font-size: 1.05rem;
  transition: box-shadow 0.18s, border 0.2s;
  border-left: 3px solid var(--secondary);
}
.testimonial-card p {
  color: var(--primary);
  font-style: italic;
}
.testimonial-card span {
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 8px 28px 0 rgba(26,53,86,0.10);
  border-color: var(--primary);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
}
.feature-item img {
  margin-top: 4px;
  margin-bottom: 4px;
  width: 40px;
  height: 40px;
}

ul, ol {
  margin-bottom: 16px;
  padding-left: 10px;
}
.features ul, .about ul, .benefits ul, .solutions ul, .contact-persons ul, .jobs ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 0;
}
.features li, .about li, .benefits li, .solutions li, .contact-persons li, .jobs li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  color: var(--primary);
  background: none;
  line-height: 1.5;
  padding: 8px 0;
}
.features li img, .about li img, .benefits li img, .solutions li img, .contact-persons li img, .jobs li img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

/* BUTTONS */
.cta, .cta.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Georgia, serif;
  background: var(--primary);
  color: var(--white) !important;
  font-weight: 600;
  border-radius: 32px;
  font-size: 1.1rem;
  min-width: 170px;
  padding: 12px 32px;
  margin-top: 8px;
  border: none;
  box-shadow: 0 1px 8px 0 rgba(26,53,86,0.08);
  transition: background 0.18s, color 0.18s, box-shadow 0.19s, transform 0.16s;
}
.cta.primary {
  background: var(--secondary);
  color: var(--white) !important;
}
.cta:hover, .cta:focus {
  background: var(--secondary);
  color: var(--white) !important;
  box-shadow: 0 6px 24px 0 rgba(44,164,127,0.16);
  transform: translateY(-2px) scale(1.012);
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--primary);
  color: var(--white) !important;
}


/* FOOTER */
footer {
  background: var(--white);
  border-top: 1px solid #E8EAF2;
  padding: 22px 0 10px 0;
  margin-top: 60px;
  font-size: 0.98rem;
  color: var(--muted);
}
footer .container {
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
footer nav a {
  color: var(--primary);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.16s;
  border-radius: 6px;
  padding: 2px 8px;
}
footer nav a:hover, footer nav a:focus {
  background: var(--accent);
  color: var(--secondary);
}
footer .text-section {
  color: var(--muted);
  font-size: 0.97rem;
  margin-top: 6px;
}

/* LEGAL SECTIONS */
.legal {
  padding: 38px 12px 48px 12px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin: 48px 0 60px 0;
}
.legal h1 {
  margin-bottom: 30px;
}
.legal h2, .legal h3 {
  margin-top: 30px;
  color: var(--secondary);
}
.legal ul {
  margin-left: 14px;
  margin-bottom: 20px;
  padding-left: 0;
}
.legal li {
  color: var(--primary);
  font-size: 1.05rem;
  padding-left: 0;
  margin-bottom: 7px;
}

/* THANK YOU SECTION */
.thankyou {
  margin: 60px 0 80px 0;
  text-align: left;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 40px 20px;
}
.thankyou h1 {
  color: var(--secondary);
  margin-bottom: 22px;
}
.thankyou .cta.primary {
  margin-top: 24px;
}
.text-section {
  margin-top: 24px;
  color: var(--muted);
}

/* COOKIE CONSENT BANNER */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1100;
  background: #ffffffcc;
  box-shadow: 0 -2px 18px 0 rgba(26,53,86,0.11);
  border-top: 1px solid #e5e5e5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px 18px 28px;
  min-height: 64px;
  animation: slideUp 0.7s cubic-bezier(.73,0,.27,1);
}
@keyframes slideUp {
  from {transform: translateY(100%); opacity: 0;}
  to   {transform: translateY(0); opacity: 1;}
}
.cookie-consent-text {
  font-size: 1rem;
  color: var(--primary);
  max-width: 560px;
}
.cookie-consent-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-btn {
  display: inline-flex;
  align-items: center;
  min-width: 110px;
  padding: 8px 20px;
  font-size: 1rem;
  font-family: 'Montserrat', Georgia, serif;
  border-radius: 22px;
  background: var(--accent);
  color: var(--primary);
  border: 1px solid var(--primary);
  transition: background 0.16s, color 0.18s, border 0.16s;
  font-weight: 500;
  margin: 0;
}
.cookie-btn.accept {
  background: var(--secondary);
  color: var(--white);
  border: 1px solid var(--secondary);
}
.cookie-btn.reject {
  background: var(--primary);
  color: var(--white);
  border: 1px solid var(--primary);
}
.cookie-btn.settings {
  background: var(--accent);
  color: var(--primary);
  border: 1px solid var(--primary);
}
.cookie-btn:hover, .cookie-btn:focus {
  opacity: 0.90;
  color: var(--white);
  background: var(--secondary);
  border-color: var(--secondary);
}

/* COOKIE MODAL POPUP */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26,53,86,0.30);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .25s ease-in;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal-content {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 8px 40px 0 rgba(26,53,86,0.18);
  max-width: 420px;
  width: 92vw;
  padding: 36px 28px 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.cookie-modal-content h3 {
  color: var(--primary);
  font-size: 1.19rem;
  margin-bottom: 6px;
  font-family: 'Montserrat', Georgia, serif;
}
.cookie-modal-content ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 10px;
  padding-left: 0;
}
.cookie-modal-content li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--primary);
  font-size: 1rem;
}
.cookie-modal .close {
  position: absolute;
  top: 10px; right: 10px;
  font-size: 1.7rem;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 6px;
  border-radius: 6px;
  transition: background 0.18s;
}
.cookie-modal .close:hover,
.cookie-modal .close:focus {
  background: var(--accent);
}
.cookie-toggle {
  margin-left: auto;
}
.cookie-toggle input[type=checkbox] {
  display: none;
}
.cookie-switch {
  width: 36px;
  height: 20px;
  background: var(--accent);
  border-radius: 10px;
  position: relative;
  display: inline-block;
  transition: background 0.13s;
  margin-left: 9px;
}
.cookie-switch:before {
  content: '';
  position: absolute;
  left: 2px; top: 2px;
  width: 16px; height: 16px;
  background: var(--primary);
  border-radius: 50%;
  transition: left 0.17s;
}
.cookie-toggle input[type=checkbox]:checked + .cookie-switch {
  background: var(--secondary);
}
.cookie-toggle input[type=checkbox]:checked + .cookie-switch:before {
  left: 18px;
  background: var(--secondary);
}
.cookie-toggle[aria-disabled='true'] .cookie-switch {
  background: #eee;
}
.cookie-toggle[aria-disabled='true'] .cookie-switch:before {
  background: #ccc;
}

/* FORMS / INPUTS (if any) */
input[type="text"], input[type="email"], input[type="tel"], textarea {
  border: 1px solid #D3D7E2;
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--white);
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 10px;
  width: 100%;
  transition: border 0.14s;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, textarea:focus {
  border: 1.4px solid var(--secondary);
}

/* ICONS & IMAGES */
img[alt^="icon"], .features img, .about img, .benefits img, .solutions img, .contact-details img {
  width: 36px;
  height: 36px;
  margin-right: 12px;
}
img[alt^="ComprCompo Logistik Karte"], .contact-details img {
  width: 48px;
  height: 48px;
}
img[alt^="ComprCompo Logistik"] {
  min-height: 36px;
}

/* SPACING FOR FLEXBOX PATTERNS */
.section, .hero, .legal, .thankyou {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .content-grid, .text-image-section {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
  .container { padding: 0 8px; }
  .hero, .section, .legal, .thankyou {
    padding: 30px 6vw;
  }
  .section, .legal, .thankyou {
    margin-bottom: 48px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  .testimonial-card { max-width: 100%; }
}
@media (max-width: 768px) {
  .container { padding: 0 2vw; }
  .content-wrapper, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .hero, .section, .legal, .thankyou {
    padding: 18px 4vw;
    margin-bottom: 36px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  .card-container, .content-grid {
    gap: 14px;
  }
  footer .container { gap: 6px; }
  .cookie-consent-banner {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
    padding: 11px 10px 11px 12px;
    min-height: 0;
  }
  .cookie-consent-actions {
    gap: 8px;
    width: 100%;
  }
  .cookie-modal-content {
    padding: 20px 10px;
    max-width: 97vw;
  }
}

@media (max-width: 600px) {
  header .container {
    padding-left: 4px;
    padding-right: 4px;
    min-height: 56px;
  }
  .hero, .section, .legal, .thankyou {
    padding: 12px 3vw;
    margin-bottom: 28px;
  }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.08rem; }
}

/* ANIMATIONS */
.cta, .cta.primary, .cookie-btn {
  transition: background 0.21s, box-shadow 0.19s, color 0.19s, transform 0.18s;
}
.card, .testimonial-card {
  transition: box-shadow 0.18s, border 0.18s, transform 0.16s;
}

/* VISUAL HIERARCHY & SHADOWS */
.card, .testimonial-card, .section, .legal, .thankyou, .cookie-modal-content {
  box-shadow: var(--shadow);
}

/* COLOR CONTRAST ADJUSTMENT FOR TESTIMONIALS */
.testimonials, .testimonial-card {
  background: var(--accent);
  color: var(--primary);
}
.testimonial-card span {
  color: var(--muted);
}

/* Z-INDEX LAYERS FOR MENUS & MODALS */
.mobile-menu { z-index: 1000; }
.mobile-menu-toggle { z-index: 101; }
.cookie-consent-banner { z-index: 1100; }
.cookie-modal { z-index: 1200; }

/* SCROLLBAR STYLING (optional for elegance) */
::-webkit-scrollbar {
  width: 8px;
  background: #F3F7FA;
}
::-webkit-scrollbar-thumb {
  background: #D3D7E2;
  border-radius: 8px;
}

/* Hide visually */
[hidden] { display:none !important; }

/* Miscellaneous refinements */
a, .cta, .cta.primary, .cookie-btn, .mobile-menu-close {
  -webkit-tap-highlight-color: transparent;
}
a:active, .cta:active, .cta.primary:active {
  opacity: 0.95;
}

/* Ensure no overlapping for cards & wrappers */
.card-container > *, .content-grid > *, .content-wrapper > * {
  flex: 1 1 288px;
  min-width: 0;
}

/* Special: always enable minimum margin between all content cards */
.card, .feature-item, .testimonial-card {
  margin-right: 0;
  margin-bottom: 20px;
}

/* Utility classes */
.align-center { text-align: center !important; }
.align-right { text-align: right !important; }
.muted { color: var(--muted) !important; }

/* END CSS */
