/* Shared styling for native TYPO3 elements and layout-only containers. */
.standard-columns__grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(2rem,5vw,4.5rem);align-items:start}
.standard-columns__grid--10{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}
.standard-columns__grid--20{grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr)}
.standard-column{min-width:0}
.standard-column>*+*{margin-top:14px}
.standard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.standard-grid--30{grid-template-columns:repeat(3,minmax(0,1fr))}
.standard-fact{background:var(--bg-2);border-radius:var(--r);padding:1.4rem}
.standard-fact b{display:block;font:600 clamp(1.9rem,3.6vw,2.8rem)/1 var(--display);font-stretch:105%;color:var(--red-ink);font-variant-numeric:tabular-nums}
.standard-fact__text{color:var(--fg-2)}
.standard-fact__text p{margin:0;display:inline;font-size:var(--s-1)}
.standard-image__gallery{display:grid;grid-template-columns:repeat(var(--media-columns,1),minmax(0,1fr));gap:14px}
.standard-image>.prose{margin-bottom:1rem}
.frame-type-textmedia figure.image{margin:0;border-radius:var(--r);overflow:hidden;background:var(--bg-2);box-shadow:0 20px 40px -24px rgb(0 0 0 / .35)}
.frame-type-textmedia figure.image img{display:block;max-width:100%;height:auto}
.frame-type-textmedia figure.image figcaption{padding:.7rem 1rem;font-size:var(--s-1);color:var(--fg-2);background:var(--card)}
@media(max-width:1000px){.standard-columns__grid{grid-template-columns:minmax(0,1fr)}.standard-grid--30{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Native text variant for the homepage introduction. */
.hero-copy .lead p{font:inherit;color:inherit;max-width:none;margin:0}
.hero-copy .lead p+p{margin-top:1em}
.hero-copy .hero-heading .ln{white-space:normal}
.hero-copy .rot>span{white-space:normal}
.hero-copy .hero-heading{overflow-wrap:break-word}
.intents>.intent{width:100%;text-decoration:none}
@media(prefers-reduced-motion:reduce){.hero-copy .ln>span{animation:none}.hero-copy .rot>span{transition:none}}

.hero-copy .hero-heading{font-size:var(--s4);font-weight:750;font-stretch:106%;letter-spacing:-.022em;line-height:1.02;margin-top:1.4rem;color:var(--fg)}
.hero-copy .hero-heading .ln{display:block;overflow:hidden;padding-bottom:.06em}
.hero-copy .hero-heading .ln>span{display:inline-block;animation:lineUp 1s var(--ease) both}
.hero-copy .hero-heading .ln:nth-child(2)>span{animation-delay:.12s}
.hero-copy .hero-heading .ln:nth-child(3)>span{animation-delay:.24s}
@media(prefers-reduced-motion:reduce){.hero-copy .hero-heading .ln>span{animation:none}}

/* A scene is an independent page element; no second hero top spacing. */
.stage.hero-standalone{padding-top:0;margin-top:0;border-radius:0;display:flow-root;background:var(--bg)}
:root[data-theme="dark"] .stage.hero-standalone{background:#0E0E10}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) .stage.hero-standalone{background:#0E0E10}}
.hero-intro:has(+ .hero-standalone){border-bottom-left-radius:0;border-bottom-right-radius:0}

/* Native competency links; repeated group makes the existing -50% loop seamless. */
.band-group{display:flex;flex-shrink:0;min-width:100vw}
.band-track a{color:inherit;text-decoration:none}
.band-track a:hover{text-decoration:underline;text-underline-offset:.2em}
.band-track a:focus-visible{outline:2px solid currentColor;outline-offset:5px}
.band:hover .band-track,.band:focus-within .band-track{animation-play-state:paused}
/* Keep keyboard targets visible instead of focusing an off-screen moving link. */
.band:focus-within .band-track{transform:none;animation:none;width:auto;flex-wrap:wrap}
.band:focus-within .band-group{min-width:0;flex-wrap:wrap}
.band:focus-within .band-group[aria-hidden="true"]{display:none}
@media(prefers-reduced-motion:reduce){
 .band .band-track{animation:none;transform:none;width:auto}
 .band-group{min-width:0;flex-wrap:wrap;gap:1rem 0}
 .band-group[aria-hidden="true"]{display:none}
}

.standard-three__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:stretch}
.standard-three__grid>.standard-column{display:flex;flex-direction:column;gap:14px}.standard-three__grid>.standard-column>.standard-card{flex:1}
.standard-section-heading{padding-bottom:0}.standard-section-heading h2{margin-top:1rem}.standard-section-heading+.standard-three{padding-top:2.5rem}
.standard-card{display:flex;flex-direction:column;gap:1rem}.standard-card>*{position:relative;z-index:1}.standard-card h3{margin:0}.standard-card__body:empty{display:none}.standard-card__body p{color:var(--fg-2)}.standard-card__body p+p{margin-top:1em}
.standard-card .tool{margin-top:auto;padding-top:.5rem}.standard-card .ki-tel{margin:0}.standard-card .big-tel{overflow-wrap:anywhere}
.standard-card__mail{display:flex;gap:.7rem;align-items:center;justify-content:space-between;flex-wrap:wrap;background:var(--bg-2);padding:.7rem .9rem;border-radius:var(--r-s)}.standard-card__mail a{color:var(--fg);overflow-wrap:anywhere}
.standard-card .standard-card__decoration{position:absolute;right:-30px;bottom:-40px;opacity:.06;pointer-events:none;z-index:0}.standard-card__decoration .ico{width:200px;height:200px}
@media(max-width:1000px){.standard-three__grid{grid-template-columns:minmax(0,1fr)}}

.standard-section-heading h2{font-size:var(--s3);font-weight:700}
.standard-section-heading h2::after,.standard-card h3::after{content:'.';color:var(--red-hot)}
.standard-card__mail a{text-decoration:none;font-weight:600}
.standard-card:has([data-open="stoerung"]){background:var(--night);border-color:var(--night);color:var(--night-fg)}
.standard-card:has([data-open="stoerung"]) .eyebrow,.standard-card:has([data-open="stoerung"]) .standard-card__body p{color:var(--night-fg2)}
.standard-card:has([data-open="stoerung"]) h3{color:#fff}
.standard-card:has([data-open="stoerung"]) .standard-card__mail{background:var(--night-2)}
.standard-card:has([data-open="stoerung"]) .standard-card__mail a{color:#fff}

/* Each procedure owns its steps; readable columns wrap into further rows. */
.process.process-local{grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));column-gap:1.5rem;row-gap:2.5rem}
.process.process-local::before,.process.process-local::after{display:none}
.process-local li{min-width:0;overflow-wrap:anywhere}
.process-local li::after{content:"";position:absolute;top:21px;left:22px;width:var(--process-line-width,calc(100% - 22px));height:2px;background:linear-gradient(to right,var(--red) 0 var(--process-fill,100%),var(--line) var(--process-fill,100%) 100%);pointer-events:none}
.process-local li span{white-space:pre-line}

.standard-questions--320 ul{list-style:none;margin:1.1rem 0 0;padding:0;display:grid;gap:.15rem}
.standard-questions--320 li{font:600 clamp(1.15rem,2vw,1.5rem)/1.3 var(--display);padding:.55rem 0;border-bottom:1px solid var(--line);color:var(--fg)}
.standard-questions--320 li:last-child{border-bottom:0}.standard-questions--320 li p{margin:0}
.standard-questions--330 h2{font:700 var(--s3)/1.1 var(--display);letter-spacing:-.012em;margin:0;color:var(--fg)}
.standard-questions--330 h2::after{content:'.';color:var(--red-hot)}
.standard-questions--330 .passt-ja{color:var(--fg-2)}
.standard-questions--330 .standard-questions__body{margin-top:1rem;color:var(--fg-2)}

/* Align page text with the hero; limit line length without centering the text column. */
#inhalt>.standard-text,#inhalt>.sec>.wrap.prose{width:calc(100% - 2 * clamp(8px,1.4vw,18px));max-width:var(--wrap);margin-inline:auto;padding-inline:clamp(16px,4vw,40px)}
#inhalt>.standard-text>*,#inhalt>.sec>.wrap.prose>*{max-width:44rem;min-width:0;overflow-wrap:anywhere}
#inhalt>.standard-text{margin-block:2.5rem}
#inhalt>.standard-text:first-child{margin-top:clamp(3rem,7vw,6rem)}
#inhalt>.standard-text:last-child{margin-bottom:clamp(4rem,9vw,7.5rem)}
#inhalt>.standard-text h1{font-size:var(--s3);line-height:1.15}
