/* Zeichnungen «Stein und Strich» */
.zeichnung {
  --z-strich: var(--fg); --z-flaeche: #3a3633; --z-akzent: var(--orange);
  --s: 160px; display: block; width: var(--s); height: var(--s); pointer-events: none;
}
body.light-mode .zeichnung { --z-flaeche: #e9d3c2; }
.zeichnung svg { display: block; width: 100%; height: 100%; overflow: visible; }
.z-strich  { fill: var(--z-strich);  transition: fill .4s ease; }
.z-flaeche { fill: var(--z-flaeche); opacity: 0; transition: opacity .8s ease, fill .4s ease; }
.z-akzent  { fill: var(--z-akzent); }
.z-maske   { fill: none; stroke: #fff; stroke-width: 18; stroke-linecap: butt; stroke-linejoin: round; stroke-dasharray: 1.02 1.02; stroke-dashoffset: 1.02; }
.z-los .z-maske { stroke-dashoffset: 0; }
.z-los .z-flaeche, .z-fertig .z-flaeche { opacity: 1; }

/* Haltung: rechts neben dem Titel, rechte Kante auf der Linie */
.p-main { position: relative; }
.p-main .zeichnung { --s: clamp(112px, 11vw, 160px); position: absolute; right: 0; /* Boden auf der Grundlinie des Titels */ top: calc(clamp(40px, 5vw, 64px) + clamp(3.6rem, 7.5vw, 7.5rem) * .79 - var(--s) * .885); }

/* Services: nur beim offenen Punkt, rechte Kante links vom Pfeil */
.svc-item { position: relative; }
.svc-item .zeichnung { --s: 168px; position: absolute; right: calc(clamp(0px, 5vw, 40px) + 88px); top: calc(50% - var(--s) * .5); opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s; }
.svc-item.open .zeichnung { opacity: 1; visibility: visible; transition-delay: .25s; }

/* Hinweisband */
#ki-band { padding: 0 var(--pad); }
.ki-band-in { border-top: 1px solid var(--fg); border-bottom: 1px solid var(--fg); padding: clamp(40px, 5vw, 64px) clamp(0px, 5vw, 40px); display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.ki-band-titel { font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 4rem); font-weight: 400; line-height: 1.05; letter-spacing: -.02em; margin-bottom: 32px; }
.ki-band-titel span { display: block; }
#ki-band .zeichnung { --s: clamp(160px, 18vw, 264px); flex-shrink: 0; }
html:lang(en) .nur-de, html:not(:lang(en)) .nur-en { display: none !important; }

/* 404: die Figur steht auf der grossen Zahl */
.error-hero .zeichnung { --s: clamp(200px, 21vw, 300px); position: absolute; right: var(--pad); bottom: calc(13.6vw + 10px); }

/* unter 1100 px fehlt neben dem Text der Platz */
@media (max-width: 1100px) {
  .svc-item .zeichnung { --s: 112px; position: relative; right: auto; top: auto; margin: 0 0 0 clamp(0px, 5vw, 40px); height: 0; overflow: hidden; transition: opacity .4s ease, height .85s cubic-bezier(.22,1,.36,1), margin-top .85s; }
  .svc-item .zeichnung svg { height: var(--s); }
  .svc-item.open .zeichnung { height: var(--s); margin-top: 20px; }
}
@media (max-width: 768px) {
  .p-main .zeichnung { --s: 112px; top: calc(clamp(3rem, 12vw, 5rem) * .79 - var(--s) * .885); }
  .ki-band-in { flex-direction: column; align-items: flex-start; }
  #ki-band .zeichnung { --s: 168px; }
  .error-hero .zeichnung { --s: 200px; position: static; margin: 40px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .zeichnung, .z-flaeche, .z-strich, .z-maske { transition: none !important; }
}
