/* ==========================================================================
   G. u. H. Nöcker Nähmaschinen-Werkstatt — Stylesheet
   Self-hosted fonts (no external requests) for GDPR-friendly loading.
   ========================================================================== */

@font-face {
  font-family: "Bitter";
  src: url("fonts/bitter-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bitter";
  src: url("fonts/bitter-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---- Design tokens ------------------------------------------------------ */
:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --surface-soft: #efeade;
  --ink: #23262a;
  --ink-soft: #5b6360;
  --teal: #2b5a55;
  --teal-dark: #1c3f3b;
  --brass: #a97a34;
  --line: #ddd6c6;
  --focus: #1c3f3b;

  --font-display: "Bitter", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --maxw: 1120px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

/* Sprungmarken nicht unter dem fixierten Header verstecken */
[id] { scroll-margin-top: 80px; }
#top { scroll-margin-top: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* <picture> soll das Layout nicht beeinflussen */
.hero picture { display: block; min-width: 0; }
.gallery picture { display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  color: var(--teal-dark);
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 200;
  background: var(--teal-dark);
  color: #fff;
  padding: 10px 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

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

/* ---- Signature motif: the running stitch --------------------------------
   A seam of dashes standing in for a hand-stitched line. Used as the
   connective tissue between sections, instead of a plain <hr>. */
.seam {
  height: 10px;
  margin: 0 auto;
  max-width: var(--maxw);
  background-image:
    radial-gradient(circle, var(--brass) 1.6px, transparent 1.7px);
  background-size: 16px 10px;
  background-position: center;
  background-repeat: repeat-x;
  opacity: 0.9;
}
.seam--dense { background-size: 11px 10px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brass);
  display: inline-block;
}

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }

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

.btn--ghost {
  background: transparent;
  color: var(--teal-dark);
  border-color: var(--teal-dark);
}
.btn--ghost:hover { background: var(--teal-dark); color: #fff; }

.btn--brass {
  background: #8a6529;
  color: #fff;
  border-color: #8a6529;
}
.btn--brass:hover { background: #6f5120; border-color: #6f5120; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.mail-hint {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* ---- Header ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 245, 240, 0.94);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--teal-dark);
  line-height: 1.15;
}
.brand strong {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
}
.brand span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 15.5px;
  color: var(--ink);
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-color: var(--brass); }
.header-call {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14.5px;
  text-decoration: none;
  color: var(--teal-dark);
  white-space: nowrap;
}
.header-call svg { width: 16px; height: 16px; }

.nav-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: 1.5px solid var(--teal-dark);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; display: block; }

/* ---- Hero ------------------------------------------------------------------ */
.hero {
  padding: 64px 0 56px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(32px, 4.4vw, 50px);
  margin: 14px 0 20px;
}
.hero p.lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 28px;
}

.hero-media {
  aspect-ratio: 4/5;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
/* Strichzeichnung (transparenter Hintergrund): nicht beschneiden */
.hero-media--illustration {
  object-fit: contain;
  padding: 12px;
  box-sizing: border-box;
}

/* ---- Section shell ----------------------------------------------------- */
section { padding: 72px 0; }
.section-head {
  max-width: 62ch;
  margin-bottom: 40px;
}
.section-head h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin: 12px 0 14px;
}
.section-head p { color: var(--ink-soft); font-size: 16.5px; }

.section--tint { background: var(--surface-soft); }

/* ---- Leistungen ---------------------------------------------------------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brass);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
}
.service h3 {
  font-size: 21px;
  margin-bottom: 10px;
}
.service p { color: var(--ink-soft); font-size: 16px; }

.process { margin-top: 56px; max-width: 62ch; }
.process h3 { font-size: 22px; margin-bottom: 18px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
.steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 16px;
  align-items: start;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  grid-row: 1 / span 2;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--teal-dark);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--teal-dark);
}
.steps strong { color: var(--teal-dark); font-size: 17px; align-self: center; }
.steps span { color: var(--ink-soft); font-size: 16px; grid-column: 2; }
.steps a, .mail-hint a { color: var(--teal-dark); }

/* ---- Fragen -------------------------------------------------------------- */
.faq { max-width: 70ch; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  font-weight: 600;
  color: var(--teal-dark);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: var(--brass);
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 40px 20px 0; color: var(--ink-soft); }
.faq a { color: var(--teal); }

/* ---- Anrufleiste (nur Smartphone) ---------------------------------------- */
.call-bar { display: none; }

/* ---- Gallery ------------------------------------------------------------ */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery figure { margin: 0; min-width: 0; }
.gallery-photo {
  aspect-ratio: 4/3;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
.map-wrap { position: relative; }
.map-credit {
  position: absolute;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.3;
  padding: 6px 9px;
  text-decoration: none;
}
.map-credit:hover { text-decoration: underline; }

.gallery-link {
  display: block;
  border-radius: var(--radius);
  transition: opacity 0.15s ease;
}
.gallery-link:hover,
.gallery-link:focus-visible { opacity: 0.85; }

/* ---- Zoombare Fotos & Lightbox ------------------------------------------- */
img.zoomable {
  cursor: zoom-in;
  transition: opacity 0.15s ease;
}
img.zoomable:hover,
img.zoomable:focus-visible { opacity: 0.9; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 22, 20, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  padding-top: calc(32px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  cursor: zoom-out;
}
.lightbox-close {
  position: fixed;
  top: calc(20px + env(safe-area-inset-top, 0px));
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-close:focus-visible { outline-color: #fff; }
.lightbox-close svg { width: 20px; height: 20px; }

/* ---- Bewertungen ----------------------------------------------------------- */
.reviews-cta {
  text-align: center;
  padding-top: 8px;
}

/* ---- Contact -------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}
.contact-block dt {
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal);
  margin-top: 20px;
}
.contact-block dt:first-child { margin-top: 0; }
.contact-block dd {
  margin: 4px 0 0;
  font-size: 17px;
}
.contact-block a.plain { text-decoration: none; }
.contact-block a.plain:hover { text-decoration: underline; }

.contact-title { margin-top: 12px; font-size: clamp(24px, 2.6vw, 30px); }
.contact-lead { margin-top: 14px; color: var(--ink-soft); max-width: 42ch; }
.btn-row--spaced { margin-top: 24px; }
.contact-block a.plain--bare, .footer-brand a.plain--bare { text-decoration: none; }

/* ---- Anfrage-Assistent ---------------------------------------------------- */
.request {
  margin-top: 56px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brass);
  border-radius: var(--radius);
  padding: 28px 28px 32px;
  max-width: 760px;
}
.request h3 { font-size: 22px; margin-bottom: 10px; }
.request-intro { color: var(--ink-soft); font-size: 16px; max-width: 62ch; }
.request-form { margin-top: 22px; display: grid; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label, .request-out label { font-weight: 600; font-size: 15px; color: var(--teal-dark); }
.field .req, .field .opt { font-weight: 400; color: var(--ink-soft); font-size: 14px; }
.request input, .request select, .request textarea {
  width: 100%;
  font: inherit;
  font-size: 16px; /* verhindert Zoom auf iOS */
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #8d958f;
  border-radius: var(--radius);
  padding: 11px 12px;
  min-height: 46px;
}
.request textarea { resize: vertical; line-height: 1.5; }
.request [aria-invalid="true"] { border-color: #a12b2b; border-width: 2px; }
.request-form .btn { justify-self: start; }
.request-note { font-size: 14px; color: var(--ink-soft); margin: 0; }
.request-status { margin: 0; font-size: 15px; color: var(--teal-dark); }
.request-status:empty { display: none; }
.request-status.is-error { color: #8f2020; font-weight: 600; }
.request-out { display: grid; gap: 10px; }
.request-out textarea { font-family: var(--font-mono); font-size: 14px; }
.request-out .btn { justify-self: start; }

/* ---- Footer --------------------------------------------------------------- */
footer.site-footer {
  padding: 46px 0 34px;
}
.footer-copy { margin-top: 24px; font-size: 13px; color: var(--ink-soft); }
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  padding-top: 32px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.footer-grid strong { color: var(--teal-dark); }
.footer-links { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; display: inline-block; padding: 10px 2px; }
.footer-links a:hover { text-decoration: underline; }
.footer-brand p { margin: 4px 0 0; }

/* ---- Legal pages (Impressum / Datenschutz) --------------------------------- */
.legal-main { padding: 56px 0 90px; }
.legal-main .wrap { max-width: 760px; }
.legal-main h1 { font-size: 32px; margin-bottom: 8px; }
.legal-main .updated {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 36px;
  display: block;
}
.legal-main h2 {
  font-size: 20px;
  margin-top: 40px;
  margin-bottom: 10px;
}
.legal-main p, .legal-main li { color: var(--ink); font-size: 16px; }
.legal-main ul { padding-left: 22px; }
.legal-main a { color: var(--teal); }
.fill-in {
  background: #fbf1de;
  border: 1px dashed var(--brass);
  padding: 1px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: #6b4c1c;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  text-decoration: none;
  font-weight: 600;
  color: var(--teal-dark);
}

/* ---- Responsive ------------------------------------------------------------ */
/* Burger-Menü früher aktivieren, damit die Navigation nie abgeschnitten wird.
   Geschlossen: visibility:hidden -> Links sind weder sichtbar noch per Tab erreichbar. */
@media (max-width: 960px) {
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 24px 24px;
    gap: 14px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
  }
  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition-delay: 0s;
  }
  .main-nav ul { flex-direction: column; gap: 0; width: 100%; }
  .main-nav ul a { display: block; padding: 12px 2px; }
  .main-nav .header-call { font-size: 16px; min-height: 44px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero picture { order: -1; }
  .hero-media { aspect-ratio: 16/9; max-height: 300px; }
  .services { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  section { padding: 52px 0; }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
  .call-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    background: var(--teal-dark);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .call-bar:focus-visible { outline-color: #fff; outline-offset: -5px; }
  .steps li { grid-template-columns: 36px 1fr; column-gap: 14px; }
  .field-row { grid-template-columns: 1fr; }
  .request { padding: 22px 18px 26px; }
  .gallery { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }
}
