/* Justinas Häkelwelt – Projektübersicht 2026-10-29. Mobile first, ohne Abhängigkeiten. */
:root{color-scheme:light}
:root[data-theme="dark"]{color-scheme:dark}
html{scroll-padding-top:76px;-webkit-text-size-adjust:100%}
body{overflow-x:clip}
a,button,select,input{touch-action:manipulation}
button,select,input{font-family:inherit}
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid var(--accent,#385b46);outline-offset:3px}
[hidden]{display:none!important}
.portfolio-section,.portfolio-grid,.collection-tools,.atelier-filters{min-width:0}
.page-intro{padding-top:30px;padding-bottom:19px}
.page-intro h1{margin-bottom:9px}
.page-intro-bottom p{max-width:630px}
.collection-tools{grid-template-columns:minmax(0,1fr) auto minmax(180px,auto);gap:12px}
.collection-sort{min-width:0}
.collection-sort select{max-width:none;min-width:150px;width:100%;padding:0 10px;border:1px solid var(--line)!important;border-radius:23px;height:46px;background:var(--surface)}
.collection-tools .lc-filter-toggle{min-width:94px}
.atelier-filters{border:1px solid var(--line);padding:17px 20px;margin-top:12px}
.filter-row{grid-template-columns:90px minmax(0,1fr);align-items:start}
.filter-row .filter-buttons{display:flex;flex-wrap:wrap;gap:8px;min-width:0;overflow:visible}
.filter-row .filter-button{display:inline-flex;align-items:center;gap:5px;justify-content:center;border:1px solid var(--line)!important;background:var(--surface)!important;min-height:42px;padding:9px 14px!important;white-space:normal;text-align:center}
.filter-row .filter-button[aria-pressed=true]{background:var(--ink)!important;color:var(--text-on-ink,#fff)!important;border-color:var(--ink)!important}
.filter-row .filter-button[aria-pressed=true] .filter-count{color:inherit;opacity:.7}
.filter-select-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:12px 0 14px}
.filter-select-row label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600;color:var(--ink);min-width:0}
.filter-select-row select{min-height:46px;width:100%;padding:8px 12px;background:var(--surface);border:1px solid var(--line);border-radius:11px;color:var(--ink);font-size:14px;max-width:100%}
.filter-bottom{display:flex!important;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.filter-description{max-width:580px;font-size:12px;line-height:1.5}
.reset-filters{font-size:12px;min-height:44px;white-space:normal}
.filter-done{display:none;min-height:46px;border:0;border-radius:13px;background:var(--ink);color:var(--text-on-ink,#fff);font-size:13px;font-weight:600;padding:10px 18px;cursor:pointer}
.active-filters{display:flex;flex-wrap:wrap;gap:7px;margin:14px 0}
.active-filter{border:1px solid var(--line);min-height:40px;padding:7px 13px;max-width:100%;overflow-wrap:anywhere}
.collection-meta{margin:15px 0}
.project-card[hidden]{display:none!important}
.project-card .project-type{line-height:1.4;overflow-wrap:anywhere;display:block}
.project-card .project-card-title-link{display:block}
.project-card .project-card-line h3{overflow-wrap:anywhere}
.project-data{display:flex;flex-wrap:wrap;gap:16px 26px}
.project-data>div{min-width:80px;max-width:100%}
.project-data strong{overflow-wrap:anywhere}
@media(max-width:900px){
  .header-inner{padding-inline:0}
  .site-nav.is-open{max-height:calc(100dvh - 68px);overflow-y:auto;overscroll-behavior:contain}
  .project-hero{gap:16px}
  .project-cover,.project-copy{min-width:0;width:100%}
}
@media(max-width:640px){
  html{scroll-padding-top:72px}
  .wrap{width:calc(100% - 28px);max-width:none}
  .header-inner{min-height:66px;height:66px}
  .brand{min-width:0;flex:0 1 auto}
  .brand strong{font-size:19px}
  .brand small{font-size:9px}
  .brand-mark{flex:none}
  .theme-toggle,.menu-toggle{flex:none;min-width:44px;min-height:44px}
  .site-nav{top:66px}
  .page-intro{padding:22px 0 18px}
  .page-intro h1{font-size:clamp(34px,9vw,44px);line-height:1.06;letter-spacing:-1.2px}
  .page-intro-bottom p{font-size:13px;line-height:1.6;max-width:none}
  .portfolio-section{padding-bottom:40px}
  .collection-tools{grid-template-columns:minmax(100px,0.65fr) minmax(0,1.35fr);gap:9px;padding-bottom:15px}
  .collection-tools .atelier-searchbar{grid-column:1/-1;margin:0;padding:0!important}
  .atelier-searchwrap{border-radius:14px!important;height:48px}
  .atelier-searchwrap input{font-size:16px!important;height:46px}
  .collection-tools .lc-filter-toggle{grid-column:1;justify-self:stretch;min-width:0;width:100%;height:46px;border-radius:13px;padding:10px!important;font-size:13px}
  .collection-sort{grid-column:2;width:100%;margin:0}
  .collection-sort select{height:46px;max-width:none;width:100%;min-width:0;font-size:13px;padding:0 8px;background:var(--surface);border-radius:13px}
  .atelier-filters{margin:12px 0 12px;border-radius:15px;padding:14px 12px;background:var(--surface-alt)}
  .js-lc .atelier-filters.lc-filters-open{display:block!important}
  .filter-row{display:block!important;padding:7px 0!important}
  .filter-row .filter-label{display:block;margin:0 0 10px;font-size:13px;font-weight:650}
  .filter-row .filter-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;overflow:visible;flex-wrap:wrap;padding:0}
  .filter-row .filter-button{white-space:normal;flex:initial;display:flex;min-height:46px;font-size:12px!important;padding:10px 8px!important;gap:4px;line-height:1.3;border-radius:12px!important}
  .filter-row .filter-count{font-size:10px;flex:none}
  .filter-select-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0 15px}
  .filter-select-row label{font-size:12px}
  .filter-select-row select{font-size:14px;min-height:48px;padding:8px}
  .filter-bottom{display:grid!important;grid-template-columns:1fr;gap:10px;padding-top:12px!important}
  .filter-description{font-size:11px}
  .reset-filters{justify-self:start}
  .filter-done{display:block;width:100%;position:relative;min-height:48px}
  .active-filters{gap:7px;margin:10px 0}
  .active-filter{font-size:12px;min-height:44px}
  .collection-meta{margin:15px 0;font-size:12px}
  .portfolio-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:23px 11px;scroll-margin-top:18px}
  .project-card .project-card-media{aspect-ratio:1!important}
  .project-card[data-preview-card] .preview-arrow{width:44px;height:44px;min-width:44px;min-height:44px}
  .project-card-line{gap:4px}
  .project-card .project-card-line h3{font-size:15px!important;line-height:1.3;margin-top:5px}
  .project-card .project-type{font-size:10px;line-height:1.5}
  .project-intro{padding-top:12px}
  .project-copy h1{font-size:clamp(30px,10vw,42px);overflow-wrap:anywhere}
  .carousel-stage{aspect-ratio:1!important}
  .carousel-thumbnails{padding:9px 2px 12px}
  .carousel-thumbnail{flex-basis:56px;width:56px;height:56px}
  .project-data{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px}
  .project-data>div{min-width:0}
  .simple-page{padding-top:30px}
  .simple-page h1{font-size:clamp(34px,10vw,46px)}
  .footer-links a,.footer-hello{min-height:44px;display:inline-flex;align-items:center}
  .footer-bottom{padding-bottom:max(25px,env(safe-area-inset-bottom))}
}
@media(max-width:350px){
  .wrap{width:calc(100% - 22px)}
  .brand strong{font-size:17px}
  .brand-mark{display:none}
  .theme-toggle{padding-inline:5px}
  .filter-select-row{grid-template-columns:1fr}
  .portfolio-grid{gap:18px 9px}
  .project-card .project-card-line h3{font-size:13px!important}
  .project-card[data-preview-card] .preview-arrow{min-width:40px;width:40px;height:40px;min-height:40px}
}
@media(prefers-reduced-motion:reduce){.filter-row .filter-button,.project-card .project-card-media img{transition:none!important}}

.project-extra-note{margin:22px 0 10px;line-height:1.65;overflow-wrap:anywhere;white-space:normal;color:var(--ink)}
@media(max-width:640px){.project-extra-note{font-size:14px}.project-data>div{min-width:0}}

/* V5 — Frontend-Finish, bewusst als additive Ebene für zukünftige Backend-Exporte. */
:root{--lc-v5-radius:16px}
body{line-height:1.55}
.brand strong{letter-spacing:-.015em}
.brand-world{letter-spacing:-.02em}
.page-intro{max-width:1250px}
.page-intro-bottom p{color:var(--muted);line-height:1.65}
.collection-tools{align-items:center}
.atelier-searchwrap:focus-within{box-shadow:0 0 0 2px var(--accent,#466451);border-color:var(--accent,#466451)}
.filter-coming{font-size:12px;color:var(--muted);margin:3px 0 0;line-height:1.5}
.filter-row[hidden]{display:none!important}
.project-card-media{border-radius:var(--lc-v5-radius);background:var(--surface,#fff)}
.project-card-media img{object-fit:contain}
.project-card .project-card-line{padding-top:12px}
.project-card .project-type{font-weight:650;letter-spacing:.015em}
.project-card .project-card-title-link:focus-visible{outline:3px solid var(--accent,#466451);outline-offset:4px;border-radius:7px}
.project-hero .project-copy>p{line-height:1.7}
.project-data{border-top:1px solid var(--line);gap:12px}
.project-data>div{background:var(--surface,#fff);border:1px solid var(--line);border-radius:12px;padding:12px;min-width:0}
.project-data>div span{font-size:10px;letter-spacing:.045em;text-transform:uppercase}
.project-data>div strong{font-weight:650;font-size:13px;line-height:1.5}
.related-projects{padding-block:55px 75px;border-top:1px solid var(--line)}
.related-projects-top{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:24px}
.related-projects h2{font-size:clamp(26px,3vw,40px);letter-spacing:-.04em;line-height:1.12;max-width:580px;margin:8px 0 0}
.related-projects-top>a{font-size:13px;font-weight:700;white-space:nowrap;text-decoration:underline;text-underline-offset:4px}
.related-projects-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.related-project{display:block;min-width:0}
.related-project-photo{display:block;aspect-ratio:4/3;overflow:hidden;border:1px solid var(--line);background:var(--surface,#fff);border-radius:14px}
.related-project-photo img{width:100%;height:100%;object-fit:contain;transition:transform .3s ease}
.related-project:hover img{transform:scale(1.035)}
.related-project-info{display:grid;gap:3px;padding:12px 2px}
.related-project-info small{color:var(--muted);font-size:11px}
.related-project-info strong{font-size:clamp(14px,1.5vw,18px);font-weight:650;line-height:1.25}
@media (max-width:900px){
 .brand strong{font-size:18px}
 .project-data{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .project-hero .project-cover{grid-row:1;grid-column:1}
 .project-hero .project-copy{grid-row:2;grid-column:1}
 .project-hero{align-items:stretch}
 .project-copy h1{font-size:clamp(35px,7vw,61px);margin-bottom:12px}
 .project-copy h2{font-size:clamp(17px,3vw,23px);line-height:1.4}
 .project-cover{max-width:740px;width:100%}
}
@media (max-width:700px){
 .brand{gap:7px}
 .brand strong{font-size:16px;letter-spacing:-.03em}
 .brand strong .brand-world{display:block;font-size:15px}
 .brand small{font-size:8px;letter-spacing:.06em;margin-top:2px}
 .brand-mark svg{width:34px;height:34px}
 .header-inner{gap:8px}
 .page-intro{padding:20px 0 13px}
 .page-intro h1{font-size:clamp(34px,8vw,44px)}
 .page-intro-bottom p{font-size:13px;line-height:1.55}
 .collection-tools{position:sticky;top:66px;z-index:65;background:var(--paper,#f5f4f0);padding:10px 0 12px;border-bottom:1px solid var(--line);box-shadow:0 9px 15px -16px #0009;margin-top:0}
 .collection-tools .lc-filter-toggle,.collection-sort select{font-weight:650}
 .atelier-filters{margin-top:9px}
 .project-card-media{border-radius:12px}
 .project-card-line{padding-top:9px}
 .project-card .project-card-line h3{font-size:clamp(13px,3.9vw,16px)!important}
 .project-card .project-type{font-size:10px}
 .project-hero{padding:8px 0 35px;gap:22px}
 .project-copy .kicker{font-size:10px;letter-spacing:.05em}
 .project-copy h1{font-size:clamp(32px,9vw,43px)}
 .project-copy h2{font-size:19px;margin:0 0 14px}
 .project-copy>p{font-size:14px;margin-top:5px}
 .project-data{margin-top:22px;padding-top:18px}
 .project-data>div{padding:11px 10px}
 .project-inquiry{min-height:46px;display:inline-flex;align-items:center;justify-content:center;text-align:center}
 .related-projects{padding-block:28px 55px}
 .related-projects-top{align-items:flex-start}
 .related-projects h2{font-size:26px}
 .related-projects-top>a{font-size:12px;white-space:normal;text-align:right}
 .related-projects-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}
 .related-project:nth-child(3){display:none}
 .related-project-info{padding:9px 2px}
 .related-project-info strong{font-size:13px}
 .filter-coming{font-size:12px;margin-top:3px}
}
@media (max-width:370px){
 .brand-mark{display:none}
 .brand strong{font-size:15px}
 .brand strong .brand-world{font-size:14px}
 .theme-toggle,.menu-toggle{min-width:40px;width:40px}
 .related-projects-top{display:block}
 .related-projects-top>a{display:inline-block;text-align:left;margin-top:15px}
}
@media(prefers-reduced-motion:reduce){.related-project-photo img{transition:none}}
