/*
Theme Name: appkuhrt Praxisvergleich
Theme URI: https://appkuhrt.de/
Author: appkuhrt
Description: Theme fuer die Praxissoftware-Vergleichsplattform.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: appkuhrt-praxis-demo
*/

:root {
  --ink: #152019;
  --muted: #5b6761;
  --line: #dfe6e1;
  --paper: #fbfcf9;
  --panel: #ffffff;
  --sage: #7b9b83;
  --mint: #dcefe2;
  --teal: #0f766e;
  --berry: #8d3f60;
  --gold: #b8872d;
  --shadow: 0 18px 50px rgba(21, 32, 25, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(223, 230, 225, 0.9);
  background: rgba(251, 252, 249, 0.94);
  backdrop-filter: blur(16px);
}

.site-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--teal), var(--sage) 55%, var(--gold));
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.96rem;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 750;
  box-shadow: 0 12px 28px rgba(21, 32, 25, 0.18);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}

.hero {
  padding: 76px 0 42px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 54px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--teal);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(2.55rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.16rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.metric {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

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

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

.demo-board {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.board-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 16px 0 0 var(--gold), 32px 0 0 var(--berry);
}

.board-body {
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr);
  min-height: 410px;
}

.board-side {
  padding: 18px;
  border-right: 1px solid var(--line);
  background: #f2f6f1;
}

.side-pill {
  height: 30px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: #fff;
}

.side-pill.active {
  background: var(--mint);
}

.board-main {
  padding: 18px;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.pipe {
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.pipe h3 {
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.lead-mini {
  min-height: 46px;
  margin-top: 8px;
  border-radius: 8px;
  background: #f8faf7;
  border: 1px solid #edf1ed;
}

.finder-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.finder-line {
  min-height: 58px;
  border-radius: 8px;
  background: linear-gradient(90deg, #eef6f0, #fff);
  border: 1px solid #e5ece6;
}

.section {
  padding: 62px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading h2 {
  max-width: 700px;
  margin-bottom: 0;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.section-heading p {
  max-width: 420px;
  margin-bottom: 0;
  color: var(--muted);
}

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

.feature,
.product,
.step {
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--mint);
  color: var(--teal);
  font-weight: 900;
}

.feature h3,
.product h3,
.step h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.feature p,
.product p,
.step p {
  margin-bottom: 0;
  color: var(--muted);
}

.page-content {
  max-width: 920px;
}

.page-content > *:first-child {
  margin-top: 0;
}

.page-content form,
.pv-request-form,
.pv-finder,
.pv-comparison,
.pv-grid {
  max-width: 100%;
}

.pv-request-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 24px;
  box-shadow: 0 14px 34px rgba(21, 32, 25, 0.08);
}

.pv-request-form label {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--ink);
  font-weight: 700;
}

.pv-request-form input,
.pv-request-form textarea,
.pv-request-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}

.pv-request-form textarea {
  min-height: 110px;
}

.pv-request-form button,
.pv-request-form input[type="submit"] {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  padding: 0 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.band {
  background: #eff5ef;
  border-block: 1px solid var(--line);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.product {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-badge {
  align-self: flex-start;
  border-radius: 8px;
  padding: 4px 10px;
  background: #f6ead5;
  color: #72510d;
  font-size: 0.8rem;
  font-weight: 800;
}

.product a {
  margin-top: auto;
  color: var(--teal);
  font-weight: 800;
}

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

.step-number {
  color: var(--berry);
  font-size: 0.9rem;
  font-weight: 900;
}

.cta-band {
  padding: 58px 0;
  background: var(--ink);
  color: #fff;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta-inner p {
  max-width: 610px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.cta-inner .button {
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}

.site-footer {
  padding: 34px 0;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

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

.preview-gate-body {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(220, 239, 226, 0.62), rgba(251, 252, 249, 0.96)),
    var(--paper);
}

.preview-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.preview-card {
  width: min(100%, 520px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  padding: 34px;
  box-shadow: var(--shadow);
}

.preview-card h1 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 8vw, 3.4rem);
}

.preview-card p {
  color: var(--muted);
}

.preview-card form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.preview-card label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.preview-card input {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}

.preview-card button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.preview-error {
  border: 1px solid rgba(141, 63, 96, 0.24);
  border-radius: 8px;
  background: rgba(141, 63, 96, 0.08);
  padding: 10px 12px;
  color: var(--berry) !important;
  font-weight: 750;
}

@media (max-width: 920px) {
  .site-shell {
    width: min(100% - 28px, 760px);
  }

  .nav-links {
    display: none;
  }

  .hero-grid,
  .section-heading,
  .cta-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .board-body {
    grid-template-columns: 1fr;
  }

  .board-side {
    display: none;
  }

  .feature-grid,
  .product-grid,
  .steps,
  .metric-row {
    grid-template-columns: 1fr;
  }

  .pipeline,
  .finder-panel {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    flex-direction: column;
  }
}
