/* ==== CSS RESET & 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, menu, 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, 
main, 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, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #16243b;
  color: #F7FAFF;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  /* Futuristic, subtle animated grain (optional) */
}
::-webkit-scrollbar {
  width: 8px;
  background: #223149;
}
::-webkit-scrollbar-thumb {
  background: #23406C;
  border-radius: 8px;
}

/* ==== BRAND COLORS & TYPOGRAPHY ==== */
:root {
  --primary: #23406C;
  --primary-dark: #16243b;
  --secondary: #A1B1C6;
  --background: #192642;
  --accent: #F9C846;
  --accent-neon: #ffc400;
}

/* FONTS: Montserrat for headlines, Open Sans for body */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;600&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.25rem;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--accent);
  text-shadow: 0 2px 24px rgba(249,200,70,0.18), 0 1px 0 var(--primary);
}
h2 {
  font-size: 1.75rem;
  color: var(--secondary);
  margin-bottom: 16px;
  font-weight: 700;
}
h3 {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 700;
}
h4, h5, h6 {
  font-size: 1.125rem;
  color: var(--secondary);
  margin-bottom: 6px;
}
p, ul, ol { font-size: 1rem; color: #E0EDFF; margin-bottom:12px; }
strong { color: var(--accent); }
a {
  color: var(--accent);
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #fee491;
  outline: none;
}

/* ==== LAYOUT CONTAINERS & SPACING ==== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: rgba(25,38,66,0.98);
  border-radius: 24px;
  box-shadow: 0 4px 40px rgba(25,38,66,0.16), 0 1.5px 0 var(--primary-dark);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (max-width: 768px) {
  section, .section { padding: 26px 8px; margin-bottom: 36px; }
  .container { padding: 0 8px; }
}

/* ==== HEADER & NAVIGATION ==== */
header {
  background: linear-gradient(90deg, #223149 0%, #23406C 100%);
  box-shadow: 0 3px 32px rgba(28,49,100,0.08);
  padding: 0 0 0 0; 
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 24px;
}
header img[alt="CompoPuris Koblenz"] {
  height: 54px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 32px;
}
.main-nav a {
  color: var(--secondary);
  font-weight: 600;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 6px 12px;
  border-radius: 10px;
  transition: background .18s,color .18s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--accent);
  color: #16243b;
}
.cta-btn {
  background: var(--accent);
  color: #16243b;
  border-radius: 22px;
  font-weight: 700;
  font-family: 'Montserrat',Arial,Helvetica,sans-serif;
  padding: 12px 32px;
  font-size: 1rem;
  letter-spacing: 0.03em;
  margin-left: 16px;
  box-shadow: 0 0 24px rgba(249,200,70,0.25);
  border: none;
  outline: 2px solid var(--accent-neon);
  outline-offset: 0;
  position: relative;
  transition: background 0.18s, box-shadow 0.18s, outline-offset 0.18s;
  text-shadow: 0 1px 0 #fff6;
}
.cta-btn:hover, .cta-btn:focus {
  background: #fee491;
  color: #16243b;
  box-shadow: 0 0 32px #F9C84666, 0 1px 0 #FFF9;
  outline-offset: 4px;
}

@media (max-width: 1000px) {
  .main-nav {
    gap: 16px;
  }
}
@media (max-width: 800px) {
  header .container {
    flex-wrap: wrap;
    padding: 12px 10px;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .main-nav, .cta-btn {
    display: none !important;
  }
  header .container {
    flex-direction: row;
    gap: 10px;
  }
  header img[alt="CompoPuris Koblenz"] { height: 42px; }
}

/* ==== MOBILE MENU ==== */
.mobile-menu-toggle {
  display: none;
}
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--accent);
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 999;
    width: 44px;
    height: 44px;
    cursor: pointer;
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #192642;
    background: linear-gradient(120deg,#192642 65%,#23406C 100%);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(.4,1,.7,1);
    padding: 52px 40px 36px 40px;
  }
  .mobile-menu.active {
    transform: translateX(0);
  }
  .mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 32px;
    background: none;
    border: none;
    color: var(--accent);
    font-size: 2rem;
    cursor: pointer;
    z-index: 1002;
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 64px;
  }
  .mobile-nav a {
    color: #F9C846;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 14px 0;
    transition: color 0.18s, background 0.18s;
    border-radius: 8px;
  }
  .mobile-nav a:hover, .mobile-nav a:focus {
    color: #16243b;
    background: #fee491;
  }
}

/* ==== HERO ==== */
.hero {
  margin-top: 34px;
  background: linear-gradient(120deg,var(--primary-dark) 67%, #23406C 100%);
  border-radius: 32px;
  padding-top: 56px;
  padding-bottom: 56px;
  position: relative;
  box-shadow: 0 8px 64px rgba(25,38,66,0.18), 0 1px 0 var(--primary);
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 18px;
}
.hero h1 {
  font-size: 2.5rem;
  color: var(--accent);
  text-shadow: 0 4px 40px #F9C84633, 0 1px 0 #21325c;
}
.hero p {
  color: var(--secondary);
  font-size: 1.22rem;
  margin-bottom: 10px;
}
.hero .cta-btn {
  font-size: 1.16rem;
}
@media (max-width: 600px) {
  .hero {
    margin-top: 12px;
    padding-top: 32px; padding-bottom: 36px;
  }
  .hero h1 { font-size: 1.23rem; }
}

/* ==== FEATURES, CARDS, GRIDS ==== */
.features, .feature-grid, .feature-item {
  width: 100%;
}
.features .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
  align-items: stretch;
  margin-top: 16px;
}
.features .feature-grid li {
  background: #223149;
  border-radius: 16px;
  box-shadow: 0 1.5px 0 #223149, 0 4px 24px #19264233;
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 24px 18px 20px 22px;
  border-left: 5px solid var(--accent);
  margin-bottom: 20px;
  transition: box-shadow .22s, border-color .18s;
  position: relative;
}
.features .feature-grid li:hover, .features .feature-grid li:focus-within {
  box-shadow: 0 0 36px #F9C84655, 0 1px 0 #FFF8;
  border-left: 8px solid #fee491;
  z-index: 2;
}
.features .feature-grid li img {
  height: 34px;
  width: auto;
  filter: brightness(1.15) drop-shadow(0 0 8px #f9c84699);
  margin-bottom: 4px;
}
.features .feature-grid h3 {
  color: var(--accent);
  font-size: 1.2rem;
}
.features .feature-grid p {
  color: var(--secondary);
  font-size: 1rem;
}
@media (max-width: 900px) {
  .features .feature-grid { gap: 17px; }
  .features .feature-grid li { max-width: 100%; min-width: 180px; }
}
@media (max-width: 600px) {
  .features .feature-grid { flex-direction: column; gap: 8px; }
}

/* ==== GENERIC CARD CONTAINERS ==== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 30px;
}
.card {
  background: #223149;
  border-radius: 16px;
  box-shadow: 0 2px 24px #16243b44;
  padding: 28px 20px;
  min-width: 220px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .22s, border-color .18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 0 32px #F9C84633, 0 2px 8px #23406C33;
  z-index: 2;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
@media (max-width: 900px) {
  .card-container, .content-grid { flex-direction: column; gap: 20px; }
}

/* ==== SERVICES / LISTEN AUF LEISTUNGEN ==== */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 38px;
  list-style: none;
  margin: 32px 0 0 0;
}
.service-list li {
  background: #223149;
  border-radius: 14px;
  box-shadow: 0 1.5px 0 #223149, 0 4px 22px #19264233;
  padding: 32px 22px;
  border-left: 4px solid var(--accent);
  margin-bottom: 20px;
  transition: border-color .18s, box-shadow .22s;
}
.service-list li:hover, .service-list li:focus-within {
  border-left: 6px solid #fee491;
  box-shadow: 0 0 32px #F9C84633, 0 1px 0 #FFF6;
}
.service-list strong { color: var(--accent); }

/* ==== ABOUT LISTS ==== */
ul, ol {
  margin-left: 20px;
  margin-bottom: 16px;
}
.text-section ul li, .about ul li {
  margin-bottom: 8px;
}

/* ==== PROJECTS ==== */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 34px;
  list-style: none;
  margin-top: 32px;
  margin-bottom: 24px;
}
.project-list li {
  background: #223149;
  border-radius: 16px;
  box-shadow: 0 1.5px 0 #223149, 0 4px 20px #16243b33;
  padding: 32px 20px;
  position: relative;
  transition: box-shadow .22s;
  margin-bottom: 20px;
}
.project-list li:hover, .project-list li:focus-within {
  box-shadow: 0 0 30px #F9C84644;
  z-index: 1;
}
.project-list h2 {
  margin-bottom: 15px;
  color: var(--accent);
}
.project-list .text-section ul li {
  margin-bottom: 6px;
}

/* ==== TESTIMONIALS ==== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  color: #16243b;
  border-radius: 22px;
  padding: 20px 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 28px #F9C84622, 0 1px 0 #23406C11;
  border-left: 4px solid var(--accent);
  position: relative;
}
.testimonial-card p {
  color: #16243b;
  font-size: 1.09rem;
  margin-bottom: 0;
}
.testimonial-card span {
  color: var(--primary);
  font-size: 1.02rem;
  font-weight: 700;
  margin-left: 14px;
}
@media (max-width: 600px) {
  .testimonial-card { flex-direction: column; align-items: flex-start; padding: 14px 10px; }
  .testimonial-card span { margin-left: 0; }
}

/* ==== TEAM ==== */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 32px;
}
.team-member {
  background: #223149;
  border-radius: 14px;
  box-shadow: 0 2px 24px #23406C18;
  padding: 18px 18px 16px 18px;
  min-width: 190px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  transition: box-shadow .25s;
}
.team-member h3 {
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 1.13rem;
}
.team-member p {
  color: var(--secondary);
  font-size: 1.04rem;
}
@media (max-width: 700px) {
  .team-grid { flex-direction: column; gap: 10px; }
}

/* ==== CTA SECTIONS ==== */
.cta {
  background: linear-gradient(90deg, var(--primary-dark) 20%, #23406C 100%);
  text-align: center;
  border-radius: 30px;
  box-shadow: 0 2px 40px #1926421a;
  margin-bottom: 60px;
  padding: 44px 0;
}
.cta h2 {
  font-size: 2rem;
  color: var(--accent);
}
.cta .cta-btn {
  margin-top: 20px;
  font-size: 1.16rem;
}
@media (max-width: 600px) {
  .cta { padding: 24px 0; }
}

/* ==== THANK YOU PAGE ==== */
.thank-you {
  background: #223149;
  border-radius: 20px;
  margin-top: 40px;
  text-align: center;
}
.thank-you h1 { color: var(--accent); font-size: 2.3rem; margin-bottom: 24px; }
.thank-you .cta-btn { margin-top: 28px; }

/* ==== CONTACT INFO ==== */
.contact-info ul {
  list-style: none;
  margin: 14px 0 0 0;
  padding: 0;
}
.contact-info li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  color: var(--secondary);
}
.contact-info img[alt] {
  height: 20px;
}

/* ==== FOOTER ==== */
footer {
  background: linear-gradient(90deg,#223149 70%,#23406C 100%);
  color: #E0EDFF;
  padding: 40px 0 30px 0;
  font-size: 0.97rem;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  margin-top: 70px;
  box-shadow: 0 -6px 36px #23406C26;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
  transition: color .19s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fee491;
}
footer img[alt="CompoPuris Koblenz"]  { height: 54px; }
footer img[alt="CompoPuris Koblenz"]:not(.logo-mark) { height: 44px; }
@media (max-width: 800px) {
  footer .container { flex-direction: column; gap: 20px; align-items: stretch; }
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #16243bfa;
  color: #fff;
  z-index: 2000;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 28px 18px 22px 18px;
  box-shadow: 0 -2px 44px #F9C84622, 0 1.5px 0 var(--accent);
  gap: 26px;
  font-size: 1rem;
  border-top: 4px solid var(--accent);
  transition: transform 0.36s cubic-bezier(.42,1,.68,1);
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner .cookie-btn {
  margin-right: 14px;
  background: var(--accent);
  color: #16243b;
  font-weight: 700;
  padding: 9px 23px;
  border: none;
  border-radius: 14px;
  margin: 0 8px;
  transition: background .18s,box-shadow .18s,color .18s;
  box-shadow: 0 0 8px #ffc84633;
  cursor: pointer;
}
.cookie-banner .cookie-btn.reject {
  background: #A1B1C6;
  color: #16243b;
}
.cookie-banner .cookie-btn.settings {
  background: #23406C;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #fee491;
  color: #16243b;
}
@media (max-width: 900px) {
  .cookie-banner { flex-direction: column; gap: 20px; font-size: 0.98rem; }
}

/* ==== COOKIE MODAL ==== */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(22,36,59,.95);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .32s cubic-bezier(.45,1,.65,1);
  opacity: 0;
  pointer-events: none;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #192642;
  border-radius: 18px;
  padding: 32px 34px 30px 34px;
  min-width: 320px;
  max-width: 96vw;
  box-shadow: 0 0 60px #F9C84633, 0 1.5px 0 var(--accent);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.cookie-modal-content h2 {
  color: var(--accent);
  margin-bottom: 14px;
  font-size: 1.39rem;
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 1.7rem;
  cursor: pointer;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.cookie-toggle-row label {
  color: var(--secondary);
  font-size: 1.05rem;
  cursor: pointer;
}
.cookie-toggle {
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #223149;
  border: 2px solid var(--accent);
  box-shadow: 0 0 12px #F9C84622;
  transition: background .18s;
  display: inline-block;
  position: relative;
  vertical-align: middle;
}
.cookie-toggle:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.cookie-toggle-row .hint {
  color: #b1c8ed;
  margin-left: 12px;
  font-size: 0.93rem;
  font-style: italic;
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 4px;
  align-items: center;
}
.cookie-modal-actions .cookie-btn {
  padding: 7px 16px;
  font-size: 1rem;
}

/* ==== ANIMATION & MICROINTERACTIONS ==== */
.cta-btn, .main-nav a, .service-list li, .features .feature-grid li, .card,
.team-member, .project-list li, .testimonial-card, .footer-nav a, .cookie-btn, .mobile-nav a {
  transition: box-shadow .22s, background .19s, color .15s, transform .19s;
}
.features .feature-grid li:hover, .service-list li:hover, .team-member:hover,
.project-list li:hover, .card:hover, .footer-nav a:hover, .main-nav a:hover, .cta-btn:hover, .mobile-nav a:hover {
  transform: translateY(-2px) scale(1.012);
  box-shadow: 0 0 30px #F9C84633, 0 2px 12px #23406C33;
}

/* ==== RESPONSIVE: FLEX DIRECTION ==== */
.text-image-section, .content-grid {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section, .content-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
}

/* ==== VISUAL ACCENTS: NEON/SHADOWS ==== */
.section, section, .cta, .hero, .card, .team-member, .testimonial-card {
  box-shadow:
    0 0 0 1px #23406C33,
    0 1.5px 0 var(--primary-dark),
    0 0 32px #F9C8460f;
}
.features .feature-grid li, .service-list li, .team-member {
  border-left: 5px solid var(--accent);
}

/* ==== MINIMUM SPACING BETWEEN COMPONENTS ==== */
.features .feature-grid li, .service-list li, .project-list li, .card, .team-member, .testimonial-card {
  margin-bottom: 20px;
}
.card-container, .content-grid, .team-grid, .features .feature-grid {
  gap: 20px;
  margin-bottom: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ==== FORMS (basic, as not fully detailed in HTML) ==== */
input, textarea, select {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border-radius: 8px;
  border: 1.5px solid var(--accent);
  padding: 12px;
  background: #223149;
  color: #fff;
  margin-bottom: 14px;
  box-shadow: 0 1px 6px #22314922;
  transition: border-color .15s;
}
input:focus, textarea:focus, select:focus {
  border-color: #fee491;
  outline: none;
}
button, .cta-btn {
  cursor: pointer;
}

/* ==== Z-INDEX MANAGEMENT ==== */
header { z-index: 100; }
.mobile-menu { z-index: 1001; }
.mobile-menu-toggle { z-index: 999; }
.cookie-banner { z-index: 2000; }
.cookie-modal { z-index: 2100; }

/* ==== UTILITY/HELPER CLASSES ==== */
.hide { display: none !important; }
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal { display: none !important; }
}
