/* CSS RESET & BASE STYLES -------------------------------------------------------------- */
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.65;
  background: #FAFAFA;
  color: #1B1B1B;
  font-family: 'Georgia', Times, 'Times New Roman', serif;
  min-height: 100vh;
  font-size: 16px;
}
img, svg {
  vertical-align: middle;
  max-width: 100%;
  height: auto;
  display: inline-block;
}
a {
  color: #14213D;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #FCA311;
  outline: none;
}
ul, ol {
  margin: 0 0 1.5em 1.5em;
  padding: 0;
}

/* LAYOUT HELPERS ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(20, 33, 61, 0.04),0 1.5px 3px rgba(20,33,61,0.05);
}

main > section {
  margin-bottom: 60px;
  padding: 40px 0;
  width: 100%;
}

/* TYPOGRAPHY -------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', Times, 'Times New Roman', serif;
  color: #14213D;
  margin: 0 0 16px 0;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.4rem; line-height: 1.15; }
h2 { font-size: 1.8rem; margin-bottom: 18px; }
h3 { font-size: 1.38rem; }
h4 { font-size: 1.18rem; }
h5, h6 { font-size: 1rem; }

p, li, address, small {
  font-family: 'Georgia', Times, 'Times New Roman', serif;
  font-size: 1rem;
  color: #222;
  margin-bottom: 14px;
}
strong { color: #14213D; font-weight: 700; }
em, i { font-style: italic; color: #2d2d2d; }
small { font-size: 0.99em; color: #616161; }

.text-section ul {
  list-style-type: disc;
  margin-bottom: 8px;
}
.text-section ul li { margin-bottom: 8px; }

/* HERO SECTION ------------------------------------------------------------------ */
.hero {
  background: #E5E5E5;
  border-radius: 0 0 36px 36px;
  margin-bottom: 60px;
  padding: 64px 0 48px 0;
  box-shadow: 0 3px 18px rgba(20,33,61,0.04);
  position: relative;
}
.hero h1 {
  font-size: 2.6rem;
  font-family: 'Georgia', Times, serif;
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.15rem;
  color: #2d2d2d;
  margin-bottom: 22px;
}
.hero .cta {
  margin-top: 10px;
}

/* MAIN NAVIGATION --------------------------------------------------------------- */
header {
  background: #fff;
  border-bottom: 1.5px solid #E5E5E5;
  box-shadow: 0 4px 14px rgba(20,33,61,0.02);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  padding-bottom: 15px;
  min-height: 74px;
}
header img[alt="DuskMoor KI Lösungen"] {
  height: 43px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: 'Georgia', Times, 'Times New Roman', serif;
  font-weight: 500;
  font-size: 1.02rem;
  color: #222;
  padding: 6px 0;
  transition: color 0.25s;
  position: relative;
}
.main-nav a.cta.primary {
  background: #14213D;
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 1rem;
  border: 1.5px solid #14213D;
  transition: background 0.2s, color 0.2s, border 0.2s, box-shadow 0.3s;
  box-shadow: 0 1.5px 9px rgba(20,33,61,0.06);
  margin-left: 10px;
}
.main-nav a.cta.primary:hover {
  background: #FCA311;
  color: #14213D!important;
  border-color: #FCA311;
}

.main-nav a:hover, .main-nav a:focus {
  color: #14213D;
}

/* MOBILE MENU ------------------------------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  background: #14213D;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 1.7rem;
  cursor: pointer;
  margin-left: 20px;
  box-shadow: 0 1.5px 8px #14213D11;
  transition: background 0.23s, color 0.23s;
  z-index: 130;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #FCA311;
  color: #14213D;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0; 
  width: 100vw; height: 100vh;
  background: #fff;
  box-shadow: 0 9px 96px rgba(20,33,61,0.11);
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.5, 0.05, 0.13, 1);
  z-index: 3000;
  padding: 30px 22px 22px 22px;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  font-size: 2.2rem;
  color: #14213D;
  border: none;
  cursor: pointer;
  margin-bottom: 26px;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #FCA311;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 12px;
}
.mobile-nav a {
  padding: 12px 0;
  color: #14213D;
  font-size: 1.18rem;
  font-family: 'Georgia', Times, serif;
  font-weight: 600;
  border-bottom: 1px solid #E5E5E5;
  transition: color 0.21s, background 0.17s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #FCA311;
  background: #EAEAEA;
}
@media (max-width: 1100px) {
  .main-nav { gap: 12px; }
}
@media (max-width: 900px) {
  .main-nav { gap: 8px; }
}
@media (max-width: 860px) {
  .main-nav a { font-size: 0.96rem; padding: 2px 0; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 769px) {
  .mobile-menu { display: none!important; }
}

/* FLEX LAYOUTS ------------------------------------------------------------------ */
.features-grid,
.industries-grid,
.services-grid,
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.features-grid {
  margin-bottom: 20px;
}

.solution-list,
.blog-preview,
.case-studies {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-bottom: 10px;
}

.partner-list,
.team-overview,
.location-overview,.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card-container {
  margin-bottom: 24px;
}
.card {
  position: relative;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 13px rgba(20,33,61,0.07);
  padding: 28px 22px 22px 22px;
}
.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;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 10px;
}
.partner-list {
  align-items: flex-start;
  margin-bottom: 20px;
}
.partner-logo {
  display: flex;
  align-items: center;
}
.partnership-benefits ul {
  margin-bottom: 0;
}
.timeline {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}
/* Testimonial + Features */
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 2.5px 19px rgba(20,33,61,0.11);
  min-width: 240px;
  min-height: 120px;
  flex: 1 0 251px;
  margin-bottom: 8px;
  border-left: 5px solid #FCA311;
}
.testimonial-card p {
  color: #222;
  font-size: 1.08rem;
  font-style: italic;
  margin-bottom: 0;
}
.testimonial-card strong {
  font-size: 1rem;
  color: #14213D;
  font-family: 'Georgia', serif;
}

.client-logos {
  margin-top: 12px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.feature-card, .service-card, .industry-tile, .tech-item, .blog-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(20,33,61,0.09);
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  position: relative;
  transition: box-shadow 0.22s, transform 0.23s;
  min-width: 200px;
  flex: 1 0 260px;
  margin-bottom: 20px;
}
.feature-card:hover, .service-card:hover, .industry-tile:hover, .tech-item:hover, .blog-card:hover {
  box-shadow: 0 8px 32px rgba(252,163,17,0.09), 0 3px 16px rgba(20,33,61,0.13);
  transform: translateY(-3px) scale(1.016);
}
.feature-card img, .service-card img, .industry-tile img, .tech-item img {
  height: 42px;
  filter: grayscale(20%);
  margin-bottom: 7px;
}
.feature-card h3, .service-card h3, .industry-tile h3, .tech-item h3, .blog-card h3 {
  font-size: 1.14rem;
  font-family: 'Georgia', Times, serif;
  color: #14213D;
  margin-bottom: 4px;
}

.blog-card small {
  margin-top: 7px;
  color: #616161;
}

.categories-filter {
  margin-top: 12px;
  font-size: 1.01em;
  color: #534f4f;
}
.categories-filter a {
  color: #14213D;
  transition: color 0.18s, background 0.17s;
  padding: 0 2.5px;
  border-radius: 5px;
}
.categories-filter a:hover, .categories-filter a:focus {
  color: #FCA311;
  background: #EDF0F3;
}

.confirmation-message ul {
  margin-left: 1.3em;
}

/* BUTTONS & CTAs --------------------------------------------------------------- */
.cta, button, input[type=submit] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Georgia', Times, serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 24px;
  border: 1.5px solid #14213D;
  cursor: pointer;
  background: #14213D;
  color: #fff;
  font-size: 1.07rem;
  padding: 10px 26px;
  min-height: 44px;
  outline: none;
  transition: background 0.23s, color 0.19s, border-color 0.19s, box-shadow 0.19s, transform 0.20s;
  box-shadow: 0 1.5px 8px #14213D12;
  text-align: center;
  margin-right: 10px;
}
.cta.secondary {
  background: #fff;
  color: #14213D;
  border: 1.5px solid #FCA311;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #FCA311;
  color: #14213D;
  border-color: #FCA311;
}
.cta.primary:hover, .cta.primary:focus {
  background: #FCA311;
  color: #14213D;
  border-color: #FCA311;
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 3.5px 16px rgba(252,163,17,0.13), 0 1px 5px #14213D10;
}
.cta:active {
  transform: scale(0.99);
}

button, input[type=submit] {
  font-size: 1.01rem;
}
button:focus, .cta:focus, input[type=submit]:focus {
  outline: 2px solid #14213D;
}

/* FOOTER ----------------------------------------------------------------------- */
footer {
  background: #FBFBFB;
  border-top: 1.5px solid #E5E5E5;
  font-family: 'Georgia', Times, serif;
  color: #444;
  margin-top: 42px;
  padding-top: 24px;
  padding-bottom: 16px;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 1rem;
}
.footer-nav {
  margin-bottom: 18px;
  font-size: 0.98em;
  color: #888;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-nav a {
  color: #14213D;
  text-decoration: underline dotted;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus { color: #FCA311; }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 1.01em;
  max-width: 340px;
  min-width: 180px;
}
.footer-contact img {
  height: 17px;
  margin-right: 6px;
  vertical-align: text-bottom;
}
.footer-social {
  display: flex;
  gap: 16px;
}
.footer-social a img {
  height: 23px;
  filter: grayscale(40%) contrast(1.2);
  opacity: 0.75;
  transition: filter 0.18s, opacity 0.18s;
}
.footer-social a:hover img, .footer-social a:focus img {
  filter: grayscale(0%) contrast(1.5);
  opacity: 1;
}

/* COOKIE CONSENT BANNER -------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0; width: 100vw;
  background: #fff;
  color: #14213D;
  border-top: 2px solid #FCA311;
  box-shadow: 0 -3px 24px rgba(20,33,61,0.11);
  padding: 24px 13px 20px 13px;
  z-index: 9500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: cookiein 0.42s cubic-bezier(0.42,1.6,0.52,1);
}
@keyframes cookiein {
  0% { transform: translateY(100px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-banner__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}
.cookie-banner__button, .cookie-banner__settings, .cookie-banner__reject {
  font-family: 'Georgia', Times, serif;
  font-weight: 600;
  border-radius: 21px;
  padding: 8px 22px;
  font-size: 0.98rem;
  border: 1.5px solid #14213D;
  background: #fff;
  color: #14213D;
  cursor: pointer;
  transition: background 0.19s, color 0.17s, border 0.19s, box-shadow 0.17s;
  min-width: 100px;
}
.cookie-banner__button:hover, .cookie-banner__button:focus {
  background: #FCA311;
  color: #14213D;
  border-color: #FCA311;
}
.cookie-banner__settings {
  border-color: #E5E5E5;
  color: #616161;
  background: #FBFBFB;
}
.cookie-banner__settings:hover, .cookie-banner__settings:focus {
  background: #E5E5E5;
  color: #14213D;
}
.cookie-banner__reject {
  color: #C00;
  border-color: #C00;
  background: #fff;
}
.cookie-banner__reject:hover, .cookie-banner__reject:focus {
  background: #F2D2D2;
  color: #A30;
}
/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed; left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(20,33,61,0.21);
  z-index: 9800;
  display: flex; align-items: center; justify-content: center;
  animation: fadeinModal 0.37s cubic-bezier(.42,1.6,.52,1);
}
@keyframes fadeinModal { 0% { opacity: 0;} 100% {opacity: 1;} }
.cookie-modal {
  background: #fff;
  color: #14213D;
  border-radius: 18px;
  box-shadow: 0 11px 52px rgba(20,33,61,0.13);
  width: 95vw;
  max-width: 440px;
  padding: 32px 26px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 21px;
  position: relative;
  animation: cookiemodal 0.55s cubic-bezier(.42,1.6,.52,1);
}
@keyframes cookiemodal {
  0% { transform: translateY(38px) scale(0.98); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-modal__close {
  position: absolute; right: 15px; top: 15px;
  font-size: 1.65rem; background: none; border: none; color: #14213D;
  cursor: pointer;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  color: #FCA311;
}
.cookie-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 13px;
}
.cookie-switch-row label { flex: 1; font-size: 1.03em; color: #222; }
.cookie-switch {
  width: 44px; height: 24px;
  border-radius: 12px;
  background: #E5E5E5;
  position: relative;
  transition: background 0.2s;
  cursor: pointer;
  display: inline-block;
}
.cookie-switch input[type=checkbox] {
  opacity: 0; width: 0; height: 0; position: absolute;
}
.cookie-switch-slider {
  position: absolute; left: 2px; top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 8px #FCA31122;
  transition: left 0.22s, background 0.19s;
}
.cookie-switch input:checked + .cookie-switch-slider {
  left: 22px; background: #FCA311;
}
.cookie-switch input:checked ~ .cookie-switch {
  background: #FCA311;
}
.cookie-modal__button-row {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal__button {
  border-radius: 18px;
  background: #14213D;
  color: #fff;
  border: 1.5px solid #14213D;
  font-size: 1.03em;
  min-width: 100px;
  padding: 7px 19px;
  font-family: 'Georgia', Times, serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.19s, color 0.17s, border 0.17s;
}
.cookie-modal__button.secondary {
  background: #fff;
  color: #14213D;
  border-color: #FCA311;
}
.cookie-modal__button.secondary:hover,
.cookie-modal__button.secondary:focus {
  background: #FCA311;
  color: #14213D;
  border-color: #FCA311;
}
.cookie-modal__button:hover, .cookie-modal__button:focus {
  background: #FCA311;
  color: #14213D;
  border-color: #FCA311;
}

/* RESPONSIVENESS --------------------------------------------------------------- */
@media (max-width: 1060px) {
  .container { max-width: 97vw; }
}
@media (max-width: 990px) {
  .feature-card, .service-card, .industry-tile, .tech-item, .blog-card { flex: 1 0 44%; }
  .testimonial-card { flex: 1 0 49%; }
  .footer-main { flex-direction: column; gap: 18px; align-items: flex-start; }
}
@media (max-width: 768px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.21rem; }
  .hero { padding: 36px 0 28px 0; margin-bottom: 38px; border-radius: 0 0 19px 19px; }
  .container { padding-left: 8px; padding-right: 8px; }
  .features-grid, .industries-grid, .services-grid, .tech-stack, .partner-list, .testimonial-list,
  .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section, .team-overview, .location-overview, .partner-list {
    flex-direction: column;
    gap: 20px;
  }
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .footer-main { flex-direction: column; gap: 18px; align-items: flex-start; }
  .section { margin-bottom: 38px; padding: 28px 7px; }
}
@media (max-width: 520px) {
  .feature-card, .service-card, .industry-tile, .tech-item, .blog-card {
    flex: 1 0 85vw;
    min-width: unset;
    padding: 17px 7px 14px 10px;
  }
  .testimonial-card {
    flex: 1 0 99vw;
    min-width: unset;
    padding: 17px 10px;
  }
  .section { padding: 13px 0; }
  .cookie-modal { padding: 21px 6px 17px 10px; }
}

/* LISTS + DETAILS -------------------------------------------------------------- */
ul, ol {
  padding-left: 1.4em;
}
dt { font-weight: bold; }
dd { margin-left: 1.3em; }

/* TIMELINE, BLOG PREVIEW, CASE STUDIES ----------------------------------------- */
.timeline ul, .blog-preview, .case-studies {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
.blog-preview > div, .case-studies > div {
  padding: 10px 0;
  border-bottom: 1px dashed #E5E5E5;
}
.blog-preview > div:last-child, .case-studies > div:last-child {
  border-bottom: none;
}
.timeline ul li {
  margin-bottom: 0.6em;
  color: #222;
}

/* FORM (for newsletter/inputs) ------------------------------------------------- */
input, textarea {
  font-family: 'Georgia', Times, serif;
  font-size: 1.04em;
  border-radius: 7px;
  border: 1.5px solid #E5E5E5;
  padding: 8px 13px;
  background: #FCFCFC;
  color: #14213D;
  box-shadow: none;
  width: 100%;
  margin-bottom: 14px;
  transition: border 0.18s;
}
input:focus, textarea:focus {
  border: 1.5px solid #FCA311;
  background: #fff;
  outline: none;
}

/* ANIMATIONS & MICRO-INTERACTIONS ---------------------------------------------- */
.card, .feature-card, .service-card, .industry-tile, .tech-item, .blog-card, .testimonial-card {
  transition: box-shadow 0.22s, transform 0.22s;
}
.card:hover, .feature-card:hover, .service-card:hover, .industry-tile:hover, .tech-item:hover, .blog-card:hover, .testimonial-card:hover {
  box-shadow: 0 10px 32px #aeb8c92c;
  transform: translateY(-2px) scale(1.013);
}

/* Z-INDEX LAYERING PROTECTION -------------------------------------------------- */
header { z-index: 11; position: relative; }
.mobile-menu { z-index: 3000; }
.cookie-banner { z-index: 9500; }
.cookie-modal-overlay { z-index: 9800; }

/* UTILITY: NO OVERLAP ---------------------------------------------------------- */
.card, .feature-card, .service-card, .industry-tile, .tech-item, .blog-card, .testimonial-card {
  margin-bottom: 20px;
  box-sizing: border-box;
}

/* ACCESSIBILITY & SELECTION ---------------------------------------------------- */
::selection {
  background: #FCA311;
  color: #fff;
}

/* END CSS */
