/* German Master Tech — Retirement website | v1.3.0
   No build tools or JavaScript required. */
:root {
  --red: #b5122c;
  --red-dark: #8f0d21;
  --red-soft: #f9eef0;
  --ink: #1f2329;
  --text: #495058;
  --muted: #747c83;
  --line: #e7e5e2;
  --paper: #ffffff;
  --canvas: #f9f8f6;
  --focus: #192e70;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--red-dark); }
a:hover { color: var(--red); }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 2px; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.container { width: min(calc(100% - 48px), 1110px); margin-inline: auto; }
.narrow { max-width: 760px; }
.skip-link {
  position: absolute;
  left: 10px;
  top: -90px;
  z-index: 10;
  padding: 10px 16px;
  background: white;
  color: var(--ink);
  border: 2px solid var(--red);
}
.skip-link:focus { top: 10px; }
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  min-height: 96px;
}
.brand { display: inline-flex; align-items: center; flex: 0 1 325px; }
.brand img { display: block; width: min(100%, 325px); }
.site-nav { display: flex; gap: 32px; flex-wrap: wrap; align-items: center; }
.site-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 650;
  font-size: .89rem;
  white-space: nowrap;
  padding-block: 7px;
  transition: color .18s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--red); }
.site-nav a[aria-current="page"] { border-bottom: 2px solid var(--red); }
.hero {
  text-align: center;
  padding-top: clamp(44px, 5.8vw, 78px);
  padding-bottom: clamp(46px, 5vw, 72px);
}
.hero-inner { max-width: 870px; margin-inline: auto; }
.eyebrow, .section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.5;
  color: var(--red);
}
.eyebrow { font-size: clamp(.92rem, 1.18vw, 1.02rem); letter-spacing: .125em; }
.eyebrow-line { width: 25px; height: 2px; background: var(--red); }
.yearline {
  margin-top: 16px;
  font-size: clamp(1.12rem, 1.6vw, 1.32rem);
  font-weight: 700;
  letter-spacing: .17em;
  color: var(--muted);
}
h1, h2, p { margin-top: 0; }
.hero h1 {
  max-width: 850px;
  margin: 13px auto 19px;
  color: var(--ink);
  font-size: clamp(2.65rem, 6.1vw, 5.15rem);
  font-weight: 780;
  line-height: 1.09;
  letter-spacing: -.047em;
  text-wrap: balance;
}
.hero h1 span { color: var(--red); }
.hero-subtitle {
  color: var(--text);
  font-size: clamp(1.06rem, 1.7vw, 1.25rem);
  line-height: 1.72;
  max-width: 750px;
  margin: 0 auto;
  text-wrap: pretty;
}
.hero-subtitle strong { color: var(--ink); font-weight: 700; }
.closed-note {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #626871;
  font-weight: 750;
  letter-spacing: .065em;
  font-size: clamp(.9rem, 1.15vw, 1rem);
}
.closed-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.letter-section { background: var(--paper); padding: clamp(46px, 5vw, 72px) 0; border-block: 1px solid var(--line); }
.letter-section .narrow { max-width: 770px; }
.letter-rule { background: var(--red); width: 54px; height: 3px; margin-bottom: 23px; }
.letter-section p { color: var(--text); font-size: 1.13rem; line-height: 1.82; margin-bottom: 19px; }
.letter-section .letter-emphasis { color: var(--ink); font-weight: 750; margin-top: 24px; }
.signature { margin-top: 32px; display: flex; flex-direction: column; gap: 8px; }
.signature-intro { color: var(--muted); font-size: .98rem; font-style: italic; }
.signature-name { font-family: Georgia, "Times New Roman", serif; font-size: 1.9rem; font-weight: 600; font-style: italic; line-height: 1.4; color: var(--red-dark); }
.contact-section { padding: clamp(42px, 5vw, 70px) 0; }
.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  overflow: hidden;
  background: var(--red-soft);
  border: 1px solid #f0d9dc;
  border-radius: 12px;
  padding: clamp(28px, 4.2vw, 52px);
}
.contact-card-content { max-width: 690px; position: relative; z-index: 1; }
.contact-card h2 {
  margin: 12px 0 15px;
  color: var(--ink);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 760;
  letter-spacing: -.038em;
  line-height: 1.18;
  text-wrap: balance;
}
.contact-card p { max-width: 600px; color: var(--text); margin-bottom: 14px; font-size: 1.02rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 13px;
  background: var(--red);
  color: white;
  border: 2px solid var(--red);
  border-radius: 6px;
  padding: 14px 22px;
  min-height: 54px;
  font-weight: 760;
  font-size: .95rem;
  line-height: 1.3;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease, border-color .18s ease;
}
.button:hover { color: white; background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); }
.button-arrow { font-size: 1.35rem; font-weight: 400; line-height: 1; }
.contact-card-mark {
  flex-shrink: 0;
  width: 175px;
  height: 175px;
  border: 2px solid #e8b9c2;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 5.05rem;
  font-weight: 800;
  letter-spacing: -.07em;
  line-height: 1.03;
  color: #d495a1;
}
.contact-card-mark span { font-size: .82rem; letter-spacing: .22em; font-weight: 750; }
.site-footer { background: var(--paper); border-top: 1px solid var(--line); }
.footer-inner {
  padding-block: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: .8rem;
}
/* Contact page */
.contact-main { padding-bottom: 64px; }
.subpage-hero { padding-top: clamp(34px, 5vw, 58px); padding-bottom: 12px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 650;
  margin-bottom: 28px;
}
.back-link:hover { color: var(--red); }
.subpage-hero .section-label { display: block; }
.subpage-hero h1 {
  margin: 13px 0 17px;
  color: var(--ink);
  font-size: clamp(2.9rem, 5.2vw, 4.7rem);
  line-height: 1.1;
  font-weight: 780;
  letter-spacing: -.045em;
}
.subpage-hero p { color: var(--text); font-size: 1.08rem; line-height: 1.73; margin-bottom: 14px; }
.subpage-hero p strong { color: var(--ink); }
.form-section { padding-top: 12px; }
.form-card { padding: clamp(23px, 3.8vw, 38px); background: var(--paper); border: 1px solid var(--line); border-radius: 11px; }
.form-card h2 { margin-bottom: 18px; font-size: 1.45rem; letter-spacing: -.026em; }
/* Jotform injects a responsive iframe where its script is placed. */
.jotform-embed { width: 100%; min-width: 0; }
.jotform-embed iframe { max-width: 100%; }
.form-alternative { margin-top: 10px; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.form-alternative a { color: var(--red-dark); text-underline-offset: 2px; }
.form-footnote { margin-top: 19px; font-size: .82rem; color: var(--muted); text-align: center; }
@media (max-width: 840px) {
  .contact-card-mark { display: none; }
  .contact-card { gap: 0; }
}
@media (max-width: 600px) {
  .container { width: min(calc(100% - 36px), 1110px); }
  .header-inner { min-height: auto; padding-block: 20px 14px; flex-direction: column; gap: 12px; }
  .brand { flex-basis: auto; width: min(100%, 300px); }
  .brand img { width: 100%; }
  .site-nav { gap: 30px; }
  .site-nav a { font-size: .85rem; }
  .hero { padding-top: 38px; padding-bottom: 43px; }
  .hero h1 { letter-spacing: -.038em; }
  .hero-subtitle { font-size: 1rem; line-height: 1.76; }
  .closed-note { max-width: 310px; line-height: 1.5; justify-content: center; }
  .letter-section p { font-size: 1.04rem; line-height: 1.75; }
  .signature-name { font-size: 1.65rem; }
  .contact-card { border-radius: 8px; }
  .contact-card p { font-size: .98rem; }
  .button { width: 100%; justify-content: space-between; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 5px; }
  .back-link { margin-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}


/* Navigation for the retirement, sale gallery, and contact pages */
.site-nav { gap: clamp(17px, 2.6vw, 32px); }

/* Subtle cross-link from the retirement homepage */
.home-sale-note {
  padding: 0 0 clamp(32px, 5vw, 54px);
  margin-top: calc(-1 * clamp(22px, 2.8vw, 34px));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .95rem;
  text-align: center;
}
.home-sale-note a { font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; }

/* Items for sale page */
.sale-main { padding-bottom: clamp(48px, 6vw, 80px); }
.sale-hero { padding-top: clamp(44px, 5.6vw, 78px); padding-bottom: clamp(42px, 5vw, 62px); }
.sale-hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.07;
  letter-spacing: -.05em;
  margin: 14px 0 20px;
  font-weight: 790;
  color: var(--ink);
}
.sale-hero h1 span { color: var(--red); }
.sale-hero .section-label { font-size: .92rem; }
.sale-intro { max-width: 850px; font-size: clamp(1.05rem, 1.6vw, 1.17rem); line-height: 1.72; color: var(--text); margin-bottom: 15px; }
.sale-intro strong { color: var(--ink); }
.sale-hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 17px; }
.sale-hero-actions .button { margin-top: 0; }
.sale-hero-hint { font-size: .88rem; color: var(--muted); }

.gallery-section { background: var(--paper); border-block: 1px solid var(--line); padding: clamp(34px, 4vw, 52px) 0 clamp(46px, 5vw, 64px); }
.gallery-topline { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.gallery-topline h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); letter-spacing: -.032em; margin: 8px 0 2px; line-height: 1.18; }
.gallery-count { color: var(--muted); font-size: .86rem; font-weight: 650; margin-bottom: 0; }
.gallery-help { color: var(--muted); font-size: .93rem; line-height: 1.55; margin: 12px 0 26px; }
.sale-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.gallery-tile {
  display: block; position: relative; overflow: hidden; border: 0; padding: 0;
  background: #f0efed; border-radius: 8px; aspect-ratio: 4 / 3; cursor: zoom-in;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06); text-align: left;
}
.gallery-tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gallery-tile:hover img { transform: scale(1.04); }
.gallery-tile:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.gallery-ref { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 5px; color: white; background: rgba(24, 24, 27, .82); font-size: .78rem; font-weight: 690; letter-spacing: .01em; }
.sale-inquire { margin-top: clamp(36px, 5vw, 60px); }
.sale-inquire-panel { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: clamp(28px, 4vw, 46px); border: 1px solid #f0d9dc; border-radius: 10px; background: var(--red-soft); }
.sale-inquire-panel > div { max-width: 690px; }
.sale-inquire-panel h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 10px 0 13px; line-height: 1.2; }
.sale-inquire-panel p { margin: 0; color: var(--text); line-height: 1.68; }
.sale-inquire-panel .button { flex-shrink: 0; margin: 0; }

/* Accessible image viewer: click, arrows, keyboard and swipe */
.photo-dialog {
  position: fixed; inset: 0; width: min(96vw, 1100px); max-width: 1100px;
  height: min(96dvh, 920px); max-height: 96dvh; margin: auto; padding: 0;
  border: 1px solid rgba(255,255,255,.18); border-radius: 12px;
  background: #161718; color: white; overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.42);
}
.photo-dialog::backdrop { background: rgba(0,0,0,.87); }
.photo-viewer { display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; }
.viewer-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 17px; min-height: 57px; }
.viewer-position { font-size: .9rem; color: #d5d5d5; font-weight: 550; }
.viewer-close { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 50%; border: 1px solid #494949; background: #292929; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.viewer-close:hover { background: #434343; }
.viewer-stage { display: flex; position: relative; min-height: 0; flex: 1; align-items: center; justify-content: center; touch-action: pan-y; }
.viewer-stage img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.viewer-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; border: 1px solid rgba(255,255,255,.22); background: rgba(15,15,15,.72); color: white; border-radius: 50%; width: 47px; height: 47px; font-size: 2.2rem; line-height: .8; cursor: pointer; }
.viewer-arrow:hover { background: rgba(80,80,80,.9); }
.viewer-prev { left: 14px; }
.viewer-next { right: 14px; }
.viewer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 18px; min-height: 56px; flex-wrap: wrap; }
.viewer-reference { font-size: .85rem; color: #dedede; }
.viewer-inquire { color: #fff; font-size: .88rem; font-weight: 700; text-underline-offset: 3px; }
.viewer-inquire:hover { color: #fff; }
.viewer-close:focus-visible, .viewer-arrow:focus-visible, .viewer-inquire:focus-visible { outline: 3px solid #99bfff; outline-offset: 2px; }

@media (max-width: 840px) {
  .sale-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sale-inquire-panel { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .site-nav { justify-content: center; gap: 8px 19px; }
  .site-nav a { font-size: .81rem; }
  .home-sale-note { margin-top: -13px; padding-bottom: 32px; font-size: .88rem; }
  .sale-hero { padding-top: 36px; padding-bottom: 35px; }
  .sale-intro { font-size: 1rem; line-height: 1.67; }
  .sale-hero-actions .button { width: 100%; }
  .sale-hero-hint { font-size: .82rem; }
  .sale-gallery { gap: 9px; }
  .gallery-help { margin-bottom: 20px; font-size: .88rem; }
  .gallery-ref { right: 6px; bottom: 6px; padding: 3px 7px; font-size: .72rem; }
  .sale-inquire-panel .button { width: 100%; }
  .photo-dialog { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; }
  .viewer-arrow { width: 39px; height: 39px; font-size: 1.9rem; }
  .viewer-prev { left: 5px; }
  .viewer-next { right: 5px; }
  .viewer-bottom { padding: 8px 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-tile img { transition: none; }
}
