/* ============================================
   Westermann Consulting - Website Styles
   CI: #7AB800 (primary green), #1a1a1a (text)
   ============================================ */

/* --- Google Fonts loaded via <link> in HTML for better performance --- */

/* --- CSS Variables --- */
:root {
  --primary: #7AB800;
  --primary-dark: #5a8a00;
  --primary-light: #eef6dd;
  --primary-rgb: 122, 184, 0;
  --text: #1a1a1a;
  --text-light: #555;
  --text-muted: #777;
  --bg: #ffffff;
  --bg-alt: #f8f8f6;
  --bg-dark: #1a1a1a;
  --border: #e5e5e5;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 3px rgba(45,60,20,0.06);
  --shadow-md: 0 4px 20px rgba(45,60,20,0.08);
  --shadow-lg: 0 8px 40px rgba(45,60,20,0.10);
  --transition: 0.3s ease;
  --max-width: 1200px;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'DM Serif Display', Georgia, serif;
}

/* --- Grain Overlay --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary);
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1200;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* --- Focus Visible --- */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  letter-spacing: -0.015em;
}

h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 600; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
  text-wrap: pretty;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-light);
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-dark {
  background: var(--bg-dark);
  color: #fff;
}

.section-dark h2,
.section-dark h3,
.section-dark p {
  color: #fff;
}

.section-dark p {
  color: rgba(255,255,255,0.75);
}

/* Section Variants */
.section-compact {
  padding: 3rem 0;
}

.section-spacious {
  padding: 7rem 0;
}

/* --- Section Headers --- */
.section-header {
  max-width: 680px;
  margin-bottom: 3.5rem;
}

.section-header.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.nav-links a.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 2rem;
  background: var(--primary);
  color: #fff !important;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--transition);
}

.nav-cta:hover {
  background: var(--primary-dark);
  color: #fff !important;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 6px rgba(var(--primary-rgb), 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.btn-outline:active {
  transform: scale(0.98);
}

.btn-white {
  background: #fff;
  color: var(--text);
}

.btn-white:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.btn-white:active {
  transform: scale(0.98);
}

.btn-ghost {
  background: transparent;
  color: var(--primary-dark);
  padding-left: 0;
  padding-right: 0;
}

.btn-ghost:hover {
  color: var(--primary);
}

.btn-ghost .arrow {
  transition: transform var(--transition);
}

.btn-ghost:hover .arrow {
  transform: translateX(4px);
}

/* --- Hero --- */
.hero {
  padding: 10rem 0 6rem;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 720px;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.highlight {
  color: var(--primary);
}

.hero .lead {
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Hero Split-Screen --- */
.hero-split {
  min-height: auto;
  padding: 7rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 60% 40%;
  align-items: center;
  gap: 2rem;
}

.hero-split .hero-text {
  /* linke Spalte */
}

.hero-split .hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-portrait {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border: 4px solid #fff;
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}

.hero-split h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

/* --- Hero Badges (Zertifikate) --- */
.hero-badges {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-badge-logo {
  height: 56px;
  width: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.hero-badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Kinetic Keyword-Rotation --- */
.hero-keyword-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  height: clamp(5rem, 13vw, 6rem);
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  overflow: hidden;
}

.hero-keyword {
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  display: flex;
  align-items: center;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(100%);
  animation: keyword-cycle 9s infinite ease-in-out;
}

.hero-keyword:nth-child(1) {
  animation-delay: 0s;
}

.hero-keyword:nth-child(2) {
  animation-delay: 3s;
}

.hero-keyword:nth-child(3) {
  animation-delay: 6s;
}

@keyframes keyword-cycle {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }
  5% {
    opacity: 1;
    transform: translateY(0);
  }
  28% {
    opacity: 1;
    transform: translateY(0);
  }
  33% {
    opacity: 0;
    transform: translateY(-100%);
  }
  100% {
    opacity: 0;
    transform: translateY(-100%);
  }
}

/* --- Hero CSS-Shapes --- */
.hero-shapes {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 300px;
}

.shape {
  position: absolute;
  border-radius: 50%;
  animation: shape-float 6s ease-in-out infinite;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: #7AB800;
  opacity: 0.15;
  top: 5%;
  right: 0;
  animation-duration: 7s;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: #eef6dd;
  top: 35%;
  left: 20%;
  animation-duration: 6s;
  animation-delay: -1s;
}

.shape-3 {
  width: 120px;
  height: 120px;
  background: #5a8a00;
  opacity: 0.2;
  bottom: 10%;
  left: 5%;
  animation-duration: 8s;
  animation-delay: -2s;
}

.shape-4 {
  width: 160px;
  height: 160px;
  background: #eef6dd;
  border-radius: 30%;
  top: 15%;
  left: 40%;
  transform: rotate(45deg);
  animation: shape-float-rotate 8s ease-in-out infinite;
}

@keyframes shape-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes shape-float-rotate {
  0%, 100% {
    transform: rotate(45deg) translateY(0);
  }
  50% {
    transform: rotate(45deg) translateY(-20px);
  }
}

/* --- Clip-Path Sections --- */
.clip-bottom {
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
  padding-bottom: 5rem;
}

.clip-top {
  clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%);
  padding-top: 5rem;
}

.clip-both {
  clip-path: polygon(0 12%, 100% 0, 100% 88%, 0 100%);
  padding-top: 8rem;
  padding-bottom: 8rem;
}

/* --- Feature Sections --- */
.feature-section {
  padding: 6rem 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-grid.reverse {
  direction: rtl;
}

.feature-grid.reverse > * {
  direction: ltr;
}

.feature-number {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 8vw, 7rem);
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.feature-text h2 {
  margin-bottom: 1rem;
}

.feature-list {
  list-style: none;
  margin-top: 1.5rem;
}

.feature-list li {
  padding: 0.6rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--text-light);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237AB800' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.feature-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.usp-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.feature-screenshot {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

/* --- SVG Icon Cluster (Feature Sections) --- */
.feature-icon-cluster {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  margin: 0 auto;
}

.feature-icon-cluster svg {
  position: absolute;
}

.feature-icon-main {
  width: 120px;
  height: 120px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.feature-icon-sm {
  width: 48px;
  height: 48px;
  opacity: 0.3;
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--bg-dark);
  padding: 4rem 0;
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

/* --- Intro Statement --- */
.intro-statement {
  text-align: center;
  padding: 4rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.intro-statement p {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: var(--text);
  line-height: 1.5;
  position: relative;
}

.intro-statement p::before,
.intro-statement p::after {
  content: '';
  display: inline-block;
  width: 60px;
  height: 1px;
  background: var(--border);
  vertical-align: middle;
  margin: 0 1.5rem;
}

/* --- USP Section --- */
.usp-section {
  padding: 2rem 0;
}

.usp-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.usp-text h2 {
  margin-bottom: 1rem;
}

.usp-text p {
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.usp-visual {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.usp-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  transition: all var(--transition);
}

.usp-card:hover {
  border-color: rgba(var(--primary-rgb), 0.3);
  box-shadow: var(--shadow-sm);
}

.usp-card-icon {
  margin-bottom: 0.75rem;
}

.usp-card h4 {
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.usp-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* --- Mid-CTA --- */
.mid-cta {
  text-align: center;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.mid-cta p {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-bottom: 1.25rem;
  color: var(--text);
}

/* --- CTA Enhancements --- */
.cta-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn-ghost-light {
  color: rgba(255,255,255,0.8);
  border: none;
  background: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-ghost-light:hover {
  color: #fff;
}

.btn-ghost-light .arrow {
  transition: transform var(--transition);
}

.btn-ghost-light:hover .arrow {
  transform: translateX(4px);
}

.cta-hint {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  font-style: italic;
}

.section-dark .cta-section p {
  color: rgba(255,255,255,0.75);
}

/* --- Cards --- */
.card {
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(45,60,20,0.1);
}

.card:hover::before {
  border-color: rgba(var(--primary-rgb), 0.35);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-icon {
  transform: scale(1.08);
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.95rem;
}

/* Pillar Grid (asymmetric 3-column) */
.pillar-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}

.pillar-grid .card-featured {
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-left: 3px solid var(--primary);
}

.pillar-grid .card-featured::before {
  border-left: none;
}

.pillar-grid .card-featured h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
}

.pillar-grid .card-featured p {
  flex: 1;
}

@media (max-width: 768px) {
  .pillar-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .pillar-grid .card-featured {
    grid-row: auto;
  }
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* --- Trust Bar --- */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 2rem 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-item svg {
  flex-shrink: 0;
  color: var(--primary);
}

/* Trust Bar Dark Variant */
.trust-bar-dark {
  background: var(--bg-dark);
  padding: 2rem 0;
}

.trust-bar-dark-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-item-dark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

.trust-item-dark svg {
  flex-shrink: 0;
  color: var(--primary);
}

/* --- Process Steps --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  counter-reset: step;
}

.process-step {
  counter-increment: step;
  position: relative;
}

.process-step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--primary-light);
  margin-bottom: 1rem;
  line-height: 1;
}

.process-step h3 {
  margin-bottom: 0.5rem;
}

/* --- Testimonial --- */
.testimonial {
  position: relative;
  padding: 2.5rem;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

.testimonial-role {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --- Testimonial Wall --- */
.testimonial-wall {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
  border-color: rgba(var(--primary-rgb), 0.25);
  box-shadow: var(--shadow-md);
}

.testimonial-card:first-child {
  grid-row: 1 / 2;
}

.testimonial-card-short {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}

.testimonial-card:last-child {
  grid-column: 1 / -1;
  max-width: 70%;
  justify-self: center;
}

.testimonial-footer {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 1rem;
}

.testimonial-footer .testimonial-author,
.testimonial-footer .testimonial-role {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .testimonial-wall {
    grid-template-columns: 1fr;
  }
  .testimonial-card-short {
    grid-column: auto;
    grid-row: auto;
  }
  .testimonial-card:last-child {
    grid-column: auto;
    max-width: 100%;
  }
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 5rem 0;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  max-width: 560px;
  margin: 0 auto 2rem;
}

/* --- Footer --- */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand img {
  height: 32px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

.footer h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
}

.footer-bottom a:hover {
  color: var(--primary);
}

/* --- Contact Form --- */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  outline: 2px solid rgba(var(--primary-rgb), 0.3);
  outline-offset: -1px;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* --- Blog Cards --- */
.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--primary-rgb), 0.3);
}

.blog-card-body {
  padding: 2rem;
}

.blog-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.blog-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.blog-card p {
  font-size: 0.9rem;
}

/* --- Certification Cards --- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.cert-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.cert-card:hover {
  border-color: rgba(var(--primary-rgb), 0.3);
  box-shadow: var(--shadow-md);
}

.cert-logo {
  height: 80px;
  width: auto;
  margin: 0 auto 1.25rem;
}

.cert-img {
  height: 160px;
  width: auto;
  margin: 0 auto 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.cert-card h4 {
  margin-bottom: 0.25rem;
}

.cert-card p {
  font-size: 0.85rem;
}

/* --- Case Study Card --- */
.case-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  transition: all var(--transition);
}

.case-card:hover {
  border-color: rgba(var(--primary-rgb), 0.3);
  box-shadow: var(--shadow-md);
}

.case-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.case-card h3 {
  margin-bottom: 1rem;
}

.case-detail {
  margin-bottom: 1.25rem;
}

.case-detail-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.case-detail p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.case-result {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  margin-top: 0.5rem;
}

.case-footnote {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* --- Case Card Featured + Flowchart Preview --- */
.case-card-featured {
  grid-column: 1 / -1;
}

/* --- Staggered Reference Layout --- */
.ref-staggered {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.ref-staggered .case-card {
  max-width: 75%;
  transition: all var(--transition);
}

.ref-staggered .case-card:nth-child(odd) {
  align-self: flex-start;
}

.ref-staggered .case-card:nth-child(even) {
  align-self: flex-end;
}

.ref-staggered .case-card.ref-highlight {
  max-width: 85%;
  border-left: 3px solid var(--primary);
}

@media (max-width: 768px) {
  .ref-staggered .case-card,
  .ref-staggered .case-card.ref-highlight {
    max-width: 100%;
  }
}

.case-flowchart-preview {
  margin: 1.25rem 0;
}

.flowchart-link {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.flowchart-preview-inner {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  overflow: hidden;
  transition: all var(--transition);
}

.flowchart-preview-inner:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.flowchart-preview-lanes {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fp-lane {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.03em;
}

.fp-lane-ext {
  background: #e8f2ff;
  color: #0071e3;
  border: 1px solid #c5ddf8;
}

.fp-lane-mid {
  background: #f0f4f8;
  color: var(--text-light);
  border: 1px solid #dde3ea;
}

.fp-lane-erp {
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid #d5e8b8;
}

.flowchart-preview-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.85);
  opacity: 0;
  transition: opacity var(--transition);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.flowchart-preview-inner:hover .flowchart-preview-overlay {
  opacity: 1;
}

/* --- Page Hero (Inner Pages) --- */
.page-hero {
  padding: 9rem 0 4rem;
  background: var(--bg-alt);
}

.page-hero h1 {
  margin-bottom: 1rem;
}

.page-hero .lead {
  max-width: 640px;
}

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-dark);
  color: rgba(255,255,255,0.8);
  padding: 1.25rem;
  z-index: 900;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  font-size: 0.85rem;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-inner a {
  color: var(--primary);
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

.cookie-btn-accept {
  background: var(--primary);
  color: #fff;
}

.cookie-btn-decline {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 8rem 0 4rem;
    min-height: auto;
  }

  .section {
    padding: 3.5rem 0;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .trust-bar {
    gap: 1.5rem;
  }

  .cert-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-actions {
    flex-direction: column;
  }

  .cookie-inner {
    flex-direction: column;
    text-align: center;
  }

  /* Bold & Dynamic - Responsive 768px */
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  .feature-grid,
  .feature-grid.reverse {
    grid-template-columns: 1fr;
  }

  .feature-visual {
    order: -1;
    margin-bottom: 2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .clip-bottom,
  .clip-top,
  .clip-both {
    clip-path: none;
  }

  .intro-statement p::before,
  .intro-statement p::after {
    display: none;
  }

  .usp-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature-number {
    font-size: 3rem;
  }
}

@media (max-width: 480px) {
  html { font-size: 15px; }
  .container { padding: 0 1rem; }
  .card { padding: 1.75rem; }

  /* Bold & Dynamic - Responsive 480px */
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Modal / Lightbox --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1100;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-overlay.open {
  display: flex;
}

.modal-content {
  position: relative;
  width: 92vw;
  height: 90vh;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--bg-dark);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.modal-close:hover {
  background: #333;
}

.modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Case Preview (Referenzen) --- */
.case-preview-link {
  display: block;
  margin: 1rem 0;
  position: relative;
}

.case-preview-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  width: 100%;
  height: auto;
}

.case-preview-badge {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.testimonial-quote-icon {
  margin-bottom: 1.5rem;
}

/* --- Page-Specific Helpers --- */
.grid-2-feature {
  align-items: center;
  gap: 4rem;
}

.grid-3-narrow {
  max-width: 1100px;
  margin: 0 auto;
}

.img-caption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.text-muted { color: var(--text-muted); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* --- Article Layout --- */
.article-content {
  max-width: 720px;
  margin: 0 auto;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  padding-bottom: 2.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.article-meta svg {
  flex-shrink: 0;
  opacity: 0.5;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.article-content h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.article-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.article-content h3 {
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}

.article-content > p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-light);
}

.article-content ul,
.article-content ol {
  margin: 1.25rem 0 1.5rem;
  padding-left: 0;
  list-style: none;
}

.article-content ul li,
.article-content ol li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.75;
}

.article-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.6;
}

.article-content ol {
  counter-reset: article-step;
}

.article-content ol li {
  counter-increment: article-step;
}

.article-content ol li::before {
  content: counter(article-step) ".";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}

.article-content li strong {
  color: var(--text);
}

.article-callout {
  background: var(--bg-alt);
  border-left: 3px solid var(--primary);
  padding: 1.5rem 2rem;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin: 2rem 0;
}

.article-callout p {
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 0.5rem;
}

.article-callout p:last-child {
  margin-bottom: 0;
}

.article-callout strong {
  color: var(--text);
}

.article-cta-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 1.5rem 2rem;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin: 2.5rem 0;
}

.article-cta-box p {
  margin: 0;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
}

.article-cta-box a {
  font-weight: 600;
}

/* Article responsive */
@media (max-width: 768px) {
  .article-content {
    max-width: 100%;
  }
  .article-callout,
  .article-cta-box {
    padding: 1.25rem 1.5rem;
  }
  .article-meta {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}
