/* The public website's stylesheet — the landing page and the two legal pages.
 *
 * Separate from odn-portal.css on purpose. That file calls itself "the one stylesheet
 * every www/odn-* page uses", is built mobile-first for a phone held one-handed on a
 * loading dock, and its shared selectors are guarded by www/test_portal_shell.py.
 * A marketing page has none of those constraints and should not be able to break
 * them by being edited.
 *
 * What it borrows instead is the *vocabulary*: the same Frappe blue, the same
 * near-black text, the same 10px radius, the same two shadows. The landing page and
 * the product a visitor lands in should look like one thing, and reusing the values is
 * how that happens without reusing the file.
 *
 * Tokens sit on .odn-site rather than :root, for the reason odn-portal.css states for
 * .odn-page: this renders inside Frappe's own website chrome, and a :root variable
 * would recolour markup this app does not own.
 *
 * Deliberately absent: any framework, any webfont, any CDN, any image beyond the app's
 * own icon. The only script is odn-site.js, served from this app. That is a design
 * decision and also a privacy one — it is what lets /datenschutz say, truthfully, that
 * loading these pages contacts nobody but the server that served them. The single
 * exception is Google Analytics, and it is not an exception until the visitor has
 * clicked "Einverstanden"; odn-site.js builds that tag at the moment of the click and
 * not before.
 */

.odn-site {
	--odn-primary: #2490ef;
	--odn-primary-ink: #0b6dc7;
	--odn-text: #1f272e;
	--odn-muted: #6c757d;
	--odn-border: #d1d8dd;
	--odn-border-soft: #e6eaee;
	--odn-surface: #fff;
	--odn-surface-sunken: #f7f8f9;
	--odn-radius: 10px;
	--odn-radius-sm: 7px;
	--odn-radius-pill: 999px;
	--odn-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05), 0 1px 3px rgba(16, 24, 40, 0.08);
	--odn-ring: rgba(36, 144, 239, 0.4);
	--odn-measure: 42rem;

	max-width: 60rem;
	margin: 0 auto;
	padding: 0 1.1rem 3rem;
	color: var(--odn-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	/* The Impressum prints a repository URL in full, and a 50-character unbreakable
	   token is wider than a 390px phone. Without this it does not wrap — it widens the
	   page, and every line on it then runs off the right edge. */
	overflow-wrap: break-word;
}

.odn-site a {
	color: var(--odn-primary-ink);
	text-decoration: none;
}

.odn-site a:hover {
	text-decoration: underline;
}

.odn-site a:focus-visible {
	outline: none;
	border-radius: 3px;
	box-shadow: 0 0 0 3px var(--odn-ring);
}

/* --- header and footer ------------------------------------------------- */

.odn-site-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 1.25rem;
	padding: 1.5rem 0 2.5rem;
}

/* A typographic wordmark, because there is no logo asset in this repository and a
   placeholder graphic would be worse than none.
   Qualified by .odn-site so it outweighs `.odn-site a` above — unqualified it lost the
   cascade and the wordmark came out link-blue. The same applies to the buttons. */
.odn-site .odn-wordmark {
	color: var(--odn-text);
	font-size: 1.02rem;
	font-weight: 650;
	letter-spacing: -0.015em;
}

.odn-site .odn-wordmark:hover {
	text-decoration: none;
	color: var(--odn-primary-ink);
}

.odn-site-headnav,
.odn-site-footnav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.1rem;
	font-size: 0.9rem;
}

.odn-site-headnav a,
.odn-site-footnav a {
	color: var(--odn-muted);
}

.odn-site-headnav a:hover,
.odn-site-footnav a:hover {
	color: var(--odn-text);
}

.odn-site-foot {
	margin-top: 3.5rem;
	padding-top: 1.4rem;
	border-top: 1px solid var(--odn-border-soft);
}

.odn-site-copy {
	margin: 0.7rem 0 0;
	color: var(--odn-muted);
	font-size: 0.85rem;
}

/* --- typography -------------------------------------------------------- */

.odn-site h1 {
	margin: 0 0 0.6rem;
	font-size: clamp(1.9rem, 6vw, 2.55rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.12;
}

.odn-site h2 {
	margin: 0 0 0.9rem;
	font-size: 1.32rem;
	font-weight: 650;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

.odn-site h3 {
	margin: 0 0 0.55rem;
	font-size: 0.82rem;
	font-weight: 650;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--odn-muted);
}

.odn-site p {
	margin: 0 0 0.9rem;
	max-width: var(--odn-measure);
}

/* The small uppercase line above a heading. The only decorative element on the site,
   and it carries information rather than shape: on the Impressum it names the statutes
   the page discharges. */
.odn-eyebrow {
	margin: 0 0 0.7rem;
	color: var(--odn-muted);
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.odn-lede {
	font-size: 1.12rem;
	color: var(--odn-text);
}

.odn-muted {
	color: var(--odn-muted);
}

/* --- hero -------------------------------------------------------------- */

.odn-hero {
	padding-bottom: 2.75rem;
	border-bottom: 1px solid var(--odn-border-soft);
}

/* Says "early" without shouting it. The wording next to it does the actual work —
   see the "Stand heute" section on the landing page. */
.odn-chip {
	display: inline-block;
	margin-bottom: 1rem;
	padding: 0.24rem 0.7rem;
	border: 1px solid var(--odn-border);
	border-radius: var(--odn-radius-pill);
	background: var(--odn-surface-sunken);
	color: var(--odn-muted);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.odn-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 1.4rem;
}

.odn-site .odn-btn {
	display: inline-flex;
	align-items: center;
	/* 44px, the same tap target the portal holds itself to. */
	min-height: 44px;
	padding: 0 1.15rem;
	border: 1px solid var(--odn-border);
	border-radius: var(--odn-radius-sm);
	background: var(--odn-surface);
	color: var(--odn-text);
	font-size: 0.95rem;
	font-weight: 600;
	transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.odn-site .odn-btn:hover {
	text-decoration: none;
	border-color: var(--odn-muted);
}

.odn-site .odn-btn-primary {
	border-color: var(--odn-primary);
	background: var(--odn-primary);
	color: #fff;
	box-shadow: var(--odn-shadow-sm);
}

.odn-site .odn-btn-primary:hover {
	border-color: var(--odn-primary-ink);
	background: var(--odn-primary-ink);
	color: #fff;
}

/* --- sections ---------------------------------------------------------- */

.odn-section {
	padding-top: 2.75rem;
}

/* --- the four steps ---------------------------------------------------- */

.odn-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.6rem;
}

.odn-step {
	display: grid;
	grid-template-columns: 1.9rem 1fr;
	gap: 0 0.85rem;
	padding: 0.95rem 1rem;
	border: 1px solid var(--odn-border-soft);
	border-radius: var(--odn-radius);
	background: var(--odn-surface);
}

.odn-step-no {
	grid-row: 1 / span 2;
	width: 1.9rem;
	height: 1.9rem;
	display: grid;
	place-items: center;
	border-radius: var(--odn-radius-pill);
	background: var(--odn-surface-sunken);
	color: var(--odn-muted);
	font-size: 0.85rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.odn-step b {
	font-weight: 650;
}

.odn-step p {
	margin: 0.15rem 0 0;
	color: var(--odn-muted);
	font-size: 0.94rem;
	max-width: none;
}

/* --- what the software does -------------------------------------------- */

.odn-cols {
	display: grid;
	gap: 1.6rem;
}

.odn-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
	font-size: 0.96rem;
}

/* A hairline rather than a bullet or a tick: a checkmark reads as a claim of
   completeness, and this list is a list of what exists, not a comparison table. */
.odn-list li {
	padding-left: 0.9rem;
	border-left: 2px solid var(--odn-border-soft);
	line-height: 1.5;
}

/* --- the honest note --------------------------------------------------- */

.odn-note {
	padding: 1.1rem 1.15rem;
	border: 1px solid var(--odn-border);
	border-radius: var(--odn-radius);
	background: var(--odn-surface-sunken);
}

.odn-note p:last-child {
	margin-bottom: 0;
}

/* --- the contact form --------------------------------------------------- */

.odn-form {
	display: grid;
	gap: 0.35rem;
	max-width: 28rem;
	margin-top: 1.2rem;
}

.odn-form label {
	font-size: 0.88rem;
	font-weight: 600;
}

.odn-form label + input,
.odn-form label + textarea {
	margin-bottom: 0.7rem;
}

.odn-form input[type="email"],
.odn-form input[type="text"],
.odn-form textarea {
	width: 100%;
	box-sizing: border-box;
	min-height: 44px;
	padding: 0.55rem 0.7rem;
	border: 1px solid var(--odn-border);
	border-radius: var(--odn-radius-sm);
	background: var(--odn-surface);
	color: var(--odn-text);
	font: inherit;
	font-size: 0.96rem;
}

.odn-form textarea {
	min-height: 6rem;
	resize: vertical;
}

.odn-form input:focus-visible,
.odn-form textarea:focus-visible {
	outline: none;
	border-color: var(--odn-primary);
	box-shadow: 0 0 0 3px var(--odn-ring);
}

.odn-form button {
	justify-self: start;
	margin-top: 0.3rem;
	cursor: pointer;
}

.odn-form button[disabled] {
	opacity: 0.6;
	cursor: default;
}

.odn-form-note {
	margin: 0.6rem 0 0;
	color: var(--odn-muted);
	font-size: 0.84rem;
}

/* Empty until the script says something, so it takes no space on a page nobody has
   interacted with. */
.odn-form-status:empty {
	display: none;
}

.odn-form-status {
	margin-top: 0.9rem;
	font-size: 0.93rem;
	color: var(--odn-muted);
}

.odn-form-ok {
	color: #1b5e20;
	font-weight: 600;
}

.odn-form-error {
	color: #8a1c12;
}

/* The honeypot's wrapper. Moved off-screen rather than hidden with display:none,
   which some bots know to skip — the field has to look real to them and be
   unreachable for everyone else. */
.odn-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --- the consent banner -------------------------------------------------- */

/* Fixed to the bottom rather than covering the page: the visitor came to read
   something, and a decision about measurement is not more important than that. Both
   buttons are the same size for the same reason — a dialogue where refusing is harder
   to hit than agreeing is not consent freely given. */
.odn-consent {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 20;
	padding: 1rem 1.1rem calc(1rem + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--odn-border);
	background: var(--odn-surface);
	box-shadow: 0 -2px 12px rgba(16, 24, 40, 0.08);
}

.odn-consent[hidden] {
	display: none;
}

.odn-consent p {
	margin: 0 auto 0.8rem;
	max-width: var(--odn-measure);
	font-size: 0.92rem;
}

.odn-consent-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem 1rem;
	max-width: var(--odn-measure);
	margin: 0 auto;
	font-size: 0.88rem;
}

.odn-consent-actions button {
	cursor: pointer;
}

/* --- the "with and without ERP" panels ---------------------------------- */

/* Same border and radius as a step card. The three panels answer one question each —
   what the supplier needs, what the receiver needs, and what someone running neither
   needs — so they are sized by their content and not padded out to match. */
.odn-panel {
	padding: 1.1rem 1.15rem;
	border: 1px solid var(--odn-border-soft);
	border-radius: var(--odn-radius);
	background: var(--odn-surface);
}

.odn-panel h3 {
	color: var(--odn-text);
	letter-spacing: 0.05em;
}

.odn-panel p {
	margin-bottom: 0.35rem;
	font-size: 0.96rem;
	max-width: none;
}

.odn-panel p:last-child {
	margin-bottom: 0;
	font-size: 0.9rem;
}

/* --- legal pages ------------------------------------------------------- */

/* Long-form prose, one column, never the 60rem the landing page uses: legal text is
   read line by line and a 100-character measure is where that stops working. */
.odn-legal {
	max-width: var(--odn-measure);
}

.odn-legal h2 {
	margin-top: 2.4rem;
	padding-top: 1.6rem;
	border-top: 1px solid var(--odn-border-soft);
	font-size: 1.18rem;
}

.odn-legal .odn-legal-lead {
	color: var(--odn-muted);
}

.odn-legal address {
	margin: 0 0 0.9rem;
	font-style: normal;
}

.odn-site .odn-back {
	display: inline-block;
	margin-bottom: 1.6rem;
	color: var(--odn-muted);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.odn-legal-updated {
	margin-top: 2.4rem;
	color: var(--odn-muted);
	font-size: 0.85rem;
}

/* --- wider viewports ---------------------------------------------------
   min-width only, so everything above stays the phone layout — the same rule
   odn-portal.css follows, at the same breakpoints. */

@media (min-width: 48em) {
	.odn-site {
		padding: 0 1.75rem 4rem;
	}

	.odn-steps {
		grid-template-columns: 1fr 1fr;
	}

	.odn-section {
		padding-top: 3.5rem;
	}
}

@media (min-width: 64em) {
	.odn-cols {
		grid-template-columns: repeat(3, 1fr);
		gap: 2rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.odn-site .odn-btn {
		transition: none;
	}
}
