/* ===== 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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
  background: #F3F7FA;
  color: #003541;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  appearance: none;
}

/* ====== BRAND VARIABLES ====== */
:root {
  --primary: #00677F;
  --secondary: #88C9A8;
  --accent: #F3F7FA;
  --vibrant-cyan: #13cff3;
  --vibrant-green: #18e06f;
  --vibrant-yellow: #ffe600;
  --vibrant-pink: #fe419b;

  --header-height: 80px;
  --radius: 16px;
  --shadow: 0 4px 20px rgba(0,60,90,0.08);

  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Helvetica, Arial, sans-serif;
}

@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800|Roboto:400,500,700&display=swap');

body {
  font-family: var(--font-body);
  background: var(--accent);
  font-size: 16px;
  font-weight: 400;
  color: #003541;
  min-height: 100vh;
  position: relative;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: var(--primary);
}
h1 { font-size: 2.75rem; line-height: 1.15; margin-bottom: 24px; }
h2 { font-size: 2.1rem; line-height: 1.18; margin-bottom: 24px; }
h3 { font-size: 1.4rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1rem; }
p, ul, ol { margin-bottom: 16px; }
strong { font-weight: 700; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ==== SPACING AND ALIGNMENT PATTERNS (per instructions) ==== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  background: #fff;
  border-radius: var(--radius);
  position: relative;
  flex: 1 1 300px;
  min-width: 260px;
  max-width: 400px;
}
.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;
  background: #F9FBFC;
  border-radius: var(--radius);
  box-shadow: 0 1px 8px rgba(20,130,170,0.10);
  margin-bottom: 20px;
  color: #1a3340;
  font-size: 1.1rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ========== HEADER & NAVIGATION ========== */
header {
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,103,127,0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-height);
  justify-content: space-between;
}
header img {
  height: 46px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.07rem;
  padding: 10px 8px;
  color: var(--primary);
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-bottom 0.18s;
  letter-spacing: 0.01em;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--vibrant-pink);
  border-bottom: 2px solid var(--vibrant-pink);
}
.cta-btn {
  background: linear-gradient(90deg, var(--vibrant-cyan), var(--vibrant-green), var(--vibrant-yellow));
  color: #1a3340;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.025em;
  padding: 15px 34px;
  border-radius: 32px;
  box-shadow: 0 4px 24px rgba(19, 207, 243, .08);
  transition: transform .13s, background .2s, box-shadow .2s;
  display: inline-block;
  cursor: pointer;
  border: none;
  margin-left: 12px;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(80deg, var(--vibrant-pink), var(--vibrant-cyan));
  color: #fff;
  transform: translateY(-3px) scale(1.045);
  box-shadow: 0 8px 32px rgba(254, 65, 155, 0.12);
}

/* ========== MOBILE MENU ========== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 250;
  font-size: 2.4rem;
  color: var(--primary);
  background: #fff;
  border-radius: 50%;
  width: 54px;
  height: 54px;
  box-shadow: 0 1px 8px rgba(0, 103, 127, 0.09);
  transition: background 0.18s;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #F3F7FA;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.99);
  z-index: 300;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.68,-0.3,.47,1.33);
  display: flex;
  flex-direction: column;
  padding: 36px 28px 0 28px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.15rem;
  color: var(--vibrant-pink);
  background: none;
  border: none;
  position: absolute;
  top: 24px;
  right: 24px;
  cursor: pointer;
  z-index: 999;
  border-radius: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #fff0f7;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 54px;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.58rem;
  color: var(--primary);
  padding: 10px 12px 7px 0;
  border-radius: 4px;
  transition: color 0.17s, background 0.18s;
}
.mobile-nav a:hover, .mobile-nav a.active {
  color: var(--vibrant-pink);
  background: #fff0f7;
}
@media (max-width: 1060px) {
  .main-nav, header .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1061px) {
  .mobile-menu { display: none !important; }
}

/* ========== HERO SECTION ========== */
.hero {
  background: linear-gradient(86deg, var(--vibrant-cyan), var(--vibrant-green), var(--vibrant-yellow));
  min-height: 380px;
  display: flex;
  align-items: center;
  border-radius: 0 0 52px 52px;
  margin-bottom: 64px;
  box-shadow: 0 7px 38px rgba(19,207,243,0.1);
  position: relative;
}
.hero .container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: 340px;
}
.hero .content-wrapper {
  gap: 15px;
  background: none;
  box-shadow: none;
  padding: 0;
}
.hero h1 {
  font-size: 3.15rem;
  color: var(--primary);
  text-shadow: 0 2px 20px rgba(255,255,255,0.15);
  margin-bottom: 14px;
}
.hero p {
  font-size: 1.25rem;
  color: #003541;
  margin-bottom: 26px;
  max-width: 680px;
}
.hero .cta-btn {
  font-size: 1.19rem;
}

/* ===== FEATURE GRID & SERVICE CATEGORIES ======= */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 26px;
  margin-bottom: 8px;
}
.feature-grid > div {
  flex: 1 1 210px;
  min-width: 220px;
  padding: 26px 20px;
  border-radius: var(--radius);
  background: #f9fdfa;
  box-shadow: 0 2px 18px 0 rgba(136,201,168,0.07);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.22s;
  border: 2px solid transparent;
}
.feature-grid > div:hover,
.feature-grid > div:focus-within {
  box-shadow: 0 3px 26px 4px rgba(0,103,127,0.10);
  border-color: var(--vibrant-cyan);
}
.feature-grid img {
  margin-bottom: 3px;
  height: 44px;
  width: 44px;
}
.feature-grid h3 {
  color: var(--primary);
  font-size: 1.19rem;
}

/*  SERVICE CATEGORIES (leistungen page)  */
.service-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 26px;
  margin-bottom: 28px;
  background: #F3F7FA;
  border-radius: var(--radius);
  box-shadow: 0 1px 11px rgba(136,201,168,0.09);
  padding: 20px 18px;
}
.service-category img {
  width: 52px; height: 52px;
  margin-bottom: 0;
}
.service-category h2 {
  margin-bottom: 4px; font-size: 1.32rem;
}

@media (max-width: 900px) {
  .feature-grid {
    flex-direction: column;
  }
  .feature-grid > div {
    min-width: unset; width: 100%;
  }
  .service-category {
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
  }
}

/* ===== TABLES (Preise) ===== */
table {
  width: 100%;
  margin-bottom: 28px;
  font-size: 1.07rem;
  border-radius: var(--radius);
  box-shadow: 0 1px 17px 0 rgba(136,201,168,0.08);
  overflow: hidden;
  background: #fff;
}
thead tr { background: var(--secondary); color: #fff; }
thead th, tbody td {
  padding: 17px 12px; text-align: left;
}
tbody tr {
  border-bottom: 1px solid #e0e2e7;
}
tbody tr:last-child { border-bottom: none; }
tbody td { color: #004d61; }
tfoot, caption {
  font-size: 0.96em;
  padding: 9px 8px;
  color: var(--vibrant-cyan);
}

/* ===== TESTIMONIALS & QUOTES ===== */
.testimonial-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.testimonial-card {
  background: #fff;
  color: #10394c;
  box-shadow: 0 2px 15px rgba(0,60,90,.10);
  border-radius: var(--radius);
  padding: 20px 26px;
  margin-bottom: 20px;
  font-size: 1.13rem;
  transition: transform .13s, box-shadow .19s;
}
.testimonial-card:hover {
  transform: scale(1.015) translateY(-2px);
  box-shadow: 0 6px 28px rgba(19,207,243,0.12);
}
.testimonial-details {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--vibrant-green);
  font-size: 1rem;
}
client-logos {
  display: flex; gap: 26px; align-items: center; margin: 16px 0 42px 0;
}

/* ====== PRICING / FAQ COLLAPSIBLE ====== */
.pricing-faq {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
summary {
  font-family: var(--font-display);
  font-size: 1.09rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.16s;
  color: var(--primary);
  padding-left: 2px;
}
details[open] summary {
  color: var(--vibrant-pink);
}
details {
  background: #f9fbfc;
  border-radius: var(--radius);
  margin-bottom: 7px;
  padding: 10px 17px 10px 11px;
}

/* ====== BLOG OVERVIEW & ARTICLES ==== */
.blog-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.featured-posts {
  min-width: 260px;
  background: #f1fbff;
  border-radius: var(--radius);
  padding: 22px 18px 16px 18px;
  box-shadow: 0 0 7px rgba(19,207,243,0.07);
}
.featured-posts h2 {
  font-size: 1.11rem;
  color: var(--primary);
  margin-bottom: 10px;
}
.featured-posts ul {
  padding-left: 12px;
}
.featured-posts a {
  color: var(--vibrant-cyan);
  font-weight: 700;
  transition: color 0.12s;
}
.featured-posts a:hover {
  color: var(--vibrant-pink);
}
.categories-filter { margin-bottom: 20px; font-size: 1rem; }
.categories-filter a {
  color: var(--vibrant-green);
  font-weight: 700;
  margin: 0 6px;
  transition: color 0.1s;
}
.categories-filter a:hover { color: var(--vibrant-pink); }
.article-previews { display: flex; flex-wrap: wrap; gap: 20px; }
.article-previews article {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex: 1 1 270px;
  min-width: 240px;
  max-width: 400px;
  padding: 22px 16px 17px 18px;
  transition: box-shadow .16s, transform .12s;
  margin-bottom: 20px;
}
.article-previews article:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 7px 24px rgba(19,207,243,0.09);
}
.article-previews h3 a {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}
.article-previews h3 a:hover { color: var(--vibrant-cyan); }

/* ======= CONTACT INFO & MAP PLACEHOLDER ========= */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 19px;
}
.contact-info img { height: 20px; width: 20px; margin-right: 7px; vertical-align: middle; }
.map-placeholder {
  background: #e2eef7;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 210px;
  padding: 20px 0;
  box-shadow: 0 1px 9px rgba(0,103,127,0.06);
}
.map-placeholder img {
  height: 120px;
  width: auto;
  opacity: 0.75;
}

/* ========== FOOTER ========== */
footer {
  background: #fff;
  box-shadow: 0 -2px 18px rgba(0,103,127,0.05);
  padding: 46px 0 32px 0;
  margin-top: 60px;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 42px;
  justify-content: space-between;
}
footer img {
  width: 45px;
  height: auto;
  margin-bottom: 7px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 160px;
}
.footer-nav a {
  color: var(--primary);
  font-weight: 600;
  transition: color 0.15s;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.footer-nav a:hover {
  color: var(--vibrant-cyan);
}
.footer-contact {
  font-size: 1rem;
  color: #10587c;
  font-weight: 500;
}
.footer-contact img {
  vertical-align: middle;
  height: 17px;
  margin-right: 7px;
  margin-top: -2px;
}

/* ========== COOKIE CONSENT BANNER & MODAL ========== */
#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 801;
  background: #fff;
  color: #013642;
  padding: 27px 16px 23px 16px;
  border-top: 4px solid var(--vibrant-pink);
  box-shadow: 0 -4px 18px rgba(0,103,127,.09);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  transition: transform 0.48s cubic-bezier(.68,-0.4,.47,1.55);
  font-family: var(--font-body);
  font-size: 1.04rem;
}
#cookie-banner.hide {
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.cookie-btn {
  padding: 10px 23px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 32px;
  border: none;
  cursor: pointer;
  transition: background 0.19s, color .16s;
  outline: none;
  margin-right: 5px;
  font-family: var(--font-display);
}
#cookie-accept { background: var(--vibrant-green); color: #fff; }
#cookie-accept:hover { background: var(--vibrant-cyan); color: #0a2535; }
#cookie-reject { background: #fff; color: var(--vibrant-pink); border: 2px solid var(--vibrant-pink); }
#cookie-reject:hover { background: #fff0f7; color: var(--primary); }
#cookie-settings {
  background: var(--vibrant-yellow);
  color: #161515;
}
#cookie-settings:hover { background: #feffe9; color: var(--primary); }

/* Modal Overlay */
#cookie-modal {
  display: none;
  position: fixed;
  z-index: 9000;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(10, 60, 110, 0.13);
  align-items: center;
  justify-content: center;
  animation: fadein .29s;
}
#cookie-modal.active {
  display: flex;
}
.cookie-modal-content {
  background: #fff;
  border-radius: var(--radius);
  min-width: 320px;
  max-width: 98vw;
  box-shadow: 0 12px 64px rgba(0,103,127,0.14);
  padding: 36px 26px 28px 26px;
  animation: up-in .37s cubic-bezier(.51,-0.11,.38,1.14);
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #10294a;
}
@keyframes up-in { from { opacity: 0; transform: translateY(60px);} to { opacity: 1; transform: translateY(0);} }
@keyframes fadein { from { opacity: 0;} to {opacity: 1;} }
.cookie-modal-content h2 {
  color: var(--primary);
  font-size: 1.32rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 13px 0;
}
.cookie-toggle {
  width: 38px;
  height: 22px;
  background: #eee;
  border-radius: 18px;
  cursor: pointer;
  position: relative;
  transition: background .14s;
  margin-left: 7px;
}
.cookie-toggle[data-active="true"] {
  background: var(--vibrant-cyan);
}
.cookie-toggle:before {
  content: '';
  display: block;
  height: 19px;
  width: 19px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 1.5px;
  left: 2px;
  box-shadow: 0 1px 4px #aaa2;
  transition: left 0.16s;
}
.cookie-toggle[data-active="true"]:before {
  left: 17px;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 13px;
  justify-content: flex-end;
}
.cookie-modal-actions .cookie-btn { min-width: 110px; }

/* ============ RESPONSIVE DESIGN ============ */
@media (max-width: 900px) {
  .footer-content, .hero .container, .section .container, .card-container, .content-grid, .testimonial-list, .article-previews {
    flex-direction: column!important;
    align-items: stretch!important;
  }
  .section, .hero {
    border-radius: 0;
    padding-left: 10px;
    padding-right: 10px;
  }
  .service-category { flex-direction: column; align-items: flex-start; gap: 11px; }
  .feature-grid {
    gap: 18px;
    margin-top: 13px;
  }
  .feature-grid > div, .article-previews article, .card {
    min-width: unset;
    max-width: 100%;
    width: 100%;
  }
  .testimonial-list, .case-briefs {
    gap: 13px;
  }
  .footer-content {
    gap: 26px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  h1 { font-size: 2rem;} h2 { font-size: 1.38rem;}
  .hero h1 { font-size: 2.2rem; }
  .hero { min-height: 230px; }
  .client-logos img { height: 32px;}
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column !important;
    gap: 19px;
  }
  .testimonial-card { font-size: 1rem; padding: 14px 9px; }
  .hero {
    min-height: 160px;
    border-radius: 0 0 28px 28px;
    padding: 34px 0 22px 0;
  }
  .hero .content-wrapper { gap: 9px; }
  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    font-size: 0.97rem;
    padding: 21px 8px 18px 8px;
  }
  .cookie-btn-group {
    gap: 10px;
  }
}

/* ========== INTERACTIVE EFFECTS & MICRO-INTERACTIONS ========== */
.card, .section, .service-category, .article-previews article {
  transition: box-shadow 0.19s, transform 0.11s;
}
.card:hover, .service-category:hover, .article-previews article:hover {
  box-shadow: 0 6px 32px 0 rgba(19,207,243,0.14);
  transform: translateY(-3px) scale(1.012);
  z-index: 4;
}
details[open] {
  box-shadow: 0 2px 18px rgba(254,65,155,0.07);
  border: 2px solid var(--vibrant-pink);
}
button, .cta-btn, .cookie-btn {
  transition: background .15s, color .15s, transform .11s, box-shadow .16s;
}
button:active, .cta-btn:active, .cookie-btn:active {
  transform: scale(0.98);
}

/* ======= VISUAL HIERARCHY & WHITE SPACE ======= */
.section h2, .section h1 { margin-bottom: 16px; }
.section ul, .section ol { margin-bottom: 16px; }
ul, ol { padding-left: 22px; }
.section ul li, .section ol li {
  margin-bottom: 8px;
  font-size: 1.06rem;
}
.section ul li:before {
  content: '• ';
  color: var(--vibrant-cyan);
  font-weight: bold;
}

/* ======= TRUSTMARKS, BADGES & DECOR ======= */
.trustmarks {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 15px;
}
.trustmarks img { height: 32px; }

/* ======= UTILITIES ======= */
.text-center { text-align: center; }
.d-none { display: none !important; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* ======= ACCESSIBILITY FOCUS RING ======= */
a, button, .cta-btn, .cookie-btn {
  outline: none;
}
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus {
  box-shadow: 0 0 0 3px var(--vibrant-cyan);
}

/* ======= PRINT STYLES ======= */
@media print {
  header, footer, .mobile-menu, #cookie-banner, #cookie-modal { display: none !important; }
  body, .section { background: #fff!important; box-shadow: none!important; }
}

/* ======= END ======= */
