/* ==========================================================================
   myPROSPECTUM (id1=20), newsletter (id1=5), text pages: about (1), contact (4),
   legal notice / terms / privacy (10, 11, 12), standalone pages (site/noscript.php,
   licenses/index.php)
   LAYOUT-1 (28.11.2026): first version (rules moved from prospectum.css).
   LAYOUT-5 (28.11.2026): rewritten for the new markup of these pages:
     forms        .account-narrow > .account-title + form.account-form (.form-field from the base,
                  .form-hint, .form-field--captcha, .form-check, .form-actions)
     messages     p.msg [.msg-error | .msg-success] (myPSP.php, newAccount.php, 05_newsletter.php);
                  the symbol is drawn here (was the PNG $GLOBALS['error'] / $GLOBALS['check'])
     account      .account-wide, dl.account-data, .account-section, .license-card (ui.php)
     downloads    .page-20-7: .dl-file, .dl-tip (myPSP.php generateDownloadLinks())
     text pages   body .page-1 / .page-4 / .page-10 / .page-11 / .page-12, .contact-grid
     standalone   body.page-standalone (noscript.php, licenses/index.php)
   The base (tokens, typography, buttons, fields, .dl, .card) is in ../prospectum.css.
   ========================================================================== */


/* ---------- Page frames ---------- */

/* page titles: like --fs-page-title, but smaller at 320 px so that long German words (Lizenznehmerkonto,
   Datenschutzerklärung) fit */
:root { --fs-account-title: clamp(1.75rem, 0.9rem + 3.4vw, 3.5rem); }

.account-narrow { max-width: 560px; }
.account-wide { max-width: 960px; }

.account-title {
	margin: 0 0 var(--space-8);
	font-size: var(--fs-account-title);
	line-height: 1.05;
	text-wrap: balance;
}
.account-title::after {             /* short gold rule, the kicker motif of the design */
	content: "";
	display: block;
	width: 40px;
	height: 1px;
	margin-top: var(--space-6);
	background: var(--c-gold);
}
/* download page: product name (<u> in the text) as the italic gold accent */
.account-title u { text-decoration: none; font-style: italic; color: var(--c-gold); }

.account-section {
	margin: var(--space-10) 0 var(--space-5);
	font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem);
	line-height: 1.15;
}

.site-main .account-intro { max-width: var(--measure); margin-bottom: var(--space-7); color: var(--c-text-2); }
.account-intro > br:last-child { display: none; }   /* text ends with <br/> */


/* ---------- Forms (login, sign-up, password reset, newsletter) ---------- */

.account-form { margin: 0; }
.account-form .form-field { margin-bottom: var(--space-6); }
.account-form :is(input[type="text"], input[type="email"], input[type="password"], select) { width: 100%; }

/* "[ forgot password? ]" below the password field (brackets are text) */
.form-hint {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	min-height: var(--tap);
	font-size: var(--fs-small);
	color: var(--c-muted);
}
.form-hint a {
	padding: 0 2px;
	color: var(--c-gold);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-decoration-color: var(--c-gold-soft);
	text-underline-offset: 3px;
}
.form-hint a:hover { color: var(--c-gold-hover); text-decoration-color: currentColor; }

/* spam protection: as wide as the fields */
.form-field--captcha altcha-widget.psp-altcha { --altcha-max-width: 100%; margin: 0; }

/* checkbox with label on the right (sign-up: terms) */
.form-check {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0 0 var(--space-6);
}
.site-main .form-check input[type="checkbox"] { flex: none; margin: 3px 0 0; }
.form-check label { min-height: var(--tap); font-size: 15px; line-height: 1.6; cursor: pointer; }

.form-actions { margin-top: var(--space-7); }
.site-main .form-actions input[type="submit"] { min-width: 220px; }
@media (max-width: 767.98px) {
	.site-main .form-actions input[type="submit"] { width: 100% !important; }
}


/* ---------- Messages ---------- */

.site-main p.msg {
	position: relative;
	max-width: 680px;
	margin: 0 0 var(--space-5);
	padding: 16px 20px 16px 54px;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-left: 2px solid var(--c-muted);
	color: var(--c-text);
	line-height: 1.6;
}
.msg::before {
	content: "";
	position: absolute;
	left: 18px;
	top: 17px;
	width: 22px;
	height: 22px;
	background-color: var(--c-muted);
	-webkit-mask: var(--msg-icon) center / contain no-repeat;
	mask: var(--msg-icon) center / contain no-repeat;
	--msg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5.5M12 7.7v.3'/%3E%3C/svg%3E");
}
.site-main p.msg-error { border-left-color: var(--c-alert); }
.msg-error::before {
	background-color: var(--c-alert);
	--msg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5L21.5 20h-19z'/%3E%3Cpath d='M12 10v4.5M12 17.2v.3'/%3E%3C/svg%3E");
}
.site-main p.msg-success { border-left-color: var(--c-success); }
.msg-success::before {
	background-color: var(--c-success);
	--msg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.3l2.7 2.7L16 9.6'/%3E%3C/svg%3E");
}
@media (max-width: 479.98px) {
	.site-main p.msg { padding: 14px 16px 14px 46px; }
	.msg::before { left: 14px; top: 16px; width: 20px; height: 20px; }
}


/* ---------- Account overview (ui.php) ---------- */

.site-main .account-data {
	grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
	gap: 0;
	margin: 0 0 var(--space-6);
	padding: 4px 24px;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
}
.account-data dt, .account-data dd { padding: 14px 0; border-top: 1px solid var(--c-line); }
.account-data dt { padding-right: 40px; }
.account-data dt:first-of-type, .account-data dd:first-of-type { border-top: 0; }
.account-data dt {
	font-size: var(--fs-label);
	line-height: 1.9;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--c-muted);
}
.site-main .account-data dd { margin: 0; color: var(--c-text); overflow-wrap: anywhere; }
@media (max-width: 767.98px) {
	.site-main .account-data { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 4px 18px; }
	.account-data dt { padding-bottom: 0; padding-right: 0; }
	.account-data dd { padding-top: 2px; border-top: 0; }
	.site-main .account-data dd { margin: 0; }
}

/* licence / free product / older order */
.license-card {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	grid-template-areas: "icon title action" "icon meta action";
	align-items: center;
	gap: 6px 24px;
	margin-bottom: 12px;
	padding: 22px 24px;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	transition: border-color .2s;
}
.license-card:hover { border-color: #4D4438; }
.license-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border: 1px solid var(--c-line);
	color: var(--c-gold);
	grid-area: icon;
}
.license-card--open .license-card__icon { color: var(--c-muted); }
.license-card__icon .icon { display: block; }
.license-card__title {
	grid-area: title;
	align-self: end;
	min-width: 0;
	margin: 0;
	font-size: clamp(1.25rem, 1.05rem + .6vw, 1.625rem);
	line-height: 1.2;
}
.site-main .license-card__meta,
.site-main .license-card__line { margin: 0; font-size: var(--fs-small); line-height: 1.9; color: var(--c-muted); }
.license-card__sep { padding: 0 4px; color: var(--c-line); }
.license-card__value { color: var(--c-text); }
.license-code {
	display: inline-block;
	padding: 0 8px;
	background: var(--c-bg);
	border: 1px solid var(--c-line);
	color: var(--c-text);
	font-size: .95rem;
	line-height: 1.7;
	letter-spacing: .04em;
	white-space: nowrap;
	-webkit-user-select: all;         /* one click selects the whole code for copying */
	user-select: all;
	cursor: text;
}
.license-badge {
	display: inline-block;
	padding: 0 8px;
	border: 1px solid var(--c-gold);
	color: var(--c-gold);
	font-size: 11px;
	line-height: 20px;
	letter-spacing: .14em;
	vertical-align: 1px;
}
.license-card__meta { grid-area: meta; align-self: start; min-width: 0; }
.license-card__action { grid-area: action; white-space: nowrap; }
.license-card__action .icon { flex: none; }
@media (max-width: 639.98px) {
	.license-card { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "icon title" "icon meta" "action action"; padding: 18px; gap: 4px 16px; }
	.license-card__icon { align-self: start; }
	.license-card__action { margin-top: 12px; }
	.license-card__icon { width: 44px; height: 44px; }
	.license-card__action { width: 100%; }
	.license-code { font-size: .85rem; letter-spacing: .02em; white-space: normal; overflow-wrap: anywhere; }
}


/* ---------- Download page (id2=7) ---------- */

.page-20-7 .page-content > * { max-width: 960px; }
.site-main .dl-file { margin: 0 0 10px; }
.dl-file__link {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 64px;
	padding: 14px 20px;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	color: var(--c-text);
	font-size: 15px;
	line-height: 1.5;
	transition: border-color .2s, color .2s;
}
.dl-file__link .icon { flex: none; color: var(--c-gold); }
.dl-file__link:hover { border-color: var(--c-gold); color: var(--c-gold-hover); }
.dl-file__name { min-width: 0; overflow-wrap: anywhere; }

/* the three tips: one notice block with a warning symbol per line */
.site-main .dl-tip {
	position: relative;
	margin: 0;
	padding: 12px 20px 12px 54px;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-left: 2px solid var(--c-alert);
	color: var(--c-text);
	line-height: 1.6;
}
.site-main .dl-tip + .dl-tip { border-top: 0; }
.site-main .dl-tip:not(.dl-tip + .dl-tip) { margin-top: var(--space-9); }
.dl-tip::before {
	content: "";
	position: absolute;
	left: 18px;
	top: 13px;
	width: 22px;
	height: 22px;
	background-color: var(--c-alert);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5L21.5 20h-19z'/%3E%3Cpath d='M12 10v4.5M12 17.2v.3'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5L21.5 20h-19z'/%3E%3Cpath d='M12 10v4.5M12 17.2v.3'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 479.98px) {
	.site-main .dl-tip { padding: 12px 16px 12px 46px; }
	.dl-tip::before { left: 14px; width: 20px; height: 20px; }
}


/* ---------- Text pages: about (1), contact (4), legal (10, 11, 12) ---------- */

:is(.page-1, .page-4, .page-6, .page-10, .page-11, .page-12) .page-content > * { max-width: var(--measure); }

/* about: the first heading is the page title, the second one a section */
.page-1 .page-content > h4 { margin: var(--space-10) 0 var(--space-5); }
/* TECH-1 (29.11.2026): technology page, same page title */
.page-6 .page-content > h4:first-child,
.page-1 .page-content > h4:first-child { margin-top: 0; margin-bottom: var(--space-7); font-size: var(--fs-account-title); line-height: 1.05; }

/* contact: two cards */
.page-4 .page-content > .contact-grid { max-width: 960px; }
.contact-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	gap: 24px;
}
.contact-item { padding: clamp(24px, 4vw, 40px); background: var(--c-surface); border: 1px solid var(--c-line); }
.contact-item__label {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 var(--space-5);
	font-family: var(--f-text);
	font-size: var(--fs-label);
	line-height: 1.4;
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
	color: var(--c-gold);
}
.contact-item__label::before { content: ""; flex: 0 0 40px; height: 1px; background: currentColor; }
.site-main .contact-item__value {
	margin: 0;
	font-family: var(--f-display);
	font-size: clamp(1.25rem, 1rem + .8vw, 1.625rem);
	line-height: 1.45;
	color: var(--c-text);
}

/* legal texts (00_private/content/legal/*): own h2/h3/h4, lists, inline styles */
:is(.page-10, .page-11, .page-12) .page-content h2,
.page-10 .page-content > h3:first-child {
	margin: 0 0 var(--space-8);
	padding: 0;
	border: 0;
	font-size: var(--fs-account-title);
	line-height: 1.05;
}
:is(.page-10, .page-11, .page-12) .page-content h3 {
	margin: var(--space-9) 0 var(--space-4);
	padding-top: var(--space-6);
	border-top: 1px solid var(--c-line);
	font-size: var(--fs-h3);
	line-height: 1.2;
}
:is(.page-10, .page-11, .page-12) .page-content h3:empty { display: none; }
:is(.page-10, .page-11, .page-12) .page-content h2 + h3:empty + h3,
:is(.page-10, .page-11, .page-12) .page-content h2 + h3 { margin-top: 0; }
:is(.page-10, .page-11, .page-12) .page-content h4 {
	margin: var(--space-7) 0 var(--space-3);
	font-size: 1.3125rem;
	line-height: 1.3;
}
:is(.page-10, .page-11, .page-12) .page-content h3 + h4 { margin-top: var(--space-4); }
:is(.page-10, .page-11, .page-12) .page-content :is(p, li) { overflow-wrap: break-word; }
/* terms: the piracy warning (<h4 style="color:red;">) as a notice box */
.page-11 .page-content h4[style*="color"] {
	margin: 0 0 var(--space-8);
	padding: 18px 22px;
	border: 1px solid var(--c-alert);
	border-left-width: 2px;
	color: var(--c-text) !important;
	font-family: var(--f-text);
	font-size: var(--fs-body);
	font-weight: 500;
	line-height: 1.6;
}


/* ---------- Standalone pages (noscript.php, licenses/index.php) ---------- */

.page-standalone .page-content > * { max-width: var(--measure); }
.page-standalone .page-content > section + section { margin-top: var(--space-5); }
.page-noscript .page-content img { width: 21px; height: 14px; vertical-align: -1px; }   /* FLAG-1 (28.11.2026): flags shown again (were hidden by LAYOUT-5) */
.page-noscript .page-content p { margin: 0; padding: 16px 20px; background: var(--c-surface); border: 1px solid var(--c-line); color: var(--c-text); }
.page-licenses .page-content h4:first-child { font-size: var(--fs-account-title); line-height: 1.05; margin-bottom: var(--space-7); }
.page-licenses .site-footer p { margin: 0; padding-block: var(--space-7); }
/* contact: the spaced-out e-mail address (anti-spam spelling) would break badly in Bodoni at lead size */
.site-main .contact-item:first-child .contact-item__value { font-family: var(--f-text); font-size: 1.125rem; line-height: 1.6; }

/* PWD-1 (28.11.2026): password field with eye button (loginform.php) */
.pwd-field { position: relative; }
.account-form .pwd-field input { width: 100%; padding-right: calc(var(--field-h) + 4px); }
.site-main .pwd-field .pwd-toggle {
	position: absolute; top: 0; right: 0;
	display: flex; align-items: center; justify-content: center;
	width: var(--field-h) !important; min-width: 0; height: var(--field-h) !important; min-height: 0; padding: 0;
	background: none; border: 0; color: var(--c-muted); cursor: pointer;
}
.site-main .pwd-field .pwd-toggle:hover, .site-main .pwd-field .pwd-toggle[aria-pressed="true"] { background: none; color: var(--c-gold); }
.pwd-toggle .pwd-eye-off, .pwd-toggle[aria-pressed="true"] .pwd-eye { display: none; }
.pwd-toggle[aria-pressed="true"] .pwd-eye-off { display: block; }