/* ============================================================
   PLYXXO STUDIOS — Portfolio-Demo Stylesheet
   Gemeinsames Design für die Branchen-Demos
   (Dachdecker · Elektriker · Maler). Vanilla CSS, keine Deps.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

:root {
  --bg:        #0b1018;
  --surface:   #ffffff;
  --ink:       #11151c;
  --muted:     #5b6675;
  --line:      #e6e9ef;
  --dark:      #0c1320;
  --dark-soft: #131c2c;
  --radius:    20px;
  --maxw:      1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* Theme-Defaults (werden je body-Theme überschrieben) */
  --accent:      #e2562b;
  --accent-deep: #c2410c;
  --hero-ink:    #0f1b2d;
}

/* ---------- Themes ---------- */
.theme-roof     { --accent:#e2562b; --accent-deep:#c2410c; --hero-ink:#0f1b2d; }
.theme-electric { --accent:#f5b50a; --accent-deep:#0ea5e9; --hero-ink:#0a1422; }
.theme-paint    { --accent:#8b5cf6; --accent-deep:#ec4899; --hero-ink:#171029; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; }

/* ---------- Demo-Leiste ---------- */
.demo-shell { background: #f6f7f9; }
.demo-bar {
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky; top: 0; z-index: 20;
}
.demo-bar-inner {
  width: min(100% - 2.4rem, var(--maxw));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem 0;
}
.demo-brand img { height: 30px; width: auto; }
.demo-pill {
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: #cdd6e4;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  padding: .42rem .8rem; border-radius: 999px;
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero-image { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--hero-ink) 78%, transparent), color-mix(in srgb, var(--hero-ink) 94%, transparent)),
    linear-gradient(115deg, color-mix(in srgb, var(--accent) 40%, transparent), transparent 60%);
}
.hero-content { padding: clamp(4rem, 11vw, 8.5rem) 0 clamp(3.5rem, 8vw, 6rem); max-width: 760px; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.7rem);
  line-height: 1.07; font-weight: 800; letter-spacing: -.02em;
}
.hero-lead { margin-top: 1.2rem; font-size: clamp(1.02rem, .98rem + .4vw, 1.22rem); color: #e6ebf3; max-width: 60ch; }

/* ---------- Buttons ---------- */
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .98rem;
  padding: .92rem 1.5rem; border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--accent-deep));
  box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--accent) 70%, transparent);
}
.button-secondary {
  color: var(--ink); background: #fff;
  border: 1px solid var(--line);
}
.hero .button-secondary { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); }

/* ---------- Sektionen ---------- */
.section { background: var(--surface); padding: clamp(3.5rem, 8vw, 6rem) 0; }
.split-heading {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end; margin-bottom: 2.8rem;
}
.split-heading h2 {
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem);
  line-height: 1.12; font-weight: 800; letter-spacing: -.02em; margin-top: .4rem;
}
.split-heading > p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Karten ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(15,23,42,.45); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 1.5rem; }
.card-body h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .5rem; }
.card-body p { color: var(--muted); }

/* ---------- Dunkle Stats-Sektion ---------- */
.section-dark { background: var(--dark); color: #fff; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; text-align: center; }
.stat { padding: 1rem; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.stat strong {
  display: block; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem); font-weight: 800;
  line-height: 1; margin-bottom: .5rem;
  background: linear-gradient(120deg, #fff, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { color: #b8c2d4; font-size: .92rem; }

/* ---------- CTA ---------- */
.cta { background: var(--surface); padding: clamp(3rem, 7vw, 5rem) 0; }
.cta-box {
  display: grid; grid-template-columns: 1.4fr auto; align-items: center; gap: 2rem;
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 12%, #fff), #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(1.8rem, 4vw, 3rem);
}
.cta-box h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; margin: .4rem 0 .8rem; }
.cta-box p { color: var(--muted); }

/* ---------- Footer ---------- */
.demo-footer { background: var(--dark); color: #aeb8c8; }
.demo-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.6rem 0; flex-wrap: wrap; }
.demo-footer a { color: #fff; font-weight: 600; }
.demo-footer a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split-heading { grid-template-columns: 1fr; align-items: start; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cta-box { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
  .demo-pill { display: none; }
  .button { width: 100%; justify-content: center; }
}
