/* ============================================================
   Tierwohl-KI — Main Stylesheet
   ============================================================ */

:root {
  --green-dark:    #1a6b3a;
  --green-mid:     #2d9c57;
  --green-light:   #4cc87b;
  --green-pale:    #e8f7ee;
  --white:         #ffffff;
  --gray-100:      #f5f7f6;
  --gray-200:      #e2e8e5;
  --gray-500:      #6b7c74;
  --gray-800:      #1e2d26;
  --shadow-sm:     0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md:     0 4px 20px rgba(0, 0, 0, 0.12);
  --radius:        12px;
  --radius-sm:     6px;
  --transition:    0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-800);
  background: var(--white);
}

img { max-width: 100%; display: block; }
a { color: var(--green-mid); text-decoration: none; }
a:hover { color: var(--green-dark); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--green-mid);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--green-mid);
  border-color: var(--green-mid);
}
.btn-outline:hover {
  background: var(--green-mid);
  color: var(--white);
  transform: translateY(-2px);
}

/* ── Navigation ─────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green-dark);
}
.logo .logo-icon {
  width: 44px;
  height: 44px;
  background: var(--green-mid);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo .logo-icon svg { width: 26px; height: 26px; fill: white; }
.logo span.sub { font-size: 0.7rem; font-weight: 400; color: var(--gray-500); display: block; letter-spacing: 0.05em; }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--gray-800);
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--green-mid); }
.nav-links .btn { padding: 10px 24px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 60%, var(--green-light) 100%);
  color: var(--white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 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.04'%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");
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--green-light); }
.hero p {
  font-size: 1.1rem;
  opacity: 0.92;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-cta .btn-primary {
  background: var(--white);
  color: var(--green-dark);
}
.hero-cta .btn-primary:hover {
  background: var(--green-pale);
}
.hero-cta .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.hero-cta .btn-outline:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-card {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 20px 24px;
  color: white;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-card .card-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.4rem;
}
.hero-card strong { display: block; font-size: 1rem; }
.hero-card span { font-size: 0.85rem; opacity: 0.85; }

/* ── Stats bar ──────────────────────────────────────────── */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 28px 0;
  box-shadow: var(--shadow-sm);
}
.stats-inner {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}
.stat {
  text-align: center;
}
.stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-mid);
}
.stat span { font-size: 0.875rem; color: var(--gray-500); }

/* ── Sections ───────────────────────────────────────────── */
section { padding: 80px 0; }
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--gray-800);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 600px;
  margin-bottom: 56px;
}

/* ── Features ───────────────────────────────────────────── */
.features { background: var(--gray-100); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--gray-200);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-light);
}
.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--green-pale);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 0.925rem; color: var(--gray-500); line-height: 1.7; }

/* ── How it works ───────────────────────────────────────── */
.how-it-works { background: var(--white); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--green-pale);
  z-index: 0;
}
.step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 56px;
  height: 56px;
  background: var(--green-mid);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 auto 16px;
  box-shadow: 0 0 0 8px var(--green-pale);
}
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 0.875rem; color: var(--gray-500); }

/* ── Compliance ─────────────────────────────────────────── */
.compliance { background: var(--green-pale); }
.compliance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.compliance-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.compliance-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}
.compliance-list li .check {
  width: 28px;
  height: 28px;
  background: var(--green-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
  font-size: 0.75rem;
  margin-top: 2px;
}
.compliance-list li strong { display: block; font-size: 0.95rem; }
.compliance-list li span { font-size: 0.875rem; color: var(--gray-500); }

/* ── On-Premise highlight ───────────────────────────────── */
.on-premise { background: var(--white); }
.on-premise-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.on-premise-visual {
  background: linear-gradient(135deg, var(--green-pale), var(--gray-100));
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.server-row {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.server-row .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-green { background: #22c55e; }
.dot-yellow { background: #f59e0b; }
.dot-blue { background: #3b82f6; }
.server-row strong { font-weight: 600; }
.server-row span { color: var(--gray-500); font-size: 0.8rem; margin-left: auto; }
.lock-badge {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--green-dark);
  color: white;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 0.875rem;
  font-weight: 600;
}

.benefit-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.benefit-list li { display: flex; gap: 12px; align-items: flex-start; }
.benefit-list li::before {
  content: '✓';
  width: 22px; height: 22px;
  background: var(--green-pale);
  color: var(--green-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 800;
  flex-shrink: 0; margin-top: 2px;
}

/* ── Contact form ───────────────────────────────────────── */
.contact { background: var(--gray-100); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
.contact-info p { color: var(--gray-500); margin-bottom: 32px; }
.info-item {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.info-item .icon {
  width: 40px; height: 40px;
  background: var(--green-pale);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--gray-800);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition);
  background: var(--white);
  color: var(--gray-800);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(45,156,87,0.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.8rem; color: var(--gray-500); margin-top: 12px; }

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--gray-800);
  color: rgba(255,255,255,0.8);
  padding: 56px 0 24px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { color: white; margin-bottom: 16px; }
.footer-brand p { font-size: 0.875rem; opacity: 0.7; line-height: 1.7; max-width: 300px; }
footer h4 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 16px;
}
footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
footer ul a { color: rgba(255,255,255,0.65); font-size: 0.9rem; transition: color var(--transition); }
footer ul a:hover { color: var(--green-light); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 0.82rem;
  opacity: 0.6;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Subpages ───────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: white;
  padding: 64px 0 48px;
}
.page-hero h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 8px; }
.page-hero p { opacity: 0.85; }
.legal-content {
  padding: 64px 0;
  max-width: 760px;
}
.legal-content h2 { font-size: 1.3rem; font-weight: 700; margin: 36px 0 12px; color: var(--gray-800); }
.legal-content h3 { font-size: 1.05rem; font-weight: 700; margin: 24px 0 8px; color: var(--gray-800); }
.legal-content p { margin-bottom: 16px; color: var(--gray-500); }
.legal-content ul { margin-left: 24px; margin-bottom: 16px; color: var(--gray-500); }
.legal-content ul li { margin-bottom: 8px; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .compliance-grid { grid-template-columns: 1fr; }
  .on-premise-inner { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: white; padding: 24px; border-top: 1px solid var(--gray-200); box-shadow: var(--shadow-md); gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .footer-top { grid-template-columns: 1fr; }
  .stats-inner { justify-content: center; }
}
