:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #f1f5fb;
  --surface-accent: #eef4ff;
  --text: #101828;
  --muted: #5f6b7a;
  --border: #e3e8ef;
  --shadow: 0 14px 40px rgba(16, 24, 40, 0.06);
  --radius: 18px;
  --radius-sm: 14px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(to bottom, #f8faff 0%, #f6f8fb 180px, #f6f8fb 100%);
  color: var(--text);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.08rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--text);
  font-weight: 600;
}

.nav-links a.nav-featured {
  background: #eef4ff;
  border: 1px solid #d7e5fb;
  border-radius: 10px;
  padding: 8px 10px;
  color: #244a86;
  font-weight: 600;
}

/* HERO */
.hero {
  text-align: center;
  padding: 54px 0 20px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-accent);
  border: 1px solid #dce8fb;
  color: #35558a;
  font-size: 0.86rem;
  font-weight: 600;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.subtitle {
  margin: 0 auto;
  max-width: 700px;
  color: var(--muted);
  font-size: 1.06rem;
}

/* CARDS */
.tool-card,
.content-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tool-card {
  padding: 24px;
  margin-bottom: 24px;
}

.content-block {
  padding: 24px;
  margin-bottom: 24px;
}

/* TOOLBAR */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.toolbar-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.toolbar-right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* BUTTONS */
.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--text);
  color: white;
  font: inherit;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.15s ease;
}

.btn:hover {
  opacity: 0.95;
}

.btn.secondary {
  background: white;
  color: var(--text);
}

/* TEXTAREA */
textarea {
  width: 100%;
  min-height: 280px;
  resize: vertical;
  padding: 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  font: inherit;
  color: var(--text);
  line-height: 1.6;
  outline: none;
}

textarea:focus {
  border-color: #c9d7ee;
  box-shadow: 0 0 0 4px rgba(96, 135, 193, 0.08);
}

/* GRIDS */
.stats-grid,
.time-grid,
.insights,
.compact-insights,
.internal-links {
  margin-top: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.single-focus {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.stat-box,
.time-box,
.insight-box {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.stat-box.featured,
.time-box.featured {
  background: var(--surface-accent);
}

.stat-label,
.time-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.stat-box strong,
.time-box strong {
  display: block;
  margin-top: 8px;
  font-size: 1.75rem;
  line-height: 1.1;
}

.insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.compact-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.insight-box h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.insight-box p {
  margin: 0;
  color: var(--muted);
}

.top-words-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.top-words-list li + li {
  margin-top: 6px;
}

.content-block h2 {
  margin-top: 0;
}

.content-block p:last-child {
  margin-bottom: 0;
}

.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.internal-links a {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
}

.internal-links a:hover {
  background: #e9f0fa;
}

/* FEATURE HIGHLIGHT */
.feature-highlight {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 24px 0;
  padding: 22px;
  background: linear-gradient(135deg, #eef4ff 0%, #f8fbff 100%);
  border: 1px solid #d7e5fb;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.05);
}

.feature-highlight-text h2 {
  margin: 10px 0 8px;
  font-size: 1.35rem;
}

.feature-highlight-text p {
  margin: 0;
  color: var(--muted);
  max-width: 700px;
}

.feature-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #dce9ff;
  color: #244a86;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.feature-highlight-action {
  flex-shrink: 0;
}

.feature-button {
  display: inline-block;
  background: var(--text);
  color: white;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid var(--text);
  text-align: center;
}

.feature-button:hover {
  opacity: 0.95;
}

/* TABLES */
table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 10px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* TABLET */
@media (max-width: 900px) {
  .stats-grid,
  .single-focus,
  .insights,
  .compact-insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-highlight {
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-highlight-action {
    width: 100%;
  }

  .feature-button {
    width: 100%;
  }
}

/* MOBILE */
@media (max-width: 640px) {
  .container {
    width: min(var(--max-width), calc(100% - 16px));
  }

  /* sticky header ausschalten auf mobile */
  .site-header {
    position: static;
    backdrop-filter: none;
    background: #ffffff;
  }

  .nav {
    min-height: auto;
    padding: 14px 0 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .logo {
    font-size: 1rem;
  }

  .nav-links {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .nav-links a {
    display: block;
    background: #f3f6fb;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.9rem;
    text-align: center;
  }

  .nav-links a.nav-featured {
    padding: 10px 12px;
  }

  .hero {
    padding: 24px 0 14px;
  }

  .eyebrow {
    font-size: 0.78rem;
    padding: 5px 10px;
    margin-bottom: 10px;
  }

  .hero h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
  }

  .subtitle {
    font-size: 0.98rem;
    max-width: 100%;
  }

  .tool-card,
  .content-block {
    padding: 14px;
    border-radius: 16px;
  }

  .feature-highlight {
    padding: 16px;
    border-radius: 16px;
  }

  .feature-highlight-text h2 {
    font-size: 1.15rem;
  }

  .toolbar {
    align-items: stretch;
    gap: 10px;
    margin-bottom: 12px;
  }

  .toolbar-left,
  .toolbar-right {
    width: 100%;
  }

  .toolbar-label {
    display: block;
    font-size: 0.9rem;
  }

  .toolbar-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .btn {
    width: 100%;
    padding: 11px 12px;
    font-size: 0.95rem;
  }

  textarea {
    min-height: 180px;
    padding: 14px;
    font-size: 16px;
    border-radius: 12px;
  }

  .stats-grid,
  .single-focus,
  .time-grid,
  .insights,
  .compact-insights {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stat-box,
  .time-box,
  .insight-box {
    padding: 14px;
  }

  .stat-box strong,
  .time-box strong {
    font-size: 1.45rem;
  }

  .internal-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .internal-links a {
    text-align: center;
    border-radius: 10px;
    padding: 11px 12px;
  }

  footer.content-block {
    text-align: center;
  }
}
