/* =========================
   FervorSys Beglaubigungen Style CSS
   modern_bold design: Bold, modern, high contrast, strong typography
   =========================== */

/* 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,
main, 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;
}
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  line-height: 1.55;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #fff;
  color: #233045;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a { color: #334E6C; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #233045; text-decoration: underline; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea {
  font-family: inherit; font-size: inherit;  outline: none;
  border: none; background: none; padding: 0; box-shadow: none;
}

/* TYPOGRAPHY & HEADINGS */

h1, h2, h3, h4, h5 {
  font-family: 'Merriweather', serif;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #334E6C;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; line-height: 1.13; margin-bottom: 24px; }
h2 { font-size: 2rem; line-height: 1.23;  margin-bottom: 20px; }
h3 { font-size: 1.5rem; line-height: 1.25; margin-bottom: 16px; font-weight: 800; }
h4 { font-size: 1.13rem; font-weight: 700;  }
h5 { font-size: 1rem; font-weight: 700; }
p, ul, ol, blockquote, address { font-size: 1.125rem; margin-bottom: 14px; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.15rem; }
  p, ul, ol, blockquote, address { font-size: 1rem; }
}

strong, b { font-weight: 900; color: #233045; }

/* STRUCTURAL SPACING */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 14px 0 rgba(51, 78, 108, 0.07);
}
@media (max-width: 768px) {
  .section {
    padding: 24px 8px;
    margin-bottom: 38px;
  }
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  max-width: 760px;
}

/* FLEXBOX LAYOUTS */

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(51, 78, 108, 0.08);
  padding: 28px 22px 24px 22px;
  min-width: 250px;
  flex: 1 1 290px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card:last-child {
  margin-bottom: 0;
}

.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) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F3E9DC;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(51, 78, 108, 0.08);
  margin-bottom: 24px;
  color: #233045;
  font-size: 1.15rem;
}
.testimonial-card:last-child { margin-bottom: 0; }
.testimonial-slider {
  display: flex;
  flex-direction: row;
  gap: 24px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .testimonial-slider {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    font-size: 1rem;
  }
}

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

/* HERO SECTION */
.hero {
  background-color: #334E6C;
  color: #fff;
  padding: 56px 0 42px 0;
  display: flex;
  align-items: center;
  min-height: 420px;
  position: relative;
  margin-bottom: 56px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  z-index: 1;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero h1, .hero h2, .hero p {
  color: #fff;
}
.hero .btn-primary {
  background: #F3E9DC;
  color: #334E6C;
  border: none;
}
@media (max-width: 768px) {
  .hero {
    min-height: 280px;
    padding: 32px 0 18px 0;
    margin-bottom: 32px;
  }
}

/* FEATURE GRID (Icons) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 20px;
}
.feature-grid li {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(51, 78, 108, 0.07);
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 20px 18px 18px 18px;
  margin-bottom: 0;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-grid li img {
  width: 36px; height: 36px; margin-bottom: 8px;
  filter: brightness(0) saturate(100%) invert(34%) sepia(15%) saturate(1320%) hue-rotate(169deg) brightness(98%) contrast(86%);
}
.feature-grid li strong {
  font-size: 1.18rem;
  color: #334E6C;
  font-weight: 700;
  margin-bottom: 2px;
}
.feature-grid li span {
  font-size: 1rem;
  color: #334E6C;
  font-weight: 400;
}
.feature-grid li:hover, .feature-grid li:focus-within {
  box-shadow: 0 6px 28px rgba(51, 78, 108, 0.18);
  transform: translateY(-3px) scale(1.025);
}
@media (max-width: 900px) {
  .feature-grid { gap: 16px; }
  .feature-grid li {
    min-width: 148px;
    padding: 16px 8px 14px 8px;
  }
}
@media (max-width: 640px) {
  .feature-grid { flex-direction: column; gap: 12px; }
  .feature-grid li { max-width: 100%; min-width: 0; }
}

.feature-descriptions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: disc inside;
  color: #233045;
}
.feature-descriptions li {
  font-size: 1rem;
  padding-left: 16px;
}

/* SERVICES SECTION (CARDS) */
.service-teaser-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 14px;
}
.service-teaser {
  background: #fff;
  border: 2px solid #B7C3D0;
  box-shadow: 0 2px 14px rgba(51,78,108,0.06);
  border-radius: 18px;
  padding: 26px 20px 18px 20px;
  flex: 1 1 275px;
  max-width: 330px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0;
  position: relative;
  transition: box-shadow 0.22s, transform 0.16s;
}
.service-teaser h3 {
  font-size: 1.22rem;
  font-family: 'Merriweather', serif;
  margin-bottom: 6px;
  font-weight: 800;
}
.service-teaser .price {
  font-weight: 800;
  color: #334E6C;
  font-size: 1rem;
  margin-bottom: 10px;
  background: #F3E9DC;
  border-radius: 6px;
  padding: 2px 10px;
}
.service-teaser .btn-secondary {
  align-self: flex-start;
}
.service-teaser:hover, .service-teaser:focus-within {
  box-shadow: 0 8px 22px 0 rgba(51, 78, 108, 0.19);
  border-color: #334E6C;
  transform: translateY(-4px) scale(1.03);
}
@media (max-width: 900px) {
  .service-teaser-list { flex-direction: column; gap: 16px; }
  .service-teaser { max-width: 100%; }
}

/* FAQ */
.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.faq-item {
  background: #F3E9DC;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(51, 78, 108, 0.08);
  padding: 20px 18px 18px 18px;
  flex: 1 1 260px;
  min-width: 220px;
  margin-bottom: 20px;
  color: #233045;
}
.faq-item h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}
@media (max-width: 780px) {
  .faq-list { flex-direction: column; gap: 10px; }
}

/* CTA BANNER */
.cta-banner {
  background: #334E6C;
  color: #fff;
  padding: 28px 0;
  margin-bottom: 0;
  border-radius: 16px;
}
.cta-banner .content-wrapper {
  align-items: center;
  flex-direction: column;
}
.cta-banner p {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 18px;
  font-weight: 800;
}
@media (max-width: 900px) {
  .cta-banner { padding: 18px 0; }
  .cta-banner p { font-size: 1rem; }
}

/* BUTTONS */
.btn-primary, .btn-secondary {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  padding: 0.75em 2em;
  font-size: 1rem;
  font-weight: 900;
  border-radius: 9px;
  border: none;
  background: #334E6C;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 3px 10px 0 rgba(51,78,108,0.12);
  display: inline-block;
  transition: background 0.18s, color 0.18s, transform 0.18s, box-shadow 0.18s;
  margin-top: 10px;
}
.btn-primary {
  background: #334E6C;
  color: #F3E9DC;
  border: 2px solid #334E6C;
}
.btn-primary:hover, .btn-primary:focus {
  background: #233045;
  color: #fff;
  transform: scale(1.04);
  box-shadow: 0 6px 16px 0 rgba(51,78,108,0.18);
  text-decoration: none;
}
.btn-secondary {
  background: #F3E9DC;
  color: #334E6C;
  border: 2px solid #B7C3D0;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #B7C3D0;
  color: #233045;
  transform: scale(1.05);
  border-color: #334E6C;
  text-decoration: none;
}

/* HEADER & NAVIGATION */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px 18px 32px;
  background: #fff;
  box-shadow: 0 2px 16px 0 rgba(51, 78, 108, 0.04);
  position: relative;
  z-index: 50;
}
.logo img {
  height: 44px;
  display: block;
}

.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-right: 16px;
}
.main-nav a {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  color: #334E6C;
  transition: color 0.15s;
  padding: 6px 0;
  border-radius: 3px;
}
.main-nav a:hover, .main-nav a:focus {
  color: #233045;
  background: #F3E9DC;
  text-decoration: none;
}
header .btn-primary {
  margin-left: 18px;
  margin-top: 0;
  font-size: 1.05rem;
}

/* MOBILE BURGER MENU */
.mobile-menu-toggle {
  display: none;
  background: #B7C3D0;
  color: #334E6C;
  font-weight: 900;
  font-size: 2rem;
  border-radius: 7px;
  padding: 6px 12px;
  margin-left: 24px;
  cursor: pointer;
  transition: background 0.19s, color 0.19s;
  z-index: 200;
  border: none;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #334E6C;
  color: #F3E9DC;
}
@media (max-width: 1000px) {
  .main-nav, header .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #334E6C;
  color: #fff;
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.44s cubic-bezier(.7,0,.3,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  border: none;
  background: transparent;
  color: #F3E9DC;
  font-size: 2.4rem;
  font-weight: 900;
  align-self: flex-end;
  cursor: pointer;
  margin: 22px 24px 0 0;
  transition: color 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #B7C3D0;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 36px 38px;
  width: 100%;
  align-items: flex-start;
}
.mobile-nav a {
  color: #F3E9DC;
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 12px 8px;
  border-radius: 8px;
  transition: background 0.16s, color 0.18s;
  width: 100%;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #B7C3D0;
  color: #334E6C;
  text-decoration: none;
}
@media (min-width:1001px) {
  .mobile-menu, .mobile-menu.open { display: none !important; }
}

/* FOOTER */
footer {
  background: #F3E9DC;
  color: #233045;
  margin-top: 60px;
  font-size: 1rem;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding: 36px 20px 24px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-logo img {
  height: 44px;
  margin-bottom: 18px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: #334E6C;
  font-size: 1.07rem;
  font-weight: 700;
  transition: color 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #233045;
  text-decoration: underline;
}
.contact-short {
  color: #233045;
  font-size: 1rem;
  margin-top: 8px;
}
.legal-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}
.legal-nav a {
  color: #233045;
  font-size: 0.99rem;
}
@media (max-width:900px) {
  .footer-main {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding: 28px 8px 14px 8px;
  }
  .footer-logo img { margin-bottom: 10px; }
}

/* ADDRESS & CONTACT-FORM */
address {
  font-style: normal;
  background: #F3E9DC;
  border-radius: 8px;
  margin-bottom: 22px;
  padding: 18px 20px;
}
.contact-form-wrapper {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(51, 78, 108, 0.08);
  padding: 22px 18px;
  margin-top: 14px;
}

/* PRICES */
.price {
  display: inline-block;
  background: #B7C3D0;
  color: #334E6C;
  font-weight: 800;
  font-size: 1.07rem;
  border-radius: 7px;
  padding: 3px 10px;
  margin-right: 12px;
  margin-bottom: 4px;
}

/* TABLES (if used) */
table { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
th, td { border: 1px solid #B7C3D0; padding: 8px 12px; }
th {
  background: #334E6C; color: #fff;
  font-family: 'Merriweather', serif;
  font-weight: 900;
}
td { background: #fff; color: #233045; }

/* ============ COOKIE CONSENT BANNER ============ */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: #334E6C;
  color: #F3E9DC;
  z-index: 20000;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -4px 16px rgba(51, 78, 108, 0.16);
  padding: 24px 18px 20px 18px;
  gap: 14px;
  animation: ccb-slide-up 0.65s cubic-bezier(.7,0,.45,1);
  font-size: 1rem;
}
@keyframes ccb-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner .ccb-btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.cookie-consent-banner button {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  padding: 8px 20px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  background: #F3E9DC;
  color: #334E6C;
  margin: 0;
  transition: background 0.14s, color 0.14s, transform 0.12s;
}
.cookie-consent-banner button:hover, .cookie-consent-banner button:focus {
  background: #B7C3D0;
  color: #233045;
}
.cookie-consent-banner .ccb-settings {
  background: #B7C3D0;
  color: #334E6C;
}
.cookie-consent-banner .ccb-settings:hover, .cookie-consent-banner .ccb-settings:focus {
  background: #334E6C;
  color: #F3E9DC;
}
@media (max-width:700px) {
  .cookie-consent-banner {
    font-size: 0.97rem;
    padding: 16px 6px 18px 6px;
  }
}

/* COOKIE PREFERENCES MODAL */
.ccb-modal-overlay {
  position: fixed;  left: 0; right: 0; top: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(51, 78, 108, 0.74);
  z-index: 20001;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ccb-modal-fade-in 0.4s cubic-bezier(.7,0,.45,1);
}
@keyframes ccb-modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.ccb-modal {
  background: #fff;
  color: #233045;
  border-radius: 20px;
  min-width: 320px;
  max-width: 96vw;
  min-height: 160px;
  padding: 34px 36px 24px 34px;
  text-align: left;
  box-shadow: 0 6px 34px #23304522, 0 1.5px 8px #B7C3D022;
  animation: slide-down-modal 0.47s cubic-bezier(.7,0,.45,1);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@keyframes slide-down-modal {
  from { transform: translateY(-40px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.ccb-modal h3 {
  margin-bottom: 13px;
  font-family: 'Merriweather', serif;
  color: #334E6C;
  font-weight: 900;
  font-size: 1.27rem;
}
.ccb-cookie-cat {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
}
.ccb-cookie-cat label {
  font-weight: 600;
  color: #334E6C;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}
.ccb-cookie-switch {
  display: inline-flex;
  align-items: center;
}
.ccb-modal .ccb-btn-group {
  margin-top: 18px;
  display: flex;
  gap: 14px;
}
.ccb-modal-close {
  position: absolute;
  top: 18px; right: 18px;
  background: transparent;
  color: #334E6C;
  border: none;
  font-size: 2rem;
  font-weight: 900;
  cursor: pointer;
  transition: color 0.14s;
}
.ccb-modal-close:hover, .ccb-modal-close:focus {
  color: #B7C3D0;
}
.ccb-switch {
  width: 36px; height: 22px;
  border-radius: 13px;
  background: #B7C3D0;
  position: relative;
  margin-right: 7px;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}
.ccb-switch input {
  display: none;
}
.ccb-switch-slider {
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(51, 78, 108, 0.12);
  transition: left 0.17s;
}
.ccb-switch input:checked + .ccb-switch-slider {
  left: 17px; background: #334E6C;
}
.ccb-switch input:checked ~ .ccb-switch {
  background: #334E6C;
}
.ccb-cookie-cat[data-essential] label {
  color: #233045;
}
.ccb-cookie-cat[data-essential] .ccb-switch {
  background: #B7C3D0;
  pointer-events: none;
  opacity: 0.55;
}

@media (max-width:600px) {
  .ccb-modal {
    min-width: 0;
    padding: 24px 12px 18px 12px;
    font-size: 0.96rem;
  }
}

/* ========== ANIMATIONS & MICRO-INTERACTIONS ========== */
.card, .service-teaser, .feature-grid li, .faq-item {
  transition: box-shadow 0.18s, background 0.18s, transform 0.16s;
}
.card:hover, .service-teaser:hover, .faq-item:hover, .feature-grid li:hover,
.card:focus-within, .service-teaser:focus-within, .faq-item:focus-within, .feature-grid li:focus-within {
  box-shadow: 0 8px 24px rgba(51, 78, 108, 0.17);
  transform: translateY(-2px) scale(1.025);
}

/* ================ RESPONSIVE DESIGN & MOBILE STYLES =============== */
@media (max-width: 900px) {
  .container { padding: 0 10px; }
  .section { padding: 24px 6px; }
  .footer-main { gap: 14px; }
}
@media (max-width: 600px) {
  header { padding: 12px 8px; }
  .footer-main { padding: 18px 4px 8px 4px; }
  .footer-logo img { height: 36px; }
  .cta-banner, .section { border-radius: 7px; }
}

/* =================== UTILITY CLASSES =================== */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

/* ====================== PRINT ========================== */
@media print {
  header, footer, .cookie-consent-banner, .mobile-menu { display: none !important; }
  .container { max-width: 100%; padding: 0; }
  .section { margin-bottom: 20px !important;  box-shadow: none !important; }
}

/* ======= END OF STYLE.CSS ======= */