/* === CSS RESET & NORMALIZE === */
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;
}
footer p, footer strong {
  color: white;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #1A1916;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
}
button, input, select, textarea {
  font-family: inherit;
}

/* === MONOCHROME SOPHISTICATED VARIABLES === */
:root {
  --brand-primary: #25667C;
  --brand-accent: #EFB041;
  --bg-white: #fff;
  --bg-light: #F3F5F7;
  --text: #1A1916;
  --text-dark: #000;
  --text-muted: #737373;
  --border: #D1D3D6;
  --shadow: rgba(11,11,11,0.07);
  --shadow-strong: rgba(20,20,20,0.23);
}

/* === TYPOGRAPHY === */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  letter-spacing: -0.01em;
  color: #000;
  line-height: 1.15;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  h1, .h1 {font-size: 2rem;}
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 2rem;
  color: #000;
  line-height: 1.2;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  h2, .h2 {font-size: 1.5rem;}
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: #1A1916;
  margin-bottom: 12px;
  line-height: 1.35;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  color: #1A1916;
  margin-bottom: 10px;
}
p, li {
  font-size: 16px;
  color: #1A1916;
  line-height: 1.7;
  margin-bottom: 18px;
}
strong {
  font-weight: 700;
  color: #000;
}
.text-muted {
  color: #737373;
}
.text-section ul, .text-section ol {
  margin-bottom: 16px;
  margin-left: 24px;
}
.text-section ul li, .text-section ol li {
  margin-bottom: 8px;
  color: #1A1916;
}
.text-section ul {
  list-style-type: disc;
}
.text-section ol {
  list-style-type: decimal;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--bg-white);
  border-radius: 16px;
  box-shadow: 0 4px 12px var(--shadow);
  border: 1px solid var(--border);
  padding: 28px 24px;
  transition: box-shadow 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 24px var(--shadow-strong);
}
.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: 20px;
  }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  color: #1A1916;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 24px 24px 20px 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px var(--shadow);
  min-width: 240px;
  transition: box-shadow 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 16px var(--shadow-strong);
}
.testimonial-card p {
  font-size: 1.05rem;
  font-style: italic;
  color: #000;
  margin-bottom: 10px;
}
.testimonial-card span {
  font-size: 0.96rem;
  color: #575757;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === HEADER, NAV, LOGO === */
header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 100;
  position: relative;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 20px 0;
  gap: 26px;
}
.logo img {
  height: 42px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 32px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: #222;
  padding: 4px 0;
  position: relative;
  transition: color 0.15s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--brand-primary);
}
/* Call To Action (Header) */
.cta-btn {
  display: inline-flex;
  align-items: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background: #000;
  padding: 10px 26px;
  border-radius: 24px;
  border: none;
  box-shadow: 0 2px 8px var(--shadow);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.2s;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 4px 24px var(--shadow-strong);
}

/* === MOBILE NAVIGATION === */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #000;
  position: absolute;
  top: 24px;
  right: 20px;
  z-index: 210;
  cursor: pointer;
}
.mobile-menu {
  display: none;
}
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .cta-btn {
    display: none;
  }
}
.mobile-menu {
  position: fixed;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 300;
  padding: 28px 24px 24px 24px;
  transform: translateX(-100vw);
  transition: transform 0.3s ease;
  box-shadow: 0 0 56px 8px rgba(0,0,0,0.12);
}
.mobile-menu.open {
  transform: translateX(0);
  display: flex;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.4rem;
  color: #000;
  margin-bottom: 24px;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  color: #222;
  padding: 12px 0;
  border-bottom: 1px solid #EAEAEA;
  width: 100%;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--brand-primary);
  background: #F3F5F7;
}
@media (max-width: 768px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .header-flex {
    padding: 14px 0 14px 0;
    gap: 8px;
  }
}

/* === HERO SECTION === */
.hero {
  background: #F3F5F7;
  border-bottom: 1px solid var(--border);
  padding: 64px 0 56px 0;
  margin-bottom: 48px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 12px;
}
.hero h1 {
  color: #000;
  margin-bottom: 16px;
}
.hero p {
  color: #1A1916;
  font-size: 1.25rem;
  margin-bottom: 20px;
}
.hero .cta-btn {
  margin-top: 14px;
}
@media (max-width: 768px) {
  .hero {padding: 40px 0 34px 0;}
  .hero .content-wrapper {gap: 8px;}
  .hero h1 {margin-bottom: 10px;}
}

/* === FEATURES, SERVICES & SCHWERPUNKTE === */
.features-grid, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  margin-top: 22px;
  margin-bottom: 10px;
}
.feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 20px 22px 20px;
  box-shadow: 0 2px 8px var(--shadow);
  width: 255px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 220px;
  gap: 12px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 6px 24px var(--shadow-strong);
  transform: translateY(-4px) scale(1.01);
}
.feature img {
  width: 46px;
  height: 46px;
  margin-bottom: 8px;
}
.feature h3 {
  color: #000;
  font-size: 1.18rem;
}
.feature p {
  color: #222;
  font-size: 15.2px;
}
.service-price {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--brand-primary);
  font-weight: 600;
  margin-top: 8px;
  font-size: 1rem;
}
@media (max-width: 1200px) {
  .features-grid, .service-list {
    gap: 22px;
  }
  .feature {
    width: 220px;
  }
}
@media (max-width: 960px) {
  .features-grid, .service-list {
    gap: 18px;
  }
  .feature {
    width: 45vw;
    min-width: 180px;
    max-width: 300px;
  }
}
@media (max-width: 768px) {
  .features-grid, .service-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .feature { width: 100%; }
}

/* == ARTICLE & FAQ == */
.article-list, .faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
}
.article-list li {
  background: #F8F8F8;
  padding: 16px 16px;
  border-left: 4px solid var(--border);
  border-radius: 8px;
  color: #1A1916;
  margin-bottom: 0;
}
.faq-accordion .faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 20px 16px 20px;
  margin-bottom: 10px;
  box-shadow: 0 1px 5px var(--shadow);
}
.faq-accordion .faq-item h3 {
  font-size: 1.12rem;
  cursor: pointer;
  margin-bottom: 10px;
  transition: color 0.18s;
}
.faq-accordion .faq-item h3:hover, .faq-accordion .faq-item h3:focus {
  color: var(--brand-primary);
}
.faq-accordion .faq-item p {
  color: #444;
  font-size: 0.98rem;
}

/* === CTA SECTION === */
.cta-section {
  background: #181818;
  color: #fff;
  border-radius: 20px;
  margin: 40px 0 60px 0;
  padding: 42px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px var(--shadow-strong);
}
.cta-section h2 {
  color: #fff;
  margin-bottom: 12px;
}
.cta-section p {
  color: #E3E3E3;
  margin-bottom: 20px;
}
.cta-section .cta-btn {
  background: var(--brand-accent);
  color: #000;
  font-weight: 700;
}
.cta-section .cta-btn:hover {
  background: #fff;
  color: var(--brand-primary);
}
@media (max-width: 768px) {
  .cta-section {padding: 28px 8px;}
}

/* === ABOUT & TEXT PREVIEW === */
.text-section {
  padding: 0;
  margin: 0;
  margin-bottom: 0;
}
.text-section h2 { margin-bottom: 18px; }
.text-section p, .text-section li {
  font-size: 1rem;
  margin-bottom: 12px;
}
.text-section a {
  color: var(--brand-primary);
  font-weight: 600;
  transition: text-decoration 0.13s;
  text-decoration: underline;
}
.text-section a:hover, .text-section a:focus {
  color: #000;
  text-decoration: none;
}

/* === TESTIMONIALS SLIDER (Index) === */
.testimonials-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
@media (max-width: 768px) {
  .testimonials-slider {
    flex-direction: column;
    gap: 14px;
  }
}

/* === FOOTER === */
footer {
  background: #232323;
  color: #EDEDED;
  font-size: 0.97rem;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 36px 0 12px 0;
}
.footer-logo img {
  height: 34px;
  filter: grayscale(1) contrast(1.25);
}
.footer-contact {
  min-width: 200px;
  max-width: 260px;
  line-height: 1.55;
  color: #e0e0e0;
  margin-bottom: 12px;
}
.footer-contact a {
  color: var(--brand-accent);
  font-weight: 600;
}
.footer-nav, .footer-legal {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a, .footer-legal a {
  color: #C3C3C3;
  padding: 2px 0;
  transition: color 0.14s;
}
.footer-nav a:hover,
.footer-legal a:hover {
  color: var(--brand-accent);
}
.footer-social {
  display: flex;
  gap: 18px;
  align-items: center;
}
.footer-social a:hover img {
  filter: invert(55%) sepia(60%) saturate(6) hue-rotate(320deg) brightness(1.2); /* accent tint */
}
.footer-social img {
  height: 28px;
  opacity: 0.95;
  transition: filter 0.16s, opacity 0.18s;
}
@media (max-width: 900px) {
  .footer-flex {
    flex-wrap: wrap;
    gap: 22px;
  }
  .footer-contact,
  .footer-nav, .footer-legal {
    min-width: unset;
    max-width: 100%;
  }
}
@media (max-width: 650px) {
  .footer-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 30px 0 9px 0;
  }
}

/* === MAP PLACEHOLDER === */
.map-placeholder {
  background: #F3F3F3;
  color: #555;
  font-size: 1rem;
  border-radius: 12px;
  padding: 12px 20px;
  margin-top: 10px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}

/* === THANK YOU SECTION === */
.thank-you {
  padding: 80px 0 60px 0;
  background: #F3F5F7;
}
.thank-you h1 {
  color: #000;
  margin-bottom: 16px;
}
.thank-you p {
  color: #1A1916;
  font-size: 1.10rem;
  margin-bottom: 18px;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 10000;
  background: #232323;
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px;
  border-top: 4px solid var(--brand-primary);
  box-shadow: 0 -2px 16px var(--shadow-strong);
  gap: 18px;
  font-size: 1.01rem;
  animation: cookie-slideup 0.44s cubic-bezier(0.8,0.1,0.4,1);
}
@keyframes cookie-slideup {
  from { transform: translateY(80px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  flex: 1 1 auto;
  margin-right: 22px;
  color: #fff;
}
.cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  border-radius: 24px;
  padding: 7px 20px;
  background: #fff;
  color: #232323;
  font-weight: 600;
  box-shadow: 0 1px 5px var(--shadow);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.cookie-btn.accept {
  background: var(--brand-primary);
  color: #fff;
}
.cookie-btn.reject {
  background: #eee;
  color: #232323;
}
.cookie-btn.settings {
  background: var(--brand-accent);
  color: #232323;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #000;
  color: #fff;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(0,0,0,0.50);
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-modal-fadein 0.3s ease;
}
@keyframes cookie-modal-fadein {
  from {opacity:0;} to {opacity:1;}
}
.cookie-modal-content {
  background: #fff;
  color: #111;
  border-radius: 18px;
  padding: 36px 28px 32px 28px;
  min-width: 340px;
  max-width: 96vw;
  box-shadow: 0 5px 34px var(--shadow-strong);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-modal-content h2 {
  color: #000;
  margin-bottom: 8px;
  font-size: 1.3rem;
}
.cookie-modal-content .cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.cookie-modal-content label {
  font-size: 1rem;
}
.cookie-modal-content .cookie-toggle {
  width: 34px;
  height: 18px;
  background: #ECECEC;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  transition: background 0.13s;
  margin-left: 8px;
}
.cookie-modal-content .cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal-content .cookie-toggle-slider {
  position: absolute;
  left: 2px; top: 2px;
  width: 14px; height: 14px;
  background: #aaa;
  border-radius: 50%;
  transition: 0.18s;
}
.cookie-modal-content .cookie-toggle input:checked + .cookie-toggle-slider {
  left: 18px;
  background: var(--brand-primary);
}
.cookie-modal-content .cookie-category.essential .cookie-toggle {
  background: #DFDFDF;
  cursor: not-allowed;
}
.cookie-modal-content .cookie-category.essential label {
  color: #888;
}
.cookie-modal-close {
  position: absolute;
  top: 18px; right: 18px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #000;
  cursor: pointer;
  transition: color 0.14s;
}
.cookie-modal-close:hover {
  color: var(--brand-primary);
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 9px;
}
@media (max-width: 540px) {
  .cookie-modal-content { min-width: 90vw; padding: 18px 10px 16px 10px; }
}

/* === GENERAL INTERACTIONS & MICRO-ANIMATIONS === */
a, button, .cta-btn, .mobile-nav a, .main-nav a {
  transition: color 0.16s, background 0.17s, border 0.14s, box-shadow 0.17s;
}
.card, .feature, .testimonial-card {
  transition: box-shadow 0.18s, transform 0.16s;
}
.cta-btn, .cookie-btn {
  transition: background 0.16s, color 0.16s, box-shadow 0.16s;
}

/* === MISC === */
::-webkit-scrollbar {
  width: 12px;
  background: #F3F5F7;
}
::-webkit-scrollbar-thumb {
  background: #C3C3C3;
  border-radius: 6px;
}

/* RESPONSIVE FONT-SIZE & SPACING */
@media (max-width: 540px) {
  h1, .h1 {font-size: 1.58rem;}
  h2, .h2 {font-size: 1.18rem;}
  .hero {padding: 28px 0 18px 0;}
  .footer-flex {padding: 18px 0 6px 0;}
}

/* === ADJUST CARD AND SECTION SPACINGS — NO OVERLAP === */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
@media (max-width: 720px) { section { padding: 24px 0; margin-bottom: 35px;} }
.card, .feature, .testimonial-card {
  margin-bottom: 20px;
  /* Padding already defined for each */
}
.features-grid, .service-list, .testimonials-slider {
  gap: 24px;
}

/* === ENSURE PROPER Z-INDEX LAYERING === */
header, .mobile-menu, .cookie-banner, .cookie-modal { z-index: 200; }
