/* --- 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;
  vertical-align: baseline;
  font-size: 100%;
  box-sizing: border-box;
}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section,main {
  display: block;
}
body {
  line-height: 1.25;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #182234;
  color: #EEF2F6;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #F2A541;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #fff;
  text-decoration: underline;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
strong {
  font-weight: bold;
}

/* ------ FONTS ------ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:700,800&family=Open+Sans:400,600&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #FFFFFF;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 800;
}
h2 {
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.subtitle {
  font-size: 1.25rem;
  color: #F2A541;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
}
p, li, ul, ol, .faq-content {
  color: #EEF2F6;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 12px;
}
.text-section ul{
  margin-bottom: 20px;
}

/* ------ BRAND COLORS AS CSS VARIABLES ------ */
:root {
  --primary: #205375;
  --primary-d: #1A4460;
  --secondary: #EEF2F6;
  --white: #FFFFFF;
  --accent: #F2A541;
  --accent-neon: #ffdd85;
  --dark-bg: #182234;
  --neon-shadow: 0 0 12px #F2A541, 0 0 32px #205375;
  --card-bg: #1B283C;
}

/* ------ LAYOUT UTILITIES ------ */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.content-row {
  display: flex;
  flex-direction: row;
  gap: 32px;
  flex-wrap: wrap;
}

/* --- FLEX WRAP GRID FOR FEATURES --- */
.features-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: 0 2px 20px rgba(50,80,140,0.16), 0 0 0 1.5px #F2A54144;
  padding: 28px 24px;
  min-width: 230px;
  flex: 1 1 220px;
  gap: 15px;
  margin-bottom: 20px;
  position: relative;
  border-left: 3px solid var(--accent);
  transition: box-shadow 0.24s, transform 0.18s;
}
.feature-item:hover {
  box-shadow: 0 6px 32px #F2A54133, 0 0 10px #F2A541;
  transform: translateY(-4px) scale(1.02);
  z-index: 1;
}
.feature-item img {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
}

/* --- HERO --- */
.hero {
  background: linear-gradient(110deg, #1B283C 60%, var(--primary-d) 100%);
  box-shadow: 0 0 96px 0 #20537511 inset;
  padding-top: 54px;
  padding-bottom: 54px;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 680px;
  background: transparent;
  padding: 0;
  gap: 20px;
}

/* --- BUTTONS --- */
.button {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 999px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  background: var(--accent);
  color: #182234;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: none;
  box-shadow: 0 0 20px 0 #F2A54144;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.18s, color 0.18s, box-shadow 0.22s, transform .16s;
  outline: none;
  text-shadow: 0 2px 12px #FFF7EB99;
}
.button.primary {
  background: var(--accent);
  color: #182234;
}
.button.primary:hover,
.button.primary:focus {
  background: #ffd77c;
  color: #1A4460;
  box-shadow: 0 0 40px 0 #F2A54199, 0 0 8px var(--accent-neon);
  transform: translateY(-2px) scale(1.04);
}
.button.secondary {
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--accent);
}
.button.secondary:hover {
  color: var(--primary);
  background: var(--accent);
}
.button:active {
  transform: scale(0.97);
}

/* --- MAIN NAVIGATION & HEADER --- */
header {
  background: #162038;
  box-shadow: 0 2px 24px #19304A13;
  z-index: 30;
}
.header-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}
.logo img,
.logo-footer img {
  height: 46px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 26px;
}
.main-nav a {
  color: #EEF2F6;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 4px 0 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-bottom 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}
/* Hide mobile toggle on desktop */
.mobile-menu-toggle {
  display: none;
}

/* --- TESTIMONIALS --- */
.testimonials {
  background: #212E40;
  box-shadow: 0 0 62px #20537519 inset;
  padding-bottom: 56px;
  padding-top: 48px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #FFFFFF;
  color: #22284A;
  border-radius: 18px;
  padding: 24px 26px;
  margin-bottom: 20px;
  box-shadow: 0 5px 32px #20537511, 0 0 1.5px #20537533;
  gap: 20px;
  min-width: 220px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.testimonial-card p {
  color: #29303E;
  font-size: 1.04rem;
  margin-bottom: 6px;
}
.testimonial-meta span {
  color: #205375;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* --- CTA SECTION --- */
.cta {
  background: linear-gradient(105deg, #232F42 60%, #205375 100%);
  box-shadow: 0 0 40px #2B3F6033 inset;
  border-radius: 18px;
  margin-bottom: 60px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.cta h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 0.6em;
}
.cta p {
  color: #EEF2F6;
  font-size: 1.13rem;
  margin-bottom: 12px;
}

/* --- CARD STYLES --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: 0 2px 30px 0 #20537523, 0 0 1.5px #F2A54133;
  padding: 28px 24px;
}

/* --- ACCORDION FAQ --- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 2px 16px #20537518;
  margin-bottom: 12px;
}
.faq-item h2 {
  font-size: 1.1rem;
  color: #F2A541;
  padding: 16px 18px 2px 18px;
  cursor: pointer;
  transition: color 0.15s;
}
.faq-item h2:after {
  content: '+';
  float: right;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2em;
  margin-left: 10px;
  transition: transform .2s;
}
.faq-item.open h2:after {
  content: '-';
  transform: rotate(180deg);
}
.faq-content {
  display: none;
  color: #eef2f6;
  font-size: 1rem;
  padding: 0 18px 18px 18px;
  background: none;
}
.faq-item.open .faq-content {
  display: block;
  animation: faqdown 0.3s cubic-bezier(.4,2,.4,1) both;
}
@keyframes faqdown {
  0% { opacity:0; transform:translateY(-8px); }
  100% { opacity:1; transform:translateY(0); }
}

/* --- MAP & PLACEHOLDER --- */
.map-placeholder {
  background: var(--primary);
  border-radius: 12px;
  color: #fff;
  padding: 28px 20px;
  margin-top: 32px;
  box-shadow: 0 1.5px 10px #20537522, 0 0 1.5px #20537533;
}
.map-placeholder h3 {
  color: var(--accent);
  margin-bottom: 8px;
}

/* --- PROJECT LISTS --- */
.project-benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}
.project-benefits li {
  color: #F2A541;
  font-weight: 600;
  font-size: 1rem;
  padding-left: 4px;
}

/* --- FOOTER --- */
footer {
  background: #162038;
  padding: 44px 0 24px 0;
  border-top: 2px solid #20537544;
  color: #EEF2F6;
}
.footer-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.logo-footer img {
  height: 34px;
  width: auto;
  opacity: 0.96;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}
.footer-nav a {
  color: #EEF2F6;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color 0.18s;
}
.footer-nav a:hover {
  color: var(--accent);
}
.footer-contact {
  min-width: 210px;
}
.footer-contact p,
.footer-contact a {
  color: #dce7f7;
  font-size: 0.96rem;
  margin-bottom: 8px;
}
.footer-contact a:hover {
  color: var(--accent);
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: #1B283C;
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 16px;
  box-shadow: 0 0 14px #F2A54157;
  transition: background 0.2s, color 0.16s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #ffd77c;
  color: #205375;
}
.mobile-menu {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #101526ee;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform .32s cubic-bezier(.42,.9,.41,1) 0s, opacity .28s;
  box-shadow: 0 0 180px #1A4460aa;
  transform: translateX(100%);
  opacity: 0;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 2.2rem;
  background: none;
  color: var(--accent);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.18s;
}
.mobile-menu-close:hover {
  background: #fff1e5;
  color: #205375;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  margin-top: 48px;
}
.mobile-nav a {
  color: #fafaff;
  background: none;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 12px 0;
  border-radius: 10px;
  min-width: 220px;
  text-align: center;
  transition: background 0.18s, color 0.16s, box-shadow 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #1B283C;
  background: var(--accent);
  box-shadow: 0 0 18px #F2A54155;
}

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 10000;
  width: 100vw;
  background: #232F42;
  color: #fff;
  padding: 28px 16px 20px 16px;
  box-shadow: 0 -6px 24px #1A446066, 0 -1.5px 1.5px #F2A54133;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  font-size: 1rem;
  transition: transform .29s, opacity .24s;
}
.cookie-banner .cookie-banner-text {
  flex: 1 1 0%;
  color: #fff;
  font-size: 1.04rem;
  margin-right: 24px;
}
.cookie-banner-btn-group {
  display: flex;
  flex-direction: row;
  gap: 16px;
  flex-shrink: 0;
}
.cookie-banner .button {
  padding: 10px 22px;
  font-size: 0.98rem;
}
.cookie-banner .button {
  margin: 0;
}
.cookie-banner.hide {
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
}

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 10001;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  justify-content: center;
  align-items: center;
  background: #161c2fdd;
  animation: cookieFadeIn 0.28s cubic-bezier(.4,2,.6,1) both;
}
.cookie-modal.open {
  display: flex;
}
@keyframes cookieFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal-content {
  background: #212E40;
  color: #FFFFFF;
  border-radius: 20px;
  padding: 38px 28px 28px 28px;
  max-width: 420px;
  box-shadow: 0 10px 42px #20537588;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  animation: cookieModalPop .28s cubic-bezier(.4,2,.7,1.2) both;
}
@keyframes cookieModalPop {
  0% { transform: translateY(-30px) scale(.86); opacity:0; }
  100% { transform: translateY(0) scale(1); opacity:1; }
}
.cookie-modal .close-modal {
  position: absolute;
  right: 18px;
  top: 18px;
  padding: 2px 10px;
  border-radius: 50%;
  background: none;
  color: var(--accent);
  font-size: 1.7rem;
  border: none;
  cursor: pointer;
  transition: background 0.17s;
}
.cookie-modal .close-modal:hover {
  background: #fffcf4;
  color: #1A4460;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 0;
}
.cookie-category label {
  flex: 1 1 0%;
}
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #d4dbdd;
  border-radius: 16px;
  transition: background 0.18s;
}
.cookie-toggle input:checked + .cookie-slider {
  background: var(--accent);
}
.cookie-slider:before {
  content: '';
  position: absolute;
  left: 3px;
  bottom: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.19s;
  box-shadow: 0 1.5px 4px #20537522;
}
.cookie-toggle input:checked + .cookie-slider:before {
  transform: translateX(20px);
}
.cookie-category.essential .cookie-toggle input {
  pointer-events: none;
}
.cookie-category.essential label:after {
  content: '(immer aktiviert)';
  font-size: 0.92em;
  color: #D2B06C;
  margin-left: 10px;
}

.cookie-modal .button {
  font-size: 1rem;
  min-width: 120px;
}

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
  .container {
    max-width: 92vw;
  }
}
@media (max-width: 900px) {
  .features-grid {
    gap: 18px;
  }
  .feature-item {
    min-width: 160px;
    font-size: 1rem;
    padding: 24px 18px;
  }
  .footer-row {
    flex-direction: column;
    gap: 32px;
  }
}
@media (max-width: 768px) {
  .header-row {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .hero {
    padding-top: 36px;
    padding-bottom: 36px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  .features-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature-item {
    min-width: 0;
    width: 100%;
  }
  .testimonial-card {
    max-width: 98vw;
    padding: 16px 10px;
    border-radius: 14px;
  }
  .cta {
    border-radius: 10px;
    margin-bottom: 36px;
    padding: 20px 8px;
  }
  .section {
    margin-bottom: 40px;
    padding: 22px 8px;
  }
  .content-row, .text-image-section {
    flex-direction: column;
    gap: 14px;
  }
  .footer-row {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .footer-nav {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 16px 8px 14px 8px;
    font-size: 0.99rem;
  }
  .cookie-banner .cookie-banner-text {
    margin-right: 0;
  }
  .cookie-modal-content {
    padding: 24px 10px 14px 10px;
    width: 95vw;
    min-width: 0;
  }
}
@media (max-width: 500px) {
  .logo img, .logo-footer img {
    height: 36px;
  }
  .footer-row {
    gap: 12px;
  }
}

/* --- ANIMATIONS AND TRANSITIONS --- */
.button, .feature-item, .testimonial-card, .mobile-menu, .faq-content, .card {
  transition: all 0.18s cubic-bezier(.41,1.8,.32,1);
}

/* --- SELECTION --- */
::selection {
  background: #205375;
  color: #fff;
}

/* --- FOCUS VISIBLE --- */
a:focus, button:focus, .button:focus, .cookie-banner .button:focus, .close-modal:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- NEON EFFECTS (on demand) --- */
.neon {
  text-shadow: 0 0 6px var(--accent), 0 0 12px #fff4;
  color: #fff;
  letter-spacing: 0.045em;
}

/* ------- END ------- */
