:root {
  --brand: #00a894;
  --brand-hover: #008f7d;
  --brand-soft: #e0f8f5;
  --brand-glow: rgba(0, 168, 148, 0.22);
  --green: #00a894;
  --green-hover: #008f7d;
  --green-soft: #e0f8f5;
  --text: #1c1c1c;
  --text-muted: #5f6368;
  --border: #c5e5e0;
  --surface: #ffffff;
  --bg: #f1faf8;
  --shadow: 0 18px 50px rgba(0, 100, 90, 0.12);
  --radius: 16px;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 168, 148, 0.16), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(64, 252, 232, 0.16), transparent 28%),
    linear-gradient(180deg, #f6fcfb 0%, var(--bg) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(221, 227, 234, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brand);
}

.logo-img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
}

.header-nav a:not(.btn):hover {
  color: var(--brand);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 22px var(--brand-glow);
}

.btn-primary:hover {
  background: var(--brand-hover);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.65);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: #fff;
  border-color: #c8d3e0;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 13px 22px;
  font-size: 1rem;
}

/* Hero */
.hero {
  padding: 72px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-hover);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 28px;
  max-width: 52ch;
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-badges li {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  color: #3c4043;
}

/* Preview card */
.hero-visual {
  position: relative;
}

.preview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.preview-toolbar {
  display: flex;
  gap: 7px;
  padding: 14px 16px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}

.preview-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d5dee8;
}

.preview-toolbar span:first-child { background: #ff6b6b; }
.preview-toolbar span:nth-child(2) { background: #ffd166; }
.preview-toolbar span:nth-child(3) { background: #6ee7a8; }

.preview-scroll {
  overflow-x: auto;
  padding: 0;
}

.preview-schedule {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
  line-height: 1.25;
  white-space: nowrap;
}

.preview-schedule th,
.preview-schedule td {
  border: 1px solid #d8d8d8;
  padding: 8px 7px;
  text-align: center;
  vertical-align: middle;
}

.preview-schedule thead th {
  background: #f5f5f5;
  font-weight: 600;
  color: #3c4043;
}

.preview-schedule tbody th {
  background: #f5f5f5;
  font-weight: 600;
  text-align: left;
  padding-left: 10px;
  color: #1c1c1c;
}

.preview-schedule tbody tr:nth-child(odd) td {
  background: #f2f2f2;
}

.preview-schedule tbody tr:nth-child(even) td {
  background: #e8e8e8;
}

.preview-schedule td.cell-conflict {
  background: #ffcccc !important;
}

.preview-footer {
  display: flex;
  gap: 8px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border);
}

.pill {
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef2f7;
  font-size: 0.78rem;
  color: #4b5563;
}

.pill-ok {
  background: var(--green-soft);
  color: var(--green-hover);
}

/* Features */
.features {
  padding: 24px 0 72px;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 20px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(26, 60, 110, 0.08);
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-soft);
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

/* CTA */
.cta {
  padding-bottom: 72px;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(135deg, #008f7d 0%, #00c4ad 100%);
  color: #fff;
  box-shadow: var(--shadow);
}

.cta-inner h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
}

.cta-inner p {
  margin: 0;
  opacity: 0.92;
  max-width: 48ch;
  line-height: 1.55;
}

.cta .btn-primary {
  background: #fff;
  color: var(--brand-hover);
  box-shadow: none;
  flex-shrink: 0;
}

.cta .btn-primary:hover {
  background: #f0faf8;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.footer-inner p {
  margin: 0;
}

.footer-made {
  text-align: center;
}

.footer-heart {
  color: #e25555;
}

.footer-inner a:hover {
  color: var(--brand);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-link:hover {
  color: var(--brand);
}

/* Datenschutz-Dialog (Inhalt in index.html) */
.privacy-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: min(86vh, 820px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  background: #fff;
  color: var(--text);
}

.privacy-dialog::backdrop {
  background: rgba(18, 40, 36, 0.45);
}

.privacy-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--border);
}

.privacy-dialog-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.privacy-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

.privacy-close:hover {
  background: var(--brand-soft);
  color: var(--brand-hover);
}

.privacy-dialog-body {
  padding: 16px 18px;
  overflow: auto;
  max-height: min(62vh, 580px);
  font-size: 0.92rem;
  line-height: 1.55;
}

.privacy-dialog-body h3 {
  margin: 1.25em 0 0.45em;
  font-size: 1.02rem;
}

.privacy-dialog-body h4 {
  margin: 1em 0 0.35em;
  font-size: 0.95rem;
}

.privacy-dialog-body p,
.privacy-dialog-body ul {
  margin: 0 0 0.75em;
}

.privacy-dialog-body ul {
  padding-left: 1.2em;
}

.privacy-dialog-body a {
  color: var(--brand-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.privacy-dialog-body h1 {
  margin: 0 0 0.5em;
  font-size: 1.25rem;
}

.privacy-list {
  margin: 0 0 0.75em;
  padding-left: 1.2em;
}

.privacy-hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1em 0;
}

.privacy-code {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.85em;
  background: var(--brand-soft);
  border-radius: 4px;
  padding: 1px 4px;
}

.privacy-stand {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.privacy-callout {
  background: #fff8e6;
  border: 1px solid #f0d78c;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0 0 1em;
  font-size: 0.88rem;
}

.privacy-callout code {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.85em;
}

.privacy-dialog-foot {
  display: flex;
  justify-content: flex-end;
  padding: 12px 18px 16px;
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .header-nav a:not(.btn) {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .preview-schedule {
    font-size: 0.65rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 0;
  }

  .footer-made {
    text-align: left;
  }

  .privacy-dialog-body {
    max-height: min(58vh, 520px);
  }
}
