/* GROW – Kategorie-Unterseiten
   Gemeinsamer Rahmen (Hero, Leistungen, Aufruf, weitere Kategorien) +
   ein eigenes Layout pro Kategorie (.cat-brandbook, .cat-atelier, …). */

.view-category { padding: calc(var(--header-h) + 28px) clamp(16px, 4vw, 56px) 0; overflow-x: hidden; }
.cat { --bg: var(--paper); --accent: var(--yellow-2); --ink-c: var(--forest); background: var(--bg); color: var(--ink); min-height: 100vh; }

/* ---------- Hero ---------- */
.cat-hero { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(20px, 4vw, 60px); align-items: center; padding: 20px 0 30px; }
.cat-back { display: inline-block; margin-bottom: 22px; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--forest-2); }
.cat-back:hover { text-decoration: underline; }
.cat-title { font-size: clamp(40px, 6.2vw, 82px); color: var(--ink-c); margin: 6px 0 18px; }
.cat-hero .lead { margin: 0; }
.cat-art svg { width: 100%; height: auto; display: block; overflow: visible; }
.art-glyph { font-family: var(--font-playful); font-weight: 600; fill: #1f4d3d; }
@media (max-width: 820px) { .cat-hero { grid-template-columns: 1fr; } .cat-art { max-width: 380px; order: -1; } }

/* ---------- Leistungen ---------- */
.cat-scope { list-style: none; padding: 0; margin: 30px auto 60px; max-width: 1240px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat-scope li { position: relative; padding: 22px 0 24px; border-top: 1px solid var(--line-strong); }
.cat-scope-no { font-weight: 700; font-size: 13px; letter-spacing: 0.1em; color: var(--forest-2); }
.cat-scope h2 { font-size: 24px; margin: 6px 0 6px; color: var(--ink-c); }
.cat-scope p { margin: 0; color: var(--ink-soft); font-size: 15px; }
@media (max-width: 820px) { .cat-scope { grid-template-columns: 1fr; } }

.cat-projects { max-width: 1240px; margin: 0 auto; position: relative; }
.cat-open { position: absolute; inset: 0; z-index: 2; border: 0; background: transparent; cursor: pointer; border-radius: inherit; }
.cat-open:focus-visible { outline: 3px solid var(--yellow-deep); }
.link-arrow { position: relative; z-index: 3; font-weight: 700; color: var(--forest); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.cat .tags { position: relative; z-index: 3; margin: 0 0 14px; }

/* ---------- Aufruf & weitere Kategorien ---------- */
.cat-cta { max-width: 1240px; margin: 90px auto 0; padding: 60px clamp(20px, 5vw, 70px); border-radius: 4px; text-align: center; background: var(--accent); position: relative; overflow: hidden; }
.cat-cta h2 { font-size: clamp(28px, 4vw, 46px); color: var(--ink-c); max-width: 22ch; margin: 0 auto 26px; position: relative; }
.cat-cta .button { position: relative; }
.cat-others { max-width: 1240px; margin: 70px auto 0; padding-bottom: 90px; }
.cat-others ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.cat-other { display: flex; flex-direction: column; padding: 16px 0; text-decoration: none; color: var(--forest); border-top: 1px solid var(--line-strong); transition: transform 0.3s var(--ease); }
.cat-other:hover { background: var(--mint); }
.cat-other span { font-family: var(--font-playful); font-weight: 400; font-size: 20px; }
.cat-other small { font-weight: 700; color: var(--forest-2); }
.cat-other-play { color: var(--forest); }


/* =========================================================
   1) BRANDING – „Markenbuch“: viel Typo, große Bilder im Wechsel
   ========================================================= */
.cat-brandbook { --bg: #fffaf0; --accent: #ece0b0; }
.cat-brandbook .cat-title { letter-spacing: -0.02em; }
.cat-brandbook .cat-scope li { background: transparent; box-shadow: none; border-top: 2px solid var(--forest); border-radius: 0; padding-left: 0; }
.bb-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: clamp(50px, 8vw, 110px); }
.bb-item { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(20px, 4vw, 60px); align-items: center; }
.bb-item:nth-child(even) { grid-template-columns: 1fr 1.2fr; }
.bb-item:nth-child(even) .bb-media { order: 2; }
.bb-media { position: relative; }
.bb-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.bb-stamp { position: absolute; right: -14px; top: -18px; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--forest); background: #e8d48a; box-shadow: inset 0 0 0 1px var(--forest), inset 0 0 0 6px #e8d48a, inset 0 0 0 7px var(--forest); }
.bb-num { font-family: var(--font-playful); font-size: clamp(64px, 9vw, 120px); line-height: 0.8; color: transparent; -webkit-text-stroke: 1px var(--forest); font-weight: 400; display: block; margin-bottom: 8px; }
.bb-text h3 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 12px; }
.bb-text p { color: var(--ink-soft); margin: 0 0 16px; }
.bb-item:hover .bb-media img { transform: rotate(-0.6deg); }
.bb-media img { transition: transform 0.5s; }
@media (max-width: 760px) { .bb-item, .bb-item:nth-child(even) { grid-template-columns: 1fr; } .bb-item:nth-child(even) .bb-media { order: 0; } }

/* =========================================================
   2) TEXTILIEN – „Atelier“: Stoffmuster mit Steppnaht und Stecknadel
   ========================================================= */
.cat-atelier { --bg: #f2f8f2; --accent: #dcebe1; background-image: radial-gradient(rgba(31, 77, 61, 0.07) 1px, transparent 1px); background-size: 18px 18px; }
.swatches { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 46px 34px; }
.swatch { position: relative; padding: 14px 14px 18px; background: #fffdf6; box-shadow: 0 14px 28px -18px rgba(31, 77, 61, 0.5); border-radius: 4px; transition: transform 0.4s var(--ease); }
.swatch::before { content: ""; position: absolute; inset: 7px; border: 1px dashed rgba(30, 59, 49, 0.4); border-radius: 3px; pointer-events: none; }
.swatch:hover { transform: translateY(-4px); }
.swatch-img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.swatch .pin { display: none; position: absolute; top: -10px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffd9b0, #c97c45 60%, #8a4f28); box-shadow: 0 3px 4px rgba(0,0,0,.25); z-index: 3; }
.swatch-label { padding: 12px 4px 0; }
.swatch-no { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--forest-2); }
.swatch-label h3 { font-size: 20px; margin-top: 4px; }

/* =========================================================
   3) MATERIAL – „Labor“: runde Proben mit Etikett
   ========================================================= */
.cat-material, .cat-lab { --bg: #eaf7f1; --accent: #c8e0d2; }
.dishes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 50px 30px; }
.dish { position: relative; text-align: center; }
.dish-plate { position: relative; width: min(240px, 80%); aspect-ratio: 1; margin: 0 auto -26px; }
.dish-plate img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 10px rgba(255, 253, 244, 0.85), 0 20px 30px -16px rgba(31, 77, 61, 0.5); transition: transform 0.6s var(--ease); }
.dish:hover .dish-plate img { transform: rotate(8deg) scale(1.03); }
.dish-ring { position: absolute; inset: -16px; width: calc(100% + 32px); height: calc(100% + 32px); pointer-events: none; overflow: visible; }
.dish-label { position: relative; background: #fffdf6; border-radius: 14px; padding: 36px 18px 18px; text-align: left; box-shadow: inset 0 0 0 1.5px rgba(31, 77, 61, 0.15); }
.dish-meta { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--forest-2); border-bottom: 1.5px solid rgba(31, 77, 61, 0.2); padding-bottom: 8px; margin-bottom: 10px; }
.dish-label h3 { font-size: 20px; margin-bottom: 6px; }
.dish-label p { margin: 0; font-size: 14px; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* =========================================================
   4) VERPACKUNG – „Stanzkontur“: Karten mit Falz- und Schnittlinien
   ========================================================= */
.cat-dieline { --bg: #fff6ee; --accent: #ead6c4; }
.boxes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 70px 40px; padding-top: 30px; }
.box { position: relative; display: grid; grid-template-columns: 1fr; border: 1px solid var(--forest); background: #fffdf8; transition: transform 0.4s var(--ease); }
.box:hover { transform: translateY(-6px); }
.box-flap { position: absolute; left: 14%; right: 14%; height: 28px; border: 1px solid var(--forest); background: #efe2d2; }
.box-flap-t { top: -30px; border-bottom: 1px dashed var(--forest); border-radius: 12px 12px 0 0; }
.box-flap-b { bottom: -30px; border-top: 1px dashed var(--forest); border-radius: 0 0 12px 12px; background: #f4ecc6; }
.box-face { border-bottom: 1px dashed var(--forest); }
.box-face img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.box-side { padding: 18px 20px 22px; }
.box-no { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--forest-2); }
.box-side h3 { font-size: 22px; margin: 4px 0 8px; }
.box-side p { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* =========================================================
   5) GESCHENKE – „Anhänger“ an einer Schnur
   ========================================================= */
.cat-tags { --bg: #fffbea; --accent: #ece0b0; }
.string-wrap { position: relative; padding-top: 30px; }
.string { position: absolute; left: -4%; right: -4%; top: 0; width: 108%; height: 70px; }
.gift-tags { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 40px 26px; }
.gift-tag { position: relative; padding-top: 34px; transform-origin: 50% 0; transform: rotate(var(--rot)); animation: tagSway 5s ease-in-out var(--delay) infinite alternate; filter: drop-shadow(0 10px 14px rgba(31, 77, 61, 0.14)); transition: filter 0.35s; }
@keyframes tagSway { from { transform: rotate(var(--rot)); } to { transform: rotate(calc(var(--rot) * -0.6)); } }
.gift-tag:hover, .gift-tag:focus-within { animation: tagLift 0.9s var(--ease) forwards; filter: drop-shadow(0 22px 22px rgba(31, 77, 61, 0.24)); }
@keyframes tagLift { 0% { transform: rotate(var(--rot)); } 45% { transform: rotate(calc(var(--rot) * -1.4)) translateY(-6px); } 100% { transform: rotate(0deg) translateY(-10px) scale(1.03); } }
.gift-card img { transition: transform 0.6s var(--ease); }
.gift-tag:hover .gift-card img { transform: scale(1.05) rotate(-1deg); }
.gift-card h3 { transition: color 0.3s; }
.gift-tag:hover .gift-card h3 { color: var(--forest-2); }
.gift-card::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 12px; height: 1.5px; background: var(--forest); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.45s var(--ease); }
.gift-tag:hover .gift-card::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .gift-tag { animation: none; } .gift-tag:hover { animation: none; transform: translateY(-6px); } }

.gift-cord { position: absolute; top: 0; left: 50%; width: 2px; height: 40px; background: #8a6448; }
.gift-card { position: relative; background: #fffdf6; padding: 30px 16px 18px; clip-path: polygon(22% 0, 78% 0, 100% 14%, 100% 100%, 0 100%, 0 14%); box-shadow: inset 0 0 0 2px rgba(31, 77, 61, 0.25); }
.gift-tag:nth-child(3n+1) .gift-card { background: #f4ecc6; }
.gift-tag:nth-child(3n+2) .gift-card { background: #efe2d2; }
.gift-tag:nth-child(3n) .gift-card { background: #e3f4ea; }
.gift-hole { position: absolute; top: 10px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--forest); }
.gift-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.gift-to { display: block; margin-top: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--forest-2); }
.gift-card h3 { font-size: 18px; margin-top: 2px; }

/* =========================================================
   6) CREATIVE DIRECTION – „Kinoleinwand“: große Bilder auf dunklem Grund
   ========================================================= */
.cat-film { --bg: #13201b; --accent: #1f3a30; --ink-c: #f7f1e0; color: #e6ede8; }
.cat-film .eyebrow, .cat-film .cat-back { color: #e8d48a; }
.cat-film .eyebrow::before { background: #e8d48a; }
.cat-film .lead, .cat-film .cat-scope p { color: rgba(247, 241, 224, 0.7); }
.cat-film .cat-scope li { border-top: 1px solid rgba(247, 241, 224, 0.22); }
.cat-film .cat-scope-no { color: #e8d48a; }
.cat-film .link-arrow, .cat-film .cat-cta h2 { color: #f7f1e0; }
.cat-film .cat-cta { background: #1f3a30; }
.cat-film .cat-cta .button-dark { background: #e8d48a; color: var(--forest); }
.cat-film .cat-cta .button-ghost { box-shadow: inset 0 0 0 1px #f7f1e0; color: #f7f1e0; }
.cat-film .cat-other { color: #f7f1e0; border-top-color: rgba(247, 241, 224, 0.22); }
.cat-film .cat-other small { color: #e8d48a; }
.cat-film .cat-other:hover { background: rgba(247, 241, 224, 0.06); }

.cine { display: flex; flex-direction: column; gap: clamp(70px, 11vw, 150px); padding: 30px 0 10px; }
.cine-frame { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; column-gap: clamp(16px, 2.4vw, 36px); }
.cine-media { position: relative; overflow: hidden; background: #0c1511; }
.cine-media img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); will-change: transform; filter: saturate(0.92); transition: filter 0.5s; }
.cine-frame:hover .cine-media img { filter: saturate(1.08); }
.cine-no { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #e8d48a; margin-bottom: 10px; }
.cine-cap h3 { font-size: clamp(26px, 3vw, 42px); line-height: 1.08; color: #f7f1e0; margin-bottom: 12px; }
.cine-cap p { color: rgba(247, 241, 224, 0.72); margin: 0 0 16px; max-width: 46ch; }

/* erstes Bild: über die ganze Breite, wie eine Leinwand, mit Text im Bild */
.cine-wide { display: block; margin: 0 calc(clamp(16px, 4vw, 56px) * -1); }
.cine-wide .cine-media { aspect-ratio: 21 / 9; }
.cine-wide .cine-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 21, 17, 0.92), rgba(12, 21, 17, 0.55) 45%, rgba(12, 21, 17, 0) 80%), linear-gradient(to right, rgba(12, 21, 17, 0.55), rgba(12, 21, 17, 0) 60%); }
.cine-wide .cine-cap { position: absolute; left: clamp(20px, 5vw, 72px); bottom: clamp(20px, 4vw, 56px); right: 30%; z-index: 1; }
.cine-wide .cine-cap h3 { font-size: clamp(32px, 4.6vw, 64px); }
/* weitere Bilder: groß und versetzt, Text daneben */
.cine-left .cine-media { grid-column: 1 / span 8; aspect-ratio: 4 / 3; }
.cine-left .cine-cap { grid-column: 9 / span 4; padding-bottom: 8px; }
.cine-right .cine-media { grid-column: 5 / span 8; grid-row: 1; aspect-ratio: 4 / 3; }
.cine-right .cine-cap { grid-column: 1 / span 4; grid-row: 1; padding-bottom: 8px; text-align: right; }
.cine-right .cine-cap p { margin-left: auto; }
.cine-left .cine-media, .cine-right .cine-media { margin-top: 0; }
.cine-frame .link-arrow { position: relative; z-index: 3; }
@media (max-width: 760px) {
  .cine-wide { margin: 0 -16px; }
  .cine-wide .cine-media { aspect-ratio: 4 / 5; }
  .cine-wide .cine-cap { right: 20px; }
  .cine-frame:not(.cine-wide) { display: block; }
  .cine-frame:not(.cine-wide) .cine-cap { text-align: left; padding-top: 16px; }
  .cine-right .cine-cap p { margin-left: 0; }
}
body.page-category[data-category="creative"] { background: #13201b; }
