/*
Theme Name: Tischlerei Massiva Custom
Theme URI: https://tischlerei-massiva.lead.bummeltech.com/
Author: Tischlerei Massiva
Description: Individuelles Theme fuer Tischlerei Massiva – Industrial Precision.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: tischlerei-massiva-custom
*/

:root {
  --primary: #1e2a38;
  --primary-soft: #3a4a5e;
  --accent: #d9641e;
  --accent-ink: #a8490f;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --ink: #1e2a38;
  --ink-muted: #4b5565;
  --line: #d8dce1;
  --radius: 2px;
  --shadow-sm: 0 1px 2px oklch(0% 0 0 / 0.15);
  --shadow-md: 0 4px 20px oklch(0% 0 0 / 0.14);
  --font-display: "Roboto Slab", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --space-s: 4rem;
  --space-m: 6rem;
  --space-l: 8rem;
  --space-xl: 10rem;

  --fs-body: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  --fs-lede: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --fs-h3: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  --fs-h2: clamp(2.25rem, 1.8rem + 2vw, 3rem);
  --fs-h1: clamp(3.25rem, 2.3rem + 4vw, 4.75rem);

  --header-h: 84px;
  --dur: 220ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

svg {
  max-width: 100%;
  height: auto;
}

.icon {
  width: 1.4em;
  height: 1.4em;
  flex: 0 0 auto;
  vertical-align: middle;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--primary);
  line-height: 1.12;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

h1 {
  font-size: var(--fs-h1);
  font-weight: 700;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
}

p {
  max-width: 62ch;
}

a {
  color: var(--accent-ink);
}

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

.container {
  width: min(1240px, 100% - 3rem);
  margin-inline: auto;
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 0.9em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.8rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
  min-height: 44px;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  /* --accent (#D9641E) only reaches ~3.6:1 with white text — below WCAG AA 4.5:1 for
     normal-weight UI text. --accent-ink is the compliant shade (~5.8:1); --accent stays
     reserved for non-text use (underlines, dots, icons) where the 3:1 UI threshold applies. */
  background: var(--accent-ink);
  color: #fff;
}

.btn-primary:hover {
  background: #7d3a0c;
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: oklch(100% 0 0 / 0.5);
  color: #fff;
}

.btn-ghost:hover {
  background: oklch(100% 0 0 / 0.12);
}

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