:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f1720;
  --muted: #64748b;
  --line: #dbe3ec;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --accent: #10b981;
  --sky: #14b8a6;
  --indigo: #6366f1;
  --fallback-indigo: #4f46e5;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(15, 23, 32, 0.08);
  --max: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% -20%, rgba(15, 118, 110, 0.08) 0%, transparent 42%), var(--bg);
  line-height: 1.55;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: #fff;
  z-index: 999;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.narrow {
  max-width: 820px;
}

h1,
h2,
h3 {
  font-family: Inter, "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 5.5vw, 4.25rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  line-height: 1.15;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

p {
  margin: 0;
  max-width: 65ch;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, #f9fbfc 0%, #eef3f6 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-intro {
  margin-top: 1rem;
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(217, 226, 231, 0.8);
  background: rgba(248, 250, 252, 0.88);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.logo-dot {
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
}

.logo-dot::before {
  content: "C!";
}

.main-nav {
  display: flex;
  gap: 1.25rem;
}

.main-nav a,
.site-footer a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

.main-nav a:hover,
.site-footer a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--brand) 5%, var(--brand-dark) 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 118, 110, 0.28);
}

.btn:focus-visible,
.btn-ghost:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #111;
  outline-offset: 3px;
}

.btn-small {
  padding: 0.55rem 0.95rem;
  font-size: 0.92rem;
}

.nav-cta {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: none;
}

.hero {
  position: relative;
  overflow: clip;
  padding: 7rem 0 5rem;
  min-height: 88svh;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 20%, rgba(15, 118, 110, 0.14) 0%, transparent 40%),
    radial-gradient(circle at 18% 20%, rgba(20, 184, 166, 0.14) 0%, transparent 45%);
  z-index: 0;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(120px, 22%, 220px);
  background: linear-gradient(180deg, rgba(244, 246, 247, 0) 0%, rgba(244, 246, 247, 0.88) 78%, rgba(244, 246, 247, 1) 100%);
  z-index: 2;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(217, 226, 231, 0.9) 12%, rgba(217, 226, 231, 0.95) 88%, transparent 100%);
  z-index: 4;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
}

.eyebrow {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: var(--brand);
  max-width: none;
  margin-inline: auto;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-content.is-revealed .eyebrow {
  opacity: 1;
  transform: translateY(0);
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2em;
  min-height: 2.4em;
  margin-top: 0.75rem;
}

.hero-type-line,
.hero-fixed-line {
  display: block;
}

.hero-type-line {
  min-height: 1.1em;
}

.hero-fixed-line {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-content.is-revealed .hero-fixed-line {
  opacity: 1;
  transform: translateY(0);
}

.hero-cursor {
  display: inline-block;
  width: 0.09em;
  height: 0.94em;
  margin-left: 0.08em;
  vertical-align: -0.08em;
  background: currentColor;
  border-radius: 999px;
  animation: hero-cursor-blink 1s steps(1, end) infinite;
}

.subhead {
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin-top: 2rem;
  color: #334155;
  max-width: 580px;
  margin-inline: auto;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-content.is-revealed .subhead {
  opacity: 1;
  transform: translateY(0);
}

.hero-cta-btn {
  margin-top: 2.5rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease 0.15s, transform 0.7s ease 0.15s, box-shadow 0.2s ease, background-color 0.2s ease;
}

.hero-content.is-revealed .hero-cta-btn {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hero-cursor-blink {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

.grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.card p,
.step p {
  margin-top: 0.55rem;
  color: var(--muted);
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 2px 8px rgba(15, 23, 32, 0.04);
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.feature-icon {
  width: 1.65rem;
  height: 1.65rem;
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 0.1rem;
  transition: transform 0.3s ease;
}

/* Themen-Erkennung: pulse on hover */
.feature-card:hover .fi-scan {
  animation: fi-pulse 0.5s ease;
}

/* KI-Sicherheit: bounce up on hover */
.feature-card:hover .fi-chart {
  animation: fi-bounce 0.5s ease;
}

/* Multi-Tagging: grid tiles pop staggered */
.fi-grid rect {
  transition: transform 0.3s ease;
  transform-origin: center;
  transform-box: fill-box;
}
.feature-card:hover .fi-grid-tl { transform: scale(1.18); transition-delay: 0s; }
.feature-card:hover .fi-grid-tr { transform: scale(1.18); transition-delay: 0.06s; }
.feature-card:hover .fi-grid-bl { transform: scale(1.18); transition-delay: 0.12s; }
.feature-card:hover .fi-grid-br { transform: scale(1.18); transition-delay: 0.18s; }

/* Kategoriemanagement: pen wiggles */
.feature-card:hover .fi-edit {
  animation: fi-wiggle 0.5s ease;
}

/* Reporting: checkmark bounces */
.feature-card:hover .fi-check {
  animation: fi-bounce 0.4s ease;
}

/* Workflow: cycle rotates */
.feature-card:hover .fi-cycle {
  animation: fi-spin 1.2s ease-in-out;
}

@keyframes fi-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

@keyframes fi-bounce {
  0% { transform: translateY(0); }
  40% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

@keyframes fi-wiggle {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(-8deg); }
  40% { transform: rotate(8deg); }
  60% { transform: rotate(-5deg); }
  80% { transform: rotate(3deg); }
  100% { transform: rotate(0deg); }
}

@keyframes fi-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.feature-body h3 {
  white-space: nowrap;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
}

.feature-body p {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.feature-grid {
  gap: 0.85rem;
}

.steps {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-nr {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, var(--brand), var(--brand-dark));
  margin-bottom: 0.75rem;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
}

th,
td {
  padding: 0.95rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  background: #f4f8fa;
}

.faq-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.7rem;
}

details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 1rem;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

details p {
  margin-top: 0.7rem;
  color: var(--muted);
}

.cta {
  text-align: center;
  padding: 5rem 0 6rem;
}

.cta p {
  margin: 1.25rem auto 0;
}

.cta .btn {
  margin-top: 2.25rem;
}

.fineprint {
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 980px) {
  .grid.four,
  .grid.three,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 760px) {
  .section {
    padding: 3.2rem 0;
  }

  .main-nav {
    display: none;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 82svh;
    padding-top: 5rem;
  }

  .hero-title {
    min-height: 2.8em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
    animation: none !important;
  }
}
