/* =================================================
   CSS RESET & BASE 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.5;
  min-height: 100vh;
  background: #f7fafc;
  color: #2B3D54;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: #13C1E5;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #2B3D54;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: 700;
  color: #2B3D54;
  line-height: 1.15;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.35rem; margin-bottom: 14px; }
h4 { font-size: 1.10rem; margin-bottom: 12px; }

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

p {
  font-size: 1rem;
  margin-bottom: 14px;
  color: #253043;
}
strong, b { font-weight: 700; color: #19304a; }
em, i { font-style: italic; }

/* ==============
   BRAND COLORS
================ */
:root {
  --primary: #2B3D54;
  --secondary: #13C1E5;
  --accent: #E8F0F9;
  --white: #fff;
  --gray-light: #E8F0F9;
  --gray: #a6bad5;
  --gray-dark: #374664;
  --shadow: rgba(43, 61, 84, 0.07);
}

/* ======================
   GRADIENT BACKGROUNDS
====================== */
.hero {
  background: linear-gradient(100deg, var(--accent) 0%, var(--secondary) 80%);
  color: var(--primary);
  margin-bottom: 60px;
  padding: 40px 0 60px 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 var(--shadow);
}

@media (max-width: 768px) {
  .section {
    padding: 24px 8px;
    margin-bottom: 32px;
    border-radius: 12px;
  }
}

/* ===============================
   LAYOUT CONTAINERS (FLEXBOX)
================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 4px 16px var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 26px 20px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px var(--shadow);
  transform: translateY(-2px) scale(1.02);
}

.feature-grid, .feature-item {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.feature-grid > div, .feature-item {
  flex: 1 1 220px;
  background: var(--gray-light);
  border-radius: 14px;
  padding: 22px 20px 16px 20px;
  box-shadow: 0 2px 12px var(--shadow);
  min-width: 220px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  transition: box-shadow 0.2s, background 0.25s;
}
.feature-grid > div:hover {
  background: var(--accent);
  box-shadow: 0 8px 32px var(--shadow);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.text-image-section, .text-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section, .text-section { flex-direction: column; align-items: flex-start; gap: 18px; }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--gray-light);
  border-radius: 16px;
  box-shadow: 0 2px 12px var(--shadow);
  margin-bottom: 20px;
  position: relative;
  flex-direction: column;
  min-width: 260px;
}
.testimonial-card blockquote {
  color: #253043;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 8px;
  font-family: 'Open Sans', Arial, sans-serif;
  quotes: "\201E" "\201C";
}
.testimonial-card cite {
  color: #2B3D54;
  font-style: normal;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Roboto Slab', Georgia, serif;
}

/* ===================
   BUTTONS & LINKS
=================== */
.btn-primary {
  display: inline-block;
  background: linear-gradient(90deg, var(--secondary) 80%, #13A1CC 100%);
  color: var(--white);
  font-family: 'Roboto Slab', serif;
  font-size: 1.12rem;
  font-weight: 700;
  padding: 0.8em 2.2em;
  border: none;
  border-radius: 25px;
  box-shadow: 0 4px 16px var(--shadow);
  cursor: pointer;
  margin: 8px 0;
  letter-spacing: 0.03em;
  transition: background 0.27s, color 0.18s, transform 0.13s;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, #13A1CC 0%, var(--secondary) 100%);
  color: #fff;
  transform: translateY(-1px) scale(1.04);
}

button,
input[type="submit"],
input[type="button"] {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  outline: none;
  background: var(--secondary);
  color: #fff;
  border-radius: 16px;
  padding: 8px 20px;
  box-shadow: 0 2px 8px var(--shadow);
  cursor: pointer;
  transition: background 0.2s, color 0.15s, transform 0.12s;
}
button:hover, input[type="submit"]:hover, input[type="button"]:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.03);
}

/* =========================
   HEADER & NAVIGATION BAR
========================= */
header {
  width: 100%;
  background: var(--primary);
  position: relative;
  box-shadow: 0 2px 10px var(--shadow);
  z-index: 90;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px 12px 16px;
  position: relative;
}
header nav a img {
  height: 44px;
  width: auto;
  margin-right: 18px;
}
header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
header nav ul li a {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #edf5fb;
  font-size: 1rem;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 10px;
  transition: background 0.18s, color 0.17s;
}
header nav ul li a:hover,
header nav ul li a:focus {
  background: var(--secondary);
  color: var(--white);
}
header .btn-primary {
  margin-left: 18px;
}

@media (max-width: 995px) {
  header nav ul {
    gap: 6px;
  }
  header nav a img {
    margin-right: 6px;
    height: 36px;
  }
  .btn-primary { font-size: 1rem; }
}

/* ======================
   MOBILE MENU FUNCTION
====================== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 22px;
  top: 12px;
  background: var(--secondary);
  color: var(--primary);
  font-size: 2rem;
  border: none;
  border-radius: 10px;
  padding: 5px 12px;
  z-index: 201;
  cursor: pointer;
  transition: background 0.19s, color 0.19s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--primary);
  color: #fff;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(43, 61, 84, 0.96);
  display: flex;
  z-index: 200;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-110%);
  transition: transform 0.35s cubic-bezier(.54,.12,.26,1.02);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--secondary);
  margin: 22px 24px 10px 0;
  cursor: pointer;
  transition: color 0.18s;
  box-shadow: none;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 32px;
  margin-top: 24px;
  gap: 18px;
  width: 100vw;
}
.mobile-nav a {
  font-family: 'Roboto Slab', serif;
  font-size: 1.2rem;
  color: #fff;
  padding: 13px 0;
  margin-bottom: 6px;
  width: 100%;
  border-bottom: 1px solid rgba(232,240,249,0.08);
  transition: color 0.18s, background 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
  background: rgba(232,240,249,0.10);
}

@media (max-width: 900px) {
  header nav ul,
  header .btn-primary { display: none; }
  .mobile-menu-toggle { display: inline-block; }
}
@media (max-width: 505px) {
  header nav { padding: 10px 6px; }
}

/* NAV OVERLAY Z-INDEX SAFETY */
body.menu-open {
  overflow: hidden;
}

/* ==========================
   MAIN & PAGE LAYOUT
========================== */
main {
  flex: 1;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
}
section {
  margin-bottom: 60px;
  padding: 40px 0;
  background: transparent;
}
@media (max-width: 768px) {
  section { padding: 24px 0; margin-bottom: 36px; }
}

/* ==========================
   CARDS, FEATURE ITEMS etc.
========================== */
.card-content, .feature-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
  align-items: flex-start;
}
.card-container > .card, .feature-grid > div {
  margin-bottom: 20px;
}

/* "Unsere Services" and Lists */
ul li, ol li {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 10px;
  color: #324055;
  position: relative;
}
ul li span {
  color: var(--secondary);
  font-weight: 700;
  margin-left: 6px;
}
ul li strong { color: var(--primary); font-weight: 600; }

/* ====================
   FOOTER DESIGN
==================== */
footer {
  width: 100%;
  background: var(--primary);
  color: var(--gray-light);
  padding: 0 0 18px 0;
  font-size: 1rem;
}
footer .container {
  padding-top: 25px;
  padding-bottom: 10px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(232,240,249,0.15);
  margin-bottom: 14px;
  padding-bottom: 14px;
}
footer h3 { color: #fff; font-size: 1.13rem; margin-bottom: 12px; font-family: 'Roboto Slab', serif; }
footer p, footer a { color: #e8f0f9; font-size: 0.98rem; }
footer a:hover, footer a:focus { color: var(--secondary); }
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
footer p:last-child {
  text-align: center;
  color: #C5D7ED;
  font-size: 0.97rem;
  margin: 4px auto 0 auto;
}
@media (max-width: 820px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 16px;
    padding-bottom: 10px;
  }
}

/* =========================
   COOKIE CONSENT BANNER
========================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100vw;
  background: linear-gradient(90deg, #fff 80%, var(--accent) 100%);
  color: #2B3D54;
  box-shadow: 0 -4px 18px var(--shadow);
  z-index: 1020;
  padding: 26px 17px 22px 17px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  transition: transform 0.34s cubic-bezier(.56,.17,.18,1.04), opacity 0.18s;
  opacity: 1;
}
.cookie-banner.hide {
  transform: translateY(130%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-content {
  max-width: 760px;
  font-size: 1.01rem;
  color: #2B3D54;
  margin-right: 18px;
}
.cookie-banner-btns {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  background: var(--secondary);
  color: #fff;
  border-radius: 12px;
  padding: 9px 19px;
  font-size: 1rem;
  font-family: 'Roboto Slab', serif;
  font-weight: 500;
  border: none;
  cursor: pointer;
  margin-right: 2px;
  box-shadow: 0 2px 8px var(--shadow);
  transition: background 0.18s, color 0.17s;
}
.cookie-btn:focus, .cookie-btn:hover {
  background: var(--primary);
  color: #fff;
}
/* Cookie banner settings btn */
.cookie-btn.settings {
  background: var(--gray);
  color: var(--primary);
}
.cookie-btn.settings:hover {
  background: var(--secondary);
  color: #fff;
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30,44,62,0.30);
  z-index: 2002;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.22s;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  padding: 36px 24px 26px 24px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 8px 36px var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 260px;
  animation: fadeInModal 0.29s cubic-bezier(.58,-0.13,.41,1.19) 1;
}
@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.93) translateY(32px); }
  to { opacity: 1; transform: none; }
}
.cookie-modal h3 {
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 1.21rem;
  font-family: 'Roboto Slab', serif;
}
.cookie-modal ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.cookie-category label { font-weight: 600; color: var(--primary); }
.cookie-category input[type="checkbox"] {
  width: 24px; height: 24px; accent-color: var(--secondary);
}
.cookie-category input[disabled] {
  opacity: 0.55;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 10px;
}
.cookie-modal .cookie-btn {
  min-width: 110px;
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 15px;
  background: transparent;
  font-size: 1.2rem;
  color: var(--secondary);
  border: none;
  padding: 2px 7px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: none;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--primary);
  background: #e8f0f9;
}

/* ===========
   RESPONSIVE
============= */
@media (max-width: 900px) {
  .container { max-width: 97vw; }
  .feature-grid { gap: 14px; }
  .feature-grid > div { padding: 16px 10px; min-width: 180px; }
}
@media (max-width: 768px) {
  .container { padding-left: 8px; padding-right: 8px; }
  .content-wrapper { gap: 14px; }
  .card, .feature-grid > div { min-width: 150px; padding: 14px 8px; border-radius: 10px; }
  .testimonial-card { min-width: 150px; border-radius: 9px; padding: 11px 8px; }
  .cookie-modal { padding: 22px 9px 20px 9px; border-radius: 11px; }
}
@media (max-width: 480px) {
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 10px;
  }
  .feature-grid > div, .card, .testimonial-card { width: 100%; min-width: 98px !important; }
  .cookie-banner-content { margin-right: 0; font-size: 0.94rem; }
  .cookie-banner { gap: 8px; padding: 19px 7px 14px 7px; }
}

/* ================
   MICRO-INTERACTIONS
================== */
section, .section, .feature-grid > div, .testimonial-card, .btn-primary, .card, .cookie-banner, .cookie-banner.hide, .cookie-modal {
  transition: box-shadow 0.24s, background 0.25s, transform 0.19s, opacity 0.19s;
}

/* ==============
   ACCESSIBILITY
============== */
:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* ===========
   UTILITIES
============ */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-8 { margin-top: 8px !important; }
.mb-8 { margin-bottom: 8px !important; }
.mt-20 { margin-top: 20px !important; }
.mb-20 { margin-bottom: 20px !important; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Hide visually but accessible */
.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px; margin: -1px;
  overflow: hidden;
  padding: 0; position: absolute;
  width: 1px;
}

/* ===============
  PRINT FRIENDLY
=============== */
@media print {
  header, footer, .btn-primary, .cookie-banner, .mobile-menu { display: none !important; }
  main { margin: 0; padding: 0; }
  .container { max-width: 100vw; padding: 0; }
}
