/*
 * MaanPlan — frontend. Component-gedreven single-page site (RPS Tapestry
 * Web*-componenten). Kleurpalet en typografie conform de referentiebeelden
 * (.temp/dashboard.png, .temp/login.png): crème achtergrond, donkergroen en
 * zacht goud als accent, serif koppen naast sans-serif body-tekst.
 */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=Inter:wght@400;500;600&display=swap");

:root {
	--mp-cream:      #f7f2ea;
	--mp-cream-dark: #efe7d9;
	--mp-green:      #2c4a3e;
	--mp-green-dark: #1f362d;
	--mp-gold:       #c9a06a;
	--mp-gold-dark:  #b3895a;
	--mp-ink:        #2c332e;
	--mp-ink-muted:  #5c665e;
	--mp-border:     #e3dbca;

	--mp-font-heading: "Cormorant Garamond", serif;
	--mp-font-body: "Inter", sans-serif;
	--mp-max-width: 1080px;
	--mp-header-height: 72px;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }

body.web-body {
	margin: 0;
	font-family: var(--mp-font-body);
	color: var(--mp-ink);
	background: var(--mp-cream);
	line-height: 1.55;
	overflow-x: hidden;
	padding-top: var(--mp-header-height);
}
body.web-body--auth { padding-top: 0; }

h1, h2, h3, h4 {
	font-family: var(--mp-font-heading);
	font-weight: 600;
	line-height: 1.15;
	color: var(--mp-green);
	margin: 0 0 0.5em;
}

a { color: inherit; }

/* Topbar ---------------------------------------------------------------- */
.web-topbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 20;
	background: rgba(247, 242, 234, 0.72);
	border-bottom: 1px solid rgba(227, 219, 202, 0.8);
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
}
.web-topbar__inner {
	max-width: var(--mp-max-width);
	margin: 0 auto;
	padding: 0 24px;
	height: var(--mp-header-height);
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.web-topbar__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.web-topbar__logo img { display: block; height: 34px; width: auto; margin-bottom: 16px; }
.web-topbar__logo span { font-family: var(--mp-font-heading); font-size: 1.3rem; font-weight: 600; color: var(--mp-green); line-height: 1; }

.web-nav { display: flex; align-items: center; gap: 4px; }
.web-nav a {
	text-decoration: none;
	color: var(--mp-ink-muted);
	font-size: 14px;
	font-weight: 500;
	padding: 8px 14px;
	border-radius: 6px;
	transition: color 0.2s, background-color 0.2s;
}
.web-nav a:hover { color: var(--mp-green); background: var(--mp-cream-dark); }
.web-nav a.web-nav__cta {
	background: var(--mp-green);
	color: #fff;
	padding: 8px 18px;
	margin-left: 8px;
}
.web-nav a.web-nav__cta:hover { background: var(--mp-green-dark); color: #fff; }
.web-nav-toggle { display: none; background: none; border: none; color: var(--mp-green); font-size: 1.5rem; cursor: pointer; }

@media (max-width: 860px) {
	.web-nav { display: none; }
	.web-nav-toggle { display: block; }
	body.nav-open .web-nav {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		position: absolute;
		top: var(--mp-header-height);
		right: 0;
		left: 0;
		background: var(--mp-cream);
		border-bottom: 1px solid var(--mp-border);
		padding: 8px 24px 16px;
	}
	body.nav-open .web-nav a.web-nav__cta { margin-left: 0; text-align: center; }
}

/* Sections ---------------------------------------------------------------- */
.web-section { scroll-margin-top: var(--mp-header-height); }
.web-section__inner { max-width: var(--mp-max-width); margin: 0 auto; padding: 88px 24px; }
.web-section__inner:has(> .web-hero) { max-width: none; padding: 0; }
.web-section--cream { background: var(--mp-cream); }
.web-section--white { background: #fff; }
.web-section--green { background: var(--mp-green-dark); color: rgba(255,255,255,0.92); }
.web-section--green h1, .web-section--green h2, .web-section--green h3 { color: #fff; }

.web-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1.4px;
	color: var(--mp-gold-dark);
	margin: 0 0 10px;
}
.web-section__header { max-width: 640px; margin: 0 0 48px; }
.web-section__header--center { margin-left: auto; margin-right: auto; text-align: center; }
.web-section__heading { font-size: 30px; }
.web-section__intro { color: var(--mp-ink-muted); margin: 0; }
.web-section--green .web-section__intro { color: rgba(255,255,255,0.72); }
@media (min-width: 768px) {
	.web-section__heading { font-size: 40px; }
}

/* Hero ---------------------------------------------------------------------- */
.web-hero {
	max-width: 720px;
	margin: 0 auto;
	padding: 72px 24px 88px;
	text-align: center;
}
.web-hero__logo { display: block; margin: 0 auto 24px; height: auto; max-width: 260px; width: 100%; }
.web-hero__heading { font-size: 2.4rem; margin-bottom: 20px; }
.web-hero__intro { font-size: 1.1rem; color: var(--mp-ink-muted); max-width: 42em; margin: 0 auto 32px; }
.web-hero__buttons { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
@media (min-width: 768px) {
	.web-hero__heading { font-size: 3rem; }
}

/* Buttons --------------------------------------------------------------------- */
.web-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 26px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	border: 1.5px solid transparent;
	transition: background-color 0.2s, color 0.2s, opacity 0.2s;
}
.web-button__arrow { width: 16px; height: 16px; flex-shrink: 0; }
.web-button--primary { background: var(--mp-green); color: #fff; }
.web-button--primary:hover { background: var(--mp-green-dark); }
.web-button--secondary { background: transparent; color: var(--mp-green); border-color: var(--mp-border); }
.web-button--secondary:hover { border-color: var(--mp-green); }
.web-section--green .web-button--secondary { color: #fff; border-color: rgba(255,255,255,0.3); }
.web-section--green .web-button--secondary:hover { border-color: #fff; }

/* Card grid --------------------------------------------------------------------- */
.web-cardgrid { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.web-cardgrid--3col { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.web-cardgrid--4col { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) {
	.web-cardgrid--3col,
	.web-cardgrid--4col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.web-cardgrid { grid-template-columns: 1fr; }
}

.web-card {
	background: #fff;
	border: 1px solid var(--mp-border);
	border-radius: 14px;
	padding: 32px;
	transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.web-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -18px rgba(44,74,62,0.25); border-color: var(--mp-gold); }
.web-cardgrid--3col .web-card,
.web-cardgrid--4col .web-card { padding: 24px; }
.web-section--white .web-card,
.web-section--cream .web-card { background: #fff; }
.web-card__icon { color: var(--mp-gold-dark); margin-bottom: 16px; }
.web-card__icon svg { width: 28px; height: 28px; }
.web-card__heading { font-size: 18px; color: var(--mp-green); margin-bottom: 8px; }
.web-card__description { color: var(--mp-ink-muted); font-size: 14px; margin: 0; }
.web-card__features { padding-left: 0; list-style: none; margin: 0.9rem 0 0; font-size: 14px; color: var(--mp-ink-muted); }
.web-card__features li { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.web-card__check { width: 16px; height: 16px; color: var(--mp-gold-dark); flex-shrink: 0; margin-top: 2px; }
.web-card__check svg { width: 16px; height: 16px; }

/* Call to action ------------------------------------------------------------------ */
.web-cta { max-width: 620px; margin: 0 auto; text-align: center; }
.web-cta__heading { font-size: 30px; }
.web-cta__intro { color: rgba(255,255,255,0.75); max-width: 520px; margin: 0 auto 32px; }
.web-cta__buttons { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
@media (min-width: 768px) {
	.web-cta__heading { font-size: 36px; }
}

/* Footer --------------------------------------------------------------------------- */
.web-footer { border-top: 1px solid var(--mp-border); background: var(--mp-cream); }
.web-footer__inner { max-width: var(--mp-max-width); margin: 0 auto; padding: 1.5rem 24px; font-size: 0.85rem; color: var(--mp-ink-muted); }

/* Auth-schermen (inloggen / registreren / wachtwoord-vergeten / wachtwoord-instellen) -- */
.web-auth {
	min-height: calc(100vh - var(--mp-header-height));
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 24px;
}
.web-auth__card {
	background: #fff;
	border: 1px solid var(--mp-border);
	border-radius: 20px;
	padding: 40px 36px;
	max-width: 420px;
	width: 100%;
	box-shadow: 0 24px 60px -30px rgba(44, 74, 62, 0.25);
	text-align: center;
}
.web-auth__card--wide { max-width: 560px; }
.web-auth__logo { margin: 0 auto 20px; display: flex; justify-content: center; }
.web-auth__logo img { height: 56px; width: auto; display: block; }
.web-auth__card h1 { font-size: 1.7rem; margin-bottom: 8px; }
.web-auth__lead { color: var(--mp-ink-muted); margin: 0 0 24px; font-size: 0.95rem; }
.web-auth__field { text-align: left; margin-bottom: 18px; }
.web-auth__field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--mp-ink); margin-bottom: 6px; }
.web-auth__input-wrap { position: relative; }
.web-auth__field input {
	width: 100%;
	padding: 12px 14px 12px 42px;
	border: 1.5px solid var(--mp-border);
	border-radius: 10px;
	font: inherit;
	font-size: 0.95rem;
	background: #fff;
}
.web-auth__field input:focus { outline: none; border-color: var(--mp-green); }
.web-auth__field-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--mp-ink-muted);
	width: 18px;
	height: 18px;
	pointer-events: none;
}
.web-auth__field-icon svg { width: 18px; height: 18px; display: block; }
.web-auth__toggle { position: absolute; right: 10px; top: 32px; background: none; border: none; cursor: pointer; color: var(--mp-ink-muted); padding: 6px; }
.web-auth__toggle svg { width: 18px; height: 18px; display: block; }
.web-auth__row { display: flex; justify-content: flex-end; margin: -8px 0 18px; }
.web-auth__row a { font-size: 0.85rem; color: var(--mp-gold-dark); text-decoration: none; }
.web-auth__row a:hover { text-decoration: underline; }
.web-auth__submit { width: 100%; justify-content: center; margin-top: 4px; }
.web-auth__foot { margin-top: 20px; font-size: 0.9rem; color: var(--mp-ink-muted); }
.web-auth__foot a { color: var(--mp-green); font-weight: 600; text-decoration: none; }
.web-auth__foot a:hover { text-decoration: underline; }
.web-auth__back { display: inline-block; margin-top: 16px; font-size: 0.85rem; color: var(--mp-ink-muted); text-decoration: none; }
.web-auth__back:hover { color: var(--mp-green); text-decoration: underline; }
.web-auth__error {
	background: #fdeceb;
	border: 1px solid #f3b9b3;
	color: #8a2f28;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 0.85rem;
	margin-bottom: 18px;
	text-align: left;
}
.web-auth__optional { font-weight: 400; color: var(--mp-ink-muted); }
.web-auth__field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--mp-border);
	border-radius: 10px;
	font: inherit;
	font-size: 0.95rem;
	background: #fff;
	resize: vertical;
}
.web-auth__field textarea:focus { outline: none; border-color: var(--mp-green); }
.web-auth__success { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 8px; }
.web-auth__success svg { width: 40px; height: 40px; color: var(--mp-green); }
.web-auth__success h1 { margin-bottom: 0; }

/* Bedrijfstype-keuze (registratiepagina) */
.web-auth__choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.web-auth__choice {
	border: 1.5px solid var(--mp-border);
	border-radius: 12px;
	padding: 16px;
	text-align: left;
	cursor: pointer;
	position: relative;
	display: block;
	transition: border-color 0.15s, background-color 0.15s;
}
.web-auth__choice input { position: absolute; top: 14px; right: 14px; margin: 0; width: auto; padding: 0; }
.web-auth__choice-title { font-weight: 700; color: var(--mp-green); margin: 0 0 4px; font-family: var(--mp-font-heading); font-size: 1.15rem; }
.web-auth__choice-price { font-size: 0.8rem; color: var(--mp-gold-dark); font-weight: 600; margin: 0 0 8px; }
.web-auth__choice-desc { font-size: 0.8rem; color: var(--mp-ink-muted); margin: 0; line-height: 1.45; }
.web-auth__choice:has(input:checked) { border-color: var(--mp-green); background: var(--mp-cream); }
@media (max-width: 480px) {
	.web-auth__choices { grid-template-columns: 1fr; }
}

/* Framework LoginForm/PageForm — plat trekken van de standaard <table>-opmaak
   naar een gestapeld kaartformulier (GUIDELINES.md §16.4). De componenten
   zetten veel inline width/height/margin op wrapper-elementen; die worden
   hier bewust met !important overschreven. */
.web-auth-form { width: 100%; text-align: left; }
.web-auth-form table,
.web-auth-form tbody,
.web-auth-form tr,
.web-auth-form td,
.web-auth-form th {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	border: none !important;
	background: none !important;
	padding: 0 !important;
	margin: 0 !important;
}
.web-auth-form table[width="100px"],
.web-auth-form tr[style*="height:1px"] { display: none !important; }
.web-auth-form th {
	text-align: left;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--mp-ink);
	margin-bottom: 6px !important;
}
.web-auth-form td { margin-bottom: 16px !important; }
.web-auth-form fieldset { border: none !important; padding: 0 !important; margin: 0 !important; }
.web-auth-form legend { display: none !important; }
.web-auth-form input[type="text"],
.web-auth-form input[type="password"],
.web-auth-form input[type="email"] {
	width: 100% !important;
	padding: 12px 14px !important;
	border: 1.5px solid var(--mp-border) !important;
	border-radius: 10px !important;
	font: inherit;
	font-size: 0.95rem;
	background: #fff;
}
.web-auth-form input:focus { outline: none; border-color: var(--mp-green) !important; }
.web-auth-form input[type="submit"],
.web-auth-form button[type="submit"] {
	width: 100%;
	background: var(--mp-green);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 13px 26px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	margin-top: 6px;
}
.web-auth-form input[type="submit"]:hover,
.web-auth-form button[type="submit"]:hover { background: var(--mp-green-dark); }
.web-auth-form a { color: var(--mp-gold-dark); font-size: 0.85rem; text-decoration: none; }
.web-auth-form a:hover { text-decoration: underline; }

/* Icoon/oog-toggle die via JS in de velden geïnjecteerd wordt (inloggen.view.php). */
.web-auth-form__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--mp-ink-muted); width: 18px; height: 18px; pointer-events: none; }
.web-auth-form__icon svg { width: 18px; height: 18px; display: block; }
.web-auth-form input.web-auth-form__input--icon { padding-left: 42px !important; }
.web-auth-form input.web-auth-form__input--toggle { padding-right: 42px !important; }
.web-auth-form__toggle {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	color: var(--mp-ink-muted);
	padding: 4px;
}
.web-auth-form__toggle svg { width: 18px; height: 18px; display: block; }
