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

:root {
  --link-color: #F0A868;
  --link-hover: #FFC98A;
  --link-visited: #C98D5A;
}

a {
  color: var(--link-color);
  text-decoration: underline;
  text-decoration-color: rgba(110, 193, 255, 0.4);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:visited {
  color: var(--link-visited);
}

a:hover {
  color: var(--link-hover);
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 2px solid var(--link-focus-outline);
  outline-offset: 2px;
  border-radius: 2px;
}

a:active {
  color: #FFFFFF;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2a2318;
  font-family: sans-serif;
}

.lock-wrap {
  display: flex;
  align-items: center;
  flex-direction: column;   /* ← neu */
  justify-content: center;
  padding: 3rem 1rem;
}

.lock-body {
  background: linear-gradient(160deg, #c8c0b0 0%, #a89880 40%, #8c7d68 100%);
  border-radius: 18px;
  padding: 18px 22px 22px;
  display: flex;
  align-items: center;
  gap: 0;
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,0.35),
    inset 0 -3px 6px rgba(0,0,0,0.3),
    0 8px 32px rgba(0,0,0,0.45),
    0 2px 8px rgba(0,0,0,0.3);
  border: 1.5px solid #7a6d5a;
  position: relative;
}

.lock-body::before {
  content: '';
  position: absolute;
  top: 6px; left: 10px; right: 10px; height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
}

.digits-section {
  display: flex;
  gap: 6px;
  align-items: center;
}

.digit-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  cursor: ns-resize;
  user-select: none;
}

.digit-arrow {
  font-size: 13px;
  color: #5a4e3a;
  line-height: 1;
  padding: 3px 8px;
  opacity: 0.6;
}

.digit-window {
  width: 52px;
  height: 68px;
  background: #1a1510;
  border-radius: 6px;
  border: 2px solid #3a3228;
  box-shadow:
    inset 0 4px 12px rgba(0,0,0,0.7),
    inset 0 1px 3px rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.digit-window::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 30%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
  z-index: 2;
  border-radius: 4px 4px 0 0;
}

.digit-window::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 30%;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  z-index: 2;
  border-radius: 0 0 4px 4px;
}

.digit-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.digit-num {
  font-family: 'Courier New', monospace;
  font-size: 38px;
  font-weight: 700;
  color: #f0d060;
  line-height: 68px;
  height: 68px;
  width: 52px;
  text-align: center;
  text-shadow: 0 0 12px rgba(240,200,50,0.5);
  letter-spacing: -1px;
}

.slot-divider {
  width: 4px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.3), transparent);
}

.hasp-section {
  margin-left: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 18px;
}

.hasp-label {
  font-size: 10px;
  color: #5a4e3a;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hasp-btn {
  width: 44px;
  height: 70px;
  background: linear-gradient(160deg, #d4a020 0%, #b87c10 50%, #8a5c08 100%);
  border-radius: 8px;
  border: 1.5px solid #7a5008;
  box-shadow:
    inset 0 2px 3px rgba(255,255,255,0.25),
    inset 0 -2px 4px rgba(0,0,0,0.3),
    0 3px 8px rgba(0,0,0,0.4);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: transform 0.1s, box-shadow 0.1s;
  position: relative;
}

.hasp-btn:hover {
  box-shadow:
    inset 0 2px 3px rgba(255,255,255,0.3),
    inset 0 -2px 4px rgba(0,0,0,0.3),
    0 5px 12px rgba(0,0,0,0.5);
  transform: translateY(-1px);
}

.hasp-btn:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 6px rgba(0,0,0,0.4),
    0 1px 4px rgba(0,0,0,0.4);
}

.hasp-icon {
  width: 30px;
  height: 40px;
  position: relative;
  clip-path: polygon(15% 5%, 15% 95%, 90% 50%);
  background: linear-gradient(155deg,
    #fff6d8 0%,
    #ffe9a3 30%,
    #e0b04a 65%,
    #a8781f 100%
  );
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.45));
}

/* Glanzlicht oben links für plastische Wirkung */
.hasp-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: polygon(15% 5%, 15% 95%, 90% 50%);
  background: linear-gradient(155deg,
    rgba(255,255,255,0.55) 0%,
    rgba(255,255,255,0) 40%
  );
}

/* dünne dunkle Kontur für Kantenschärfe */
.hasp-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: polygon(15% 5%, 15% 95%, 90% 50%);
  box-shadow: inset 0 0 0 1px rgba(80,50,10,0.4);
}

.rivet {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e0d0b0, #8a7a60);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.3), 0 1px 2px rgba(0,0,0,0.4);
}
.rivet.tl { top: 8px; left: 8px; }
.rivet.tr { top: 8px; right: 8px; }
.rivet.bl { bottom: 8px; left: 8px; }
.rivet.br { bottom: 8px; right: 8px; }


