:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f5;
  --card: #ffffff;
  --accent: #000000;
  --accent-soft: #e5e5e5;
  --accent-strong: #111111;
  --text: #000000;
  --muted: #555555;
  --border: rgba(0, 0, 0, 0.25);
  --danger: #d60000;
  --radius: 1.2rem;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.15);
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.25rem;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 1.1rem;
  background: radial-gradient(circle at 20% 20%, #000000, #666666);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  font-weight: 700;
  font-size: 1.15rem;
  color: #ffffff;
}

.logo-text-main {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.logo-text-sub {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: -0.08rem;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  font-size: 0.9rem;
}

nav a {
  color: var(--muted);
  transition: color 0.18s ease, transform 0.18s ease;
}

nav a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.nav-cta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  border-radius: 999px;
  padding: 0.55rem 1.35rem;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #000000, #333333);
  border-color: #000000;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
  color: #ffffff;
  font-weight: 600;
}

.btn:hover {
  transform: translateY(-1px);
  background-color: var(--accent-soft);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
  filter: brightness(1.05);
}

/* Hero */
.hero {
  padding: 3.75rem 0 3rem;
  background: var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.8fr);
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.eyebrow .badge {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1 {
  font-size: clamp(2.2rem, 3vw + 1.1rem, 3.2rem);
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

h1 .highlight {
  background: linear-gradient(135deg, #000000, #555555);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--muted);
  max-width: 34rem;
  font-size: 0.98rem;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.75rem;
  margin-bottom: 1.75rem;
}

.metric {
  min-width: 120px;
}

.metric strong {
  font-size: 1.45rem;
  display: block;
}

.metric span {
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.hero-note {
  font-size: 0.78rem;
  color: var(--muted);
}

.hero-right {
  position: relative;
}

.hero-card {
  position: relative;
  border-radius: 1.6rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.4rem 1.4rem 1.1rem;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.status-pill {
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #000000;
  color: #000000;
  font-size: 0.7rem;
}

.chat-window {
  background: #f5f5f5;
  border-radius: 1rem;
  padding: 0.9rem;
  border: 1px solid var(--border);
  font-size: 0.82rem;
  max-height: 230px;
  overflow: hidden;
}

.chat-bubble {
  max-width: 90%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.9rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.chat-bubble.user {
  margin-left: auto;
  border-bottom-right-radius: 0.2rem;
  background: #ffffff;
  border: 1px solid var(--border);
}

.chat-bubble.bot {
  margin-right: auto;
  border-bottom-left-radius: 0.2rem;
  background: #000000;
  border: 1px solid #000000;
  color: #ffffff;
}

.chat-meta {
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
  font-size: 0.7rem;
}

.pill {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--muted);
}

/* Sections */
section {
  padding: 3.2rem 0;
  background: var(--bg);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

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

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

.card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 1.3rem;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.88rem;
  color: var(--muted);
}

.card-badge {
  font-size: 0.72rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: inline-block;
  margin-bottom: 0.6rem;
  color: var(--muted);
  background: #ffffff;
}

/* Prozess */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
  counter-reset: step;
}

.step {
  border-radius: 1.1rem;
  border: 1px dashed var(--border);
  padding: 1.1rem;
  background: #ffffff;
  position: relative;
  box-shadow: var(--shadow-soft);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0.95rem;
  right: 0.95rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--muted);
  background: #ffffff;
}

.step-title {
  font-size: 0.96rem;
  margin-bottom: 0.3rem;
}

.step-text {
  font-size: 0.84rem;
  color: var(--muted);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 0.95fr;
  gap: 1.4rem;
  align-items: stretch;
}

.price-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.3rem;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.price-card.featured {
  border: 1px solid #000000;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.price-pill {
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--muted);
  background: #ffffff;
}

.price-pill.featured {
  border-color: #000000;
  color: #000000;
  background: #ffffff;
}

.price-amount {
  font-size: 1.6rem;
  margin-bottom: 0.2rem;
}

.price-amount span {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 400;
}

.price-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.price-features {
  list-style: none;
  margin: 0.4rem 0 1rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.price-features li {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.price-features li::before {
  content: "✓";
  margin-top: 0.05rem;
  font-size: 0.85rem;
  color: #000000;
}

.price-tagline {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* Branchen */
.pill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  font-size: 0.8rem;
}

.pill-cloud span {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--muted);
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.05fr;
  gap: 1.2rem;
}

.faq-item {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 0.9rem 1rem;
}

.faq-q {
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
}

.faq-a {
  font-size: 0.83rem;
  color: var(--muted);
}

/* Kontakt */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: stretch;
}

form {
  display: grid;
  gap: 0.75rem;
}

label {
  font-size: 0.8rem;
  color: var(--muted);
  display: block;
  margin-bottom: 0.15rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.7rem;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #000000;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
  background: #ffffff;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-side {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.3rem;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  font-size: 0.88rem;
  color: var(--muted);
}

.contact-side h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.contact-list {
  list-style: none;
  margin-top: 0.4rem;
}

.contact-list li {
  margin-bottom: 0.35rem;
}

.contact-highlight {
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border);
  display: inline-block;
  margin: 0.3rem 0 0.7rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 1.2rem 0;
  margin-top: 2rem;
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--bg);
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 960px) {
  nav ul {
    display: none;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-right {
    order: -1;
  }
  .hero {
    padding-top: 3rem;
  }
  .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .steps,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-cta {
    display: none;
  }
}

/* Chatbot Widget */
.chatbot-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
}

.chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #000000, #333333);
  border: none;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chatbot-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.chatbot-window {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 400px;
  height: 600px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: 1.2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.chatbot-window.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.chatbot-header {
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #000000, #333333);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbot-header-title {
  font-weight: 600;
  font-size: 1rem;
}

.chatbot-header-subtitle {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-top: 0.1rem;
}

.chatbot-close {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.chatbot-close:hover {
  opacity: 1;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #f9f9f9;
}

.chatbot-message {
  display: flex;
  flex-direction: column;
  max-width: 85%;
  animation: messageSlideIn 0.3s ease;
}

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

.chatbot-message.user {
  align-self: flex-end;
}

.chatbot-message.bot {
  align-self: flex-start;
}

.message-content {
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.chatbot-message.user .message-content {
  background: #000000;
  color: #ffffff;
  border-bottom-right-radius: 0.25rem;
}

.chatbot-message.bot .message-content {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 0.25rem;
}

.chatbot-input-wrapper {
  padding: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
  background: #ffffff;
}

.chatbot-input {
  flex: 1;
  padding: 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.chatbot-input:focus {
  border-color: #000000;
}

.chatbot-send {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #000000;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.chatbot-send:hover {
  transform: scale(1.05);
  background: #333333;
}

.chatbot-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chatbot-typing {
  align-self: flex-start;
  max-width: 85%;
}

.chatbot-typing .message-content {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 0.25rem;
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.35rem;
}

.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  30% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .chatbot-window {
    width: calc(100vw - 32px);
    right: 16px;
    bottom: 88px;
  }
  
  .chatbot-toggle {
    right: 16px;
    bottom: 16px;
  }
}
