/* ==========================================
   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 {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #1c2730;
  font-family: 'Roboto', serif;
  min-height: 100vh;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #16597F;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #49B882;
  outline-offset: 2px;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}
ul, ol {
  padding-left: 24px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', serif;
  color: #16597F;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 14px; }
h4 { font-size: 1.1rem; }

/* ==== Layout Containers and Sections ==== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section,
.hero,
.features,
.about-section,
.values-section,
.services-section,
.benefits-section,
.contact-section,
.cta-section,
.pricing-section,
.pricing-info-section,
.blog-intro,
.blog-list-section,
.testimonials,
.testimonial-list-section,
.about-preview,
.services-preview,
.contact-highlight,
.legal-section,
.thank-you-section,
.case-studies-section,
.cta-final {
  margin-bottom: 60px;
  padding: 40px 0;
}

/* ==== Flexbox Patterns ==== */
.card-container,
.card-grid,
.feature-grid,
.blog-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card, .blog-card, .feature-item {
  margin-bottom: 20px;
}
.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: 14px;
  background: #F5F9FB;
  border-left: 4px solid #16597F;
  border-radius: 10px;
  padding: 24px 32px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(22, 89, 127, 0.06);
  transition: box-shadow 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 24px rgba(22, 89, 127, 0.13);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border: 1px solid #e0e7ef;
  border-radius: 10px;
  box-shadow: 0 1px 7px rgba(22, 89, 127, 0.04);
  padding: 24px 24px 18px 24px;
  min-width: 240px;
  max-width: 350px;
  flex: 1 1 280px;
  transition: box-shadow 0.24s background 0.3s;
}
.feature-item img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}
.feature-item:hover {
  background: #F5F9FB;
  box-shadow: 0 4px 18px rgba(22, 89, 127, 0.06);
}
.service-category {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.case-study-teaser {
  background: #F5F9FB;
  border-radius: 10px;
  padding: 24px 32px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(22, 89, 127, 0.06);
}
.address-block, .phone-email, .business-hours, .map-snippet {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* ==== CTA Buttons ==== */
.cta-primary,
.cta-primary:visited {
  background: #16597F;
  color: #fff;
  border: none;
  border-radius: 26px;
  padding: 14px 36px;
  font-family: 'Montserrat', serif;
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.02em;
  display: inline-block;
  margin-top: 8px;
  box-shadow: 0 2px 9px rgba(22, 89, 127, 0.09);
  cursor: pointer;
  transition: background 0.22s, box-shadow 0.22s, color 0.15s;
}
.cta-primary:hover,
.cta-primary:focus {
  background: #49B882;
  color: #1c2730;
  box-shadow: 0 5px 18px rgba(73, 184, 130, 0.11);
}
.cta-secondary,
.cta-secondary:visited {
  background: #F5F9FB;
  color: #16597F;
  border: 1.5px solid #16597F;
  border-radius: 26px;
  padding: 12px 28px;
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.18s, color 0.18s, border 0.18s;
}
.cta-secondary:hover,
.cta-secondary:focus {
  background: #16597F;
  color: #fff;
  border: 1.5px solid #16597F;
}
button {
  border: none;
  background: none;
  font-family: 'Montserrat', serif;
  cursor: pointer;
}
/* NAVIGATION STYLES */
header {
  background: #fff;
  box-shadow: 0 1px 8px rgba(22, 89, 127, 0.05);
  margin-bottom: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  position: relative;
}
header img {
  height: 55px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', serif;
  color: #16597F;
  font-size: 1rem;
  font-weight: 500;
  padding: 7px 8px;
  border-radius: 5px;
  transition: background 0.17s, color 0.19s;
}
.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: #16597F;
}
.main-nav .cta-primary {
  margin-left: 10px;
  color: #fff !important;
  background: #16597F !important;
  box-shadow: 0 1px 8px rgba(22, 89, 127, 0.14);
}
/* ==== MOBILE NAVIGATION ==== */
.mobile-menu-toggle {
  background: #16597F;
  color: #fff;
  font-size: 2rem;
  border: none;
  padding: 7px 18px;
  border-radius: 8px;
  display: none;
  transition: background 0.22s, color 0.22s;
  z-index: 22;
}
.mobile-menu-toggle:focus {
  outline: 3px solid #49B882;
}
.mobile-menu-toggle:hover {
  background: #49B882;
  color: #16597F;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #F5F9FB;
  box-shadow: 0 8px 40px rgba(22,89,127,0.18);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(.9,0,.6,1);
  will-change: transform;
  padding: 48px 28px 24px 28px;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
  transition: transform 0.42s cubic-bezier(.19,1,.22,1), opacity 0.3s;
}
.mobile-menu-close {
  position: absolute;
  top: 28px; right: 30px;
  background: #49B882;
  color: #fff;
  font-size: 2.1rem;
  border: none;
  border-radius: 50%;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 2010;
  transition: background 0.18s, color 0.11s;
}
.mobile-menu-close:hover { background: #16597F; color: #fff; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 56px;
}
.mobile-nav a {
  font-family: 'Montserrat', serif;
  font-size: 1.15rem;
  color: #16597F;
  font-weight: 700;
  padding: 12px 0;
  border-bottom: 1px solid #e0e7ef;
  transition: color 0.23s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover, .mobile-nav a.active {
  color: #49B882;
  background: none;
}
@media (max-width: 1100px) {
  .main-nav {
    gap: 14px;
  }
}
@media (max-width: 950px) {
  .main-nav {
    gap: 8px;
  }
  header img {
    height: 45px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 2px;
  }
}
@media (max-width: 850px) {
  header .container {
    flex-wrap: wrap;
    padding: 12px 6vw;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .mobile-menu {
    display: flex;
  }
}
@media (min-width: 769px) {
  .mobile-menu {
    display: none;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}
/* ==== HERO SECTION ==== */
.hero {
  background: linear-gradient(135deg,#F5F9FB 65%,#fff 100%);
  border-bottom: 1px solid #e0e7ef;
  padding-top: 54px;
  padding-bottom: 54px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 28px;
}
.hero h1 {
  font-size: 2.6rem;
  color: #16597F;
}
.hero p {
  font-size: 1.18rem;
  max-width: 540px;
}
@media (max-width: 580px) {
  .hero h1 {
    font-size: 1.55rem;
  }
  .content-wrapper, .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
/* ==== FEATURES GRID ==== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 32px 0 0 0;
  justify-content: flex-start;
}
/* ==== PRICING TABLE ==== */
.pricing-table {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
  margin-bottom: 32px;
}
.pricing-table > div {
  background: #fff;
  border: 1px solid #e0e7ef;
  border-radius: 10px;
  flex: 1 1 240px;
  min-width: 235px;
  max-width: 310px;
  padding: 26px 28px 22px 28px;
  box-shadow: 0 2px 10px rgba(22, 89, 127, 0.07);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  justify-content: flex-start;
  transition: box-shadow 0.18s, border 0.14s;
}
.pricing-table > div:hover {
  box-shadow: 0 4px 24px rgba(22, 89, 127, 0.12);
  border-color: #49B882;
}
.pricing-table h2 { margin-bottom: 7px; font-size: 1.27rem; color: #16597F; }
.pricing-table p { font-weight: 600; color: #49B882; font-size: 1.09rem; margin-bottom: 8px; }
.pricing-table ul { margin-top: 9px; font-size: 1rem; }
.pricing-comparison {
  background: #F5F9FB;
  border-radius: 10px;
  padding: 22px 26px;
  margin-top: 24px;
  font-size: 1.08rem;
  color: #393939;
}
/* ==== BLOG CARDS ==== */
.blog-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 28px 0;
}
.blog-card {
  background: #fff;
  border: 1px solid #e0e7ef;
  border-radius: 9px;
  box-shadow: 0 2px 10px rgba(22, 89, 127, 0.05);
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 340px;
  padding: 22px 22px 14px 22px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  transition: box-shadow 0.18s, border 0.14s;
}
.blog-card:hover {
  box-shadow: 0 7px 22px rgba(22, 89, 127, 0.10);
  border-color: #49B882;
}
.blog-card h3 {
  color: #16597F;
  font-size: 1.15rem;
}
.blog-card p {
  color: #3c3c3c;
  font-size: 1rem;
}
.blog-card a {
  color: #49B882;
  font-family: 'Montserrat', serif;
  font-weight: 600;
  margin-top: 10px;
  transition: color 0.20s;
  font-size: .99rem;
}
.blog-card a:hover { color: #16597F; }
/* ==== LISTS & TEXT SECTIONS ==== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 14px;
}
.text-section ul, .text-section ol {
  margin-bottom: 16px;
  margin-top: 2px;
  line-height: 1.8;
}
.text-section strong {
  color: #16597F;
  font-weight: 700;
}
.text-section a {
  color: #49B882;
}
.text-section a:hover {
  color: #16597F;
  text-decoration: underline;
}
.address-block img, .phone-email img, .business-hours img {
  width: 22px; height: 22px; margin-right: 6px; opacity: 0.82;
}
/* ==== FOOTER ==== */
footer {
  background: #F5F9FB;
  border-top: 1.5px solid #e0e7ef;
  font-size: 0.98rem;
  padding: 0;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  padding: 38px 20px 16px 20px;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-width: 170px;
}
.footer-nav a {
  color: #1c2730;
  font-size: 1rem;
  padding: 2px 4px;
  border-radius: 4px;
  transition: background 0.13s, color 0.19s;
}
.footer-nav a:hover { color: #16597F; background: #eaf2f7; }
.footer-contact {
  margin-bottom: 10px;
  color: #393939;
}
footer img {
  height: 43px; width: auto; margin-bottom: 10px;
}
footer small {
  display: block;
  color: #8b98ae;
  margin-top: 6px;
}
/* ==== LEGAL SECTION TEXT ==== */
.legal-section .text-section {
  margin-top: 18px;
  background: #fff;
  border-radius: 6px;
  padding: 16px 20px;
  border: 1px solid #e0e7ef;
}
.legal-section ul { margin-top: 8px; }
@media (max-width: 900px) {
  footer .container { gap: 14px; flex-direction: column; align-items: flex-start; }
  .footer-nav { flex-direction: row; gap: 19px; }
}
/* =============== COOKIE CONSENT BANNER ================== */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: #F5F9FB;
  color: #1c2730;
  border-top: 2px solid #16597F;
  box-shadow: 0 -2px 16px rgba(22, 89, 127, 0.07);
  padding: 22px 10vw 19px 10vw;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 1.03rem;
  animation: cookiebanner-slideup 0.49s cubic-bezier(.22,1.28,.65,1);
}
@keyframes cookiebanner-slideup {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner p {
  flex: 2 1 200px;
  margin: 0 16px 0 0;
}
.cookie-consent-buttons {
  flex: 1 1 180px;
  display: flex;
  flex-direction: row;
  gap: 13px;
}
.cookie-btn {
  padding: 10px 20px;
  border-radius: 30px;
  border: none;
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 2px 7px rgba(73, 184, 130, 0.06);
  cursor: pointer;
  transition: background 0.13s, color 0.13s, box-shadow 0.21s;
}
.cookie-btn.accept {
  background: #16597F;
  color: #fff;
}
.cookie-btn.accept:hover {
  background: #49B882;
  color: #fff;
}
.cookie-btn.reject {
  background: #eee;
  color: #1c2730;
  border: 1px solid #1c2730;
}
.cookie-btn.reject:hover {
  background: #ffeded;
  color: #d12c2c;
  border: 1px solid #d12c2c;
}
.cookie-btn.settings {
  background: #fff;
  color: #16597F;
  border: 1px solid #49B882;
}
.cookie-btn.settings:hover {
  background: #49B882;
  color: #fff;
}
/* ===== COOKIE MODAL ===== */
.cookie-modal-overlay {
  position: fixed; top:0; left:0; right:0; bottom:0;
  background: rgba(22,89,127,.13);
  z-index: 5500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.38s;
}
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  max-width: 390px;
  width: 97vw;
  box-shadow: 0 6px 36px rgba(22, 89, 127, 0.15);
  padding: 36px 32px 24px 32px;
  color: #16597F;
  z-index: 6000;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: cookiemodalfade 0.42s cubic-bezier(.22,1,.36,1.02);
}
@keyframes cookiemodalfade {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}
.cookie-modal h2 {
  font-size: 1.35rem;
  color: #16597F;
  font-family: 'Montserrat', serif;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.cookie-modal .cookie-category label {
  font-family: 'Roboto', serif;
  color: #1c2730;
  font-size: 1.06rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: #49B882;
}
.cookie-modal-fixed {
  width: 100%;
  display: flex;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-info {
  font-size: .99rem;
  margin-bottom: 2px;
  color: #395d6c;
  font-family: 'Roboto', serif;
}
.cookie-modal .cookie-btn {
  width: auto;
  min-width: 90px;
}
/* ================== RESPONSIVE RULES ================== */
@media (max-width: 1100px) {
  .container {
    max-width: 96vw;
    padding-left: 6px;
    padding-right: 6px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 99vw;
  }
  .feature-item, .blog-card, .pricing-table > div {
    min-width: 180px;
    max-width: 99vw;
  }
  .case-study-teaser, .testimonial-card {
    padding: 17px 12px;
  }
}
@media (max-width: 768px) {
  .section,
  .hero,
  .features,
  .about-section,
  .values-section,
  .services-section,
  .benefits-section,
  .contact-section,
  .cta-section,
  .pricing-section,
  .pricing-info-section,
  .blog-intro,
  .blog-list-section,
  .testimonials,
  .testimonial-list-section,
  .about-preview,
  .services-preview,
  .contact-highlight,
  .legal-section,
  .thank-you-section,
  .case-studies-section,
  .cta-final {
    padding: 30px 0 30px 0;
  }
  .card-container, .card-grid, .feature-grid, .blog-card-grid, .pricing-table {
    flex-direction: column;
    gap: 14px;
  }
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 30px 12px 12px 12px;
  }
  .footer-nav {
    min-width: auto;
    gap: 12px;
  }
  .testimonial-card, .case-study-teaser {
    padding: 13px 9px;
  }
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 14px;
    gap: 12px;
  }
}
@media (max-width: 580px) {
  h1 { font-size: 1.38rem; }
  h2 { font-size: 1.13rem; }
  h3 { font-size: 1rem; }
  .testimonial-card, .case-study-teaser {
    min-width: 0;
    padding: 9px 3px;
    font-size: .97rem;
  }
  .feature-item, .blog-card, .pricing-table > div {
    min-width: 120px;
    padding: 10px 6px;
    font-size: .97rem;
  }
}
@media (max-width: 460px) {
  .cookie-modal {
    padding: 24px 7px 18px 7px;
  }
  .cookie-modal h2 {
    font-size: 1.11rem;
  }
}
/* ==== SMALL SHADOWS AND UI ENHANCEMENTS ==== */
.card, .blog-card, .feature-item, .testimonial-card, .case-study-teaser {
  box-shadow: 0 1px 6px rgba(22, 89, 127, 0.05);
  border-radius: 10px;
}
.card:hover, .blog-card:hover, .feature-item:hover, .case-study-teaser:hover {
  box-shadow: 0 5px 18px rgba(22, 89, 127, 0.09);
}
/* ==== HOVER STATES FOR INTERACTIVE ELEMENTS ==== */
a, button, .cta-primary, .cta-secondary, .cookie-btn {
  transition: background 0.14s, color 0.14s, box-shadow 0.19s, border 0.13s;
}
/* ==== Z-INDEX MANAGEMENT FOR INTERACTIVITY ==== */
header, footer { z-index: 10; position: relative; }
.mobile-menu, .cookie-consent-banner, .cookie-modal-overlay, .cookie-modal { z-index: 2000; }
/* ==== VISUAL ENHANCEMENTS: ELEGANT CLASSIC ==== */
body {
  background: #fff;
  color: #21313e;
}
.section, .container, .content-wrapper { border-radius: 0; box-shadow: none; }
section {
  border-radius: 0px;
}
/* ==== UTILITIES ==== */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
/* ==== CONSISTENT SPACING BETWEEN ELEMENTS ==== */
section > *:not(:last-child), .content-wrapper > *:not(:last-child) {
  margin-bottom: 20px;
}
/* ==== PREVENT CONTENT OVERLAP & ENSURE SPACING ==== */
.card:not(:last-child), .blog-card:not(:last-child), .testimonial-card:not(:last-child), .feature-item:not(:last-child), .case-study-teaser:not(:last-child) {
  margin-bottom: 20px;
}
/* ==== FOCUS VISIBLE FOR ACCESSIBILITY ==== */
:focus-visible {
  outline: 3px solid #49B882;
  outline-offset: 2px;
}

/* ==== END OF STYLE.CSS for GlanzProfi Magdeburg ==== */
