/* Valovič Woodworking — shared presentation for all static pages. */
@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/montserrat-400.ttf") format("truetype");
}
@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/montserrat-500.ttf") format("truetype");
}
@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/montserrat-600.ttf") format("truetype");
}
:root {
  --ink: #303235;
  --body: #45494e;
  --dark: #3d3f41;
  --accent: #946519;
  --accent-light: #e6ba70;
  --line: #d8d8d5;
  --surface: #f3f3f1;
  --width: 1100px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--body);
  background: white;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  font-synthesis: none;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; min-width: 0; }
figcaption { margin-top: .75rem; font-size: .875rem; line-height: 1.6; }
a { color: inherit; text-underline-offset: .25em; }
a:hover { color: var(--accent); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
h1, h2, h3 { color: var(--ink); margin: 0 0 1.25rem; font-weight: 600; line-height: 1.2; overflow-wrap: break-word; }
h1 { text-transform: uppercase; font-size: clamp(2rem, 4.1vw, 3.4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); letter-spacing: -.025em; }
h3 { font-size: 1.2rem; line-height: 1.4; }
p { margin: 0 0 1.25rem; }
ul, ol { padding-left: 1.5rem; }
li { margin-bottom: .5rem; }
.skip-link { position: absolute; left: 1rem; top: -8rem; padding: .7rem 1rem; background: white; color: black; z-index: 100; }
.skip-link:focus { top: 1rem; }
.site-header { background: var(--dark); color: white; }
.header-inner { max-width: var(--width); margin: auto; padding: 1.15rem 0; display: flex; align-items: center; justify-content: space-between; gap: 2rem; position: relative; }
.logo-link { flex-shrink: 0; display: inline-block; }
.logo-link img { width: 166px; height: auto; }
.main-nav { display: flex; align-items: center; justify-content: flex-end; gap: 1.8rem; font-size: .9375rem; font-weight: 500; }
.main-nav a { text-decoration: none; padding: .55rem 0; }
.main-nav a:hover, .main-nav a[aria-current], .footer-nav a:hover, .footer-nav a[aria-current] { color: var(--accent-light); }
.main-nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; }
.site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--accent-light); }
.menu-toggle { background: transparent; color: white; border: 0; padding: 8px; min-height: 44px; width: 44px; justify-content: center; }
.hamburger-lines { display: flex; flex-direction: column; justify-content: space-between; width: 26px; height: 18px; }
.hamburger-lines > span { width: 26px; height: 2px; background: currentColor; display: block; }
.page-hero { max-width: var(--width); margin: auto; padding: 3.5rem 0 4rem; }
.page-hero.has-image { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: center; }
.page-hero.has-image figure img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.home-hero.has-image figure img { aspect-ratio: 1 / 1.06; }
.hero-copy { min-width: 0; }
.eyebrow { color: var(--accent); font-size: .875rem; font-weight: 600; letter-spacing: .065em; text-transform: uppercase; margin-bottom: 1.2rem; }
.lead { font-size: 1.125rem; max-width: 46rem; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.3rem; margin-top: 1.8rem; }
.button { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 50px; padding: .8rem 1.6rem; border: 1px solid var(--ink); background: var(--ink); color: white; font-size: 1rem; font-weight: 500; text-decoration: none; line-height: 1.5; transition: background .15s, color .15s; }
.button:hover { background: var(--accent); border-color: var(--accent); color: white; }
.text-link { color: var(--accent); font-weight: 500; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .875rem; line-height: 1.6; margin: 0 0 1.8rem; }
.section { max-width: var(--width); margin: 0 auto; padding: 4rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section > p { max-width: 54rem; }
.compact { max-width: 800px; }
.application-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; margin-top: 2rem; }
.application-grid article { min-width: 0; padding-top: 0; }
.application-grid p { max-width: 34rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split figure img { width: 100%; aspect-ratio: 1.2 / 1; object-fit: cover; }
.split.reverse > div { order: 2; }
.split.reverse > figure { order: 1; }
.section-nav { display: flex; flex-wrap: wrap; gap: .75rem 1.8rem; font-weight: 500; color: var(--accent); }
.section-nav a { padding: .5rem 0; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--surface); }
.gallery a { display: block; }
.gallery a:hover img { opacity: .88; }
.gallery-section { scroll-margin-top: 1rem; }
.related { margin-top: 2rem; }
.spec-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; margin-top: 2rem; align-items: start; }
dl { margin: 0; }
.specs > div { display: grid; grid-template-columns: 1fr 1.5fr; gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
dt { font-weight: 600; color: var(--ink); }
dd { margin: 0; }
.process { list-style: none; padding: 0; counter-reset: steps; display: grid; grid-template-columns: 1fr 1fr; column-gap: 3.5rem; row-gap: 1.2rem; margin-top: 2rem; }
.process li { counter-increment: steps; padding: 1.4rem 0 0 3.5rem; border-top: 1px solid var(--line); position: relative; }
.process li::before { content: "0" counter(steps); position: absolute; top: 1.2rem; left: 0; color: var(--accent); font-size: 1.5rem; font-weight: 500; }
.checklist { margin: 1.5rem 0; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 3rem; }
.cta > div { max-width: 46rem; }
.cta .button { flex-shrink: 0; }
.cta p { margin-bottom: 0; }
.faq { max-width: 800px; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); padding-right: 1rem; line-height: 1.6; }
.faq details p { margin: 1rem 0 0; }
.request-section { margin-top: 3rem; padding: 4.5rem 0; background: var(--surface); }
.request-inner { max-width: var(--width); margin: auto; display: grid; grid-template-columns: .85fr 1.15fr; gap: 4rem; }
.request-inner > div, form { min-width: 0; }
.request-inner a, .footer-contact a, .contact-grid a { overflow-wrap: anywhere; }
form { display: grid; gap: 1.2rem; }
form label { display: block; font-size: .9375rem; font-weight: 500; line-height: 1.5; }
form label span { font-size: .875rem; font-weight: 400; }
input, textarea { display: block; width: 100%; margin-top: .5rem; padding: .7rem .85rem; border: 1px solid #858786; border-radius: 0; background: white; color: var(--ink); font-size: 1rem; }
textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: .875rem; margin: 0; line-height: 1.7; }
form .button { justify-self: start; }
.honeypot { display: none; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.company-details > div { margin-bottom: 1.2rem; }
.company-details dt { font-size: .9375rem; }
.pending { background: #fff0cf; color: #634512; padding: .15rem .35rem; }
.legal p { margin-bottom: 1.25rem; }
.anchor-alias { display: block; height: 0; }
.site-footer { background: var(--ink); color: white; padding: 3.5rem 0 2rem; }
.footer-inner { max-width: var(--width); margin: auto; text-align: center; }
.footer-inner .logo-link { margin-bottom: 1rem; }
.footer-inner p { font-size: .9375rem; }
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1.7rem; margin: 1.5rem 0; font-size: .9375rem; }
.footer-nav a { padding: .45rem 0; text-decoration: none; }
.footer-contact, .socials { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem 1.5rem; margin: 1rem 0; font-size: .9375rem; }
.site-footer a:hover { color: var(--accent-light); }
.copyright { opacity: .8; margin: 2rem 0 0; }
.image-dialog { position: fixed; inset: 0; margin: 0; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; border: 0; padding: 64px 80px 32px; background: transparent; color: white; overflow: auto; }
.image-dialog[open] { display: flex; align-items: center; justify-content: center; }
.image-dialog::backdrop { background: rgba(0,0,0,.82); }
.image-dialog figure { max-width: min(1100px, 100%); }
.image-dialog img { max-height: calc(100dvh - 150px); width: auto; max-width: 100%; margin: auto; object-fit: contain; touch-action: pan-y pinch-zoom; user-select: none; }
.image-dialog button { position: fixed; display: inline-flex; align-items: center; justify-content: center; color: #ddd; background: transparent; border: 0; padding: 8px; width: 48px; height: 48px; }
.image-dialog button:hover { color: white; }
.image-dialog button:focus-visible { outline-color: white; }
.image-dialog button svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2; }
.dialog-close { right: 16px; top: 12px; z-index: 1; }
.dialog-prev, .dialog-next { top: 50%; transform: translateY(-50%); }
.dialog-prev { left: 16px; }
.dialog-next { right: 16px; }
.image-dialog figcaption { text-align: center; max-width: 65ch; margin: .75rem auto 0; color: #eee; }
html.gallery-open { overflow: hidden; }
@media (max-width: 1190px) {
  .header-inner, .section, .page-hero, .request-inner, .footer-inner { width: calc(100% - 64px); }
  .main-nav { gap: 1.2rem; }
  .page-hero.has-image, .split, .spec-layout, .request-inner { gap: 2.5rem; }
}
@media (max-width: 1000px) {
  .header-inner { flex-wrap: wrap; }
  .main-nav { width: 100%; flex-wrap: wrap; justify-content: flex-start; }
  .menu-ready .menu-toggle { display: inline-flex; align-items: center; }
  .menu-ready .main-nav { display: none; }
  .menu-ready .main-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: .25rem; }
  .main-nav a { padding: .6rem 0; }
  .cta { align-items: flex-start; flex-direction: column; gap: 1.4rem; }
}
@media (min-width: 1001px) {
  .menu-toggle { display: none !important; }
}
@media (max-width: 760px) {
  .header-inner { padding: 1rem 0; gap: 1rem; }
  .logo-link img { width: 145px; }
  .header-inner, .section, .page-hero, .request-inner, .footer-inner { width: calc(100% - 40px); }
  .page-hero { padding: 2rem 0 2.5rem; }
  .page-hero.has-image, .split, .spec-layout, .request-inner, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .page-hero.has-image figure img, .home-hero.has-image figure img { aspect-ratio: 1.4 / 1; }
  .lead { font-size: 1rem; }
  .breadcrumbs { margin-bottom: 1.4rem; }
  .eyebrow { font-size: .875rem; letter-spacing: .035em; }
  .section { padding: 2.5rem 0; }
  .application-grid, .process { grid-template-columns: 1fr; gap: 1.6rem; }
  .application-grid { margin-top: 1.5rem; }
  .split.reverse > div, .split.reverse > figure { order: initial; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .request-section { padding: 3rem 0; margin-top: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-nav { gap: .5rem 1.3rem; }
  .specs > div { grid-template-columns: 1fr 1.35fr; gap: 1rem; }
  .button { width: fit-content; max-width: 66.666%; min-height: 44px; padding: .65rem 1.1rem; font-size: .9375rem; align-self: flex-start; }
  .hero-actions { align-items: flex-start; }
  .image-dialog { padding: 64px 12px 24px; }
  .image-dialog .dialog-prev, .image-dialog .dialog-next { display: none; }
  .image-dialog img { max-height: calc(100dvh - 160px); }
  .dialog-close { right: 8px; top: 8px; }
}
@media (max-width: 380px) {
  .specs > div { grid-template-columns: 1fr; gap: .3rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .site-header, .site-footer, .request-section, .hero-actions, .image-dialog { display: none; }
  body { color: black; }
  .section, .page-hero { width: 100%; padding: 1rem 0; }
}

/* Requested typography and compact social icons. */
#rahmenformen h2, .section-nav a, #runde-rahmen h2, #eckige-rahmen h2, #hexagonen h2 { text-transform: uppercase; }
.socials { gap: 1rem; }
.socials a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.socials svg { display: block; width: 27px; height: 27px; }

/* Outline shapes follow the label's size, weight and color. */
.section-nav a { display: inline-flex; align-items: center; gap: .45em; text-decoration: none; }
.section-nav a span { text-decoration: underline; text-underline-offset: .25em; }
.frame-symbol { width: .95em; height: .95em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; }

/* Center compact mobile calls to action. */
@media (max-width: 760px) {
  .button { margin-inline: auto; align-self: center; }
  form .button { justify-self: center; }
}

@media (max-width: 760px) {
  .home-hero .hero-actions { flex-direction: column; align-items: center; }
  .home-hero .hero-actions > .text-link { text-align: center; }
}
