/* Aushang: füllt jeden Rahmen ohne Scrollen. Farben/Schriften: Design-Karte/files/css/karte-farben.css.
   js/aushang.js verkleinert das Blatt, wenn der Text trotzdem nicht passt. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; }

.aushang {
	position: relative; width: 100%; height: 100vh; height: 100dvh; overflow: hidden;
	display: flex; align-items: center; justify-content: center;
	padding: 12px 12px 28px;
	background: var(--bg); color: var(--text);
	font-family: 'Nunito', 'Segoe UI', Arial, sans-serif;
}
.aushang__blatt {
	position: relative; z-index: 2; flex: none;
	width: min(100%, 620px); padding: clamp(14px, 4vmin, 34px) clamp(16px, 4vw, 34px);
	text-align: center; background: var(--panel); border-radius: 22px;
	box-shadow: 0 18px 48px rgba(0, 0, 0, .25);
	/* das Dorf liegt dahinter: stark weichzeichnen, damit der Text ruhig steht */
	-webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
	transform-origin: 50% 50%;
}
.aushang p, .aushang h1 { margin: 0; }
.aushang .is-leer, .aushang p:empty { display: none; }
.aushang__oben { font-size: clamp(12px, 3.2vmin, 16px); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--leise); }
.aushang .aushang__titel {
	margin: .1em 0 .25em;
	font-family: var(--titel-font); font-weight: var(--titel-weight, 700); letter-spacing: var(--titel-spacing, 0);
	font-size: calc(clamp(28px, 9vmin, 52px) * var(--titel-size, 1)); line-height: 1.12;
	color: var(--akzent); text-shadow: 0 0 22px var(--glow); overflow-wrap: break-word; hyphens: auto;
}
.aushang__text { font-size: clamp(14px, 3.8vmin, 18px); line-height: 1.5; }
.aushang .aushang__zeiten { margin-top: .8em; font-size: clamp(14px, 3.6vmin, 17px); font-weight: 700; line-height: 1.55; }
.aushang .aushang__absender { margin-top: .5em; font-family: var(--titel-font); font-size: calc(clamp(17px, 4.4vmin, 22px) * var(--titel-size, 1)); color: var(--akzent); }

/* auf /k/<code> liegt unten die feste Leiste (Teilen, Melden): Platz lassen */
body:has(.qsbk-promo) .aushang { padding-bottom: 84px; }

/* breiter, flacher Rahmen (z. B. 1440×400): Überschrift links, Text rechts */
@media (min-aspect-ratio: 2/1) and (min-width: 700px) {
	.aushang__blatt { width: min(100%, 1040px); display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: center; }
}
/* Handy: das Bild unten bekommt Platz */
@media (max-aspect-ratio: 1/1) {
	.aushang.d-dorf { padding-bottom: 14vh; }
}

.aushang__deko { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(80px, 30vh, 230px); z-index: 1; pointer-events: none; }
.aushang__deko > div, .aushang__deko svg { display: block; width: 100%; height: 100%; overflow: visible; }
.aushang__fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }

/* breites Dorf (js/dorf-breit.js): feste Höhe unten, die Fenster leuchten kräftiger */
.aushang.mit-dorf-breit { padding-bottom: clamp(40px, 12vh, 70px); }
.mit-dorf-breit .aushang__deko { height: auto; }
.mit-dorf-breit .aushang__deko svg { height: auto; max-height: none; }
.dorf-fenster { animation: dorf-fenster 6s ease-in-out infinite alternate; }
@keyframes dorf-fenster { from { opacity: .78; } to { opacity: 1; } }

.deko-fenster { animation: deko-fenster 6s ease-in-out infinite alternate; }
@keyframes deko-fenster { from { opacity: .35; } to { opacity: .75; } }
.deko-rauch { transform-box: fill-box; transform-origin: center; animation: deko-rauch 4s linear infinite; }
@keyframes deko-rauch { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 20% { opacity: .55; } 100% { opacity: 0; transform: translate(14px, -60px) scale(2.2); } }

/* Unterschrift im Rahmen (nur /k/<code>/einbetten) */
.aushang__dienst {
	position: absolute; right: 6px; bottom: 5px; z-index: 4;
	padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff;
	font: 400 11px/1.5 'Nunito', 'Segoe UI', Arial, sans-serif; text-decoration: none;
}
.aushang__dienst:hover, .aushang__dienst:focus-visible { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
	.aushang__deko * { animation: none !important; }
	.aushang__fx { display: none; }
}
