/* RESET & NORMALIZE */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #F6F6F2;
  color: #234375;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; height: auto; }
a { color: #234375; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #A5B93C; text-decoration: underline; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button, input, select, textarea {
  font-family: inherit;
  outline: none;
  border: none;
  background: none;
  color: inherit;
}
button, .btn-primary { cursor: pointer; }

/* COLOR VARIABLES (with fallback) */
:root {
  --primary: #234375;
  --secondary: #A5B93C;
  --accent: #F6F6F2;
  --card-bg: #fff;
  --card-shadow: 0 2px 16px 0 rgba(35,67,117,0.09), 0 2px 4px 0 rgba(165,185,60,0.06);
  --border-radius: 16px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: #234375;
}
h1 { font-size: 2.5rem; margin-bottom: 22px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.4rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; }
p { margin-bottom: 16px; }
strong { color: var(--primary); }

/* CONTAINER & LAYOUT */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: linear-gradient(90deg, #f6f6f2 0%, #e7eafd 100%);
  border-radius: var(--border-radius);
}
@media (max-width: 640px) {
  .section { padding: 32px 6px; }
}

/* FLEXBOX CARD LAYOUTS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card {
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  border-radius: var(--border-radius);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 320px;
  min-width: 280px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.25s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 24px 0 rgba(35,67,117,0.20), 0 2px 12px 0 rgba(165,185,60,0.11);
}

.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;
}
@media (max-width: 768px) {
  .content-grid {
    flex-direction: column;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(35,67,117,0.10);
  padding: 20px 28px;
  margin-bottom: 20px;
  flex: 1 1 300px;
  max-width: 530px;
  color: #223156;
  min-width: 220px;
  font-size: 1.07rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: #A5B93C;
  margin-left: auto;
  font-weight: 700;
}
.testimonial-card:hover,
.testimonial-card:focus {
  box-shadow: 0 4px 18px 0 rgba(35,67,117,0.17);
  transform: translateY(-3px);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 16px;
}

/* BUTTONS */
.btn-primary {
  background: linear-gradient(90deg, #234375 0%, #A5B93C 100%);
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  padding: 14px 36px;
  border-radius: 32px;
  border: none;
  box-shadow: 0 2px 6px 0 rgba(35,67,117,0.11);
  display: inline-block;
  transition: background 0.25s, box-shadow 0.2s, transform 0.15s;
  margin-top: 10px;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, #A5B93C 0%, #234375 100%);
  color: #fff;
  box-shadow: 0 4px 16px 0 rgba(35,67,117,0.18);
  transform: translateY(-2px) scale(1.02);
}
.btn-primary:active {
  opacity: 0.89;
}

/* HEADER & NAVIGATION */
header {
  background: linear-gradient(90deg, #234375 0%, #A5B93C 80%);
  color: #fff;
  box-shadow: 0 2px 10px 0 rgba(35,67,117,0.05);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px;
}
header img[alt="ExtraAudita Mobilität"] {
  height: 46px;
  margin-right: 20px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #fff !important;
  padding: 8px 12px;
  border-radius: 7px;
  transition: background 0.18s, color 0.23s;
}
header nav a.btn-primary {
  padding: 12px 28px;
  margin-left: 6px;
  color: #fff;
  background: linear-gradient(90deg, #A5B93C 0%, #234375 100%);
}
header nav a:not(.btn-primary):hover, header nav a:not(.btn-primary):focus {
  background: rgba(246,246,242,0.13);
  color: #A5B93C;
}

.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: #fff;
  margin-left: 14px;
  transition: opacity 0.2s;
  cursor: pointer;
  z-index: 110;
}

@media (max-width: 900px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(120deg, #234375 0%, #A5B93C 100%);
  z-index: 200;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(100vw);
  transition: transform 0.33s cubic-bezier(.52,.39,.64,1.47) 0s;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 22px 30px 16px 0;
  font-size: 2.2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 201;
  align-self: flex-end;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #A5B93C;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  margin: 32px 46px;
  width: 90vw;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.4rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 8px 0;
  letter-spacing: 0.025em;
  transition: color 0.18s, background 0.13s;
  border-radius: 6px;
  width: 100%;
  display: inline-block;
}
.mobile-nav a:active, .mobile-nav a:hover {
  color: #A5B93C;
  background: rgba(246,246,242,0.10);
}

@media (max-width: 640px) {
  .mobile-nav {
    margin: 28px 16px;
    gap: 24px;
  }
  .mobile-menu-close { margin-right: 16px; }
}

/* MAIN CONTENT */
main {
  margin-top: 0;
  margin-bottom: 60px;
  min-height: 60vh;
  width: 100%;
}

.text-section {
  margin-bottom: 24px;
}
.text-section h3 { color: var(--secondary); }

/* TABLE STYLING */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 20px 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 8px rgba(35,67,117,0.05);
}
thead {
  background: #234375;
  color: #fff;
}
thead th { padding: 16px; font-size: 1rem; font-family: 'Montserrat', Arial, Helvetica, sans-serif; }
tbody td {
  padding: 14px;
  color: #234375;
  border-bottom: 1px solid #e3e7ef;
  font-size: 1rem;
}
tbody tr:last-child td { border-bottom: none; }

/* FOOTER */
footer {
  background: linear-gradient(90deg, #234375 15%, #A5B93C 100%);
  color: #fff;
  margin-top: 60px;
  padding: 0;
}
footer .container {
  padding-top: 44px;
  padding-bottom: 38px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 28px 46px;
  align-items: flex-start;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer nav a {
  color: #fff;
  opacity: 0.94;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  transition: color 0.2s;
}
footer nav a:hover,footer nav a:focus { color: #A5B93C; opacity: 1; }
footer .social-links {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  margin-top: 8px;
}
footer .social-links a img {
  width: 28px;
  height: 28px;
  transition: filter 0.18s;
}
footer .social-links a:hover img, footer .social-links a:focus img {
  filter: brightness(1.2) saturate(1.3) drop-shadow(0 0 6px #A5B93C99);
}
footer span {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
footer a[ref="impressum"]{
  align-self: flex-end;
  margin-left: auto;
}
@media (max-width: 820px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 24px;
  }
}
@media (max-width: 640px) {
  footer .container {
    padding-top: 32px;
    padding-bottom: 24px;
  }
}

/* FORMS (GENERIC) */
input, textarea, select {
  border: 1px solid #23437533;
  border-radius: 8px;
  padding: 12px;
  width: 100%;
  margin-bottom: 16px;
  background: #fff;
  transition: border 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: #A5B93C;
  outline: none;
}

/* LISTS WITH ICONS */
ul li, ol li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 1rem;
}
ul li img, ol li img {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* UTILS */
.text-center { text-align: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-20 { gap: 20px; }

/* RESPONSIVENESS */
@media (max-width: 640px) {
  main { margin-bottom: 34px; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.06rem; }
  .section { margin-bottom: 30px; padding: 22px 4px; }
  .container { padding: 0 8px; }
  .card { padding: 18px 10px; min-width: 150px; }
  .testimonial-card { padding: 16px 6px; font-size: 1rem; }
  footer .content-wrapper { gap: 12px; }
}

/* ANIMATIONS & TRANSITIONS */
.section, .card, .btn-primary, .testimonial-card, .mobile-menu, .mobile-menu-close {
  transition-property: box-shadow, color, background, transform, opacity, border;
  transition-duration: 0.22s;
  transition-timing-function: cubic-bezier(0.39, 0.58, 0.57, 1);
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: linear-gradient(90deg, #f6f6f2 60%, #e7eafd 100%);
  box-shadow: 0 -2px 8px 0 rgba(35,67,117,0.09);
  color: #233142;
  padding: 24px 20px 24px 20px;
  z-index: 3000;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  font-size: 1rem;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  justify-content: space-between;
  flex-wrap: wrap;
  opacity: 1;
  pointer-events: auto;
  transition: transform 0.4s cubic-bezier(.34,.92,.54,1.13), opacity 0.18s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(32px);
}
.cookie-banner__text {
  flex: 1 1 220px;
  max-width: 48vw;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
}
.cookie-banner button, .cookie-btn {
  background: #234375;
  color: #fff;
  border-radius: 24px;
  padding: 8px 28px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  border: none;
  margin-left: 0;
  box-shadow: 0 2px 4px 0 rgba(35,67,117,0.07);
  transition: background 0.18s, color 0.14s, box-shadow 0.13s;
}
.cookie-banner .cookie-btn-settings {
  background: #A5B93C;
  color: #fff;
}
.cookie-banner .cookie-btn-reject {
  background: #fff;
  color: #234375;
  box-shadow: 0 1px 3px 0 rgba(35,67,117,0.11);
}
.cookie-banner button:hover, .cookie-btn:hover {
  background: #A5B93C;
  color: #fff;
}
.cookie-banner .cookie-btn-reject:hover {
  background: #e7eafd;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 8px;
  }
  .cookie-banner__text {
    max-width: 94vw;
    font-size: 0.97rem;
  }
  .cookie-banner__actions { gap: 8px; }
}

/* COOKIE PREFERENCES MODAL */
#cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(35,67,117,0.26);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4000;
  pointer-events: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.21s, visibility 0.18s;
}
#cookie-modal.open { opacity: 1; visibility: visible; }

.cookie-modal__content {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 36px 0 rgba(35,67,117,0.21);
  padding: 34px 38px;
  min-width: 312px;
  max-width: 96vw;
  width: 420px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeinmodal 0.31s cubic-bezier(.43,1.63,.28,.86);
}
@keyframes fadeinmodal {
  from { opacity: 0; transform: scale(0.91) translateY(38px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal__content h3 {
  color: var(--primary);
  font-size: 1.24rem;
  margin-bottom: 12px;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
.cookie-modal__category label {
  font-size: 1rem;
  color: #223156;
  flex: 1;
}

.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; cursor: pointer; top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #eee;
  border-radius: 22px;
  transition: .2s;
}
.switch input:checked + .slider {
  background: #A5B93C;
}
.switch .slider:before {
  position: absolute; content: '';
  height: 16px; width: 16px;
  left: 4px; bottom: 3px;
  background: #fff;
  transition: .2s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(35,67,117,0.15);
}
.switch input:checked + .slider:before {
  transform: translateX(18px);
}

.cookie-modal__content .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 14px;
}
@media (max-width: 480px) {
  .cookie-modal__content { padding: 20px 6px; min-width: 0; width: 97vw; }
  .cookie-modal__content .cookie-btns { gap: 8px; }
}

/* REMOVE NUMBER SPINNERS on type=number */
input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type='number'] { -moz-appearance: textfield; }

/* Z-INDEX MANAGEMENT for header, mobile menu, cookie banner */
header { z-index: 50; }
.mobile-menu { z-index: 200; }
.cookie-banner { z-index: 3000; }
#cookie-modal { z-index: 4000; }

/* FOCUS RINGS & ACCESSIBILITY */
:focus-visible {
  outline: 2px solid #A5B93C;
  outline-offset: 2px;
}

/*--- END OF STYLE.CSS ---*/
