/**
 * Faltplan-Knopfseite /qr/{kennung}/ — eigene schlanke Seite (0.25.0).
 *
 * Diese Datei steht für sich: Die Seite lädt kein Theme-Stylesheet, nur
 * ua-farben.css und diese hier. Deshalb stehen hier auch Grundwerte
 * (body, Schrift). Keine externen Schriften: Playfair Display und Source
 * Sans 3 greifen nur, wenn das Gerät sie hat — sonst Georgia bzw. die
 * Systemschrift, wie auf der Angebotsseite.
 *
 * Maße aus der Design-Fläche „Faltplan Knopfseite /qr/“ (von Alex
 * freigegeben): Kopfleiste 60, Route 64, ein eigener Knopf 72, zwei 92,
 * Listenzeilen 60, „Mehr über den Laden“ 104. Touchziele überall
 * mindestens 44 px.
 *
 * KOPF SEIT 0.26.3 (Variante B, Alex 26.09.2026): gestapelt und
 * zentriert — Logo-Kachel 140 × 140 oben, darunter Name, darunter
 * Adresse. Bis 0.26.2 stand die Kachel mit 72 × 72 links neben dem
 * Namen. Rahmen, Rundung und Weiß der Kachel sind unverändert; das Bild
 * bleibt im Seitenverhältnis (object-fit: contain), ohne Logo steht das
 * Initial größer im selben Kasten. Die eine Template-Zeile dazu ist
 * `sizes="140px"` am Logo-Bild (qr.php): Sie steuert, welche Fassung aus
 * dem srcset der Browser lädt — mit 72px käme die 150-px-Miniatur und
 * stünde in 110 px unscharf. KEINE kleinere Stufe für schmale
 * Handys: Gemessen in Chrome bei 360 × 640 mit Playfair Display endet
 * der Route-Knopf bei 414 px (kurzer Name) bzw. 513 px (vierzeiliger
 * Name) — er bleibt also auch mit Browserleisten ohne Scrollen sichtbar.
 * Werte in der README (0.26.3).
 *
 * FARBEN: die Palette über var(--ua-…). Dazu Töne OHNE Paletteneintrag,
 * hart, weil die Design-Fläche sie so vorgibt — bei der nächsten
 * Farbrunde mitziehen:
 *   #9db8c8  Hellblau hell („Aus dem Faltplan“; derselbe Ton wie UNSER im Logo)
 *   #e4dccc  Rahmen der Logo-Kachel
 *   #f1ebdf  Icon-Kachel der Liste
 *   #fbeccd  Icon-Kachel der eigenen Knöpfe (Amber hell)
 *   #8a5c08  Icon der eigenen Knöpfe (Amber dunkel, 5,0:1 auf #fbeccd)
 *   #cfe0e8  englische Zeile auf Petrol
 *   #6b6b6b  Fußzeile (4,8:1 auf Cream)
 *   #fff     Weiß
 * Die Status-Pille nimmt für „offen“ Sage-tief statt Sage: Weiß auf Sage
 * läge bei 3,98:1 und damit unter AA.
 */

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body.ua-qr {
	margin: 0;
	min-height: 100vh;
	background: var(--ua-cream);
	color: var(--ua-navy);
	font-family: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.4;
}

/* Absichtlich der nackte Element-Selektor (0-0-1): Die Seite lädt kein
   fremdes CSS, und mit `.ua-qr a` (0-1-1) überstimmte diese Regel die
   Schriftfarbe von Route und „Mehr über den Laden“ — Navy auf Navy,
   gemessen im Browser vor der Abgabe. */
a {
	color: inherit;
	text-decoration: none;
}

.ua-qr svg {
	display: block;
	flex: none;
}

/* -------------------------------------------------------------------------
   Kopfleiste
   ---------------------------------------------------------------------- */

.ua-qr__leiste {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 60px;
	padding: 0 16px;
	background: var(--ua-navy);
}

.ua-qr__marke {
	display: flex;
	align-items: center;
	min-height: 44px;
}

.ua-qr__marke img {
	display: block;
	width: auto;
	height: 30px;
}

.ua-qr__herkunft {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #9db8c8;
}

/* -------------------------------------------------------------------------
   Bahn
   ---------------------------------------------------------------------- */

.ua-qr__bahn {
	max-width: 480px;
	margin: 0 auto;
	padding: 20px 16px 8px;
}

/* Kopf: Logo-Kachel oben, Name und Adresse darunter, alles zentriert (0.26.3) */
.ua-qr__kopf {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
	text-align: center;
}

.ua-qr__logo {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 140px;
	height: 140px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e4dccc;
	border-radius: 18px;
}

/* Feste Fläche 80 % × 80 %, das Bild wird darin eingepasst (0.26.3,
   Gegenlesung B1): Ein SVG ohne width/height hat keine Eigengröße —
   mit width:auto stünde es in undefinierter Größe da. So füllt jedes
   Logo die Fläche, das Seitenverhältnis hält object-fit: contain. */
.ua-qr__logo img {
	display: block;
	width: 80%;
	height: 80%;
	object-fit: contain;
}

.ua-qr__initial {
	font-family: "Playfair Display", Georgia, serif;
	font-size: 58px; /* = 3,6em bei 16 px Grundschrift; in px wie der Kasten, damit beide zusammen skalieren */
	font-weight: 700;
	line-height: 1;
	color: var(--ua-navy);
}

.ua-qr__kopftext {
	min-width: 0;
	max-width: 100%;
}

.ua-qr__name {
	margin: 0;
	font-family: "Playfair Display", Georgia, serif;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.1;
	overflow-wrap: anywhere;
}

.ua-qr__adresse {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 5px;
	margin: 6px 0 0;
	font-size: 14px;
}

.ua-qr__adresse svg {
	margin-top: 2px;
}

/* Status-Pille */
.ua-qr__pille {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	background: var(--ua-warm);
	color: var(--ua-navy);
}

.ua-qr__punkt {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

.ua-qr__pille--offen {
	background: var(--ua-sage-tief);
	color: #fff;
}

.ua-qr__pille--zu {
	background: var(--ua-sand);
	color: var(--ua-navy);
}

.ua-qr__pille--bald {
	background: var(--ua-amber);
	color: var(--ua-navy);
}

/* -------------------------------------------------------------------------
   Knöpfe — gemeinsame Textspalte
   ---------------------------------------------------------------------- */

.ua-qr__texte {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}

.ua-qr__texte strong {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
}

.ua-qr__texte span {
	font-size: 13px;
	line-height: 1.3;
	opacity: 0.8;
	overflow-wrap: anywhere;
}

.ua-qr__chevron {
	flex: none;
	opacity: 0.5;
}

/* Route — der Hauptknopf */
.ua-qr__route {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 64px;
	margin-bottom: 10px;
	padding: 8px 14px 8px 8px;
	border-radius: 16px;
	background: var(--ua-navy);
	color: #fff;
}

.ua-qr__route-icon {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: var(--ua-navy-tief);
	color: var(--ua-amber);
}

.ua-qr__route .ua-qr__texte span {
	opacity: 0.85;
}

/* Eigene Knöpfe — hervorgehoben */
.ua-qr__eigene {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 14px;
}

.ua-qr__eigen {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
	min-height: 92px;
	padding: 12px;
	border: 1px solid #e4dccc;
	border-radius: 16px;
	background: #fff;
}

.ua-qr__eigen-icon {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: #fbeccd;
	color: #8a5c08;
}

/* Ein Knopf: volle Breite, liegend, 72 px */
.ua-qr__eigene--eins {
	grid-template-columns: 1fr;
}

.ua-qr__eigene--eins .ua-qr__eigen {
	flex-direction: row;
	align-items: center;
	min-height: 72px;
}

/* Drei bis fünf: ein ungerader letzter über die volle Breite */
.ua-qr__eigene--viele .ua-qr__eigen:last-child:nth-child(odd) {
	grid-column: 1 / -1;
	flex-direction: row;
	align-items: center;
	min-height: 72px;
}

/* -------------------------------------------------------------------------
   Weiße Liste
   ---------------------------------------------------------------------- */

.ua-qr__liste {
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
	overflow: hidden;
	border: 1px solid #e4dccc;
	border-radius: 16px;
	background: #fff;
}

.ua-qr__liste li + li {
	border-top: 1px solid var(--ua-warm);
}

.ua-qr__zeile {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 60px;
	padding: 8px 14px 8px 11px;
}

.ua-qr__zeile-icon {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: #f1ebdf;
	color: var(--ua-navy);
}

.ua-qr__zeile .ua-qr__texte strong {
	font-size: 16px;
	font-weight: 600;
}

/* -------------------------------------------------------------------------
   Mehr über den Laden — nur bei gelisteten Orten
   ---------------------------------------------------------------------- */

.ua-qr__mehr {
	display: flex;
	align-items: stretch;
	min-height: 104px;
	margin-bottom: 14px;
	overflow: hidden;
	border-radius: 18px;
	background: var(--ua-petrol);
	color: #fff;
}

.ua-qr__mehr-bild {
	flex: none;
	width: 104px;
	background: var(--ua-petrol-hell);
}

.ua-qr__mehr-bild img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ua-qr__mehr-text {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding: 12px 8px 12px 14px;
}

.ua-qr__mehr-kicker {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ua-cream);
}

.ua-qr__mehr-text strong {
	margin: 2px 0;
	font-family: "Playfair Display", Georgia, serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.15;
}

.ua-qr__mehr-text span[lang] {
	font-size: 13px;
	color: #cfe0e8;
}

.ua-qr__mehr-pfeil {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	align-self: center;
	width: 36px;
	height: 36px;
	margin-right: 14px;
	border-radius: 50%;
	background: var(--ua-amber);
	color: var(--ua-navy);
}

/* -------------------------------------------------------------------------
   Hinweisseiten (geschlossen, nicht mehr aktiv)
   ---------------------------------------------------------------------- */

.ua-qr__hinweis {
	margin: 12px 0 20px;
}

.ua-qr__hinweis .ua-qr__name {
	font-size: 26px;
}

.ua-qr__hinweis p {
	margin: 8px 0 0;
	font-size: 15px;
}

/* -------------------------------------------------------------------------
   Fuß
   ---------------------------------------------------------------------- */

.ua-qr__fuss {
	padding: 8px 16px 28px;
	font-size: 13px;
	text-align: center;
	color: #6b6b6b;
}

.ua-qr__fuss a {
	display: inline-block;
	min-height: 44px;
	padding: 13px 4px;
	text-decoration: underline;
}

/* -------------------------------------------------------------------------
   Zustände — nie :focus, immer :focus-visible (Runde 3)
   ---------------------------------------------------------------------- */

.ua-qr a:focus-visible {
	outline: 3px solid var(--ua-amber);
	outline-offset: 2px;
}

.ua-qr__route:active,
.ua-qr__eigen:active,
.ua-qr__zeile:active,
.ua-qr__mehr:active {
	opacity: 0.85;
}
