@font-face {
  font-family: "DN Latin Modern Roman";
  font-display: swap;
  src: url("../iging/fonts/latin-modern/lmroman10-regular.otf") format("opentype");
}

@font-face {
  font-family: "DN Latin Modern Roman Caps";
  font-display: swap;
  src: url("../iging/fonts/latin-modern/lmromancaps10-regular.otf") format("opentype");
}

@font-face {
  font-family: "DN Latin Modern Roman Demi";
  font-display: swap;
  src: url("../iging/fonts/latin-modern/lmromandemi10-regular.otf") format("opentype");
}

@font-face {
  font-family: "DN Latin Modern Roman Italic";
  font-display: swap;
  src: url("../iging/fonts/latin-modern/lmroman10-italic.otf") format("opentype");
}

html.dn-chronograph-iging-staging-ready,
html.dn-chronograph-iging-staging-ready body {
  --dn-chronograph-module-surface: rgba(58, 82, 67, 0.96);
  --dn-chronograph-module-border: rgba(43, 70, 53, 0.9);
  --dn-chronograph-module-text: #f5fff8;
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

html.dn-chronograph-iging-open,
html.dn-chronograph-iging-open body {
  overflow: hidden;
}

html.dn-chronograph-iging-open .site-menu,
html.dn-chronograph-iging-open .settings-btn,
html.dn-chronograph-iging-open .dn-chronograph-module-row,
html.dn-chronograph-iging-open #jahreszeiten-buttons,
html.dn-chronograph-iging-open .jahreszeiten-buttons,
html.dn-chronograph-iging-open .jz-btn {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.dn-chronograph-landing-title {
  color: #f5fff8;
  font: 2.25rem/1.1 "DN Latin Modern Roman Caps", Georgia, "Times New Roman", serif;
  letter-spacing: 0.08em;
  margin: calc(6.25rem - 20px) auto 1.25rem;
  max-width: min(92vw, 36rem);
  text-align: center;
}

.dn-chronograph-module-row {
  align-items: center;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: min(92vw, 34rem);
  margin: 0 auto 1.75rem;
  padding: 0;
  position: relative;
  width: 100%;
  z-index: 2;
}

html.dn-chronograph-iging-staging-ready .jz-btn,
html.dn-chronograph-iging-staging-ready .site-menu summary,
html.dn-chronograph-iging-staging-ready .settings-btn {
  background: var(--dn-chronograph-module-surface);
  border-color: var(--dn-chronograph-module-border);
  color: var(--dn-chronograph-module-text);
}

html.dn-chronograph-iging-staging-ready .dn-chronograph-clock-flow {
  height: clamp(20rem, 96vw, 38rem);
  margin: -25px auto calc(7rem + 5px);
  max-width: 100vw;
  overflow: hidden;
  position: relative;
  width: 100%;
}

html.dn-chronograph-iging-staging-ready .dn-chronograph-clock-flow .clock {
  left: 50%;
  top: auto;
  transform: translate(-50%, 10px) scale(var(--clock-scale, 1));
  transform-origin: top center;
}

.dn-chronograph-module-row[data-dn-module-count="1"] {
  grid-template-columns: minmax(10rem, 14rem);
  justify-content: center;
}

.dn-chronograph-module-row[data-dn-module-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 13rem));
  justify-content: center;
  max-width: min(92vw, 28rem);
}

.dn-chronograph-module-row[data-dn-module-count="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dn-chronograph-module-slot {
  background: var(--dn-chronograph-module-surface);
  border: 1.5px solid var(--dn-chronograph-module-border);
  border-radius: 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  color: var(--dn-chronograph-module-text);
  cursor: pointer;
  font: 1.45rem/1.1 "DN Latin Modern Roman Caps", Georgia, "Times New Roman", serif;
  letter-spacing: 0.04em;
  min-height: 2.75rem;
  padding: 0.35rem 0.75rem;
  white-space: nowrap;
}

.dn-chronograph-module-slot:hover {
  background: rgba(112, 130, 118, 0.97);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.dn-chronograph-module-slot:active {
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.24);
  transform: translateY(1px);
}

.dn-chronograph-module-slot:focus-visible,
.dn-chronograph-module-close:focus-visible {
  outline: 0.2rem solid #fff9a8;
  outline-offset: 0.22rem;
  box-shadow: 0 0 0 0.42rem rgba(35, 91, 57, 0.85);
}

.dn-chronograph-module-slot[disabled] {
  border-style: dashed;
  cursor: default;
  opacity: 0.48;
}

.dn-chronograph-module-overlay {
  background: #b7cabd;
  color: #28563c;
  display: flex;
  flex-direction: column;
  inset: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0;
  position: fixed;
  z-index: 2147483000;
}

.dn-chronograph-module-overlay[data-dn-chronograph-appearance="dark"] {
  background: #17241c;
  color: #e8f5eb;
}

.dn-chronograph-module-shell {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  max-width: 56rem;
  min-height: 100%;
  padding-top: calc(4.75rem + env(safe-area-inset-top));
  width: 100%;
}

.dn-chronograph-module-header {
  align-items: center;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 3.25rem minmax(0, 1fr) 3.25rem;
  left: 50%;
  max-width: 56rem;
  padding: max(0.9rem, env(safe-area-inset-top)) 1rem 0.85rem;
  position: fixed;
  top: 0;
  transform: translateX(-50%);
  width: 100%;
  z-index: 10;
}

.dn-chronograph-module-overlay .dn-chronograph-module-header {
  background: #b7cabd;
  box-shadow: 0 0.25rem 0.7rem rgba(40, 86, 60, 0.14);
}

.dn-chronograph-module-overlay[data-dn-chronograph-appearance="dark"] .dn-chronograph-module-header {
  background: #17241c;
  box-shadow: 0 0.25rem 0.7rem rgba(0, 0, 0, 0.35);
}

.dn-chronograph-module-header h1 {
  font: 2rem/1.1 "DN Latin Modern Roman Caps", Georgia, "Times New Roman", serif;
  grid-column: 2;
  letter-spacing: 0.08em;
  margin: 0;
  text-align: center;
}

.dn-chronograph-module-close {
  align-items: center;
  background: #285a3b;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: #f5fff8;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  min-height: 3rem;
  min-width: 3rem;
  padding: 0;
  position: relative;
  text-indent: -9999px;
}

.dn-chronograph-module-close::before {
  border-bottom: 0.18rem solid #f5fff8;
  border-left: 0.18rem solid #f5fff8;
  content: "";
  height: 0.85rem;
  left: 50%;
  position: absolute;
  text-indent: 0;
  top: 50%;
  transform: translate(-42%, -50%) rotate(45deg);
  width: 0.85rem;
}

.dn-chronograph-module-close:active {
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.25);
  transform: translateY(1px);
}

.dn-chronograph-module-host {
  flex: 1;
  min-height: 0;
}

.dn-chronograph-module-error {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(40, 86, 60, 0.4);
  border-radius: 0.5rem;
  margin: 2rem auto;
  max-width: 32rem;
  padding: 1rem;
}

@media (max-width: 360px) {
  .dn-chronograph-module-row {
    gap: 0.35rem;
    padding: 0 0.55rem;
  }

  .dn-chronograph-module-slot {
    font-size: 1.1rem;
    letter-spacing: 0.03em;
    min-height: 2.75rem;
    padding-inline: 0.42rem;
  }

  .dn-chronograph-landing-title {
    font-size: 1.85rem;
    margin-top: calc(5.75rem - 20px);
  }
}

@media (forced-colors: active) {
  .dn-chronograph-module-slot:focus-visible,
  .dn-chronograph-module-close:focus-visible {
    outline: 3px solid Highlight;
    outline-offset: 3px;
  }
}
