/* ================================================
   iRise — Shared Page Styles
   css/page.css — Projektseiten & Insights
   ================================================ */

/* ── BREADCRUMB ── */
.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-bottom: 3rem;
}
.page-breadcrumb a { color: var(--ink-muted); transition: color 0.2s; }
.page-breadcrumb a:hover { color: var(--accent); }
.page-breadcrumb span[aria-current] { color: var(--ink-soft); }
.page-breadcrumb .sep { opacity: 0.5; }

/* ── PAGE MAIN ── */
.page-main {
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 5rem;
  background: var(--bg);
}
.page-container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── PROJECT HERO ── */
.proj-hero {
  margin-bottom: 5rem;
}
.proj-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: start;
}
.proj-hero-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.proj-hero-title {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 4.5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.proj-hero-desc {
  font-size: 1.0625rem;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 44ch;
}
.proj-hero-img {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}
.proj-hero-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ── PROJECT META BAR ── */
.proj-meta {
  display: flex;
  gap: 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 5rem;
  flex-wrap: wrap;
}
.proj-meta-item { display: flex; flex-direction: column; gap: 3px; }
.proj-meta-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.proj-meta-value {
  font-size: 0.9375rem;
  color: var(--ink);
  font-weight: 400;
}

/* ── CASE STUDY SECTIONS ── */
.cs-section {
  margin-bottom: 4.5rem;
}
.cs-section-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}
.cs-section-title {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.cs-section-body {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.8;
  max-width: 72ch;
}
.cs-section-body p { margin-bottom: 1rem; }
.cs-section-body p:last-child { margin-bottom: 0; }

/* Two-column layout for Lösung sections */
.cs-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

/* Result highlight */
.cs-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.cs-result-item {
  padding: 1.5rem;
  background: var(--bg-alt);
  border-radius: 10px;
  border-top: 2px solid var(--accent);
}
.cs-result-value {
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.cs-result-label {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

/* Steps list */
.cs-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
}
.cs-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.cs-step-num {
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--accent);
  opacity: 0.6;
  flex-shrink: 0;
  min-width: 1.5rem;
}

/* Divider */
.cs-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 4rem 0;
}

/* Image placeholder */
.cs-img-placeholder {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(145deg, #ECEAE6 0%, #E0DDD8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  min-height: 240px;
}
.cs-img-placeholder span {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--ink-muted);
  max-width: 26ch;
  line-height: 1.5;
}
/* variant placeholder classes removed — all use base .cs-img-placeholder */

/* ── PAGE CTA ── */
.page-cta {
  margin-top: 4rem;
  padding: 3rem 3.5rem;
  background: var(--bg-dark);
  border-radius: 16px;
  border-top: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.page-cta-text { max-width: 50ch; }
.page-cta-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.page-cta-title {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  word-break: break-word;
}
.page-cta-body {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin-top: 0.6rem;
}
.btn-page-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: 100px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.btn-page-cta:hover {
  background: var(--accent-h);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(200,54,106,0.3);
}

/* ── INSIGHTS OVERVIEW ── */
.insights-hero {
  padding: calc(var(--nav-h) + 3.5rem) 0 3.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  margin-bottom: 4rem;
  border-top: 3px solid var(--accent);
}
.insights-hero-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}
.insights-hero-title {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 1rem;
}
.insights-hero-desc {
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 52ch;
  line-height: 1.7;
}
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 5rem;
}
.insight-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.07);
}
.insight-card-img {
  height: 220px;
  min-height: 220px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.insight-card-img::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}
.insight-card:hover .insight-card-img::after { opacity: 1; }
.insight-card-body { padding: 1.5rem 1.75rem 2rem; flex: 1; display: flex; flex-direction: column; }
.insight-card-tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
  display: block;
}
.insight-card-title {
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 0.65rem;
}
.insight-card-desc {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}
.insight-card-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.insight-card:hover .insight-card-link { gap: 10px; }

/* ── ARTICLE PAGE ── */
.article-main {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 6rem;
  background: var(--bg);
}
.article-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 2rem;
}
.article-header {
  margin-bottom: 3.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.article-tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}
.article-title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}
.article-meta-dot { opacity: 0.4; }
.article-intro {
  font-size: 1.0625rem;
  color: var(--ink-soft);
  line-height: 1.75;
  margin: 2rem 0 3rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--accent);
}
.article-body h2 {
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 3rem 0 1rem;
  line-height: 1.2;
}
.article-body h3 {
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  margin: 2rem 0 0.6rem;
  letter-spacing: 0.01em;
}
.article-body p {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}
.article-body ul, .article-body ol {
  margin: 1rem 0 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.7;
  padding-left: 0.25rem;
}
.article-body strong { color: var(--ink); font-weight: 500; }
.article-pullquote {
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-alt);
  border-radius: 0 8px 8px 0;
}
.article-pullquote p {
  font-family: var(--f-display);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
  margin: 0;
}

/* ── INSIGHTS TEASER ON HOMEPAGE ── */
.insights-teaser {
  padding: 5.5rem 0;
  background: var(--bg-alt);
}
.insights-teaser-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  gap: 2rem;
  flex-wrap: wrap;
}
.insights-teaser-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.03em;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.insights-teaser-link:hover { opacity: 0.7; }
.insights-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .proj-hero-inner { grid-template-columns: 1fr; }
  .cs-two-col { grid-template-columns: 1fr; }
  .cs-result-grid { grid-template-columns: 1fr 1fr; }
  .insights-grid { grid-template-columns: 1fr 1fr; }
  .insights-teaser-grid { grid-template-columns: 1fr 1fr; }
  .page-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 768px) {
  .page-main { padding-top: calc(var(--nav-h) + 2.5rem); padding-bottom: 4rem; }
  .page-container { padding: 0 1.25rem; }
  .insights-grid { grid-template-columns: 1fr; }
  .insights-teaser-grid { grid-template-columns: 1fr; }
  .cs-result-grid { grid-template-columns: 1fr; }
  .proj-meta { gap: 1.5rem; }
  .page-cta { padding: 2rem; }
  .article-container { padding: 0 1.25rem; }
  .article-main { padding-top: calc(var(--nav-h) + 2.5rem); }
  .insights-hero { padding-top: calc(var(--nav-h) + 2.5rem); }
}
