.web-portfolio {
  margin-block: clamp(2rem, 5vw, 4rem);
}
.web-portfolio h2 {
  margin-block: 0 .4rem;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  scroll-margin-top: 7rem;
}
.web-portfolio > p { color: #485b70; margin-block: 0 1rem; }
.web-work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(.75rem, 2vw, 1.5rem);
}
.web-work-card, .web-demo {
  --surface: #f7ebda;
  --ink: #3c2520;
  --accent: #77422d;
}
[data-design="clinic-booking"] { --surface: #e9f4ee; --ink: #173c35; --accent: #225e50; }
[data-design="clinic-team"] { --surface: #e9f0fc; --ink: #152b57; --accent: #2d5393; }
[data-design="phone-repair"] { --surface: #e9efff; --ink: #182b57; --accent: #2b4fba; }
[data-design="phone-sales"] { --surface: #f1eaf9; --ink: #3e2456; --accent: #663899; }
[data-design="personal-profile"] { --surface: #eef2e2; --ink: #283c1e; --accent: #46663a; }
[data-design="personal-portfolio"] { --surface: #f3e9f0; --ink: #402c3f; --accent: #703c66; }
[data-design="fashion"] { --surface: #f4e9f0; --ink: #3a2440; --accent: #713d65; }
[data-design="trades"] { --surface: #e7eef7; --ink: #192e4a; --accent: #295689; }
[data-design="salon"] { --surface: #f9eae5; --ink: #512d35; --accent: #934156; }
.web-work-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  scroll-margin-top: 9rem;
  border: 1px solid #d8e2ed;
  border-radius: 1.1rem;
  background: #fff;
  box-shadow: 0 .4rem 1.4rem #162b4310;
  color: #20384f;
}
.web-work-card[hidden], .web-work-controls[hidden] { display: none; }
.web-work-cover { display: block; background: var(--surface); }
.web-work-cover img, .web-work-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.web-work-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .6rem;
  padding: clamp(.9rem, 2.5vw, 1.45rem);
}
.web-work-content h3, .web-work-content p { margin: 0; }
.web-work-content h3 { color: var(--ink); font-size: clamp(1.15rem, 2.2vw, 1.55rem); }
.web-work-content .web-work-category {
  align-self: flex-start;
  padding: .2rem .6rem;
  border-radius: .4rem;
  color: var(--ink);
  background: var(--surface);
  font-size: .83rem;
  font-weight: 700;
}
.web-work-features {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: 0;
  margin: .25rem 0;
  list-style: none;
}
.web-work-features li { padding: .2rem .55rem; border: 1px solid #d8e2ed; border-radius: .4rem; color: #344c64; font-size: .84rem; }
.web-work-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  padding-block-start: .5rem;
  margin-block-start: auto;
}
.web-work-actions .web-work-preview, .web-demo .web-work-mockup-hero a, .web-demo-return a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .5rem .85rem;
  border-radius: .6rem;
  background: var(--accent);
  color: white;
  font-weight: 700;
  text-decoration: none;
}
.web-work-actions .web-work-preview:hover, .web-demo a:hover { text-decoration: underline; text-underline-offset: .2em; }
.web-work-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .65rem;
  margin-block: .75rem 1rem;
}
.web-work-controls button {
  min-height: 44px;
  padding: .4rem .8rem;
  border: 1px solid #adc0d4;
  border-radius: .6rem;
  background: #fff;
  color: #234565;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.web-work-controls button:hover { background: #edf4fb; }
.web-portfolio :focus-visible, .web-demo :focus-visible { outline: 2px solid #17528d; outline-offset: 3px; }
.web-project-reference {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
  padding: .75rem;
  border: 1px solid #b8d2ec;
  border-radius: .75rem;
  background: #edf6ff;
  color: #20384f;
  overflow-wrap: anywhere;
}
.web-project-reference p { margin: 0; }
.web-project-reference[hidden] { display: none; }
#projekt-login { scroll-margin-top: 7rem; }

.web-demo { margin: 0; color: var(--ink); background: #f5f7fa; font: 1rem/1.65 system-ui, sans-serif; }
.web-demo-banner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; padding: .8rem clamp(1rem, 5vw, 3rem); background: #1d2b3b; color: white; }
.web-demo-banner a { color: inherit; text-underline-offset: .2em; }
.web-demo main { display: grid; gap: clamp(1.8rem, 5vw, 4rem); padding: clamp(1rem, 4vw, 3rem); max-width: 72rem; margin-inline: auto; background: #fff; }
.web-demo .web-work-mockup-nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1.5rem; padding-block-end: .8rem; border-bottom: 1px solid #dce4ea; }
.web-work-mockup-nav strong { font-size: clamp(1rem, 2vw, 1.35rem); }
.web-demo nav { display: flex; flex-wrap: wrap; gap: .5rem 1.15rem; }
.web-demo nav a { color: inherit; text-underline-offset: .2em; }
.web-demo .web-work-mockup-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: clamp(1rem, 4vw, 3rem); padding: clamp(1rem, 4vw, 2.5rem); border-radius: 1.25rem; background: var(--surface); }
.web-demo h1 { margin: 0; font-size: clamp(1.9rem, 4.5vw, 4.3rem); line-height: 1.12; letter-spacing: -.025em; overflow-wrap: anywhere; }
.web-demo[dir="rtl"] h1 { letter-spacing: normal; line-height: 1.25; }
.web-demo[data-design="restaurant"]:not([dir="rtl"]) h1,
.web-demo[data-design="fashion"]:not([dir="rtl"]) h1 { font-family: Georgia, serif; font-weight: 500; }
.web-demo .web-work-photo { border-radius: .85rem; }
.web-demo h2 { margin: 0 0 .85rem; font-size: clamp(1.45rem, 3vw, 2rem); }
.web-demo-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .85rem; }
.web-demo-sections article { padding: 1rem; border: 1px solid #dce4ea; border-block-start: 3px solid var(--accent); border-radius: .7rem; }
.web-demo-sections h3 { margin: 0; font-size: 1.12rem; }
.web-demo-sections article p { margin: .45rem 0 0; }
.web-demo-return { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; border-radius: .9rem; background: var(--surface); padding: 1rem; }
.web-demo-return p { margin: 0; flex: 1 1 20rem; }
@media (max-width: 640px) {
  .web-work-grid, .web-demo .web-work-mockup-hero { grid-template-columns: minmax(0, 1fr); }
  .web-work-controls { justify-content: space-between; }
}

.web-category-page main.web-category-main { gap:1.4rem; }
.web-category-main > header p { margin:.45rem 0 0; color:#485b70; }
.web-category-main h1 { font-size:clamp(1.8rem,4.6vw,3.2rem); }
.web-category-page .web-work-content h2 { margin:0; color:var(--ink); font-size:clamp(1.15rem,2.2vw,1.55rem); }
.web-category-page .web-button-alt {
  display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:.45rem .8rem;
  border:1px solid var(--accent); border-radius:.6rem; color:var(--ink); text-decoration:none; font-weight:700;
}
[data-design="dental-studio"] { --surface:#f8eee0; --ink:#433326; --accent:#775434; }
[data-design="restaurant-events"] { --surface:#f3e7e3; --ink:#492b2c; --accent:#803c3b; }
[data-design="fashion-catalog"] { --surface:#efe9dc; --ink:#362e23; --accent:#69563c; }
[data-design="cleaning"] { --surface:#eaf3ed; --ink:#213e32; --accent:#33624b; }
[data-design="barbershop"] { --surface:#e6eee8; --ink:#203b2f; --accent:#365a46; }
[data-sector="automotive"] { --surface:#e9eff6; --ink:#173041; --accent:#205773; }
[data-sector="real-estate"] { --surface:#f4efe2; --ink:#323c31; --accent:#405c47; }
[data-sector="education"] { --surface:#edeaf7; --ink:#30284c; --accent:#554489; }
[data-sector="professional-offices"] { --surface:#e6eeef; --ink:#203740; --accent:#265363; }

.web-gallery-tools, .web-compare-controls, .web-compare-heading {
  display:flex; flex-wrap:wrap; align-items:end; gap:.75rem; margin-block:1rem;
}
.web-shop-cart label { display:grid; gap:.25rem; }
.web-shop-cart select { padding:.55rem; border:1px solid #a6b8c9; border-radius:.45rem; font:inherit; }
.web-work-grid[hidden], .web-compare-controls[hidden], .web-shop-cart li[hidden] { display:none; }
.web-compare-heading { margin-block:0 1rem; justify-content:space-between; align-items:center; }
.web-compare-heading h2, .web-compare-controls p { margin:0; }
.web-compare-option { display:flex; gap:.5rem; align-items:center; align-self:flex-start; padding:.35rem 0; cursor:pointer; }
.web-compare-option input { inline-size:1.1rem; block-size:1.1rem; }
.web-compare-dialog {
  inline-size:min(56rem,calc(100% - 2rem)); max-block-size:85dvh; overflow:auto;
  padding:clamp(.8rem,3vw,1.6rem); border:1px solid #c9d7e2; border-radius:.85rem; color:#20384f; box-sizing:border-box;
}
.web-compare-dialog::backdrop { background:#172a3baf; }
.web-compare-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.web-compare-grid article { min-width:0; }
.web-compare-grid img { display:block; width:100%; aspect-ratio:16/10; object-fit:cover; border-radius:.55rem; }
.web-compare-grid h3 { margin:.5rem 0; overflow-wrap:anywhere; }
.web-compare-grid p { margin:0; }
.web-compare-controls button, .web-compare-heading button, .web-shop button {
  padding:.55rem .8rem; min-height:44px; border:1px solid #a6b8c9; border-radius:.55rem; background:#fff; color:#244766; font:inherit; cursor:pointer;
}
.web-compare-controls button:disabled, .web-shop button:disabled { opacity:.55; cursor:default; }
[data-sector="online-shops"] { --surface:#f2ece7; --ink:#3e302c; --accent:#815043; }
.web-shop-cart { border:1px solid #d8e2ed; border-radius:.8rem; margin-block-start:1rem; padding:1rem; }
.web-shop-cart h3 { margin-block-start:0; }
.web-shop-cart ul { list-style:none; padding:0; }
.web-shop-cart li { display:flex; flex-wrap:wrap; align-items:center; gap:.55rem; margin-block:.4rem; }
.web-shop-cart li span { flex:1 1 8rem; }
.web-shop-cart li bdi { min-width:2ch; text-align:center; }
.web-shop-cart label { width:fit-content; }
@media(max-width:480px) {
  .web-compare-grid { gap:.65rem; }
  .web-compare-grid .web-work-actions a { width:100%; box-sizing:border-box; padding:.4rem; }
}

.web-portfolio {
  padding: clamp(.95rem, 3vw, 2rem);
  border: 1px solid #dce6f0;
  border-radius: 1.4rem;
  background: linear-gradient(155deg,#edf4fb,#f9fbfd 65%,#f5f7fb);
}
.web-portfolio > p { max-width: 66ch; }
.web-gallery-tools { justify-content: space-between; }
.web-work-controls button { display:inline-flex; align-items:center; gap:.4rem; }
[dir="rtl"] .web-work-arrow { transform:scaleX(-1); }
.web-work-cover { overflow:hidden; }
.web-work-content { border-block-start:3px solid var(--accent); }
.web-work-card { transition:border-color .18s ease,box-shadow .18s ease; }
.web-work-card:focus-within { border-color:var(--accent); }
.web-work-cover img { transition:transform .24s ease-out; }
@media (hover:hover) {
  .web-work-card:hover { border-color:var(--accent); box-shadow:0 .65rem 1.5rem #162b431b; }
  .web-work-card:hover .web-work-cover img { transform:scale(1.035); }
}
.web-category-main > header { padding:clamp(1rem,4vw,2rem); border-radius:1rem; background:var(--surface); }
.web-compare-controls { padding:.7rem 1rem; border:1px solid #dce6f0; border-radius:.7rem; }
.web-compare-heading { position:sticky; inset-block-start:-.2rem; padding-block:.35rem; background:#fff; z-index:1; }
.web-compare-grid article { padding:.55rem; border:1px solid #e1e9f2; border-radius:.65rem; }
.web-compare-dialog .web-work-preview { background:#235780; }

.web-demo main[data-demo-layout] .web-work-mockup-hero {
  background:linear-gradient(125deg,var(--surface),#fff);
  box-shadow:inset 0 0 0 1px #27405a18;
}
.web-demo main[data-demo-layout] .web-work-mockup-hero p { margin:.6rem 0 1.1rem; font-size:clamp(1rem,2vw,1.25rem); }
.web-demo main[data-demo-layout] .web-work-photo { box-shadow:0 .7rem 1.5rem #172a3c24; }
.web-demo main[data-demo-layout="photo-first"] .web-work-photo { order:-1; }
.web-demo main[data-demo-layout="panoramic"] .web-work-mockup-hero { grid-template-columns:minmax(0,1fr); }
.web-demo main[data-demo-layout="panoramic"] .web-work-photo { aspect-ratio:3 / 1; }
.web-demo main[data-demo-layout="night"] .web-work-mockup-hero { background:linear-gradient(135deg,var(--ink),var(--accent)); color:#fff; }
.web-demo main[data-demo-layout="night"] .web-work-mockup-hero a { background:#fff; color:var(--ink); }
.web-demo [id^="part-"], .web-demo #shop { scroll-margin-top:1rem; }
.web-demo [id^="part-"]:target { border-color:var(--accent); background:var(--surface); }
.web-shop { padding:clamp(1rem,3vw,1.6rem); border-radius:1rem; background:var(--surface); }
.web-shop-products article, .web-shop-cart { background:#fff; }
.web-shop [data-shop-add]:hover, .web-shop [data-shop-checkout]:enabled:hover { background:var(--surface); }
.web-shop [data-shop-total] { font-variant-numeric:tabular-nums; }
@media (max-width:640px) {
  .web-gallery-tools { width:100%; }
  .web-demo main[data-demo-layout="panoramic"] .web-work-photo { aspect-ratio:16/10; }
}
@media (prefers-reduced-motion:reduce) {
  .web-work-card, .web-work-cover img { transition:none; }
  .web-work-card:hover .web-work-cover img { transform:none; }
}

.web-portfolio[data-category-open] > .web-gallery-tools { display:none; }
.web-inline-gallery { scroll-margin-top:7rem; }
.web-inline-gallery[hidden], .web-inline-status:empty { display:none; }
.web-inline-content { margin-block-start:.8rem; }
.web-inline-content .web-category-main > header { margin-block-end:.8rem; }
.web-inline-content .web-work-card h2 { font-size:clamp(1.15rem,2.2vw,1.55rem); }
.web-inline-content .web-work-card { scroll-margin-top:7rem; }
.web-inline-back, .web-preview-dialog header button {
  min-block-size:44px; padding:.45rem .8rem; border:1px solid #a6b8c9; border-radius:.55rem;
  background:white; color:#244766; font:inherit; font-weight:700; cursor:pointer;
}
.web-preview-dialog {
  width:min(70rem, calc(100% - 1.5rem)); height:min(52rem,calc(100dvh - 1.5rem)); max-width:100%;
  max-height:100%; padding:0; border:1px solid #dce6ef; border-radius:1rem; background:#fff; color:#20384f;
}
.web-preview-dialog[open] { display:grid; grid-template-rows:auto minmax(0,1fr) auto; }
.web-preview-dialog::backdrop { background:#172a3bc9; }
.web-preview-dialog :is(header,footer) { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.4rem .7rem; padding:.65rem .8rem; }
.web-preview-dialog h2 { margin:0; font-size:1.15rem; }
.web-preview-dialog iframe { width:100%; height:100%; border:0; background:#f5f7fa; }
.web-preview-dialog footer { border-block-start:1px solid #dce6ef; background:#f8fbfd; }

.web-carousel-stage { position:relative; container-type:inline-size; }
.web-carousel-stage .web-work-grid { touch-action:pan-y pinch-zoom; }
.web-portfolio[data-category-open] > .web-carousel-stage { display:none; }
.web-carousel-stage .web-work-controls {
  position:absolute;
  z-index:1;
  inset-inline:.55rem;
  inset-block-start:15.625cqw;
  transform:translateY(-50%);
  justify-content:space-between;
  margin:0;
  gap:.2rem;
  pointer-events:none;
}
.web-carousel-stage .web-work-controls button {
  pointer-events:auto;
  border-color:#ffffffb0;
  color:#fff;
  background:rgb(11 30 45 / 36%);
  box-shadow:0 .12rem .45rem #07152345;
  text-shadow:0 1px 3px #071523, 0 0 2px #071523, 0 0 2px #071523;
}
.web-carousel-stage .web-work-controls button:hover,
.web-carousel-stage .web-work-controls button:focus-visible { background:rgb(11 30 45 / 58%); }
.web-carousel-stage .web-work-controls button:focus-visible { outline-color:white; }
.web-carousel-stage .web-work-position {
  margin:.65rem 0 0;
  color:#344c64;
  text-align:center;
  font-size:.88rem;
  font-weight:700;
  font-variant-numeric:tabular-nums;
}
.web-work-card .web-work-cover { position:relative; }
.web-cover-shine,
.web-inline-content .web-work-cover::after {
  position:absolute;
  inset-block:0;
  left:0;
  width:42%;
  background:linear-gradient(90deg,transparent,rgb(255 255 255 / 24%) 48%,transparent);
  transform:translateX(-165%) skewX(-20deg);
  pointer-events:none;
}
@media (prefers-reduced-motion:no-preference) {
  .web-inline-content .web-work-cover::after { content:""; }
  .web-inline-content .web-work-card:focus-within .web-work-cover::after {
    animation:web-photo-shine 650ms ease-out;
  }
}
@media (prefers-reduced-motion:no-preference) and (hover:hover) {
  .web-inline-content .web-work-card:hover .web-work-cover::after {
    animation:web-photo-shine 650ms ease-out;
  }
}
@keyframes web-photo-shine {
  to { transform:translateX(400%) skewX(-20deg); }
}
@media(max-width:640px) {
  .web-carousel-stage .web-work-controls { inset-block-start:31.25cqw; }
  .web-carousel-stage .web-work-controls button { padding-inline:.45rem; }
}
