/*!
 * fmce.de
 * Page layout on top of the FMCE web kit v1.1 (tokens only, no own colours).
 *
 * Copyright 2026 FMCE Concept UG (haftungsbeschränkt). All rights reserved.
 * Proprietary and confidential. Unauthorized copying, distribution or use is prohibited.
 * CoAuthor: Claude / Claude Code - Opus 5.5
 */

/* ---------- Adjustable values (regler panel, phase 6) ---------- */
:root {
  --site-hero-pad-top: var(--space-8);
  --site-hero-pad-bottom: var(--space-8);
  --site-section-gap: var(--space-5);
  --site-header-height: 68px;
}

html { scroll-padding-top: calc(var(--site-header-height) + var(--space-4)); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
main:focus { outline: none; }
p { margin: 0; }

/* ---------- Header brand: short logo plus tagline ---------- */
.site-brand { align-items: center; gap: var(--space-3); text-decoration: none; }
.site-brand img { height: 40px; width: auto; }
@media (max-width: 420px) { .site-brand img { height: 32px; } }
.site-brand__tagline {
  font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .04em;
  color: var(--text-muted); max-width: 11em;
}
@media (max-width: 1080px) { .site-brand__tagline { display: none; } }

/* ---------- Sections ---------- */
.site-section .fm-trace { margin-bottom: var(--space-5); }
.site-section__title { margin-bottom: var(--site-section-gap); }
.site-band { background: var(--surface-sunken); border-block: 1px solid var(--border); }
.site-band .fm-steps { --fm-steps-bg: var(--surface-sunken); }
.fm-stack > p { color: var(--text-muted); }

/* ---------- Hero ---------- */
.site-hero { padding-top: var(--site-hero-pad-top); padding-bottom: var(--site-hero-pad-bottom); }
.site-hero__text { display: grid; gap: var(--space-5); align-content: start; }
.site-hero__claim { font-size: 18px; line-height: 28px; font-weight: 500; color: var(--brand); }
.site-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.site-hero__card .fm-card { gap: var(--space-5); }
.site-hero__card .fm-stat__label { font-size: 14px; line-height: 20px; color: var(--text-muted); }

/* Fact card: right column on wide screens, full width below the buttons on narrow screens. */


/* ---------- Infrastructure table ---------- */
.fm-table th[scope="row"] { font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text); padding: 12px var(--space-4); }

/* ---------- Projects ---------- */
.site-project { align-content: start; }
.site-project__logo { height: 40px; width: auto; }
.site-project .fm-card__title { color: var(--text); }
.site-project__links { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: auto; }
.site-project__links .fm-btn--ghost { padding-inline: 0; margin-right: var(--space-4); color: var(--brand); }
.site-project__links .fm-btn--ghost:hover { background: none; text-decoration: underline; }
.site-project { border-top: 3px solid var(--brand); }

/* ---------- Contact ---------- */
.site-contact__info h2 { margin: 0; }
.site-contact__list { display: grid; grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-4); margin: 0; }
.site-contact__list dt { color: var(--text-subtle); }
.site-contact__list dd { margin: 0; }
.site-form { gap: var(--space-5); }
.site-form__grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 640px) { .site-form__grid { grid-template-columns: 1fr 1fr; } }
.site-form__req { color: var(--accent-text); }
.site-form__privacy { color: var(--text-muted); }
.fm-textarea { resize: vertical; min-height: 140px; }

/* ---------- Footer ---------- */
.site-footer__brand { display: flex; gap: var(--space-4); align-items: flex-start; }
.site-footer__brand img { width: 48px; height: 48px; flex: none; }
.site-footer__brand address { font-style: normal; }
.site-footer__brand strong { color: var(--text); font-weight: 500; }
.site-footer__links { display: flex; gap: var(--space-7); }
.site-footer__links ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2); }

/* ---------- Legal and error pages ---------- */
.site-legal h2 { margin-top: var(--space-5); }
.site-legal__h3 { font-size: 16px; line-height: 24px; font-weight: 500; color: var(--text); margin-bottom: 0; }
.site-legal__h3 + p, .site-legal__h3 + ul { margin-top: var(--space-2); }
.site-legal__list { margin: 0; padding-left: var(--space-5); color: var(--text-muted); display: grid; gap: var(--space-1); }
.site-legal p { overflow-wrap: anywhere; }
.site-error { padding-block: var(--space-9); }
