/* franzdesign – Gestaltungssystem (Nov. 2026)
   Eine Schrift (Fragment Mono), eine Größe, Schwarz auf Weiß. Text ab der 50-%-Linie.
   Gilt für alle Seiten; seitenspezifisches CSS nur im <style> der jeweiligen Seite. */

@font-face {
  font-family: 'Fragment Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/fragment-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fragment Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/fragment-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

/* ── System: eine Schrift, eine Größe, Schwarz auf Weiß ── */
:root {
  --f-bg: #FFFFFF;
  --f-text: #000000;
  --f-text-muted: #767676;
  --f-border: #E3E3E3;
  --f-fill: #EFEFEF;
  --f-hover: rgba(0, 0, 0, 0.075);
  --f-font-mono: "Fragment Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --f-ease-out-quint: cubic-bezier(.22, 1, .36, 1);
  --f-page-pad: clamp(1.25rem, 2.3vw, 2rem);
  --f-gap: clamp(1.5rem, 4.5vw, 4.5rem);
  --f-section: clamp(7rem, 14vw, 12rem);
}

html { scroll-behavior: smooth; font-size: 100%; scrollbar-gutter: stable; }
body {
  font-family: var(--f-font-mono);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--f-text);
  background: var(--f-bg);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--f-text); color: var(--f-bg); }

.muted { color: var(--f-text-muted); }
.caps { text-transform: uppercase; letter-spacing: 0.02em; }

/* Link-Stil: Unterstrich erst beim Hover, wie HdM */
.u { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; text-decoration-thickness: 1px; transition: text-decoration-color 150ms ease; }
.u:hover { text-decoration-color: currentColor; }

.page { padding: 0 var(--f-page-pad); }

/* ── Kopf: Wortmarke links, Kontakt + Menü rechts ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  padding: 1.6rem var(--f-page-pad) 1.25rem;
  pointer-events: none;
  transition: opacity 400ms ease;
}
/* Wortmarke: [franzdesign] in Fragment Mono, etwas größer und enger als der Text */
.site-nav .logo { font-size: 1.25rem; line-height: 1; letter-spacing: -0.03em; }
.site-nav .logo, .site-nav .rechts { pointer-events: auto; }
.site-nav .rechts { display: flex; gap: 2rem; justify-self: end; }
/* Ort in der Mitte: Abschnitt, in dem man gerade liest; im Einstieg leer */
.site-nav .ort { text-transform: uppercase; letter-spacing: 0.02em; opacity: 0; transition: opacity 250ms ease; pointer-events: none; }
.site-nav .ort.da { opacity: 1; pointer-events: auto; }
body.menue-auf .site-nav .ort { opacity: 0; }
.site-nav button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.site-nav.weg { opacity: 0; pointer-events: none; }

/* ── Menü (Desktop): ganze Fläche ── */
.menue {
  position: fixed; inset: 0;
  z-index: 99;
  background: var(--f-bg);
  padding: 8.5rem var(--f-page-pad) 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--f-gap);
  align-content: start;
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease, visibility 0s 250ms;
}
.menue.offen { opacity: 1; visibility: visible; transition: opacity 250ms ease; }
.menue h2 { font-size: inherit; font-weight: 400; color: var(--f-text-muted); text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 1rem; }
.menue li + li { margin-top: 0.15rem; }
.menue a.ist { text-decoration-color: currentColor; }
body.menue-auf { overflow: hidden; }

/* ── Einstieg: Satz, Pillen, Knopf ── */
/* Einstieg füllt den ersten Bildschirm: Satz knapp über der Mitte, Pillen unten, Referenzen ragen herein */
.intro { min-height: calc(100svh - 9rem); display: flex; flex-direction: column; justify-content: center; padding-top: 12.5rem; }
.intro > * { margin-left: calc(50% + var(--f-gap) / 2); }
.intro-pills { margin-top: 4.5rem; }
.section-more { margin-left: calc(50% + var(--f-gap) / 2); }
/* Überschrift auf der zweiten Stufe (wie Wortmarke und Mailadresse) */
.intro h1, .p-hero h1 { font-size: 1.25rem; line-height: 1.4; font-weight: 400; letter-spacing: -0.01em; max-width: 44ch; text-wrap: balance; }
.intro h1 + .sub, .p-hero h1 + p { margin-top: 0.6rem; }
.intro .sub { max-width: 64ch; }
.intro .sub a { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--f-border); transition: text-decoration-color 150ms ease; }
.intro .sub a:hover { text-decoration-color: currentColor; }

.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pills + .pills { margin-top: 0.5rem; }
.pill {
  display: inline-block;
  padding: 0.45rem 1.1rem 0.4rem;
  border: 1px solid var(--f-text);
  border-radius: 999px;
  line-height: 1.4;
  white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease;
}
.pill:hover { background: var(--f-hover); }
/* Wegweiser-Pillen leiser als der Knopf: kleiner, hellgrauer Rand, beim Hover schwarz */
.pills .pill { padding: 0.28rem 0.8rem 0.22rem; border-color: #CFCFCF; transition: border-color 150ms ease, background-color 150ms ease; }
.pills .pill:hover { border-color: var(--f-text); background: none; }
.pills .pill--grau { border-color: #F3F3F3; background: #F3F3F3; }
.pills .pill--grau:hover { border-color: #E6E6E6; background: #E6E6E6; }
.pill--voll { background: var(--f-text); color: var(--f-bg); }
.pill--voll:hover { background: #333; border-color: #333; }

.intro-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 2.75rem; }

/* ── Abschnitte ── */
main > section + section { margin-top: var(--f-section); }
.section-heading {
  font-size: inherit;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--f-text-muted);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
sup.cnt { font-size: 0.7em; vertical-align: 0.5em; margin-left: 0.15em; }
#referenzen, #leistungen, #ueber-mich, #kontakt { scroll-margin-top: 6rem; }

/* ── Referenzen: Bilder im eigenen Format, mittig in quadratischen Feldern ── */
#referenzen { margin-top: 2.25rem; }
#referenzen .section-heading { margin-bottom: 0; }
.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 -1rem;
}
.ref a {
  display: block;
  container-type: inline-size;
  padding: 1.5rem 1rem 5rem;
  border-radius: 1.5rem;
  transition: background-color 150ms ease;
}
.ref a:hover { background: #ECECEC; }
.ref-box { height: 76cqw; display: flex; align-items: center; justify-content: center; }
.ref-pic { position: relative; }
.ref-pic img { max-width: 76cqw; max-height: 76cqw; width: auto; height: auto; }
.ref-cap { text-align: center; padding-top: 1.1rem; min-height: 5.4rem; }
.ref-cap .code { color: var(--f-text-muted); }
.ref a:hover .name { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
/* Bildunterschrift hängt direkt unter dem Bild, nicht unter dem Feld */
.ref-pic .ref-cap { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); width: max-content; max-width: 90cqw; min-height: 0; }


.section-more { display: inline-block; margin-top: clamp(1.5rem, 3vw, 2.5rem); }

/* ── Zweispaltig: Überschrift links, Inhalt rechts ── */
.split { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--f-gap); }
.split > :first-child { align-self: start; }

/* ── Leistungen (aufklappbar) ── */
:root { interpolate-size: allow-keywords; }
.block-name { text-transform: uppercase; letter-spacing: 0.02em; }
.block-type { display: block; color: var(--f-text-muted); }
.svc-list { border-top: 1px solid var(--f-border); }
.svc-list details { border-bottom: 1px solid var(--f-border); }
.svc-list summary {
  display: grid; grid-template-columns: 1fr auto; column-gap: 1.5rem; align-items: center;
  padding: 1.1rem 0.5rem 1.1rem 0; cursor: pointer; list-style: none;
  transition: background-color 150ms ease;
}
.svc-list summary::-webkit-details-marker { display: none; }
.svc-list summary:hover .block-name { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.svc-list summary:focus-visible { outline: 1px solid var(--f-text); outline-offset: 0.25rem; }
.svc-mark { position: relative; width: 0.75rem; height: 0.75rem; transition: transform 400ms var(--f-ease-out-quint); }
.svc-mark::before, .svc-mark::after { content: ''; position: absolute; background: var(--f-text); }
.svc-mark::before { left: 0; right: 0; top: 50%; height: 1px; }
.svc-mark::after { top: 0; bottom: 0; left: 50%; width: 1px; }
.svc-list details[open] .svc-mark { transform: rotate(45deg); }
.svc-list details::details-content { block-size: 0; overflow: hidden; transition: block-size 400ms var(--f-ease-out-quint), content-visibility 400ms allow-discrete; }
.svc-list details[open]::details-content { block-size: auto; }
.svc-body { padding-bottom: 1.5rem; max-width: 60ch; }
.svc-links { display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; margin-top: 1rem; }
.svc-body .svc-branchen { margin-top: 1rem; color: var(--f-text-muted); }
.svc-branchen a { color: inherit; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--f-border); transition: color 150ms ease, text-decoration-color 150ms ease; }
.svc-branchen a:hover { color: var(--f-text); text-decoration-color: currentColor; }
.more { display: inline-block; margin-top: 1.25rem; }
.svc-links .more { margin-top: 0; }

/* ── Über mich ── */
.about-photo .ref-pic img { max-width: 100%; max-height: none; }
.about-photo { max-width: 62%; }
.foto-credit { margin-top: 0.75rem; color: var(--f-text-muted); }
.foto-credit a { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--f-border); }
.about-text { display: flex; flex-direction: column; gap: 1.5rem; max-width: 52ch; }
.about-text .service-desc { color: var(--f-text); }

/* ── Kontakt ── */
.cta { padding-bottom: 0; }
.kontakt-form { max-width: 34rem; display: grid; gap: 1.75rem; margin-bottom: clamp(3.5rem, 7vw, 5rem); }
.kf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.kf-field { display: grid; gap: 0.25rem; }
.kf-field span { color: var(--f-text-muted); }
.kf-field input, .kf-field textarea {
  font: inherit; color: var(--f-text); background: transparent;
  border: 0; border-bottom: 1px solid var(--f-border); border-radius: 0;
  padding: 0.4rem 0; resize: vertical; transition: border-color 200ms ease;
}
.kf-field input:focus, .kf-field textarea:focus { outline: none; border-bottom-color: var(--f-text); }
.kf-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; }
.kontakt-form button { font: inherit; cursor: pointer; }
.kontakt-form button:disabled { opacity: 0.4; cursor: default; }
.kf-hinweis { color: var(--f-text-muted); max-width: 44ch; }
.kf-hinweis a { text-decoration: underline; text-underline-offset: 0.2em; }
.kf-status:empty { display: none; }
.kontakt-form.is-sent > :not(.kf-status) { display: none; }
.kf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cta-oder { color: var(--f-text-muted); margin-bottom: 0.5rem; }
.cta .mail { font-size: 1.25rem; }
.cta-phone { margin-top: 0.25rem; }

/* ── Fuß ── */
.site-footer { display: flex; justify-content: space-between; align-items: baseline; padding: var(--f-section) 0 2rem; color: var(--f-text-muted); }
.site-footer .links { display: flex; gap: 1.5rem; }
.site-footer a:hover { color: var(--f-text); }

/* ── Einblenden ── */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 700ms var(--f-ease-out-quint), transform 700ms var(--f-ease-out-quint); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ── Cookie-Banner ── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--f-text); color: var(--f-bg);
  padding: 1.25rem var(--f-page-pad);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  font-size: 0.8125rem;
  transform: translateY(100%); transition: transform 400ms ease;
}
.cookie-banner.is-visible { transform: none; }
.cookie-banner p { line-height: 1.5; max-width: 90ch; }
.cookie-banner a { text-decoration: underline; text-underline-offset: 0.15em; }
.cookie-banner .cookie-btns { display: flex; gap: 0.75rem; flex-shrink: 0; }
.cookie-banner button { font: inherit; padding: 0.45rem 1.1rem 0.4rem; border-radius: 999px; cursor: pointer; transition: opacity 200ms ease; }
.cookie-banner button:hover { opacity: 0.8; }
.cookie-btn-accept { background: var(--f-bg); color: var(--f-text); border: 1px solid var(--f-bg); }
.cookie-btn-reject { background: transparent; color: var(--f-bg); border: 1px solid rgba(255,255,255,0.4); }
@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 1rem; padding-top: 1rem; padding-bottom: 1rem; }
  .cookie-banner .cookie-btns { width: 100%; }
  .cookie-banner button { flex: 1; padding: 0.65rem 1rem; }
}

/* ── Handy ── */
.m-bar, .m-mehr { display: none; }
@media (max-width: 900px) {
  .menue { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  body { font-size: 0.875rem; padding-bottom: 3.5rem; }
  .site-nav { position: absolute; }
  .site-nav .rechts { display: none; }
  .site-nav .logo { font-size: 1.125rem; }
  .menue { display: none; }
  .intro { padding-top: calc(30svh - 3em); min-height: 0; justify-content: flex-start; }
  .intro-pills { margin-top: 2.5rem; }
  .intro > *, .section-more { margin-left: 0; }
  .pills { gap: 0.5rem; }
  .pills + .pills { display: none; }
  .pill { padding: 0.4rem 0.9rem 0.35rem; }
  .ref-grid { grid-template-columns: 1fr; }
  .ref a { padding: 1.5rem 1rem 4.5rem; }
  .ref-box { height: auto; }
  .ref-pic img { max-width: 100cqw; max-height: 85cqw; }
  .ref-pic .ref-cap { max-width: 100cqw; }
  .split { grid-template-columns: 1fr; row-gap: 0; }
  .about-photo { max-width: 100%; margin-bottom: 3rem; }
  .kf-row { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; gap: 0.75rem; }
  .m-bar {
    display: flex; justify-content: space-between;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    padding: 1rem var(--f-page-pad) calc(1rem + env(safe-area-inset-bottom));
    background: var(--f-bg);
    transition: opacity 400ms ease;
  }
  .m-bar a, .m-bar button { color: var(--f-text); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
  .m-bar.weg { opacity: 0; pointer-events: none; }
  .m-mehr {
    display: flex; flex-direction: column; gap: 0.9rem;
    position: fixed; left: 0; right: 0; bottom: calc(3.2rem + env(safe-area-inset-bottom)); z-index: 149;
    padding: 1.5rem var(--f-page-pad) 0.75rem;
    background: var(--f-bg);
    transform: translateY(110%); opacity: 0; pointer-events: none;
    transition: transform 350ms ease, opacity 350ms ease;
  }
  .m-mehr.offen { transform: none; opacity: 1; pointer-events: auto; }
}

/* ═══════════════════ Unterseiten ═══════════════════ */

/* Seitenkopf: kompakt, Text an der 50-%-Linie */
.p-hero { padding-top: clamp(10rem, 20vw, 15rem); }
.p-hero > * { margin-left: calc(50% + var(--f-gap) / 2); max-width: 60ch; }
.p-hero + section, .p-hero + .progress { margin-top: clamp(5rem, 10vw, 8rem); }
main > .p-hero + section { margin-top: clamp(5rem, 10vw, 8rem); }
.p-hero--kurz + section { margin-top: clamp(3rem, 6vw, 5rem); }
.crumbs { color: var(--f-text-muted); margin-bottom: 1rem; }
.crumbs a:hover { color: var(--f-text); }
.p-hero p:not(.crumbs) { color: var(--f-text-muted); }
.p-hero .hero-cta, .p-hero .hero-hinweis { margin-top: 2.25rem; vertical-align: baseline; }
.p-hero .hero-hinweis { display: inline-block; margin-left: 1.25rem; }
.p-hero .post-meta { margin-top: 1.25rem; }
.p-hero .direkt { margin-top: 1rem; }
.p-hero .direkt a, .p-hero p:not(.crumbs) a:not(.hero-cta) { color: var(--f-text); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--f-border); transition: text-decoration-color 150ms ease; }
.p-hero .direkt a:hover, .p-hero p:not(.crumbs) a:hover { text-decoration-color: currentColor; }

/* Knöpfe ohne eigene Klasse sehen aus wie die schwarze Pille */
.hero-cta, .kontakt-form button, .btn {
  display: inline-block;
  font: inherit;
  padding: 0.45rem 1.1rem 0.4rem;
  line-height: 1.4;
  border: 1px solid var(--f-text);
  border-radius: 999px;
  background: var(--f-text);
  color: var(--f-bg);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.hero-cta:hover, .kontakt-form button:hover, .btn:hover { background: #333; border-color: #333; }
.btn:disabled { opacity: 0.4; cursor: default; }

/* Abschnitte */
.page-block { margin-top: var(--f-section); }
.split > h2.section-heading, .split > p.section-heading { margin-bottom: 0; }
.split + .split { margin-top: clamp(4rem, 8vw, 6rem); }
.prose { max-width: 60ch; }
.prose p + p { margin-top: 1rem; }
.prose a, .faq p a, .pnote a, .service-desc a, .about-text a:not(.more) {
  text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--f-border);
  transition: text-decoration-color 150ms ease;
}
.prose a:hover, .faq p a:hover, .pnote a:hover, .service-desc a:hover, .about-text a:not(.more):hover { text-decoration-color: currentColor; }
.prose h3 { font-size: inherit; font-weight: 400; text-transform: uppercase; letter-spacing: 0.02em; margin: 2.25rem 0 0.5rem; }
.prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { margin-top: 1rem; }
.prose > ul:first-child, .prose > ol:first-child { margin-top: 0; }
.prose li { position: relative; padding-left: 1.5rem; }
.prose li + li { margin-top: 0.5rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 0.6rem; height: 1px; background: var(--f-text); }
.prose ol { margin-left: 1.5rem; }
.prose ol li { padding-left: 0.375rem; }
.prose ul + p, .prose ol + p { margin-top: 1rem; }
.pnote, .prose p.pnote { color: var(--f-text-muted); margin-top: 1rem; }
.quellen li { color: var(--f-text-muted); }
.quellen a { text-decoration: underline; text-underline-offset: 0.2em; }

/* Dreier-Raster */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--f-gap); row-gap: 3rem; }
.service-title { font-size: inherit; font-weight: 400; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 0.5rem; }
.service-desc { max-width: 52ch; }
.trio > a .block-name { transition: none; }
.trio > a:hover .block-name { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

/* Ablauf */
.steps { max-width: 60ch; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 3rem 1fr; column-gap: 0.5rem; padding: 1.1rem 0; border-top: 1px solid var(--f-border); counter-increment: step; }
.steps li:last-child { border-bottom: 1px solid var(--f-border); }
.steps li::before { content: counter(step, decimal-leading-zero); color: var(--f-text-muted); }
.steps strong { display: block; font-weight: 400; text-transform: uppercase; letter-spacing: 0.02em; }
.steps span { display: block; color: var(--f-text-muted); margin-top: 0.25rem; }
.steps-note { max-width: 60ch; margin-top: 1rem; color: var(--f-text-muted); }

/* Häufige Fragen */
.faq { max-width: 60ch; }
.faq h3 { font-size: inherit; font-weight: 400; margin-bottom: 0.25rem; }
.faq p { color: var(--f-text-muted); }
.faq div + div { margin-top: 1.75rem; }

/* Preistabellen */
.ptable { border-top: 1px solid var(--f-border); }
.prow { display: grid; grid-template-columns: 1fr auto; column-gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--f-border); align-items: baseline; }
.prow .pdesc { display: block; color: var(--f-text-muted); margin-top: 0.125rem; }
.prow .pdesc:empty { display: none; }
.prow .pprice { text-align: right; white-space: nowrap; }
a.prow { color: inherit; transition: color 150ms ease; }
.prow .pgo { display: block; margin-top: 0.25rem; color: var(--f-text-muted); transition: color 150ms ease; }
a.prow:hover .pgo, a.prow:focus-visible .pgo { color: var(--f-text); }
@media (hover: hover) {
  .ptable:has(a.prow:hover) .prow:not(:hover), .ptable:has(a.prow:hover) .prow:not(:hover) .pdesc { color: var(--f-text-muted); }
}
.pnext { margin-top: 1.5rem; }
.pnext a { text-decoration: underline; text-decoration-color: var(--f-border); text-underline-offset: 0.2em; transition: text-decoration-color 150ms ease; }
.pnext a:hover { text-decoration-color: var(--f-text); }
#it-betreuung { scroll-margin-top: 6rem; }

/* Vergleichstabellen */
.cmp { width: 100%; border-collapse: collapse; }
.cmp th, .cmp td { text-align: left; vertical-align: top; font-weight: 400; padding: 0.875rem 1rem 0.875rem 0; border-bottom: 1px solid var(--f-border); }
.cmp thead th { color: var(--f-text-muted); text-transform: uppercase; letter-spacing: 0.02em; border-top: 1px solid var(--f-border); }
.cmp tbody th { color: var(--f-text-muted); }

/* Bilder neben Text (Referenzen, Leistungen): eigenes Format, graue Fläche beim Hover */
.split .work-item, .lst-bild {
  display: inline-block;
  padding: 1rem;
  margin: -1rem;
  border-radius: 1.5rem;
  transition: background-color 150ms ease;
}
a.work-item:hover, a.lst-bild:hover { background: #ECECEC; }
.split .work-item img, .lst-bild img { width: auto; max-width: 100%; max-height: min(60vh, 28rem); }
.split .work-item, .lst-bild { max-width: 75%; }
.ref-code { color: var(--f-text-muted); margin-bottom: 0.25rem; }
.ref-text .block-name { font-size: inherit; font-weight: 400; }
.ref-text .prose { margin-top: 1.25rem; }
.ref-tech { color: var(--f-text-muted); margin-top: 1rem; }
.lst-lead { max-width: 52ch; margin-bottom: 1.5rem; }
.lst .ptable { margin-top: 2rem; max-width: 60ch; }
.lst .svc-links { margin-top: 1.75rem; }
.lst .svc-branchen { margin-top: 1rem; color: var(--f-text-muted); max-width: 60ch; }

/* Galerie mit Text darunter (KI-Beispiele) */
.ref-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ref--text .ref-inner { padding: 1.5rem 1rem 3rem; }
.ref--text img { width: 100%; height: auto; }
.ref--text .ref-cap { padding-top: 1.1rem; min-height: 0; }
.ex-text { text-align: center; max-width: 46ch; margin: 0.75rem auto 0; color: var(--f-text-muted); }
.ex-note { margin-top: 1rem; margin-left: calc(50% + var(--f-gap) / 2); }
@media (max-width: 768px) { .ex-note { margin-left: 0; } }

/* Über mich (Unterseite) */
.about-photo .img-wrap img { width: 100%; }
.img-label .type { color: var(--f-text-muted); margin-top: 0.75rem; }
.img-label .type a { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--f-border); }
.about-name { font-size: inherit; text-transform: uppercase; letter-spacing: 0.02em; }
.about-text .service-desc + .service-desc { margin-top: 1rem; }
@media (min-width: 769px) { .about-photo { position: sticky; top: 7rem; align-self: start; } }
.about-photo .work-item { padding: 0; margin: 0; max-width: none; }
.about-photo .work-item img { max-height: none; }

/* Kontakt: kleine Zeile über dem Formular */
.cta .label { color: var(--f-text-muted); margin-bottom: 1.5rem; }

/* Ratgeber */
main > section.post-block { margin-top: clamp(4rem, 8vw, 7rem); }
.post-meta { color: var(--f-text-muted); }
.post-list { border-top: 1px solid var(--f-border); }
.post-list a { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--f-gap); padding: 1.75rem 0; border-bottom: 1px solid var(--f-border); }
.post-list a:hover .block-name { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.post-list .post-datum { color: var(--f-text-muted); }
.post-list .block-type { margin-top: 0.25rem; max-width: 52ch; }

/* Impressum, Datenschutz */
.legal { padding-top: clamp(10rem, 20vw, 15rem); }
.legal > * { margin-left: calc(50% + var(--f-gap) / 2); max-width: 60ch; }
.legal .back { display: inline-block; color: var(--f-text-muted); margin-bottom: 2rem; }
.legal .back:hover { color: var(--f-text); }
.legal h1 { font-size: inherit; font-weight: 400; margin-bottom: 2.5rem; }
.legal h2 { font-size: inherit; font-weight: 400; text-transform: uppercase; letter-spacing: 0.02em; color: var(--f-text-muted); margin-top: 2.5rem; margin-bottom: 0.5rem; }
.legal p, .legal ul { margin-bottom: 0.75rem; }
.legal ul { padding-left: 1.5rem; list-style: disc; }
.legal p a, .legal li a { text-decoration: underline; text-underline-offset: 0.2em; }
.widerruf button { font: inherit; color: var(--f-text); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.widerruf button:disabled { color: var(--f-text-muted); text-decoration: none; cursor: default; }
.widerruf span { color: var(--f-text-muted); margin-left: 0.75rem; }
body > .site-footer { padding-left: var(--f-page-pad); padding-right: var(--f-page-pad); }

/* Projektanfrage */
.progress { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--f-gap); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.progress-inner { grid-column: 2; }
.progress-label { color: var(--f-text-muted); }
.progress-bar { height: 1px; background: var(--f-border); margin-top: 0.75rem; max-width: 34rem; }
.progress-bar span { display: block; height: 1px; width: 0; background: var(--f-text); transition: width 600ms var(--f-ease-out-quint); }
.step { display: none; grid-template-columns: 1fr 1fr; column-gap: var(--f-gap); }
.step.is-active { display: grid; animation: einblenden 500ms var(--f-ease-out-quint); }
@keyframes einblenden { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.step-head { align-self: start; }
.step-nr { color: var(--f-text-muted); text-transform: uppercase; letter-spacing: 0.02em; }
.step-title { font-size: inherit; font-weight: 400; margin-top: 0.25rem; }
.step-body { max-width: 34rem; display: grid; gap: clamp(2.25rem, 4vw, 3rem); }
.q { border: 0; min-width: 0; }
.q[hidden] { display: none; }
.q-label, .q legend { display: block; color: var(--f-text); margin-bottom: 0.75rem; }
.q-hint { color: var(--f-text-muted); margin-left: 0.375rem; }
.is-missing .opts { border-top-color: var(--f-text); }
.is-missing input, .is-missing textarea { border-color: var(--f-text); }
.opts { border-top: 1px solid var(--f-border); }
.opt { display: block; position: relative; cursor: pointer; border-bottom: 1px solid var(--f-border); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span { display: block; position: relative; padding: 0.85rem 0 0.85rem 1.75rem; transition: color 200ms ease; }
.opt span::before { content: ""; position: absolute; left: 0; top: calc(0.85rem + 0.8em - 0.375rem); width: 0.75rem; height: 0.75rem; box-sizing: border-box; border: 1px solid var(--f-text-muted); border-radius: 50%; transition: background 200ms ease, border-color 200ms ease; }
.opts.multi .opt span::before { border-radius: 0; }
.opt small { display: block; font-size: inherit; color: var(--f-text-muted); margin-top: 0.125rem; }
@media (hover: hover) { .opt:hover span::before { border-color: var(--f-text); } }
.opt input:checked + span::before { background: var(--f-text); border-color: var(--f-text); }
.opts:has(input:checked) .opt input:not(:checked) + span { color: var(--f-text-muted); }
.opts.multi:has(input:checked) .opt input:not(:checked) + span { color: var(--f-text); }
.opt input:focus-visible + span { outline: 1px solid var(--f-text); outline-offset: 0.25rem; }
.field { display: grid; gap: 0; }
.field input, .field textarea { font: inherit; color: var(--f-text); background: var(--f-bg); border: 1px solid var(--f-border); border-radius: 0; padding: 0.7rem 0.85rem; resize: vertical; transition: border-color 200ms ease; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--f-text); }
.field input::placeholder, .field textarea::placeholder { color: #B5B5B5; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.step-nav { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.step-nav .back, button.back { font: inherit; background: none; border: 0; color: var(--f-text-muted); cursor: pointer; padding: 0; }
.step-nav .back:hover, button.back:hover { color: var(--f-text); }
.err { color: var(--f-text); }
.err:empty { display: none; }
.note { color: var(--f-text-muted); }
.note a { text-decoration: underline; text-underline-offset: 0.2em; }
.sum-block + .sum-block { margin-top: 2rem; }
.sum-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--f-text); padding-bottom: 0.5rem; }
.sum-head h3 { font-size: inherit; font-weight: 400; text-transform: uppercase; letter-spacing: 0.02em; }
.sum-head button { font: inherit; background: none; border: 0; color: var(--f-text-muted); cursor: pointer; }
.sum-head button:hover { color: var(--f-text); }
.sum-row { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--f-border); }
.sum-row dt { color: var(--f-text-muted); }
.sum-row dd { white-space: pre-line; }
.preview { margin-top: 2rem; white-space: pre-wrap; border-top: 1px solid var(--f-border); padding-top: 1.25rem; color: var(--f-text-muted); }

@media (max-width: 768px) {
  .p-hero { padding-top: 7rem; }
  .p-hero > *, .legal > * { margin-left: 0; max-width: 100%; }
  .p-hero .hero-hinweis { display: block; margin-left: 0; margin-top: 0.75rem; }
  .legal { padding-top: 7rem; }
  .trio { grid-template-columns: 1fr; row-gap: 2.5rem; }
  .lst-bild { max-width: 100%; }
  .split .work-item { margin-bottom: 1rem; }
  .ref-grid--2 { grid-template-columns: 1fr; }
  .post-list a { grid-template-columns: 1fr; row-gap: 0.5rem; }
  .progress, .step.is-active { grid-template-columns: 1fr; }
  .progress-inner { grid-column: 1; }
  .step-head { margin-bottom: 2rem; }
  .row2 { grid-template-columns: 1fr; }
  .sum-row { grid-template-columns: 1fr; gap: 0.125rem; }
  .cmp { display: block; overflow-x: auto; }
}

/* Kontakt auf Unterseiten: Überschrift links, Inhalt ab der 50-%-Linie */
.cta > :not(.section-heading):not(.split) { margin-left: calc(50% + var(--f-gap) / 2); }
.cta .mail, .cta-phone a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; text-decoration-thickness: 1px; transition: text-decoration-color 150ms ease; }
.cta .mail:hover, .cta-phone a:hover { text-decoration-color: currentColor; }
.cta .mail { display: inline-block; }
.page-block > .section-heading:has(+ .ref-grid) { margin-bottom: 0.5rem; }
@media (max-width: 768px) {
  .cta > :not(.section-heading):not(.split) { margin-left: 0; }
}

/* Handy: Ort-Label aus, Abstand unter Abschnittsüberschriften */
@media (max-width: 768px) {
  .site-nav .ort { display: none; }
  .split > h2.section-heading, .split > p.section-heading { margin-bottom: 1.25rem; }
}

/* Handy: Überschrift in Textgröße (größere Handy-Überschrift im Nov. 2026 abgelehnt) */
@media (max-width: 768px) {
  .intro h1, .p-hero h1 { font-size: inherit; letter-spacing: 0; }
}
