/* VISARO – Bausteine der Unterseiten (Leistungen, Projekte, Über uns, Kontakt). Farben und Schriften kommen aus stil.css. */

.haupt a[aria-current] { background-size: 100% 1px; }
.mittel { font-family: var(--titel); font-weight: 400; font-size: clamp(1.7rem, 4vw, 3.4rem); line-height: 1.06; letter-spacing: -.04em; text-transform: uppercase; text-wrap: balance; }
ol { margin: 0; padding: 0; list-style: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: .55em .95em; border-radius: 999px; background: rgba(26, 15, 43, .06); font: 500 .74rem/1.2 var(--text); letter-spacing: .04em; }

/* Seitenkopf: heller Grund, zweifarbige Überschrift, das Foto ganz und in seinem eigenen Format (nie beschnitten) */
.seitenkopf { position: relative; overflow-x: clip; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: clamp(28px, 4vw, 64px); padding: calc(var(--kopf) + clamp(28px, 4vw, 56px)) var(--rand) clamp(36px, 5vw, 72px); background: var(--weiss); }
.seitenkopf-text { display: grid; gap: 22px; justify-items: start; align-content: center; }
.seitenkopf h1 { font-size: clamp(2.3rem, 9.4vw, 4.4rem); line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; overflow-wrap: anywhere; }
/* Das kleine Etikett steht in der Hauptüberschrift (für Suchmaschinen zählt es so zum Thema der Seite), sieht aber aus wie bisher */
.seitenkopf h1 .klein { display: block; margin-bottom: 22px; overflow-wrap: normal; text-wrap: wrap; }
.seitenkopf .lauf { max-width: 48ch; }
.seitenkopf .hero-knoepfe { margin-top: 6px; }
.seitenkopf .knopf-akzent { background: var(--tinte); color: var(--weiss); }
.seitenkopf-bild { overflow: hidden; border-radius: var(--rund); box-shadow: 0 34px 60px -34px rgba(26, 15, 43, .45); }
.seitenkopf-bild img { width: 100%; }
/* Bühne: hinter dem Foto ein weicher violetter Schein (nie über dem Foto), an der Ecke eine Karte zum Anrufen */
.seitenkopf-buehne { position: relative; isolation: isolate; margin-bottom: 26px; }
.seitenkopf-buehne::before { content: ""; position: absolute; z-index: -1; inset: 6% -9% -13% 26%; border-radius: 50%; background: radial-gradient(closest-side, rgba(162, 89, 255, .62), rgba(162, 89, 255, 0)); filter: blur(34px); pointer-events: none; }
.ruf { position: absolute; left: 14px; bottom: -26px; display: grid; gap: 5px; padding: 15px 20px 16px; border-radius: 16px; background: #fff; color: var(--tinte); text-decoration: none; box-shadow: 0 20px 40px -20px rgba(26, 15, 43, .5); transition: transform .5s var(--aus), box-shadow .5s; }
.ruf strong { font: 400 1.4rem/1 var(--titel); letter-spacing: -.02em; }
/* Die Nummer steht schon auf der Karte am Foto */
.seitenkopf:not(.ohne-bild) .hero-knoepfe .textlink { display: none; }
/* Kopf und erster Abschnitt sind beide hell: dazwischen keine doppelte Luft */
.seitenkopf + .abschnitt { padding-top: clamp(36px, 4.5vw, 72px); }
@media (hover: hover) {
	.seitenkopf .knopf-akzent:hover { background: var(--lila); color: var(--nacht); }
	.ruf:hover { transform: translateY(-4px); box-shadow: 0 26px 46px -20px rgba(26, 15, 43, .55); }
}
@media (min-width: 900px) {
	/* queres Foto bekommt die breitere Spalte, hohes die schmalere: so passt beides ganz ins erste Bild */
	[data-bildart="quer"] .seitenkopf { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
	[data-bildart="hoch"] .seitenkopf { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
	[data-bildart="quer"] .seitenkopf h1 { font-size: clamp(3rem, 4.9vw, 5.6rem); }
	[data-bildart="quer"] .seitenkopf h1.eng { font-size: clamp(2.3rem, 3.5vw, 4rem); }
	[data-bildart="hoch"] .seitenkopf h1 { font-size: clamp(3.2rem, 5.4vw, 6rem); }
	.seitenkopf.ohne-bild h1 { font-size: clamp(3.8rem, 8vw, 8.6rem); max-width: 15ch; }
	.seitenkopf.kurz h1 { font-size: clamp(3rem, 5vw, 5.4rem); max-width: none; }
	.kataloge { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	/* Breite aus Höhe und Seitenverhältnis (--verh vom Bauschritt): der Platz steht fest, bevor das Bild geladen ist */
	[data-bildart="hoch"] .seitenkopf-buehne { justify-self: end; width: min(100%, calc(min(76svh, 720px) * var(--verh, .8))); }
	.seitenkopf-buehne { margin-bottom: 0; }
	.ruf { left: -26px; bottom: 30px; }
}

/* Abschnitt mit kleinem Etikett, Überschrift und Inhalt */
.abschnitt { display: grid; gap: clamp(28px, 4vw, 56px); }
.abschnitt + .abschnitt { border-top: 1px solid var(--linie); }
.abschnitt-kopf { display: grid; gap: 16px; align-content: start; max-width: 60rem; }
.abschnitt.dunkel { background: var(--dunst); color: #fff; border-top: 0; }
.abschnitt.dunkel .lauf, .abschnitt.dunkel .klein { color: rgba(255, 255, 255, .72); }
.abschnitt.dunkel + .abschnitt { border-top: 0; }

/* Teilleistungen: zwei Spalten, jede mit Nummer, Titel, Text und Stichworten */
.teile { display: grid; gap: 0 clamp(32px, 5vw, 80px); }
.teil { display: grid; grid-template-columns: 2.6rem 1fr; gap: 6px 10px; align-content: start; padding: clamp(20px, 2.6vw, 32px) 0; border-top: 1px solid var(--linie); scroll-margin-top: calc(var(--kopf) + 16px); }
.teil-nr { padding-top: .5em; font: 500 .74rem/1 var(--text); letter-spacing: .08em; color: var(--ton); }
.teil h3 { margin: 0; font: 400 clamp(1.35rem, 2.2vw, 1.9rem)/1.1 var(--titel); letter-spacing: -.03em; }
.teil > :not(.teil-nr):not(h3) { grid-column: 2; }
.teil p { color: var(--grau); }
.teil .chips { margin-top: 8px; }
.teil .textlink { justify-self: start; margin-top: 4px; }
@media (min-width: 900px) { .teile { grid-template-columns: 1fr 1fr; } }

/* Ablauf: nummerierte Schritte nebeneinander */
.schritte { display: grid; gap: 0; counter-reset: schritt; }
.schritte li { counter-increment: schritt; display: grid; gap: 8px; align-content: start; padding: 22px 0; border-top: 1px solid var(--linie); }
.schritte li::before { content: "0" counter(schritt); font: 400 2.4rem/1 var(--titel); letter-spacing: -.04em; color: var(--ton); }
.schritte h3 { margin: 0; font: 500 1.1rem/1.25 var(--text); }
.schritte p { color: var(--grau); font-size: .98rem; }
.dunkel .schritte li { border-color: rgba(255, 255, 255, .16); }
.dunkel .schritte li::before { color: var(--akzent); }
.dunkel .schritte p { color: rgba(255, 255, 255, .72); }
@media (min-width: 900px) {
	.schritte { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 28px; }
	.schritte li { padding-top: 26px; }
}

/* Bilderband: echte Fotos zum Durchwischen */
.band-fotos > * { width: 78vw; max-width: 460px; }
.band-fotos .tauch { aspect-ratio: 4 / 3; }
.band-fotos figcaption { margin-top: 10px; font-size: .9rem; color: var(--grau); }
.abschnitt .band-pfeile { margin-top: 0; }

/* Häufige Fragen */
.fragen { border-top: 1px solid var(--tinte); max-width: 60rem; }
.fragen details { border-bottom: 1px solid var(--linie); }
.fragen summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; cursor: pointer; list-style: none; font: 500 clamp(1.05rem, 1.5vw, 1.25rem)/1.3 var(--text); }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--tinte); font: 400 1.3rem/1 var(--text); transition: transform .4s var(--aus), background .3s; }
.fragen details[open] summary::after { transform: rotate(45deg); background: var(--tinte); color: var(--weiss); }
.fragen details > :not(summary) { max-width: 52rem; padding-bottom: 22px; color: var(--grau); }

/* Leistungen im Überblick: je Zeile Bild und Inhalt */
.zeilen { display: grid; }
.zeile-l { display: grid; gap: 22px; padding: clamp(28px, 4vw, 56px) 0; border-top: 1px solid var(--linie); text-decoration: none; }
.zeile-l .tauch { aspect-ratio: 4 / 3; }
.zeile-l-text { display: grid; gap: 16px; justify-items: start; align-content: center; }
.zeile-l .lauf { max-width: 44ch; }
@media (min-width: 900px) {
	.zeile-l { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); }
	.zeile-l:nth-child(even) .tauch { order: 2; }
}

/* Über uns: Zeitleiste und Team */
.zeit { display: grid; gap: 0; }
.zeit li { display: grid; gap: 8px; align-content: start; padding: 22px 0; border-top: 1px solid var(--linie); }
.zeit strong { font: 400 clamp(2.4rem, 5vw, 4.4rem)/1 var(--titel); letter-spacing: -.04em; }
.zeit p { color: var(--grau); max-width: 30ch; }
@media (min-width: 900px) { .zeit { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 28px; } }
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
.team .tauch { aspect-ratio: 4 / 5; margin-bottom: 12px; }
.team h3 { margin: 0; font: 500 1.1rem/1.25 var(--text); }
.team .klein { margin: 4px 0 8px; letter-spacing: .08em; hyphens: auto; overflow-wrap: break-word; }
.team p { font-size: .95rem; color: var(--grau); }
.team a { font-size: .95rem; overflow-wrap: anywhere; }
@media (min-width: 900px) { .team { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 1.8vw, 28px); } }

/* Projekte: Filter und Raster */
.filter { display: flex; flex-wrap: wrap; gap: 8px; }
.filter button { padding: .7em 1.1em; border: 0; border-radius: 999px; background: none; box-shadow: inset 0 0 0 1px var(--linie); font: 500 .76rem/1 var(--text); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: background .3s, color .3s; }
.filter button[aria-pressed="true"] { background: var(--tinte); color: var(--weiss); box-shadow: none; }
.raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
.raster [hidden] { display: none; }
@media (min-width: 900px) { .raster { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) clamp(16px, 1.8vw, 28px); } }

/* Shops: je Shop eine Kachel mit Wappen oder Logo auf eigenem Grund (--grund), die Auswahl steht schon im ersten Bild */
.seitenkopf.kurz { padding-bottom: 0; }
.shop-flaeche { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: 12px; border-radius: var(--rund); background: var(--grund, #fff); transition: box-shadow .5s; }
.shop-flaeche img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 15% 19%; object-fit: contain; transition: transform .8s var(--aus); }
/* Kataloge: das Deckblatt steht ganz auf der Kachel, hoch oder quer */
.katalog { aspect-ratio: 4 / 5; }
.katalog img { padding: 9%; }
.shop-neu { background: none; box-shadow: inset 0 0 0 1px rgba(26, 15, 43, .28); font: 300 clamp(2.6rem, 5vw, 4.4rem)/1 var(--titel); color: var(--ton); }
@media (hover: hover) {
	a:hover > .shop-flaeche img { transform: scale(1.06); }
	a:hover > .shop-flaeche { box-shadow: 0 30px 50px -30px rgba(26, 15, 43, .5); }
	a:hover > .shop-neu { box-shadow: inset 0 0 0 2px var(--tinte); color: var(--tinte); }
}

/* Kontakt: Wege links, Anfrage rechts */
.wege { display: grid; gap: 0; align-content: start; }
.weg { display: grid; gap: 4px; padding: 20px 0; border-top: 1px solid var(--linie); }
.weg a, .weg strong { font: 400 clamp(1.3rem, 2.2vw, 1.9rem)/1.15 var(--titel); letter-spacing: -.03em; text-decoration: none; overflow-wrap: anywhere; }
.weg a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.weg p { color: var(--grau); font-size: .95rem; }
.weg .textlink { font: 500 .8rem/1 var(--text); letter-spacing: .07em; }
.kontakt-raster { display: grid; gap: clamp(36px, 5vw, 88px); }

/* Direkt-Karte: Rückruf in einem Klick und die schnellen Wege, als dunkle Karte neben dem hellen Formular */
.direkt { display: grid; gap: 18px; align-content: start; scroll-margin-top: calc(var(--kopf) + 16px); }
.direkt-karte { display: grid; gap: 16px; padding: clamp(22px, 3vw, 40px); border-radius: 24px; background: var(--dunst); color: #fff; }
.direkt-karte .klein, .direkt-karte .ton { color: rgba(255, 255, 255, .62); }
.direkt-karte .lauf { color: rgba(255, 255, 255, .84); }
.direkt-klein { font-size: .82rem; color: rgba(255, 255, 255, .6); }
.direkt-wege { display: grid; margin-top: 4px; border-top: 1px solid rgba(255, 255, 255, .16); }
.direkt-wege a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); text-decoration: none; }
.direkt-wege a:last-child { border-bottom: 0; padding-bottom: 0; }
.direkt-wege strong { font: 400 clamp(1.1rem, 1.6vw, 1.45rem)/1.1 var(--titel); letter-spacing: -.02em; text-align: right; overflow-wrap: anywhere; }
.direkt-info { display: grid; gap: 18px; }
.direkt-info > div { display: grid; gap: 6px; align-content: start; justify-items: start; padding: clamp(18px, 2vw, 26px); border-radius: var(--rund); background: #fff; font-size: .95rem; }
.direkt-info p { color: var(--grau); }
.direkt-info strong { font-weight: 500; color: var(--tinte); }
.direkt-info a:not(.textlink) { color: var(--tinte); text-decoration: none; font-weight: 500; }
@media (min-width: 560px) { .direkt-info { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (hover: hover) { .direkt-wege a:hover strong, .direkt-info a:not(.textlink):hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; } }

/* Rückruf: ein Feld, ein Knopf (steht auf dunklem Grund: Direkt-Karte und Schluss-Abschnitt) */
.rueckruf { display: grid; gap: 10px; width: 100%; max-width: 480px; }
.rueckruf-feld { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); transition: box-shadow .3s; }
.rueckruf-feld:focus-within { box-shadow: inset 0 0 0 2px var(--akzent); }
.rueckruf-feld input { flex: 1; min-width: 0; padding: .7em 1em; border: 0; border-radius: 999px; background: none; color: #fff; font: 400 1rem/1.3 var(--text); }
.rueckruf-feld input::placeholder { color: rgba(255, 255, 255, .62); }
.rueckruf-feld input:focus-visible { outline: none; }
.rueckruf-feld .knopf { flex: none; border: 0; cursor: pointer; }
.rueckruf-feld .knopf:not(.knopf-akzent) { background: #fff; color: var(--nacht); }
.rueckruf-feld .knopf:disabled { opacity: .5; cursor: progress; }
.rueckruf-hinweis { padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .14); font-size: .92rem; }
.rueckruf-hinweis.gut { background: var(--akzent); color: var(--akzent-text); font-weight: 500; }
@media (max-width: 480px) {
	.rueckruf-feld { flex-direction: column; border-radius: 22px; }
	.rueckruf-feld .knopf { justify-content: center; }
}

/* Geführte Anfrage: das Skript zeigt immer nur einen Schritt. Ohne Skript stehen alle Schritte untereinander. */
.schritt { display: grid; gap: 18px; }
.gefuehrt .schritt:not(.aktiv) { display: none; }
.schritt-kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.schritt-balken { display: flex; gap: 6px; }
.schritt-balken i { width: 34px; height: 4px; border-radius: 2px; background: rgba(26, 15, 43, .14); transition: background .4s; }
.schritt-balken i.an { background: var(--lila); }
.schritt-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.schritt-nav .textlink { border: 0; cursor: pointer; }
.schritt-nav [hidden] { display: none; }
.anfrage { display: grid; gap: 18px; padding: clamp(22px, 3vw, 40px); border-radius: 24px; background: #fff; scroll-margin-top: calc(var(--kopf) + 16px); }
.anfrage label, .anfrage fieldset { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; font-size: .92rem; font-weight: 500; }
.anfrage legend { padding: 0; margin-bottom: 8px; font-size: .92rem; font-weight: 500; }
.anfrage input, .anfrage textarea { width: 100%; padding: .9em 1em; border: 1px solid rgba(26, 15, 43, .28); border-radius: 12px; background: #fff; color: var(--tinte); font: 400 1rem/1.4 var(--text); }
.anfrage input:focus-visible, .anfrage textarea:focus-visible { outline: 2px solid var(--lila); outline-offset: 1px; border-color: transparent; }
.anfrage textarea { min-height: 8.5rem; resize: vertical; }
.anfrage small { font-weight: 400; color: var(--grau); }
.wahl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wahl-chips label { display: block; position: relative; font-weight: 500; }
.wahl-chips input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.wahl-chips span { display: block; padding: .7em 1.05em; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(26, 15, 43, .28); font-size: .84rem; transition: background .25s, color .25s; }
.wahl-chips input:checked + span { background: var(--tinte); color: var(--weiss); box-shadow: none; }
.wahl-chips input:focus-visible + span { outline: 2px solid var(--lila); outline-offset: 2px; }
.anfrage .knopf { justify-self: start; border: 0; cursor: pointer; }
.nicht-ausfuellen { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.anfrage input[type="file"] { padding: .7em; border-style: dashed; font-size: .92rem; }
.anfrage-hinweis.gut { background: var(--akzent); color: var(--akzent-text); font-weight: 500; }
.anfrage button:disabled { opacity: .5; cursor: progress; }
.anfrage-hinweis { padding: 14px 16px; border-radius: 12px; background: rgba(162, 89, 255, .12); font-size: .95rem; }
.zwei { display: grid; gap: 18px; }
@media (min-width: 900px) {
	.kontakt-raster { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
	.zwei { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
	.js .seitenkopf-text > *, .js .seitenkopf-bild { opacity: 0; transform: translateY(18px); }
	.js.bereit .seitenkopf-text > *, .js.bereit .seitenkopf-bild { opacity: 1; transform: none; transition: opacity .9s var(--aus) .1s, transform .9s var(--aus) .1s; }
	.js.bereit .seitenkopf-text > :nth-child(2) { transition-delay: .18s; }
	.js.bereit .seitenkopf-text > :nth-child(3) { transition-delay: .26s; }
	.js.bereit .seitenkopf-text > :nth-child(4), .js.bereit .seitenkopf-bild { transition-delay: .34s; }
	.js .seitenkopf-buehne::before { opacity: 0; }
	.js.bereit .seitenkopf-buehne::before { opacity: 1; transition: opacity 1.6s ease .5s; }
	.js .ruf { opacity: 0; translate: 0 14px; }
	.js.bereit .ruf { opacity: 1; translate: none; transition: opacity .8s var(--aus) .75s, translate .8s var(--aus) .75s, transform .5s var(--aus), box-shadow .5s; }
}

/* Ergänzungen: lange Stichworte als Zeilen, Zeitleiste mit Titel, Standort mit Foto, Pfad im Seitenkopf */
.punkte { display: grid; gap: 8px; margin-top: 6px; }
.punkte li { padding-left: 1.1em; background: linear-gradient(var(--lila), var(--lila)) 0 .68em / .5em 1px no-repeat; color: var(--grau); }
.abschnitt-kopf .chips, .abschnitt-kopf .punkte { margin-top: 6px; }
.abschnitt.dunkel .chips li { background: rgba(255, 255, 255, .1); }
.zeit h3 { margin: 0; font: 500 1.1rem/1.25 var(--text); }
.seitenkopf .klein a { text-decoration: none; color: inherit; }
.seitenkopf .klein a:hover { color: var(--tinte); }
.standort > .tauch { aspect-ratio: 16 / 10; }
.standort .knopf { margin-top: 8px; }
@media (min-width: 900px) { .standort { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; gap: clamp(32px, 5vw, 88px); } }

/* Abschnitt am Desktop zweispaltig: links Etikett und Überschrift, rechts Text, Fragen oder Verweise. Alles andere läuft über die volle Breite. */
.abschnitt-text { display: grid; gap: 14px; align-content: start; justify-items: start; }
@media (min-width: 900px) {
	.abschnitt { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 5vw, 88px); }
	.abschnitt > * { grid-column: 1 / -1; }
	.abschnitt > .abschnitt-kopf { grid-column: 1; }
	.abschnitt > .abschnitt-text, .abschnitt > .fragen, .abschnitt > .schmal { grid-column: 2; }
	.abschnitt > .schmal { grid-template-columns: 1fr; }
	.standort > * { grid-column: auto; }
	.standort-text { display: grid; gap: clamp(20px, 2.4vw, 32px); }
}

/* Inhalte aus WordPress (Rechtstexte, Widerruf, Cookie-Richtlinie, Suche): schlichter Lesetext im neuen Rahmen */
.abschnitt.prosa { display: block; overflow-wrap: break-word; }
.prosa > * { max-width: 46rem; }
.prosa h2 { margin: 2.2em 0 .6em; font: 400 clamp(1.4rem, 2.4vw, 2rem)/1.15 var(--titel); letter-spacing: -.03em; text-transform: uppercase; }
.prosa h2:first-child { margin-top: 0; }
.prosa h3 { margin: 1.8em 0 .5em; font: 500 1.1rem/1.3 var(--text); }
.prosa p, .prosa li, .prosa td { color: var(--grau); }
.prosa p { margin: 0 0 1em; }
.prosa ul, .prosa ol { margin: 0 0 1em; padding-left: 1.2em; list-style: revert; }
.prosa a { text-underline-offset: .18em; overflow-wrap: anywhere; }
.prosa table { width: 100%; border-collapse: collapse; margin-bottom: 1em; }
.prosa th, .prosa td { padding: .6em .8em .6em 0; border-bottom: 1px solid var(--linie); text-align: left; vertical-align: top; }
.prosa form { display: grid; gap: 4px; margin-top: 1.4em; padding: clamp(22px, 3vw, 40px); border-radius: 24px; background: #fff; }
.prosa label { display: grid; gap: 8px; font-size: .92rem; font-weight: 500; color: var(--tinte); }
.prosa label br { display: none; }
.prosa input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]), .prosa textarea, .prosa select { width: 100%; padding: .9em 1em; border: 1px solid rgba(26, 15, 43, .28); border-radius: 12px; background: #fff; color: var(--tinte); font: 400 1rem/1.4 var(--text); }
.prosa button, .prosa input[type="submit"] { justify-self: start; padding: 1.1em 1.6em; border: 0; border-radius: 999px; background: var(--tinte); color: var(--weiss); font: 500 .8rem/1 var(--text); letter-spacing: .07em; text-transform: uppercase; cursor: pointer; }
.prosa .vis-hp, .prosa .screen-reader-text { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (hover: hover) { .prosa button:hover, .prosa input[type="submit"]:hover { background: var(--lila); color: var(--nacht); } }

/* Angemeldet in WordPress: die schwarze Leiste oben verdeckt sonst den Kopf */
.admin-bar .kopf { top: 32px; }
@media (max-width: 782px) { .admin-bar .kopf { top: 46px; } }

/* Textilcreator (textilcreator.html). Gemalt wird in main.js, hier stehen Anordnung und Aussehen.
   Übersicht: Start-Karte (Logo hochladen) und alle Produkte als Kacheln. Editor: Fenster mit der Bühne (am Handy oben, am Desktop links)
   und dem Werkzeug daneben. Ohne Skript bleiben die Produktbilder und das Formular. */
.creator { position: relative; isolation: isolate; display: grid; gap: clamp(16px, 2.2vw, 28px); padding-block: clamp(26px, 4vw, 56px) clamp(56px, 8vw, 110px); }
.creator canvas, .creator-bild img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.creator [hidden], .creator-editor [hidden], html:not(.js) .creator-start, html:not(.js) .creator-mehr { display: none; }
.creator-start { position: relative; display: grid; gap: 10px; justify-items: start; padding: clamp(16px, 2.2vw, 26px); border-radius: 24px; background: linear-gradient(165deg, #fff 35%, #E6E1F3); }
.creator-start::before { content: ""; position: absolute; z-index: -1; inset: 0 -3% -40% 40%; border-radius: 50%; background: radial-gradient(closest-side, rgba(162, 89, 255, .42), rgba(162, 89, 255, 0)); filter: blur(34px); pointer-events: none; }
.creator-laden { position: relative; cursor: pointer; }
.creator-laden input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 0; cursor: pointer; }
.creator-laden:focus-within { outline: 2px solid var(--lila); outline-offset: 3px; }
.creator-hinweis { max-width: 54ch; font-size: .86rem; line-height: 1.45; color: var(--grau); }
.creator-fehler { padding: 12px 14px; border-radius: 12px; background: rgba(162, 89, 255, .14); font-size: .92rem; }
.creator-frei { display: flex; align-items: center; gap: 8px; font-size: .9rem; cursor: pointer; }
.creator-frei input { width: 18px; height: 18px; accent-color: var(--lila); }
.creator-produkte { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
.creator-produkte li { display: grid; gap: 12px; justify-items: center; align-content: start; min-width: 0; }
.creator-produkte li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.creator-produkte li:last-child:nth-child(odd) :is(canvas, img) { aspect-ratio: 2; }
.creator-produkt { display: grid; gap: 4px; justify-items: center; width: 100%; padding: 8px 8px 14px; border: 0; border-radius: var(--rund); background: #fff; color: inherit; font: 500 .98rem/1.2 var(--text); cursor: pointer; box-shadow: inset 0 0 0 1px var(--linie); transition: box-shadow .4s, transform .5s var(--aus); }
.creator-bild { display: block; width: 100%; }
.creator-art { font: 400 .78rem/1.3 var(--text); color: var(--grau); text-align: center; text-wrap: balance; }
.creator-mehr { margin-top: 4px; display: inline-flex; align-items: center; gap: .5em; font: 500 .68rem/1 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--grau); transition: color .3s; }
.creator-farben { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.creator-farben > * { position: relative; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: var(--f); box-shadow: inset 0 0 0 1px rgba(26, 15, 43, .3); cursor: pointer; }
.creator-farben > *::after { content: ""; position: absolute; inset: -8px -5px; }
.creator-farben > :is([aria-current="true"], [aria-pressed="true"]) { outline: 2px solid var(--tinte); outline-offset: 2px; }
/* Echte Artikel haben viele Farben: In der Übersicht stehen nur die gängigen, „Alle … Farben“ öffnet den Editor */
.creator-produkte [data-viele] .creator-farben > :not([data-oft]):not([aria-current="true"]) { display: none; }
.creator-alle { margin-top: -4px; padding: .3em .2em; border: 0; background: none; color: var(--grau); font: 500 .72rem/1.2 var(--text); letter-spacing: .04em; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; cursor: pointer; }
.creator-mit { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 16px; padding: 12px; border-radius: var(--rund); background: #fff; }
.creator-mit[hidden], .anfrage label[hidden] { display: none; }
.creator-mit img { border-radius: 12px; background: var(--weiss); }
.creator-mit figcaption { display: grid; gap: 4px; font-size: .92rem; color: var(--grau); }
.creator-mit strong { font-weight: 500; color: var(--tinte); }

/* Editor */
.creator-editor { width: 100vw; height: 100dvh; margin: 0; overflow: hidden; }
.creator-editor[open] { display: grid; grid-template: auto auto minmax(0, 1fr) auto / minmax(0, 1fr); }
.editor-kopf { position: relative; display: grid; gap: 3px; padding: 14px 72px 12px var(--rand); }
.editor-kopf h2 { font: 400 1.5rem/1.1 var(--titel); letter-spacing: -.03em; text-transform: uppercase; }
.editor-kopf .zu { top: 9px; right: 12px; }
.editor-buehne { display: grid; place-items: center; padding: 4px var(--rand) 12px; background: linear-gradient(165deg, #fff 35%, #E6E1F3); }
.editor-flaeche { position: relative; width: min(100%, 42svh * var(--verh, 1)); aspect-ratio: var(--verh, 1); touch-action: none; -webkit-user-select: none; user-select: none; cursor: grab; }
.editor-flaeche:focus-visible { outline-offset: 2px; }
.editor-flaeche canvas { width: 100%; height: 100%; aspect-ratio: auto; filter: drop-shadow(0 18px 18px rgba(26, 15, 43, .2)); }
.editor-rahmen { position: absolute; border-radius: 3px; outline: 1.5px dashed var(--lila); outline-offset: 5px; pointer-events: none; }
.editor-griff { position: absolute; right: -21px; bottom: -21px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--lila), 0 4px 10px rgba(26, 15, 43, .3); pointer-events: auto; cursor: nwse-resize; }
.editor-griff::after, .editor-dreh::after { content: ""; position: absolute; inset: -14px; }
.editor-dreh { position: absolute; left: 50%; top: -38px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--lila), 0 4px 10px rgba(26, 15, 43, .3); pointer-events: auto; cursor: grab; }
.editor-dreh::before { content: ""; position: absolute; left: 50%; top: 100%; width: 1.5px; height: 11px; margin: 2px 0 0 -.75px; background: var(--lila); }
.editor-linie { position: absolute; top: 2%; bottom: 2%; width: 1px; margin-left: -.5px; background: var(--lila); pointer-events: none; }
.editor-tafel { display: grid; gap: 18px; align-content: start; padding: 16px var(--rand) 22px; overflow-y: auto; overscroll-behavior: contain; }
.editor-zeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 16px; } /* keine min-height: Die Zeile muss mit ihrem Umbruch wachsen, sonst hält das Raster sie auf einer Zeile fest */
.editor-farben { justify-content: flex-start; gap: 12px; }
.editor-farben.viele:not(.alle) > :not([data-oft]):not([aria-pressed="true"]) { display: none; }
.editor-farbname { margin-left: .5em; letter-spacing: .02em; text-transform: none; color: var(--tinte); }
.editor-mehrfarben { justify-self: start; padding: .3em 0; border: 0; cursor: pointer; }
.editor-farben > * { width: 26px; height: 26px; }
.editor-block, .editor-wahl, .editor-eingabe, .editor-groesse { display: grid; gap: 10px; }
.editor-wahl { gap: 18px; padding-top: 18px; border-top: 1px solid var(--linie); }
.editor-reihe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.editor-liste { display: contents; }
.editor-knopf { padding: .72em 1.05em; border: 0; border-radius: 999px; background: none; color: var(--tinte); box-shadow: inset 0 0 0 1px rgba(26, 15, 43, .28); font: 500 .84rem/1 var(--text); cursor: pointer; transition: background .25s, color .25s, box-shadow .25s; }
.editor-knopf[aria-pressed="true"] { background: var(--tinte); color: var(--weiss); box-shadow: none; }
.editor-plus { background: rgba(162, 89, 255, .14); box-shadow: none; }
.editor-eingabe input { width: 100%; padding: .85em 1em; border: 1px solid rgba(26, 15, 43, .28); border-radius: 12px; background: #fff; color: var(--tinte); font: 400 1rem/1.4 var(--text); }
.editor-eingabe input:focus-visible { outline: 2px solid var(--lila); outline-offset: 1px; border-color: transparent; }
.editor-toene > * { position: relative; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: var(--f); box-shadow: inset 0 0 0 1px rgba(26, 15, 43, .3); cursor: pointer; }
.editor-toene [aria-pressed="true"] { outline: 2px solid var(--tinte); outline-offset: 2px; }
.editor-eigen { overflow: hidden; background: conic-gradient(#F0443A, #F2B705, #46B85A, #33B5E5, #6E56F8, #E85BC0, #F0443A); }
.editor-eigen input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.editor-eigen:focus-within { outline: 2px solid var(--lila); outline-offset: 2px; }
.editor-groesse input { width: 100%; accent-color: var(--lila); }
.editor-drehung .klein { display: flex; justify-content: space-between; }
.editor-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding: 12px var(--rand) calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linie); background: #fff; }
.editor-fuss .textlink { display: none; border: 0; cursor: pointer; }
.creator-alle:hover { color: var(--tinte); } /* am Handy schließt das Kreuz oben, der Platz gehört dem Werkzeug */

@media (min-width: 700px) {
	.creator-start { grid-template-columns: auto 1fr; align-items: center; column-gap: 20px; }
	.creator-start > :nth-child(n + 3) { grid-column: 1 / -1; }
	.creator-produkte { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(22px, 2.4vw, 32px) clamp(10px, 1.4vw, 18px); }
	.creator-produkte li:last-child:nth-child(odd) { grid-column: auto; }
	.creator-produkte li:last-child:nth-child(odd) :is(canvas, img) { aspect-ratio: 1; }
}
@media (min-width: 900px) {
	.creator-editor { width: min(1180px, 100vw - 48px); height: min(800px, 100dvh - 48px); margin: auto; border-radius: 24px; }
	.creator-editor[open] { grid-template: auto minmax(0, 1fr) auto / minmax(0, 1fr) 420px; }
	.editor-buehne { grid-area: 1 / 1 / -1 / 2; padding: 32px; }
	.editor-flaeche { width: min(100%, (min(800px, 100dvh - 48px) - 64px) * var(--verh, 1)); }
	.editor-kopf { grid-area: 1 / 2; padding: 26px 76px 12px 28px; }
	.editor-kopf .zu { top: 20px; right: 20px; }
	.editor-tafel { grid-area: 2 / 2; padding: 14px 28px 24px; }
	.editor-fuss { grid-area: 3 / 2; padding: 16px 28px 20px; }
	.editor-fuss .textlink { display: inline-flex; }
}
@media (hover: hover) {
	.creator-produkt:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--linie), 0 26px 40px -28px rgba(26, 15, 43, .55); }
	.creator-produkt:hover .creator-mehr { color: var(--tinte); }
	.creator-produkt:hover .pfeil { transform: translateX(4px); }
	.editor-knopf:not([aria-pressed="true"]):hover { box-shadow: inset 0 0 0 2px var(--tinte); }
}
