/* =========================================================
   BRERO – Seite «Textiles Werken & Gestalten»
   Ergänzt css/styles.css und css/anwendungsbereiche.css
   ========================================================= */
.tw h2 { font-size: clamp(1.5rem, 2.2vw, 1.875rem); font-weight: 700; letter-spacing: -0.02em; color: var(--navy); }
.tw .link-arrow { font-size: .9375rem; white-space: nowrap; }
.tw-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 600; font-size: .875rem; }
.tw-link .icon { width: 16px; height: 16px; stroke-width: 2; transition: transform .2s; }
a:hover > .tw-link .icon, a:hover .tw-link .icon { transform: translateX(4px); }
.tw-sec { padding: 48px 0; }
.tw-soft { background: var(--bg-soft); }
.tw-intro { margin-top: 8px; max-width: 640px; color: var(--text); }

/* Breadcrumb */
.breadcrumb { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 18px; font-size: .8125rem; color: var(--text); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .icon { width: 14px; height: 14px; color: var(--muted); }

/* Hero */
.tw-hero { position: relative; background: var(--bg-soft); overflow: hidden; }
.tw-hero-media { position: absolute; inset: 0 0 0 42%; }
.tw-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.tw-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg-soft) 0%, rgba(245, 249, 251,.6) 10%, rgba(245, 249, 251,0) 28%); }
.tw-hero-inner { position: relative; z-index: 1; max-width: 520px; padding: 34px 0 56px; }
.tw-hero .eyebrow { color: var(--navy); letter-spacing: .16em; margin-bottom: 14px; }
.tw-hero h1 { font-size: clamp(2.25rem, 4.2vw, 3.75rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.03em; color: var(--navy); margin-bottom: 20px; }
.tw-hero p { font-size: 1.0625rem; line-height: 1.55; color: var(--text); margin-bottom: 28px; }
.tw-ctas { display: flex; flex-wrap: wrap; gap: 16px; }
.tw-ctas .btn { border-radius: 4px; }

/* Vorteile */
.tw-usp { background: var(--white); border-bottom: 1px solid var(--line); }
.tw-usp-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 24px 0; }
.tw-usp-list li { display: flex; align-items: flex-start; gap: 16px; }
.tw-usp-list img { width: 40px; height: 40px; flex: none; }
.tw-usp-list strong { display: block; color: var(--navy); font-size: 1rem; }
.tw-usp-list span { display: block; color: var(--text); font-size: .875rem; line-height: 1.45; margin-top: 2px; }

/* Lehrpersonen: 4 Karten */
.tw-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tw-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: box-shadow .25s, transform .25s; }
.tw-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.tw-card-img { aspect-ratio: 16 / 9; overflow: hidden; }
.tw-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: left center; transition: transform .4s; }
.tw-card:hover .tw-card-img img { transform: scale(1.04); }
.tw-card-body { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 20px 20px; }
.tw-ic { width: 36px; height: 36px; margin-bottom: 10px; }
svg.tw-ic { color: var(--blue); stroke-width: 1.6; }
.tw-card-body h3 { font-size: 1.0625rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.tw-card-body p { font-size: .9375rem; line-height: 1.5; color: var(--text); }
.tw-card-body .tw-link { margin-top: auto; }

/* Projekte: 5 Karten */
.tw-projects { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.tw-proj { display: block; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; padding-bottom: 12px; transition: box-shadow .25s, transform .25s; }
.tw-proj:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.tw-proj-img { aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 10px; }
.tw-proj-img img { width: 100%; height: 100%; object-fit: cover; }
.tw-proj h3 { font-size: .9375rem; font-weight: 700; color: var(--navy); padding: 0 8px; }
.tw-proj p { font-size: .8125rem; color: var(--text); padding: 2px 8px 0; }

/* Presse + Schulsets: zwei gleich hohe Karten, Bild oben, Button unten bündig */
.tw-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.tw-box { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.tw-box-media { height: 260px; padding: 24px 32px; box-sizing: border-box; background: linear-gradient(180deg, #f7fafc, #eff5f9); border-bottom: 1px solid var(--line); }
.tw-box-media img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.tw-box-text { flex: 1; display: flex; flex-direction: column; padding: 28px 32px 32px; }
.tw-box h2 { font-size: 1.375rem; margin-bottom: 10px; }
.tw-box p { font-size: .9375rem; line-height: 1.55; color: var(--text); margin-bottom: 18px; }
.tw-box .btn { align-self: flex-start; margin-top: auto; border-radius: 4px; height: 48px; padding: 0 22px; font-size: .9375rem; }
.tw-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; margin-bottom: 26px; }
.tw-checks li { display: flex; align-items: flex-start; gap: 10px; font-size: .9375rem; line-height: 1.4; color: var(--navy); }
.tw-checks .icon { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--blue); stroke: none; }

/* Wissen + FAQ */
.tw-bottom { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: start; }
.tw-bottom .section-head { margin-bottom: 16px; min-height: 36px; align-items: center; }
.tw-wissen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tw-wiss { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; transition: box-shadow .25s; }
.tw-wiss:hover { box-shadow: var(--shadow-hover); }
.tw-wiss-img { aspect-ratio: 16 / 9; overflow: hidden; }
.tw-wiss-img img { width: 100%; height: 100%; object-fit: cover; }
.tw-wiss-body { display: flex; gap: 10px; padding: 14px 14px 16px; flex: 1; }
.tw-wiss-body > .icon { width: 24px; height: 24px; flex: none; color: var(--blue); stroke-width: 1.6; }
.tw-wiss-body h3 { font-size: .9375rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.tw-wiss-body p { font-size: .8125rem; line-height: 1.45; color: var(--text); margin-bottom: 10px; }
.tw-faq details { border: 1px solid var(--line); border-radius: 6px; margin-bottom: 8px; background: var(--white); }
.tw-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 13px 16px; font-size: .9375rem; color: var(--navy); }
.tw-faq summary::-webkit-details-marker { display: none; }
.tw-faq summary .icon { width: 20px; height: 20px; flex: none; color: var(--blue); }
.tw-faq summary::after { content: "+"; margin-left: auto; color: var(--blue); font-size: 1.375rem; line-height: 1; transition: transform .2s; }
.tw-faq details[open] summary::after { transform: rotate(45deg); }
.tw-faq-a { padding: 0 18px 16px 48px; font-size: .875rem; line-height: 1.55; color: var(--text); }
.tw-faq-a p + p, .tw-faq-a ul + p, .tw-faq-a p + ul { margin-top: 8px; }
.tw-faq-a ul { list-style: disc; padding-left: 18px; }
.tw-faq-a li { margin: 3px 0; }
.tw-faq-a strong { color: var(--navy); }

main.tw + .footer { border-top: 1px solid var(--line); }

/* Responsive */
@media (max-width: 1100px) {
  .tw-cards { grid-template-columns: repeat(2, 1fr); }
  .tw-projects { grid-template-columns: repeat(3, 1fr); }
  .tw-usp-list { grid-template-columns: repeat(2, 1fr); }
  .tw-duo, .tw-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .tw-hero { display: flex; flex-direction: column; }
  .tw-hero-media { position: relative; inset: auto; order: 2; aspect-ratio: 16 / 9; }
  .tw-hero-media::after { background: linear-gradient(180deg, var(--bg-soft) 0%, rgba(245, 249, 251,0) 25%); }
  .tw-hero-inner { padding: 24px 0 32px; }
  .tw-wissen { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .tw-checks { grid-template-columns: 1fr; }
  .tw-box-media { height: 200px; }
  .tw-box-text { padding: 22px 20px 24px; }
  .tw-cards, .tw-usp-list { grid-template-columns: 1fr; }
  .tw-projects { grid-template-columns: repeat(2, 1fr); }
  .tw-ctas .btn, .tw-box .btn { width: 100%; }
    .tw .section-head .link-arrow { white-space: normal; }
}
.tw-card-img img[src$="werkzeuge-presse.jpg"] { object-fit: contain; object-position: center; padding: 10px; background: #fff; }
div.tw-proj:hover { box-shadow: none; transform: none; } /* Inspirationen: reine Bilder ohne Link */
.tw-link.app-sort-link { white-space: nowrap; padding: 7px 12px; font-size: .8125rem; gap: 5px; }
/* Schulsortiment 599A (Karte wie Komplettsets) */
.tw-ks-head { margin-bottom: 24px; }
.tw-ks-eyebrow { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); background: #ecf6fc; padding: 6px 12px; border-radius: 999px; margin-bottom: 12px; }
.tw-ks .nt-sys-pill { background: var(--blue); color: #fff; font-weight: 700; font-size: .75rem; padding: 6px 16px; border-radius: 999px; }
.tw-ks { position: relative; }
.tw-ks h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); color: #1a4480; margin: 0 0 6px; }
div.tw-card:hover { box-shadow: none; transform: none; } div.tw-card:hover .tw-card-img img { transform: none; }
.tw-wiss-body > div { flex: 1; display: flex; flex-direction: column; }
.tw-wiss-body > div > .app-sort-link { margin-top: auto; align-self: flex-start; }
.tw-wiss-body p { margin-bottom: 14px; }
