/* ===== CSS RESET & NORMALIZE ===== */
/* Box sizing and remove default margin/padding */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
  font-size: 16px;
  background: #111923;
  color: #F5F5F2;
  font-family: 'Roboto', Arial, 'Helvetica Neue', Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
button {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  outline: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

/* ===== BRAND VARIABLES ===== */
:root {
  --color-primary: #21405A;
  --color-secondary: #7BAFC4;
  --color-accent: #F5F5F2;
  --color-bg: #111923;
  --color-bg-light: #1A2637;
  --color-bg-card: #182334;
  --color-text: #F5F5F2;
  --color-text-dark: #17212a;
  --color-shadow: rgba(123,175,196,0.15);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --transition: 0.3s cubic-bezier(.77,0,.18,1);
  --neon-blue: #61dafb;
  --neon-cyan: #21ffe8;
  --neon-pink: #f81ce5;
  --neon-green: #30ff8a;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-accent);
  letter-spacing: 0.01em;
  font-weight: 700;
  margin-bottom: 20px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  color: var(--neon-blue);
  text-shadow: 0 0 10px var(--neon-blue);
}
h2 {
  font-size: 2rem;
  color: var(--color-secondary);
  text-shadow: 0 0 6px var(--color-secondary);
}
h3 {
  font-size: 1.32rem;
  color: var(--neon-cyan);
}
h4, h5, h6 {
  font-size: 1.15rem;
}
p, li, span {
  font-family: var(--font-body);
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.6;
}
strong {
  color: var(--neon-blue);
  font-weight: 600;
}
small {
  color: var(--color-secondary);
  font-size: 0.93rem;
}

/* ===== GENERAL LAYOUT STRUCTURE ===== */
body {
  background: linear-gradient(115deg, var(--color-bg) 0%, var(--color-bg-light) 100%);
  min-height: 100vh;
}
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

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

.main-nav, .footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  justify-content: center;
  padding: 18px 0;
  background: transparent;
}
.main-nav img {
  height: 44px;
  margin-right: 28px;
}
.main-nav a,
.footer-nav a {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--color-accent);
  font-weight: 500;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.main-nav a:hover, .footer-nav a:hover {
  background: var(--neon-blue);
  color: #202e42;
  box-shadow: 0 0 6px var(--neon-blue);
}
.btn-primary {
  background: var(--neon-cyan);
  color: #181F27;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--radius);
  border: none;
  box-shadow: 0 0 18px var(--neon-cyan), 0 4px 24px var(--color-shadow);
  margin-top: 16px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform 0.2s;
  text-shadow: 0 1px 4px #fff4;
  cursor: pointer;
  position: relative;
  z-index: 0;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--neon-pink);
  color: #181F27;
  box-shadow: 0 0 18px var(--neon-pink), 0 4px 24px var(--color-shadow);
  transform: translateY(-2px) scale(1.03);
}
.btn-secondary {
  background: none;
  color: var(--neon-blue);
  font-family: var(--font-display);
  border: 2px solid var(--neon-blue);
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 26px;
  margin-top: 14px;
  box-shadow: 0 0 8px var(--neon-blue);
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.2s;
  cursor: pointer;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--neon-blue);
  color: #152438;
  border-color: var(--neon-cyan);
  transform: translateY(-1px) scale(1.04);
}

footer {
  background: #111a22;
  box-shadow: 0 0 64px 0 #24517140;
  padding: 26px 0 10px;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  margin-top: 10px;
  color: var(--color-accent);
}
.footer-info img {
  height: 28px;
}

/* ===== HERO SECTION ===== */
.hero {
  padding: 54px 0 42px;
  background: linear-gradient(105deg, #162130 55%, #19304a 100%);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 14px 44px -14px rgba(33,64,90,0.20);
  margin-bottom: 30px;
}
.hero .content-wrapper {
  align-items: flex-start;
}
.hero p {
  color: var(--color-secondary);
  font-size: 1.14rem;
  margin-bottom: 16px;
}
.hero .btn-primary {
  margin-top: 20px;
}

/* ===== FEATURES ===== */
.features {
  background: var(--color-bg-light);
  border-radius: var(--radius);
}
.features .feature-grid {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
}
.features .feature-grid > div {
  background: var(--color-bg-card);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 30px 0 var(--color-shadow);
  flex: 1 0 200px;
  min-width: 220px;
  max-width: 310px;
  padding: 28px 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
}
.features .feature-grid > div:hover {
  box-shadow: 0 6px 40px 0 var(--neon-cyan), 0 2px 22px 0 var(--neon-blue);
  transform: translateY(-3px) scale(1.025);
  z-index: 1;
}
.features .feature-grid img {
  width: 38px;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 10px var(--neon-blue));
}
.features h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: var(--neon-blue);
  text-shadow: 0 0 6px #81e5ef;
}
.features p {
  color: var(--color-secondary);
  font-size: 0.98rem;
}

/* ===== BADSANIERUNG ABOUT/VALUES/TEAM SECTIONS ===== */
.about, .about-company, .team, .values, .services-preview, .services-list, .benefits, .faq-preview, .faq-accordion, .faq-contact-cta, .contact-details, .contact-form-info, .contact-brief, .case-studies, .steps, .cta, .testimonials, .confirmation, .legal {
  background: var(--color-bg-card);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 30px 0 var(--color-shadow);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.about .text-section,
.about-company .text-section,
.team .text-section,
.values .text-section,
.case-studies .text-section,
.faq-accordion .text-section,
.contact-details .text-section,
.contact-form-info .text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section ul,
.text-section ol {
  margin-left: 0;
  margin-top: 6px;
  margin-bottom: 8px;
}
.text-section li {
  margin-bottom: 10px;
  padding-left: 0.8em;
  position: relative;
  font-size: 1rem;
}
.text-section li:before {
  content: '\2022';
  color: var(--neon-blue);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* ===== CTA SECTION ===== */
.cta {
  background: linear-gradient(115deg, #172538 85%, #0f131a 100%);
  border-radius: var(--radius);
  text-align: left;
  box-shadow: 0 6px 32px 0 var(--neon-blue), 0 2px 22px var(--color-shadow);
}
.cta h2 {
  color: var(--neon-pink);
  margin-bottom: 10px;
  text-shadow: 0 0 12px #f81ce599;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  background: #f5f5f2;
  color: #152438;
  border-radius: var(--radius);
  box-shadow: 0 2px 44px 0 var(--color-shadow), 0 1px 10px #d6ecff33;
}
.testimonials h2 {
  color: var(--color-primary);
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  color: #152438;
  padding: 20px;
  margin: 20px 0 0 0;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 18px 0 #bad7ff60;
  font-size: 1.1rem;
  position: relative;
  transition: box-shadow .22s, transform .15s;
}
.testimonial-card:hover {
  box-shadow: 0 0 20px 4px var(--neon-cyan), 0 6px 24px #b3e4ff60;
  transform: scale(1.03);
}
.testimonial-card p {
  color: #152438;
  margin-right: 18px;
}
.testimonial-card span {
  color: var(--color-secondary);
  font-size: .99rem;
  font-family: var(--font-body);
}

/* ===== CONTACT BRIEF - ICON LIST ===== */
.contact-brief ul li, .contact-details ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 1rem;
  color: var(--color-text);
}
.contact-brief ul img, .contact-details ul img {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 6px var(--neon-cyan));
}

.map-snippet {
  background: #222d3d;
  border-radius: var(--radius-sm);
  margin-top: 14px;
  padding: 12px 12px 10px;
  color: var(--color-accent);
  font-size: 0.98rem;
}

.confirmation {
  background: linear-gradient(100deg, #172538 85%, #0f131a 100%);
  color: var(--color-accent);
}

/* ===== LEGAL/FAQ LISTS ===== */
.legal .text-section ul, .faq-accordion .text-section ul {
  color: var(--color-text);
  padding-left: 0;
}
.legal .text-section li, .faq-accordion .text-section li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 1.3em;
}
.legal .text-section li:before, .faq-accordion .text-section li:before {
  content: '\2022';
  color: var(--neon-pink);
  font-size: 1.15em;
  position: absolute;
  left: 0;
  top: 2px;
}

/* ===== SECTION/BLOCK FLEX SPACING & RULES ===== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-bg-card);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 16px 0 var(--color-shadow);
  padding: 24px 20px;
  min-width: 220px;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===== OLDSCHOOL FAQ & CASE STUDY PREVIEW ===== */
.faq-preview ul, .services-preview ul, .services-list ul, .benefits ul,
.faq-accordion ul, .case-studies ul, .confirmation ul {
  margin-top: 10px;
  padding-left: 0px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.faq-accordion h3 {
  margin-top: 16px;
}
hr {
  border: none;
  height: 1px;
  background: var(--neon-cyan);
  opacity: .13;
  margin: 20px 0 12px;
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 22px;
  top: 18px;
  z-index: 40;
  background: var(--color-bg-card);
  color: var(--neon-blue);
  border-radius: 10px;
  padding: 10px 11px 7px 13px;
  font-size: 2.1rem;
  border: 2px solid var(--neon-blue);
  box-shadow: 0 2px 10px #40ffd633;
  transition: background var(--transition), color var(--transition), border var(--transition);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--neon-blue);
  color: #181F27;
}
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1200;
  background: #172438ee;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 44px 4px #61dafb60;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 30px 28px 14px;
  transform: translateX(-100%);
  transition: transform .32s cubic-bezier(.77,0,.18,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--neon-pink);
  color: #fff;
  border-radius: 50%;
  font-size: 2.2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  border: none;
  transition: background .18s;
  box-shadow: 0 2px 18px var(--neon-pink)33;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #fff;
  color: var(--neon-pink);
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 2;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.28rem;
  color: var(--color-accent);
  padding: 14px 0;
  border-radius: var(--radius);
  text-align: left;
  background: transparent;
  transition: color .16s, background .18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--neon-cyan);
  background: #24385855;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(130%);
  width: 98%;
  max-width: 590px;
  background: linear-gradient(111deg, #172538 70%, #156e8b 100%);
  color: var(--color-accent);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -3px 24px 0 var(--neon-blue), 0 2px 14px #0002;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 28px 22px;
  z-index: 20000;
  opacity: 0;
  transition: transform .31s, opacity .23s;
  font-family: var(--font-body);
}
.cookie-banner.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.cookie-banner p {
  color: var(--color-accent);
  margin-bottom: 8px;
  font-size: 1rem;
}
.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cookie-banner .btn-accept {
  background: var(--neon-green);
  color: #152438;
  font-weight: 700;
  border-radius: 7px;
  padding: 10px 25px;
  border: none;
}
.cookie-banner .btn-accept:hover {
  background: var(--neon-cyan);
}
.cookie-banner .btn-reject {
  background: var(--neon-pink);
  color: #fff;
  border-radius: 7px;
  font-weight: 700;
  padding: 10px 25px;
  border: none;
}
.cookie-banner .btn-reject:hover {
  background: #111a22;
  color: var(--neon-pink);
}
.cookie-banner .btn-settings {
  background: none;
  border: 2px solid var(--neon-blue);
  color: var(--neon-blue);
  border-radius: 7px;
  font-weight: 600;
  padding: 10px 25px;
  box-shadow: 0 0 8px var(--neon-blue);
  transition: background .16s, color .18s;
}
.cookie-banner .btn-settings:hover {
  background: var(--neon-blue);
  color: #112638;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%) scale(0.92);
  z-index: 21000;
  background: #111f2b;
  color: var(--color-accent);
  border-radius: 22px;
  box-shadow: 0 8px 56px 0 var(--neon-blue), 0 5px 32px 3px var(--neon-pink)34;
  padding: 32px 30px 28px;
  width: 95vw;
  max-width: 420px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s, transform .26s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal h2 {
  color: var(--neon-cyan);
  margin-bottom: 18px;
}
.cookie-modal .cookie-cat {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-modal label {
  font-size: 1.1rem;
  color: var(--color-accent);
  font-family: var(--font-body);
  cursor: pointer;
}
.cookie-modal .cookie-switch {
  appearance: none;
  width: 36px;
  height: 20px;
  background: #222d3d;
  border: 2px solid var(--color-secondary);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background .18s, border .19s;
  outline: none;
}
.cookie-modal .cookie-switch:checked {
  background: var(--neon-green);
  border: 2px solid var(--neon-green);
}
.cookie-modal .cookie-switch::after {
  content: '';
  display: block;
  position: absolute;
  left: 2px;
  top: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 8px #0003;
  transition: left .18s;
}
.cookie-modal .cookie-switch:checked::after {
  left: 18px;
}
.cookie-modal .cookie-cat-desc {
  font-size: .98rem;
  color: var(--color-secondary);
  margin-top: 4px;
  margin-left: 6px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}
.cookie-modal .cookie-modal-close {
  background: var(--neon-pink);
  color: #fff;
  border-radius: 8px;
  font-size: .98rem;
  padding: 9px 24px;
  border: none;
  transition: background .17s;
}
.cookie-modal .cookie-modal-close:hover {
  background: var(--neon-blue);
  color: #181F27;
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
  width: 11px;
  background: #20324a;
}
::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 7px;
  box-shadow: 0 0 8px var(--neon-blue);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-blue);
}

/* ===== TRANSITIONS, INTERACTIONS ===== */
a, .btn-primary, .btn-secondary, .mobile-menu-toggle, .mobile-menu-close, .mobile-nav a, .cookie-banner button {
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), border var(--transition), transform .17s;
}

/* ===== FLEXBOX-ONLY RESPONSIVE RULES ===== */
@media (max-width: 1100px) {
  .container {
    max-width: 95vw;
    padding: 0 8px;
  }
}
@media (max-width: 900px) {
  .features .feature-grid {
    gap: 18px;
    flex-direction: column;
    align-items: stretch;
  }
  .content-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .section {
    padding: 26px 5px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .features .feature-grid {
    flex-direction: column;
    align-items: stretch;
  }
  .card-container, .content-grid, .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    padding: 16px;
  }
  .about, .about-company, .team, .values, .services-preview, .services-list, .benefits, .faq-preview, .faq-accordion, .faq-contact-cta, .contact-details, .contact-form-info, .contact-brief, .case-studies, .steps, .cta, .testimonials, .confirmation, .legal {
    padding: 22px 6px;
    margin-bottom: 38px;
  }
  h1 {
    font-size: 1.8rem;
  }
  h2 {
    font-size: 1.22rem;
  }
  .btn-primary, .btn-secondary {
    font-size: 1rem;
    padding: 10px 20px;
  }
  .footer-info {
    flex-direction: column;
    gap: 5px;
    margin-top: 6px;
  }
  .cookie-banner {
    max-width: 99vw;
    padding: 18px 7px 16px;
  }
  .cookie-modal {
    padding: 19px 7px 15px;
    font-size: 0.97rem;
  }
}
@media (max-width: 480px) {
  .container {
    max-width: 100vw;
    padding: 0 2px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 8px;
  }
  .mobile-menu {
    padding: 19px 8px 8px;
  }
}
