/* handwisdom.de – Hand-Wissen, handgemacht */
:root {
  --honey-900: #78350f;
  --honey-800: #92400e;
  --honey-700: #b45309;
  --honey-600: #d97706;
  --honey-500: #f59e0b;
  --honey-300: #fcd34d;
  --honey-100: #fef3c7;
  --cream: #fbf4e8;
  --cream-dark: #f3e9d7;
  --card: #fffdf8;
  --text: #3f2d1e;
  --text-soft: #7a6a58;
  --ember: #c2410c;
  --green-soft: #4d7c0f;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(120, 53, 15, 0.10);
  --shadow-lg: 0 20px 50px rgba(120, 53, 15, 0.16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, system-ui, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 244, 232, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--honey-500), var(--honey-700));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow);
}

.brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-dot { color: var(--honey-600); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s;
}

.main-nav a:hover { color: var(--honey-700); }

.main-nav a.btn-primary { color: #fff; }
.main-nav a.btn-primary:hover { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--honey-600), var(--honey-700));
  color: #fff;
  box-shadow: 0 6px 18px rgba(185, 83, 9, 0.35);
}

.btn-primary:hover { box-shadow: 0 10px 24px rgba(185, 83, 9, 0.45); }

.btn-ghost {
  background: transparent;
  color: var(--honey-700);
  border-color: var(--honey-600);
}

.btn-ghost:hover { background: var(--honey-100); }

.btn-small { padding: 8px 16px; font-size: 0.85rem; }

.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse 60% 80% at 80% 10%, rgba(245, 158, 11, 0.14), transparent 60%),
    radial-gradient(ellipse 50% 70% at 10% 90%, rgba(194, 65, 12, 0.08), transparent 60%),
    var(--cream);
  padding: 72px 0 60px;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-text { flex: 1.3; }

.eyebrow {
  display: inline-block;
  background: var(--honey-100);
  color: var(--honey-800);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.accent {
  background: linear-gradient(120deg, var(--honey-600), var(--ember));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-soft);
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-logo { flex: 0.7; display: flex; justify-content: center; }

.logo-ring {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--honey-100), var(--honey-300));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 96px;
  box-shadow: var(--shadow-lg), inset 0 0 0 8px rgba(255,255,255,0.6);
}

.hero-note {
  margin-top: 22px;
  font-size: 0.82rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }

.section-title {
  font-size: 1.7rem;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.section-sub {
  color: var(--text-soft);
  margin-bottom: 32px;
  max-width: 640px;
}

/* ---------- Feature Grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
}

.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; }

.feature-card p { color: var(--text-soft); font-size: 0.95rem; flex: 1; }

.feature-link {
  margin-top: 16px;
  color: var(--honey-700);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.92rem;
}

.feature-link:hover { text-decoration: underline; }

/* ---------- Tool Teaser ---------- */
.tool-teaser {
  background: linear-gradient(135deg, var(--honey-800), var(--honey-700));
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 32px;
  box-shadow: var(--shadow-lg);
  flex-wrap: wrap;
}

.tool-teaser-text { flex: 1.4; min-width: 260px; }

.tool-teaser-text h2 { font-size: 1.5rem; margin-bottom: 10px; }

.tool-teaser-text p { opacity: 0.92; }

.tool-teaser-cta { flex: 0.6; text-align: right; }

.tool-teaser .btn-primary {
  background: #fff;
  color: var(--honey-800);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* ---------- Blog Cards ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.blog-card {
  background: var(--card);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.blog-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }

.blog-cat {
  align-self: flex-start;
  background: var(--honey-100);
  color: var(--honey-800);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.blog-card h3 { font-size: 1.05rem; margin-bottom: 8px; }

.blog-card h3 a { color: var(--text); text-decoration: none; }

.blog-card h3 a:hover { color: var(--honey-700); }

.blog-card p { color: var(--text-soft); font-size: 0.92rem; flex: 1; }

.blog-meta { margin-top: 14px; font-size: 0.8rem; color: var(--text-soft); }



/* ---------- Footer ---------- */
.site-footer {
  background: var(--honey-900);
  color: rgba(255,255,255,0.75);
  padding: 40px 0 28px;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand { font-weight: 700; color: #fff; margin-bottom: 6px; }

.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

.footer-links a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.9rem; }

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

.footer-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.8rem;
  text-align: center;
  color: rgba(255,255,255,0.5);
}

/* =========================================================
   Hand-Analyse Tool
   ========================================================= */
.tool-hero { padding: 48px 0 8px; text-align: center; }

.tool-hero h1 { font-size: 2rem; margin-bottom: 8px; }

.tool-hero p { color: var(--text-soft); max-width: 620px; margin: 0 auto; }

.steps {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 24px auto 0;
  max-width: 780px;
}

.step {
  background: var(--card);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 0.85rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-num {
  background: var(--honey-600);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.tool-section { padding: 32px 0 56px; }

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
}

@media (max-width: 860px) {
  .tool-grid { grid-template-columns: 1fr; }
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-logo .logo-ring { width: 160px; height: 160px; font-size: 68px; }
  .tool-teaser-cta { text-align: center; }
}

.panel {
  background: var(--card);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.panel h2 { font-size: 1.1rem; margin-bottom: 14px; }

/* Dropzone */
.dropzone {
  border: 2px dashed var(--honey-500);
  border-radius: var(--radius);
  padding: 44px 20px;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  background: rgba(254, 243, 199, 0.3);
}

.dropzone:hover, .dropzone.dragover {
  background: var(--honey-100);
  border-color: var(--honey-600);
}

.dropzone-icon { font-size: 2.6rem; margin-bottom: 10px; }

.dropzone p { color: var(--text-soft); font-size: 0.92rem; }

.dropzone strong { color: var(--honey-700); }

#fileInput { display: none; }

.capture-row { margin-top: 14px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Canvas preview */
.preview-wrap { margin-top: 18px; display: none; }

.preview-wrap.show { display: block; }

#previewCanvas {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-sm);
  display: block;
  margin: 0 auto;
  background: #fff;
  box-shadow: var(--shadow);
}

.analyze-row { margin-top: 16px; text-align: center; }

/* Status / Report */
#status {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 14px;
  min-height: 1.4em;
}

#status.loading { color: var(--honey-700); font-weight: 600; }

.report { display: none; }

.report.show { display: block; }

.type-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--honey-600), var(--honey-700));
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.type-badge .elem { font-size: 1.3rem; }

.report-block {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 12px;
}

.report-block h3 {
  font-size: 0.95rem;
  color: var(--honey-800);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.report-block p { font-size: 0.92rem; color: var(--text); }

.report-block .metric {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 4px;
}

.share-box {
  margin-top: 18px;
  background: var(--honey-100);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.share-box p {
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 10px;
}

.share-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.btn-share {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--cream-dark);
  background: #fff;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-share:hover { background: var(--honey-100); border-color: var(--honey-500); }

.btn-share-cta {
  background: linear-gradient(135deg, var(--honey-600), var(--honey-700));
  color: #fff;
  border: none;
  font-weight: 600;
  padding: 9px 20px;
}
.btn-share-cta:hover { background: linear-gradient(135deg, var(--honey-700), var(--honey-800)); color: #fff; }

.share-platforms {
  display: none;
  margin-top: 10px;
  gap: 6px;
  flex-wrap: wrap;
}
.share-platforms.show { display: flex; }
.share-platforms .btn-share {
  font-size: 0.78rem;
  padding: 6px 12px;
  border-color: var(--honey-300);
  color: var(--honey-800);
}

.disclaimer {
  margin-top: 18px;
  font-size: 0.78rem;
  color: var(--text-soft);
  background: var(--cream);
  border-left: 3px solid var(--honey-500);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.hidden { display: none; }

/* ---------- Artikel-Seite ---------- */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 40px 0 60px; }

.article-wrap h1 { font-size: 1.9rem; line-height: 1.25; margin-bottom: 10px; }

.article-meta { color: var(--text-soft); font-size: 0.88rem; margin-bottom: 24px; }

.article-body { font-size: 1.02rem; }

.article-body h2 { font-size: 1.3rem; margin: 28px 0 10px; color: var(--honey-800); }

.article-body h3 { font-size: 1.1rem; margin: 22px 0 8px; }

.article-body p { margin-bottom: 14px; }

.article-body ul, .article-body ol { margin: 0 0 14px 22px; }

.article-body li { margin-bottom: 6px; }

.article-body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }

.article-body figure { margin: 20px 0; }

.article-body figcaption { font-size: 0.82rem; color: var(--text-soft); margin-top: 8px; text-align: center; }

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--honey-700);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.back-link:hover { text-decoration: underline; }

/* ---------- Empty / States ---------- */
.empty-state { text-align: center; padding: 40px 0; color: var(--text-soft); }
