/* Subpages (services, projects, guides, about). Tokens, base, masthead, buttons, questions and footer come from
   base.css, shared with the home page. The page itself follows the home page's poster look: a dot matrix behind the
   head, a small grey line over a huge silver title, then sections with a label on the left and hairline rows. */

/* Anchors land below the fixed masthead. */
html { scroll-padding-top: 88px; }

/* ---------- Page head ---------- */
/* The top padding clears the fixed masthead. */
.page { position: relative; isolation: isolate; padding: 112px var(--margin) 0; }
.page::before { content: ""; position: absolute; inset: 0 0 auto; height: min(70vh, 680px); z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, #222225 4px, transparent 4.8px); background-size: 34px 34px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 62% 0%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 85% 80% at 62% 0%, #000 15%, transparent 75%); }
@media (max-width: 600px) { .page::before { background-image: radial-gradient(circle, #222225 3px, transparent 3.8px); background-size: 24px 24px; } }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; color: var(--ink-faint); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--ink-faint); }
.crumbs a { display: inline-block; padding: 4px 0; text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { padding: 4px 0; color: var(--ink); }

.head { padding: 9vh 0 12vh; }
.head__top { display: flex; justify-content: space-between; gap: 16px; color: var(--ink-faint); }
/* Sized by the viewport width so "Webentwicklung" fits on one line down to 320px. */
.head h1 { margin: 2vh 0 0; font: 800 clamp(34px, 10.4vw, 168px)/.92 var(--sans); letter-spacing: -.045em; }
/* Room for descenders and the last letter's overhang under the clipped gradient (see .silver in base.css). */
.head h1, .lines li b, .more b { padding: .04em .1em .24em 0; margin-bottom: -.24em; }
.head h1 { margin-top: calc(2vh - .04em); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .head h1 { background-image: radial-gradient(48% 130% at 58% 0%, rgb(255 255 255 / .95) 0%, rgb(255 255 255 / 0) 62%),
    linear-gradient(180deg, #ECECEE 0%, #B4B4B9 52%, #7C7C82 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
/* The closing mark of a title: a small gold medal dot, as the medal closes the big word on the home page. */
.head__pixel { display: inline-block; width: .14em; height: .14em; margin-left: .06em; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFF3C4 0%, #FFD24D 35%, #E9A100 75%, #B87400 100%);
  box-shadow: 0 0 .18em rgb(255 197 46 / .35); }
.head__foot { margin-top: 7vh; padding-top: 24px; border-top: 1px solid var(--line-strong); display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 48px; align-items: end; }
.head__lead { margin: 0; max-width: 32em; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; color: var(--ink-soft); text-wrap: pretty; }
@media (max-width: 760px) { .head__foot { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Sections: label left, content right ---------- */
.sect { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 0 0 14vh; }
.sect__label { margin: 0; color: var(--ink-faint); }
@media (min-width: 900px) {
  .sect { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 48px; }
  .sect__label { position: sticky; top: 104px; align-self: start; }
}
/* Large statement and the plain text under it. */
.say { margin: 0; max-width: 22em; font: 400 clamp(26px, 3.2vw, 48px)/1.18 var(--sans); letter-spacing: -.025em; color: var(--ink); text-wrap: balance; }
/* A summary of several sentences: the statement look at reading size. */
.say--long { max-width: 30em; font-size: clamp(22px, 2.1vw, 32px); line-height: 1.32; }
.say + p, .note { margin: 4vh 0 0; max-width: 38em; color: var(--ink-soft); font-size: clamp(17px, 1.3vw, 19px); line-height: 1.65; }
.say + p a, .note a, .lines span a, .steps p a { color: var(--ink); text-underline-offset: 3px; }
.say + p a:hover, .note a:hover, .lines span a:hover, .steps p a:hover { color: var(--gold); }

/* Services as full-width rows: huge silver name, one line below, an index number (as on the home page). */
.lines ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.lines li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; padding: 24px 0 22px; border-bottom: 1px solid var(--line); }
.lines__name { margin: 0; font: inherit; }
.lines li b { display: block; font: 600 clamp(38px, 6vw, 98px)/.98 var(--sans); letter-spacing: -.045em; color: #D8D8DC; transition: transform .35s var(--ease); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .lines li b { background-image: linear-gradient(180deg, #F4F4F5 0%, #9C9CA1 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.lines li span { grid-column: 1; color: var(--ink-soft); font-size: 15px; }
.lines li i { grid-column: 2; grid-row: 1; align-self: start; font: 500 13px var(--sans); font-style: normal; color: var(--ink-faint); transition: color .2s; }
.lines li:hover b { transform: translateX(10px); }
.lines li:hover i { color: var(--gold); }

/* Process steps: number, short title, one or two sentences, divided by hairlines. */
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.say + .steps { margin-top: 4vh; }
.steps li { display: grid; grid-template-columns: 4em minmax(0, 1fr); gap: 2px 20px; padding: 24px 0 26px; border-bottom: 1px solid var(--line); }
.steps li > .mono { grid-row: span 2; padding-top: 8px; color: var(--gold); }
.steps--wide li { grid-template-columns: 6.5em minmax(0, 1fr); }
.steps h3 { margin: 0; font: 600 clamp(20px, 2vw, 28px)/1.2 var(--sans); letter-spacing: -.02em; }
.steps p { margin: 6px 0 0; max-width: 40em; color: var(--ink-soft); font-size: 17px; line-height: 1.65; }
/* Long German compounds ("Auftragsverarbeitungsvertrag") break with a hyphen in narrow columns instead of overflowing.
   Wide columns never need it, so the text stays unbroken there. */
.steps p, .faq__item p, .say + p, .head__lead { overflow-wrap: break-word; }
@media (max-width: 600px) { .steps p, .faq__item p { hyphens: auto; } }
/* On the smallest phones single long words ("Google-Unternehmensprofil", "Niederösterreich") are wider than the
   column at statement and list sizes: they break with a hyphen there, and anywhere as a last resort. */
@media (max-width: 600px) {
  .say, .sect h3, .lines li b, .more b, .art h2, .work__cap b { hyphens: auto; overflow-wrap: break-word; }
}

/* One project as a large picture with its caption beside it. */
.work { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px 40px; align-items: end; text-decoration: none; }
.work__face { overflow: hidden; border-radius: 18px; background: var(--bg-raised); border: 1px solid var(--line); box-shadow: 0 40px 70px -30px rgb(0 0 0 / .9); }
.work__face img { width: 100%; aspect-ratio: 960 / 600; object-fit: cover; transition: transform .6s var(--ease); }
.work:hover .work__face img { transform: scale(1.02); }
.works { display: grid; gap: clamp(48px, 8vh, 96px); }
.work__cap { display: grid; gap: 10px; }
.work__cap b { font: 600 clamp(30px, 3.4vw, 54px)/1 var(--sans); letter-spacing: -.04em; }
.work__cap span { color: var(--ink-soft); }
.work:hover .work__cap span:last-child { color: var(--gold); }
@media (max-width: 760px) { .work { grid-template-columns: minmax(0, 1fr); } }

/* Guides: a smaller title for long questions, the author line, and readable text sections. */
.head--article h1 { font-size: clamp(34px, 6vw, 96px); line-height: 1; letter-spacing: -.04em; text-wrap: balance; }
.byline { margin: 3vh 0 0; color: var(--ink-faint); }
.byline a { color: var(--ink); text-underline-offset: 3px; }
.art h2 { margin: 0 0 18px; font: 600 clamp(24px, 2.6vw, 36px)/1.18 var(--sans); letter-spacing: -.02em; text-wrap: balance; }
.art .sect__label { font-weight: 500; }
.art > div > p:not(.say) { margin: 0 0 18px; max-width: 40em; color: var(--ink-soft); font-size: 18px; line-height: 1.7; overflow-wrap: break-word; }
.art > div > p a { color: var(--ink); text-underline-offset: 3px; }
.art > div > p a:hover { color: var(--gold); }
/* Lists with a small gold square as bullet. */
.points { list-style: none; margin: 0; padding: 0; max-width: 40em; border-top: 1px solid var(--line); }
.points li { position: relative; padding: 13px 0 13px 24px; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.55; color: var(--ink); }
.points li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); }
.art code { font: 500 .9em/1.4 var(--mono); overflow-wrap: anywhere; color: var(--ink); }
/* Code blocks in guides (robots.txt, llms.txt): a raised block; long lines wrap instead of scrolling. */
.art pre { max-width: 40em; margin: 0 0 18px; padding: 18px 20px; border-radius: 14px; background: var(--bg-raised); border: 1px solid var(--line); color: #E6E6E8;
  white-space: pre-wrap; overflow-wrap: anywhere; font: 500 14px/1.6 var(--mono); }
.art pre code { font: inherit; }
/* Tables in guides: hairlines as in the lists, the column names as labels. On phones every row becomes a block and
   each cell shows its column name (data-label); the ARIA roles keep the table semantics when display changes. */
.table { width: 100%; max-width: 46em; margin: 4px 0 18px; border-collapse: collapse; border-top: 1px solid var(--line-strong); font-size: 16px; line-height: 1.55; }
.table th, .table td { padding: 13px 20px 13px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: break-word; }
.table thead th { font: 500 12px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.table tbody th { font-weight: 600; }
.table td { color: var(--ink-soft); }
/* A short price stays on one line, so „ab 1.200 €“ never leaves the € on a line of its own. */
.table--prices td[data-label="Preis"] { white-space: nowrap; }
@media (max-width: 600px) {
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .table tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .table th, .table td { display: block; padding: 0; border: 0; }
  .table td { margin-top: 8px; }
  .table td::before { content: attr(data-label); display: block; font: 500 11px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
}
/* Table of contents under the summary. */
.toc ol { list-style: none; margin: 5vh 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.toc a { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; color: var(--ink-soft); text-decoration: none; transition: border-color .2s, color .2s; }
.toc a:hover { color: var(--ink); border-color: var(--line-strong); }

/* Project facts: term, value beside it, divided by hairlines. */
.facts { margin: 0; border-top: 1px solid var(--line-strong); }
.facts div { display: grid; grid-template-columns: minmax(0, 10em) minmax(0, 1fr); gap: 4px 24px; padding: 15px 0 13px; border-bottom: 1px solid var(--line); }
.facts dt { padding-top: 5px; color: var(--ink-faint); }
.facts dd { margin: 0; font-size: 17px; }
.facts a { color: var(--ink); text-underline-offset: 3px; }
.facts a:hover { color: var(--gold); }
@media (max-width: 600px) { .facts div { grid-template-columns: minmax(0, 1fr); } }
/* Screenshots of a project: one wide picture, then two side by side (a desktop and a phone view). */
.shot { margin: 0 0 14vh; }
.shot__face { display: block; overflow: hidden; border-radius: 18px; background: var(--bg-raised); border: 1px solid var(--line); box-shadow: 0 40px 70px -30px rgb(0 0 0 / .9); }
.shot__face img { width: 100%; }
.shot figcaption { margin-top: 12px; color: var(--ink-faint); }
.shots { display: grid; grid-template-columns: minmax(0, 960fr) minmax(0, 468fr); gap: 24px; align-items: start; }
@media (max-width: 600px) { .shots { grid-template-columns: minmax(0, 1fr); } .shots .shot:last-child { max-width: 72%; } }
/* Three printed pages of the same format side by side (the flyers), one below the other on a phone. */
.shots--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 600px) { .shots--three { grid-template-columns: minmax(0, 1fr); } .shots--three .shot:last-child { max-width: none; } }

/* Links to the other services: big silver names that slide on hover, an arrow on the right. */
.more { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.more a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; align-items: baseline; padding: 22px 0 20px; border-bottom: 1px solid var(--line); text-decoration: none; }
/* Smaller than the service rows: these lists also carry long guide questions, which would run over four lines. */
.more b { font: 600 clamp(24px, 3.2vw, 52px)/1.06 var(--sans); letter-spacing: -.035em; color: #D8D8DC; transition: transform .35s var(--ease); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  /* One gradient per line, so a title over two lines does not fade out towards its end. */
  .more b { background-image: linear-gradient(180deg, #F4F4F5 0%, #9C9CA1 100%); background-size: 100% 1lh; -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.more span { grid-column: 1; color: var(--ink-soft); font-size: 15px; }
.more i { grid-column: 2; grid-row: 1; font: 500 13px var(--sans); font-style: normal; color: var(--ink-faint); transition: color .2s; }
.more a:hover b, .more a:focus-visible b { transform: translateX(10px); }
.more a:hover i, .more a:focus-visible i { color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  .lines li b, .more b, .work__face img { transition: none; }
}
