/* =====================
   CYCLORA CIRCUIT STYLE.CSS
   Gradient Modern Design (Flexbox only)
   Brand colors: #143965 (Primary), #F8B047 (Secondary), #E5E5E5 (Accent)
   Fonts: 'Montserrat', 'Open Sans'
==================== */

/* --- CSS RESET & NORMALIZE --- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #143965;
  background: linear-gradient(135deg, #f7f9fc 0%, #e5e5e5 100%);
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #143965;
  margin-bottom: 16px;
  line-height: 1.15;
}
h1 { font-size: 2.6rem; margin-bottom: 18px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.3rem; margin-bottom: 10px; }

p, ul, ol {
  margin-bottom: 16px;
  font-size: 1rem;
}

ul, ol {
  padding-left: 22px;
}
ul li, ol li {
  margin-bottom: 8px;
  line-height: 1.5;
}
a {
  color: #143965;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F8B047;
}
img {
  max-width: 100%;
  display: block;
}

/* --- CONTAINER & SECTION LAYOUT --- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

/* --- HEADER --- */
header {
  background: linear-gradient(90deg, #143965 80%, #4e6690 100%);
  color: #fff;
  width: 100%;
  padding: 0 0;
  min-height: 72px;
  box-shadow: 0 2px 24px 0 rgba(20,57,101,0.07);
  position: relative;
  z-index: 1002;
}
.header-logo {
  display: flex;
  align-items: center;
  height: 72px;
  padding: 0 16px;
}
.header-logo img {
  height: 44px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-left: 20px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  font-weight: 500;
  font-size: 1.05rem;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a.active {
  background: #F8B047;
  color: #143965;
}
.cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  margin-left: auto;
  color: #fff;
  background: linear-gradient(90deg,#F8B047 70%,#f9c77d 100%);
  border: none;
  border-radius: 32px;
  padding: 11px 32px;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .03em;
  box-shadow: 0 2px 18px 0 rgba(248,176,71,0.12);
  transition: background 0.19s, color 0.15s, box-shadow 0.15s;
  cursor: pointer;
  text-align: center;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg,#f9c77d 0%,#F8B047 100%);
  color: #143965;
  box-shadow: 0 4px 32px 0 rgba(248,176,71,0.15);
}

header,
.header-logo,
.main-nav,
.cta-btn,
.mobile-menu-toggle {
  /* Multi-row header: flex container */
  display: flex;
  align-items: center;
}
header {
  flex-direction: row;
  justify-content: flex-start;
  gap: 18px;
  position: sticky;
  top: 0;
}

/* --- MOBILE NAV --- */
.mobile-menu-toggle {
  margin-left: 18px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.1rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1202;
  display: none;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 84vw;
  max-width: 370px;
  background: #143965;
  box-shadow: -4px 0 24px 0 rgba(20,57,101,.15);
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(.77,.12,.28,1.02);
  z-index: 2002;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 40px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  margin-bottom: 18px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 12px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  padding: 12px 10px;
  border-radius: 7px;
  transition: background .17s, color .17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F8B047;
  color: #143965;
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 10px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .cta-btn {
    margin-right: 8px;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* --- HERO & SECTION GENERAL --- */
section {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 18px 0 rgba(20,57,101,0.07);
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
}
section:first-of-type {
  /* HERO section variant */
  background: linear-gradient(100deg,#E5E5E5 0%, #f7f9fc 45%, #fff 100%);
  border-radius: 0 0 32px 32px;
  box-shadow: 0 6px 24px 0 rgba(20,57,101,0.08);
  padding-top: 52px;
}

/* --- FLEXBOX GRIDS --- */
.features-grid, .team-list, .card-container, .pricing-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.features-grid {
  margin-top: 20px;
}
.pricing-grid {
  justify-content: space-between;
}

.team-list {
  margin-bottom: 24px;
}

.qualifikationen-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  background: #f7f9fc;
  border-radius: 16px;
  padding: 18px 20px;
}

/* Card Designs */
.card, .feature-item, .pricing-item, .team-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 16px 0 rgba(20,57,101,0.08);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  min-width: 220px;
  flex: 1 1 240px;
  transition: box-shadow .2s, transform .18s;
}
.card:hover, .feature-item:hover, .pricing-item:hover, .team-card:hover {
  box-shadow: 0 8px 32px 0 rgba(20,57,101,0.13);
  transform: translateY(-3px) scale(1.022);
}

.feature-item img {
  height: 44px;
  width: 44px;
  background: #E5E5E5;
  border-radius: 100%;
  padding: 8px;
}
.feature-item h3 {
  color: #143965;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-item p {
  color: #273951;
  font-size: 0.99rem;
}

.pricing-item h3 {
  font-size: 1.2rem;
  color: #F8B047;
  margin-bottom: 12px;
}
.pricing-item p {
  font-weight: 700;
  font-size: 1.07rem;
  color: #143965;
  margin-bottom: 10px;
}

.team-card h3 {
  color: #143965;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 1.13rem;
}
.team-card p {
  font-size: 0.99rem;
  margin-bottom: 6px;
  color: #4e6690;
}

/* --- TESTIMONIAL CARDS/SLIDER --- */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.testimonial-card {
  background: #E5E5E5;
  border-radius: 17px;
  box-shadow: 0 2px 8px 0 rgba(20,57,101,0.07);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  max-width: 390px;
  color: #143965;
  font-weight: 500;
}
.testimonial-card p {
  color: #143965;
  font-size: 1.03rem;
  margin-bottom: 5px;
}
.testimonial-card span {
  color: #4e6690;
  font-size: .98rem;
}

/* --- TEXT IMAGE SECTION --- */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* --- SPECIAL: CONTACT PAGE INFOS --- */
.contact-infos {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
  margin-top: 18px;
  margin-bottom: 20px;
}
.info-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: #f7f9fc;
  border-radius: 13px;
  padding: 18px 17px;
  min-width: 170px;
}
.info-block img {
  height: 30px;
  width: 30px;
}
.info-note {
  margin-top: 18px;
  background: #e5e5e5;
  border-radius: 13px;
  padding: 14px 16px;
  font-size: .99rem;
  color: #143965;
}

.anfahrt-info {
  background: #f7f9fc;
  border-radius: 13px;
  padding: 17px 18px;
  color: #4e6690;
}

/* --- SPACING PATTERNS (MANDATORY) --- */
.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; }

/* --- MORE LINKS --- */
.more-link {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #F8B047;
  border-bottom: 2px solid #F8B047;
  transition: color .14s, border-color .18s;
  padding-bottom: 2px;
}
.more-link:hover {
  color: #143965;
  border-color: #143965;
}

/* --- CTA BUTTONS, ALL SCREENS --- */
.cta-btn {
  margin-top: 12px;
  display: inline-block;
}

/* --- FOOTER --- */
footer {
  background: linear-gradient(90deg,#143965 80%,#4e6690 100%);
  color: #fff;
  padding: 38px 20px 26px 20px;
  text-align: left;
  border-radius: 30px 30px 0 0;
  margin-top: 70px;
}
.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.footer-logo img {
  height: 38px;
  width: auto;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 18px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02rem;
  opacity: .85;
  transition: color .17s, opacity .15s;
}
.footer-nav a:hover {
  color: #F8B047;
  opacity: 1;
}
.footer-contact {
  margin-bottom: 18px;
}
.footer-contact p {
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 7px;
}
footer p:last-child {
  font-size: 0.92rem;
  opacity: .7;
  margin-top: 13px;
}

/* --- COOKIE CONSENT --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: linear-gradient(95deg,#143965 80%,#4e6690 100%);
  color: #fff;
  box-shadow: 0 -2px 24px 0 rgba(20,57,101,.10);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 22px 20px 20px 20px;
  z-index: 9999;
  font-size: 1rem;
  animation: cookieSlideIn .7s cubic-bezier(.25,.68,.51,1.36);
}
@keyframes cookieSlideIn {
  0%{ transform: translateY(100%); opacity:0; }
  100%{ transform: translateY(0); opacity:1; }
}
.cookie-banner__text {
  max-width: 450px;
}
.cookie-banner__buttons {
  display: flex;
  flex-direction: row;
  gap: 15px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 25px;
  padding: 8px 20px;
  margin: 0 0 0 0;
  min-width: 121px;
  font-weight: 600;
  font-size: 1rem;
  transition: background .2s, color .16s, box-shadow .17s;
  cursor: pointer;
}
.cookie-btn.accept {
  background: #F8B047;
  color: #143965;
}
.cookie-btn.accept:hover {
  background: #143965;
  color: #fff;
  box-shadow: 0 4px 24px 0 rgba(248,176,71,0.15);
}
.cookie-btn.reject {
  background: #e5e5e5;
  color: #143965;
}
.cookie-btn.reject:hover {
  background: #ff5b5b;
  color: #fff;
}
.cookie-btn.settings {
  background: #fff;
  color: #143965;
  border: 1.5px solid #F8B047;
}
.cookie-btn.settings:hover {
  background: #F8B047;
  color: #143965;
}

/* Cookie Preferences Modal */
.cookie-modal {
  display: none; /* toggled with .open */
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 11000;
  background: rgba(20,57,101,.38);
  align-items: center;
  justify-content: center;
  animation: modalFadeIn .3s cubic-bezier(.28,.92,.43,1.12);
}
@keyframes modalFadeIn {
  0%{ opacity:0; }
  100%{ opacity:1; }
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal-dialog {
  background: #fff;
  color: #143965;
  border-radius: 22px;
  padding: 38px 32px 30px 32px;
  max-width: 400px;
  box-shadow: 0 6px 42px 0 rgba(20,57,101,.23);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 10px;
}
.cookie-modal-header h2 {
  font-size: 1.25rem;
  color: #143965;
  margin-bottom: 0;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: #143965;
  font-size: 1.7rem;
  cursor: pointer;
  padding: 3px 9px;
  border-radius: 9px;
  transition: background .18s, color .17s;
}
.cookie-modal-close:hover {
  background: #F8B047;
  color: #fff;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 12px;
}
.cookie-category label {
  font-size: 1rem;
  flex: 1;
  color: #143965;
}
.cookie-category input[type="checkbox"] {
  accent-color: #F8B047;
  width: 21px;
  height: 21px;
}
.cookie-category.essential label {
  font-weight: 700;
  color: #143965;
}
.cookie-category.essential input[type="checkbox"] {
  display: none;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-top: 8px;
  justify-content: flex-end;
}

/* --- ANIMATIONS --- */
.cta-btn, .card, .feature-item, .testimonial-card, .pricing-item, .team-card, .mobile-menu, .cookie-banner, .cookie-modal-dialog {
  transition: box-shadow .17s, transform .17s, background .22s, color .15s;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 880px) {
  .container {
    padding: 0 8px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.05rem; }
  section {
    padding: 28px 7px;
    margin-bottom: 32px;
    border-radius: 18px;
  }
  .footer-logo img {
    height: 30px;
  }
  .features-grid, .pricing-grid, .testimonial-slider, .card-container, .team-list {
    flex-direction: column;
    gap: 20px;
  }
  .content-wrapper {
    gap: 12px;
  }
  .testimonial-card {
    max-width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .contact-infos {
    flex-direction: column;
    gap: 16px;
  }
  .mobile-menu {
    width: 100vw; max-width: none;
  }
}
@media (max-width: 550px) {
  h1 { font-size: 1.32rem; }
  h2 { font-size: 1.1rem; }
  .cta-btn { font-size: .97rem; padding: 10px 22px; }
  .cookie-banner__text { font-size: .93rem; }
  .cookie-modal-dialog { padding: 22px 10px 22px 10px; }
}

/* --- UTILITY & OVERRIDES --- */
::-webkit-input-placeholder {
  color: #b3b2ae;
}
::-moz-placeholder {
  color: #b3b2ae;
}
:-ms-input-placeholder {
  color: #b3b2ae;
}
::placeholder {
  color: #b3b2ae;
}

/* --- Hide scrollbar for mobile menu and cookie modal for aesthetics --- */
.mobile-menu, .cookie-modal-dialog {
  scrollbar-width: thin;
  scrollbar-color: #F8B047 #f7f9fc;
}
.mobile-menu::-webkit-scrollbar, .cookie-modal-dialog::-webkit-scrollbar {
  width: 7px;
  background: #f7f9fc;
}
.mobile-menu::-webkit-scrollbar-thumb, .cookie-modal-dialog::-webkit-scrollbar-thumb {
  background: #F8B047;
}

/* --- Misc --- */
.next-steps, .teaser-links {
  background: #f7f9fc;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 13px;
}
.teaser-links ul li {
  margin-bottom: 6px;
}

/* --- Z-INDEX MANAGEMENT --- */
.mobile-menu { z-index: 2002; }
.cookie-banner { z-index: 9999; }
.cookie-modal { z-index: 11000; }
header { z-index: 1002; }

/* --- Accessibility: Focus Styles --- */
a:focus, button:focus, .cta-btn:focus {
  outline: 2px dotted #F8B047;
  outline-offset: 3px;
}

/* END Cyclora Circuit Style */
