/* ---------------- 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,
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 {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: #F4F6FB;
}
av, ul, li {
  list-style: none;
}
img {
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}
a {
  text-decoration: none;
  color: inherit;
}
button, input, select, textarea {
  font: inherit;
  outline: none;
  border: none;
  background: none;
  box-shadow: none;
}

/* -------------- FONT IMPORTS ------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Roboto:wght@400;500&display=swap');

:root {
  --primary: #1A237E;
  --primary-dark: #141A5A;
  --secondary: #00B8A9;
  --accent: #FAFAFA;
  --gray-50: #F4F6FB;
  --gray-100: #E1E7EF;
  --gray-200: #C0C7D6;
  --gray-400: #687189;
  --gray-700: #2A3244;
  --black: #182232;
  --white: #fff;
  --shadow: 0 2px 24px rgba(26,35,126,0.08), 0 1.5px 8px rgba(60,70,120,0.06);
  --border-radius: 12px;
  --transition: all 0.2s cubic-bezier(.51,.3,.26,.99);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--gray-700);
  background: var(--gray-50);
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

/* ------------------ TYPOGRAPHY ------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; line-height: 1.12; margin-bottom: 24px; }
h2 { font-size: 2rem; line-height: 1.16; margin-bottom: 20px; }
h3 { font-size: 1.25rem; line-height: 1.2; margin-bottom: 10px; }
h4 { font-size: 1.1rem; }
p, ul, li, label {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--gray-700);
}
strong, b { font-weight: 600; color: var(--primary-dark); }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.1rem; }
}

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

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 40px;
    padding: 20px 5px;
  }
  .container {
    padding: 0 8px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  position: relative;
  padding: 24px 20px;
  min-width: 260px;
  max-width: 370px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.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: 16px;
  }
}

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

/* ----- Service List/Card- Specific ----- */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  justify-content: flex-start;
}
.service-card {
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 320px;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--border-radius);
  padding: 28px 22px 20px 22px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.18s;
}
.service-card img {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
}
.service-price {
  font-weight: 700;
  color: var(--secondary);
  margin-top: 8px;
  font-size: 1.125rem;
}
.service-card:hover, .service-card:focus {
  box-shadow: 0 6px 32px rgba(26,35,126,0.12);
  transform: translateY(-2px) scale(1.02);
}

@media (max-width: 900px) {
  .service-list {
    gap: 18px;
  }
  .service-card {
    min-width: 90%;
    max-width: 100%;
    padding: 20px 14px 16px 14px;
  }
}
@media (max-width: 600px) {
  .service-list {
    flex-direction: column;
    gap: 12px;
  }
  .service-card {
    min-width: 100%;
    margin-bottom: 14px;
  }
}

/* ---------- TESTIMONIALS ---------- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--accent);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(26,35,126,0.07);
  margin-bottom: 20px;
  color: var(--gray-700);
  min-width: 220px;
  max-width: 680px;
  font-size: 1.08rem;
  transition: box-shadow 0.18s, background 0.18s;
}
.testimonial-card p {
  color: var(--gray-700);
  font-size: 1.08rem;
  margin-bottom: 0;
}
.testimonial-card strong {
  color: var(--primary-dark);
  font-size: 1rem;
}
.testimonial-card:before {
  content: '\201C';
  color: var(--primary);
  font-size: 2.2rem;
  line-height: 1;
  font-family: var(--font-display);
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px rgba(26,35,126,0.18);
  background: #f0f4fa;
}
.testimonial-details {
  font-size: .99rem;
  color: var(--gray-400);
}

/* ---------- BUTTONS / CTA ---------- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 8px;
  padding: 14px 32px;
  margin-top: 8px;
  transition: background 0.19s, box-shadow 0.19s, color 0.19s, transform 0.19s;
  box-shadow: 0 2px 8px 0 rgba(26,35,126,0.07);
  cursor: pointer;
  border: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--primary);
  color: var(--secondary);
  box-shadow: 0 6px 24px rgba(0,184,169,0.19);
  transform: translateY(-2px) scale(1.03);
}

/* ---------- HERO SECTION ---------- */
.hero {
  background: linear-gradient(90deg,#F4F6FB 50%,#E1E7EF 100%);
  padding: 44px 0 48px 0;
  margin-bottom: 60px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}
.hero .content-wrapper {
  max-width: 680px;
  gap: 20px;
}
.hero h1 {
  color: var(--primary);
}
.hero p {
  font-size: 1.15rem;
  color: var(--gray-400);
}

@media (max-width: 991px) {
  .hero {
    padding: 32px 0 34px 0;
    margin-bottom: 38px;
  }
  .hero .content-wrapper { max-width: 100%; }
}
@media (max-width: 640px) {
  .hero {
    padding: 24px 0 26px 0;
  }
}

/* ------------ NAVIGATION ------------ */
header {
  background: var(--white);
  box-shadow: 0 3px 16px rgba(34,49,96,0.06);
  z-index: 20;
  position: sticky;
  top: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 20px;
  position: relative;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  position: relative;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--gray-700);
  font-weight: 500;
  padding: 8px 4px;
  margin-left: 12px;
  transition: color 0.18s;
  border-radius: 4px;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--primary);
  background: var(--gray-100);
}
.cta-btn {
  margin-left: 16px;
}

/* -------------- MOBILE NAVIGATION -------------- */
.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  margin-left: 24px;
  z-index: 201;
}
@media (max-width: 991px) {
  .main-nav, .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 340px;
  max-width: 97vw;
  height: 100vh;
  background: var(--white);
  box-shadow: -6px 0 32px rgba(26,35,126,0.14);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(110%);
  transition: transform 0.28s cubic-bezier(.47,.65,.2,1);
  will-change: transform;
  padding: 36px 26px 26px 26px;
}
.mobile-menu.active {
  transform: translateX(0);
  transition: transform 0.34s cubic-bezier(.5,0,.2,1) 0s;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 16px;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 16px;
}
.mobile-nav a {
  font-size: 1.15rem;
  font-family: var(--font-display);
  background: none;
  padding: 10px 6px;
  color: var(--gray-700);
  border-radius: 4px;
  transition: background 0.17s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--gray-100);
  color: var(--primary);
}

@media (max-width: 991px) {
  .mobile-menu {
    padding: 24px 14px 16px 14px;
    width: 96vw;
  }
}

@media (max-width: 650px) {
  .mobile-menu {
    width: 98vw;
    max-width: 100vw;
  }
  .mobile-nav a { font-size: 1.08rem; }
}

/* -------- BLOG ENTRIES/LIST -------- */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.blog-entry {
  flex: 1 1 260px;
  min-width: 210px;
  max-width: 350px;
  padding: 22px 16px;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.blog-entry h3 { color: var(--primary); }
.blog-entry a {
  font-size: 1rem;
  color: var(--secondary);
  font-weight: 600;
  margin-top: 4px;
  transition: color 0.18s, text-decoration 0.13s;
}
.blog-entry a:hover, .blog-entry a:focus {
  color: var(--primary-dark);
  text-decoration: underline;
}
.blog-entry:hover {
  box-shadow: 0 6px 36px rgba(0,184,169,0.12);
  transform: scale(1.015);
}

@media (max-width: 800px) {
  .blog-list {
    gap: 12px;
  }
  .blog-entry {
    min-width: 100%;
    max-width: 100%;
    margin-bottom: 12px;
  }
}

/* ------------- SEARCH FILTER -------------- */
.search-filter {
  margin-top: 28px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}
.search-filter label {
  color: var(--gray-400);
  margin-bottom: 0;
}
#blog-search {
  border-radius: 7px;
  border: 1px solid var(--gray-200);
  background: var(--accent);
  padding: 8px 14px;
  font-size: 1rem;
  transition: border 0.18s, box-shadow 0.18s;
  color: var(--gray-700);
}
#blog-search:focus {
  border: 1.5px solid var(--secondary);
  box-shadow: 0 1.5px 6px rgba(0,184,169,0.13);
}
@media (max-width: 650px) {
  .search-filter {
    flex-direction: column;
    gap: 7px;
    align-items: flex-start;
  }
}

/* ------------- TEXT SECTION -------------- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* -------------- SOLUTION GRID (BRANCHENLÖSUNGEN) ------------- */
.solution-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
  margin-bottom: 16px;
}
.solution-grid > div {
  flex: 1 1 270px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 28px 20px 20px 20px;
  min-width: 200px;
  max-width: 400px;
  margin-bottom: 20px;
}
@media (max-width: 800px) {
  .solution-grid {
    gap: 12px;
    flex-direction: column;
  }
  .solution-grid > div { max-width: 100%; min-width: 100%; }
}

/* -------------- CALL TO ACTION SECTION ------------- */
.cta {
  background: var(--primary);
  padding: 44px 0 48px 0;
  color: var(--white);
  border-radius: var(--border-radius);
  margin-bottom: 54px;
}
.cta h2, .cta-btn {
  color: var(--white) !important;
}
.cta .cta-btn {
  background: var(--secondary);
  color: #fff;
  margin-top: 16px;
  border: none;
}
.cta .cta-btn:hover {
  background: var(--accent);
  color: var(--primary);
}

@media (max-width: 768px) {
  .cta {
    padding: 28px 0 30px 0;
    margin-bottom: 35px;
  }
}

/* -------------- FOOTER -------------- */
footer {
  background: var(--gray-100);
  margin-top: 46px;
  padding: 40px 0 16px 0;
  box-shadow: 0 -2px 10px rgba(26,35,126,0.04);
  font-size: .97rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1.5px solid var(--gray-200);
  padding-bottom: 22px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.footer-nav a {
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  padding: 6px 2px;
  border-radius: 4px;
  transition: background 0.18s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  background: var(--accent);
}
.footer-bottom {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: flex-start;
  justify-content: space-between;
}
.contact-info {
  color: var(--gray-400);
  font-size: .98rem;
}
.contact-info a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
}
footer img { max-width: 52px; }

@media (max-width: 768px) {
  .footer-top, .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  footer { padding: 18px 0 16px 0; }
}

/* -------------- MAP PLACEHOLDER -------------- */
.map-placeholder {
  width: 100%;
  max-width: 340px;
  border-radius: 10px;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ------------- COOKIE CONSENT BANNER ------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--gray-100);
  box-shadow: 0 -4px 20px rgba(26,35,126,0.10);
  padding: 24px 18px;
  z-index: 99999;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  justify-content: center;
  font-size: 1rem;
  transition: transform 0.35s cubic-bezier(.55,.16,.31,.98);
  transform: translateY(0%);
}
.cookie-banner.hide {
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner .cookie-text {
  flex: 1 1 480px;
  color: var(--gray-700);
  margin-right: 18px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
.cookie-btn {
  padding: 9px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.19s, color 0.19s, transform 0.19s;
}
.cookie-btn.accept {
  background: var(--secondary);
  color: #fff;
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: var(--primary);
  color: #fff;
  transform: scale(1.03);
}
.cookie-btn.reject {
  background: #f3f6fd;
  color: var(--primary);
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: var(--primary-dark);
  color: #fff;
}
.cookie-btn.settings {
  background: var(--accent);
  color: var(--primary);
  text-decoration: underline;
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: var(--gray-100);
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    padding: 16px 5px;
  }
  .cookie-banner .cookie-text { margin-right: 0; }
}

/* ------------- COOKIE MODAL -------------- */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 100000;
  background: rgba(28,34,78, 0.27);
  align-items: center;
  justify-content: center;
}
.cookie-modal.active {
  display: flex;
  animation: fadeInModal 0.33s cubic-bezier(.47,.65,.2,1);
}
@keyframes fadeInModal {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal-content {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 10px 40px 0 rgba(26,35,126,0.16);
  padding: 36px 32px 28px 32px;
  min-width: 330px;
  max-width: 96vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  position: relative;
}
.cookie-modal-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.cookie-category label {
  color: var(--primary-dark);
}
.cookie-category input[type=checkbox] {
  appearance: none;
  width: 24px;
  height: 24px;
  border: 2px solid var(--gray-200);
  border-radius: 6px;
  background: var(--gray-50);
  margin-right: 12px;
  position: relative;
}
.cookie-category input[type=checkbox]:checked {
  background: var(--secondary);
  border-color: var(--secondary);
}
.cookie-category input[type=checkbox]:checked:after {
  content: '\2713';
  color: #fff;
  position: absolute;
  font-size: 1.2rem;
  left: 5px;
  top: 1px;
}
.cookie-category input[type=checkbox][disabled] {
  background: var(--gray-100);
  border-color: var(--gray-200);
  cursor: not-allowed;
}
.cookie-modal-actions {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 10px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 18px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-dark);
  cursor: pointer;
}
@media (max-width:480px) {
  .cookie-modal-content { min-width: 92vw; padding: 16px 8px 12px 8px; }
  .cookie-modal .modal-close { top: 11px; right: 6px; }
}

/* ------------- UTILITIES, MICRO-INTERACTIONS ------------- */
::-webkit-scrollbar {
  width: 8px;
  background: var(--gray-100);
}
::-webkit-scrollbar-thumb {
  background: var(--gray-200);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

hr {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 28px 0;
}

/* ------------- FORM, INPUTS ------------- */
input, textarea, select {
  border-radius: 8px;
  border: 1.2px solid var(--gray-200);
  padding: 10px 14px;
  background: var(--white);
  color: var(--primary);
  margin-bottom: 12px;
  min-width: 180px;
  max-width: 100%;
  transition: border 0.19s, box-shadow 0.16s;
}
input:focus, textarea:focus, select:focus {
  border: 1.6px solid var(--secondary);
  box-shadow: 0 1.5px 6px rgba(0,184,169,0.10);
}

label {
  margin-bottom: 4px;
  font-size: 1rem;
  color: var(--primary);
}

/* ------------- MISC CLASSES ------------- */
.author-spotlights {
  background: var(--gray-50);
  border-radius: var(--border-radius);
  padding: 18px 20px;
  color: var(--gray-700);
}

ul {
  margin-left: 20px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
li {
  position: relative;
  padding-left: 18px;
}
li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  position: absolute;
  top: 8px;
  left: 0;
}

@media (max-width:700px) {
  ul { margin-left: 10px; }
  li { padding-left:12px; }
  li::before { left:0; }
}

/* ------------------ PAGE SPECIFIC -------------- */
/* Thank You, Datenschutz, etc.: wider text blocks */
.text-section, .content-wrapper > .text-section {
  max-width: 680px;
  width: 100%;
}

/* ------ Prevent overlap / always flex layouts ------ */
/* All card+section wrappers covered above, plus: */
@media (max-width:420px) {
  .testimonial-card,
  .card,
  .service-card,
  .solution-grid > div,
  .blog-entry
  { padding:16px 6px !important; }
}

/* -------------- ACCESSIBILITY - HL TEXT CONTRAST ----------- */
.cta-btn, .cookie-btn.accept, .cookie-btn.reject {
  outline: none;
}
.cta-btn:focus-visible,
.cookie-btn:focus-visible {
  box-shadow: 0 0 0 3px var(--secondary), 0 1.5px 8px rgba(60,70,120,0.10);
}

/* ------------- END ------------- */
