{
  "id": 25,
  "slug": "german-optical-rangefinder",
  "name": "German Optical Rangefinder",
  "kind": "style",
  "family": "Hardware & Industrial",
  "sourceSite": {
    "name": "Leica Camera",
    "url": "https://leica-camera.com/en-US",
    "verifiedStatus": 200
  },
  "tagline": "Anodized matte black brass, illuminated brightline viewfinder frames, red-LED exposure HUD, and refined editorial serif.",
  "whyUnique": "Captures the quiet authority of Wetzlar optical engineering by pairing restrained Cormorant serif headlines with a live interactive optical rangefinder simulator.",
  "theme": "dark",
  "mobileStrength": "high",
  "tags": [
    "camera-optics",
    "rangefinder",
    "german-engineering",
    "anodized-black",
    "editorial-hardware"
  ],
  "bestFor": [
    "Precision optical & camera brands",
    "High-craft photography portfolios",
    "Luxury industrial hardware",
    "Bespoke audio & studio gear"
  ],
  "palette": [
    {
      "role": "canvas",
      "hex": "#0E0E0F",
      "name": "Matte Black Brass"
    },
    {
      "role": "surface",
      "hex": "#18181A",
      "name": "Anodized Body"
    },
    {
      "role": "ink",
      "hex": "#F1F0EC",
      "name": "Engraved Silver"
    },
    {
      "role": "accent",
      "hex": "#E20613",
      "name": "Wetzlar Red Seal"
    },
    {
      "role": "muted",
      "hex": "#8E8D89",
      "name": "Knurled Titanium"
    }
  ],
  "typography": {
    "display": "Cormorant Garamond",
    "body": "Inter",
    "mono": "IBM Plex Mono",
    "googleFontsUrl": "https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=IBM+Plex+Mono:wght@400;500&family=Inter:wght@300;400;500&display=swap",
    "scaleNotes": "Poised high-contrast serif display headings (36–58px) contrasted with sharp 10–12px monospace lens engravings and red LED exposure readouts."
  },
  "layoutNotes": "Quiet editorial header with red seal, title + mechanical shutter release bar, full-width interactive optical viewfinder deck, three machined dial control groups, and a 3-column optical spec footer.",
  "interactionNotes": "Interactive Frameline (28/35/50/90mm), Aperture (f/1.4–f/11), and Shutter Speed dials that dynamically resize the brightline optical frame, adjust depth-of-field blur/brightness, update the red EV meter, and trigger a shutter flash.",
  "mobileNotes": "Viewfinder scales to 260px height on mobile while all three dial groups stack into full-width >=44px tactile button bars.",
  "agentGuardrails": {
    "do": [
      "Maintain generous dark matte whitespace and razor-thin 1px borders without rounded bloat.",
      "Use the iconic red accent sparingly for the brand seal, LED exposure meter, and shutter hover state.",
      "Combine refined serif titles with strictly tabular monospace camera markings."
    ],
    "dont": [
      "Never overcrowd the viewport with marketing badges, popups, or flashy animations.",
      "Avoid glossy reflections or bright saturated backgrounds that undermine matte anodized authority."
    ]
  },
  "demoFile": "demos/german-optical-rangefinder.html",
  "thumbDesktop": "thumbs/german-optical-rangefinder-desktop.webp",
  "thumbMobile": "thumbs/german-optical-rangefinder-mobile.webp",
  "urls": {
    "page": "https://templates.michaelpitts.net/t/german-optical-rangefinder",
    "markdown": "https://templates.michaelpitts.net/t/german-optical-rangefinder.md",
    "api": "https://templates.michaelpitts.net/api/templates/german-optical-rangefinder",
    "demo": "https://templates.michaelpitts.net/demos/german-optical-rangefinder.html",
    "thumbDesktop": "https://templates.michaelpitts.net/thumbs/german-optical-rangefinder-desktop.webp",
    "thumbMobile": "https://templates.michaelpitts.net/thumbs/german-optical-rangefinder-mobile.webp"
  },
  "agentPrompt": "Design & build using template #025 \"German Optical Rangefinder\" (style / Hardware & Industrial, dark theme).\nFull AI blueprint & standalone starter code: https://templates.michaelpitts.net/t/german-optical-rangefinder.md\nLive demo: https://templates.michaelpitts.net/demos/german-optical-rangefinder.html\nReal-world inspiration: Leica Camera (https://leica-camera.com/en-US)\n\nCore aesthetic: Captures the quiet authority of Wetzlar optical engineering by pairing restrained Cormorant serif headlines with a live interactive optical rangefinder simulator.\nPalette: canvas: #0E0E0F (Matte Black Brass), surface: #18181A (Anodized Body), ink: #F1F0EC (Engraved Silver), accent: #E20613 (Wetzlar Red Seal), muted: #8E8D89 (Knurled Titanium)\nTypography: Display=\"Cormorant Garamond\", Body=\"Inter\", Mono=\"IBM Plex Mono\"\nLayout: Quiet editorial header with red seal, title + mechanical shutter release bar, full-width interactive optical viewfinder deck, three machined dial control groups, and a 3-column optical spec footer.\nInteractions: Interactive Frameline (28/35/50/90mm), Aperture (f/1.4–f/11), and Shutter Speed dials that dynamically resize the brightline optical frame, adjust depth-of-field blur/brightness, update the red EV meter, and trigger a shutter flash.\nMobile: Viewfinder scales to 260px height on mobile while all three dial groups stack into full-width >=44px tactile button bars.\n\nGuardrails:\n- DO: Maintain generous dark matte whitespace and razor-thin 1px borders without rounded bloat.\n- DO: Use the iconic red accent sparingly for the brand seal, LED exposure meter, and shutter hover state.\n- DO: Combine refined serif titles with strictly tabular monospace camera markings.\n- DON'T: Never overcrowd the viewport with marketing badges, popups, or flashy animations.\n- DON'T: Avoid glossy reflections or bright saturated backgrounds that undermine matte anodized authority.",
  "sourceCode": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<meta charset=\"UTF-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>M11-P // German Optical Rangefinder</title>\n<link rel=\"preconnect\" href=\"https://fonts.googleapis.com\">\n<link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin>\n<link href=\"https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=IBM+Plex+Mono:wght@400;500&family=Inter:wght@300;400;500&display=swap\" rel=\"stylesheet\">\n<style>\n  :root {\n    --canvas: #0E0E0F;\n    --surface: #18181A;\n    --surface-2: #222225;\n    --ink: #F1F0EC;\n    --muted: #8E8D89;\n    --red: #E20613;\n    --silver: #C9C8C3;\n    --border: #2C2C30;\n    --font-serif: 'Cormorant Garamond', Georgia, serif;\n    --font-sans: 'Inter', -apple-system, sans-serif;\n    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;\n  }\n\n  *, *::before, *::after { box-sizing: border-box; }\n\n  html, body {\n    margin: 0;\n    padding: 0;\n    background: var(--canvas);\n    color: var(--ink);\n    font-family: var(--font-sans);\n    -webkit-font-smoothing: antialiased;\n    overflow-x: hidden;\n  }\n\n  /* Header */\n  .m-header {\n    border-bottom: 1px solid var(--border);\n    padding: 0 22px;\n  }\n\n  .m-header-inner {\n    max-width: 1180px;\n    margin: 0 auto;\n    height: 64px;\n    display: flex;\n    align-items: center;\n    justify-content: space-between;\n  }\n\n  .m-brand {\n    display: flex;\n    align-items: center;\n    gap: 12px;\n    text-decoration: none;\n    color: var(--ink);\n  }\n\n  .red-seal {\n    width: 32px;\n    height: 32px;\n    border-radius: 50%;\n    background: var(--red);\n    display: grid;\n    place-items: center;\n    font-family: var(--font-serif);\n    font-style: italic;\n    font-size: 15px;\n    font-weight: 600;\n    color: #fff;\n  }\n\n  .m-brand-text {\n    font-family: var(--font-mono);\n    font-size: 12px;\n    letter-spacing: 0.16em;\n    text-transform: uppercase;\n  }\n\n  .m-nav {\n    display: flex;\n    gap: 24px;\n    font-size: 13px;\n    color: var(--muted);\n  }\n\n  .m-nav a {\n    color: inherit;\n    text-decoration: none;\n    letter-spacing: 0.04em;\n  }\n\n  .m-nav a:hover { color: var(--ink); }\n\n  /* Main Container */\n  .wrap {\n    max-width: 1180px;\n    margin: 0 auto;\n    padding: 40px 22px 72px;\n  }\n\n  .intro-bar {\n    display: flex;\n    justify-content: space-between;\n    align-items: flex-end;\n    gap: 24px;\n    flex-wrap: wrap;\n    margin-bottom: 32px;\n  }\n\n  .kicker {\n    font-family: var(--font-mono);\n    font-size: 11px;\n    letter-spacing: 0.18em;\n    color: var(--muted);\n    text-transform: uppercase;\n    margin-bottom: 10px;\n  }\n\n  h1 {\n    font-family: var(--font-serif);\n    font-size: clamp(36px, 5vw, 58px);\n    font-weight: 500;\n    line-height: 1.02;\n    margin: 0;\n    letter-spacing: -0.01em;\n  }\n\n  .shutter-btn {\n    min-height: 48px;\n    padding: 0 24px;\n    border: 1px solid var(--silver);\n    background: transparent;\n    color: var(--ink);\n    font-family: var(--font-mono);\n    font-size: 12px;\n    letter-spacing: 0.12em;\n    text-transform: uppercase;\n    cursor: pointer;\n    display: inline-flex;\n    align-items: center;\n    gap: 10px;\n    transition: background 0.18s, border-color 0.18s;\n  }\n\n  .shutter-btn:hover { background: var(--red); border-color: var(--red); }\n\n  .shutter-dot {\n    width: 8px;\n    height: 8px;\n    border-radius: 50%;\n    background: var(--red);\n  }\n\n  .shutter-btn:hover .shutter-dot { background: #fff; }\n\n  /* Interactive Optical Rangefinder Viewfinder */\n  .viewfinder-shell {\n    background: var(--surface);\n    border: 1px solid var(--border);\n    padding: 20px;\n  }\n\n  .vf-window {\n    position: relative;\n    width: 100%;\n    height: 330px;\n    background: radial-gradient(circle at 50% 45%, #2B2A28 0%, #141416 70%, #09090A 100%);\n    overflow: hidden;\n    border: 1px solid #333338;\n    display: grid;\n    place-items: center;\n  }\n\n  .vf-scene {\n    position: absolute;\n    inset: 0;\n    transition: filter 0.25s ease, opacity 0.2s ease;\n  }\n\n  .vf-flash {\n    position: absolute;\n    inset: 0;\n    background: #000;\n    opacity: 0;\n    pointer-events: none;\n    transition: opacity 0.12s;\n  }\n\n  .vf-flash.snap { opacity: 0.92; }\n\n  /* Brightline Optical Frame Lines */\n  .frameline {\n    position: relative;\n    z-index: 5;\n    border: 1.5px solid rgba(255,255,255,0.88);\n    box-shadow: 0 0 12px rgba(255,255,255,0.28);\n    transition: width 0.28s cubic-bezier(0.22,1,0.36,1), height 0.28s cubic-bezier(0.22,1,0.36,1);\n    pointer-events: none;\n    display: grid;\n    place-items: center;\n  }\n\n  .range-patch {\n    width: 34px;\n    height: 22px;\n    border: 1px solid rgba(255, 224, 150, 0.72);\n    background: rgba(255, 224, 150, 0.12);\n  }\n\n  .vf-hud {\n    position: absolute;\n    bottom: 12px;\n    left: 16px;\n    right: 16px;\n    z-index: 6;\n    display: flex;\n    justify-content: space-between;\n    font-family: var(--font-mono);\n    font-size: 12px;\n    color: var(--red);\n    text-shadow: 0 0 8px rgba(226,6,19,0.7);\n    letter-spacing: 0.08em;\n  }\n\n  /* Machined Knurled Controls */\n  .dial-bar {\n    display: grid;\n    grid-template-columns: repeat(3, 1fr);\n    gap: 16px;\n    margin-top: 18px;\n  }\n\n  .dial-group {\n    background: var(--canvas);\n    border: 1px solid var(--border);\n    padding: 14px;\n  }\n\n  .dial-label {\n    font-family: var(--font-mono);\n    font-size: 10px;\n    letter-spacing: 0.14em;\n    color: var(--muted);\n    text-transform: uppercase;\n    margin-bottom: 10px;\n    display: flex;\n    justify-content: space-between;\n  }\n\n  .dial-label strong { color: var(--ink); }\n\n  .dial-pills {\n    display: flex;\n    gap: 6px;\n    flex-wrap: wrap;\n  }\n\n  .d-pill {\n    min-height: 44px;\n    min-width: 44px;\n    padding: 0 11px;\n    border: 1px solid var(--border);\n    background: var(--surface);\n    color: var(--muted);\n    font-family: var(--font-mono);\n    font-size: 11px;\n    cursor: pointer;\n    flex: 1 1 auto;\n  }\n\n  .d-pill.active {\n    border-color: var(--ink);\n    background: var(--ink);\n    color: var(--canvas);\n  }\n\n  /* Optical Specs Trio */\n  .specs-trio {\n    margin-top: 36px;\n    display: grid;\n    grid-template-columns: repeat(3, 1fr);\n    gap: 24px;\n    border-top: 1px solid var(--border);\n    padding-top: 28px;\n  }\n\n  .spec-col h2 {\n    font-family: var(--font-serif);\n    font-size: 24px;\n    font-weight: 500;\n    margin: 0 0 8px;\n  }\n\n  .spec-col p {\n    font-size: 14px;\n    line-height: 1.6;\n    color: var(--muted);\n    margin: 0;\n  }\n\n  @media (max-width: 840px) {\n    .dial-bar, .specs-trio { grid-template-columns: 1fr; }\n    .m-nav { display: none; }\n    .vf-window { height: 260px; }\n  }\n</style>\n</head>\n<body>\n\n<header class=\"m-header\">\n  <div class=\"m-header-inner\">\n    <a href=\"#\" class=\"m-brand\">\n      <span class=\"red-seal\" aria-hidden=\"true\">L</span>\n      <span class=\"m-brand-text\">WETZLAR OPTIK · M-SYSTEM</span>\n    </a>\n    <nav class=\"m-nav\" aria-label=\"Primary\">\n      <a href=\"#viewfinder\">Rangefinder</a>\n      <a href=\"#optics\">Summilux-M</a>\n      <a href=\"#optics\">Craftsmanship</a>\n    </nav>\n  </div>\n</header>\n\n<main class=\"wrap\">\n  <div class=\"intro-bar\">\n    <div>\n      <div class=\"kicker\">DAS WESENTLICHE · FULL-FRAME RANGEFINDER</div>\n      <h1>Precision milled in Wetzlar.</h1>\n    </div>\n    <button class=\"shutter-btn\" id=\"shutterBtn\">\n      <span class=\"shutter-dot\"></span>\n      <span>RELEASE SHUTTER (<span id=\"shotCount\">00</span>)</span>\n    </button>\n  </div>\n\n  <section class=\"viewfinder-shell\" id=\"viewfinder\" aria-label=\"Interactive Rangefinder Viewfinder\">\n    <div class=\"vf-window\">\n      <svg class=\"vf-scene\" id=\"vfScene\" viewBox=\"0 0 800 330\" preserveAspectRatio=\"xMidYMid slice\" aria-hidden=\"true\">\n        <defs>\n          <linearGradient id=\"sky\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n            <stop offset=\"0%\" stop-color=\"#2D2C2A\"/>\n            <stop offset=\"100%\" stop-color=\"#141416\"/>\n          </linearGradient>\n        </defs>\n        <rect width=\"800\" height=\"330\" fill=\"url(#sky)\"/>\n        <!-- Architectural Minimalist Silhouette -->\n        <rect x=\"70\" y=\"90\" width=\"140\" height=\"240\" fill=\"#1E1E21\"/>\n        <rect x=\"240\" y=\"55\" width=\"175\" height=\"275\" fill=\"#27272B\"/>\n        <rect x=\"445\" y=\"110\" width=\"130\" height=\"220\" fill=\"#1B1B1E\"/>\n        <rect x=\"610\" y=\"75\" width=\"120\" height=\"255\" fill=\"#232327\"/>\n        <!-- Light slit windows -->\n        <line x1=\"270\" y1=\"80\" x2=\"270\" y2=\"290\" stroke=\"#D9D4C5\" stroke-width=\"2\" opacity=\"0.5\"/>\n        <line x1=\"305\" y1=\"80\" x2=\"305\" y2=\"290\" stroke=\"#D9D4C5\" stroke-width=\"2\" opacity=\"0.35\"/>\n        <line x1=\"340\" y1=\"80\" x2=\"340\" y2=\"290\" stroke=\"#D9D4C5\" stroke-width=\"2\" opacity=\"0.25\"/>\n        <!-- Streetlight bokeh orbs -->\n        <circle cx=\"485\" cy=\"185\" r=\"9\" fill=\"#F0E2B6\" opacity=\"0.7\"/>\n        <circle cx=\"660\" cy=\"150\" r=\"6\" fill=\"#E20613\" opacity=\"0.8\"/>\n      </svg>\n\n      <div class=\"frameline\" id=\"frameline\" style=\"width:66%;height:68%;\">\n        <div class=\"range-patch\" title=\"Coincident Rangefinder Patch\"></div>\n      </div>\n\n      <div class=\"vf-flash\" id=\"vfFlash\"></div>\n\n      <div class=\"vf-hud\">\n        <span id=\"hudFocal\">35MM BRIGHTLINE</span>\n        <span id=\"hudMeter\">◀ ● ▶ 0.0 EV</span>\n        <span id=\"hudExp\">1/500 · f/2.0</span>\n      </div>\n    </div>\n\n    <div class=\"dial-bar\">\n      <div class=\"dial-group\">\n        <div class=\"dial-label\"><span>FRAMELINE</span><strong id=\"valFocal\">35 mm</strong></div>\n        <div class=\"dial-pills\" data-dial=\"focal\">\n          <button class=\"d-pill\" data-v=\"28\">28</button>\n          <button class=\"d-pill active\" data-v=\"35\">35</button>\n          <button class=\"d-pill\" data-v=\"50\">50</button>\n          <button class=\"d-pill\" data-v=\"90\">90</button>\n        </div>\n      </div>\n\n      <div class=\"dial-group\">\n        <div class=\"dial-label\"><span>APERTURE</span><strong id=\"valAp\">f/2.0</strong></div>\n        <div class=\"dial-pills\" data-dial=\"aperture\">\n          <button class=\"d-pill\" data-v=\"1.4\">1.4</button>\n          <button class=\"d-pill active\" data-v=\"2.0\">2.0</button>\n          <button class=\"d-pill\" data-v=\"5.6\">5.6</button>\n          <button class=\"d-pill\" data-v=\"11\">11</button>\n        </div>\n      </div>\n\n      <div class=\"dial-group\">\n        <div class=\"dial-label\"><span>SHUTTER</span><strong id=\"valSh\">1/500</strong></div>\n        <div class=\"dial-pills\" data-dial=\"shutter\">\n          <button class=\"d-pill\" data-v=\"1/125\">1/125</button>\n          <button class=\"d-pill active\" data-v=\"1/500\">1/500</button>\n          <button class=\"d-pill\" data-v=\"1/2000\">1/2000</button>\n        </div>\n      </div>\n    </div>\n  </section>\n\n  <section class=\"specs-trio\" id=\"optics\">\n    <div class=\"spec-col\">\n      <h2>Triple Resolution Sensor</h2>\n      <p>Full-frame BSI CMOS architecture captures native 60, 36, or 18 megapixel DNG files with 15 stops of dynamic latitude.</p>\n    </div>\n    <div class=\"spec-col\">\n      <h2>Machined Brass Top Plate</h2>\n      <p>Scratch-resistant matte black paint over solid milled brass—engineered to acquire honest patina through decades of field work.</p>\n    </div>\n    <div class=\"spec-col\">\n      <h2>Optical Coincident Focus</h2>\n      <p>Zero electronic viewfinder lag. Frame decisive moments inside illuminated brightlines while observing action outside the border.</p>\n    </div>\n  </section>\n</main>\n\n<script>\n  const frameline = document.getElementById('frameline');\n  const vfScene = document.getElementById('vfScene');\n  const vfFlash = document.getElementById('vfFlash');\n\n  const focalSizes = {\n    '28': { w: '84%', h: '80%' },\n    '35': { w: '66%', h: '68%' },\n    '50': { w: '48%', h: '52%' },\n    '90': { w: '30%', h: '36%' }\n  };\n\n  const apBlur = { '1.4': 2.6, '2.0': 1.2, '5.6': 0.3, '11': 0 };\n  const shBright = { '1/125': 1.25, '1/500': 1.0, '1/2000': 0.72 };\n\n  let curFocal = '35';\n  let curAp = '2.0';\n  let curSh = '1/500';\n  let shots = 0;\n\n  function renderVF() {\n    const s = focalSizes[curFocal];\n    frameline.style.width = s.w;\n    frameline.style.height = s.h;\n    vfScene.style.filter = `blur(${apBlur[curAp]}px) brightness(${shBright[curSh]})`;\n\n    document.getElementById('valFocal').textContent = `${curFocal} mm`;\n    document.getElementById('valAp').textContent = `f/${curAp}`;\n    document.getElementById('valSh').textContent = curSh;\n    document.getElementById('hudFocal').textContent = `${curFocal}MM BRIGHTLINE`;\n    document.getElementById('hudExp').textContent = `${curSh} · f/${curAp}`;\n\n    const ev = (curSh === '1/125' ? 0.7 : curSh === '1/2000' ? -0.7 : 0) + (curAp === '1.4' ? 0.5 : curAp === '11' ? -0.5 : 0);\n    const arrow = ev > 0.2 ? '▶ +0.7 EV' : ev < -0.2 ? '◀ -0.7 EV' : '◀ ● ▶ 0.0 EV';\n    document.getElementById('hudMeter').textContent = arrow;\n  }\n\n  document.querySelectorAll('.dial-pills').forEach(group => {\n    const dial = group.dataset.dial;\n    group.querySelectorAll('.d-pill').forEach(btn => {\n      btn.addEventListener('click', () => {\n        group.querySelectorAll('.d-pill').forEach(b => b.classList.remove('active'));\n        btn.classList.add('active');\n        if (dial === 'focal') curFocal = btn.dataset.v;\n        if (dial === 'aperture') curAp = btn.dataset.v;\n        if (dial === 'shutter') curSh = btn.dataset.v;\n        renderVF();\n      });\n    });\n  });\n\n  document.getElementById('shutterBtn').addEventListener('click', () => {\n    shots++;\n    document.getElementById('shotCount').textContent = String(shots).padStart(2, '0');\n    vfFlash.classList.add('snap');\n    setTimeout(() => vfFlash.classList.remove('snap'), 130);\n  });\n\n  renderVF();\n</script>\n</body>\n</html>\n"
}
