/* Entwurf G · Die Leitung, ruhig, auf der ganzen Startseite */

/* Platz am Rand für die Leitung */
section[id] > .wrap { padding-left: calc(var(--gutter) + 52px); }
section[id], footer { position: relative; z-index: 1; }
@media (max-width: 640px) { section[id] > .wrap { padding-left: calc(var(--gutter) + 34px); } }

/* Die Leitung liegt hinter den Inhalten */
.leitung { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.leitung path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.leitung .spur { stroke: var(--rule); stroke-width: 1.3; stroke-dasharray: 2 7; }
.leitung .ader { stroke-width: 2.1; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.leitung .ader2 { stroke-width: 1.2; opacity: .35; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.leitung .hof { opacity: .16; }
.leitung .mast circle { fill: var(--bg, #FBF6E3); stroke: var(--rule); stroke-width: 1.5; transition: fill .6s ease, stroke .6s ease; }
.leitung .mast { color: var(--ink-muted); transition: color .6s ease; }
.leitung .mast.an { color: var(--acc); }
.leitung .mast.an circle { fill: color-mix(in srgb, var(--acc) 12%, #FFFDF6); stroke: var(--acc); }
.leitung .mast .zz * { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s cubic-bezier(.6,0,.3,1); }
.leitung .mast .zz .s { fill: currentColor; stroke: none; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .55s cubic-bezier(.3,1.7,.5,1) .9s; }
.leitung .mast.an .zz * { stroke-dashoffset: 0; }
.leitung .mast.an .zz .s { transform: scale(1); }

/* Bereichsbilder: breit, gezeichnet, dann das Bild */
.banner { aspect-ratio: 3 / 1; }
.banner svg.zg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.banner .zg .foto { opacity: 0; transition: opacity 1.1s ease; }
.banner .zg .st { fill: none; stroke: var(--acc); stroke-width: 1.3; stroke-linejoin: round; transition: opacity 1.4s ease .2s; }
.banner .zg .st path { stroke-dasharray: 1 1; }
.banner .zg.lehre .st { stroke-width: 5; stroke-linecap: round; }
.banner .zg .sonne { transform-box: fill-box; transform-origin: center; }
.banner.fertig .zg .foto { opacity: 1; }
.banner.fertig .zg:not(.lehre) .st { opacity: .08; }
.banner .leben { opacity: 0; transition: opacity 2s ease; }
.banner.lebt .leben { opacity: 1; }
.banner .leben .hof { fill: var(--acc); opacity: 0; transform-box: fill-box; transform-origin: center; }
.banner.lebt .leben .hof { animation: hofring 8s ease-out infinite; }
.banner.lebt .leben .h2 { animation-delay: 4s; }
@keyframes hofring { 0% { transform: scale(1); opacity: .2; } 100% { transform: scale(1.8); opacity: 0; } }
.banner .leben .strahlen { fill: none; stroke: var(--acc); stroke-width: 2.4; stroke-dasharray: 3 11; opacity: .45; transform-box: fill-box; transform-origin: center; }
.banner.lebt .leben .strahlen { animation: kreisen 90s linear infinite; }
@keyframes kreisen { to { transform: rotate(360deg); } }

/* Handy: Überschrift unter das Bild, damit es nicht verdeckt wird */
@media (max-width: 640px) {
  .banner { aspect-ratio: auto; min-height: 0; display: flex; flex-direction: column; }
  .banner svg.zg { position: relative; inset: auto; height: auto; aspect-ratio: 2.2 / 1; flex: none; }
  .banner figcaption { position: static; border-radius: 0; border-right: 0; border-top: 1px solid var(--rule-soft); background: var(--bg-paper); padding: .55rem 1rem .6rem; }
}


@media (prefers-reduced-motion: reduce) { .banner *, .leitung * { animation: none !important; transition: none !important; } }

/* Karten passen sich am Handy der schmaleren Spalte an */
.karten { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.karten.zwei { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.banner { max-width: 100%; }
