/* Spenglerei Garmuth — Leibnitz
   Navy auf Zinkweiß. Impact-Stack für Überschriften, System-Sans für Fließtext,
   System-Mono für Uhrzeiten. Keine Webfonts, kein JS, keine dritten Parteien. */

:root {
  --nv: #1c3a5e;
  --nv-dark: #122844;
  --ink: #1a1a1a;
  --mu: #4e4b46;
  --zw: #f4f3ef;
  --zw-s: #e8e6e0;
  --rl: #cdc9c0;

  --heading: Impact, "Haettenschweiler", "Arial Narrow Bold", "Franklin Gothic Bold", Charcoal, sans-serif;
  --copy: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --figures: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;

  --gutter: 20px;
  --y: 48px;
}

@media (min-width: 480px)  { :root { --gutter: 24px; } }
@media (min-width: 768px)  { :root { --gutter: 32px; --y: 64px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; --y: 80px; } }
@media (min-width: 1280px) { :root { --gutter: 56px; } }
@media (min-width: 1440px) { :root { --gutter: 64px; } }
@media (min-width: 1920px) { :root { --gutter: 96px; } }

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

/* Full-width Stehfalz band between topbar and hero — the trade signature */
.falz-band {
  height: 12px;
  background:
    repeating-linear-gradient(
      to right,
      var(--nv) 0 1px,
      transparent 1px 10px,
      var(--nv-dark) 10px 12px,
      transparent 12px 22px
    ),
    var(--zw-s);
  border-bottom: 1px solid var(--rl);
}

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

body {
  margin: 0;
  background: var(--zw);
  color: var(--ink);
  font-family: var(--copy);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) { body { font-size: 18px; } }

p { margin: 0; }
a { color: inherit; }

.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;
}

.skiplink {
  position: absolute;
  top: -1000px; left: 8px;
  padding: 8px 12px;
  background: var(--nv);
  color: var(--zw);
  z-index: 10;
  text-decoration: none;
}
.skiplink:focus { top: 8px; }

/* Signature: a small L-shaped corner mark — the Spengler's angle */
.ell {
  position: relative;
  display: inline-block;
  padding-right: 0.7em;
}
.ell::before, .ell::after {
  content: "";
  position: absolute;
  background: var(--nv);
}
.ell::before {
  right: 0.14em;
  top: 50%;
  width: 2px;
  height: 0.5em;
  transform: translateY(-50%);
}
.ell::after {
  right: 0.14em;
  bottom: 24%;
  width: 0.38em;
  height: 2px;
}
.ell--light::before, .ell--light::after { background: var(--zw); }
.nm { font-family: var(--figures); letter-spacing: 0.01em; font-weight: 500; }

/* Container padding */
.tb__in,
.state,
.hrs,
.con,
.cb__in,
.ft {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Top band */
.tb { background: var(--nv); color: var(--zw); }
.tb__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.b {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  text-decoration: none;
  color: var(--zw);
}
.b__kicker {
  display: none;
  font-family: var(--copy);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--zw-s);
}
@media (min-width: 360px) { .b__kicker { display: inline; } }
.b__name {
  font-family: var(--heading);
  font-weight: 400;
  font-size: 1.7rem;
  letter-spacing: 0.02em;
}
@media (min-width: 768px) {
  .b__kicker { font-size: 0.85rem; }
  .b__name { font-size: 2rem; }
}

/* CTA buttons */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  text-decoration: none;
  font-family: var(--copy);
  font-weight: 600;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  transition: color 150ms ease-out, background-color 150ms ease-out, border-color 150ms ease-out;
}
.cta--small {
  background: var(--zw);
  color: var(--nv);
  border-color: var(--zw);
  font-size: 0.95rem;
}
.cta--small .cta__word { display: none; }
.cta--small .cta__num { font-family: var(--figures); font-size: 0.95rem; white-space: nowrap; }
@media (min-width: 480px) {
  .cta--small .cta__word { display: inline; }
  .cta--small .cta__word::after { content: " ·"; }
}
@media (hover: hover) {
  .cta--small:hover { background: var(--zw-s); }
}
.cta--small:focus-visible {
  outline: 2px solid var(--zw);
  outline-offset: 2px;
  background: var(--zw-s);
}

/* State (hero) */
.state {
  padding-top: var(--y);
  padding-bottom: calc(var(--y) * 0.6);
}
.over {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mu);
  margin-bottom: 20px;
}
.state__h {
  font-family: var(--heading);
  font-weight: 400;
  font-size: clamp(2.5rem, 8vw + 0.5rem, 5rem);
  line-height: 1;
  letter-spacing: 0.005em;
  text-wrap: balance;
  margin: 0 0 28px 0;
  max-width: 14ch;
}
.state__sub {
  font-size: clamp(1.05rem, 1.4vw + 0.8rem, 1.3rem);
  max-width: 68ch;
}

/* Sections */
section { padding-top: calc(var(--y) * 0.5); padding-bottom: var(--y); }
.xh {
  font-family: var(--heading);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.5vw + 0.6rem, 2.8rem);
  line-height: 1.05;
  letter-spacing: 0.005em;
  margin: 0 0 32px 0;
  padding-top: 40px;
  border-top: 1px solid var(--rl);
}
.qf { color: var(--mu); font-family: var(--copy); font-weight: 400; font-size: 0.72em; letter-spacing: 0.04em; }

/* Hours — three-column table, Morgens / Nachmittags per day */
.hrs__wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 72rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .hrs__wrap { grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr); gap: 56px; }
}
.hrs__t {
  width: 100%;
  min-width: 18rem;
  border-collapse: collapse;
}
.hrs__t-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.hrs__note {
  border-left: 2px solid var(--nv);
  padding: 4px 0 4px 20px;
  max-width: 28rem;
}
.hrs__note-lbl {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mu);
  margin-bottom: 8px;
}
.hrs__note-body {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
}
.hrs__t thead th {
  text-align: left;
  font-family: var(--copy);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mu);
  padding: 0 0 12px 16px;
  border-bottom: 1.5px solid var(--ink);
}
.hrs__t thead th:first-child { padding-left: 0; }
.hrs__dayhead { width: 10rem; }
.hrs__t tbody th,
.hrs__t tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rl);
  vertical-align: baseline;
  text-align: left;
  font-weight: 400;
}
.hrs__t tbody th:first-child,
.hrs__t tbody td:first-child { padding-left: 0; }
.hrs__t tbody tr:last-child th,
.hrs__t tbody tr:last-child td { border-bottom: 1.5px solid var(--ink); }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hrs__t tbody tr { transition: background-color 180ms ease-out; }
  .hrs__t tbody tr:hover,
  .hrs__t tbody tr:focus-within {
    background-color: rgba(28, 58, 94, 0.04);
  }
}

.hrs__day {
  font-family: var(--copy);
  font-weight: 700;
  color: var(--ink);
  font-size: 1.05rem;
}
.hrs__time {
  font-family: var(--figures);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.hrs__time--off {
  font-family: var(--copy);
  font-style: italic;
  font-weight: 400;
  color: var(--mu);
}
.hrs__row--off .hrs__day {
  color: var(--mu);
  font-weight: 400;
}

/* Contact */
.con__row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 64px;
  align-items: flex-start;
}
.con__addr {
  font-family: var(--heading);
  font-size: clamp(1.8rem, 2.5vw + 0.9rem, 2.8rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.005em;
  margin: 0;
  flex: 1 1 18rem;
}
.con__street { display: block; }
.con__place { display: block; font-size: 0.8em; color: var(--mu); margin-top: 4px; }
.con__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  flex: 1 1 18rem;
}
@media (min-width: 560px) { .con__cards { grid-template-columns: 1fr 1fr; } }
.cd {
  padding: 16px 20px;
  border-left: 2px solid var(--nv);
}
.cd__lbl {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mu);
  margin-bottom: 8px;
}
.cd__val {
  font-size: clamp(1rem, 0.6vw + 0.9rem, 1.15rem);
  color: var(--nv);
  word-break: break-word;
}

/* Call band */
.cb { background: var(--nv); color: var(--zw); margin-top: 32px; }
.cb__in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.cb__lbl {
  font-family: var(--heading);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.2vw + 0.8rem, 2.2rem);
  margin: 0;
  letter-spacing: 0.005em;
}
.cb__lbl .qf { color: var(--zw-s); font-family: var(--copy); font-weight: 400; }
.cta--big {
  background: var(--zw);
  color: var(--nv);
  border-color: var(--zw);
  font-family: var(--figures);
  font-weight: 500;
  font-size: clamp(1.1rem, 1.6vw + 0.7rem, 1.6rem);
  padding: 14px 22px;
  letter-spacing: 0.01em;
}
@media (hover: hover) {
  .cta--big:hover { background: var(--zw-s); }
}
.cta--big:focus-visible {
  outline: 2px solid var(--zw);
  outline-offset: 3px;
  background: var(--zw-s);
}

/* Footer */
.ft { background: var(--zw); padding-top: 40px; padding-bottom: 32px; }
.ft__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px 40px;
  margin-bottom: 32px;
}
@media (min-width: 560px) { .ft__cols { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .ft__cols { grid-template-columns: repeat(4, auto); } }
.fcol__lbl {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mu);
  margin-bottom: 8px;
}
.fcol p { font-size: 15px; line-height: 1.55; }
.fcol__mu { color: var(--mu); }
.ft__legal {
  font-size: 13px;
  color: var(--mu);
  border-top: 1px solid var(--rl);
  padding-top: 20px;
  line-height: 1.55;
}

/* Links */
.lk {
  color: var(--nv);
  text-decoration: underline;
  text-decoration-color: var(--rl);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .lk {
    background-image: linear-gradient(var(--nv-dark), var(--nv-dark));
    background-repeat: no-repeat;
    background-size: 0 1px;
    background-position: 0 100%;
    transition: background-size 180ms ease-out, color 150ms ease-out;
    text-decoration: none;
  }
  .lk:hover {
    color: var(--nv-dark);
    background-size: 100% 1px;
  }
}
.lk:focus-visible {
  outline: 2px solid var(--nv);
  outline-offset: 3px;
  text-decoration: underline;
  text-decoration-color: var(--nv);
  text-decoration-thickness: 2px;
}

/* Focus */
:focus-visible { outline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--nv); }
.tb a.b:focus-visible { outline-color: var(--zw); }

/* Load animation */
@media (prefers-reduced-motion: no-preference) {
  .state__h   { animation: up 420ms ease-out 50ms both; }
  .state__sub { animation: up 420ms ease-out 180ms both; }
}
@keyframes up {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- state photo + work photo (v3) ---------------------------------------- */
.state {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
@media (min-width: 900px) {
  .state { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; }
}
.state__text { min-width: 0; }
.state__photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #111;
  border: 1px solid #222;
  width: 100%;
  max-width: 520px;
}
.state__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.state__caption {
  display: block;
  font-size: 13px;
  color: #666;
  background: var(--paper, #f3f1ea);
  padding: 8px 12px;
  border-top: 1px solid #ccc;
  line-height: 1.4;
  font-style: italic;
}

.work-photo {
  padding: 24px 0;
  display: grid;
  justify-content: center;
}
.work-photo__figure {
  margin: 0;
  width: 100%;
  max-width: 420px;
  background: #111;
  border: 1px solid #222;
}
.work-photo__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* --- Signature: Regentropfen fallen beim Laden (one-shot, non-looping) --- */
.state__rain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.drop {
  position: absolute;
  top: -20px;
  width: 2px;
  height: 24px;
  background: linear-gradient(to bottom,
    rgba(185, 204, 222, 0.0) 0%,
    rgba(185, 204, 222, 0.85) 60%,
    rgba(185, 204, 222, 1.0) 100%);
  opacity: 0;
}
.drop--a { left: 12%; }
.drop--b { left: 28%; }
.drop--c { left: 46%; }
.drop--d { left: 64%; }
.drop--e { left: 82%; }

@media (prefers-reduced-motion: no-preference) {
  .drop--a { animation: drop-fall 1400ms cubic-bezier(.3,.1,.5,1) 400ms forwards; }
  .drop--b { animation: drop-fall 1400ms cubic-bezier(.3,.1,.5,1) 600ms forwards; }
  .drop--c { animation: drop-fall 1400ms cubic-bezier(.3,.1,.5,1) 800ms forwards; }
  .drop--d { animation: drop-fall 1400ms cubic-bezier(.3,.1,.5,1) 1000ms forwards; }
  .drop--e { animation: drop-fall 1400ms cubic-bezier(.3,.1,.5,1) 1200ms forwards; }

  @keyframes drop-fall {
    0%   { opacity: 0; transform: translateY(0); }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(640px); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .state__rain { display: none; }
}
