/* === 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;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  min-height: 100%;
  background: #232c3a;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  color: #f6faff;
  background: #232c3a;
}
ul,ol {
  list-style: none;
}
a {
  color: #7EC6D3;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F9E29C;
}
img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}
button, input, select, textarea {
  font-family: inherit;
  outline: none;
  border: none;
  background: none;
}

/* === BRAND & FUTURISTIC COLORS === */
:root {
  --primary: #2E4053;
  --secondary: #7EC6D3;
  --accent: #F9E29C;
  --background: #232c3a;
  --surface: #263246;
  --on-primary: #F6FAFF;
  --on-surface: #fff;
  --neon: #44ffe6;
  --shadow: 0 4px 32px 0 rgba(46,64,83,0.18);
  --radius: 16px;
  --transition: 0.22s cubic-bezier(0.42,0,0.58,1);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
  color: #F9E29C;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
  font-weight: 700;
  line-height: 1.18;
}
h1 {
  font-size: 2.25rem;
  color: #7EC6D3;
  text-shadow: 0 0 8px var(--neon);
  margin-bottom: 24px;
}
h2 {
  font-size: 1.7rem;
  color: #F9E29C;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.18rem;
  color: #7EC6D3;
  margin-bottom: 9px;
}
h4, h5, h6 {
  font-size: 1rem;
  color: var(--accent);
}
p, li, ul, ol, blockquote {
  font-size: 1rem;
  color: var(--on-primary);
  line-height: 1.6;
  margin-bottom: 12px;
}
strong {
  color: #F9E29C;
}
blockquote {
  padding: 22px 32px;
  background: #1d2432;
  border-left: 4px solid #7EC6D3;
  border-radius: var(--radius);
  font-style: italic;
  color: #F6FAFF;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  position: relative;
}
blockquote span {
  display: block;
  color: #F9E29C;
  margin-top: 14px;
  font-style: normal;
}

/* === CONTAINER & LAYOUTS : FLEXBOX ONLY === */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.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;
  border-radius: var(--radius);
  background: #fff;
  color: #151b22;
  box-shadow: var(--shadow);
  margin-top: 16px;
  margin-bottom: 20px;
}
.testimonial-card p,
.testimonial-card span {
  color: #232c3a;
  margin: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === MAIN NAVIGATION & HEADER === */
header {
  width: 100%;
  background: #263246;
  box-shadow: 0 2px 24px 0 rgba(36,50,60,0.08);
  z-index: 20;
  position: relative;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 0;
  justify-content: flex-start;
}
.main-nav > a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #F6FAFF;
  padding: 9px 18px;
  border-radius: 24px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.main-nav > a.cta-primary {
  background: var(--secondary);
  color: #232c3a;
  font-weight: bold;
  box-shadow: 0 0 10px 2px var(--secondary);
  border: 2px solid var(--secondary);
  letter-spacing: 0.05em;
}
.main-nav > a.cta-primary:hover, .main-nav > a.cta-primary:focus {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 0 12px 1px var(--accent);
  border-color: var(--accent);
}
.main-nav > a:hover, .main-nav > a:focus {
  background: #314161;
  color: var(--accent);
}
.main-nav img {
  height: 40px;
  margin-right: 10px;
}

/* === MOBILE MENU === */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--accent);
  background: none;
  border: none;
  padding: 6px 16px;
  cursor: pointer;
  z-index: 52;
  border-radius: 8px;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--secondary);
  color: #222b36;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #222e40ee;
  backdrop-filter: blur(7px);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(0.55,0,0.1,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 40px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin-left: 22px;
  font-size: 2rem;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  margin-bottom: 24px;
  border-radius: 8px;
  box-shadow: none;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--secondary);
  color: #232c3a;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  padding-left: 36px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.28rem;
  color: #F6FAFF;
  padding: 11px 7px 11px 0;
  border-radius: 10px;
  display: block;
  width: fit-content;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--secondary);
  color: #232c3a;
  padding-left: 14px;
}

/* Hide nav for mobile, show burger */
@media (max-width: 990px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 28px;
    top: 12px;
  }
}
@media (min-width: 991px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

/* === HERO SECTIONS === */
.hero {
  background: linear-gradient(120deg, #2E4053 0%, #263246 70%, #344966 100%);
  box-shadow: 0 4px 32px 0 rgba(46,64,83,0.14);
  border-radius: 0 0 40px 40px;
  padding-top: 60px;
  padding-bottom: 48px;
  position: relative;
}
.hero h1 {
  color: #7EC6D3;
  font-size: 2.6rem;
  text-shadow: 0 0 16px var(--neon);
}
.hero h2 {
  color: #F9E29C;
  font-size: 2rem;
}
.hero p {
  color: #f6faff;
  font-size: 1.18rem;
}

/* === FEATURE GRID (Startseite) === */
.features {
  background: var(--surface);
  border-radius: 32px;
  box-shadow: var(--shadow);
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-top: 22px;
}
.feature-grid li {
  background: #222e40;
  padding: 28px 22px;
  border-radius: var(--radius);
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 2px 16px 2px #10172544;
  border: 1.5px solid #35445b;
  transition: box-shadow var(--transition), border var(--transition);
  position: relative;
}
.feature-grid li:hover,
.feature-grid li:focus-within {
  box-shadow: 0 2px 32px 6px #49faff33, 0 4px 8px #0001;
  border-color: var(--neon);
  z-index: 4;
}
.feature-grid img {
  height: 44px;
  filter: drop-shadow(0 0 8px var(--neon));
  margin-bottom: 9px;
}

/* === PREVIEW ROWS & PROJECTS === */
.preview-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 44px;
  justify-content: flex-start;
  align-items: stretch;
}
.preview-row > div {
  background: #222e40;
  border-radius: var(--radius);
  padding: 24px 20px;
  flex: 1 1 270px;
  min-width: 240px;
  max-width: 420px;
  box-shadow: 0 2px 20px #1a232b55;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  transition: box-shadow var(--transition), border var(--transition);
  border: 2px solid transparent;
}
.preview-row > div:hover {
  border-color: #44ffe6;
  box-shadow: 0 0 24px 4px #44ffe644;
}

/* === CARD, TEAM GRID & CASE STUDIES === */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.team-grid li {
  background: #232c3a;
  border-radius: var(--radius);
  padding: 22px 18px;
  flex: 1 1 200px;
  min-width: 200px;
  max-width: 280px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 7px;
  border: 1px solid #313d52;
  color: #F6FAFF;
  position: relative;
}
.team-grid li strong {
  font-size: 1.1rem;
  color: #7EC6D3;
}
.team-grid li em {
  color: #F9E29C;
  font-style: italic;
  font-size: 0.98rem;
}
.project-list .preview-row > div span {
  font-size: 0.98rem;
  color: var(--accent);
  margin-top: 10px;
  display: block;
}

/* === KEY LISTS, HISTORY === */
.about ul, .history ul, .methods ul, .benefits ul, .values ul,
.research-areas ul, .event-list ul, .past-events ul, .legal ul,
.thank-you ul {
  padding-left: 0;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about ul li,
.history ul li,
.methods ul li,
.benefits ul li,
.values ul li,
.research-areas ul li,
.event-list ul li,
.past-events ul li,
.legal ul li,
.thank-you ul li {
  background: #1e2532;
  padding: 10px 14px;
  border-radius: 9px;
  color: #F9E29C;
  font-size: 1rem;
  border-left: 3px solid #7EC6D3;
  box-shadow: 0 1px 6px #19222a50;
  margin-bottom: 0;
}

/* === BUTTONS / CALL TO ACTION === */
.cta-primary,
.cta {
  background: var(--secondary);
  color: #222e40;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 14px 32px;
  border-radius: 24px;
  font-size: 1.18rem;
  font-weight: 700;
  border: 2px solid var(--secondary);
  box-shadow: 0 0 12px 3px #7EC6D344;
  outline: none;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), border var(--transition);
  display: inline-block;
  letter-spacing: 0.03em;
  text-align: center;
  margin-top: 12px;
}
.cta-primary:hover,
.cta-primary:focus {
  background: var(--accent);
  color: #2E4053;
  border-color: var(--accent);
  box-shadow: 0 0 18px 2px var(--accent);
}
.cta {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  margin-top: 0;
  margin-left: 10px;
  box-shadow: none;
}
.cta:hover,
.cta:focus {
  background: var(--accent);
  color: #2E4053;
}

/* === FOOTER === */
footer {
  background: #18212b;
  box-shadow: 0 -2px 42px 0 rgba(36,50,60,0.14);
  padding-top: 36px;
  padding-bottom: 30px;
  color: #B3C7D6;
  margin-top: 38px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.footer-top {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: flex-start;
}
.footer-top img {
  height: 38px;
}
.footer-nav {
  display: flex;
  gap: 16px;
}
.footer-nav a {
  color: #B3C7D6;
  font-size: 0.99rem;
  transition: color var(--transition);
}
.footer-nav a:hover {
  color: var(--accent);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.97rem;
  color: #C2E5FF;
}
.footer-contact img {
  height: 15px;
  margin-right: 7px;
  vertical-align: text-bottom;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.footer-social a {
  display: inline-flex;
  background: transparent;
  border-radius: 50%;
  padding: 7px;
  transition: background var(--transition);
}
.footer-social a:hover{
  background: var(--secondary);
}
.footer-social img {
  height: 22px;
  transition: filter 0.22s;
  filter: grayscale(1) brightness(1.5);
}
.footer-social a:hover img {
  filter: drop-shadow(0 0 4px #44ffe6);
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #222e40fa;
  color: #F6FAFF;
  box-shadow: 0 -4px 30px 0 #1b2b38e0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  z-index: 10004;
  padding: 22px 16px 22px 26px;
  flex-wrap: wrap;
  font-size: 1.09rem;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.3s, opacity 0.3s;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(160px);
  pointer-events: none;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: 12px;
}
.cookie-banner button,
.cookie-banner .cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 16px;
  border: 2px solid var(--accent);
  padding: 9px 24px;
  margin: 0;
  cursor: pointer;
  background: #2E4053;
  color: var(--accent);
  font-weight: 600;
  margin-right: 4px;
  transition: background var(--transition), color var(--transition), border var(--transition);
}
.cookie-banner button.accept {
  background: var(--secondary);
  color: #2E4053;
  border-color: var(--secondary);
}
.cookie-banner button.accept:hover {  background: var(--accent); color: #232c3a; border-color: var(--accent);}
.cookie-banner .cookie-btn.settings {
  background: transparent;
}
.cookie-banner .cookie-btn.settings:hover {
  background: #314161;
  color: var(--accent);
  border-color: #F9E29C;
}
.cookie-banner button.reject {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.cookie-banner button.reject:hover {  background: #F9E29C; color: #232c3a; border-color: #F9E29C;}

/* === COOKIE CONSENT MODAL === */
.cookie-modal-backdrop {
  position: fixed; left: 0; top: 0; width: 100vw; height: 100vh;
  background: #141a1fe6;
  z-index: 10010;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.22s;
  pointer-events: all;
}
.cookie-modal-backdrop.hide { opacity:0; pointer-events: none; }
.cookie-modal {
  background: #222e40;
  border-radius: var(--radius);
  width: 90vw;
  max-width: 440px;
  padding: 36px 28px 22px 28px;
  color: #F6FAFF;
  box-shadow: 0 16px 80px 2px #18212ba0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 30;
}
.cookie-modal h3 {
  color: #F9E29C;
  font-size: 1.16rem;
  margin-bottom: 7px;
}
.cookie-modal .categories {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 16px;
}
.cookie-category {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.cookie-category label {
  font-size: 1rem;
  color: #7EC6D3;
}
.cookie-category input[type="checkbox"] {
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 7px;
  border: 2px solid #7EC6D3;
  background: #263246;
  margin-top: 2px;
  display: inline-block;
  position: relative;
  cursor: pointer;
  transition: background 0.19s, border 0.19s;
}
.cookie-category input[type="checkbox"]:checked {
  background: var(--neon);
  border-color: #F9E29C;
}
.cookie-category input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 6px; top: 2px;
  width: 7px; height: 13px;
  border: 2px solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(42deg);
  display: block;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal .cookie-modal-actions button {
  font-size: 1rem;
  border-radius: 13px;
  padding: 7px 19px;
  font-family: inherit;
  border: none;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}
.cookie-modal .cookie-modal-actions .accept {
  background: var(--secondary);
  color: #2E4053;
}
.cookie-modal .cookie-modal-actions .accept:hover{ background: var(--accent); color: #232c3a; }
.cookie-modal .cookie-modal-actions .close {
  background: transparent;
  color: #F9E29C;
}
.cookie-modal .cookie-modal-actions .close:hover{ background: #314161; color: #F9E29C; }
.cookie-modal .category-note {
  color: #999faf;
  font-size: 0.97rem;
  opacity: 0.92;
  margin-top: 3px;
}

/* === FORMATTED LEGAL, CONTACT, THANK YOU === */
.legal, .contact, .thank-you {
  background: #232c3a;
  border-radius: 22px;
  max-width: 980px;
  margin: 38px auto 0 auto;
  box-shadow: 0 2px 20px #11202e22;
}
.legal h1,
.legal h2,
.contact h1,
.contact h2,
.thank-you h1,
.thank-you h2 {
  color: #7EC6D3;
  margin-top: 2px;
}
.legal p,
.contact p,
.thank-you p{
  color: #F6FAFF;
}
.legal a{
  color: #F9E29C;
};
.legal a:hover {text-decoration: underline; color: #7EC6D3;}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width:900px){
  .container{ max-width: 99vw; }
  .main-nav > a { font-size: 0.99rem; padding:8px 9px;}
  .hero h1 { font-size:2rem; }
  .hero, .section { padding: 28px 8px; }
  .footer-top { flex-direction: column; gap:14px; align-items: flex-start;}
}
@media (max-width:768px){
  h1 { font-size:1.45rem; }
  h2{ font-size:1.21rem; }
  .container { padding: 0 12px; }
  .hero, .section { padding: 22px 3px; }
  .features, .about-preview, .about, .history, .legal, .contact, .thank-you, .case-studies, .event-list, .project-list, .past-events, .team-members, .values, .benefits, .methods, .highlights {
    padding-left: 0; padding-right: 0;
  }
  .content-wrapper { gap: 14px; }
  .feature-grid, .team-grid, .preview-row { flex-direction: column; gap: 18px; }
  .feature-grid li, .team-grid li, .preview-row > div{ max-width:100%; min-width: 0; }
  .footer-social { gap: 11px; }
  .card, .testimonial-card, .feature-item {max-width:100vw;}
  .footer-contact, .footer-social{ flex-direction:column; gap:6px; }
  .text-image-section { flex-direction: column; align-items: flex-start; gap:16px;}
}
@media (max-width:520px){
  .cookie-banner { flex-direction: column; gap: 15px; align-items: flex-start; padding: 14px 6px; }
  .cookie-banner .cookie-buttons { margin-left: 0; gap:7px;}
}

/* === ANIMATIONS & MICRO-INTERACTIONS === */
.cta-primary, .cta, .main-nav > a, .feature-grid li, .preview-row > div, .cookie-banner button, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.22s, color 0.22s, box-shadow 0.22s, border 0.22s, transform 0.16s;
}
.feature-grid li:hover, .preview-row > div:hover, .team-grid li:hover {
  transform: translateY(-4px) scale(1.025);
  box-shadow: 0 2px 44px 7px #44ffe623, 0 4px 24px #0001;
}

/* === SCROLLBAR FUTURISTIC === */
body::-webkit-scrollbar {
  width: 11px;
  background: #232c3a;
}
body::-webkit-scrollbar-thumb {
  background: #2E4053;
  border-radius: 7px;
  border: 3px solid #232c3a;
}
body::-webkit-scrollbar-thumb:hover {
  background: #7EC6D3;
}

/* === UTILITY CLASSES === */
.hidden {
  display: none !important;
}
.sr-only {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* === Z-INDEX LAYERING === */
header { z-index: 20; }
.mobile-menu { z-index: 9999; }
.cookie-banner { z-index: 10004; }
.cookie-modal-backdrop { z-index: 10010; }

/* === CARD & SECTION SPACING FOR MANDATORY RULES === */
.card-container > *,
.content-grid > *,
.feature-grid > *,
.team-grid > *,
.preview-row > *,
.section > * {
  margin-bottom: 20px;
}
.section:last-child,
.card-container > *:last-child,
.content-grid > *:last-child,
.feature-grid > *:last-child,
.team-grid > *:last-child,
.preview-row > *:last-child {
  margin-bottom: 0;
}

