/* ============================================================
   Borgards Tontechnik & PA-Verleih — Relaunch
   Warm-editorial Design-System, Light / System / Dark
   ============================================================ */

@import url("fonts.css");

:root {
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;

  --bg: #fff9ef;
  --bg-elev: #fffdf7;
  --surface: #f6eddd;
  --ink: #2a1d12;
  --ink-soft: #71604e;
  --accent: #c72a00;
  --accent-hover: #a82300;
  --on-accent: #fff9ef;
  --line: rgba(42, 29, 18, 0.16);
  --line-strong: rgba(42, 29, 18, 0.32);
  --shadow-card: 0 1px 2px rgba(42, 29, 18, 0.06), 0 12px 32px -12px rgba(42, 29, 18, 0.18);
  --shadow-card-hover: 0 2px 4px rgba(42, 29, 18, 0.08), 0 24px 48px -16px rgba(42, 29, 18, 0.28);
  --header-bg: rgba(255, 249, 239, 0.85);
  --focus-ring: 0 0 0 3px rgba(199, 42, 0, 0.35);

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #171009;
  --bg-elev: #1e150c;
  --surface: #251a10;
  --ink: #f5e9da;
  --ink-soft: #b8a48d;
  --accent: #e8602c;
  --accent-hover: #f07444;
  --on-accent: #1d1208;
  --line: rgba(245, 233, 218, 0.14);
  --line-strong: rgba(245, 233, 218, 0.32);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -12px rgba(0, 0, 0, 0.55);
  --shadow-card-hover: 0 2px 4px rgba(0, 0, 0, 0.5), 0 24px 48px -16px rgba(0, 0, 0, 0.65);
  --header-bg: rgba(23, 16, 9, 0.82);
  --focus-ring: 0 0 0 3px rgba(232, 96, 44, 0.45);

  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.35s ease, color 0.35s ease;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

img { max-width: 100%; display: block; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: -2px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease;
}
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

.wrap {
  width: min(1180px, 100% - 2 * clamp(20px, 5vw, 48px));
  margin-inline: auto;
}

/* ---------- Overline / Eyebrow ---------- */
.overline {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.overline::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: var(--accent);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 0.9rem;
}

.brand { display: flex; align-items: center; line-height: 0; }
.brand img { height: 46px; width: auto; }
.brand .logo-for-dark { display: none; }
[data-theme="dark"] .brand .logo-for-light { display: none; }
[data-theme="dark"] .brand .logo-for-dark { display: block; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { color: var(--accent); }
.header-phone svg { width: 17px; height: 17px; flex: none; }
.header-social {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.header-social:hover { border-color: var(--accent); color: var(--accent); }
.header-social svg { width: 18px; height: 18px; }

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding-block: 0.25rem;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--accent);
  transition: right 0.25s ease;
}
.main-nav a:hover::after { right: 0; }

/* ---------- Theme-Switch (segmented) ---------- */
.theme-switch {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  isolation: isolate;
}
.theme-switch .thumb {
  position: absolute;
  top: 3px; bottom: 3px; left: 3px;
  width: calc((100% - 6px) / 3);
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: transform 0.3s cubic-bezier(0.3, 0.9, 0.3, 1);
  z-index: -1;
}
.theme-switch[data-active="1"] .thumb { transform: translateX(100%); }
.theme-switch[data-active="2"] .thumb { transform: translateX(200%); }
.theme-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.theme-switch button[aria-pressed="true"] { color: var(--ink); }
.theme-switch svg { width: 15px; height: 15px; flex: none; }

/* ---------- Burger / Mobile Nav ---------- */
.nav-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  padding: 0.5rem 0.9rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  color: #fdf6ec;
  overflow: hidden;
}
.hero-media,
.hero-media picture { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 62%;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(23, 14, 6, 0.55) 0%, rgba(23, 14, 6, 0.15) 38%, rgba(23, 14, 6, 0.82) 100%);
}
.hero-content {
  position: relative;
  padding-block: clamp(6rem, 14vh, 9rem) clamp(2.5rem, 6vh, 4rem);
}
.hero .overline { color: #f2a06b; }
.hero .overline::before { background: #f2a06b; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 7.2vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 1.4rem;
  max-width: 15ch;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: #f5b183;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 52ch;
  color: rgba(253, 246, 236, 0.88);
  margin: 0 0 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-meta {
  position: relative;
  border-top: 1px solid rgba(253, 246, 236, 0.25);
  padding-block: 1.1rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: rgba(253, 246, 236, 0.78);
}
.hero-meta strong { color: #fdf6ec; font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-solid { background: var(--accent); color: var(--on-accent); }
.btn-solid:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost {
  border-color: currentColor;
  color: inherit;
  background: transparent;
}
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); }
.hero .btn-ghost:hover { color: #f5b183; border-color: #f5b183; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.section + .section { border-top: 1px solid var(--line); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2rem clamp(2rem, 6vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
.section-head .lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  margin: 0;
  max-width: 46ch;
}

/* ---------- Willkommen ---------- */
.welcome-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.welcome-text p { margin: 0 0 1.3rem; }
.welcome-text p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.4em;
  font-weight: 600;
  float: left;
  line-height: 0.82;
  padding-right: 0.12em;
  color: var(--accent);
}
.claim {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding-left: 1.2rem;
  margin: 2rem 0 0;
}

.facts {
  position: sticky;
  top: 110px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.facts h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 1.4rem;
}
.fact {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.9rem;
  border-top: 1px solid var(--line);
}
.fact:first-of-type { border-top: 0; }
.fact .num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 3.2ch;
  line-height: 1;
}
.fact .lbl { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Service ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
}
.service-card {
  grid-column: span 6;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-card-hover);
}
.service-card:nth-child(2) { margin-top: clamp(0rem, 4vw, 3.5rem); }
.service-card:nth-child(3) { margin-top: calc(clamp(0rem, 4vw, 3.5rem) * -1); }
.service-card figure { margin: 0; overflow: hidden; }
.service-card picture { display: block; }
.service-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.service-card .body {
  padding: clamp(1.3rem, 2.5vw, 1.9rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}
.service-card .kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  margin: 0;
}
.service-card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Leistungs-Chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.chip {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.chip:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

/* ---------- Über uns ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.about-photo { position: sticky; top: 110px; }
.about-photo figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.about-photo picture { display: block; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-photo figcaption {
  font-size: 0.82rem;
  color: var(--ink-soft);
  padding: 0.8rem 0.4rem 0;
}
.about-text p { margin: 0 0 1.3rem; }

.timeline {
  margin-top: 2.4rem;
  border-top: 1px solid var(--line);
}
.timeline-item {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.4rem;
  padding-block: 1.3rem;
  border-bottom: 1px solid var(--line);
}
.timeline-item .when {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent);
}
.timeline-item p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- Kontakt ---------- */
.contact-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.contact-info h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.08;
  margin: 0 0 1.4rem;
  text-wrap: balance;
}
.contact-info p { color: var(--ink-soft); margin: 0 0 1.6rem; max-width: 42ch; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-list svg { width: 20px; height: 20px; flex: none; margin-top: 0.2rem; color: var(--accent); }
.contact-list .lbl { display: block; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.contact-list a { color: var(--ink); font-weight: 500; }
.contact-list a:hover { color: var(--accent); }

.contact-form {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 1.1rem;
}
.field { display: grid; gap: 0.45rem; }
.field label { font-size: 0.88rem; font-weight: 600; }
.field label small { color: var(--ink-soft); font-weight: 400; }
.field input,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}
.field textarea { min-height: 150px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin: 0; }
.form-note a { color: var(--ink-soft); }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-status {
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  display: none;
}
.form-status.is-ok {
  display: block;
  background: color-mix(in srgb, #2e7d32 14%, transparent);
  border: 1px solid color-mix(in srgb, #2e7d32 45%, transparent);
}
.form-status.is-error {
  display: block;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #171009;
  color: #f5e9da;
  padding-block: clamp(3rem, 7vw, 5rem) 2rem;
}
.site-footer a { color: #f5e9da; }
.site-footer a:hover { color: #f07444; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: 2.5rem;
  padding-bottom: 2.6rem;
  border-bottom: 1px solid rgba(245, 233, 218, 0.16);
}
.footer-brand img { height: 44px; width: auto; margin-bottom: 1.2rem; }
.footer-brand p {
  color: rgba(245, 233, 218, 0.72);
  margin: 0 0 1.4rem;
  max-width: 40ch;
  font-size: 0.95rem;
}
.footer-claim {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: #f5b183 !important;
  text-decoration: none;
}
.footer-col h3 {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 233, 218, 0.55);
  margin: 0 0 1.1rem;
  font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; font-size: 0.95rem; }
.footer-col a { text-decoration: none; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  align-items: center;
  padding-top: 1.6rem;
  font-size: 0.85rem;
  color: rgba(245, 233, 218, 0.55);
}
.footer-bottom .facebook {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 600;
  color: #f5e9da;
  border: 1px solid rgba(245, 233, 218, 0.3);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.footer-bottom .facebook:hover { border-color: #f07444; color: #f07444; }
.footer-bottom .facebook svg { width: 17px; height: 17px; }
.site-footer .theme-switch {
  background: rgba(245, 233, 218, 0.08);
  border-color: rgba(245, 233, 218, 0.2);
}
.site-footer .theme-switch .thumb {
  background: rgba(245, 233, 218, 0.14);
  border-color: rgba(245, 233, 218, 0.28);
}
.site-footer .theme-switch button,
.site-footer .theme-switch button[aria-pressed="true"] { color: #f5e9da; }

/* ---------- Legal pages ---------- */
.legal { padding-top: 140px; }
.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  margin: 0 0 2rem;
}
.legal h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 2.4rem 0 0.8rem;
}
.legal h3 { font-size: 1.08rem; margin: 1.8rem 0 0.5rem; }
.legal p, .legal li { color: var(--ink-soft); max-width: 70ch; }
.legal main { padding-bottom: 5rem; }

/* ---------- Reveal-Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .service-card, .btn { transition: none; }
  * { animation-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .welcome-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .facts, .about-photo { position: static; }
  .about-photo img { aspect-ratio: 3 / 2; }
  .service-card:nth-child(2), .service-card:nth-child(3) { margin-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .header-inner { gap: 0.65rem; }
  .main-nav {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem clamp(20px, 5vw, 48px) 1.2rem;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding-block: 0.8rem; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: 0; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .header-phone { order: 2; }
  .header-social { order: 3; }
  .nav-toggle { order: 4; margin-left: 0; }
  .brand { margin-right: auto; }
  .site-footer .theme-switch { margin-left: 0; }
  .site-footer .theme-switch button span { display: none; }
  .site-footer .theme-switch button { padding: 0.4rem 0.65rem; }
  .service-card { grid-column: span 12; }
  .form-row { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.3rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom .facebook { margin-left: 0; }
  .hero-meta { gap: 0.5rem 1.4rem; }
}

@media (max-width: 540px) {
  .header-phone {
    width: 34px;
    height: 34px;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
  }
  .header-phone span { display: none; }
}

/* ---------- AI-generated content label ---------- */
.ai-marked {
  display: block;
  position: relative;
}

.hero-media.ai-marked {
  position: absolute;
}

.ai-label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.35em 0.7em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255, 253, 247, 0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 1px 2px rgba(42, 29, 18, 0.12);
  pointer-events: none;
  user-select: none;
}

[data-theme="dark"] .ai-label {
  color: var(--ink);
  background: rgba(30, 21, 12, 0.78);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .ai-label {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
