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

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #202C34;
  color: #F1E8DB;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

*, *:before, *:after {
  box-sizing: inherit;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: #7AC3A3;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #7AC3A3;
  outline-offset: 2px;
}
a:hover {
  color: #3ffacb;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}
h1 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.6rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

p, li, span, address {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #F1E8DB;
}

ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
strong {
  color: #7AC3A3;
  font-weight: bold;
}

/* CONTAINER & LAYOUT */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: rgba(28, 40, 52, 0.6);
  border-radius: 18px;
}

/* FUTURISTIC GRADIENT BACKGROUND & NEON ACCENTS */
body {
  background: linear-gradient(135deg, #23465E 0%, #111A22 100%);
}
.hero {
  padding: 60px 0 40px 0;
  background: linear-gradient(100deg, #23465E 60%, #7AC3A3 120%);
  border-radius: 0 0 40px 40px;
  position: relative;
  box-shadow: 0 12px 32px 0 rgba(122,195,163,0.05);
}
.hero h1, .hero p {
  color: #fff;
}
.hero .btn-primary {
  margin-top: 24px;
}

/* HEADER */
header {
  background: rgba(20,28,38,0.97);
  position: sticky;
  top: 0;
  z-index: 102;
  box-shadow: 0 2px 14px 0 rgba(34,70,94,0.09);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
}
header img {
  height: 52px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #F1E8DB;
  letter-spacing: 0.3px;
  transition: color 0.2s;
  position: relative;
}
.main-nav a:after {
  content: '';
  display: block;
  margin: 3px auto 0 auto;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #7AC3A3 20%, #fff 80%);
  border-radius: 1px;
  transition: width 0.2s;
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 60%;
}
.main-nav a:hover, .main-nav a:focus {
  color: #7AC3A3;
}
.btn-primary {
  background: #7AC3A3;
  color: #17242D !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.2px;
  padding: 14px 34px;
  margin-left: 18px;
  border: none;
  border-radius: 32px;
  box-shadow: 0 1.5px 8px 0 rgba(122, 195, 163, 0.22);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
  outline: none;
  text-align: center;
  position: relative;
}
.btn-primary:after {
  content: '';
  position: absolute;
  left: 8px; top: 8px; right: 8px; bottom: 8px;
  border-radius: 20px;
  border: 2px solid rgba(34,70,94,0.07);
  pointer-events: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: #3ffacb;
  color: #23465E;
  box-shadow: 0 2px 16px 0 rgba(122,195,163,0.40);
}
.btn-secondary {
  background: transparent;
  color: #7AC3A3;
  border: 2px solid #7AC3A3;
  padding: 12px 30px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 30px;
  margin-top: 10px;
  transition: background 0.22s, color 0.22s, box-shadow 0.22s;
  box-shadow: 0 0.5px 6px 0 rgba(122,195,163,0.14);
  outline: none;
  text-align: center;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #7AC3A3;
  color: #17242D;
  box-shadow: 0 1.5px 16px 0 rgba(122,195,163,0.25);
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 400;
  background: transparent;
  color: #7AC3A3;
  border-radius: 10px;
  border: none;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px 0 rgba(34,70,94,0.06);
  cursor: pointer;
  transition: background 0.18s, color 0.16s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #fff;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: linear-gradient(110deg, #17242D 60%, #23465E 100%);
  transform: translateX(-100vw);
  z-index: 401;
  transition: transform 0.48s cubic-bezier(.86,.07,.06,.99);
  box-shadow: 2px 0 24px 0 rgba(20,136,193,0.08);
  padding: 36px 28px 24px 32px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #7AC3A3;
  font-size: 2.1rem;
  border: none;
  position: absolute;
  top: 24px;
  right: 24px;
  cursor: pointer;
  z-index: 402;
  transition: color 0.2s;
}
.mobile-menu-close:focus {
  color: #3ffacb;
  outline: 2px solid #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 60px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.3rem;
  color: #F1E8DB;
  letter-spacing: 0.2px;
  padding: 10px 0 7px 0;
  border-radius: 4px;
  transition: color 0.18s, background 0.25s;
}
.mobile-nav a:active,
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: rgba(122,195,163, 0.10);
  color: #3ffacb;
}
/* Hide menu & toggle based on breakpoint */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1025px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* NAV SPACING ON MOBILE */
@media (max-width: 1024px) {
  header .container {
    gap: 10px;
  }
  header .btn-primary {
    margin-left: 0;
  }
}

/* RESPONSIVE LAYOUTS */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 20px;
  background: rgba(27, 45, 70, 0.70);
}

@media (max-width: 768px) {
  .section, section {
    padding: 28px 6px;
    margin-bottom: 32px;
    border-radius: 12px;
  }
  h1 {
    font-size: 1.36rem;
  }
  h2 {
    font-size: 1.04rem;
  }
  .container {
    padding: 0 8px;
  }
  .hero {
    padding: 36px 0 23px 0;
    border-radius: 0 0 20px 20px;
  }
}

/* CARD CONTAINERS & FLEXBOX */
.card-container, .feature-grid, .testimonial-list, .footer-nav, .footer-contact, .footer-cta, .content-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 0;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card {
  margin-bottom: 20px;
  background: #253041;
  border-radius: 20px;
  box-shadow: 0 1.2px 16px 0 rgba(34,70,94,0.13);
  padding: 32px 24px;
  position: relative;
  transition: box-shadow 0.22s, border 0.22s;
  border: 1.5px solid transparent;
}
.card:hover, .card:focus-within {
  box-shadow: 0 0 22px 1px #7AC3A3, 0 0 0 1.5px #7AC3A3;
  border: 1.5px solid #7AC3A3;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: rgba(26, 54, 72, 0.64);
  border-radius: 18px;
  padding: 28px 20px;
  min-width: 220px;
  max-width: 340px;
  box-shadow: 0 1.5px 14px 0 rgba(122,195,163,0.05), 0 0 0 1.5px #223D52;
  border: 1px solid #223D52;
  transition: box-shadow 0.2s, border 0.2s;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 0 14px 0 #7AC3A3, 0 0 0 2px #7AC3A3;
  border: 1.5px solid #7AC3A3;
}
.feature-item img {
  height: 38px;
  width: 38px;
  display: block;
  filter: drop-shadow(0 0 4px #7AC3A3);
}
.feature-item h3 {
  font-size: 1.24rem;
  color: #7AC3A3;
  margin-bottom: 6px;
}
.feature-item p {
  color: #F1E8DB;
}

.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 0;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #ffffffcc;
  color: #23465E;
  border-radius: 16px;
  min-width: 260px;
  max-width: 340px;
  box-shadow: 0 3px 32px 0 rgba(34,70,94,0.12);
  margin-bottom: 20px;
  border: 1.5px solid #7AC3A3;
  transition: box-shadow 0.18s, border 0.18s;
}
.testimonial-card p {
  color: #23465E;
  font-size: 1.05rem;
  font-family: 'Roboto', Arial, sans-serif;
  letter-spacing: 0.02em;
}
.testimonial-card span {
  color: #23465E;
  font-size: 0.95rem;
  font-weight: 600;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 0 36px 0 #7AC3A3, 0 0 0 1.5px #23465E;
  border: 1.5px solid #23465E;
}

@media (max-width: 900px) {
  .testimonial-list {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 630px) {
  .feature-item, .testimonial-card {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
}

/* FLEX PATTERNS FROM MANDATE */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 20px; }
  .content-grid { flex-direction: column; gap: 18px; }
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-list > div {
  padding: 18px 0 16px 0;
  border-bottom: 1px solid #223D52;
  transition: background 0.23s;
}
.faq-list > div:last-child {
  border-bottom: none;
}

/* FOOTER */
footer {
  background: #17242D;
  color: #7AC3A3;
  border-radius: 24px 24px 0 0;
  margin-top: 54px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  padding: 48px 22px 28px 22px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-nav a {
  color: #7AC3A3;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.22s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: #F1E8DB;
  font-size: 1.05rem;
}
.footer-contact address {
  font-style: normal;
  color: #fff;
}
.footer-cta {
  margin-top: 14px;
}
footer .btn-primary {
  margin: 0;
}
@media (max-width: 768px){
  footer .container {
    gap: 16px;
    padding: 26px 6px 16px 6px;
  }
}

/* NEON EFFECTS & DECORATIVE */
.btn-primary, .btn-secondary {
  box-shadow: 0 0px 7px 0 #7AC3A3aa;
}
.btn-primary:hover, .btn-secondary:hover {
  box-shadow: 0 0 28px 0 #3ffacbaa;
}

/* ANIMATIONS */
@keyframes neon-glow {
  0% { box-shadow: 0 0 8px 0 #7AC3A3; }
  50% { box-shadow: 0 0 16px 4px #3ffacb; }
  100% { box-shadow: 0 0 8px 0 #7AC3A3; }
}
@keyframes fade-in-up {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: none; }
}
.hero .content-wrapper {
  animation: fade-in-up 1.2s cubic-bezier(.77,0,.18,1) both;
}
.btn-primary:active {
  animation: neon-glow 0.47s linear;
}

/* SPACING & CONSISTENCY */
.card, .feature-item, .testimonial-card {
  margin-bottom: 20px;
}
.content-wrapper > * + * {
  margin-top: 5px;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2000;
  background: rgba(23, 36, 45, 0.99);
  color: #F1E8DB;
  border-radius: 20px 20px 0 0;
  min-height: 64px;
  box-shadow: 0 0 32px 2px #23465E;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100px);
  transition: opacity 0.31s, transform 0.37s;
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner p {
  color: #F1E8DB;
  margin: 0;
  flex-grow: 1;
  max-width: 540px;
  font-size: 1rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner .btn-cookie {
  background: #7AC3A3;
  color: #23465E;
  border: none;
  padding: 12px 24px;
  border-radius: 20px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  margin: 0;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 0 8px 0 #7AC3A377;
}
.cookie-banner .btn-cookie:hover, .cookie-banner .btn-cookie:focus {
  background: #3ffacb;
  color: #23465E;
}
.cookie-banner .btn-cookie.secondary {
  background: transparent;
  border: 2px solid #7AC3A3;
  color: #7AC3A3;
}
.cookie-banner .btn-cookie.secondary:hover, .cookie-banner .btn-cookie.secondary:focus {
  background: #7AC3A3;
  color: #23465E;
}
/* Responsive cookie banner */
@media (max-width:600px){
  .cookie-banner{
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 10px 18px 10px;
    gap: 12px;
  }
  .cookie-banner p{
    max-width: none;
    font-size: 0.97rem;
  }
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  left:0; top:0; right:0; bottom:0;
  background: rgba(12,19,23,0.63);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.visible {
  display: flex;
}
.cookie-modal {
  background: #17242D;
  color: #F1E8DB;
  border-radius: 20px;
  box-shadow: 0 0 40px 0 #7AC3A399;
  padding: 38px 32px 24px 32px;
  width: 98%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: opacity 0.27s, transform 0.27s;
}
.cookie-modal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.cookie-modal h2 {
  font-size: 1.16rem;
  color: #7AC3A3;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
}
.cookie-category label {
  font-size: 1rem;
}
.cookie-toggle {
  width: 42px;
  height: 22px;
  background: #253041;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: background 0.18s;
}
.cookie-toggle input[type=checkbox] {
  display: none;
}
.cookie-toggle .slider {
  position: absolute;
  left: 3px; top: 2px; bottom: 2px;
  width: 18px;
  background: #7AC3A3;
  border-radius: 9px;
  transition: left 0.15s, background 0.22s;
}
.cookie-toggle input:checked + .slider {
  background: #3ffacb;
  left: 21px;
}
.cookie-category .info {
  font-size: 0.92rem;
  color: #BEE8DF;
  margin-left: 5px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  justify-content: flex-end;
}
.cookie-modal .btn-cookie {
  min-width: 120px;
}
.cookie-modal .btn-cookie.secondary {
  background: transparent;
  border: 2px solid #7AC3A3;
  color: #7AC3A3;
}
.cookie-modal .btn-cookie.secondary:hover, .cookie-modal .btn-cookie.secondary:focus {
  background: #7AC3A3;
  color: #23465E;
}
.cookie-modal .cookie-category input:disabled + .slider {
  background: #496A7F;
  opacity: 0.7;
}
@media (max-width:480px){
  .cookie-modal{
    padding: 18px 5px 10px 5px;
    max-width: 99vw;
  }
}

/* Miscellaneous improvements */
hr {
  border: none;
  height: 1.5px;
  background: #223D52;
  margin: 28px 0;
}
.text-section a {
  color: #7AC3A3;
  border-bottom: 1.5px solid #7AC3A3;
  transition: color 0.21s, border 0.21s;
}
.text-section a:hover, .text-section a:focus {
  color: #3ffacb;
  border-color: #3ffacb;
}

/* Icon alignment and accent */
.text-section img[alt*="Icon"], .text-section img[alt*="icon"], .text-section img[alt*="adresse"], .text-section img[alt*="E-Mail"], .text-section img[alt*="Karte"] {
  height: 20px;
  width: 20px;
  margin-right: 8px;
  vertical-align: text-bottom;
  filter: drop-shadow(0 0 2px #7AC3A3);
}

/* Selection styling */
::selection {
  background: #3ffacb;
  color: #17242D;
}

/* Utility spacing */
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }

/* Hide scrollbars for menu overlays */
.mobile-menu,
.cookie-modal-overlay { scrollbar-width: none; }
.mobile-menu::-webkit-scrollbar,
.cookie-modal-overlay::-webkit-scrollbar { display: none; }

/* Print improvements */
@media print {
  .mobile-menu,
  .mobile-menu-toggle,
  .cookie-banner,
  .cookie-modal-overlay,
  header, footer {
    display: none !important;
  }
  section {
    box-shadow: none;
    background: none;
    padding: 0;
  }
}
