/* ==========================================================================
   Home IT Abo Billing – öffentliche Formulare
   Helle Gestaltung passend zur Website: Weiss, Mint, Grün, Navy als Akzent.
   ========================================================================== */

.hitab-pricing,
.hitab-cancel,
.hitab-withdraw,
.hitab-portal,
.hitab-onboarding {
	--hitab-white: #FFFFFF;
	--hitab-mint-50: #F2FBF5;
	--hitab-mint-100: #E5F7EA;
	--hitab-mint-300: #A9DDB9;
	--hitab-green: #3F9D69;
	--hitab-green-hover: #2F7F55;
	--hitab-green-dark: #245F43;
	--hitab-navy: #173F73;
	--hitab-text: #1D2B25;
	--hitab-muted: #5F7067;
	--hitab-border: #DCE9E0;
	--hitab-border-strong: #C6D8CC;
	--hitab-error: #B74242;
	color: var(--hitab-text);
	line-height: 1.65;
}

/* --- Preisdarstellung ---------------------------------------------------- */

.hitab-models {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1.5rem;
	margin-top: 1.5rem;
}

.hitab-model {
	position: relative;
	background: var(--hitab-white);
	border: 2px solid var(--hitab-mint-300);
	border-radius: 24px;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	box-shadow: 0 18px 50px rgba(36, 95, 67, .12);
}

.hitab-model--yearly { border-color: var(--hitab-border-strong); background: var(--hitab-mint-50); }

.hitab-model__title { margin: 0 0 .5rem; font-size: 1.25rem; font-weight: 800; color: var(--hitab-navy); }

.hitab-model__price { margin: 0 0 1rem; display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.hitab-model__price strong { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; color: var(--hitab-green-dark); }
.hitab-model__price span { color: var(--hitab-muted); }

.hitab-model__list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .6rem; }
.hitab-model__list li { padding-left: 1.6rem; position: relative; }
.hitab-model__list li::before {
	content: "";
	position: absolute;
	left: 0; top: .55em;
	width: .6rem; height: .6rem;
	border-radius: 50%;
	background: var(--hitab-green);
}

/* --- Formulare ----------------------------------------------------------- */

.hitab-form { margin: 0; }

.hitab-field { margin-bottom: 1.15rem; }
.hitab-field label, .hitab-field legend { display: block; font-weight: 700; margin-bottom: .35rem; color: var(--hitab-navy); }
.hitab-field fieldset { border: 0; margin: 0; padding: 0; }

.hitab-form input[type="text"],
.hitab-form input[type="email"],
.hitab-form textarea {
	font: inherit;
	width: 100%;
	min-height: 52px;
	padding: .85rem 1rem;
	border: 1.5px solid var(--hitab-border-strong);
	border-radius: 12px;
	background: var(--hitab-white);
	color: var(--hitab-text);
}

.hitab-form textarea { min-height: 120px; }

.hitab-form input:focus, .hitab-form textarea:focus {
	border-color: var(--hitab-green);
	outline: 3px solid rgba(23, 63, 115, .25);
	outline-offset: 1px;
}

.hitab-field--check label,
.hitab-choice {
	display: flex;
	align-items: flex-start;
	gap: .65rem;
	font-weight: 400;
	min-height: 48px;
	cursor: pointer;
}

.hitab-choice { align-items: center; }
.hitab-field--check input, .hitab-choice input { width: 22px; height: 22px; accent-color: var(--hitab-green); flex: 0 0 auto; margin-top: .15rem; }

.hitab-button {
	font: inherit;
	font-weight: 800;
	font-size: 1.0625rem;
	width: 100%;
	min-height: 58px;
	padding: 1rem 1.75rem;
	border: 2px solid var(--hitab-green);
	border-radius: 14px;
	background: linear-gradient(135deg, #4BAA72 0%, #2F7F55 100%);
	color: #FFFFFF;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(47, 127, 85, .24);
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.hitab-button:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(47, 127, 85, .3); }
.hitab-button:focus-visible { outline: 3px solid var(--hitab-navy); outline-offset: 3px; }

.hitab-button--secondary {
	background: var(--hitab-white);
	color: var(--hitab-green-hover);
	box-shadow: none;
}

.hitab-button--secondary:hover { background: var(--hitab-mint-100); color: var(--hitab-green-dark); }

/* Kündigung und Widerruf bewusst gleichwertig gestaltet – keine Abschreckung. */
.hitab-button--cancel {
	background: var(--hitab-white);
	color: var(--hitab-navy);
	border-color: var(--hitab-navy);
	box-shadow: none;
}

.hitab-button--cancel:hover { background: #EEF5FA; color: var(--hitab-navy); }

.hitab-note { margin: .85rem 0 0; font-size: .95rem; color: var(--hitab-muted); }
.hitab-note--off { color: var(--hitab-error); font-weight: 600; }

.hitab-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.hitab-alert { border-radius: 14px; padding: 1rem 1.15rem; margin-bottom: 1.25rem; }
.hitab-alert--success { background: var(--hitab-mint-100); border: 1px solid var(--hitab-mint-300); color: var(--hitab-green-dark); }
.hitab-alert--error { background: #FBEEEE; border: 1px solid #EAC5C5; color: #7A2A2A; }
.hitab-alert p { margin: .25rem 0; }

.hitab-cancel h2, .hitab-withdraw h2, .hitab-portal h2, .hitab-onboarding h2 { color: var(--hitab-navy); margin-top: 0; }

.hitab-cancel, .hitab-withdraw, .hitab-portal, .hitab-onboarding {
	max-width: 640px;
	background: var(--hitab-white);
	border: 1px solid var(--hitab-border);
	border-radius: 24px;
	padding: clamp(1.35rem, 3vw, 2.25rem);
	box-shadow: 0 16px 45px rgba(36, 95, 67, .1);
}

@media (min-width: 560px) {
	.hitab-button { width: auto; min-width: 280px; }
}

/* Zustimmung zum vorzeitigen Leistungsbeginn: bewusst optisch getrennt
   von der AGB-Zustimmung, damit es zwei erkennbar eigenständige
   Erklärungen bleiben. */
.hitab-field--early {
	background: var(--hitab-mint-50);
	border: 1px solid var(--hitab-border);
	border-radius: 14px;
	padding: .9rem 1rem;
	margin-bottom: 1.25rem;
}

.hitab-field--early .hitab-note { margin-top: .5rem; }
