/* Vitali Weigandt – Tischlermeister
   Statische Website: nur HTML, CSS und Vanilla-JS. Keine externen Schriften/Skripte. */

:root {
  --background: #f7f2e8;
  --foreground: #33291f;
  --card: #fdfaf3;
  --primary: #57412c;
  --primary-glow: #7c5f3f;
  --primary-foreground: #f7f1e6;
  --secondary: #ece2d2;
  --muted-foreground: #6e6154;
  --accent: #c08b4a;
  --border: #ddd0bc;

  --shadow-soft: 0 1px 2px rgba(60, 45, 30, 0.08), 0 12px 30px -18px rgba(60, 45, 30, 0.35);
  --shadow-lift: 0 2px 4px rgba(60, 45, 30, 0.1), 0 24px 48px -24px rgba(60, 45, 30, 0.45);

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.01em; margin: 0; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.container { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }

.skip-link {
  position: absolute; left: -9999px;
}
.skip-link:focus {
  left: 1rem; top: 1rem; z-index: 60; background: var(--primary);
  color: var(--primary-foreground); padding: 0.5rem 1rem; border-radius: 4px;
}

/* Header */
header#site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--background);
  border-bottom: 1px solid transparent;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
header#site-header.scrolled {
  background: rgba(247, 242, 232, 0.95);
  backdrop-filter: blur(6px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.brand-sub { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--muted-foreground); }

.nav-desktop { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 860px) { .nav-desktop { display: flex; } .menu-btn { display: none; } }
.nav-desktop a {
  padding: 0.5rem 0.75rem; border-radius: 4px; font-size: 0.9rem; font-weight: 500;
  text-decoration: none; color: rgba(51, 41, 31, 0.85);
}
.nav-desktop a:hover { background: var(--secondary); color: var(--foreground); }
.nav-phone { margin-left: 0.5rem; border: 1px solid var(--primary); color: var(--primary) !important; font-weight: 600; }
.nav-phone:hover { background: var(--primary) !important; color: var(--primary-foreground) !important; }

.menu-btn {
  border: 1px solid var(--border); background: transparent; color: inherit;
  padding: 0.5rem 0.75rem; border-radius: 4px; font: inherit; font-size: 0.9rem; cursor: pointer;
}
.nav-mobile { border-top: 1px solid var(--border); background: var(--card); }
.nav-mobile ul { list-style: none; margin: 0; padding-top: 0.5rem; padding-bottom: 0.5rem; }
.nav-mobile a { display: block; padding: 0.75rem 0.25rem; text-decoration: none; font-weight: 500; border-radius: 4px; }
.nav-mobile a:hover { background: var(--secondary); }
.nav-mobile .phone { color: var(--primary); font-weight: 600; }
@media (min-width: 860px) { .nav-mobile { display: none !important; } }

/* Hero */
.hero { overflow: hidden; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; padding-top: 3.5rem; padding-bottom: 3.5rem; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; padding-top: 5rem; padding-bottom: 5rem; } }
.eyebrow {
  display: inline-block; margin-bottom: 1rem; padding-left: 0.75rem;
  border-left: 2px solid var(--accent); font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.25em; color: var(--muted-foreground);
}
.claim { margin-top: 1.25rem; font-family: var(--font-display); font-style: italic; font-size: 1.7rem; color: var(--primary); }
.lead { margin-top: 1.25rem; max-width: 36rem; color: var(--muted-foreground); font-size: 1.05rem; }
.btn-row { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-block; padding: 0.85rem 1.5rem; border-radius: 4px;
  font-size: 0.9rem; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform 0.15s, background-color 0.15s, color 0.15s;
  border: 1px solid transparent; font-family: inherit;
}
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--primary-glow); transform: translateY(-2px); }
.btn-outline { border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--secondary); }
.hero-img { width: 100%; border-radius: 2px; object-fit: cover; box-shadow: var(--shadow-lift); }

/* Dovetail divider */
.dovetail {
  height: 22px; width: 100%; background-color: var(--primary);
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='22' viewBox='0 0 80 22'><path fill='black' d='M0 0h12l8 22h20l8-22h12l8 22h12V0H0z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='22' viewBox='0 0 80 22'><path fill='black' d='M0 0h12l8 22h20l8-22h12l8 22h12V0H0z'/></svg>");
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
  -webkit-mask-size: 80px 22px; mask-size: 80px 22px;
}
.dovetail.spaced { margin-top: 2rem; }
.dovetail.accent { background-color: var(--accent); }

/* Sections */
.band { padding: 4rem 0; }
@media (min-width: 640px) { .band { padding: 5rem 0; } }
.band.tinted { background: rgba(236, 226, 210, 0.5); }
.wood-grain {
  background-color: rgba(236, 226, 210, 0.5);
  background-image:
    repeating-linear-gradient(92deg, rgba(87, 65, 44, 0.05) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(88deg, rgba(87, 65, 44, 0.035) 0 1px, transparent 1px 13px);
}
.section-lead { margin-top: 0.75rem; max-width: 42rem; color: var(--muted-foreground); }
.body-text { margin-top: 1rem; color: var(--muted-foreground); }
.draft {
  margin-top: 1rem; border: 1px dashed var(--accent); background: rgba(192, 139, 74, 0.1);
  padding: 0.5rem 1rem; border-radius: 3px; font-size: 0.875rem; color: var(--muted-foreground);
}
.draft strong { color: var(--foreground); }

/* Leistungen */
.cards { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  position: relative; background: var(--card); border: 1px solid var(--border);
  border-radius: 2px; padding: 1.5rem; box-shadow: var(--shadow-soft);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card-bar { position: absolute; left: 0; top: 0; height: 4px; width: 4rem; background: var(--accent); transition: width 0.3s; }
.card:hover .card-bar { width: 100%; }
.card p { margin-top: 0.75rem; font-size: 0.925rem; color: var(--muted-foreground); }

/* Über uns */
.about-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1.1fr 0.9fr; } }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; align-content: start; }
@media (min-width: 640px) and (max-width: 1023px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts li { background: var(--card); border-left: 4px solid var(--accent); padding: 1.25rem; border-radius: 2px; box-shadow: var(--shadow-soft); }
.facts p { margin-top: 0.25rem; font-size: 0.9rem; color: var(--muted-foreground); }

/* Referenzen */
.gallery { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery li { background: var(--card); border: 1px solid var(--border); border-radius: 2px; overflow: hidden; box-shadow: var(--shadow-soft); }
.gallery img { aspect-ratio: 5 / 4; width: 100%; object-fit: cover; height: auto; }
.gallery-text { padding: 1rem; }
.gallery-text p { margin-top: 0.25rem; font-size: 0.9rem; color: var(--muted-foreground); }

/* Kontakt */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
address { font-style: normal; margin-top: 2rem; }
.strong { font-weight: 600; }
.muted { color: var(--muted-foreground); }
.contact-links { margin-top: 1rem; display: grid; gap: 0.25rem; }
.contact-links a { color: var(--primary); text-underline-offset: 4px; }
.hours { margin-top: 2rem; background: var(--card); border: 1px solid var(--border); border-radius: 2px; padding: 1.25rem; }
.hours dl { margin: 0.75rem 0 0; display: grid; gap: 0.25rem; font-size: 0.9rem; color: var(--muted-foreground); }
.hours dl div { display: flex; justify-content: space-between; gap: 1rem; }
.hours dt, .hours dd { margin: 0; }

.form { background: var(--card); border: 1px solid var(--border); border-radius: 2px; padding: 1.5rem; box-shadow: var(--shadow-soft); }
.field { margin-top: 1rem; }
.field label { display: block; font-size: 0.9rem; font-weight: 500; }
.field input, .field textarea {
  margin-top: 0.25rem; width: 100%; border: 1px solid var(--border); border-radius: 2px;
  background: var(--background); padding: 0.55rem 0.75rem; font: inherit; font-size: 0.9rem; color: inherit;
}
.field textarea { resize: vertical; }
.check { margin-top: 1rem; display: flex; align-items: flex-start; gap: 0.75rem; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: 0.25rem; flex-shrink: 0; accent-color: var(--primary); }
.check label { font-size: 0.875rem; color: var(--muted-foreground); }
.check a { color: var(--primary); }
.form-error { margin-top: 1rem; color: #a32b1c; font-size: 0.875rem; font-weight: 500; }
.form button { margin-top: 1.25rem; }
.hint { margin-top: 1rem; font-size: 0.75rem; color: var(--muted-foreground); }
.hint code { background: var(--secondary); padding: 0 0.25rem; border-radius: 2px; }

/* Footer */
footer { background: var(--primary); color: var(--primary-foreground); }
.footer-grid { display: grid; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 3.5rem; font-size: 0.9rem; }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-title { font-family: var(--font-display); font-size: 1.25rem; }
.footer-claim { margin-top: 0.5rem; opacity: 0.85; }
.footer-nav { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }
.footer-nav a { opacity: 0.85; text-decoration: none; text-underline-offset: 4px; }
.footer-nav a:hover { text-decoration: underline; opacity: 1; }
.footer-grid section h2 { font-size: 1.25rem; }
.footer-grid section p { margin-top: 0.75rem; opacity: 0.85; }
.footer-grid section ul { margin: 0.5rem 0 0; padding-left: 1.25rem; opacity: 0.85; }
.footer-bottom { border-top: 1px solid rgba(247, 241, 230, 0.2); }
.footer-bottom p { padding: 1.25rem 1rem; text-align: center; font-size: 0.75rem; opacity: 0.8; }
