/* SBS App – App-Modus, Installationshilfe und Bereich „Unsere Apps“ auf der Startseite */

/* ---------------------------------------------------------------- App-Modus (vom Home-Bildschirm gestartet) */

html.sbs-app-standalone { margin-top: 0 !important; }

html.sbs-app-standalone #wpadminbar,
html.sbs-app-standalone .wp-site-blocks > header.wp-block-template-part,
html.sbs-app-standalone .wp-site-blocks > footer.wp-block-template-part,
html.sbs-app-standalone .wp-site-blocks main > .wp-block-group.alignfull:has(> .wp-block-post-title) {
	display: none !important;
}

html.sbs-app-standalone body {
	padding-bottom: env(safe-area-inset-bottom);
	overscroll-behavior-y: none;
	-webkit-tap-highlight-color: transparent;
}

html.sbs-app-standalone .wp-site-blocks > main,
html.sbs-app-standalone .wp-site-blocks main.wp-block-group {
	margin-top: 0 !important;
	padding-top: 12px;
}

/* ---------------------------------------------------------------- Hinweisleiste */

.sbs-app-leiste {
	position: fixed;
	left: 12px;
	right: 12px;
	bottom: calc(12px + env(safe-area-inset-bottom));
	z-index: 99998;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 10px 10px 12px;
	border-radius: 16px;
	background: #16291F;
	color: #E8EEE9;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
	font: 15px/1.35 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	transform: translateY(140%);
	transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
.sbs-app-leiste.offen { transform: none; }
.sbs-app-leiste img { border-radius: 10px; flex: none; }
.sbs-app-leiste-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sbs-app-leiste-text span { font-size: 13px; color: #B3C1B8; }
.sbs-app-leiste .sbs-app-zu { position: static; color: #B3C1B8; }

/* ---------------------------------------------------------------- Installations-Sheet */

.sbs-app-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	background: rgba(9, 14, 11, 0);
	transition: background 0.25s;
	font: 16px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.sbs-app-overlay.offen { background: rgba(9, 14, 11, 0.55); }

.sbs-app-sheet {
	position: relative;
	width: 100%;
	max-width: 460px;
	max-height: 92vh;
	overflow-y: auto;
	box-sizing: border-box;
	padding: 26px 22px calc(22px + env(safe-area-inset-bottom));
	border-radius: 22px 22px 0 0;
	background: #FBFAF6;
	color: #1F2A24;
	box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
	transform: translateY(100%);
	transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.sbs-app-overlay.offen .sbs-app-sheet { transform: none; }
@media (min-width: 600px) {
	.sbs-app-overlay { align-items: center; }
	.sbs-app-sheet { border-radius: 22px; padding-bottom: 24px; }
}

.sbs-app-zu {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #5B6A61;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.sbs-app-kopf { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding-right: 30px; }
.sbs-app-kopf img { border-radius: 15px; box-shadow: 0 4px 14px rgba(30, 58, 45, 0.25); flex: none; }
.sbs-app-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #9A7B33; }
.sbs-app-kopf h2 { margin: 2px 0 0; font: 600 24px/1.15 Georgia, 'Times New Roman', serif; color: #1E3A2D; }
.sbs-app-unter { font-size: 13px; color: #5B6A61; }

.sbs-app-schritte { counter-reset: s; list-style: none; margin: 0; padding: 0; }
.sbs-app-schritte li {
	counter-increment: s;
	position: relative;
	padding: 12px 0 12px 44px;
	border-top: 1px solid #E6ECE6;
}
.sbs-app-schritte li:first-child { border-top: 0; }
.sbs-app-schritte li::before {
	content: counter(s);
	position: absolute;
	left: 0;
	top: 10px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: #1E3A2D;
	color: #fff;
	font-weight: 700;
	font-size: 14px;
}
.sbs-app-sym { width: 20px; height: 20px; vertical-align: -4px; color: #2F5443; display: inline-block; }

.sbs-app-text { margin: 0 0 14px; color: #4B5A51; }

.sbs-app-knopf {
	display: block;
	width: 100%;
	border: 0;
	border-radius: 999px;
	padding: 14px 20px;
	background: #1E3A2D;
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.sbs-app-knopf:hover { background: #16291F; }
.sbs-app-knopf.klein { display: inline-block; width: auto; padding: 9px 16px; font-size: 14px; background: #B6DDB7; color: #16291F; flex: none; }

.sbs-app-qr { text-align: center; margin-bottom: 10px; }
.sbs-app-qr svg { width: 200px; height: 200px; border-radius: 12px; border: 1px solid #E6ECE6; }
.sbs-app-qr p { margin: 8px 0 0; font-size: 14px; color: #4B5A51; }

.sbs-app-mehr { border-top: 1px solid #E6ECE6; padding: 10px 0; }
.sbs-app-mehr summary { cursor: pointer; font-weight: 600; color: #1E3A2D; }

.sbs-app-fuss { margin: 16px 0 0; font-size: 12.5px; color: #6B7A71; text-align: center; }

/* ---------------------------------------------------------------- Startseite: „Unsere Apps“
   Der Bereich steht schon in der Startseite, bleibt aber unsichtbar, bis dieses Plugin aktiv ist. */

.sbs-apps-bereich {
	display: block !important;
	padding: 6rem 0;
	background-color: var(--wp--preset--color--secondary, #1E3A2D);
	color: #fff;
}
.sbs-apps-innen {
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin: 0 auto;
	padding: 0 var(--wp--style--root--padding-right, 1.5rem) 0 var(--wp--style--root--padding-left, 1.5rem);
}
.sbs-apps-bereich h2,
.sbs-apps-bereich h3 { color: #fff; }
.sbs-apps-bereich .section-kicker { color: #B6DDB7; }
.sbs-apps-bereich .a-lead { max-width: 46rem; color: #fff; opacity: 0.9; }

.sbs-apps-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.25rem;
	margin-top: 2rem;
}

.sbs-apps-karte {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1.5rem;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(182, 221, 183, 0.22);
}
.sbs-apps-kopf { display: flex; align-items: center; gap: 1rem; }
.sbs-apps-kopf img { width: 72px; height: 72px; border-radius: 17px; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3); flex: none; }
.sbs-apps-kopf h3 { margin: 0; font-size: 1.35rem; }
.sbs-apps-kopf p { margin: 0.15rem 0 0; font-size: 0.92rem; opacity: 0.8; }
.sbs-apps-text { margin: 0; font-size: 0.95rem; opacity: 0.9; }

.sbs-apps-knoepfe { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: auto; }
.sbs-apps-knoepfe a {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.7rem 1.1rem;
	border-radius: 12px;
	background: #0E1A13;
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: #fff !important;
	text-decoration: none !important;
	line-height: 1.15;
}
.sbs-apps-knoepfe a:hover { background: #000; border-color: rgba(182, 221, 183, 0.6); }
.sbs-apps-knoepfe svg { width: 22px; height: 22px; flex: none; }
.sbs-apps-knoepfe small { display: block; font-size: 0.68rem; opacity: 0.75; letter-spacing: 0.02em; }
.sbs-apps-knoepfe strong { font-size: 0.98rem; }

.sbs-apps-hinweis { margin-top: 1.5rem; font-size: 0.88rem; opacity: 0.75; }
