/* ===== CSS Variables ===== */
:root {
  --primary-color: #0B0D17;
  --secondary-color: #2c2925;
  --accent-color: #009ED6;
  --highlight-color: #009FE3;
  --warm-accent: #E8A838;
  --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;
  --font-heading: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* ===== 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-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--primary-color);
  letter-spacing: -0.01em;
}

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-family: var(--font-heading);
  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;
  border-radius: 8px;
}

.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, #0B0D17 0%, #1a2332 50%, #0d2137 100%);
  color: var(--bg-white);
  padding: 8rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 158, 214, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(232, 168, 56, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(0, 159, 227, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
}

.hero-section h1 {
  color: var(--bg-white);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease;
  position: relative;
  z-index: 1;
}

.hero-section .lead {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.85);
  opacity: 0.95;
  animation: fadeInUp 1.2s ease;
  position: relative;
  z-index: 1;
}

.hero-section .btn {
  animation: fadeInUp 1.4s ease;
  position: relative;
  z-index: 1;
}

.hero-section-sm {
  padding: 5rem 0;
}

@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(--warm-accent));
  margin: 1.5rem auto 0;
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-light);
  max-width: 800px;
  margin: 1rem auto 0;
}

.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);
}

.card-accent {
  border-left: 4px solid 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: 1.75rem;
  color: var(--bg-white);
  box-shadow: 0 4px 15px rgba(0, 158, 214, 0.25);
  transition: var(--transition);
}

.card-icon {
  width: 80px;
  height: 80px;
  font-size: 2rem;
}

.service-card:hover .service-icon,
.case-study-card:hover .card-icon {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 158, 214, 0.35);
}

.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;
}

.card-impact {
  font-style: italic;
  margin-top: 1rem;
}

.card-badge {
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.card-text-sm {
  font-size: 0.95rem;
}

.card-list {
  color: var(--text-light);
  margin-top: 1.5rem;
}

.card-result {
  font-style: italic;
  color: var(--accent-color);
  margin-bottom: 0;
}

/* ===== Buttons ===== */
.btn {
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  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);
}

/* ===== Testimonial / Quote Cards ===== */
.testimonial-card {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-light);
  border-left: 4px solid var(--accent-color);
  border-radius: 0 8px 8px 0;
}

.quote-text {
  font-style: italic;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.quote-author {
  margin: 0;
  color: var(--text-lighter);
  font-size: 0.9rem;
}

/* ===== Step Numbers ===== */
.step-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 1rem;
  line-height: 1;
}

/* ===== Stat Numbers ===== */
.stat-number {
  font-family: var(--font-heading);
  color: var(--accent-color);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-light);
  margin-bottom: 0;
}

.stat-detail {
  font-size: 0.85rem;
  color: var(--text-lighter);
}

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

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

.text-warm {
  color: var(--warm-accent);
}

.text-muted-light {
  color: var(--text-light);
}

.text-meta {
  color: var(--text-lighter);
  font-size: 0.9rem;
}

.subsection-title {
  color: var(--primary-color);
  margin-top: 1.5rem;
}

.feature-title {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.checklist {
  list-style: none;
  padding: 0;
  color: var(--text-light);
}

.checklist li {
  margin-bottom: 1rem;
}

.img-profile {
  border-radius: 20px !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
}

.img-wrapper {
  max-width: 400px;
  margin: 0 auto;
}

.lead-muted {
  color: var(--text-light);
  margin-bottom: 2rem;
}

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

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

/* ===== Scroll Reveal Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===== 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: 4rem 0 0;
  margin-top: 0;
}

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

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

.footer-section h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-color);
  border-radius: 1px;
}

.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-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent-color);
  color: var(--bg-white);
  transform: translateY(-3px);
}

.footer-divider {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

/* ===== 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;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  /* 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: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  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;
  }
}
