/* ---- CSS RESET & NORMALIZATION ---- */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #FFF;
  color: #234568;
}
ol, ul {
  list-style: none;
}
a {
  background-color: transparent;
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* ---- BRAND FONTS ---- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Open+Sans:wght@400;600&display=swap');

body {
  font-family: 'Open Sans', Arial, sans-serif;
  background-color: #fff;
  color: #234568;
  font-size: 16px;
  min-height: 100vh;
}

h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #234568;
  line-height: 1.1;
  margin-bottom: 20px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 28px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 18px;
}
h4, h5 {
  font-size: 1rem;
}

p, li, ul, ol, cite, em, span {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #234568;
  font-size: 1rem;
}
p {
  margin-bottom: 16px;
}
strong {
  font-weight: 700;
}
em {
  font-style: italic;
}
cite {
  font-style: normal;
  color: #656d78;
  font-size: 0.97rem;
}

/* ---- PRIMARY BUTTONS ---- */
.btn-primary {
  background: #234568;
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 32px;
  border: none;
  outline: none;
  box-shadow: 0 3px 12px rgba(35,69,104,0.06);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.2s, transform 0.15s;
  margin-top: 10px;
  display: inline-block;
  letter-spacing: 0.04em;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #EEC07A;
  color: #234568;
  box-shadow: 0 8px 22px rgba(35,69,104,0.10);
  transform: translateY(-2px) scale(1.04);
}

/* ---- GENERIC LAYOUT CLASSES ---- */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(35,69,104,0.06);
  background: #fff;
  position: relative;
  padding: 24px;
  min-width: 250px;
  flex: 1 1 320px;
  transition: box-shadow 0.2s, transform 0.18s;
  border: 1px solid #F5F5F8;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card:hover {
  box-shadow: 0 6px 28px rgba(35,69,104,0.13);
  transform: translateY(-3px) scale(1.01);
}

.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(35,69,104,0.09);
  border: 1px solid #F3F3F3;
  margin-bottom: 20px;
  color: #234568;
  min-width: 240px;
  max-width: 480px;
  font-size: 1.07rem;
  transition: box-shadow 0.19s, transform 0.15s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(35,69,104,0.14);
  transform: scale(1.02);
}

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

.expertenliste {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.expertenprofil {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 12px rgba(35,69,104,0.08);
  padding: 22px 18px;
  border: 1px solid #EEEEF2;
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 360px;
}
.expertenprofil .profil-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
}
.bewertung {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
}

.faq {
  margin: 24px 0 12px 0;
}

.footer-nav, .footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-bottom: 12px;
}
.footer-contact {
  margin-top: 10px;
  color: #7d868f;
  font-size: 1rem;
}
footer {
  background: #F6F8FA;
  border-top: 1px solid #E3E4EB;
  padding: 36px 0 20px 0;
  margin-top: 40px;
  font-size: 1rem;
}

/* ---- MAIN NAV (DESKTOP) ---- */
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 0 22px 0;
  background: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  border-bottom: 1px solid #F2F3F7;
  position: relative;
  min-height: 64px;
  z-index: 31;
}
.main-nav a {
  color: #234568;
  padding: 8px 10px;
  border-radius: 18px;
  font-weight: 600;
  transition: background 0.17s, color 0.18s;
}
.main-nav a:not(.btn-primary):hover,
.main-nav a:not(.btn-primary):focus {
  background: #f7f6f0;
  color: #EEC07A;
}
.main-nav img {
  height: 42px;
  object-fit: contain;
  margin-right: 8px;
  vertical-align: middle;
}

/* ---- TABLES ---- */
table {
  width: 100%;
  font-size: 1rem;
  border-collapse: collapse;
  margin: 24px 0;
  background: #fff;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(35,69,104,0.08);
}
thead {
  background: #F8F7F2;
  color: #234568;
}
th, td {
  padding: 15px 14px;
  text-align: left;
  border-bottom: 1px solid #ededf3;
}
th {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.07rem;
}
tr:last-child td {
  border-bottom: none;
}

/* ---- ICONS ---- */
.feature-icons {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  align-items: center;
}
.feature-icons img {
  width: 40px;
  height: 40px;
  opacity: 0.92;
}

/* ---- UNIQUE HIERARCHY CLASSES ---- */
.suchfunktion, .kundenfeedback, .kostenrechner-hinweis, .quickform-hinweis, .service-schnellauswahl, .about-team, .contact-support, .confirmation-message, .support-section {
  background: #FAFAF7;
  border-radius: 14px;
  box-shadow: 0 1px 5px rgba(35,69,104,.04);
  padding: 18px 21px;
  margin-bottom: 20px;
}
.suchfunktion p,
.kundenfeedback p,
.kostenrechner-hinweis p,
.quickform-hinweis p,
.service-schnellauswahl p,
.about-team p,
.contact-support p,
.confirmation-message p,
.support-section p {
  margin-bottom: 0;
}

/* ---- LIST DECORATION ---- */
ul li {
  padding-left: 0;
  margin-bottom: 12px;
  line-height: 1.57;
}
ul li img {
  vertical-align: middle;
  margin-right: 10px;
  width: 22px;
}
ul li:last-child {
  margin-bottom: 0;
}

/* ---- SPACING ENFORCEMENT & FLEX GAPS ---- */
section .content-wrapper > *:not(:last-child) {
  margin-bottom: 20px;
}

/* ---- COOKIE CONSENT BANNER ---- */
#cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  color: #234568;
  box-shadow: 0 -3px 16px rgba(35,69,104,0.11);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 18px 16px;
  z-index: 1000;
  gap: 14px;
  transition: transform 0.33s cubic-bezier(0.55,0,0.1,1);
}
#cookie-consent-banner.hide {
  transform: translateY(115%);
}

.cookie-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.cookie-btn {
  background: #234568;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  border-radius: 30px;
  padding: 9px 24px;
  margin-top: 0;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, transform 0.15s;
}
.cookie-btn.reject {
  background: #EEC07A;
  color: #234568;
}
.cookie-btn.settings {
  background: #fff;
  color: #234568;
  border: 1px solid #234568;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #EEC07A;
  color: #234568;
  transform: translateY(-2px) scale(1.04);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #234568;
  color: #fff;
  border-color: #EEC07A;
}

/* ---- COOKIE MODAL ---- */
#cookie-settings-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  min-width: 320px;
  max-width: 94vw;
  width: 410px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 38px rgba(35,69,104,0.24);
  transform: translate(-50%, -55%) scale(1);
  z-index: 1100;
  padding: 32px 24px 26px 24px;
  display: none;
  animation: fadeInModal .38s cubic-bezier(0.42,0,0.2,1) both;
}
#cookie-settings-modal.open {
  display: block;
}
@keyframes fadeInModal {
  0% { opacity: 0; transform: translate(-50%, -70%) scale(0.96); }
  100% { opacity: 1; transform: translate(-50%, -55%) scale(1); }
}
.cookie-settings-close {
  position: absolute;
  right: 19px;
  top: 19px;
  font-size: 1.6rem;
  background: none;
  cursor: pointer;
  border: none;
  color: #234568;
  padding: 0;
}
.cookie-cat {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}
.cookie-cat-label {
  flex: 1;
  font-weight: 600;
}
.cookie-cat-toggle {
  margin-left: 10px;
}

/* Toggle Switch (Checkbox) */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #EEC07A;
  border-radius: 20px;
  transition: background 0.18s;
}
.cookie-switch input:checked + .cookie-slider {
  background: #234568;
}
.cookie-slider:before {
  position: absolute;
  content: '';
  height: 14px;
  width: 14px;
  left: 4px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(15px);
}

/* Essential cookies always enabled label */
.cookie-always {
  background: #F6F8FA;
  color: #234568;
  font-size: 0.95em;
  font-weight: 600;
  border-radius: 7px;
  margin-left: 15px;
  padding: 3px 12px;
}

/* ---- MOBILE MENU ---- */
.mobile-menu-toggle {
  display: none;
  background: #fff;
  border: 1px solid #E3E4EB;
  border-radius: 14px;
  font-size: 2.1rem;
  color: #234568;
  padding: 3px 16px 5px 16px;
  cursor: pointer;
  position: absolute;
  top: 18px;
  right: 24px;
  z-index: 40;
  transition: background 0.16s, color 0.16s;
  box-shadow: 0 1px 6px rgba(35,69,104,0.06);
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #F6F8FA;
  color: #EEC07A;
}
.mobile-menu {
  display: none;
  position: fixed;
  z-index: 110;
  left: 0;
  right: 0;
  top: 0;
  height: 100vh;
  background: #fff;
  box-shadow: 0 8px 44px 0 rgba(35,69,104,0.18);
  transform: translateX(110%);
  transition: transform 0.38s cubic-bezier(.7,0,.33,1.01);
  flex-direction: column;
  padding: 0;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  padding: 24px 24px 6px 24px;
  background: none;
  border: none;
  color: #234568;
  align-self: flex-end;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #EEC07A;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  margin: 0;
  gap: 18px;
  padding: 36px 28px 12px 36px;
}
.mobile-nav a {
  color: #234568;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 13px 0;
  border-radius: 9px;
  transition: background 0.16s, color 0.14s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #F6F8FA;
  color: #EEC07A;
}

/* ---- RESPONSIVE LAYOUT ---- */
@media (max-width: 1100px) {
  .container {
    max-width: 97vw;
    padding: 0 12px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    font-size: 1rem;
    gap: 12px;
    padding: 22px 0 18px 0;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.25rem; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .container { padding: 0 5vw; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.13rem; }
  .section {
    padding: 27px 6vw;
    margin-bottom: 34px;
  }
  .content-wrapper {
    gap: 13px;
  }
  .expertenliste {
    flex-direction: column;
    gap: 16px;
  }
  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 13px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  .testimonial-card {
    min-width: 160px;
    max-width: unset;
    width: 100%;
    font-size: 1rem;
  }
  .card,
  .expertenprofil {
    min-width: unset;
    max-width: unset;
    width: 100%;
    box-sizing: border-box;
  }
  .feature-icons img {
    width: 30px;
    height: 30px;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.13rem; }
  .section {
    padding: 15px 2vw;
  }
  .cookie-btn {
    font-size: 0.98rem;
    padding: 8px 17px;
  }
  .cookie-cat-label { font-size: 0.98rem; }
  #cookie-settings-modal { width: 97vw; min-width: 0; padding: 20px 4vw 16px 4vw; }
}

/* ---- ANIMATIONS & MICRO-INTERACTIONS ---- */
a, .btn-primary, .main-nav a, .footer-nav a, .footer-legal a, .mobile-nav a, .cookie-btn {
  transition: color 0.16s, background 0.15s, box-shadow 0.17s, transform 0.15s;
}

/* ---- Z-INDEX LAYERING ---- */
header { z-index: 30; position: relative; }
footer { z-index: 5; position: relative; }

/* ---- ACCESSIBILITY/READABILITY FOR TESTIMONIALS ---- */
.testimonial-card, .testimonial-card p, .testimonial-card cite {
  color: #234568;
  background: #fff;
}

/* ---- CUSTOM TYPOGRAPHY SCALE ---- */
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
@media (max-width: 768px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.1rem; }
  h3 { font-size: 1rem; }
}

/* ---- TABLET OPTIMIZATION ---- */
@media (max-width: 1000px) {
  .card-container, .content-grid, .footer-nav, .footer-legal {
    gap: 10px;
  }
}

/*---- FOCUS STATES ----*/
a, .btn-primary, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close, .cookie-settings-close {
  outline: 2px solid transparent;
  outline-offset: 1px;
}
a:focus, .btn-primary:focus, .cookie-btn:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus, .cookie-settings-close:focus {
  outline: 2px solid #EEC07A;
  outline-offset: 2px;
}

/* ---- SCROLLBAR (minimalist) ---- */
::-webkit-scrollbar {
  width: 9px;
  background: #F8F7F2;
}
::-webkit-scrollbar-thumb {
  background: #EEC07A;
  border-radius: 8px;
}

/* ---- HIDE DEFAULT NUMBER ARROWS ---- */
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; }

/* ---- PRINT STYLES ---- */
@media print {
  header, footer, .mobile-menu, #cookie-consent-banner, #cookie-settings-modal { display: none !important; }
  .section { padding: 0 !important; margin: 0 !important; }
  body { color: #000; background: #fff; }
}
