/* Schriften lokal, damit keine Besucher-IP an Google geht (DSGVO) */
@font-face { font-family: "Libre Caslon Display"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/libre-caslon-display.woff2) format("woff2"); }
@font-face { font-family: "Libre Caslon Text"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/libre-caslon-text.woff2) format("woff2"); }
@font-face { font-family: "Libre Caslon Text"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/libre-caslon-text-italic.woff2) format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/hanken-grotesk.woff2) format("woff2"); }

/* Farben aus der Werkstatt: Nussbaum (Standuhrgehäuse), Messing (Räderwerk),
   Graugrün (Werkbankmatte) */
:root {
  --nuss: #2E211A;
  --nuss-tief: #211812;
  --nuss-mittel: #5A4434;
  --messing: #B8893B;
  --messing-hell: #DDB872;
  --matte: #8F9C8B;
  --matte-hell: #E2E6DE;
  --kalk: #F3F4F1;

  --bg: var(--kalk);
  --text: var(--nuss);
  --text-leise: #6B5B4F;
  --linie: #D3D1C9;
  --flaeche: var(--matte-hell);

  --display: "Libre Caslon Display", "Big Caslon", "Times New Roman", serif;
  --serif: "Libre Caslon Text", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 74rem;
  --rand: clamp(1rem, 4vw, 2.5rem);
  --kopf: 4.5rem;
  /* Seitenrand, der Inhalt auf --wrap zentriert, auch bei randlosen Abschnitten */
  --seite: max(var(--rand), calc((100vw - var(--wrap)) / 2 + var(--rand)));
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A1410;
    --text: #EDE6DC;
    --text-leise: #B3A595;
    --linie: #3A2E25;
    --flaeche: #241C16;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--kopf); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--messing); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); letter-spacing: -.015em; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.01em; }
h3 { font-size: 1.75rem; }
p { margin: 0 0 1em; max-width: 60ch; }

.wrap { padding: 0 var(--seite); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  background: var(--messing); color: var(--nuss); padding: .6rem 1rem;
}
.skip:focus { top: 1rem; }

/* Kopf */
.kopf {
  position: sticky; top: 0; z-index: 10;
  background: var(--nuss); color: #F1EAE0;
  border-bottom: 1px solid color-mix(in srgb, var(--messing) 40%, transparent);
}
.kopf__innen {
  display: flex; align-items: center; gap: 2rem;
  min-height: var(--kopf);
  padding: 0 var(--seite);
}
.marke { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.marke__name { font-family: var(--display); font-size: 1.6rem; }
.marke__zusatz { font-size: .78rem; color: var(--messing-hell); letter-spacing: .03em; }
.nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav a { text-decoration: none; font-size: .95rem; color: #CDBFAF; }
.nav a:hover { color: #fff; }
.kopf__tel {
  font-weight: 600; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums;
  padding: .5rem 1rem; background: var(--messing); color: var(--nuss-tief);
}
.kopf__tel:hover { background: var(--messing-hell); }
@media (max-width: 900px) { .nav { display: none; } .kopf__tel { margin-left: auto; } }

/* Knöpfe */
.aktionen { display: flex; flex-wrap: wrap; gap: .75rem; }
.knopf {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: .9rem 1.5rem; border: 1px solid transparent;
}
.knopf--messing { background: var(--messing); color: var(--nuss-tief); }
.knopf--messing:hover { background: var(--messing-hell); }
.knopf--hell { border-color: color-mix(in srgb, #F1EAE0 55%, transparent); color: #F1EAE0; }
.knopf--hell:hover { background: rgb(255 255 255 / .08); }

/* Held: Text auf Nussbaum, Foto bis an den Rand */
.held {
  display: grid; grid-template-columns: 1.1fr 1fr;
  min-height: min(calc(100svh - var(--kopf)), 52rem);
  background: var(--nuss); color: #F1EAE0;
}
.held__text {
  align-self: center;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 5vw, 4rem) clamp(3rem, 7vw, 6rem)
           var(--seite);
}
.held__slogan { font-family: var(--serif); font-style: italic; color: var(--messing-hell); font-size: 1.15rem; margin-bottom: 1.25rem; }
.held h1 { color: #FBF7F1; max-width: 13ch; }
.held__lead { font-size: 1.2rem; color: #CDBFAF; margin: 1.5rem 0 2.25rem; max-width: 44ch; }
.held__bild { margin: 0; position: relative; overflow: hidden; }
.held__bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.status { margin: 2rem 0 0; display: flex; align-items: center; gap: .65rem; font-size: .98rem; color: #E5DBCD; }
.status__punkt { flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: #8A7A6A; }
.status--offen .status__punkt { background: #7DBE8E; box-shadow: 0 0 0 4px rgb(125 190 142 / .2); }
.status--zu .status__punkt { background: #C9826F; }

@media (max-width: 900px) {
  .held { grid-template-columns: 1fr; min-height: 0; }
  .held__bild { order: -1; height: 46vh; min-height: 16rem; }
  .held__text { padding: 2.5rem var(--rand) 3rem; }
}

/* Abschnitte */
.abschnitt { padding: clamp(4rem, 9vw, 7rem) 0; }
.kopfzeile {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem clamp(2rem, 6vw, 5rem);
  align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.kopfzeile h2 { margin: 0; }
.kopfzeile p { margin: 0; color: var(--text-leise); font-size: 1.1rem; }
@media (max-width: 760px) { .kopfzeile { grid-template-columns: 1fr; } }

/* Leistungen */
.leistungen { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); }
.leistungen h3 { display: flex; align-items: baseline; gap: 1rem; margin-bottom: .25rem; }
.leistungen h3::after { content: ""; flex: 1; height: 1px; background: var(--messing); }
.leistungen ul { list-style: none; margin: 0; padding: 0; }
.leistungen li { padding: 1.05rem 0; border-bottom: 1px solid var(--linie); display: grid; gap: .2rem; }
.leistungen strong { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; }
.leistungen span { color: var(--text-leise); }
@media (max-width: 760px) { .leistungen { grid-template-columns: 1fr; } }

/* Der Uhrmacher */
.meister { display: grid; grid-template-columns: 1fr 1fr; background: var(--matte); color: var(--nuss-tief); }
.meister__bild { margin: 0; position: relative; min-height: 34rem; }
.meister__bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.meister__text {
  align-self: center;
  padding: clamp(3rem, 7vw, 6rem) var(--seite) clamp(3rem, 7vw, 6rem) clamp(2rem, 5vw, 4.5rem);
}
.meister__text p { font-size: 1.1rem; }
.meister__signatur { font-family: var(--serif); font-style: italic; font-size: 1.5rem; margin-top: 1.75rem; }
@media (max-width: 900px) {
  .meister { grid-template-columns: 1fr; }
  .meister__bild { min-height: 0; aspect-ratio: 4 / 5; max-height: 70vh; }
  .meister__text { padding: 3rem var(--rand); }
}

/* Bildstreifen */
.kopfzeile--steuerung { grid-template-columns: 1fr auto; }
.kopfzeile--steuerung p { margin-top: 1rem; }
.pfeile { display: flex; gap: .5rem; }
.pfeil {
  width: 3rem; height: 3rem; font-size: 1.6rem; line-height: 1; cursor: pointer;
  background: none; color: var(--text); border: 1px solid var(--linie);
}
.pfeil:hover { border-color: var(--messing); color: var(--messing); }
.streifen {
  display: flex; gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--seite) 1rem;
  scroll-padding-inline: var(--seite);
  scrollbar-width: thin; scrollbar-color: var(--messing) transparent;
}
.streifen figure { margin: 0; flex: none; scroll-snap-align: start; }
.streifen img { height: clamp(20rem, 42vw, 30rem); width: auto; max-width: none; object-fit: cover; }
.streifen figcaption { font-size: .92rem; color: var(--text-leise); padding-top: .6rem; max-width: 26ch; }
@media (max-width: 760px) { .pfeile { display: none; } }

/* Stimmen */
.abschnitt--matte { background: var(--flaeche); }
.stimmen { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.stimmen blockquote { margin: 0; padding-top: 1.5rem; border-top: 2px solid var(--messing); }
.stimmen p { font-family: var(--serif); font-size: 1.3rem; line-height: 1.5; }
.stimmen footer { color: var(--text-leise); font-size: .95rem; }
@media (max-width: 860px) { .stimmen { grid-template-columns: 1fr; } }

/* Besuch */
.besuch { background: var(--nuss); color: #EDE4D8; padding: clamp(4rem, 9vw, 7rem) 0; }
.besuch h2, .besuch h3 { color: #FBF7F1; }
.besuch__raster { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); }
.besuch__adresse { font-style: normal; font-size: 1.25rem; line-height: 1.55; margin-bottom: 1rem; }
.besuch__tel a { font-family: var(--display); font-size: 2.4rem; text-decoration: none; color: var(--messing-hell); }
.besuch__infos { padding-left: 1.1rem; color: #CDBFAF; margin: 0 0 2rem; }
.besuch__zeiten { background: var(--nuss-tief); padding: clamp(1.5rem, 4vw, 2.5rem); border-top: 2px solid var(--messing); }
.zeiten { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.zeiten th, .zeiten td { text-align: left; padding: .7rem 0; border-bottom: 1px solid #3E3027; font-weight: 400; }
.zeiten td { text-align: right; color: #CDBFAF; }
.zeiten tr.heute th, .zeiten tr.heute td { color: var(--messing-hell); font-weight: 600; }
.zeiten tr.heute th::after { content: " (heute)"; font-weight: 400; }
.zeiten__hinweis { margin: 1.25rem 0 0; font-size: .95rem; color: #A99A8A; }
@media (max-width: 760px) { .besuch__raster { grid-template-columns: 1fr; } }

/* Fuß */
.fuss { background: var(--nuss-tief); color: #A99A8A; padding: 1.75rem 0; font-size: .9rem; }
.fuss__innen { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.fuss p { margin: 0; }
.fuss nav { display: flex; gap: 1.5rem; }

/* Rechtstexte */
.recht { max-width: 46rem; }
.recht h2 { font-size: 1.5rem; margin: 2.25rem 0 .6rem; }
.recht ul { padding-left: 1.2rem; margin: 0 0 1em; }
.recht a { color: inherit; text-decoration-color: var(--messing); }
.besuch__mail a { color: #EDE4D8; text-decoration-color: var(--messing); }
