/* Viermond — Website UI-Kit · site.css
   Layout & section styling on top of ../../colors_and_type.css tokens. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--color-bg); color: var(--color-fg-2); overflow-x: hidden; }
img, svg { display: block; }
a { text-decoration: none; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.section { padding: 120px 0; }
.section-sm { padding: 80px 0; }

/* ── Brand marks ───────────────────────────────────────── */
.moon { display: block; }
.lockup { display: flex; align-items: center; gap: 13px; }
.lockup .wordmark { font-family: var(--font-display); font-weight: 500; font-size: 27px; line-height: 1; letter-spacing: 0.005em; }
.lockup .sub { font-family: var(--font-sans); font-weight: 600; font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.3em; margin-top: 3px; }

/* ── Header ────────────────────────────────────────────── */
.hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background var(--dur) var(--ease-standard), box-shadow var(--dur), border-color var(--dur); border-bottom: 1px solid transparent; }
.hdr-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.hdr.scrolled { background: rgba(247,243,236,0.82); backdrop-filter: blur(14px) saturate(1.4); border-bottom-color: var(--color-divider); }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a { font-size: 14.5px; font-weight: 500; color: var(--color-fg-2); transition: color var(--dur); position: relative; white-space: nowrap; }
.nav a:hover { color: var(--color-fg-1); }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -5px; height: 1.5px; width: 0; background: var(--color-accent); transition: width var(--dur) var(--ease-out); }
.nav a:hover::after { width: 100%; }
.hdr.on-dark .nav a { color: var(--silver-300); }
.hdr.on-dark .nav a:hover { color: var(--sand-100); }
.hdr.on-dark.scrolled { background: rgba(26,35,56,0.78); border-bottom-color: var(--color-divider-inverse); }
.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: inherit; }

/* ── Buttons ───────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-sans); font-size: 15px; font-weight: 600; border-radius: var(--radius-pill); padding: 13px 26px; border: 1.5px solid transparent; cursor: pointer; transition: all var(--dur) var(--ease-standard); letter-spacing: 0.01em; white-space: nowrap; }
.btn-primary { background: var(--color-primary); color: var(--color-on-primary); }
.btn-primary:hover { background: var(--color-primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--color-primary); border-color: var(--silver-500); }
.btn-secondary:hover { border-color: var(--color-primary); background: rgba(31,42,68,0.03); }
.btn-on-dark { background: var(--sand-100); color: var(--blue-900); }
.btn-on-dark:hover { background: #fff; transform: translateY(-1px); }
.btn-ghost-dark { background: transparent; color: var(--sand-100); border-color: rgba(237,231,217,0.35); }
.btn-ghost-dark:hover { border-color: var(--sand-100); }

/* ── Hero ──────────────────────────────────────────────── */
.hero { position: relative; background: var(--blue-800); color: var(--sand-100); overflow: hidden; }
.hero-stars { position: absolute; inset: 0; pointer-events: none; opacity: 0.5; }
.hero-inner { position: relative; z-index: 2; }
.eyebrow-gold { font-family: var(--font-sans); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: var(--tracking-wider); color: var(--gold-400); white-space: nowrap; }
.hero h1 { font-family: var(--font-display); font-weight: 500; color: var(--sand-100); letter-spacing: -0.02em; line-height: 1.09; }
.hero .slogan { font-family: var(--font-display); font-style: italic; color: var(--gold-400); white-space: nowrap; }
.hero p.intro { color: var(--silver-300); font-size: 18px; line-height: 1.7; max-width: 52ch; }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; pointer-events: none; }

/* ── Generic ───────────────────────────────────────────── */
.eyebrow-mark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-sans); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: var(--tracking-wider); color: var(--color-accent); }
.eyebrow-mark::before { content: ""; width: 26px; height: 1.5px; background: var(--color-accent); }
.section-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(34px, 4vw, 48px); color: var(--color-fg-1); letter-spacing: -0.02em; line-height: 1.12; }
.lead { font-size: 20px; line-height: 1.55; color: var(--color-fg-2); }

/* value grid */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.vcard { padding: 30px 26px 32px; border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-sm); border: 1px solid rgba(31,42,68,0.04); transition: transform var(--dur) var(--ease-out), box-shadow var(--dur); }
.vcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.vcard .vnum { font-family: var(--font-display); font-size: 22px; color: var(--gold-600); }
.vcard h3 { font-family: var(--font-display); font-weight: 500; font-size: 25px; color: var(--color-fg-1); margin: 14px 0 9px; }
.vcard p { font-size: 14.5px; line-height: 1.62; color: var(--color-fg-2); margin: 0; }

/* portfolio rows */
.pf { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 30px 0; border-top: 1px solid var(--color-divider); }
.pf:last-child { border-bottom: 1px solid var(--color-divider); }
.pf .pf-name { font-family: var(--font-display); font-weight: 500; font-size: 30px; color: var(--color-fg-1); }
.pf .pf-desc { font-size: 15px; color: var(--color-fg-2); max-width: 46ch; }
.pf .pf-tag { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold-700); }

/* philosophy / dark band */
.band-dark { background: var(--blue-900); color: var(--sand-100); }
.band-sand { background: var(--sand-300); }

/* contact */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--color-fg-1); }
.field input, .field textarea { font-family: var(--font-sans); font-size: 15px; color: var(--color-fg-1); background: var(--color-surface); border: 1.5px solid var(--silver-500); border-radius: var(--radius-sm); padding: 12px 14px; outline: none; transition: border var(--dur), box-shadow var(--dur); width: 100%; }
.field input:focus, .field textarea:focus { border-color: var(--color-focus); box-shadow: 0 0 0 3px var(--color-focus-ring); }

/* footer */
.footer { background: var(--blue-950); color: var(--silver-300); padding: 72px 0 36px; }
.footer a { color: var(--silver-300); transition: color var(--dur); }
.footer a:hover { color: var(--sand-100); }
.footer .legal { border-top: 1px solid var(--color-divider-inverse); margin-top: 44px; padding-top: 26px; font-size: 12.5px; color: var(--silver-700); display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* mobile */
.mobile-menu { position: fixed; inset: 0; z-index: 49; background: rgba(26,35,56,0.97); backdrop-filter: blur(8px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; opacity: 0; pointer-events: none; transition: opacity var(--dur); }
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-family: var(--font-display); font-size: 30px; color: var(--sand-100); }

@media (max-width: 860px) {
  .section { padding: 84px 0; }
  .nav, .hdr .btn { display: none; }
  .burger { display: block; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 36px; }
  .pf { flex-direction: column; align-items: flex-start; gap: 12px; }
  .container { padding: 0 22px; }
}
@media (max-width: 540px) { .grid-4 { grid-template-columns: 1fr; } }

/* --- PHP-Fassung: ergänzende Regeln --- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: var(--gold-100); border-left: 2px solid var(--gold-600); color: var(--ink-700); font-size: 14.5px; line-height: 1.6; padding: 14px 16px; margin-bottom: 20px; display: grid; gap: 6px; }
.legal-list { margin: 40px 0 0; display: grid; grid-template-columns: minmax(0,190px) minmax(0,1fr); border-top: 1px solid var(--color-divider); }
.legal-list dt { padding: 16px 24px 16px 0; font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: var(--color-fg-3); font-weight: 600; border-bottom: 1px solid var(--color-divider); }
.legal-list dd { margin: 0; padding: 16px 0; font-size: 15.5px; line-height: 1.7; color: var(--color-fg-2); border-bottom: 1px solid var(--color-divider); }
.legal-h { font-family: var(--font-display); font-size: 24px; font-weight: 500; color: var(--color-fg-1); margin: 38px 0 0; }
.legal-p { color: var(--color-fg-2); font-size: 16px; line-height: 1.75; margin: 12px 0 0; }
.foot-h { font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: var(--silver-700); font-weight: 600; margin-bottom: 14px; }
.foot-links { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
@media (max-width: 640px) { .legal-list { grid-template-columns: 1fr; } .legal-list dt { border-bottom: none; padding-bottom: 0; } .legal-list dd { padding-top: 6px; } }
