/* Eigenständige Portal-Ansicht im Stil der Homepage */
body.fp-standalone {
	--fp-ink: #1b1b1b;
	--sa-dark: #34312e;
	--sa-dark2: #24221f;
	margin: 0;
	background: #fff;
	color: #2c2c2c;
	font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
body.fp-standalone *, body.fp-standalone *::before, body.fp-standalone *::after { box-sizing: border-box; }
.fp-standalone .fp-portal {
	--fp-radius: 999px;
	--fp-heading-font: "Poppins", sans-serif;
	--fp-heading-weight: 700;
	--fp-ink: #1b1b1b;
}
.fp-sa-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Kopf */
.fp-sa-header { background: #fff; border-bottom: 1px solid rgba(0, 0, 0, .06); position: sticky; top: 0; z-index: 50; }
.admin-bar .fp-sa-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .fp-sa-header { top: 0; position: relative; } }
.fp-sa-header .fp-sa-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.fp-sa-brand { text-decoration: none; color: var(--fp-ink); display: inline-flex; align-items: center; }
.fp-sa-logo { max-height: 52px; width: auto; display: block; }
.fp-sa-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.fp-sa-nav a { color: var(--fp-ink); text-decoration: none; font-weight: 700; font-size: .95em; }
.fp-sa-nav a:hover { color: var(--fp-accent); }
.fp-sa-user { display: inline-flex; align-items: center; gap: 6px; color: rgba(0, 0, 0, .6); font-size: .9em; }
.fp-sa-nav .fp-sa-btn { background: var(--fp-accent); color: var(--fp-on-accent); padding: 10px 22px; border-radius: 999px; font-weight: 700; }
.fp-sa-nav .fp-sa-btn:hover { color: var(--fp-on-accent); filter: brightness(.93); }
@media (max-width: 600px) {
	.fp-sa-nav { gap: 14px; }
	.fp-sa-user { display: none; }
}

/* Schriftzug (wenn kein Logo hinterlegt) */
.fp-wm { display: inline-flex; flex-direction: column; line-height: 1; }
.fp-wm-name { font-weight: 800; font-size: 26px; letter-spacing: .01em; }
.fp-wm-sub { font-weight: 500; font-size: 11.5px; letter-spacing: .14em; margin-top: 3px; }
.fp-wm-bar { height: 4px; margin-top: 5px; border-radius: 2px; background: linear-gradient(90deg, #2e9e45, #9acd32, #f2d21b, #f39c12, #e8341c); }

/* Titelband */
.fp-sa-hero {
	position: relative; color: #fff; text-align: center; padding: 64px 0 72px;
	background:
		radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, .07), transparent 60%),
		linear-gradient(160deg, var(--sa-dark), var(--sa-dark2));
	overflow: hidden;
}
.fp-sa-hero::before { /* feines Raster wie auf einem Bauplan */
	content: ""; position: absolute; inset: 0; opacity: .08;
	background-image: linear-gradient(rgba(255, 255, 255, .9) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .9) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.fp-sa-hero .fp-sa-wrap { position: relative; }
.fp-sa-kicker {
	margin: 0 0 6px; font-weight: 800; font-size: clamp(22px, 4vw, 40px); line-height: 1.1;
	color: transparent; -webkit-text-stroke: 1.2px rgba(255, 255, 255, .85);
}
.fp-sa-hero h1 { margin: 0; font-weight: 800; font-size: clamp(38px, 7vw, 72px); line-height: 1.05; letter-spacing: -.01em; color: #fff; }
.fp-sa-lead { margin: 14px auto 0; max-width: 620px; color: rgba(255, 255, 255, .8); font-size: 1.05em; }
.fp-sa-line { position: absolute; left: 50%; bottom: -24px; width: 2px; height: 48px; background: var(--fp-accent); transform: translateX(-50%); }

/* Inhalt */
.fp-sa-main { padding: 48px 0 64px; background: #fff; }
.fp-sa-main .fp-portal { max-width: none; }
.fp-sa-main .fp-portal:not(.fp-wide):not(:has(.has-aside)) { max-width: 860px; }

/* In der eigenständigen Ansicht ist die Begrüßung bereits im Titelband – schlanker darstellen */
.fp-standalone .fp-welcome { background: #fff; border: 1px solid var(--fp-line); box-shadow: var(--fp-shadow); }
.fp-standalone .fp-welcome .fp-btn { display: none; }
.fp-standalone .fp-card-head { border-top-width: 5px; }
.fp-standalone .fp-btn { font-weight: 700; }

/* Fuß */
.fp-sa-footer { background: var(--fp-ink); color: rgba(255, 255, 255, .7); font-size: .9em; }
.fp-sa-footer .fp-sa-wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 26px; }
.fp-sa-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.fp-sa-footer a { color: #fff; text-decoration: none; font-weight: 600; }
.fp-sa-footer a:hover { color: var(--fp-accent); }
.fp-standalone input, .fp-standalone button, .fp-standalone select, .fp-standalone textarea { font-family: inherit; }
.fp-standalone .fp-login input[type=submit] { font-weight: 700; }
@media (max-width: 600px) {
	.fp-sa-hero { padding: 40px 0 48px; }
	.fp-sa-lead { font-size: .95em; }
	.fp-sa-main { padding: 28px 0 44px; }
	.fp-sa-wrap { padding: 0 16px; }
}

/* Abgemeldet: Anmeldekarte ragt ins Titelband */
.fp-logged-out .fp-sa-hero { padding: 54px 0 140px; }
.fp-logged-out .fp-sa-line { display: none; }
.fp-logged-out .fp-sa-main { padding-top: 0; background: var(--fp-soft, #f5f5f3); }
.fp-logged-out .fp-sa-main .fp-auth { margin-top: -100px; position: relative; z-index: 2; }
@media (max-width: 600px) { .fp-logged-out .fp-sa-hero { padding: 36px 0 110px; } .fp-logged-out .fp-sa-main .fp-auth { margin-top: -80px; } }

.fp-logged-out .fp-sa-brand { visibility: hidden; }
