/* --- CSS RESET & BASE --- */
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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: #fff;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.6;
  min-height: 100vh;
  font-size: 1rem;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  text-decoration: none;
  color: #254D70;
  transition: color 0.2s cubic-bezier(.59,.17,.12,1.12);
}
a:hover, a:focus {
  color: #F7A531;
}
ul, ol {
  list-style: none;
}

/* --- BRAND COLORS --- */
:root {
  --color-primary: #254D70;
  --color-secondary: #F7A531;
  --color-accent: #FFFFFF;
  --color-dark: #152332;
  --color-grey: #f3f4f7;
  --color-border: #E2E3E8;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  color: var(--color-primary);
  font-weight: 800;
  letter-spacing: -0.02em;
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 16px;
  line-height: 1.14;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  line-height: 1.18;
  color: var(--color-secondary);
}
h3 {
  font-size: 1.22rem;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--color-primary);
}
h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--color-primary);
}
p, ul, ol {
  margin-bottom: 16px;
  font-size: 1.05rem;
}
strong {
  font-weight: 700;
  color: var(--color-secondary);
}
.subheadline {
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1.24rem;
  color: var(--color-dark);
  margin-bottom: 28px;
  font-weight: 600;
}

/* --- CONTAINER & SPACING PATTERNS --- */
.container {
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 2px 18px 0 rgba(37,77,112,0.08);
  border-radius: 20px;
  background: var(--color-accent);
  padding: 32px 18px;
  transition: box-shadow .23s cubic-bezier(.68,-0.55,.27,1.55);
}
.card:hover {
  box-shadow: 0 8px 30px 0 rgba(247,165,49,0.11);
  z-index: 2;
}
.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;
}
.testimonials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border: 2px solid var(--color-secondary);
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 5px 20px 0 rgba(247,165,49,.06);
  min-width: 280px;
  flex: 1 1 260px;
}
.testimonial-card p {
  color: #243043;
  font-size: 1.08rem;
  font-weight: 500;
  margin-bottom: 6px;
}
.testimonial-card span {
  font-size: 0.97rem;
  font-style: italic;
  color: #254D70;
  opacity: 0.93;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- HERO SECTION --- */
.hero-section {
  background: linear-gradient(120deg, rgba(247,165,49,0.07) 0%, rgba(37,77,112,0.06) 100%);
  border-bottom: 3px solid var(--color-secondary);
  padding: 60px 0 36px 0;
  position: relative;
}
.hero-section .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-section .content-wrapper {
  align-items: flex-start;
  text-align: left;
  gap: 16px;
}
@media (max-width: 768px) {
  .hero-section {
    min-height: 44vh;
    padding: 34px 0 18px 0;
  }
  .hero-section .content-wrapper {
    align-items: flex-start;
    text-align: left;
    gap: 10px;
  }
}

/* --- HEADER & NAV --- */
header {
  background: var(--color-accent);
  box-shadow: 0 4px 32px 0 rgba(37,77,112,0.07);
  position: sticky;
  top: 0;
  z-index: 32;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 70px;
}
.logo img {
  height: 43px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: .03em;
  transition: color .19s cubic-bezier(.68,-0.55,.27,1.55);
  position: relative;
  padding: 4px 2px;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-secondary);
}
.btn-primary {
  background: var(--color-secondary);
  color: #fff;
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  border: none;
  padding: 11px 34px;
  border-radius: 22px;
  box-shadow: 0 5px 24px 0 rgba(247,165,49,0.13);
  cursor: pointer;
  margin-left: 16px;
  letter-spacing: 0.03em;
  outline: none;
  transition: background .22s cubic-bezier(.68,-0.21,.27,1.23), color .21s cubic-bezier(.68,-0.21,.27,1.23), transform .17s cubic-bezier(.68,-0.21,.27,1.23);
}
.btn-primary:hover, .btn-primary:focus {
  background: #ffb443;
  color: var(--color-primary);
  transform: translateY(-2px) scale(1.04) rotate(-1.5deg);
}
.btn-secondary {
  background: var(--color-primary);
  color: var(--color-accent);
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1.03rem;
  padding: 10px 28px;
  border-radius: 21px;
  border: none;
  margin-top: 14px;
  margin-bottom: 6px;
  transition: background .2s, color .2s, transform .17s;
  box-shadow: 0 5px 20px 0 rgba(37,77,112,0.18);
  cursor: pointer;
  letter-spacing: 0.02em;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #19344a;
  color: var(--color-secondary);
  transform: translateY(-1.5px) scale(1.04) rotate(1.5deg);
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: var(--color-accent);
  border: none;
  font-size: 2.2rem;
  padding: 5px 11px;
  border-radius: 40px;
  margin-left: 22px;
  cursor: pointer;
  z-index: 44;
  transition: background .16s, color .16s, box-shadow .16s;
  box-shadow: 0 2px 12px rgba(37,77,112,0.10);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
  box-shadow: 0 4px 20px rgba(37,77,112,0.16);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: rgba(37,77,112,0.98);
  color: #fff;
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  max-width: 96vw;
  height: 100vh;
  z-index: 90;
  transform: translateX(100%);
  pointer-events: none;
  opacity: 0;
  transition: transform .41s cubic-bezier(.55,.08,.43,1), opacity .33s cubic-bezier(.42,0,.27,1.16);
  box-shadow: -6px 0 48px 0 rgba(37,77,112,0.21);
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: #F7A531;
  font-size: 2.8rem;
  font-weight: 700;
  padding: 20px;
  cursor: pointer;
  align-self: flex-end;
  transition: color .2s;
  z-index: 98;
}
.mobile-menu-close:hover {
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin: 24px 34px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.23rem;
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 14px 0 8px 0;
  border-bottom: 2.2px solid transparent;
  transition: color 0.16s, border 0.22s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #F7A531;
  border-bottom: 2.2px solid #F7A531;
}
@media (max-width: 1150px) {
  .main-nav {
    gap: 14px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 11px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    display: none !important;
  }
  .btn-primary {
    margin-left: 6px;
    padding: 9px 21px;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* --- FEATURES & CARDS --- */
.features-grid, .category-grid, .services-grid, .service-teasers, .beratung-grid, .brand-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.feature, .category, .brand-item, .teaser, .beratung-item, .service-item {
  background: var(--color-grey);
  box-shadow: 0 5px 19px 0 rgba(37,77,112,0.05);
  border-radius: 18px;
  padding: 27px 22px 22px 22px;
  margin-bottom: 22px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow .23s cubic-bezier(.77,-0.1,.39,1.19), transform .18s cubic-bezier(.65,-0.19,.23,1.17);
  border: 2.4px solid transparent;
  position: relative;
  min-width: 215px;
}
.feature img, .category img, .brand-item img {
  width: 55px;
  height: 55px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(37,77,112,0.08);
}
.feature:hover, .category:hover, .brand-item:hover, .teaser:hover, .beratung-item:hover, .service-item:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 9px 30px 0 rgba(247,165,49,0.15);
  transform: translateY(-5px) scale(1.025) rotate(-.6deg);
  z-index: 2;
}
.service-item .price {
  color: var(--color-secondary);
  background: rgba(247,165,49,0.11);
  margin-left: 10px;
  border-radius: 13px;
  padding: 3px 11px;
  font-size: 0.97em;
  font-weight: 700;
  vertical-align: baseline;
}

/* --- LISTS & BULLETS --- */
.usps, .brand-benefits, .beratung-vorteile, .trust-signals ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 15px;
  margin: 14px 0 16px 0;
}
.usps li, .brand-benefits li, .beratung-vorteile li, .trust-signals li {
  font-size: 1rem;
  position: relative;
  padding-left: 22px;
  color: #254D70;
  font-weight: 500;
}
.usps li:before, .brand-benefits li:before, .beratung-vorteile li:before, .trust-signals li:before {
  content: '\2022';
  color: var(--color-secondary);
  position: absolute;
  left: 0;
  font-size: 1.2rem;
  top: 0;
}

/* --- CTA SECTION --- */
.cta-section {
  background: linear-gradient(85deg, rgba(247,165,49,0.19) 0%, rgba(37,77,112,0.10) 90%);
  border-radius: 18px;
  box-shadow: 0 5px 24px 0 rgba(37,77,112,0.06);
  margin-bottom: 48px;
  padding: 46px 20px;
}
.cta-section h2 {
  margin-bottom: 21px;
}

/* --- MAP PLACEHOLDER --- */
.map-placeholder {
  background: var(--color-grey);
  border-radius: 15px;
  padding: 32px 16px;
  color: var(--color-dark);
  font-weight: 600;
  text-align: center;
  font-size: 1.11rem;
  min-height: 100px;
}

/* --- SOCIAL LINKS --- */
.social-links ul {
  display: flex;
  gap: 19px;
}
.social-links a img {
  width: 40px;
  height: 40px;
  transition: transform 0.18s;
}
.social-links a:hover img {
  transform: scale(1.13) rotate(-2deg);
}

/* --- NEWSLETTER SIGNUP --- */
.newsletter-signup {
  background: var(--color-secondary);
  color: #fff;
  border-radius: 14px;
  margin-top: 26px;
  padding: 26px 16px 20px 16px;
}
.newsletter-signup h3 {
  color: #fff;
}
.newsletter-signup p, .newsletter-signup strong {
  color: #fff;
}

/* --- FOOTER --- */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 34px 0 12px 0;
  border-top: 5px solid var(--color-secondary);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer-nav {
  display: flex;
  gap: 36px;
  margin-bottom: 11px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 1.02rem;
  transition: color 0.16s;
}
.footer-nav a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}
.footer-logo img {
  margin: 0 auto;
  width: 55px;
  height: 55px;
  margin-top: 8px;
}
footer p {
  font-size: 0.96rem;
  opacity: 0.87;
}

/* --- LEGAL TEXT BLOCKS --- */
.legal-text {
  background: var(--color-grey);
  border-radius: 11px;
  padding: 30px 18px 22px 18px;
  color: #183647;
  margin-bottom: 18px;
  font-size: 1.02rem;
  line-height: 1.6;
}
.legal-text ul {
  margin-top: 9px;
  margin-bottom: 11px;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1250px) {
  .container { max-width: 99vw; }
}
@media (max-width: 1060px) {
  .footer-nav { gap: 20px; }
  .container { padding: 0 8px; }
}
@media (max-width: 900px) {
  .features-grid, .category-grid, .services-grid, .service-teasers, .beratung-grid, .brand-list {
    gap: 16px;
  }
  .feature, .category, .brand-item, .teaser, .beratung-item, .service-item {
    min-width: 165px;
    padding: 22px 12px 16px 12px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.09rem; }
  .section {
    padding: 22px 5px;
    margin-bottom: 28px;
  }
  .content-wrapper {
    gap: 14px;
  }
  .footer-nav {
    gap: 11px;
    font-size: 0.93rem;
  }
  .card-container,
  .content-grid,
  .features-grid,
  .category-grid,
  .services-grid,
  .service-teasers,
  .brand-list,
  .beratung-grid,
  .testimonials-list {
    flex-direction: column;
    gap: 18px;
  }
  .feature, .category, .brand-item, .teaser, .beratung-item, .service-item {
    flex: 1 1 100%;
    min-width: unset;
  }
  .hero-section { padding-top: 26px; }
}
@media (max-width: 600px) {
  .logo img { height: 35px; }
  .footer-logo img { width: 37px; height: 37px; }
  .newsletter-signup { padding: 17px 7px 13px 7px; }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 88;
  width: 100vw;
  background: linear-gradient(85deg, #254D70 90%, #F7A531 100%);
  color: #fff;
  padding: 26px 6vw 20px 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  box-shadow: 0 -2px 22px 0 rgba(37,77,112,0.18);
  font-size: 0.98rem;
  font-family: 'Roboto', Arial, sans-serif;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .38s cubic-bezier(.86,-0.04,.14,1.1), opacity .33s cubic-bezier(.68,.12,.27,1.23);
}
.cookie-consent-banner.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-consent-banner-message {
  flex: 1 1 250px;
}
.cookie-consent-buttons {
  display: flex;
  gap: 18px;
}
.cookie-btn {
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 9px 21px;
  border-radius: 17px;
  border: none;
  cursor: pointer;
  margin-bottom: 3px;
  transition: background .17s, color .17s, transform .19s;
  box-shadow: 0 2px 10px 0 rgba(247,165,49,0.09);
}
.cookie-btn.accept {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #ffb443;
  color: var(--color-primary);
  transform: translateY(-1.5px) scale(1.04);
}
.cookie-btn.reject {
  background: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-secondary);
}
.cookie-btn.settings {
  background: var(--color-grey);
  color: #254D70;
  border: 2px solid #F7A531;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #ffe6bb;
  color: #F7A531;
}
@media (max-width: 700px) {
  .cookie-consent-banner {
    flex-direction: column;
    gap: 13px;
    padding: 19px 3vw 13px 3vw;
    font-size: .96rem;
  }
  .cookie-consent-buttons {
    flex-direction: column;
    gap: 10px;
  }
}

/* --- COOKIE MODAL --- */
.cookie-modal {
  position: fixed;
  z-index: 1000;
  left: 0; right: 0;
  top: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(37,77,112,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .27s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 22px;
  max-width: 410px;
  padding: 30px 28px 25px 28px;
  box-shadow: 0 10px 44px 0 rgba(37,77,112,0.26);
  color: #152332;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  color: var(--color-primary);
  font-size: 2.1rem;
  border: none;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.cookie-modal-content h2 {
  color: var(--color-secondary);
  font-size: 1.31rem;
  font-family: 'Montserrat', 'Roboto', sans-serif;
  margin-bottom: 7px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 13px;
}
.cookie-category {
  padding: 13px 5px;
  background: #f7f7fb;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: .99rem;
  justify-content: space-between;
}
.cookie-category input[type='checkbox'] {
  accent-color: #F7A531;
  width: 19px;
  height: 19px;
}
.cookie-category.essential {
  opacity: .70;
  pointer-events: none;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}
.cookie-modal .cookie-btn {
  flex: 1;
  margin-bottom: 0;
}

/* --- ANIMATIONS & MICRO-INTERACTIONS --- */
.btn-primary, .btn-secondary, .card, .feature, .category, .brand-item, .testimonials-list .testimonial-card, .mobile-menu-toggle {
  transition: box-shadow .22s cubic-bezier(.68,-0.21,.27,1.23), background .21s cubic-bezier(.68,-0.21,.27,1.23), color .2s, transform .18s cubic-bezier(.68,-0.21,.27,1.23);
}

/* --- MISCELLANEOUS --- */
::-webkit-input-placeholder { color: #bcbaba; }
::-moz-placeholder { color: #bcbaba; }
:-ms-input-placeholder { color: #bcbaba; }
::placeholder { color: #bcbaba; }

/* --- PRINT --- */
@media print {
  header, footer, .mobile-menu, .cookie-consent-banner, .cookie-modal { display: none !important; }
}

/* --- ENSURE ENOUGH SPACING (CRITICAL LAYOUT RULES) --- */
.section, .card-container, .card, .content-grid, .features-grid, .category-grid, .services-grid, .brand-list, .service-teasers, .beratung-grid, .testimonials-list {
  margin-bottom: 24px;
}
.card,
.feature,
.category,
.brand-item,
.teaser,
.service-item,
.beratung-item,
.testimonial-card {
  margin-bottom: 20px;
}

/* --- END OF CSS --- */
