/* ==========================================================================
   appzept – Projekt-Detailseiten
   Komponenten für mietabrechner / vereinspilot / brautkompass / betfence …
   Baut auf style.css auf. Pro Seite wird --proj / --proj-2 überschrieben.
   ========================================================================== */

:root {
  --proj: #6366f1;
  --proj-2: #22d3ee;
  --proj-grad: linear-gradient(135deg, var(--proj), var(--proj-2));
}

/* --- Breadcrumb --- */
.breadcrumb {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 6.5rem 2rem 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--text);
}
.breadcrumb span {
  color: var(--proj);
}

/* --- PROJEKT-HERO --- */
.proj-hero {
  padding: 2.5rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}
.proj-hero::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--proj) 18%, transparent) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.proj-hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.proj-hero-inner > * {
  min-width: 0;
}

.proj-hero-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: var(--proj-grad);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--proj) 35%, transparent);
}

.proj-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--proj-2);
  border: 1px solid color-mix(in srgb, var(--proj-2) 35%, transparent);
  background: color-mix(in srgb, var(--proj-2) 8%, transparent);
  margin-bottom: 1.25rem;
}

.proj-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -1px;
  margin-bottom: 1.1rem;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.proj-hero h1 .grad {
  background: var(--proj-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.proj-hero .lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 520px;
}
.proj-hero .btn-primary {
  background: var(--proj-grad);
  box-shadow: 0 4px 24px color-mix(in srgb, var(--proj) 30%, transparent);
}

.proj-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}
.proj-meta .chip {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- DEVICE MOCKUPS --- */
.mock-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Phone */
.phone {
  position: relative;
  width: 290px;
  max-width: 100%;
  border-radius: 38px;
  padding: 12px;
  background: linear-gradient(160deg, #2a2a3a, #16161f);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
.phone::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 22px;
  background: #0c0c12;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone img {
  display: block;
  width: 100%;
  border-radius: 28px;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top;
}

/* Browser */
.browser {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #14141c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.9rem;
  background: #1d1d28;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.browser-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
}
.browser-bar i:nth-child(1) {
  background: #ff5f57;
}
.browser-bar i:nth-child(2) {
  background: #febc2e;
}
.browser-bar i:nth-child(3) {
  background: #28c840;
}
.browser-bar .url {
  margin-left: 0.6rem;
  flex: 1;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: #0f0f16;
  padding: 0.25rem 0.8rem;
  border-radius: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser img {
  display: block;
  width: 100%;
}

/* Floating accent behind mockups */
.mock-glow::after {
  content: "";
  position: absolute;
  inset: -10% -5%;
  background: radial-gradient(
    circle at 50% 40%,
    color-mix(in srgb, var(--proj) 22%, transparent),
    transparent 65%
  );
  z-index: -1;
  filter: blur(10px);
}

/* --- HIGHLIGHT STAT BAR --- */
.proj-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.proj-stat {
  padding: 0.5rem 0;
}
.proj-stat .num {
  font-size: 1.7rem;
  font-weight: 700;
  background: var(--proj-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.proj-stat .lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

/* --- FEATURE GRID --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all 0.3s;
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: color-mix(in srgb, var(--proj) 25%, transparent);
  transform: translateY(-4px);
}
.feature-card .ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  background: color-mix(in srgb, var(--proj) 12%, transparent);
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* --- STEP / HOW IT WORKS --- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}
.step {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 1.75rem;
  position: relative;
  counter-increment: step;
  transition: all 0.3s;
}
.step:hover {
  border-color: color-mix(in srgb, var(--proj-2) 25%, transparent);
  transform: translateY(-3px);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--proj-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.55;
}
.step h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0.4rem 0 0.5rem;
}
.step p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- SCREENSHOT GALLERY --- */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  justify-items: center;
}
.shot {
  width: 100%;
  max-width: 280px;
  text-align: center;
}
.shot .cap {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.shot .cap strong {
  color: var(--text);
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
}

.shots-wide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}
.shot-wide .cap {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.shot-wide .cap strong {
  color: var(--text);
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
}

/* --- COMPARISON TABLE --- */
.compare-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
}
table.compare th,
table.compare td {
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
table.compare thead th {
  background: var(--bg-card);
  font-weight: 600;
  color: var(--text);
}
table.compare thead th.us {
  background: color-mix(in srgb, var(--proj) 14%, var(--bg-card));
  color: var(--text);
}
table.compare td {
  color: var(--text-muted);
}
table.compare td.us {
  color: var(--text);
  font-weight: 500;
}
table.compare tr:last-child td {
  border-bottom: none;
}
.tick {
  color: #22c55e;
  font-weight: 700;
}
.cross {
  color: #ef4444;
  font-weight: 700;
}

/* --- PRICING --- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}
.price-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--proj) 25%, transparent);
}
.price-card.featured {
  border-color: color-mix(in srgb, var(--proj) 45%, transparent);
  box-shadow: 0 20px 50px color-mix(in srgb, var(--proj) 14%, transparent);
}
.price-card .plan {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--proj-2);
  font-weight: 600;
}
.price-card .amount {
  font-size: 2rem;
  font-weight: 700;
  margin: 0.5rem 0 0.2rem;
}
.price-card .amount small {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}
.price-card ul {
  list-style: none;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.price-card li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 1.4rem;
  position: relative;
}
.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--proj-2);
  font-weight: 700;
}

/* --- CTA --- */
.cta-band {
  padding: 5rem 2rem;
}
.cta-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--proj-grad);
  border-radius: 24px;
  padding: 3.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-inner h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}
.cta-inner p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 520px;
  margin: 0 auto 2rem;
}
.cta-inner .btn {
  background: #fff;
  color: #15151c;
}
.cta-inner .btn:hover {
  transform: translateY(-2px);
}
.cta-inner .btn.ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* --- INFO / NOTICE BOX --- */
.notice {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--proj);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.notice strong {
  color: var(--text);
}
.notice.warn {
  border-left-color: #f59e0b;
}

/* --- PROSE LISTS --- */
.lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.check-list li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--proj) 18%, transparent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2322d3ee' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.check-list li strong {
  color: var(--text);
}

/* --- PLACEHOLDER MOCKUP (kein echter Screenshot vorhanden) --- */
.ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
  background: linear-gradient(
    color-mix(in srgb, var(--proj) 7%, var(--bg-card)),
    var(--bg-card)
  );
  color: var(--text-muted);
  border: 1px dashed color-mix(in srgb, var(--proj) 35%, transparent);
  border-radius: 18px;
  padding: 2rem 1.25rem;
}
.ph.phone-ph {
  aspect-ratio: 9 / 19;
  width: 100%;
}
.ph.wide-ph {
  aspect-ratio: 16 / 10;
  width: 100%;
}
.ph svg {
  opacity: 0.55;
}
.ph span {
  font-size: 0.78rem;
}
.ph strong {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 860px) {
  .proj-hero-inner {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
  }
  .proj-hero-inner > * {
    width: 100%;
  }
  .proj-hero h1 {
    font-size: clamp(1.6rem, 6.5vw, 2.6rem);
  }
  .proj-hero .lead {
    max-width: none;
  }
  .lead-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .mock-stage {
    order: -1;
    width: 100%;
  }
  .mock-stage .phone {
    width: 250px;
  }
}
