/* MFB – Marulli Facility & Bau · Stylesheet
   Farben aus dem Logo abgeleitet: Logo-Braun #4d3e29, Anthrazit, dezentes Bronze, Creme.
   Keine externen Schriften (Datenschutz, Performance) – Systemschriften. */

:root {
  --ink: #1f1c19;
  --ink-2: #2a2622;
  --brand: #4d3e29;
  --bronze: #b8935a;      /* Akzent auf dunklem Grund */
  --bronze-dark: #7a5a2c; /* Akzent/Links auf hellem Grund (Kontrast ≥ 4.5:1) */
  --cream: #f4eee3;
  --paper: #fbf9f5;
  --white: #ffffff;
  --line: #e0d6c6;
  --text: #26211c;
  --muted: #5a5047;
  --on-dark: #f4eee3;
  --on-dark-muted: #cfc6b8;
  --error: #a3261b;
  --error-bg: #fbecea;
  --ok: #24622f;
  --ok-bg: #e8f3ea;
  --warn-bg: #fbf3df;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(31, 28, 25, .06), 0 8px 24px rgba(31, 28, 25, .07);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --container: 1180px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
  text-rendering: optimizeLegibility;
}
@media (min-width: 768px) { body { font-size: 1.125rem; } }
img, svg { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: var(--bronze-dark); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand); text-decoration-thickness: 2px; }
h1, h2, h3, h4, .h3, .h4 { font-family: var(--serif); color: var(--ink); line-height: 1.18; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.005em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.4rem); }
h3, .h3 { font-size: 1.3rem; }
.h4, h4 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }

:focus-visible { outline: 3px solid var(--bronze-dark); outline-offset: 3px; border-radius: 2px; }
.section-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--bronze); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; color: var(--white); }
main:focus { outline: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }
.narrow { max-width: 820px; }

.eyebrow { font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze-dark); margin-bottom: .8em; }
.section-dark .eyebrow { color: var(--bronze); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
.lead-sm { font-size: 1.12rem; color: var(--ink); }
.lead-light { font-size: 1.15rem; color: var(--on-dark-muted); }
.hint { font-size: .92rem; color: var(--muted); margin: 0 0 .4em; }
.note { font-size: .98rem; color: var(--muted); border-left: 3px solid var(--bronze); padding: .3em 0 .3em 1em; margin: 1.2em 0; }
.note-block { background: var(--cream); padding: 1.4em 1.6em; border-left-width: 4px; border-radius: 0 var(--radius) var(--radius) 0; }
.empty-note { color: var(--muted); font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.35em; border-radius: var(--radius); border: 2px solid transparent;
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--brand); color: var(--white); }
.section-dark .btn-primary, .cta-band .btn-primary { background: var(--bronze); color: var(--ink); }
.section-dark .btn-primary:hover, .cta-band .btn-primary:hover { background: var(--on-dark); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--on-dark); border-color: var(--on-dark-muted); }
.btn-outline-light:hover { border-color: var(--on-dark); color: var(--white); }
.btn-danger { background: var(--white); color: var(--error); border-color: var(--error); }
.btn-danger:hover { background: var(--error); color: var(--white); }
.btn-large { min-height: 56px; padding: .85em 1.6em; font-size: 1.05rem; }
.btn-small { min-height: 40px; padding: .4em .9em; font-size: .92rem; }
.btn svg { flex: none; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--bronze-dark); text-decoration: underline; cursor: pointer; min-height: 44px; }

/* ---------- Header / Navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 249, 245, .97); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: block; flex: none; padding: 6px 0; }
.brand-logo { width: 112px; height: auto; }
@media (min-width: 768px) { .brand-logo { width: 132px; } }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px;
  background: var(--ink); color: var(--white); border: 0; border-radius: var(--radius); font: inherit; font-weight: 650; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .2s ease; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a:not(.btn) { display: flex; align-items: center; min-height: 48px; color: var(--ink); text-decoration: none; font-weight: 600; }
.main-nav a:not(.btn):hover { color: var(--bronze-dark); }
.main-nav a[aria-current="page"] { color: var(--bronze-dark); }
.nav-actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 1023.98px) {
  .main-nav { width: 100%; padding-bottom: 16px; }
  .header-inner { flex-wrap: wrap; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 20px 24px; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .main-nav.is-open { display: block; }
  .main-nav li + li { border-top: 1px solid var(--line); }
  .main-nav a:not(.btn) { font-size: 1.15rem; min-height: 56px; }
  .main-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--bronze); padding-left: 12px; }
  .nav-actions { margin-top: 16px; flex-direction: column; }
  .nav-actions .btn { width: 100%; min-height: 56px; }
}
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .main-nav { display: flex; align-items: center; gap: 28px; }
  .main-nav ul { display: flex; gap: 26px; }
  .main-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--bronze); }
  .nav-phone span { white-space: nowrap; }
}

/* ---------- Sections ---------- */
.section { padding-top: 64px; padding-bottom: 64px; }
.section-tight { padding-top: 40px; padding-bottom: 64px; }
@media (min-width: 768px) { .section { padding-top: 96px; padding-bottom: 96px; } }
.section-cream { background: var(--cream); }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark a:not(.btn) { color: var(--bronze); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p:last-child { color: var(--muted); font-size: 1.1rem; }
.section-foot { margin-top: 36px; }
.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } }

/* ---------- Hero ---------- */
.hero { background: var(--cream); padding: 48px 0 56px; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .hero { padding: 88px 0 96px; } }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; } }
.hero h1 { margin-bottom: .45em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
@media (max-width: 599.98px) { .hero-actions .btn { width: 100%; } }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
@media (min-width: 600px) { .hero-points { display: flex; flex-wrap: wrap; gap: 8px 28px; } }
.hero-points li { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.hero-points svg { color: var(--bronze-dark); }
.hero-visual { display: none; }
@media (min-width: 900px) { .hero-visual { display: block; } }
.hero-logo-frame { background: var(--paper); border: 1px solid var(--line); padding: 56px 40px; position: relative; }
.hero-logo-frame::before { content: ""; position: absolute; inset: 12px; border: 1px solid var(--bronze); opacity: .55; pointer-events: none; }
.hero-logo-frame img { width: 100%; height: auto; }

.page-hero { background: var(--cream); padding: 48px 0 40px; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .page-hero { padding: 72px 0 56px; } }
.page-hero h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.page-hero .lead { margin-bottom: 0; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; }
.meta svg { color: var(--bronze-dark); }

.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: .92rem; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin: 0 6px; color: var(--muted); }
.breadcrumb a { display: inline-block; padding: 6px 0; }

/* ---------- Leistungen ---------- */
.service-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .service-grid { grid-template-columns: repeat(4, 1fr); } }
.service-card { background: var(--white); padding: 28px 24px 30px; position: relative; }
.service-card h3 { font-size: 1.2rem; margin-bottom: .5em; }
.service-card h3 a { color: var(--ink); text-decoration: none; }
.service-card h3 a::after { content: ""; position: absolute; inset: 0; }
.service-card:hover { background: var(--paper); }
.service-card:hover h3 a { color: var(--bronze-dark); text-decoration: underline; }
.service-card:focus-within { outline: 3px solid var(--bronze-dark); outline-offset: -3px; }
.service-card h3 a:focus-visible { outline: none; }
.service-card p { margin: 0; color: var(--muted); font-size: 1rem; }
.service-num { display: block; font-family: var(--serif); font-size: 1rem; color: var(--bronze-dark); margin-bottom: 14px; letter-spacing: .05em; }

.service-index { padding-top: 32px; }
.service-index ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.service-index a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; background: var(--white); font-size: .95rem; font-weight: 600; }
.service-index a:hover { border-color: var(--ink); }
.service-list { padding-bottom: 64px; }
.service-detail { display: grid; gap: 12px; padding: 48px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .service-detail { grid-template-columns: 1fr 1.6fr; gap: 56px; } }
.service-detail-head h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.check-list { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 8px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list svg { flex: none; margin-top: .25em; color: var(--bronze-dark); }
.service-list > .note-block { margin-top: 48px; }

/* ---------- Ablauf / Werte ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; padding: 18px 0; border-top: 1px solid rgba(244, 238, 227, .16); }
.steps li:last-child { border-bottom: 1px solid rgba(244, 238, 227, .16); }
.steps li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font-family: var(--serif); font-size: 1.25rem; color: var(--bronze); }
.steps strong { color: var(--white); font-size: 1.1rem; }
.steps span { color: var(--on-dark-muted); }

.value-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
@media (min-width: 640px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .value-grid { grid-template-columns: repeat(4, 1fr); } }
.value-grid li { border-top: 3px solid var(--bronze); padding-top: 18px; }
.value-grid p { color: var(--muted); margin: 0; }

/* ---------- Projekte ---------- */
.project-grid { display: grid; gap: 28px; }
@media (min-width: 640px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }
.project-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.project-card:hover { box-shadow: var(--shadow); }
@media (prefers-reduced-motion: no-preference) { .project-card:hover { transform: translateY(-2px); } }
.project-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.project-card-link:hover { color: inherit; }
.project-card-media { aspect-ratio: 3 / 2; background: var(--cream); overflow: hidden; }
.project-card-media img, .project-card-media .img-missing { width: 100%; height: 100%; object-fit: cover; }
.project-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.project-card-body .eyebrow { margin-bottom: .3em; font-size: .75rem; }
.project-card-title { font-size: 1.25rem; margin-bottom: .3em; }
.project-card-body p { color: var(--muted); font-size: 1rem; margin-bottom: .8em; }
.link-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--bronze-dark); }
.project-card-link:hover .link-more { text-decoration: underline; }
.img-missing { display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(45deg, var(--cream), var(--cream) 12px, #ece4d5 12px, #ece4d5 24px); color: var(--muted); font-weight: 600; min-height: 200px; }
.detail-placeholder { aspect-ratio: 16 / 9; margin-bottom: 32px; }

.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: .25em .65em; border-radius: 999px; background: var(--cream); color: var(--ink); border: 1px solid var(--line); vertical-align: middle; }
.badge-demo { background: #fff4d6; border-color: #e3c06d; color: #5a4100; align-self: flex-start; margin-bottom: .8em; }

.filter { margin-bottom: 32px; }
.filter ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.filter a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.filter a:hover { border-color: var(--ink); }
.filter a[aria-current="page"] { background: var(--ink); color: var(--white); border-color: var(--ink); }

.project-detail { padding-top: 40px; padding-bottom: 64px; }
.project-detail-grid { display: grid; gap: 32px; margin: 40px 0; }
@media (min-width: 900px) { .project-detail-grid { grid-template-columns: 1.6fr 1fr; gap: 56px; } }
.scope-box { background: var(--cream); padding: 24px 26px; border-radius: var(--radius); align-self: start; }
.gallery-section { margin-bottom: 40px; }
.gallery { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.gallery-link { display: block; }

/* ---------- Vorher-Nachher-Regler ---------- */
.ba { margin: 0; }
.ba-frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--cream); }
.ba-layer img { width: 100%; height: auto; }
.ba-tag { position: absolute; top: 12px; z-index: 2; background: rgba(31, 28, 25, .85); color: var(--white); font-size: .85rem; font-weight: 700; padding: 4px 10px; border-radius: 4px; letter-spacing: .04em; }
.ba-tag-before { left: 12px; } .ba-tag-after { right: 12px; }
/* Ohne JavaScript: Bilder untereinander */
.ba:not(.is-ready) .ba-layer { position: relative; }
.ba:not(.is-ready) .ba-layer + .ba-layer { margin-top: 8px; }
.ba:not(.is-ready) .ba-range, .ba:not(.is-ready) .ba-divider, .ba:not(.is-ready) .ba-buttons, .ba:not(.is-ready) .ba-hint { display: none; }
.ba.is-ready .ba-before { position: absolute; inset: 0; z-index: 1; clip-path: inset(0 50% 0 0); }
.ba.is-ready .ba-before img { height: 100%; object-fit: cover; }
.ba-divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: var(--white); z-index: 3; pointer-events: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.ba-knob { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--white); box-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.ba-knob::before, .ba-knob::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -7px; border: 7px solid transparent; }
.ba-knob::before { left: 7px; border-right-color: var(--ink); }
.ba-knob::after { right: 7px; border-left-color: var(--ink); }
.ba-range { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; touch-action: pan-y; }
.ba-range:focus-visible + * , .ba-frame:focus-within .ba-knob { outline: 3px solid var(--bronze-dark); outline-offset: 3px; }
.ba figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; color: var(--muted); font-size: .95rem; }
.ba-buttons { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Prosa / Rechtliches ---------- */
.prose h2 { font-size: 1.6rem; margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.legal h2 { font-size: 1.3rem; }
.about-logo { background: var(--cream); padding: 48px 32px; display: flex; justify-content: center; border-radius: var(--radius); }

/* ---------- CTA ---------- */
.cta-band { padding: 56px 0; background: var(--brand); }
.cta-inner { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1fr auto; gap: 48px; } }
.cta-band h2 { color: var(--white); margin-bottom: .3em; }
.cta-band p { color: var(--on-dark); margin: 0; font-size: 1.1rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 599.98px) { .cta-actions .btn { width: 100%; } }

/* ---------- Kontakt / Formular ---------- */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 340px 1fr; gap: 56px; align-items: start; } }
.contact-ways { display: grid; gap: 12px; }
@media (min-width: 960px) { .contact-ways { position: sticky; top: calc(var(--header-h) + 24px); } }
.contact-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; min-height: 56px; }
a.contact-card:hover { border-color: var(--ink); color: var(--text); }
.contact-card svg { flex: none; margin-top: 3px; color: var(--bronze-dark); }
.contact-card strong { color: var(--ink); }

.form-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; }
@media (min-width: 768px) { .form-wrap { padding: 40px; } }
fieldset { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
legend { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--ink); margin-bottom: 14px; padding: 0; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 18px; min-width: 0; }
.field-row { display: grid; gap: 0 20px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
label { font-weight: 650; color: var(--ink); }
.req, .opt { font-weight: 400; color: var(--muted); font-size: .9em; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input:not([type]), select, textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; font-size: 1.05rem; color: var(--text);
  background: var(--white); border: 1.5px solid #8f8478; border-radius: var(--radius);
}
textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--bronze-dark); outline-offset: 1px; border-color: var(--ink); }
input[type="file"] { padding: 12px; min-height: 52px; border: 1.5px dashed #8f8478; border-radius: var(--radius); background: var(--paper); font: inherit; font-size: 1rem; width: 100%; }
input[type="file"]::file-selector-button { font: inherit; font-weight: 650; padding: 8px 14px; margin-right: 12px; border: 0; border-radius: var(--radius); background: var(--ink); color: var(--white); cursor: pointer; min-height: 40px; }
.has-error input, .has-error select, .has-error textarea, [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field-error { color: var(--error); font-weight: 650; font-size: .95rem; margin: 0; display: flex; gap: 6px; }
.field-error::before { content: "!"; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 1.3em; height: 1.3em; border-radius: 50%; background: var(--error); color: var(--white); font-size: .8em; margin-top: .15em; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.privacy-note { font-size: .95rem; color: var(--muted); }
.form-status { margin-top: 12px; }
@media (max-width: 599.98px) { .inquiry-form button[type="submit"] { width: 100%; } }

.alert { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 24px; border-left: 5px solid; }
.alert h2 { margin-bottom: .3em; }
.alert ul { margin: .4em 0 0; }
.alert p:last-child { margin-bottom: 0; }
.alert-error { background: var(--error-bg); border-color: var(--error); color: #5e130c; }
.alert-error a { color: #5e130c; font-weight: 650; }
.alert-ok { background: var(--ok-bg); border-color: var(--ok); color: #173f1e; }
.alert-warn { background: var(--warn-bg); border-color: #c9a227; color: #4a3a00; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 56px 0 24px; font-size: 1rem; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1.2fr .8fr .9fr; gap: 48px; } }
.footer-brand img { width: 170px; margin-bottom: 18px; }
.footer-title { font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; color: var(--bronze); margin-bottom: 14px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer-list li { display: flex; gap: 10px; align-items: flex-start; }
.footer-list a { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; color: var(--on-dark); text-decoration: none; }
.footer-list a:hover { color: var(--white); text-decoration: underline; }
.footer-list svg { flex: none; color: var(--bronze); }
.footer-list > li > svg { margin-top: 3px; }
.footer-region { margin-top: 16px; font-size: .95rem; }
.footer-bottom { border-top: 1px solid rgba(244, 238, 227, .14); margin-top: 40px; padding-top: 20px; font-size: .9rem; }
.footer-bottom p { margin: 0; }

/* ---------- Admin ---------- */
.admin { background: #f3f1ed; }
.admin-header { background: var(--white); border-bottom: 1px solid var(--line); }
.admin-header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; }
.admin-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 700; }
.admin-brand img { width: 84px; }
.admin-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; }
.admin-nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ink); font-weight: 600; }
.admin-nav form { margin: 0; }
.count { background: var(--error); color: var(--white); border-radius: 999px; padding: 0 8px; font-size: .8rem; }
.admin-main { padding-top: 32px; padding-bottom: 64px; }
.admin-main h1 { font-size: 2rem; }
.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.admin-head h1 { margin: 0; }
.admin-section { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.admin-section h2 { font-size: 1.35rem; }
.admin-cols { display: grid; gap: 24px; }
@media (min-width: 1100px) { .admin-cols { grid-template-columns: 1fr 1.15fr; align-items: start; } }
.stack > * + * { margin-top: 4px; }
.narrow-form { max-width: 520px; background: var(--white); padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.login-box { max-width: 440px; margin: 40px auto; background: var(--white); padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.admin-table th, .admin-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table thead th { background: var(--cream); font-size: .9rem; }
.admin-table tbody th { font-weight: 650; }
.admin-table tr.unread th, .admin-table tr.unread td { background: #fffaf0; }
.actions { white-space: nowrap; }
.thumb { width: 80px; height: 56px; object-fit: cover; border-radius: 4px; }
.thumb-empty { display: inline-flex; align-items: center; justify-content: center; background: var(--cream); color: var(--muted); }
.status { display: inline-block; padding: .2em .7em; border-radius: 999px; font-size: .85rem; font-weight: 700; }
.status-published, .status-mail-sent { background: var(--ok-bg); color: var(--ok); }
.status-draft, .status-mail-pending { background: var(--cream); color: var(--muted); }
.status-archived { background: #e9e6e1; color: #4a443d; }
.status-mail-failed { background: var(--error-bg); color: var(--error); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button-row form { margin: 0; }
.image-admin-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 20px; }
.image-admin { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
@media (min-width: 700px) { .image-admin { grid-template-columns: 170px 1fr; } .image-admin > form:last-child { grid-column: 2; } }
.image-admin .field-row { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.image-admin .field { margin-bottom: 10px; }
.image-admin img { border-radius: 4px; }
.detail-list { display: grid; gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 24px; }
.detail-list > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.detail-list > div:last-child { border-bottom: 0; }
.detail-list dt { font-weight: 650; }
.detail-list dd { margin: 0; overflow-wrap: anywhere; }
.pre { white-space: pre-wrap; background: var(--white); border: 1px solid var(--line); padding: 16px; border-radius: var(--radius); }
.inquiry-files { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.inquiry-files img { width: 200px; height: 150px; object-fit: cover; border-radius: 4px; }

@media print {
  .site-header, .site-footer, .cta-band, .skip-link { display: none; }
}
