/* ==========================================================================
   Tischlerei Chantré – Stylesheet
   ========================================================================== */

:root {
  --color-bg: #faf6f0;
  --color-bg-alt: #f1e9dd;
  --color-panel: #2c2016;
  --color-panel-2: #3b2c1e;
  --color-text: #241a12;
  --color-text-soft: #5c4c3c;
  --color-text-on-dark: #f1e9dd;
  --color-text-on-dark-soft: #cbb99f;
  --color-accent: #b5651d;
  --color-accent-light: #d98a3d;
  --color-border: #e2d5c2;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius: 6px;
  --shadow-soft: 0 12px 30px -12px rgba(36, 26, 18, 0.35);
  --shadow-tight: 0 2px 10px rgba(36, 26, 18, 0.12);

  --max-width: 1180px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

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

a {
  color: inherit;
}

a,
button {
  touch-action: manipulation;
}

section[id] {
  scroll-margin-top: 84px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--color-text);
}

p {
  margin: 0 0 1em;
}

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

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 0.6em;
}

.section {
  padding: 88px 0;
}

.section--tight {
  padding: 56px 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--dark {
  background: var(--color-panel);
  color: var(--color-text-on-dark);
}

.section--dark h2,
.section--dark h3 {
  color: var(--color-text-on-dark);
}

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  color: var(--color-text-soft);
  font-size: 1.05rem;
}

.section--dark .section-head p {
  color: var(--color-text-on-dark-soft);
}

/* Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

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

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

.btn-ghost {
  background: transparent;
  border-color: rgba(241, 233, 221, 0.4);
  color: var(--color-text-on-dark);
}

.btn-ghost:hover {
  border-color: var(--color-text-on-dark);
}

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

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

/* Header / Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.92);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--color-border);
  padding-top: env(safe-area-inset-top);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
}

.brand-tag {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-soft);
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--color-accent);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-phone {
  display: none;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--color-text);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.nav-call {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  flex-shrink: 0;
}

.nav-call svg {
  width: 20px;
  height: 20px;
}

/* Mobile floating call button */
.fab-call {
  display: none;
  position: fixed;
  right: 18px;
  bottom: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 90;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: var(--shadow-soft);
}

.fab-call svg {
  width: 19px;
  height: 19px;
}

/* Hero
   ========================================================================== */

.hero {
  padding: 64px 0 96px;
  background:
    radial-gradient(circle at 85% -10%, rgba(181, 101, 29, 0.16), transparent 55%),
    var(--color-bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  letter-spacing: -0.01em;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--color-text-soft);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 40px;
}

.btn-ghost.on-light {
  border-color: var(--color-border);
  color: var(--color-text);
}

.btn-ghost.on-light:hover {
  border-color: var(--color-text);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 28px;
}

.hero-fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-accent);
}

.hero-fact span {
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

.hero-visual {
  position: relative;
  min-height: 420px;
}

.hero-visual img {
  border-radius: var(--radius);
  object-fit: cover;
}

.hero-img-main {
  width: 82%;
  height: 380px;
  box-shadow: var(--shadow-soft);
}

.hero-img-accent {
  position: absolute;
  right: 0;
  bottom: -36px;
  width: 46%;
  height: 200px;
  border: 6px solid var(--color-bg);
  box-shadow: var(--shadow-soft);
}

/* Trust strip
   ========================================================================== */

.trust-strip {
  background: var(--color-panel-2);
  color: var(--color-text-on-dark);
  padding: 22px 0;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 36px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-on-dark-soft);
}

.trust-list svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-accent-light);
}

/* Timeline / Über uns
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: start;
}

.about-copy p {
  color: var(--color-text-soft);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--color-border);
}

.timeline li {
  position: relative;
  padding: 0 0 28px 28px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-bg);
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline-year {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-accent);
  font-size: 0.95rem;
}

.timeline-text {
  color: var(--color-text-soft);
  font-size: 0.95rem;
}

/* Services
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  box-shadow: var(--shadow-tight);
  transform: translateY(-3px);
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--color-bg-alt);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.service-card p {
  color: var(--color-text-soft);
  font-size: 0.94rem;
  margin-bottom: 0;
}

/* Gallery
   ========================================================================== */

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.filter-btn {
  border: 1.5px solid var(--color-border);
  background: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.filter-btn.is-active {
  background: var(--color-text);
  border-color: var(--color-text);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: zoom-in;
  background: var(--color-bg-alt);
  aspect-ratio: 4 / 3;
  border: none;
  padding: 0;
  display: block;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item .cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 12px 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(to top, rgba(20, 14, 8, 0.75), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery-item:hover .cap,
.gallery-item:focus-visible .cap {
  opacity: 1;
}

.gallery-item[hidden] {
  display: none;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 10, 6, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-cap {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--color-text-on-dark-soft);
  font-size: 0.9rem;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  width: 40px;
  height: 40px;
}

.lightbox-close svg {
  width: 26px;
  height: 26px;
}

/* Karriere
   ========================================================================== */

.career-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.career-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.career-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--color-text-on-dark-soft);
}

.career-list svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-accent-light);
}

/* Kontakt
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 36px;
}

.contact-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-row:first-child {
  padding-top: 0;
}

.contact-row svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-row a {
  text-decoration: none;
  font-weight: 600;
}

.contact-row a:hover {
  color: var(--color-accent);
}

.contact-row-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-soft);
  margin-bottom: 3px;
}

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  color: var(--color-text);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.social-btn:hover {
  background: var(--color-accent);
  color: #fff;
}

.social-btn svg {
  width: 20px;
  height: 20px;
}

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  min-height: 420px;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}

/* Footer
   ========================================================================== */

.site-footer {
  background: var(--color-panel);
  color: var(--color-text-on-dark-soft);
  padding: 48px 0 28px;
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(241, 233, 221, 0.12);
}

.footer-brand {
  font-family: var(--font-display);
  color: var(--color-text-on-dark);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.footer-links {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: var(--color-text-on-dark-soft);
}

.footer-links a:hover {
  color: var(--color-text-on-dark);
}

.footer-bottom {
  padding-top: 22px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Legal pages
   ========================================================================== */

.legal-page {
  padding: 72px 0 96px;
}

.legal-page .container {
  max-width: 820px;
}

.legal-page h1 {
  margin-bottom: 0.3em;
}

.legal-page .updated {
  color: var(--color-text-soft);
  font-size: 0.9rem;
  margin-bottom: 2.4em;
}

.legal-page h2 {
  font-size: 1.25rem;
  margin-top: 2em;
}

.legal-page p,
.legal-page li {
  color: var(--color-text-soft);
}

.legal-page a {
  color: var(--color-accent);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-accent);
  margin-bottom: 32px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--color-accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius);
  z-index: 1200;
  text-decoration: none;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (min-width: 900px) {
  .nav-phone {
    display: inline-flex;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .career-panel,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    min-height: 320px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }

  .nav-links.is-open {
    transform: translateX(0);
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links a {
    display: block;
    padding: 16px 4px;
    font-size: 1.05rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  /* Swap the full-text CTA for a compact call icon so the header
     never overflows on narrow phones; a persistent tap-to-call
     button matters more than a text CTA on mobile anyway. */
  .nav-cta {
    gap: 10px;
  }

  .nav-cta > .btn-primary {
    display: none;
  }

  .nav-call {
    display: inline-flex;
  }

  .brand-tag {
    display: none;
  }

  .fab-call {
    display: inline-flex;
  }

  .hero {
    padding: 40px 0 72px;
  }

  .hero-visual {
    min-height: 0;
  }

  .hero-img-main {
    width: 78%;
    height: 240px;
  }

  .hero-img-accent {
    height: 130px;
    bottom: -24px;
  }

  .hero-facts {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-inline: -24px;
    padding-inline: 24px;
    -webkit-overflow-scrolling: touch;
  }

  .filter-btn {
    flex-shrink: 0;
    padding: 12px 18px;
    min-height: 44px;
  }

  .contact-card {
    padding: 24px;
  }

  .section {
    padding: 56px 0;
  }

  .site-footer {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-facts {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-img-main {
    height: 200px;
  }

  .hero-img-accent {
    height: 110px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fab-call span {
    display: none;
  }

  .fab-call {
    padding: 15px;
    border-radius: 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
