/* ------------------
   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;
}

html {
  height: 100%;
  font-size: 16px;
}
body {
  height: 100%;
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  color: #263238;
  background: #F8FAFB;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #264653;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #2A9D8F;
  outline-offset: 2px;
}

ul, ol {
  padding-left: 1.5em;
  margin-bottom: 16px;
}
li {
  margin-bottom: 6px;
}

/* ------------------
   BRAND COLORS & TYPOGRAPHY
-------------------- */
:root {
  --primary: #264653;
  --primary-light: #376278;
  --secondary: #2A9D8F;
  --secondary-light: #49b6a7;
  --accent: #F4A261;
  --background: #F8FAFB;
  --card-bg: #fff;
  --gray: #E5E9EF;
  --border: #D6DDE2;
  --shadow: 0 4px 16px 0 rgba(38, 70, 83, 0.07);
  --focus-ring: #2A9D8F;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #264653;
  font-weight: 700;
  margin-bottom: 18px;
  line-height: 1.15;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.3rem; margin-bottom: 10px; }
h4 { font-size: 1.1rem; }

.subheadline { 
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.2rem;
  color: #376278;
  margin-bottom: 26px;
  max-width: 600px;
}

/* ------------------
   CONTAINER & STRUCTURE
-------------------- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--card-bg);
  position: relative;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 28px 22px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(38, 70, 83, 0.13);
  border-color: var(--secondary);
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 10px;
  background: #F2F7FA;
  box-shadow: 0 2px 10px rgba(38, 70, 83, 0.06);
  color: #223133;
  min-width: 280px;
  margin-bottom: 20px;
  border: 1px solid #e0e6ee;
  flex: 1 1 240px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 15px 22px 15px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(38, 70, 83, 0.04);
  border: 1px solid #e0e6ee;
  min-width: 210px;
  width: 100%;
}

/* Force dark text for contrast in testimonials */
.testimonial-card p, .testimonial-card span {
  color: #223133 !important;
}

/* Feature grid (custom for homepage) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.feature-grid .feature-item {
  flex: 1 1 200px;
  min-width: 220px;
  max-width: 275px;
}

/* CTA Section Style */
.section .btn-primary, .section .btn-secondary {
  margin-top: 20px;
}

/* ------------------
   NAVIGATION
-------------------- */
header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #E5E9EF;
  box-shadow: 0 2px 8px rgba(38, 70, 83, 0.03);
  position: relative;
  z-index: 500;
}
.brand-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 26px;
  padding: 18px 0 0 0;
}
.brand-header img {
  height: 48px;
  width: auto;
}
.tagline {
  font-size: 1.05rem;
  color: #376278;
  font-weight: 500;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 12px 0;
  flex-wrap: wrap;
}
.main-nav a {
  font-size: 1rem;
  color: #264653;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--secondary);
  color: #fff;
}
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 2px 8px rgba(42, 157, 143, 0.11);
  transition: background 0.18s, color 0.18s, transform 0.12s;
  outline: none;
  margin-left: 24px;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border: 1.5px solid var(--primary);
}
.btn-primary:hover {
  background: var(--secondary);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}
.btn-primary:focus {
  box-shadow: 0 0 0 2.5px var(--focus-ring);
}
.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-secondary:hover {
  background: var(--secondary);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}
.btn-secondary:focus {
  box-shadow: 0 0 0 2.5px var(--focus-ring);
}

/* ------------------
   MOBILE NAVIGATION
-------------------- */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--primary);
  margin-left: 18px;
  cursor: pointer;
  padding: 6px 6px;
  z-index: 1101;
  transition: color 0.17s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: var(--secondary);
  outline: none;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 84vw;
  max-width: 400px;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 16px rgba(38, 70, 83, 0.13);
  padding: 38px 30px 32px 30px;
  z-index: 1300;
  transform: translateX(102%);
  transition: transform 0.3s cubic-bezier(.7,.3,.3,1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 22px;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  transition: color 0.16s;
  z-index: 1400;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 42px;
}
.mobile-nav a {
  font-size: 1.12rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.012em;
  padding: 10px 0;
  border-radius: 5px;
  transition: background 0.17s, color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: #fff;
}

@media (max-width: 1050px) {
  .main-nav a { font-size: 0.99rem; }
}

@media (max-width: 900px) {
  .main-nav {
    gap: 12px;
  }
  .btn-primary { margin-left: 12px; }
}

@media (max-width: 840px) {
  .brand-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 9px;
  }
}
@media (max-width: 780px) {
  .main-nav, .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
/* Prevent page scroll when menu open - optional utility for JS */
body.menu-open { overflow: hidden; }

/* ------------------
   HERO & SECTIONS
-------------------- */
section {
  padding: 40px 0;
}

.service-teaser-list, .services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 26px 0 28px 0;
}

.service-teaser, .service-detail {
  background: #fff;
  border: 1px solid #e0e6ee;
  border-radius: 10px;
  padding: 26px 20px 24px 20px;
  flex: 1 1 230px;
  min-width: 220px;
  max-width: 340px;
  box-shadow: 0 2px 8px rgba(42,157,143,0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  margin-bottom: 20px;
  transition: box-shadow 0.20s, border-color 0.18s;
}
.service-teaser:hover, .service-detail:hover {
  box-shadow: 0 6px 22px rgba(42,157,143,0.13);
  border-color: var(--secondary);
}
.service-price {
  font-weight: 600;
  color: var(--accent);
  font-size: 1.07rem;
  margin-top: 6px;
}

/* ------------------
   TESTIMONIALS
-------------------- */
.testimonial-slider, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.testimonial-card p {
  font-size: 1.1rem;
  font-style: italic;
  color: #223133;
  margin-bottom: 10px;
}
.testimonial-person {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #264653;
}

/* ------------------
   BLOG & ARTICLE
-------------------- */
.categories-filter {
  margin-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
}
.categories-filter a {
  color: var(--secondary);
  padding: 0 7px;
  border-radius: 3px;
  transition: background 0.16s;
}
.categories-filter a:hover {
  background: #DCF5F2;
}
.blog-posts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.blog-posts-grid article {
  background: #fff;
  border-radius: 9px;
  border: 1.5px solid #E5E9EF;
  box-shadow: 0 3px 13px rgba(38,70,83,0.08);
  padding: 30px 22px 22px 22px;
  min-width: 230px;
  max-width: 320px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 20px;
}
.blog-posts-grid h2 {
  font-size: 1.25rem;
  margin-bottom: 9px;
}
.blog-posts-grid p { color: #41505e; }
.blog-readmore {
  font-weight: 600;
  color: var(--primary);
  align-self: flex-start;
  margin-top: 7px;
  transition: color 0.18s;
}
.blog-readmore:hover {
  color: var(--secondary);
  text-decoration: underline;
}

/* ------------------
   TABLES (Angebote, Pricing)
-------------------- */
.service-pricing-table {
  width: 100%;
  border-spacing: 0;
  margin: 22px 0 28px 0;
  font-size: 1rem;
  background: #fff;
  border-radius: 7px;
  overflow: hidden;
  border: 1.5px solid #e0e6ee;
}
.service-pricing-table th, .service-pricing-table td {
  padding: 15px 16px;
  text-align: left;
  border-bottom: 1px solid #E5E9EF;
}
.service-pricing-table th {
  background: #F2F7FA;
  color: #376278;
  font-weight: 700;
}
.service-pricing-table tr:last-child td {
  border-bottom: none;
}

/* ------------------
   CONTACT & BOXES
-------------------- */
.contact-box {
  background: #fff;
  padding: 26px 20px;
  border-radius: 9px;
  box-shadow: 0 3px 13px rgba(42,157,143,0.10);
  margin-bottom: 20px;
  border: 1px solid #e0e6ee;
  display: flex;
  flex-direction: row;
  gap: 32px;
  align-items: flex-start;
}
.contact-details > div {
  margin-bottom: 10px;
  color: #223133;
  font-size: 1.09rem;
}
.contact-details a {
  color: var(--secondary);
  transition: color 0.17s;
}
.contact-details a:hover { color: var(--primary); }

/* ------------------
   TEXT & GENERIC
-------------------- */
.text-section {
  margin-bottom: 25px;
}
.text-section h2, .text-section h3 {
  margin-top: 22px;
}
.text-section ul li {
  margin-bottom: 8px;
}

/* ------------------
   FOOTER
-------------------- */
footer {
  background: #223133;
  color: #F8FAFB;
  padding: 44px 0 0 0;
  font-size: 0.99rem;
  margin-top: 48px;
  border-top: 4px solid var(--primary);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 15px;
  padding: 0 20px;
}
.footer-nav a {
  color: #B2CAD6;
  padding: 4px 8px;
  border-radius: 5px;
  transition: color 0.2s, background 0.18s;
}
.footer-nav a:hover {
  color: #fff;
  background: var(--secondary);
}
.footer-info {
  padding: 0 20px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* ------------------
   COOKIE CONSENT BANNER
-------------------- */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  border-top: 3px solid var(--secondary);
  box-shadow: 0 -2px 12px rgba(38,70,83,0.11);
  z-index: 2100;
  padding: 22px 14px 18px 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 1.09rem;
  justify-content: space-between;
  transition: transform 0.4s cubic-bezier(.5,.3,.3,1);
}
.cookie-consent-banner.hide {
  transform: translateY(120%);
}
.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.btn-cookie-accept, .btn-cookie-settings, .btn-cookie-reject {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  min-width: 80px;
  padding: 8.5px 19px;
  transition: background 0.18s, color 0.18s;
  font-size: 1rem;
  margin-left: 0;
}
.btn-cookie-accept {
  background: var(--secondary);
  color: #fff;
}
.btn-cookie-accept:hover {
  background: var(--primary);
}
.btn-cookie-settings {
  background: #fff;
  color: var(--secondary);
  border: 1px solid var(--secondary);
}
.btn-cookie-settings:hover {
  background: #F2F7FA;
  color: var(--primary);
}
.btn-cookie-reject {
  background: var(--primary);
  color: #fff;
}
.btn-cookie-reject:hover {
  background: var(--secondary);
}

/* Cookie Preferences Modal */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 2201;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(38,70,83,0.27);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.28s;
}
.cookie-modal-backdrop.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  max-width: 450px;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 8px 32px rgba(38,70,83,0.16);
  padding: 32px 30px 23px 30px;
  z-index: 2210;
  display: flex;
  flex-direction: column;
  gap: 22px;
  border: 1px solid #e0e6ee;
  transform: translateY(20px);
  opacity: 1;
  transition: opacity 0.26s, transform 0.26s;
}
.cookie-modal.hide {
  opacity: 0;
  transform: translateY(50px);
  pointer-events: none;
}
.cookie-modal h3 {
  color: var(--primary);
  margin-bottom: 14px;
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
}
.cookie-category label {
  font-weight: 500;
  color: #264653;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 20px; height: 20px;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.8rem;
  position: absolute;
  top: 22px; right: 25px;
  cursor: pointer;
  transition: color 0.17s;
}
.cookie-modal-close:hover { color: var(--secondary); }

/* ------------------
   RESPONSIVE BREAKPOINTS
-------------------- */
@media (max-width: 1160px) {
  .feature-grid .feature-item, .service-teaser, .service-detail, .blog-posts-grid article {
    min-width: 180px;
    max-width: 100%;
  }
  .container { max-width: 98vw; }
}
@media (max-width: 1024px) {
  .feature-grid, .testimonial-slider, .testimonial-list, .service-teaser-list, .blog-posts-grid, .content-grid {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .testimonial-slider, .service-teaser-list, .blog-posts-grid {
    flex-direction: column;
    align-items: stretch;
  }
  .feature-item, .service-teaser, .service-detail, .blog-posts-grid article {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  .contact-box {
    flex-direction: column;
    gap: 14px;
  }
}
@media (max-width: 768px) {
  /* Section spacing */
  section, .section {
    padding: 28px 0;
  }
  .container {
    padding: 0 8px;
  }
  .content-wrapper {
    gap: 16px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .card-container {
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .feature-grid, .service-teaser-list, .testimonial-slider, .testimonial-list, .blog-posts-grid {
    flex-direction: column;
    gap: 16px;
  }
  .footer-nav {
    gap: 10px;
  }
}
@media (max-width: 600px) {
  .brand-header {
    flex-direction: column;
    gap: 6px;
  }
  .tagline {
    font-size: 0.97rem;
  }
  .btn-primary,
  .btn-secondary {
    font-size: 0.95rem;
    padding: 11px 14px;
    margin-left: 0;
  }
  .footer-nav, .footer-info {
    padding: 0 6px;
    font-size: 0.95rem;
  }
}

/* ------------------
   MICRO-INTERACTIONS & TRANSITIONS
-------------------- */
.btn-primary,
.btn-secondary,
.btn-cookie-accept,
.btn-cookie-settings,
.btn-cookie-reject {
  transition: background 0.18s, color 0.18s, transform 0.15s;
}
.card, .service-teaser, .service-detail, .feature-item, .testimonial-card, .blog-posts-grid article {
  transition: box-shadow 0.18s, border-color 0.17s, transform 0.14s;
}
.card:hover, .service-teaser:hover, .service-detail:hover, .feature-item:hover, .testimonial-card:hover, .blog-posts-grid article:hover {
  box-shadow: 0 7px 22px rgba(38,70,83,0.13);
  transform: translateY(-2px) scale(1.012);
  border-color: var(--secondary);
  z-index: 2;
}

/* ------------------
   UTILITY CLASSES (for spacing, hide, visually-hidden)
-------------------- */
.mb-0 { margin-bottom: 0 !important; }
.mb-8 { margin-bottom: 8px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mt-8 { margin-top: 8px !important; }
.mt-24 { margin-top: 24px !important; }
.gap-20 { gap: 20px; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.sr-only { position: absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
header {
    display: flex;
    justify-content: space-around;
}
