/* Components for the two Digital & Creative service pages and their editor previews. */
.web-services-page { --section-gap-y: clamp(88px, 10vw, 152px); }
.web-services-page main [id] { scroll-margin-top: 128px; }
.ws-hero.page-hero {
  overflow: hidden;
}
.ws-hero-inner { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: clamp(36px, 5vw, 80px); width: min(var(--content-max-width), 100%); background: transparent; }
.ws-eyebrow { display: block; margin: 0 0 22px; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.web-services-page .ws-hero .hero-copy h1 { max-width: 100%; max-inline-size: 100%; }
.webdevelopment-page .ws-hero .hero-copy h1 { hyphens: manual; overflow-wrap: normal; }
.ws-browser { position: relative; margin: 0; padding: 10px; border-radius: 18px; background: #fff; box-shadow: 0 30px 80px #0005; transform: rotate(-3deg); }
.ws-browser-bar { display: flex; align-items: center; gap: 5px; padding: 4px 5px 13px; color: #666; font-size: .6rem; }
.ws-browser-bar > i { width: 6px; height: 6px; background: #ccc; border-radius: 50%; }
.ws-browser-bar > span { margin-inline: auto; }
.ws-browser img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 7px; }
.ws-browser figcaption { position: absolute; right: -12px; bottom: -24px; padding: 14px 18px; border-radius: 12px; background: #e9ddfb; color: #27103c; font-size: .76rem; font-weight: 700; transform: rotate(3deg); box-shadow: 0 8px 24px #0002; }
.ws-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 7vw, 100px); align-items: start; }
.ws-heading { max-width: 850px; margin: 0 0 24px; font-size: var(--section-title-size); font-weight: 800; line-height: 1.08; text-wrap: balance; }
.ws-copy p, .ws-section-intro { color: var(--copy); font-size: 1rem; line-height: 1.75; }
.ws-copy p:first-child { margin-top: 0; }
.ws-copy p:last-child { margin-bottom: 0; }
.ws-section-intro { max-width: 780px; margin: 0; }
.ws-section-header { margin-bottom: clamp(32px, 4vw, 56px); }
.ws-services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ws-service-card { min-width: 0; padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); background: #f4f4f4; }
.ws-service-card > span { display: block; margin-bottom: 36px; color: var(--accent-purple-dark); font-size: .78rem; font-weight: 700; }
.ws-service-card h3 { margin: 0 0 14px; font-size: clamp(1.2rem, 1.6vw, 1.55rem); font-weight: 800; line-height: 1.2; }
.ws-service-card p { margin: 0; color: #4b4b4b; font-size: .92rem; line-height: 1.7; }
.ws-service-card--featured { grid-column: span 2; background: #17131d; color: #fff; }
.ws-service-card--featured > span { color: #d2b8ff; }
.ws-service-card--featured p { color: #d9d4df; max-width: 560px; }
.ws-crosslink { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 28px; padding: 22px 28px; border-radius: 18px; background: #f3edf9; }
.ws-crosslink p { margin: 0; font-size: .9rem; line-height: 1.6; }
.ws-crosslink .service-section-link { flex-shrink: 0; margin-top: 0; }
.ws-process-panel { padding: clamp(28px, 5vw, 64px); border-radius: var(--radius); background: #151515; color: #fff; }
.ws-process-panel .ws-section-intro { color: #c5c5c5; }
.ws-process-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin: 44px 0 0; padding: 0; list-style: none; }
.ws-process-steps li > span { display: inline-flex; justify-content: center; align-items: center; width: 42px; height: 42px; margin-bottom: 22px; background: #e9ddfb; color: #3d195e; border-radius: 50%; font-size: .8rem; font-weight: 700; }
.ws-process-steps h3 { margin: 0 0 12px; font-size: 1.05rem; line-height: 1.35; }
.ws-process-steps p { margin: 0; color: #bdbdbd; font-size: .87rem; line-height: 1.7; }
.ws-comparison-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.ws-comparison-controls { flex-shrink: 0; padding-bottom: 4px; }
.ws-comparison-project { margin: 0; }
.ws-comparison-project + .ws-comparison-project { margin-top: 48px; }
.ws-comparison-project[hidden], .ws-comparison-controls button[hidden], .ws-compare-handle[hidden] { display: none !important; }
.ws-comparison-project[hidden] + .ws-comparison-project { margin-top: 0; }
.ws-compare-images { --compare-position: 50%; position: relative; overflow: hidden; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius); background: #e7e7e7; box-shadow: 0 8px 40px #0000000d; }
.ws-compare-image { position: absolute; inset: 0; display: block; }
.ws-compare-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ws-compare-after { clip-path: inset(0 calc(100% - var(--compare-position)) 0 0); }
.ws-compare-before { clip-path: inset(0 0 0 var(--compare-position)); }
.ws-compare-before:focus-visible, .ws-compare-after:focus-visible { outline: 4px solid color-mix(in srgb, var(--theme-accent) 35%, #ffffff); outline-offset: -4px; }
.ws-compare-badge { position: absolute; top: 18px; left: 18px; z-index: 1; padding: 9px 14px; border-radius: 999px; background: #fff; color: #111; box-shadow: 0 2px 20px #0002; font-size: .72rem; font-weight: 700; pointer-events: none; }
.ws-compare-after .ws-compare-badge { background: #261135; color: #fff; }
.ws-compare-before .ws-compare-badge { left: auto; right: 18px; }
.ws-compare-divider { position: absolute; inset-block: 0; left: var(--compare-position); width: 3px; background: #fff; box-shadow: 0 0 8px #0008; transform: translateX(-50%); pointer-events: none; }
.ws-compare-handle { position: absolute; top: 50%; left: var(--compare-position); z-index: 2; width: 56px; height: 56px; padding: 0; transform: translate(-50%, -50%); background: transparent; color: var(--text); border: 0; border-radius: var(--radius-round); cursor: ew-resize; touch-action: none; }
.ws-compare-handle:hover .scroll-progress-icon { transform: scale(1.08); }
.ws-compare-handle:focus-visible { outline: 3px solid color-mix(in srgb, var(--theme-accent) 35%, #ffffff); outline-offset: 4px; }
.ws-compare-tools { display: flex; align-items: center; gap: 20px; max-width: 500px; margin: 24px auto 0; color: #444; font-size: .75rem; font-weight: 700; }
.ws-compare-tools input { min-width: 0; width: 100%; margin: 0; min-height: 36px; accent-color: var(--theme-accent); cursor: ew-resize; }
.ws-project-caption { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 26px; }
.ws-project-caption h3 { margin: 0 0 6px; font-size: clamp(1.4rem, 2.8vw, 2.4rem); line-height: 1.2; font-weight: 800; }
.ws-project-caption p { margin: 0; color: #666; font-size: .86rem; }
.ws-project-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 24px; }
.ws-project-links .service-section-link { margin-top: 0; }
.ws-comparison-note { margin: 22px 0 0; color: #686868; font-size: .78rem; line-height: 1.6; }
.ws-project-status { margin: 12px 0 0; color: #777; font-size: .75rem; }
.ws-faq .faq-list { max-width: 100%; }
.ws-faq .web-accordion-body p { max-width: 900px; }
.ws-hub { display: grid; gap: 14px; padding: 32px; border-radius: 24px; background: #ffffff0b; box-shadow: inset 0 0 0 1px #ffffff20; }
.ws-hub-center { padding: 22px 24px; border-radius: 14px; background: #fff; color: #111; text-align: center; font-size: 1.35rem; font-weight: 800; }
.ws-hub-center small { display: block; margin-top: 6px; color: #777; font-size: .73rem; font-weight: 500; }
.ws-hub-connector { display: block; width: 1px; height: 28px; margin: 0 auto; background: #d2b8ff; }
.ws-hub-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ws-hub-features span { padding: 17px 14px; border-radius: 12px; background: #ffffff12; text-align: center; font-size: .78rem; color: #e9ddfb; }
.ws-hub-note { margin: 12px 0 0; text-align: center; color: #b4a6c2; font-size: .73rem; line-height: 1.6; }
.ws-usecases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ws-usecase { padding: 32px; background: #f4f4f4; border-radius: var(--radius); }
.ws-usecase > i { display: inline-block; margin-bottom: 28px; color: var(--accent-purple-dark); font-size: 1.8rem; }
.ws-usecase h3 { margin: 0 0 18px; font-size: 1.25rem; }
.ws-usecase ol { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; color: #555; font-size: .87rem; line-height: 1.6; }
.ws-usecase li + li::before { content: "↓"; display: block; margin-bottom: 10px; color: var(--accent-purple-dark); }
.ws-page-cta { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding: clamp(28px, 5vw, 64px); border-radius: var(--radius); background: #f3edf9; }
.ws-page-cta .ws-heading { max-width: 760px; font-size: clamp(1.8rem, 3vw, 3rem); margin-bottom: 14px; }
.ws-page-cta p { max-width: 650px; margin: 0; color: #555; font-size: .95rem; line-height: 1.7; }
.ws-page-cta .service-section-link { flex-shrink: 0; margin-top: 0; }
@media (min-width: 1001px) {
  .ws-hero.page-hero {
    padding: clamp(175px, 16vw, 230px) var(--page-gutter) clamp(64px, 7vw, 100px);
    background: radial-gradient(ellipse at 92% 0%, #3c1b61 0, transparent 65%), #111;
  }
  .ws-hero .hero-copy h1 { font-size: clamp(3rem, 5.3vw, 5.2rem); }
  .webdevelopment-page .ws-hero .hero-copy h1 { font-size: clamp(2.5rem, 3.9vw, 4rem); }
}
@media (max-width: 1000px) {
  .ws-hero-inner { display: block; }
  .ws-hero .ws-browser, .ws-hero .ws-hub { display: none; }
  .ws-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-usecases { grid-template-columns: 1fr; }
  .ws-split { grid-template-columns: 1fr; gap: 18px; }
  .ws-page-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .ws-services-grid { grid-template-columns: 1fr; }
  .ws-service-card--featured { grid-column: auto; }
  .ws-service-card > span { margin-bottom: 22px; }
  .ws-process-steps { grid-template-columns: 1fr; gap: 30px; }
  .ws-process-steps li > span { margin-bottom: 12px; }
  .ws-crosslink, .ws-project-caption { flex-direction: column; align-items: flex-start; gap: 18px; }
  .ws-comparison-heading { display: block; }
  .ws-comparison-controls { margin-top: 24px; }
  .ws-compare-images { border-radius: 16px; }
  .ws-compare-badge { top: 10px; left: 10px; padding: 7px 9px; font-size: .58rem; }
  .ws-compare-before .ws-compare-badge { right: 10px; }
  .ws-compare-handle { width: 52px; height: 52px; }
  .ws-project-links { justify-content: flex-start; }
  .ws-compare-tools { gap: 12px; }
  .ws-hub { width: 100%; padding: 20px; }
  .ws-hub-features span { padding: 14px 10px; font-size: .72rem; }
}

/* Webentwicklung: plain service overview and editable image/copy sections. */
.webdevelopment-page .wd-hero-media { min-width: 0; margin: 0; }
.webdevelopment-page .wd-hero-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.webdevelopment-page .wd-service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 6vw, 88px); }
.webdevelopment-page .wd-service-item { padding: clamp(24px, 3vw, 40px) 0; border-top: 1px solid var(--border-soft); }
.webdevelopment-page .wd-service-item h3 { margin: 0 0 14px; font-size: clamp(1.25rem, 1.8vw, 1.7rem); font-weight: var(--font-weight-extrabold); line-height: var(--heading-line-height); }
.webdevelopment-page .wd-service-item p { max-width: 560px; margin: 0; color: var(--copy); font-size: 1rem; line-height: var(--line-height-copy); }
.webdevelopment-page .wd-feature-stack { display: grid; gap: clamp(44px, 6vw, 88px); }
.webdevelopment-page .wd-feature-stack > .ws-heading { margin: 0; }
.webdevelopment-page .wd-feature { align-items: center; }
.webdevelopment-page .wd-feature .about-story-media { min-width: 0; margin: 0; }
.webdevelopment-page .wd-feature .about-story-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.webdevelopment-page .wd-feature-copy h3 { margin: 0 0 var(--section-title-copy-gap); font-size: clamp(1.8rem, 3vw, 3.2rem); font-weight: var(--font-weight-extrabold); line-height: var(--heading-line-height); }
.webdevelopment-page .wd-feature-copy p { margin: 0 0 18px; color: var(--copy); font-size: 1rem; line-height: var(--line-height-copy); }
.webdevelopment-page .wd-feature-copy p:last-of-type { margin-bottom: 0; }
.webdevelopment-page .wd-feature:nth-of-type(even) .about-story-media { grid-column: 2; grid-row: 1; }
.webdevelopment-page .wd-feature:nth-of-type(even) .wd-feature-copy { grid-column: 1; grid-row: 1; }
.webdevelopment-page main > #webentwicklung-zusammenarbeit { justify-content: center; background: var(--surface-neutral); }

@media (max-width: 1000px) {
  .webdevelopment-page .wd-hero-media { display: none; }
}
@media (max-width: 980px) {
  .webdevelopment-page .wd-feature:nth-of-type(even) .about-story-media,
  .webdevelopment-page .wd-feature:nth-of-type(even) .wd-feature-copy { grid-column: auto; grid-row: auto; }
}
@media (max-width: 600px) {
  .webdevelopment-page .wd-service-list { grid-template-columns: 1fr; }
}

/* Webentwicklung uses the existing service image cards and CI accordions. */
.webdevelopment-page .wd-service-formats .led-format-copy h3 { font-size: clamp(1.3rem, 2.1vw, 2.4rem); }
.webdevelopment-page .wd-service-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; margin-top: clamp(28px, 4vw, 56px); }
.webdevelopment-page .wd-service-details .web-accordion { min-width: 0; margin-top: 0; }
@media (max-width: 760px) {
  .webdevelopment-page .wd-service-formats .led-format-copy h3 { font-size: clamp(1.8rem, 7.5vw, 2.4rem); }
  .webdevelopment-page .wd-service-details { grid-template-columns: 1fr; }
}
@media (min-width: 761px) and (max-width: 980px) {
  .webdevelopment-page .wd-service-formats .led-format-card { min-height: 520px; }
}

/* Compact project caption; range controls remain available to keyboards and screen readers. */
.ws-comparison .ws-project-caption h3 { margin: 0; }
.ws-comparison-accessible { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.ws-compare-images:has(+ .ws-comparison-accessible input:focus-visible) { outline: 3px solid var(--theme-accent); outline-offset: 4px; }
/* Laptop comparison: shared page gutters, copy/actions left and image right. */
@media (min-width: 1001px) and (max-width: 1728px) {
  .webdesign-page .ws-comparison:has([data-comparison-project][hidden]) > .content-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    column-gap: clamp(32px, 4vw, 64px);
    row-gap: 24px;
    align-items: center;
  }
  .webdesign-page .ws-comparison:has([data-comparison-project][hidden]) .ws-comparison-heading {
    grid-column: 1;
    grid-row: 1;
    flex-direction: column;
    align-items: flex-start;
    align-self: end;
    gap: 20px;
    margin-bottom: 0;
  }
  .webdesign-page .ws-comparison:has([data-comparison-project][hidden]) .ws-comparison-heading .ws-heading { font-size: clamp(2rem, 3vw, 3rem); }
  .webdesign-page .ws-comparison:has([data-comparison-project][hidden]) .ws-comparison-project:not([hidden]) { display: contents; }
  .webdesign-page .ws-comparison:has([data-comparison-project][hidden]) .ws-compare-images {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
  .webdesign-page .ws-comparison:has([data-comparison-project][hidden]) .ws-project-caption {
    grid-column: 1;
    grid-row: 2;
    flex-direction: column;
    align-items: flex-start;
    align-self: start;
    gap: 18px;
    margin-top: 0;
  }
  .webdesign-page .ws-comparison:has([data-comparison-project][hidden]) .ws-project-links { justify-content: flex-start; }
}

/* Project name, navigation and description stay together in every comparison layout. */
.ws-comparison .ws-project-copy { flex: 1; width: 100%; min-width: 0; }
.ws-comparison .ws-project-title-row { display: flex; align-items: center; gap: 20px; }
.ws-comparison .ws-project-title-row h3 { min-width: 0; }
.ws-comparison .ws-project-title-row .ws-comparison-controls { margin-top: 0; padding-bottom: 0; }
.ws-comparison .ws-project-caption .ws-project-description { margin: 12px 0 0; color: var(--copy); font-size: 1rem; line-height: var(--line-height-copy); }
