/* impressum — page layout only (tokens from theme.css; no new colours, sizes or shadows). Owner: impressum page builder. */

/* ---- 01 hero: a little more bottom room so the identity cards can float over the seam ---- */
.hero--compact.imp-hero .hero__inner { padding-bottom: calc(clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem) + var(--s-9)); }
.imp-hero .hero__note { margin-top: var(--s-4); }

/* ---- 02 identity cards ---- */
.imp-identity {
	padding-top: 0;
	margin-top: calc(-1 * var(--s-9));
	z-index: 1;
	background: linear-gradient(to bottom, transparent 0, transparent var(--s-9), var(--c-white) var(--s-9));
}
.imp-identity__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--s-6); align-items: stretch; }
.imp-card { padding: var(--s-7) var(--s-7) var(--s-6); box-shadow: var(--sh); }
.imp-card--resp { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-5); align-items: center; padding-block: var(--s-6); box-shadow: var(--sh-xs); }
.imp-card--resp > * + * { margin-top: 0; }
.imp-card__body > * + * { margin-top: var(--s-2); }
.imp-card--provider, .imp-card--contact { display: flex; flex-direction: column; align-items: stretch; }
.imp-card--provider .card__icon, .imp-card--contact .card__icon { align-self: flex-start; }
.imp-card--provider .imp-dl { flex: 1; grid-auto-rows: 1fr; }
.imp-card__title { font-size: var(--fs-h3); color: var(--c-heading); margin-top: var(--s-4); }
.imp-card--resp .imp-card__title { margin-top: 0; font-size: var(--fs-h4); }
.imp-card .imp-dl { margin-top: var(--s-5); }
.imp-card__note { color: var(--c-muted); font-size: var(--fs-sm); line-height: 1.55; }

.imp-dl { display: grid; gap: var(--s-3); margin: 0; }
.imp-dl__row { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: var(--s-2) var(--s-4); align-items: center; padding: var(--s-3) var(--s-4); background: var(--c-sky-50); border-radius: var(--r); }
.imp-dl dt { display: flex; align-items: center; gap: .5rem; margin: 0; font-weight: 650; font-size: var(--fs-sm); color: var(--c-slate); }
.imp-dl dt .i { width: 1.35rem; height: 1.35rem; flex: none; color: var(--c-blue-deep); }
.imp-dl dd { margin: 0; font-weight: 600; color: var(--c-ink); overflow-wrap: anywhere; line-height: 1.4; }
.imp-dl address { font-style: normal; }
.imp-card--contact .imp-dl__row { grid-template-columns: minmax(0, 1fr); align-items: start; }
.imp-phone { display: inline-flex; align-items: center; min-height: 48px; font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.75rem); font-weight: 700; line-height: 1.1; color: var(--c-ink); font-variant-numeric: tabular-nums; white-space: nowrap; text-decoration: underline; text-decoration-color: var(--c-orange); text-decoration-thickness: .12em; text-underline-offset: .18em; }
.imp-phone:hover { color: var(--c-blue-deep); }
.imp-mail__link { display: inline-flex; align-items: center; min-height: 48px; color: var(--c-blue-deep); text-decoration: underline; }

/* ---- 03 legal clauses (toc + prose) ---- */
.imp-legal-band .toc { background: var(--c-white); }
.imp-legal { max-width: none; }
.imp-legal > .imp-clause { margin-top: 0; }
.imp-clause { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: var(--s-5); padding-block: var(--s-7); border-top: 1px solid var(--c-line); }
.imp-clause:first-child { padding-top: 0; border-top: 0; }
.imp-clause:last-child { padding-bottom: 0; }
.imp-clause__icon { width: 3.5rem; height: 3.5rem; display: grid; place-items: center; border-radius: var(--r); background: var(--c-white); border: 1px solid var(--c-line); box-shadow: var(--sh-xs); color: var(--c-blue-deep); }
.imp-clause__icon .i { width: 1.6rem; height: 1.6rem; }
.imp-clause__body { max-width: var(--measure); }
.imp-clause__body > * + * { margin-top: var(--s-4); }
.imp-clause h2 { margin-top: 0; }
/* narrow phones: the long word "Verbraucherstreitbeilegung" must fit the heading box (no mid-word break) */
@media (max-width: 340px) {
	.imp-clause h2 { font-size: var(--fs-h3); }
}
.imp-notice { margin-top: var(--s-5); }

/* ---- 04 credits (gable cream band + native fold) ---- */
.imp-credits { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-5); align-items: start; }
.imp-credits__icon { width: 4rem; height: 4rem; display: grid; place-items: center; border-radius: 50%; background: var(--c-white); border: 2px solid var(--c-orange-tint); box-shadow: var(--sh-xs); color: var(--c-blue-deep); }
.imp-credits__icon .i { width: 1.9rem; height: 1.9rem; }
.imp-credits__body > * + * { margin-top: var(--s-3); }
.imp-fold { margin-top: var(--s-7); background: var(--c-white); border: 1.5px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; }
.imp-fold__summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 3.5rem; padding: var(--s-3) var(--s-5); cursor: pointer; list-style: none; font-weight: 650; color: var(--c-heading); }
.imp-fold__summary::-webkit-details-marker { display: none; }
.imp-fold__summary .i { width: 1.5rem; height: 1.5rem; flex: none; color: var(--c-blue-deep); transition: transform var(--t) var(--ease); }
.imp-fold[open] > .imp-fold__summary .i { transform: rotate(180deg); }
.imp-fold__content { padding: 0 var(--s-5) var(--s-5); }

/* ---- responsive ---- */
@media (max-width: 900px) {
	.hero--compact.imp-hero .hero__inner { padding-bottom: calc(clamp(2rem, 1.5rem + 3vw, 3rem) + var(--s-8)); }
	.imp-identity { margin-top: calc(-1 * var(--s-8)); background: linear-gradient(to bottom, transparent 0, transparent var(--s-8), var(--c-white) var(--s-8)); }
	.imp-identity__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
	.imp-card { padding: var(--s-6) var(--s-5) var(--s-5); }
	.imp-card--resp { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
	.imp-dl__row { grid-template-columns: minmax(0, 1fr); gap: var(--s-1); padding: var(--s-3); }
	.imp-clause { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); padding-block: var(--s-6); }
	.imp-clause__icon { width: 3rem; height: 3rem; }
	.imp-credits { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
	.imp-credits__icon { width: 3.5rem; height: 3.5rem; }
}
