/* Local SIL OFL fonts (zero external requests, DSGVO-safe) */
@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/bitter-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/bitter-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/bitter-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/bitter-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/bitter-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/bitter-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('./fonts/ibm-plex-sans-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('./fonts/ibm-plex-sans-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('./fonts/ibm-plex-sans-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('./fonts/ibm-plex-sans-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('./fonts/ibm-plex-sans-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('./fonts/ibm-plex-sans-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Palette derived from Schreinerei Schröder vehicle livery & sawblade emblem */
  --bg: #FAF9F6;
  --surface: #F1EFE9;
  --white: #FFFFFF;
  --ink: #1F2426;
  --ink-muted: #4B5254;
  --rule: #D6D1C6;
  --rule-strong: #656B68;
  --accent: #3F500D;
  --accent-hover: #2F3D09;
  --sawblade: #C4D63B;
  --error: #9E2A2B;

  --font-display: 'Bitter', Georgia, serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1200px;
  --gutter: clamp(1.125rem, 4vw, 2.5rem);
  --radius-sm: 2px;
  --radius-md: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.98rem + 0.14vw, 1.0625rem);
  line-height: 1.62;
  overflow-x: clip;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Skip link for keyboard navigation */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--bg);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Typography strictly sized by heading level */
h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
  hyphens: auto;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.9rem, 1.3rem + 2.1vw, 3.1rem);
  line-height: 1.14;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.4rem, 1.15rem + 0.95vw, 2.05rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.1rem, 1.04rem + 0.25vw, 1.275rem);
  line-height: 1.32;
}

p {
  margin: 0;
  max-width: 64ch;
}

p + p {
  margin-top: 1rem;
}

.tnum {
  font-variant-numeric: tabular-nums;
}

/* Header & Navigation */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  min-height: 76px;
  padding-block: 0.75rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
  flex-shrink: 0;
  max-width: 100%;
}

.brand-saw {
  width: 18px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-wordmark {
  height: 30px;
  width: auto;
  display: block;
}

.header-mobile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.header-phone-mobile {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.9rem;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.site-nav {
  display: none;
  border-top: 1px solid var(--rule);
  padding-block: 0.75rem 1.25rem;
}

.site-nav.is-open {
  display: block;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 3px solid transparent;
}

.nav-link[aria-current="page"] {
  font-weight: 600;
  border-bottom-color: var(--sawblade);
}

.nav-phone-desktop {
  display: none;
}

/* Buttons & Actions */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  background-color: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.btn-primary:active {
  background-color: var(--accent-hover);
}

.link-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.5rem 0.25rem;
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.25em;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

/* Section 1: Asymmetric Hero */
.hero {
  padding-block: clamp(2rem, 5vw, 4.5rem) clamp(2.5rem, 6vw, 5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-lead {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.1875rem);
  color: var(--ink-muted);
  line-height: 1.58;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding-top: 0.35rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.hero-figure {
  margin: 0;
}

.hero-image-frame {
  position: relative;
  border: 1px solid var(--rule);
  background: var(--surface);
}

.hero-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 42%;
}

.figure-caption {
  margin-top: 0.65rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
  overflow-wrap: anywhere;
}

/* Section 2: Orientation Strip (Planned vs. Repair/Insurance) */
.orientation {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
}

.orientation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.orientation-lane {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.orientation-lane + .orientation-lane {
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.orientation-lane p {
  color: var(--ink-muted);
}

/* Section 3: Weighted Services + Aufmaßliste Ledger */
.section {
  padding-block: clamp(2.75rem, 6vw, 5.25rem);
}

.section-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.section-intro {
  color: var(--ink-muted);
  max-width: 58ch;
}

.featured-craft {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--rule);
}

.featured-craft > * {
  min-width: 0;
}

.craft-photos {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 0.85rem;
  align-items: end;
}

.craft-photos figure {
  margin: 0;
  min-width: 0;
}

.craft-photos img {
  width: 100%;
  object-fit: cover;
  background: var(--surface);
}

.craft-photo-tall {
  aspect-ratio: 3 / 4;
}

.craft-photo-detail {
  aspect-ratio: 4 / 5;
  object-position: center 82%;
}

.featured-craft-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.featured-craft-copy p {
  color: var(--ink-muted);
}

/* Hairline Ledger (Werkliste / Aufmaß) */
.service-ledger {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ledger-row {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.35rem 1rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.ledger-num {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.ledger-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
}

.ledger-desc {
  grid-column: 2;
  color: var(--ink-muted);
  max-width: 60ch;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ledger-footer {
  margin-top: 1.5rem;
}

/* Section 4: Werkstatt & Einblicke (Diptych) */
.workshop-section {
  border-top: 1px solid var(--rule);
}

.workshop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.workshop-photos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.workshop-photos figure {
  margin: 0;
}

.workshop-photo-wide {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.workshop-photo-terrace {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.workshop-copy {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.workshop-copy p {
  color: var(--ink-muted);
}

/* Honest, visibly marked owner placeholders */
.placeholder-box {
  padding: 1rem 1.15rem;
  border: 1px dashed var(--rule-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.placeholder-label {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.1rem 0.45rem;
  background: var(--sawblade);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

/* Section 5: Real Clients (Typographic Reference Index, NOT a logo wall) */
.references-section {
  border-top: 1px solid var(--rule);
}

.references-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--rule);
}

.references-list li {
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-display);
  font-size: 1.075rem;
  font-weight: 500;
  color: var(--ink);
}

.references-note {
  margin-top: 1.25rem;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

/* Section 6: Contact & Draft Enquiry (Calm secondary light surface, NO dark band) */
.contact-section {
  background: var(--surface);
  border-top: 1px solid var(--rule);
  padding-block: clamp(3rem, 6.5vw, 5.25rem);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-phone-big {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--sawblade);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.2em;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

.contact-dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.15rem;
}

.contact-dl div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  align-items: baseline;
}

.contact-dl dt {
  flex: 0 0 6.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.contact-dl dd {
  flex: 1 1 12rem;
  min-width: 0;
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* Plain accessible draft form */
.enquiry-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding-top: 0.25rem;
}

.draft-banner {
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  font-size: 0.9375rem;
  color: var(--ink);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
}

.field-hint {
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.8rem;
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.45;
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: var(--error);
}

.field-error {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--error);
  min-height: 1.2em;
}

.form-status {
  padding: 0.9rem 1rem;
  background: var(--bg);
  border: 1.5px solid var(--accent);
  color: var(--ink);
  font-size: 0.9375rem;
}

.form-status[hidden] {
  display: none;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
}

.btn-quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.65rem 1rem;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
}

/* Subpage Intro & Detail Layout */
.page-intro {
  padding-block: clamp(2rem, 5vw, 3.75rem) clamp(1.75rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--rule);
}

.page-intro h1 {
  max-width: 24ch;
}

.page-intro p {
  margin-top: 1rem;
  color: var(--ink-muted);
  font-size: clamp(1.03rem, 0.98rem + 0.25vw, 1.15rem);
}

.service-detail-list {
  display: flex;
  flex-direction: column;
}

.service-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem 2.5rem;
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--rule);
  align-items: start;
}

.service-detail-head {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
}

.service-detail-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.service-detail-body p {
  color: var(--ink-muted);
}

.service-detail-media figure {
  margin: 0;
}

.service-detail-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.service-detail-media img.portrait-crop {
  aspect-ratio: 4 / 5;
}

/* Legal pages (Impressum / Datenschutz) */
.legal-notice {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}

.legal-body {
  padding-block: clamp(2rem, 4vw, 3.25rem);
  max-width: 72ch;
  overflow-wrap: anywhere;
}

.legal-body h2 {
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  font-size: clamp(1.25rem, 1.12rem + 0.5vw, 1.5rem);
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.45rem;
  font-size: 1.075rem;
}

.legal-body p,
.legal-body li {
  color: var(--ink-muted);
}

.legal-body ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}

/* Footer (Light, compact, non-template) */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--rule);
  padding-block: 2.25rem 2.75rem;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-meta strong {
  color: var(--ink);
  font-weight: 600;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

/* Hover transitions strictly scoped to hover-capable pointers */
@media (hover: hover) {
  .btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
  }
  .link-secondary:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
  }
  .text-link:hover {
    color: var(--accent-hover);
  }
  .nav-link:hover {
    border-bottom-color: var(--rule-strong);
  }
  .nav-link[aria-current="page"]:hover {
    border-bottom-color: var(--sawblade);
  }
  .footer-nav a:hover {
    text-decoration: underline;
    color: var(--accent);
  }
  .btn-quiet:hover {
    background: var(--bg);
  }
}

/* Intermediate state (tablet / small laptop: 680px+) */
@media (min-width: 680px) {
  .orientation-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .orientation-lane:first-child {
    padding-right: 2rem;
  }
  .orientation-lane + .orientation-lane {
    padding-top: 0;
    padding-left: 2rem;
    border-top: 0;
    border-left: 1px solid var(--rule);
  }
  .workshop-photos {
    grid-template-columns: 1.25fr 1fr;
    align-items: stretch;
  }
  .workshop-photo-wide,
  .workshop-photo-terrace {
    aspect-ratio: 4 / 3;
  }
  .references-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
  }
  .ledger-row {
    grid-template-columns: 3rem 14rem 1fr;
    gap: 0.5rem 1.5rem;
  }
  .ledger-desc {
    grid-column: 3;
  }
}

/* Desktop navigation & full asymmetric compositions (900px+) */
@media (min-width: 900px) {
  .brand-wordmark {
    height: 34px;
  }
  .header-mobile-actions {
    display: none;
  }
  .header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
  .site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    border-top: 0;
    padding-block: 0;
  }
  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
  }
  .nav-phone-desktop {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-left: 1.5rem;
    border-left: 1px solid var(--rule);
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
    align-items: center;
  }
  .section-header {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    gap: 2rem;
  }
  .featured-craft {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
  }
  .workshop-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: start;
  }
  .contact-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
  .service-detail {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
  .service-detail--with-media {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
  .footer-nav {
    flex-wrap: nowrap;
    gap: 1.2rem;
  }
  .footer-nav a {
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Review 23.11.: tap targets, focus ring width, portrait images on tablets */
.footer-meta a,
.contact-dl dd a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.text-link,
.contact-phone-big {
  align-self: flex-start;
}
@media (max-width: 899px) {
  .service-detail-media,
  .workshop-copy figure {
    max-width: 24rem;
  }
}

/* Griffi Empfang launcher button in Schreinerei Schröder brand color */
button[aria-label="Chat öffnen"] {
  background: var(--accent) !important;
  box-shadow: 0 4px 12px rgba(63, 80, 13, 0.35) !important;
  transition: background-color 0.15s ease, transform 0.15s ease !important;
}
button[aria-label="Chat öffnen"]:hover {
  background: var(--accent-hover) !important;
}
