/* ------------------------------------------------------------------
 * Handwerk demo — warm, modern, premium.
 * Smooth rounded edges, soft shadows, refined typography.
 * Brand colours come from --color-primary / --color-secondary
 * which are injected per-site by the demo layout.
 * ------------------------------------------------------------------ */
.demo--handwerk {
  --color-text: #2a1d10;
  --color-bg: #fdfaf3;
  --color-surface: #f6efde;
  --color-surface-deep: #efe4c9;
  --color-muted: #6e5b40;
  --color-border: #e5d6b5;
  --color-border-soft: #efe4c9;

  --shadow-sm: 0 2px 8px rgba(74, 50, 20, 0.06);
  --shadow: 0 12px 30px rgba(74, 50, 20, 0.10);
  --shadow-lg: 0 24px 50px rgba(74, 50, 20, 0.16);

  --radius-xs: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --font-display: 'Playfair Display', Georgia, "Times New Roman", serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
}

.demo--handwerk h1,
.demo--handwerk h2,
.demo--handwerk h3 {
  font-family: var(--font-display);
  color: var(--color-text);
  letter-spacing: -0.01em;
}

/* ===== Header ===================================================== */
.demo--handwerk .demo-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 250, 243, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--color-border-soft);
}

.demo--handwerk .demo-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
  padding: 0.75rem 0;
  position: relative;
}

.demo--handwerk .demo-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
  min-width: 0;
}

.demo--handwerk .demo-header__brand-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1100px) {
  .demo--handwerk .demo-header__brand {
    font-size: 1.1rem;
  }
}

.demo--handwerk .demo-header__brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, var(--color-primary) 0%, #a06a2c 100%);
  position: relative;
  flex-shrink: 0;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.15);
}

.demo--handwerk .demo-header__brand-mark::after {
  content: "M";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.demo--handwerk .demo-header__nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.demo--handwerk .demo-header__nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.demo--handwerk .demo-header__nav a:hover {
  color: var(--color-primary);
  background: rgba(122, 74, 31, 0.08);
}

.demo--handwerk .demo-header__cta {
  background: var(--color-primary);
  color: #fff !important;
  margin-left: 0.5rem;
}

.demo--handwerk .demo-header__cta:hover {
  background: #5d3815 !important;
  color: #fff !important;
}

.demo--handwerk .demo-header__back {
  margin-left: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-muted) !important;
}

.demo--handwerk .demo-header__toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--color-text);
}

.demo--handwerk .demo-header__toggle span,
.demo--handwerk .demo-header__toggle span::before,
.demo--handwerk .demo-header__toggle span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}

.demo--handwerk .demo-header__toggle span::before,
.demo--handwerk .demo-header__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.demo--handwerk .demo-header__toggle span::before {
  top: -7px;
}

.demo--handwerk .demo-header__toggle span::after {
  top: 7px;
}

@media (max-width: 860px) {
  .demo--handwerk .demo-header__toggle {
    display: inline-flex;
  }

  .demo--handwerk .demo-header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border-soft);
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.75rem 1rem 1.25rem;
    box-shadow: 0 12px 24px rgba(74, 50, 20, 0.08);
    display: none;
  }

  .demo--handwerk .demo-header__nav.is-open {
    display: flex;
  }

  .demo--handwerk .demo-header__nav a {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-xs);
  }

  .demo--handwerk .demo-header__cta {
    text-align: center;
  }
}

/* ===== Eyebrow ==================================================== */
.demo--handwerk .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 1rem;
  font-family: var(--font-body);
}

.demo--handwerk .eyebrow__dot {
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.demo--handwerk .eyebrow--light {
  color: #f5e7c9;
}

.demo--handwerk .eyebrow--light .eyebrow__dot {
  background: #f5e7c9;
}

/* ===== Buttons (override base for warmth & roundness) ============= */
.demo--handwerk .btn {
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.7rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  transition: all 0.25s ease;
}

.demo--handwerk .btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 8px 20px rgba(122, 74, 31, 0.25);
}

.demo--handwerk .btn--primary:hover {
  background: #5d3815;
  border-color: #5d3815;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(122, 74, 31, 0.35);
}

.demo--handwerk .btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.demo--handwerk .btn--ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.demo--handwerk .btn--on-dark.btn--ghost {
  color: #f5e7c9;
  border-color: rgba(245, 231, 201, 0.4);
}

.demo--handwerk .btn--on-dark.btn--ghost:hover {
  background: rgba(245, 231, 201, 0.1);
  border-color: rgba(245, 231, 201, 0.7);
  color: #fff;
}

/* ===== Hero ======================================================= */
.demo--handwerk .hero {
  position: relative;
  padding: 5rem 0 5.5rem;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(122, 74, 31, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, #fdfaf3 0%, #f4ead4 100%);
  overflow: hidden;
}

.demo--handwerk .hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.demo--handwerk .hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.demo--handwerk .hero__title {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 1.25rem;
  max-width: 18ch;
}

.demo--handwerk .lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--color-muted);
  max-width: 55ch;
  margin: 0 0 2rem;
}

.demo--handwerk .hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.demo--handwerk .hero__badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.demo--handwerk .hero__badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--color-muted);
  font-weight: 500;
}

.demo--handwerk .hero__badges span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
}

/* Hero visual: stacked planks + stamp */
.demo--handwerk .hero__visual {
  position: relative;
  height: 380px;
}

.demo--handwerk .hero__plank {
  position: absolute;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background:
    repeating-linear-gradient(95deg,
      rgba(0, 0, 0, 0.06) 0 2px, transparent 2px 18px),
    linear-gradient(135deg, #b07a3e 0%, #7a4a1f 60%, #5d3815 100%);
}

.demo--handwerk .hero__plank--1 {
  top: 0;
  right: 8%;
  width: 75%;
  height: 60%;
  transform: rotate(-3deg);
  z-index: 1;
}

.demo--handwerk .hero__plank--2 {
  bottom: 8%;
  right: 0;
  width: 85%;
  height: 55%;
  transform: rotate(4deg);
  z-index: 2;
  background:
    repeating-linear-gradient(85deg,
      rgba(0, 0, 0, 0.05) 0 2px, transparent 2px 22px),
    linear-gradient(135deg, #c08a4e 0%, #8a5a2b 70%);
}

.demo--handwerk .hero__plank--3 {
  bottom: 0;
  left: 4%;
  width: 55%;
  height: 35%;
  transform: rotate(-6deg);
  z-index: 3;
  background:
    repeating-linear-gradient(95deg,
      rgba(0, 0, 0, 0.07) 0 2px, transparent 2px 14px),
    linear-gradient(135deg, #9a6432 0%, #6e4520 100%);
}

.demo--handwerk .hero__stamp {
  position: absolute;
  top: 8%;
  left: -2%;
  z-index: 4;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2px dashed var(--color-primary);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--color-primary);
  font-family: var(--font-display);
  box-shadow: var(--shadow);
  transform: rotate(-12deg);
}

.demo--handwerk .hero__stamp-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.demo--handwerk .hero__stamp-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-family: var(--font-body);
  font-weight: 600;
  margin-top: 0.35rem;
  line-height: 1.2;
}

@media (max-width: 860px) {
  .demo--handwerk .hero {
    padding: 3.5rem 0 4rem;
  }

  .demo--handwerk .hero__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .demo--handwerk .hero__visual {
    height: 280px;
    max-width: 460px;
    margin: 0 auto;
  }

  .demo--handwerk .hero__stamp {
    width: 100px;
    height: 100px;
  }

  .demo--handwerk .hero__stamp-num {
    font-size: 1.7rem;
  }
}

/* ===== Sections ================================================== */
.demo--handwerk .section {
  padding: 5rem 0;
}

.demo--handwerk .section--alt {
  background: var(--color-surface);
}

.demo--handwerk .section-head {
  max-width: 60ch;
  margin: 0 0 3rem;
}

.demo--handwerk .section-head--center {
  margin-inline: auto;
  text-align: center;
}

.demo--handwerk .section-head--center .eyebrow {
  justify-content: center;
}

.demo--handwerk .section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin: 0 0 0.75rem;
}

.demo--handwerk .section-head__sub {
  font-size: 1.05rem;
  color: var(--color-muted);
  margin: 0;
}

/* ===== Service cards ============================================= */
.demo--handwerk .cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.demo--handwerk .card {
  background: #fff;
  border: 1px solid var(--color-border-soft);
  padding: 2rem 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  position: relative;
}

.demo--handwerk .card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.demo--handwerk .card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--color-surface);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  transition: all 0.25s ease;
}

.demo--handwerk .card:hover .card__icon {
  background: var(--color-primary);
  transform: scale(1.05);
}

.demo--handwerk .card h3 {
  font-size: 1.25rem;
  margin: 0 0 0.6rem;
}

.demo--handwerk .card p {
  color: var(--color-muted);
  margin: 0;
  line-height: 1.65;
}

/* ===== Feature list ============================================== */
.demo--handwerk .feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
}

.demo--handwerk .feature-list li {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--color-border-soft);
  padding: 1.5rem;
  border-radius: var(--radius);
  transition: all 0.25s ease;
}

.demo--handwerk .feature-list li:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.demo--handwerk .feature-list__num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  flex-shrink: 0;
  min-width: 2.5rem;
}

.demo--handwerk .feature-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
  color: var(--color-text);
}

.demo--handwerk .feature-list p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.96rem;
}

/* ===== Steps ===================================================== */
.demo--handwerk .steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  counter-reset: step;
}

.demo--handwerk .steps li {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--color-border-soft);
  position: relative;
  transition: all 0.25s ease;
}

.demo--handwerk .steps li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.demo--handwerk .steps__num {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 16px rgba(122, 74, 31, 0.3);
}

.demo--handwerk .steps h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.demo--handwerk .steps p {
  color: var(--color-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* ===== Reference grid ============================================ */
.demo--handwerk .placeholder-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin-bottom: 1.25rem;
}

.demo--handwerk .placeholder {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #fff;
  border: 1px solid var(--color-border-soft);
  transition: all 0.25s ease;
}

.demo--handwerk .placeholder:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.demo--handwerk .placeholder__img {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.demo--handwerk .placeholder--wood {
  background:
    repeating-linear-gradient(90deg,
      rgba(0, 0, 0, 0.08) 0 2px, transparent 2px 18px),
    linear-gradient(135deg, #b07a3e 0%, #8a5a2b 50%, #6e4520 100%);
}

.demo--handwerk .placeholder figcaption {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--color-text);
}

/* ===== CTA card =================================================== */
.demo--handwerk .section--cta {
  padding: 5rem 0 6rem;
}

.demo--handwerk .cta-card {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 60%),
    linear-gradient(135deg, #3d2410 0%, #2a1d10 100%);
  color: #f5e7c9;
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.demo--handwerk .cta-card h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0 0 1rem;
  max-width: 22ch;
}

.demo--handwerk .cta-card__lead {
  color: rgba(245, 231, 201, 0.8);
  font-size: 1.05rem;
  margin: 0 0 1.75rem;
  max-width: 50ch;
}

.demo--handwerk .cta-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.demo--handwerk .cta-card__address {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(245, 231, 201, 0.15);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  font-style: normal;
  line-height: 1.8;
  color: #f5e7c9;
}

.demo--handwerk .cta-card__address strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

@media (max-width: 860px) {
  .demo--handwerk .cta-card {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.75rem;
    gap: 2rem;
  }
}

/* ===== Footer ==================================================== */
.demo--handwerk .demo-footer {
  background: #2a1d10;
  color: rgba(245, 231, 201, 0.7);
  padding: 3rem 0 2rem;
  margin-top: 0;
}

.demo--handwerk .demo-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.demo--handwerk .demo-footer__brand p {
  margin: 0 0 0.4rem;
}

.demo--handwerk .demo-footer__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
}

.demo--handwerk .demo-footer a {
  color: rgba(245, 231, 201, 0.7);
  text-decoration: none;
  transition: color 0.15s ease;
}

.demo--handwerk .demo-footer a:hover {
  color: #fff;
}

.demo--handwerk .demo-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

.demo--handwerk .demo-footer__copy {
  grid-column: 1 / -1;
  margin: 1.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 231, 201, 0.12);
  font-size: 0.85rem;
  color: rgba(245, 231, 201, 0.5);
}

@media (max-width: 600px) {
  .demo--handwerk .demo-footer__inner {
    grid-template-columns: 1fr;
  }

  .demo--handwerk .demo-footer__nav {
    align-items: flex-start;
  }
}