/* ===== CSS Variables ===== */
:root {
  --primary-color: #0B0D17;
  --secondary-color: #2c2925;
  --accent-color: #009ED6;
  --highlight-color: #009FE3;
  --text-color: #333333;
  --text-light: #4a4a4a;
  --text-lighter: #6b6b6b;
  --bg-light: #F9FAFB;
  --bg-white: #ffffff;
  --bg-gray: #efefef;
  --border-color: #e0e0e0;
  --transition: all 0.3s ease;
}

/* ===== Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  color: var(--text-color);
  background-color: var(--bg-white);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

h1 { font-size: 3rem; font-weight: 700; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--highlight-color);
}

/* ===== Header & Navigation ===== */
.site-header {
  background: var(--bg-white);
  box-shadow: 0 2px 15px rgba(44, 62, 80, 0.08);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .navbar {
  padding: 1rem 0;
}

.navbar-brand {
  display: flex;
  flex-direction: column;
  color: var(--primary-color) !important;
  font-weight: 700;
  transition: var(--transition);
}

.navbar-brand:hover {
  color: var(--accent-color) !important;
}

.brand-name {
  font-size: 1.5rem;
  line-height: 1.2;
}

.brand-tagline {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.7;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
}

.navbar-nav .nav-link {
  color: var(--text-color) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  border-radius: 4px;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover {
  color: var(--accent-color) !important;
  background-color: var(--bg-light);
}

.navbar-nav .nav-link.active {
  color: var(--accent-color) !important;
  background-color: var(--bg-light);
}

.navbar-nav .nav-link-cta {
  background-color: var(--accent-color) !important;
  color: var(--bg-white) !important;
  margin-left: 0.5rem;
}

.navbar-nav .nav-link-cta:hover {
  background-color: var(--highlight-color) !important;
  color: var(--bg-white) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* ===== Hero Section ===== */
.hero-section {
  background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
  color: var(--text-color);
  padding: 8rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" fill="%233498db" fill-opacity="0.05"></path></svg>') repeat-x;
  background-size: 100% 120px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-section h1 {
  color: var(--primary-color);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease;
}

.hero-section .lead {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--text-light);
  opacity: 0.95;
  animation: fadeInUp 1.2s ease;
}

.hero-section .btn {
  animation: fadeInUp 1.4s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Sections ===== */
.content-section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), var(--highlight-color));
  margin: 1.5rem auto 0;
  border-radius: 2px;
}

.bg-light-section {
  background-color: var(--bg-light);
}

/* ===== Cards ===== */
.service-card, .case-study-card, .publication-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 2.5rem;
  height: 100%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.service-card:hover, .case-study-card:hover, .publication-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  border-color: var(--accent-color);
}

.service-icon, .card-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--accent-color), var(--highlight-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: var(--bg-white);
}

.card-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.card-text {
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== Buttons ===== */
.btn {
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-color), var(--highlight-color));
  color: var(--bg-white) !important;
  box-shadow: 0 4px 15px rgba(0,158,214,0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0,158,214,0.4);
  background: linear-gradient(135deg, var(--highlight-color), var(--accent-color));
  color: var(--bg-white) !important;
}

.btn-outline {
  background: transparent;
  color: var(--accent-color) !important;
  border: 2px solid var(--accent-color);
}

.btn-outline:hover {
  background: var(--accent-color);
  color: var(--bg-white) !important;
  transform: translateY(-3px);
}

.btn-light {
  background: var(--bg-white);
  color: var(--accent-color) !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-light:hover {
  background: var(--bg-light);
  color: var(--accent-color) !important;
  transform: translateY(-3px);
}

/* ===== Forms ===== */
.form-control, .form-select, textarea.form-control {
  padding: 0.875rem 1.25rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus, .form-select:focus, textarea.form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(15,52,96,0.15);
  outline: none;
}

.form-label {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* ===== Footer ===== */
.site-footer {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 1rem;
  margin-top: 5rem;
}

.footer-section {
  margin-bottom: 2rem;
}

.footer-section h5 {
  color: var(--bg-white);
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-description {
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--bg-white);
  transform: translateX(5px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.6);
  margin: 0;
  font-size: 0.9rem;
}

/* ===== Utility Classes ===== */
.text-accent {
  color: var(--accent-color);
}

.text-highlight {
  color: var(--highlight-color);
}

.mb-section {
  margin-bottom: 5rem;
}

.mt-section {
  margin-top: 5rem;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .hero-section {
    padding: 5rem 0;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section .lead {
    font-size: 1.25rem;
  }

  .content-section {
    padding: 3rem 0;
  }

  .section-title h2 {
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h5 { font-size: 1.1rem; }
  h6 { font-size: 0.95rem; }

  .navbar-brand {
    font-size: 1.25rem;
  }

  .brand-tagline {
    font-size: 0.65rem;
  }

  .service-card, .case-study-card, .publication-card {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  .hero-section {
    padding: 2rem 0 !important;
  }

  .hero-section h1 {
    font-size: 1.75rem;
  }

  .hero-section .lead {
    font-size: 1rem;
  }

  .content-section {
    padding: 2rem 0;
  }

  /* FAQ-specific mobile optimizations */
  .service-card h5 {
    font-size: 1rem;
    line-height: 1.4;
    word-wrap: break-word;
  }

  .service-card ul,
  .service-card ol {
    padding-left: 1.25rem;
    margin-left: 0;
  }

  .service-card ul li,
  .service-card ol li {
    margin-bottom: 0.75rem;
    padding-left: 0.25rem;
  }

  .service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* Buttons auf mobile full-width */
  .btn-lg {
    width: 100%;
    padding: 1rem 1.5rem;
  }
}

/* ===== Cookie Consent Banner ===== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-white);
  border-top: 3px solid var(--accent-color);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-consent-banner.show {
  transform: translateY(0);
}

.cookie-consent-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.cookie-consent-content {
  margin-bottom: 1.5rem;
}

.cookie-consent-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.cookie-consent-text {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.cookie-consent-text-small {
  font-size: 0.9rem;
  color: var(--text-lighter);
  margin-bottom: 0;
}

.cookie-consent-text-small a {
  color: var(--accent-color);
  text-decoration: underline;
}

.cookie-consent-text-small a:hover {
  color: var(--highlight-color);
}

.cookie-consent-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-btn-primary {
  background: linear-gradient(135deg, var(--accent-color), var(--highlight-color));
  color: var(--bg-white);
  box-shadow: 0 4px 15px rgba(0, 158, 214, 0.3);
}

.cookie-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 158, 214, 0.4);
}

.cookie-btn-secondary {
  background: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}

.cookie-btn-secondary:hover {
  background: var(--accent-color);
  color: var(--bg-white);
  transform: translateY(-2px);
}

/* Cookie Settings Panel */
.cookie-consent-settings {
  border-top: 2px solid var(--border-color);
  padding-top: 2rem;
  animation: fadeIn 0.3s ease;
}

.cookie-category {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}

.cookie-category-header {
  margin-bottom: 0.75rem;
}

.cookie-category-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin: 0;
}

.cookie-category-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 0.75rem;
  cursor: pointer;
  accent-color: var(--accent-color);
}

.cookie-category-label input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.cookie-category-label strong {
  color: var(--primary-color);
  font-size: 1.1rem;
}

.cookie-category-description {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
  margin-left: 2rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive Cookie Banner */
@media (max-width: 767px) {
  .cookie-consent-container {
    padding: 1.5rem;
  }

  .cookie-consent-title {
    font-size: 1.25rem;
  }

  .cookie-consent-text {
    font-size: 0.9rem;
  }

  .cookie-consent-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cookie-btn {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
  }

  .cookie-category {
    padding: 1rem;
  }

  .cookie-category-description {
    margin-left: 0;
    margin-top: 0.5rem;
  }
}

/* ===== FAQ Accordion Styling ===== */
.accordion-button {
  font-weight: 600;
  color: var(--primary-color);
  background-color: var(--bg-white);
  border: none;
  font-size: 1.1rem;
}

.accordion-button:not(.collapsed) {
  color: var(--accent-color);
  background-color: var(--bg-light);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--accent-color);
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23009ED6'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-item {
  border: 1px solid var(--border-color);
  margin-bottom: 0.5rem;
  border-radius: 8px;
  overflow: hidden;
}

.accordion-item:first-of-type .accordion-button {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.accordion-body {
  padding: 1.5rem;
  color: var(--text-light);
  line-height: 1.7;
}

.accordion-body p {
  margin-bottom: 1rem;
}

.accordion-body ul, .accordion-body ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.accordion-body li {
  margin-bottom: 0.5rem;
}

@media (max-width: 767px) {
  .accordion-button {
    font-size: 1rem;
    padding: 1rem;
  }

  .accordion-body {
    padding: 1rem;
    font-size: 0.95rem;
  }
}